openapi-explorer 0.8.290 → 0.8.291

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 CHANGED
@@ -8,6 +8,7 @@ This package follows standard semvar, `<major>.<minor>.<build>`. No breaking cha
8
8
  * Removing the `RESET` button as it is confusing for users to see. It only repopulated the defaults, and to do that, you can easily switch tabs and come back.
9
9
  * Arrays and Objects read-only indicator is now present at the top level, and these objects are hidden from POST/UPDATE/PATCH bodies.
10
10
  * Support $refs to load markdown files into the spec and render them appropriately.
11
+ * Correctly show deprecated arrays and hide deprecated elements from examples.
11
12
 
12
13
  ## 0.7 ##
13
14
  * Introduce `setAuthenticationConfiguration` to set any all configuration related to token management, including clientIds and explicit tokens.
@@ -1,4 +1,4 @@
1
- /*! OpenAPI Explorer 0.8.290 | Author - Rhosys Developers | License information can be found in openapi-explorer.min.js.LICENSE.txt */
1
+ /*! OpenAPI Explorer 0.8.291 | Author - Rhosys Developers | License information can be found in openapi-explorer.min.js.LICENSE.txt */
2
2
  (()=>{var e,t,r={66419:(e,t,r)=>{e.exports=r(27698)},77766:(e,t,r)=>{e.exports=r(8065)},72119:(e,t,r)=>{e.exports=r(57448)},20116:(e,t,r)=>{e.exports=r(11955)},94473:(e,t,r)=>{e.exports=r(61577)},78580:(e,t,r)=>{e.exports=r(33778)},2991:(e,t,r)=>{e.exports=r(61798)},3649:(e,t,r)=>{e.exports=r(82073)},92762:(e,t,r)=>{e.exports=r(2348)},29828:(e,t,r)=>{e.exports=r(35178)},59340:(e,t,r)=>{e.exports=r(8933)},51942:(e,t,r)=>{e.exports=r(63383)},26295:(e,t,r)=>{e.exports=r(86209)},86902:(e,t,r)=>{e.exports=r(23059)},93476:(e,t,r)=>{e.exports=r(27460)},94435:(e,t,r)=>{e.exports=r(73926)},52424:(e,t,r)=>{e.exports=r(72010)},53592:(e,t,r)=>{e.exports=r(27385)},78363:(e,t,r)=>{e.exports=r(81522)},19996:(e,t,r)=>{e.exports=r(32209)},90149:(e,t,r)=>{e.exports=r(30888)},30699:(e,t,r)=>{e.exports=r(44442)},28834:(e,t,r)=>{e.exports=r(57152)},95683:(e,t,r)=>{e.exports=r(69447)},60355:(e,t,r)=>{e.exports=r(17579)},95238:(e,t,r)=>{e.exports=r(81493)},189:(e,t,r)=>{e.exports=r(76094)},32752:(e,t,r)=>{e.exports=r(70573)},44341:(e,t,r)=>{e.exports=r(73685)},58377:(e,t,r)=>{e.exports=r(27533)},13038:(e,t,r)=>{e.exports=r(39057)},63263:(e,t,r)=>{e.exports=r(84710)},24889:(e,t,r)=>{e.exports=r(74303)},89356:(e,t,r)=>{e.exports=r(93799)},79542:(e,t,r)=>{e.exports=r(55122)},69798:(e,t,r)=>{e.exports=r(29531)},51446:(e,t,r)=>{e.exports=r(86600)},23882:(e,t,r)=>{e.exports=r(9759)},73981:(e,t,r)=>{var n=r(23765).default,a=r(51446),i=r(44341),o=r(189),s=r(24889),c=r(28834),u=r(79542),l=r(69798),p=r(60355),d=r(95238);function f(){"use strict";e.exports=f=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,h=r.hasOwnProperty,m="function"==typeof a?a:{},v=m.iterator||"@@iterator",b=m.asyncIterator||"@@asyncIterator",g=m.toStringTag||"@@toStringTag";function y(e,t,r){return i(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{y({},"")}catch(e){y=function(e,t,r){return e[t]=r}}function x(e,t,r,n){var a=t&&t.prototype instanceof S?t:S,i=o(a.prototype),s=new R(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(a,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw i;return L()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var s=T(o,r);if(s){if(s===k)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=w(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===k)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,s),i}function w(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=x;var k={};function S(){}function _(){}function A(){}var E={};y(E,v,(function(){return this}));var O=s&&s(s(N([])));O&&O!==r&&h.call(O,v)&&(E=O);var $=A.prototype=S.prototype=o(E);function j(e){var t;c(t=["next","throw","return"]).call(t,(function(t){y(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(a,i,o,s){var c=w(e[a],e,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==n(l)&&h.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(l).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,s)}))}s(c.arg)}var a;this._invoke=function(e,n){function i(){return new t((function(t,a){r(e,n,t,a)}))}return a=a?a.then(i,i):i()}}function T(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,T(e,t),"throw"===t.method))return k;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return k}var n=w(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,k;var a=n.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,k):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,k)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],c(e).call(e,P,this),this.reset(!0)}function N(e){if(e){var t=e[v];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(h.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:L}}function L(){return{value:void 0,done:!0}}return _.prototype=A,y($,"constructor",A),y(A,"constructor",_),_.displayName=y(A,g,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return u?u(e,A):(e.__proto__=A,y(e,g,"GeneratorFunction")),e.prototype=o($),e},t.awrap=function(e){return{__await:e}},j(C.prototype),y(C.prototype,b,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,a,i){void 0===i&&(i=l);var o=new C(x(e,r,n,a),i);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},j($),y($,g,"Generator"),y($,v,(function(){return this})),y($,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var r in e)t.push(r);return p(t).call(t),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,R.prototype={constructor:R,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,c(t=this.tryEntries).call(t,I),!e)for(var r in this)"t"===r.charAt(0)&&h.call(this,r)&&!isNaN(+d(r).call(r,1))&&(this[r]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var o=h.call(a,"catchLoc"),s=h.call(a,"finallyLoc");if(o&&s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(o){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&h.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,k):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),k},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),I(r),k}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;I(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:N(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),k}},t}e.exports=f,e.exports.__esModule=!0,e.exports.default=e.exports},23765:(e,t,r)=>{var n=r(51446),a=r(23882);function i(t){return e.exports=i="function"==typeof n&&"symbol"==typeof a?function(e){return typeof e}:function(e){return e&&"function"==typeof n&&e.constructor===n&&e!==n.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,i(t)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},63109:(e,t,r)=>{e.exports=r(73981)()},27334:(e,t,r)=>{"use strict";var n={};r.r(n),r.d(n,{JsonPatchError:()=>Xa,_areEquals:()=>ui,applyOperation:()=>ai,applyPatch:()=>ii,applyReducer:()=>oi,deepClone:()=>ei,getValueByPointer:()=>ni,validate:()=>ci,validator:()=>si});var a={};r.r(a),r.d(a,{compare:()=>bi,generate:()=>mi,observe:()=>hi,unobserve:()=>fi});var i={};r.r(i),r.d(i,{cookie:()=>Qo,header:()=>Yo,path:()=>Wo,query:()=>Ko});const o=new WeakMap,s=e=>"function"==typeof e&&o.has(e),c="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,u=(e,t,r=null)=>{for(;t!==r;){const r=t.nextSibling;e.removeChild(t),t=r}},l={},p={},d=`{{lit-${String(Math.random()).slice(2)}}}`,f=`\x3c!--${d}--\x3e`,h=new RegExp(`${d}|${f}`),m="$lit$";class v{constructor(e,t){this.parts=[],this.element=t;const r=[],n=[],a=document.createTreeWalker(t.content,133,null,!1);let i=0,o=-1,s=0;const{strings:c,values:{length:u}}=e;for(;s<u;){const e=a.nextNode();if(null!==e){if(o++,1===e.nodeType){if(e.hasAttributes()){const t=e.attributes,{length:r}=t;let n=0;for(let e=0;e<r;e++)b(t[e].name,m)&&n++;for(;n-- >0;){const t=c[s],r=x.exec(t)[2],n=r.toLowerCase()+m,a=e.getAttribute(n);e.removeAttribute(n);const i=a.split(h);this.parts.push({type:"attribute",index:o,name:r,strings:i}),s+=i.length-1}}"TEMPLATE"===e.tagName&&(n.push(e),a.currentNode=e.content)}else if(3===e.nodeType){const t=e.data;if(t.indexOf(d)>=0){const n=e.parentNode,a=t.split(h),i=a.length-1;for(let t=0;t<i;t++){let r,i=a[t];if(""===i)r=y();else{const e=x.exec(i);null!==e&&b(e[2],m)&&(i=i.slice(0,e.index)+e[1]+e[2].slice(0,-m.length)+e[3]),r=document.createTextNode(i)}n.insertBefore(r,e),this.parts.push({type:"node",index:++o})}""===a[i]?(n.insertBefore(y(),e),r.push(e)):e.data=a[i],s+=i}}else if(8===e.nodeType)if(e.data===d){const t=e.parentNode;null!==e.previousSibling&&o!==i||(o++,t.insertBefore(y(),e)),i=o,this.parts.push({type:"node",index:o}),null===e.nextSibling?e.data="":(r.push(e),o--),s++}else{let t=-1;for(;-1!==(t=e.data.indexOf(d,t+1));)this.parts.push({type:"node",index:-1}),s++}}else a.currentNode=n.pop()}for(const e of r)e.parentNode.removeChild(e)}}const b=(e,t)=>{const r=e.length-t.length;return r>=0&&e.slice(r)===t},g=e=>-1!==e.index,y=()=>document.createComment(""),x=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;class w{constructor(e,t,r){this.__parts=[],this.template=e,this.processor=t,this.options=r}update(e){let t=0;for(const r of this.__parts)void 0!==r&&r.setValue(e[t]),t++;for(const e of this.__parts)void 0!==e&&e.commit()}_clone(){const e=c?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),t=[],r=this.template.parts,n=document.createTreeWalker(e,133,null,!1);let a,i=0,o=0,s=n.nextNode();for(;i<r.length;)if(a=r[i],g(a)){for(;o<a.index;)o++,"TEMPLATE"===s.nodeName&&(t.push(s),n.currentNode=s.content),null===(s=n.nextNode())&&(n.currentNode=t.pop(),s=n.nextNode());if("node"===a.type){const e=this.processor.handleTextExpression(this.options);e.insertAfterNode(s.previousSibling),this.__parts.push(e)}else this.__parts.push(...this.processor.handleAttributeExpressions(s,a.name,a.strings,this.options));i++}else this.__parts.push(void 0),i++;return c&&(document.adoptNode(e),customElements.upgrade(e)),e}}const k=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:e=>e}),S=` ${d} `;class _{constructor(e,t,r,n){this.strings=e,this.values=t,this.type=r,this.processor=n}getHTML(){const e=this.strings.length-1;let t="",r=!1;for(let n=0;n<e;n++){const e=this.strings[n],a=e.lastIndexOf("\x3c!--");r=(a>-1||r)&&-1===e.indexOf("--\x3e",a+1);const i=x.exec(e);t+=null===i?e+(r?S:f):e.substr(0,i.index)+i[1]+i[2]+m+i[3]+d}return t+=this.strings[e],t}getTemplateElement(){const e=document.createElement("template");let t=this.getHTML();return void 0!==k&&(t=k.createHTML(t)),e.innerHTML=t,e}}const A=e=>null===e||!("object"==typeof e||"function"==typeof e),E=e=>Array.isArray(e)||!(!e||!e[Symbol.iterator]);class O{constructor(e,t,r){this.dirty=!0,this.element=e,this.name=t,this.strings=r,this.parts=[];for(let e=0;e<r.length-1;e++)this.parts[e]=this._createPart()}_createPart(){return new $(this)}_getValue(){const e=this.strings,t=e.length-1,r=this.parts;if(1===t&&""===e[0]&&""===e[1]){const e=r[0].value;if("symbol"==typeof e)return String(e);if("string"==typeof e||!E(e))return e}let n="";for(let a=0;a<t;a++){n+=e[a];const t=r[a];if(void 0!==t){const e=t.value;if(A(e)||!E(e))n+="string"==typeof e?e:String(e);else for(const t of e)n+="string"==typeof t?t:String(t)}}return n+=e[t],n}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class ${constructor(e){this.value=void 0,this.committer=e}setValue(e){e===l||A(e)&&e===this.value||(this.value=e,s(e)||(this.committer.dirty=!0))}commit(){for(;s(this.value);){const e=this.value;this.value=l,e(this)}this.value!==l&&this.committer.commit()}}class j{constructor(e){this.value=void 0,this.__pendingValue=void 0,this.options=e}appendInto(e){this.startNode=e.appendChild(y()),this.endNode=e.appendChild(y())}insertAfterNode(e){this.startNode=e,this.endNode=e.nextSibling}appendIntoPart(e){e.__insert(this.startNode=y()),e.__insert(this.endNode=y())}insertAfterPart(e){e.__insert(this.startNode=y()),this.endNode=e.endNode,e.endNode=this.startNode}setValue(e){this.__pendingValue=e}commit(){if(null===this.startNode.parentNode)return;for(;s(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=l,e(this)}const e=this.__pendingValue;e!==l&&(A(e)?e!==this.value&&this.__commitText(e):e instanceof _?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):E(e)?this.__commitIterable(e):e===p?(this.value=p,this.clear()):this.__commitText(e))}__insert(e){this.endNode.parentNode.insertBefore(e,this.endNode)}__commitNode(e){this.value!==e&&(this.clear(),this.__insert(e),this.value=e)}__commitText(e){const t=this.startNode.nextSibling,r="string"==typeof(e=null==e?"":e)?e:String(e);t===this.endNode.previousSibling&&3===t.nodeType?t.data=r:this.__commitNode(document.createTextNode(r)),this.value=e}__commitTemplateResult(e){const t=this.options.templateFactory(e);if(this.value instanceof w&&this.value.template===t)this.value.update(e.values);else{const r=new w(t,e.processor,this.options),n=r._clone();r.update(e.values),this.__commitNode(n),this.value=r}}__commitIterable(e){Array.isArray(this.value)||(this.value=[],this.clear());const t=this.value;let r,n=0;for(const a of e)r=t[n],void 0===r&&(r=new j(this.options),t.push(r),0===n?r.appendIntoPart(this):r.insertAfterPart(t[n-1])),r.setValue(a),r.commit(),n++;n<t.length&&(t.length=n,this.clear(r&&r.endNode))}clear(e=this.startNode){u(this.startNode.parentNode,e.nextSibling,this.endNode)}}class C{constructor(e,t,r){if(this.value=void 0,this.__pendingValue=void 0,2!==r.length||""!==r[0]||""!==r[1])throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=t,this.strings=r}setValue(e){this.__pendingValue=e}commit(){for(;s(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=l,e(this)}if(this.__pendingValue===l)return;const e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=l}}class T extends O{constructor(e,t,r){super(e,t,r),this.single=2===r.length&&""===r[0]&&""===r[1]}_createPart(){return new P(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class P extends ${}let I=!1;(()=>{try{const e={get capture(){return I=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){}})();class R{constructor(e,t,r){this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=t,this.eventContext=r,this.__boundHandleEvent=e=>this.handleEvent(e)}setValue(e){this.__pendingValue=e}commit(){for(;s(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=l,e(this)}if(this.__pendingValue===l)return;const e=this.__pendingValue,t=this.value,r=null==e||null!=t&&(e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive),n=null!=e&&(null==t||r);r&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),n&&(this.__options=N(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=l}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}const N=e=>e&&(I?{capture:e.capture,passive:e.passive,once:e.once}:e.capture);const L=new class{handleAttributeExpressions(e,t,r,n){const a=t[0];if("."===a){return new T(e,t.slice(1),r).parts}if("@"===a)return[new R(e,t.slice(1),n.eventContext)];if("?"===a)return[new C(e,t.slice(1),r)];return new O(e,t,r).parts}handleTextExpression(e){return new j(e)}};function z(e){let t=M.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},M.set(e.type,t));let r=t.stringsArray.get(e.strings);if(void 0!==r)return r;const n=e.strings.join(d);return r=t.keyString.get(n),void 0===r&&(r=new v(e,e.getTemplateElement()),t.keyString.set(n,r)),t.stringsArray.set(e.strings,r),r}const M=new Map,F=new WeakMap;"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");const q=(e,...t)=>new _(e,t,"html",L);window.JSCompiler_renameProperty=(e,t)=>e;const D={toAttribute(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},U=(e,t)=>t!==e&&(t==t||e==e),B={attribute:!0,type:String,converter:D,reflect:!1,hasChanged:U},H="finalized";class V extends HTMLElement{constructor(){super(),this.initialize()}static get observedAttributes(){this.finalize();const e=[];return this._classProperties.forEach(((t,r)=>{const n=this._attributeNameForProperty(r,t);void 0!==n&&(this._attributeToPropertyMap.set(n,r),e.push(n))})),e}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach(((e,t)=>this._classProperties.set(t,e)))}}static createProperty(e,t=B){if(this._ensureClassProperties(),this._classProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e))return;const r="symbol"==typeof e?Symbol():`__${e}`,n=this.getPropertyDescriptor(e,r,t);void 0!==n&&Object.defineProperty(this.prototype,e,n)}static getPropertyDescriptor(e,t,r){return{get(){return this[t]},set(n){const a=this[e];this[t]=n,this.requestUpdateInternal(e,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this._classProperties&&this._classProperties.get(e)||B}static finalize(){const e=Object.getPrototypeOf(this);if(e.hasOwnProperty(H)||e.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const e=this.properties,t=[...Object.getOwnPropertyNames(e),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]];for(const r of t)this.createProperty(r,e[r])}}static _attributeNameForProperty(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.toLowerCase():void 0}static _valueHasChanged(e,t,r=U){return r(e,t)}static _propertyValueFromAttribute(e,t){const r=t.type,n=t.converter||D,a="function"==typeof n?n:n.fromAttribute;return a?a(e,r):e}static _propertyValueToAttribute(e,t){if(void 0===t.reflect)return;const r=t.type,n=t.converter;return(n&&n.toAttribute||D.toAttribute)(e,r)}initialize(){this._updateState=0,this._updatePromise=new Promise((e=>this._enableUpdatingResolver=e)),this._changedProperties=new Map,this._saveInstanceProperties(),this.requestUpdateInternal()}_saveInstanceProperties(){this.constructor._classProperties.forEach(((e,t)=>{if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,e)}}))}_applyInstanceProperties(){this._instanceProperties.forEach(((e,t)=>this[t]=e)),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(e,t,r){t!==r&&this._attributeToProperty(e,r)}_propertyToAttribute(e,t,r=B){const n=this.constructor,a=n._attributeNameForProperty(e,r);if(void 0!==a){const e=n._propertyValueToAttribute(t,r);if(void 0===e)return;this._updateState=8|this._updateState,null==e?this.removeAttribute(a):this.setAttribute(a,e),this._updateState=-9&this._updateState}}_attributeToProperty(e,t){if(8&this._updateState)return;const r=this.constructor,n=r._attributeToPropertyMap.get(e);if(void 0!==n){const e=r.getPropertyOptions(n);this._updateState=16|this._updateState,this[n]=r._propertyValueFromAttribute(t,e),this._updateState=-17&this._updateState}}requestUpdateInternal(e,t,r){let n=!0;if(void 0!==e){const a=this.constructor;r=r||a.getPropertyOptions(e),a._valueHasChanged(this[e],t,r.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==r.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,r))):n=!1}!this._hasRequestedUpdate&&n&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(e,t){return this.requestUpdateInternal(e,t),this.updateComplete}async _enqueueUpdate(){this._updateState=4|this._updateState;try{await this._updatePromise}catch(e){}const e=this.performUpdate();return null!=e&&await e,!this._hasRequestedUpdate}get _hasRequestedUpdate(){return 4&this._updateState}get hasUpdated(){return 1&this._updateState}performUpdate(){if(!this._hasRequestedUpdate)return;this._instanceProperties&&this._applyInstanceProperties();let e=!1;const t=this._changedProperties;try{e=this.shouldUpdate(t),e?this.update(t):this._markUpdated()}catch(t){throw e=!1,this._markUpdated(),t}e&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(t)),this.updated(t))}_markUpdated(){this._changedProperties=new Map,this._updateState=-5&this._updateState}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(e){return!0}update(e){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach(((e,t)=>this._propertyToAttribute(t,this[t],e))),this._reflectingProperties=void 0),this._markUpdated()}updated(e){}firstUpdated(e){}}V.finalized=!0;const G=Element.prototype;G.msMatchesSelector||G.webkitMatchesSelector;const W=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,K=Symbol();class J{constructor(e,t){if(t!==K)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){return void 0===this._styleSheet&&(W?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const Y=e=>new J(String(e),K),Q=(e,...t)=>{const r=t.reduce(((t,r,n)=>t+(e=>{if(e instanceof J)return e.cssText;if("number"==typeof e)return e;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${e}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)})(r)+e[n+1]),e[0]);return new J(r,K)};(window.litElementVersions||(window.litElementVersions=[])).push("2.4.0");const Z={};class X extends V{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const e=this.getStyles();if(Array.isArray(e)){const t=(e,r)=>e.reduceRight(((e,r)=>Array.isArray(r)?t(r,e):(e.add(r),e)),r),r=t(e,new Set),n=[];r.forEach((e=>n.unshift(e))),this._styles=n}else this._styles=void 0===e?[]:[e];this._styles=this._styles.map((e=>{if(e instanceof CSSStyleSheet&&!W){const t=Array.prototype.slice.call(e.cssRules).reduce(((e,t)=>e+t.cssText),"");return Y(t)}return e}))}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?W?this.renderRoot.adoptedStyleSheets=e.map((e=>e instanceof CSSStyleSheet?e:e.styleSheet)):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map((e=>e.cssText)),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(e){const t=this.render();super.update(e),t!==Z&&this.constructor.render(t,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((e=>{const t=document.createElement("style");t.textContent=e.cssText,this.renderRoot.appendChild(t)})))}render(){return Z}}function ee(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}X.finalized=!0,X.render=(e,t,r)=>{let n=F.get(t);void 0===n&&(u(t,t.firstChild),F.set(t,n=new j(Object.assign({templateFactory:z},r))),n.appendInto(t)),n.setValue(e),n.commit()};let te={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const re=/[&<>"']/,ne=/[&<>"']/g,ae=/[<>"']|&(?!#?\w+;)/,ie=/[<>"']|&(?!#?\w+;)/g,oe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},se=e=>oe[e];function ce(e,t){if(t){if(re.test(e))return e.replace(ne,se)}else if(ae.test(e))return e.replace(ie,se);return e}const ue=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function le(e){return e.replace(ue,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const pe=/(^|[^\[])\^/g;function de(e,t){e="string"==typeof e?e:e.source,t=t||"";const r={replace:(t,n)=>(n=(n=n.source||n).replace(pe,"$1"),e=e.replace(t,n),r),getRegex:()=>new RegExp(e,t)};return r}const fe=/[^\w:]/g,he=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function me(e,t,r){if(e){let e;try{e=decodeURIComponent(le(r)).replace(fe,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!he.test(r)&&(r=function(e,t){ve[" "+e]||(be.test(e)?ve[" "+e]=e+"/":ve[" "+e]=Se(e,"/",!0));const r=-1===(e=ve[" "+e]).indexOf(":");return"//"===t.substring(0,2)?r?t:e.replace(ge,"$1")+t:"/"===t.charAt(0)?r?t:e.replace(ye,"$1")+t:e+t}(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch(e){return null}return r}const ve={},be=/^[^:]+:\/*[^/]*$/,ge=/^([^:]+:)[\s\S]*$/,ye=/^([^:]+:\/*[^/]*)[\s\S]*$/;const xe={exec:function(){}};function we(e){let t,r,n=1;for(;n<arguments.length;n++)for(r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function ke(e,t){const r=e.replace(/\|/g,((e,t,r)=>{let n=!1,a=t;for(;--a>=0&&"\\"===r[a];)n=!n;return n?"|":" |"})),n=r.split(/ \|/);let a=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(/\\\|/g,"|");return n}function Se(e,t,r){const n=e.length;if(0===n)return"";let a=0;for(;a<n;){const i=e.charAt(n-a-1);if(i!==t||r){if(i===t||!r)break;a++}else a++}return e.slice(0,n-a)}function _e(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Ae(e,t){if(t<1)return"";let r="";for(;t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function Ee(e,t,r,n){const a=t.href,i=t.title?ce(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){n.state.inLink=!0;const e={type:"link",raw:r,href:a,title:i,text:o,tokens:n.inlineTokens(o,[])};return n.state.inLink=!1,e}return{type:"image",raw:r,href:a,title:i,text:ce(o)}}class Oe{constructor(e){this.options=e||te}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Se(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],r=function(e,t){const r=e.match(/^(\s+)(?:```)/);if(null===r)return t;const n=r[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[r]=t;return r.length>=n.length?e.slice(n.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:r}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=Se(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const r={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(r.text,r.tokens),r}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r,n,a,i,o,s,c,u,l,p,d,f,h=t[1].trim();const m=h.length>1,v={type:"list",raw:"",ordered:m,start:m?+h.slice(0,-1):"",loose:!1,items:[]};h=m?`\\d{1,9}\\${h.slice(-1)}`:`\\${h}`,this.options.pedantic&&(h=m?h:"[*+-]");const b=new RegExp(`^( {0,3}${h})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(f=!1,t=b.exec(e))&&!this.rules.block.hr.test(e);){if(r=t[0],e=e.substring(r.length),u=t[2].split("\n",1)[0],l=e.split("\n",1)[0],this.options.pedantic?(i=2,d=u.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,d=u.slice(i),i+=t[1].length),s=!1,!u&&/^ *$/.test(l)&&(r+=l+"\n",e=e.substring(l.length+1),f=!0),!f){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`);for(;e&&(p=e.split("\n",1)[0],u=p,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!t.test(u))&&!n.test(e);){if(u.search(/[^ ]/)>=i||!u.trim())d+="\n"+u.slice(i);else{if(s)break;d+="\n"+u}s||u.trim()||(s=!0),r+=p+"\n",e=e.substring(p.length+1)}}v.loose||(c?v.loose=!0:/\n *\n *$/.test(r)&&(c=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(d),n&&(a="[ ] "!==n[0],d=d.replace(/^\[[ xX]\] +/,""))),v.items.push({type:"list_item",raw:r,task:!!n,checked:a,loose:!1,text:d}),v.raw+=r}v.items[v.items.length-1].raw=r.trimRight(),v.items[v.items.length-1].text=d.trimRight(),v.raw=v.raw.trimRight();const g=v.items.length;for(o=0;o<g;o++){this.lexer.state.top=!1,v.items[o].tokens=this.lexer.blockTokens(v.items[o].text,[]);const e=v.items[o].tokens.filter((e=>"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let r=0;for(const e of t)if("\n"===e&&(r+=1),r>1)return!0;return!1}));!v.loose&&e.length&&t&&(v.loose=!0,v.items[o].loose=!0)}return v}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):ce(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:ke(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let r,n,a,i,o=e.align.length;for(r=0;r<o;r++)/^ *-+: *$/.test(e.align[r])?e.align[r]="right":/^ *:-+: *$/.test(e.align[r])?e.align[r]="center":/^ *:-+ *$/.test(e.align[r])?e.align[r]="left":e.align[r]=null;for(o=e.rows.length,r=0;r<o;r++)e.rows[r]=ke(e.rows[r],e.header.length).map((e=>({text:e})));for(o=e.header.length,n=0;n<o;n++)e.header[n].tokens=[],this.lexer.inline(e.header[n].text,e.header[n].tokens);for(o=e.rows.length,n=0;n<o;n++)for(i=e.rows[n],a=0;a<i.length;a++)i[a].tokens=[],this.lexer.inline(i[a].text,i[a].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:ce(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):ce(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=Se(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const r=e.length;let n=0,a=0;for(;a<r;a++)if("\\"===e[a])a++;else if(e[a]===t[0])n++;else if(e[a]===t[1]&&(n--,n<0))return a;return-1}(t[2],"()");if(e>-1){const r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(r=this.options.pedantic&&!/>$/.test(e)?r.slice(1):r.slice(1,-1)),Ee(t,{href:r?r.replace(this.rules.inline._escapes,"$1"):r,title:n?n.replace(this.rules.inline._escapes,"$1"):n},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=(r[2]||r[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return Ee(r,e,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrong.lDelim.exec(e);if(!n)return;if(n[3]&&r.match(/[\p{L}\p{N}]/u))return;const a=n[1]||n[2]||"";if(!a||a&&(""===r||this.rules.inline.punctuation.exec(r))){const r=n[0].length-1;let a,i,o=r,s=0;const c="*"===n[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+r);null!=(n=c.exec(t));){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a)continue;if(i=a.length,n[3]||n[4]){o+=i;continue}if((n[5]||n[6])&&r%3&&!((r+i)%3)){s+=i;continue}if(o-=i,o>0)continue;if(i=Math.min(i,i+o+s),Math.min(r,i)%2){const t=e.slice(1,r+n.index+i);return{type:"em",raw:e.slice(0,r+n.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,r+n.index+i-1);return{type:"strong",raw:e.slice(0,r+n.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const r=/[^ ]/.test(e),n=/^ /.test(e)&&/ $/.test(e);return r&&n&&(e=e.substring(1,e.length-1)),e=ce(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){const r=this.rules.inline.autolink.exec(e);if(r){let e,n;return"@"===r[2]?(e=ce(this.options.mangle?t(r[1]):r[1]),n="mailto:"+e):(e=ce(r[1]),n=e),{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let r;if(r=this.rules.inline.url.exec(e)){let e,n;if("@"===r[2])e=ce(this.options.mangle?t(r[0]):r[0]),n="mailto:"+e;else{let t;do{t=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(t!==r[0]);e=ce(r[0]),n="www."===r[1]?"http://"+e:e}return{type:"link",raw:r[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const r=this.rules.inline.text.exec(e);if(r){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):ce(r[0]):r[0]:ce(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:e}}}}const $e={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:xe,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};$e.def=de($e.def).replace("label",$e._label).replace("title",$e._title).getRegex(),$e.bullet=/(?:[*+-]|\d{1,9}[.)])/,$e.listItemStart=de(/^( *)(bull) */).replace("bull",$e.bullet).getRegex(),$e.list=de($e.list).replace(/bull/g,$e.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+$e.def.source+")").getRegex(),$e._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",$e._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,$e.html=de($e.html,"i").replace("comment",$e._comment).replace("tag",$e._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$e.paragraph=de($e._paragraph).replace("hr",$e.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$e._tag).getRegex(),$e.blockquote=de($e.blockquote).replace("paragraph",$e.paragraph).getRegex(),$e.normal=we({},$e),$e.gfm=we({},$e.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),$e.gfm.table=de($e.gfm.table).replace("hr",$e.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$e._tag).getRegex(),$e.gfm.paragraph=de($e._paragraph).replace("hr",$e.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",$e.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$e._tag).getRegex(),$e.pedantic=we({},$e.normal,{html:de("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",$e._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:xe,paragraph:de($e.normal._paragraph).replace("hr",$e.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",$e.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const je={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:xe,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:xe,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function Ce(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Te(e){let t,r,n="";const a=e.length;for(t=0;t<a;t++)r=e.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}je._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",je.punctuation=de(je.punctuation).replace(/punctuation/g,je._punctuation).getRegex(),je.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,je.escapedEmSt=/\\\*|\\_/g,je._comment=de($e._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),je.emStrong.lDelim=de(je.emStrong.lDelim).replace(/punct/g,je._punctuation).getRegex(),je.emStrong.rDelimAst=de(je.emStrong.rDelimAst,"g").replace(/punct/g,je._punctuation).getRegex(),je.emStrong.rDelimUnd=de(je.emStrong.rDelimUnd,"g").replace(/punct/g,je._punctuation).getRegex(),je._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,je._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,je._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,je.autolink=de(je.autolink).replace("scheme",je._scheme).replace("email",je._email).getRegex(),je._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,je.tag=de(je.tag).replace("comment",je._comment).replace("attribute",je._attribute).getRegex(),je._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,je._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,je._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,je.link=de(je.link).replace("label",je._label).replace("href",je._href).replace("title",je._title).getRegex(),je.reflink=de(je.reflink).replace("label",je._label).replace("ref",$e._label).getRegex(),je.nolink=de(je.nolink).replace("ref",$e._label).getRegex(),je.reflinkSearch=de(je.reflinkSearch,"g").replace("reflink",je.reflink).replace("nolink",je.nolink).getRegex(),je.normal=we({},je),je.pedantic=we({},je.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:de(/^!?\[(label)\]\((.*?)\)/).replace("label",je._label).getRegex(),reflink:de(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",je._label).getRegex()}),je.gfm=we({},je.normal,{escape:de(je.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),je.gfm.url=de(je.gfm.url,"i").replace("email",je.gfm._extended_email).getRegex(),je.breaks=we({},je.gfm,{br:de(je.br).replace("{2,}","*").getRegex(),text:de(je.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class Pe{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||te,this.options.tokenizer=this.options.tokenizer||new Oe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:$e.normal,inline:je.normal};this.options.pedantic?(t.block=$e.pedantic,t.inline=je.pedantic):this.options.gfm&&(t.block=$e.gfm,this.options.breaks?t.inline=je.breaks:t.inline=je.gfm),this.tokenizer.rules=t}static get rules(){return{block:$e,inline:je}}static lex(e,t){return new Pe(t).lex(e)}static lexInline(e,t){return new Pe(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let r,n,a,i;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,r)=>t+" ".repeat(r.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),1===r.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?t.push(r):(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.list(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.def(e))e=e.substring(r.raw.length),n=t[t.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(n.raw+="\n"+r.raw,n.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else{if(a=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startBlock.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(a)))n=t[t.length-1],i&&"paragraph"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),i=a.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===n.type?(n.raw+="\n"+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let r,n,a,i,o,s,c=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(c));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,i.index)+"["+Ae("a",i[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,i.index)+"["+Ae("a",i[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(c));)c=c.slice(0,i.index)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(o||(s=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))))if(r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),n=t[t.length-1],n&&"text"===r.type&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,c,s))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.autolink(e,Te))e=e.substring(r.raw.length),t.push(r);else if(this.state.inLink||!(r=this.tokenizer.url(e,Te))){if(a=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const r=e.slice(1);let n;this.options.extensions.startInline.forEach((function(e){n=e.call({lexer:this},r),"number"==typeof n&&n>=0&&(t=Math.min(t,n))})),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(a,Ce))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),o=!0,n=t[t.length-1],n&&"text"===n.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(r.raw.length),t.push(r);return t}}class Ie{constructor(e){this.options=e||te}code(e,t,r){const n=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,n);null!=t&&t!==e&&(r=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",n?'<pre><code class="'+this.options.langPrefix+ce(n,!0)+'">'+(r?e:ce(e,!0))+"</code></pre>\n":"<pre><code>"+(r?e:ce(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e){return e}heading(e,t,r,n){if(this.options.headerIds){return`<h${t} id="${this.options.headerPrefix+n.slug(r)}">${e}</h${t}>\n`}return`<h${t}>${e}</h${t}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,r){const n=t?"ol":"ul";return"<"+n+(t&&1!==r?' start="'+r+'"':"")+">\n"+e+"</"+n+">\n"}listitem(e){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,r){if(null===(e=me(this.options.sanitize,this.options.baseUrl,e)))return r;let n='<a href="'+ce(e)+'"';return t&&(n+=' title="'+t+'"'),n+=">"+r+"</a>",n}image(e,t,r){if(null===(e=me(this.options.sanitize,this.options.baseUrl,e)))return r;let n=`<img src="${e}" alt="${r}"`;return t&&(n+=` title="${t}"`),n+=this.options.xhtml?"/>":">",n}text(e){return e}}class Re{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}}class Ne{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do{n++,r=e+"-"+n}while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r}slug(e,t={}){const r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)}}class Le{constructor(e){this.options=e||te,this.options.renderer=this.options.renderer||new Ie,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Re,this.slugger=new Ne}static parse(e,t){return new Le(t).parse(e)}static parseInline(e,t){return new Le(t).parseInline(e)}parse(e,t=!0){let r,n,a,i,o,s,c,u,l,p,d,f,h,m,v,b,g,y,x,w="";const k=e.length;for(r=0;r<k;r++)if(p=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(x=this.options.extensions.renderers[p.type].call({parser:this},p),!1!==x||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)))w+=x||"";else switch(p.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(p.tokens),p.depth,le(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(u="",c="",i=p.header.length,n=0;n<i;n++)c+=this.renderer.tablecell(this.parseInline(p.header[n].tokens),{header:!0,align:p.align[n]});for(u+=this.renderer.tablerow(c),l="",i=p.rows.length,n=0;n<i;n++){for(s=p.rows[n],c="",o=s.length,a=0;a<o;a++)c+=this.renderer.tablecell(this.parseInline(s[a].tokens),{header:!1,align:p.align[a]});l+=this.renderer.tablerow(c)}w+=this.renderer.table(u,l);continue;case"blockquote":l=this.parse(p.tokens),w+=this.renderer.blockquote(l);continue;case"list":for(d=p.ordered,f=p.start,h=p.loose,i=p.items.length,l="",n=0;n<i;n++)v=p.items[n],b=v.checked,g=v.task,m="",v.task&&(y=this.renderer.checkbox(b),h?v.tokens.length>0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=y+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=y+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:y}):m+=y),m+=this.parse(v.tokens,h),l+=this.renderer.listitem(m,g,b);w+=this.renderer.list(l,d,f);continue;case"html":w+=this.renderer.html(p.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(l=p.tokens?this.parseInline(p.tokens):p.text;r+1<k&&"text"===e[r+1].type;)p=e[++r],l+="\n"+(p.tokens?this.parseInline(p.tokens):p.text);w+=t?this.renderer.paragraph(l):l;continue;default:{const e='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return w}parseInline(e,t){t=t||this.renderer;let r,n,a,i="";const o=e.length;for(r=0;r<o;r++)if(n=e[r],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]&&(a=this.options.extensions.renderers[n.type].call({parser:this},n),!1!==a||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)))i+=a||"";else switch(n.type){case"escape":case"text":i+=t.text(n.text);break;case"html":i+=t.html(n.text);break;case"link":i+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":i+=t.image(n.href,n.title,n.text);break;case"strong":i+=t.strong(this.parseInline(n.tokens,t));break;case"em":i+=t.em(this.parseInline(n.tokens,t));break;case"codespan":i+=t.codespan(n.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(n.tokens,t));break;default:{const e='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return i}}function ze(e,t,r){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(r=t,t=null),_e(t=we({},ze.defaults,t||{})),r){const n=t.highlight;let a;try{a=Pe.lex(e,t)}catch(e){return r(e)}const i=function(e){let i;if(!e)try{t.walkTokens&&ze.walkTokens(a,t.walkTokens),i=Le.parse(a,t)}catch(t){e=t}return t.highlight=n,e?r(e):r(null,i)};if(!n||n.length<3)return i();if(delete t.highlight,!a.length)return i();let o=0;return ze.walkTokens(a,(function(e){"code"===e.type&&(o++,setTimeout((()=>{n(e.text,e.lang,(function(t,r){if(t)return i(t);null!=r&&r!==e.text&&(e.text=r,e.escaped=!0),o--,0===o&&i()}))}),0))})),void(0===o&&i())}try{const r=Pe.lex(e,t);return t.walkTokens&&ze.walkTokens(r,t.walkTokens),Le.parse(r,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+ce(e.message+"",!0)+"</pre>";throw e}}ze.options=ze.setOptions=function(e){var t;return we(ze.defaults,e),t=ze.defaults,te=t,ze},ze.getDefaults=ee,ze.defaults=te,ze.use=function(...e){const t=we({},...e),r=ze.defaults.extensions||{renderers:{},childTokens:{}};let n;e.forEach((e=>{if(e.extensions&&(n=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=r.renderers?r.renderers[e.name]:null;r.renderers[e.name]=t?function(...r){let n=e.renderer.apply(this,r);return!1===n&&(n=t.apply(this,r)),n}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");r[e.level]?r[e.level].unshift(e.tokenizer):r[e.level]=[e.tokenizer],e.start&&("block"===e.level?r.startBlock?r.startBlock.push(e.start):r.startBlock=[e.start]:"inline"===e.level&&(r.startInline?r.startInline.push(e.start):r.startInline=[e.start]))}e.childTokens&&(r.childTokens[e.name]=e.childTokens)}))),e.renderer){const r=ze.defaults.renderer||new Ie;for(const t in e.renderer){const n=r[t];r[t]=(...a)=>{let i=e.renderer[t].apply(r,a);return!1===i&&(i=n.apply(r,a)),i}}t.renderer=r}if(e.tokenizer){const r=ze.defaults.tokenizer||new Oe;for(const t in e.tokenizer){const n=r[t];r[t]=(...a)=>{let i=e.tokenizer[t].apply(r,a);return!1===i&&(i=n.apply(r,a)),i}}t.tokenizer=r}if(e.walkTokens){const r=ze.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),r&&r.call(this,t)}}n&&(t.extensions=r),ze.setOptions(t)}))},ze.walkTokens=function(e,t){for(const r of e)switch(t.call(ze,r),r.type){case"table":for(const e of r.header)ze.walkTokens(e.tokens,t);for(const e of r.rows)for(const r of e)ze.walkTokens(r.tokens,t);break;case"list":ze.walkTokens(r.items,t);break;default:ze.defaults.extensions&&ze.defaults.extensions.childTokens&&ze.defaults.extensions.childTokens[r.type]?ze.defaults.extensions.childTokens[r.type].forEach((function(e){ze.walkTokens(r[e],t)})):r.tokens&&ze.walkTokens(r.tokens,t)}},ze.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");_e(t=we({},ze.defaults,t||{}));try{const r=Pe.lexInline(e,t);return t.walkTokens&&ze.walkTokens(r,t.walkTokens),Le.parseInline(r,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+ce(e.message+"",!0)+"</pre>";throw e}},ze.Parser=Le,ze.parser=Le.parse,ze.Renderer=Ie,ze.TextRenderer=Re,ze.Lexer=Pe,ze.lexer=Pe.lex,ze.Tokenizer=Oe,ze.Slugger=Ne,ze.parse=ze;ze.options,ze.setOptions,ze.use,ze.walkTokens,ze.parseInline,Le.parse,Pe.lex;var Me=r(15660),Fe=r.n(Me);r(15251),r(73358),r(27046),r(52503),r(74277),r(57874),r(80366),r(50057),r(79016);const qe=Q`.hover-bg:hover{background:var(--bg3)}::selection{background:var(--selection-bg);color:var(--selection-fg)}.regular-font{font-family:var(--font-regular)}.mono-font{font-family:var(--font-mono)}.title{font-size:calc(var(--font-size-small) + 18px);font-weight:400}.sub-title{font-size:20px}.req-res-title{font-family:var(--font-regular);font-size:calc(var(--font-size-small) + 4px);font-weight:700}.tiny-title{font-size:calc(var(--font-size-small) + 1px);font-weight:700}.regular-font-size{font-size:var(--font-size-regular)}.small-font-size{font-size:var(--font-size-small)}.upper{text-transform:uppercase}.primary-text{color:var(--primary-color)}.bold-text{font-weight:700}.gray-text{color:var(--light-fg)}.red-text{color:var(--red)}.blue-text{color:var(--blue)}.multiline{overflow:scroll;max-height:var(--resp-area-height,300px);color:var(--fg3)}.method-fg.put{color:var(--orange)}.method-fg.post{color:var(--green)}.method-fg.get,.method-fg.head{color:var(--blue)}.method-fg.delete{color:var(--red)}.method-fg.options{color:var(--purple)}.method-fg.patch{color:var(--yellow)}h1{font-family:var(--font-regular);font-size:28px;padding-top:10px;letter-spacing:normal;font-weight:400}h2{font-family:var(--font-regular);font-size:24px;padding-top:10px;letter-spacing:normal;font-weight:400}h3{font-family:var(--font-regular);font-size:18px;padding-top:10px;letter-spacing:normal;font-weight:400}h4{font-family:var(--font-regular);font-size:16px;padding-top:10px;letter-spacing:normal;font-weight:400}h5{font-family:var(--font-regular);font-size:14px;padding-top:10px;letter-spacing:normal;font-weight:400}h6{font-family:var(--font-regular);font-size:14px;padding-top:10px;letter-spacing:normal;font-weight:400}h1,h2,h3,h4,h5{margin-block-end:.2em}h3{margin-top:0}p{margin-block-start:.5em}a{color:var(--blue);cursor:pointer}a.inactive-link{color:var(--fg);text-decoration:none;cursor:text}code,pre{margin:0;font-family:var(--font-mono);font-size:calc(var(--font-size-mono) - 1px)}.m-markdown,.m-markdown-small{display:block}.m-markdown li,.m-markdown p,.m-markdown span{font-size:var(--font-size-regular);line-height:calc(var(--font-size-regular) + 6px)}.m-markdown-small li,.m-markdown-small p,.m-markdown-small span{font-size:var(--font-size-small);line-height:calc(var(--font-size-small) + 6px)}.m-markdown p:not(:first-child){margin-block-start:24px}.m-markdown-small p:not(:first-child){margin-block-start:12px}.m-markdown-small p:first-child{margin-block-start:0}.m-markdown p,.m-markdown-small p{margin-block-end:0}.toolbar .m-markdown p,.toolbar .m-markdown-small p{margin-block-start:0}.m-markdown code span{font-size:var(--font-size-mono)}.m-markdown code,.m-markdown-small code{padding:1px 6px;border-radius:2px;color:var(--inline-code-fg);background-color:var(--bg3);font-size:calc(var(--font-size-mono));line-height:1.2}.m-markdown-small code{font-size:calc(var(--font-size-mono) - 1px)}.m-markdown pre,.m-markdown-small pre{white-space:pre-wrap;overflow-x:auto;line-height:normal;border-radius:2px;border:1px solid var(--code-border-color)}.m-markdown pre{padding:8px;background-color:var(--code-bg);color:var(--code-fg)}.m-markdown-small pre{margin-top:4px;padding:2px 4px;background-color:var(--bg3);color:var(--fg2)}.m-markdown pre code,.m-markdown-small pre code{border:none;padding:0}.m-markdown pre code{color:var(--code-fg);background-color:var(--code-bg);background-color:transparent}.m-markdown-small pre code{color:var(--fg2);background-color:var(--bg3)}.m-markdown ol,.m-markdown ul{padding-inline-start:30px}.m-markdown-small ol,.m-markdown-small ul{padding-inline-start:20px}.m-markdown a,.m-markdown-small a{color:var(--blue)}.m-markdown img,.m-markdown-small img{max-width:100%}.m-markdown table,.m-markdown-small table{border-spacing:0;margin:10px 0;border-collapse:separate;border:1px solid var(--border-color);border-radius:var(--border-radius);font-size:calc(var(--font-size-small) + 1px);line-height:calc(var(--font-size-small) + 4px);max-width:100%}.m-markdown-small table{font-size:var(--font-size-small);line-height:calc(var(--font-size-small) + 2px);margin:8px 0}.m-markdown td,.m-markdown th,.m-markdown-small td,.m-markdown-small th{vertical-align:top;border-top:1px solid var(--border-color);line-height:calc(var(--font-size-small) + 4px)}.m-markdown tr:first-child th,.m-markdown-small tr:first-child th{border-top:0 none}.m-markdown td,.m-markdown th{padding:10px 12px}.m-markdown-small td,.m-markdown-small th{padding:8px 8px}.m-markdown th,.m-markdown-small th{font-weight:600;background-color:var(--bg2);vertical-align:middle}.m-markdown-small table code{font-size:calc(var(--font-size-mono) - 2px)}.m-markdown table code{font-size:calc(var(--font-size-mono) - 1px)}.m-markdown blockquote,.m-markdown-small blockquote{margin-inline-start:0;margin-inline-end:0;border-left:3px solid var(--border-color);padding:6px 0 6px 6px}`,De=Q`.m-btn{border-radius:var(--border-radius);font-weight:600;display:inline-block;padding:6px 16px;font-size:var(--font-size-small);outline:0;line-height:1;text-align:center;white-space:nowrap;border:2px solid var(--primary-color);background-color:transparent;transition:background-color .2s;user-select:none;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.m-btn.primary{background-color:var(--primary-color);color:var(--primary-btn-text-color)}.m-btn.thin-border{border-width:1px}.m-btn.large{padding:8px 14px}.m-btn.small{padding:5px 12px}.m-btn.tiny{padding:5px 6px}.m-btn.circle{border-radius:50%}.m-btn:hover{background-color:var(--primary-color);color:var(--primary-btn-text-color)}.m-btn.nav{border:2px solid var(--secondary-color)}.m-btn.nav:hover{background-color:var(--secondary-color)}.m-btn:disabled{background-color:var(--bg3);color:var(--fg3);border-color:var(--fg3);cursor:progress;opacity:.4}.toolbar-copy-btn{cursor:pointer;padding:.125rem .5rem;margin:0 2px;font-size:.8rem;width:56px;color:var(--primary-btn-text-color);border-radius:2px;border:none;background-color:var(--primary-color)}.tab-content .toolbar-copy-btn{position:absolute;top:8px;right:8px;margin-right:8px}.tab-content .toolbar-copy-btn+pre{white-space:pre;max-height:400px;overflow:auto;display:flex;padding-right:70px}button,input,pre,select,textarea{color:var(--fg);outline:0;background-color:var(--input-bg);border:1px solid var(--border-color);border-radius:var(--border-radius)}button{font-family:var(--font-regular)}input[type=file],input[type=password],input[type=text],pre,select,textarea{font-family:var(--font-mono);font-weight:400;font-size:var(--font-size-small);transition:border .2s;padding:6px 5px}select{font-family:var(--font-regular);padding-right:30px;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%3E%3Cpath%20d%3D%22M10.3%203.3L6%207.6%201.7%203.3A1%201%200%2000.3%204.7l5%205a1%201%200%20001.4%200l5-5a1%201%200%2010-1.4-1.4z%22%20fill%3D%22%23777777%22%2F%3E%3C%2Fsvg%3E");background-position:calc(100% - 5px) center;background-repeat:no-repeat;background-size:10px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}select:hover{border-color:var(--primary-color)}input[type=password]::placeholder,input[type=text]::placeholder,textarea::placeholder{color:var(--placeholder-color);opacity:1}input[type=password]:active,input[type=password]:focus,input[type=text]:active,input[type=text]:focus,select:focus,textarea:active,textarea:focus{border:1px solid var(--primary-color)}input[type=file]{font-family:var(--font-regular);padding:2px;cursor:pointer;border:1px solid var(--primary-color);min-height:calc(var(--font-size-small) + 18px)}input[type=file]::-webkit-file-upload-button{font-family:var(--font-regular);font-size:var(--font-size-small);outline:0;cursor:pointer;padding:3px 8px;border:1px solid var(--primary-color);background-color:var(--primary-color);color:var(--primary-btn-text-color);border-radius:var(--border-radius);-webkit-appearance:none}pre,textarea{scrollbar-width:thin;scrollbar-color:var(--border-color) var(--input-bg)}pre::-webkit-scrollbar,textarea::-webkit-scrollbar{width:8px;height:8px}pre::-webkit-scrollbar-track,textarea::-webkit-scrollbar-track{background:var(--input-bg)}pre::-webkit-scrollbar-thumb,textarea::-webkit-scrollbar-thumb{border-radius:2px;background-color:var(--border-color)}.link{font-size:var(--font-size-small);text-decoration:underline;color:var(--blue);font-family:var(--font-mono);margin-bottom:2px}input[type=checkbox]:focus{outline:0}input[type=checkbox]{appearance:none;display:inline-block;background-color:var(--light-bg);border-radius:9px;cursor:pointer;height:18px;position:relative;transition:border .15s,padding .25s;min-width:36px;width:36px;vertical-align:top}input[type=checkbox]:after{position:absolute;background-color:var(--bg);border-radius:8px;content:'';top:0;left:0;right:16px;display:block;height:16px;transition:left .25s .1s,right .15s .175s}input[type=checkbox]:checked{box-shadow:inset 0 0 0 13px var(--primary-color);border-color:var(--primary-color)}input[type=checkbox]:checked:after{border:1px solid var(--primary-color);left:16px;right:1px;transition:border .25s,left .15s .25s,right .25s .175s}input.oauth-client-id{flex-grow:1;max-width:300px}input.oauth-client-secret{flex-grow:1;max-width:300px}`,Ue=Q`.col,.row{display:flex}.row{align-items:center;flex-direction:row}.col{align-items:stretch;flex-direction:column}`,Be=Q`.m-table{border-spacing:0;border-collapse:separate;border:1px solid var(--light-border-color);border-radius:var(--border-radius);margin:0;max-width:100%}.m-table tr:first-child td,.m-table tr:first-child th{border-top:0 none}.m-table td,.m-table th{font-size:var(--font-size-small);padding:4px 5px 4px}.m-table td:not([align]),.m-table th:not([align]){text-align:left}.m-table th{color:var(--fg2);font-size:var(--font-size-small);line-height:calc(var(--font-size-small) + 18px);font-weight:600;letter-spacing:normal;background-color:var(--bg2);vertical-align:bottom;border-bottom:1px solid var(--light-border-color)}.m-table>tbody>tr>td,.m-table>tr>td{border-top:1px solid var(--light-border-color)}.table-title{font-size:var(--font-size-small);font-weight:700;vertical-align:middle;margin:12px 0 4px 0}`,He=Q`.only-large-screen{display:none}.endpoint-head .path{display:flex;font-family:var(--font-mono);font-size:var(--font-size-small);align-items:center;overflow-wrap:break-word;word-break:break-all}.endpoint-head .descr{font-size:var(--font-size-small);color:var(--light-fg);font-weight:400;align-items:center;overflow-wrap:break-word;word-break:break-all;display:none}.m-endpoint.expanded{margin-bottom:16px}.m-endpoint>.endpoint-head{border-width:1px 1px 1px 5px;border-style:solid;border-color:transparent;border-top-color:var(--light-border-color);display:flex;padding:6px 16px;align-items:center;cursor:pointer}.m-endpoint>.endpoint-head.put.expanded,.m-endpoint>.endpoint-head.put:hover{border-color:var(--orange);background-color:var(--light-orange)}.m-endpoint>.endpoint-head.post.expanded,.m-endpoint>.endpoint-head.post:hover{border-color:var(--green);background-color:var(--light-green)}.m-endpoint>.endpoint-head.get.expanded,.m-endpoint>.endpoint-head.get:hover,.m-endpoint>.endpoint-head.head.expanded,.m-endpoint>.endpoint-head.head:hover{border-color:var(--blue);background-color:var(--light-blue)}.m-endpoint>.endpoint-head.delete.expanded,.m-endpoint>.endpoint-head.delete:hover{border-color:var(--red);background-color:var(--light-red)}.m-endpoint>.endpoint-head.patch.expanded,.m-endpoint>.endpoint-head.patch:hover{border-color:var(--yellow);background-color:var(--light-yellow)}.m-endpoint>.endpoint-head.options.expanded,.m-endpoint>.endpoint-head.options:hover{border-color:var(--purple);background-color:var(--light-purple)}.m-endpoint .endpoint-body{word-break:break-word;flex-wrap:wrap;padding:16px 0 0 0;border-width:0 1px 1px 5px;border-style:solid;box-shadow:0 4px 3px -3px rgba(0,0,0,.15)}.m-endpoint .endpoint-body.delete{border-color:var(--red)}.m-endpoint .endpoint-body.put{border-color:var(--orange)}.m-endpoint .endpoint-body.post{border-color:var(--green)}.m-endpoint .endpoint-body.get,.m-endpoint .endpoint-body.head{border-color:var(--blue)}.m-endpoint .endpoint-body.patch{border-color:var(--yellow)}.m-endpoint .endpoint-body.options{border-color:var(--purple)}.summary{padding:8px 8px}.summary .title{font-size:calc(var(--font-size-regular) + 2px);margin-bottom:6px;word-break:break-word}.method{padding:2px 5px;vertical-align:middle;font-size:var(--font-size-small);height:calc(var(--font-size-small) + 16px);line-height:calc(var(--font-size-small) + 8px);width:68px;flex-shrink:0;border-radius:2px;display:inline-block;text-align:center;font-weight:700;text-transform:uppercase;margin-right:5px}.method.delete{border:2px solid var(--red)}.method.put{border:2px solid var(--orange)}.method.post{border:2px solid var(--green)}.method.get,.method.head{border:2px solid var(--blue)}.method.patch{border:2px solid var(--yellow)}.method.options{border:2px solid var(--purple)}.req-resp-container{display:flex;margin-top:16px;align-items:stretch;flex-wrap:wrap;flex-direction:column}.view-request{flex:1;min-height:100px;max-width:100%;padding:16px 8px;overflow:hidden;border-width:0;border-style:dashed}.request,.response{flex:1;min-height:100px;max-width:100%;padding:16px 8px;overflow:hidden}.request{border-width:0 0 1px 0;border-style:dashed}.patch .request{border-top:1px dashed var(--yellow);border-color:var(--yellow)}.options .request{border-top:1px dashed var(--purple);border-color:var(--purple)}.put .request{border-top:1px dashed var(--orange);border-color:var(--orange)}.post .request{border-top:1px dashed var(--green);border-color:var(--green)}.get .request,.head .request{border-top:1px dashed var(--blue);border-color:var(--blue)}.delete .request{border-top:1px dashed var(--red);border-color:var(--red)}@media only screen and (min-width:1024px){.only-large-screen{display:block}.endpoint-head .path{font-size:var(--font-size-regular);min-width:400px}.endpoint-head .descr{display:flex}.descr .m-markdown-small,.endpoint-head .m-markdown-small{display:block}.req-resp-container{flex-direction:var(--layout,row)}.request{border-width:0 1px 0 0;padding:16px}.response{padding:16px}.summary{padding:8px 16px}}.security-info-button{position:absolute;top:3px;right:2px;font-size:var(--font-size-small);line-height:1.5}@media only screen and (max-width:768px){.security-info-button{display:none}}pre.code-sample{padding:8px;min-height:30px;font-family:var(--font-mono);font-size:var(--font-size-small)}`,Ve=Q`code[class*=language-],pre[class*=language-]{text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;tab-size:2;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-]{white-space:normal}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:var(--light-fg)}.token.punctuation{color:var(--fg)}.token.attr-name,.token.deleted,.token.namespace,.token.tag{color:var(--pink)}.token.function-name{color:var(--blue)}.token.boolean,.token.function,.token.number{color:var(--red)}.token.class-name,.token.constant,.token.property,.token.symbol{color:var(--code-property-color)}.token.atrule,.token.builtin,.token.important,.token.keyword,.token.selector{color:var(--code-keyword-color)}.token.attr-value,.token.char,.token.regex,.token.string,.token.variable{color:var(--green);white-space:pre-wrap;line-break:anywhere}.token.entity,.token.operator,.token.url{color:var(--code-operator-color)}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.inserted{color:green}`,Ge=Q`.tab-panel{border:none}.tab-buttons{height:30px;border-bottom:1px solid var(--light-border-color);align-items:stretch;overflow-y:hidden;overflow-x:auto;scrollbar-width:thin}.tab-buttons::-webkit-scrollbar{height:1px;background-color:var(--border-color)}.tab-btn{border:none;border-bottom:3px solid transparent;color:var(--light-fg);background-color:transparent;white-space:nowrap;cursor:pointer;outline:0;font-family:var(--font-regular);font-size:var(--font-size-small);margin-right:16px;padding:1px}.tab-btn.active{border-bottom:3px solid var(--primary-color);font-weight:700;color:var(--primary-color)}.tab-btn:hover{color:var(--primary-color)}.tab-content{position:relative}`,We=Q`.nav-bar{width:0;height:100%;overflow:hidden;color:var(--nav-text-color);background-color:var(--nav-bg-color);background-blend-mode:multiply;line-height:calc(var(--font-size-small) + 4px);display:none;position:relative;flex-direction:column;flex-wrap:nowrap;word-break:break-word}.nav-scroll{overflow-x:hidden;overflow-y:auto;overflow-y:overlay;scrollbar-width:thin;scrollbar-color:var(--nav-hover-bg-color) transparent}.nav-bar-tag{display:flex;align-items:center;justify-content:space-between;flex-direction:row}.nav-bar.read .nav-bar-tag-icon{display:none}.nav-bar-tag-icon{color:var(--nav-text-color);font-size:20px;margin-right:-16px}.nav-bar-tag-icon:hover{color:var(--nav-hover-text-color)}.nav-bar.focused .nav-bar-tag-and-paths.collapsed .nav-bar-paths-under-tag{display:none}.nav-bar.focused .nav-bar-tag-and-paths .nav-bar-tag-icon::after{content:'▸';font-size:16px;text-align:center;display:inline-block}.nav-bar.focused .nav-bar-tag-and-paths.expanded .nav-bar-tag-icon::after{transform:rotate(90deg)}.nav-bar.focused,.nav-scroll{border-top:1px solid var(--secondary-color)}.nav-scroll::-webkit-scrollbar{width:10px}.nav-scroll::-webkit-scrollbar-track{background:0 0}.nav-scroll::-webkit-scrollbar-thumb{background-color:var(--nav-hover-bg-color)}.nav-bar-tag{font-size:var(--font-size-regular);color:var(--secondary-color);border-left:4px solid transparent;font-weight:700;padding:15px 30px 15px 10px;text-transform:capitalize}.nav-bar-components,.nav-bar-h1,.nav-bar-h2,.nav-bar-info,.nav-bar-path,.nav-bar-tag,slot[name=nav-section]::slotted(*){display:flex;cursor:pointer;border-left:4px solid transparent}.nav-bar-h1,.nav-bar-h2,.nav-bar-path{font-size:calc(var(--font-size-small) + 1px);padding:var(--nav-item-padding)}.nav-bar-path.small-font{font-size:var(--font-size-small)}.nav-bar-info,slot[name=nav-section]::slotted(*){font-size:var(--font-size-regular);padding:16px 10px;font-weight:700}.nav-bar-section{display:flex;flex-direction:row;justify-content:space-between;font-size:var(--font-size-small);color:var(--nav-text-color);padding:15px 15px 5px 5px;filter:opacity(.5);font-weight:700;border-bottom:1px solid var(--nav-text-color)}.nav-bar-h2{margin-left:12px}.nav-bar-h1.active,.nav-bar-h1.active:hover,.nav-bar-h2.active,.nav-bar-h2.active:hover,.nav-bar-info.active,.nav-bar-info.active:hover,.nav-bar-path.active,.nav-bar-path.active:hover,.nav-bar-tag.active,.nav-bar-tag.active:hover,slot[name=nav-section]::slotted(.active),slot[name=nav-section]::slotted(.active:hover){border-left:4px solid var(--secondary-color);color:var(--secondary-color);background-color:var(--nav-hover-bg-color)}.nav-bar-h1:hover,.nav-bar-h2:hover,.nav-bar-info:hover,.nav-bar-path:hover,.nav-bar-tag:hover,slot[name=nav-section]::slotted(:hover){color:var(--nav-hover-text-color);background-color:var(--nav-hover-bg-color)}`,Ke=Q`#api-info{font-size:calc(var(--font-size-regular) - 1px);margin-top:8px margin-left: -15px}#api-info span:before{content:"|";display:inline-block;opacity:.5;width:15px;text-align:center}#api-info span:first-child:before{content:"";width:0}`,Je=Q`*,:after,:before{box-sizing:border-box}.dialog-box-overlay{background-color:var(--overlay-bg);position:fixed;left:0;top:0;width:100vw;height:100vh;overflow:hidden;z-index:var(--dialog-z-index)}.dialog-box{position:fixed;top:100px;left:50%;transform:translate(-50%,0);display:flex;flex-direction:column;width:50vw;background-color:var(--bg2);color:var(--fg2);border-radius:4px;overflow:hidden;border:1px solid var(--border-color);box-shadow:0 14px 28px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22)}.dialog-box-header{position:sticky;top:0;align-self:stretch;display:flex;align-items:center;padding:0 16px;min-height:60px;max-height:60px;border-bottom:1px solid var(--light-border-color);overflow:hidden}.dialog-box .m-btn{padding:1px 6px}.dialog-box-content{padding:16px;display:block}.dialog-box-title{flex-grow:1;font-size:20px}.advanced-search-dialog-input{width:100%}#advanced-search-dialog-input{width:100%}.advanced-search-locations{display:flex;flex-direction:column;margin:8px 0 24px}.advanced-search-locations label{font-size:var(--font-size-small)}.advanced-search-results{max-height:400px;overflow:auto}`;const Ye=new RegExp(/[\s#:?&={}]/,"g");function Qe(e){return new Promise((t=>setTimeout(t,e)))}function Ze(e,t){const r=t.currentTarget,n=document.createElement("textarea");n.value=e,n.style.position="fixed",document.body.appendChild(n),n.focus(),n.select();try{document.execCommand("copy"),r.innerText="Copied",setTimeout((()=>{r.innerText="Copy"}),5e3)}catch(e){console.error("Unable to copy",e)}document.body.removeChild(n)}function Xe(e,t){return`${t.method} ${t.path} ${t.summary||t.description||""} ${t.operationId||""}`.toLowerCase().includes(e.toLowerCase())}function et(e,t=new Set){return e?(Object.keys(e).forEach((r=>{t.add(r),e[r].properties?et(e[r].properties,t):e[r].items&&e[r].items.properties&&et(e[r].items.properties,t)})),t):t}function tt(){const e=(window.location.hash||"").split("?")[1],t=new URLSearchParams(e);return decodeURIComponent(t.get("route")||"")}function rt(e){const t=e&&e.replace(/^#/,"")||"",r=(window.location.hash||"").split("?")[0].replace(/^#/,""),n=(window.location.hash||"").split("?")[1],a=new URLSearchParams(n);a.delete("route");const i=a.toString().length>1?`${a.toString()}&route=${t}`:`route=${t}`;window.history.replaceState(null,null,`#${r}?${i}`)}var nt=r(89356),at=r(63263),it=r(30699),ot=r(58377),st=r(28834),ct=r(13038),ut=r(32752),lt=r(44341);function pt(e,t,r){return t in e?lt(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dt(e,t){var r=nt(e);if(at){var n=at(e);t&&(n=it(n).call(n,(function(t){return ot(e,t).enumerable}))),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r,n,a=null!=arguments[t]?arguments[t]:{};t%2?st(r=dt(Object(a),!0)).call(r,(function(t){pt(e,t,a[t])})):ct?ut(e,ct(a)):st(n=dt(Object(a))).call(n,(function(t){lt(e,t,ot(a,t))}))}return e}var ht=r(51942),mt=r.n(ht),vt=r(29828),bt=r.n(vt),gt=r(8575),yt=r(51446),xt=r(19996),wt=r(78363),kt=r(95238),St=r(53592);function _t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function At(e,t){var r;if(e){if("string"==typeof e)return _t(e,t);var n=kt(r=Object.prototype.toString.call(e)).call(r,8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?St(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_t(e,t):void 0}}function Et(e,t){var r=void 0!==yt&&xt(e)||e["@@iterator"];if(!r){if(wt(e)||(r=At(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}var Ot=r(23882);function $t(e){return $t="function"==typeof yt&&"symbol"==typeof Ot?function(e){return typeof e}:function(e){return e&&"function"==typeof yt&&e.constructor===yt&&e!==yt.prototype?"symbol":typeof e},$t(e)}function jt(e,t){return function(e){if(wt(e))return e}(e)||function(e,t){var r=null==e?null:void 0!==yt&&xt(e)||e["@@iterator"];if(null!=r){var n,a,i=[],o=!0,s=!1;try{for(r=r.call(e);!(o=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==r.return||r.return()}finally{if(s)throw a}}return i}}(e,t)||At(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ct=r(69798);function Tt(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(e){return void r(e)}s.done?t(c):Ct.resolve(c).then(n,a)}function Pt(e){return function(){var t=this,r=arguments;return new Ct((function(n,a){var i=e.apply(t,r);function o(e){Tt(i,n,a,o,s,"next",e)}function s(e){Tt(i,n,a,o,s,"throw",e)}o(void 0)}))}}var It=r(63109),Rt=r.n(It),Nt=r(78580),Lt=r.n(Nt),zt=r(72119),Mt=r.n(zt),Ft=r(66419),qt=r.n(Ft),Dt=r(59340),Ut=r.n(Dt),Bt=r(2991),Ht=r.n(Bt),Vt=r(86902),Gt=r.n(Vt),Wt=r(77766),Kt=r.n(Wt),Jt=r(26295),Yt=r.n(Jt),Qt=r(20116),Zt=r.n(Qt),Xt=(r(31905),r(80129)),er=r.n(Xt);function tr(e){return null==e}var rr={isNothing:tr,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:tr(e)?[]:[e]},repeat:function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var r,n,a,i;if(t)for(r=0,n=(i=Object.keys(t)).length;r<n;r+=1)e[a=i[r]]=t[a];return e}};function nr(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),n+" "+r):n}function ar(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=nr(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}ar.prototype=Object.create(Error.prototype),ar.prototype.constructor=ar,ar.prototype.toString=function(e){return this.name+": "+nr(this,e)};var ir=ar;function or(e,t,r,n,a){var i="",o="",s=Math.floor(a/2)-1;return n-t>s&&(t=n-s+(i=" ... ").length),r-n>s&&(r=n+s-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+i.length}}function sr(e,t){return rr.repeat(" ",t-e.length)+e}var cr=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,n=/\r?\n|\r|\0/g,a=[0],i=[],o=-1;r=n.exec(e.buffer);)i.push(r.index),a.push(r.index+r[0].length),e.position<=r.index&&o<0&&(o=a.length-2);o<0&&(o=a.length-1);var s,c,u="",l=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+l+3);for(s=1;s<=t.linesBefore&&!(o-s<0);s++)c=or(e.buffer,a[o-s],i[o-s],e.position-(a[o]-a[o-s]),p),u=rr.repeat(" ",t.indent)+sr((e.line-s+1).toString(),l)+" | "+c.str+"\n"+u;for(c=or(e.buffer,a[o],i[o],e.position,p),u+=rr.repeat(" ",t.indent)+sr((e.line+1).toString(),l)+" | "+c.str+"\n",u+=rr.repeat("-",t.indent+l+3+c.pos)+"^\n",s=1;s<=t.linesAfter&&!(o+s>=i.length);s++)c=or(e.buffer,a[o+s],i[o+s],e.position-(a[o]-a[o+s]),p),u+=rr.repeat(" ",t.indent)+sr((e.line+s+1).toString(),l)+" | "+c.str+"\n";return u.replace(/\n$/,"")},ur=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],lr=["scalar","sequence","mapping"];var pr=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===ur.indexOf(t))throw new ir('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))})),t}(t.styleAliases||null),-1===lr.indexOf(this.kind))throw new ir('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function dr(e,t){var r=[];return e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)})),r[t]=e})),r}function fr(e){return this.extend(e)}fr.prototype.extend=function(e){var t=[],r=[];if(e instanceof pr)r.push(e);else if(Array.isArray(e))r=r.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new ir("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof pr))throw new ir("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new ir("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new ir("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(e){if(!(e instanceof pr))throw new ir("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create(fr.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=dr(n,"implicit"),n.compiledExplicit=dr(n,"explicit"),n.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(n.compiledImplicit,n.compiledExplicit),n};var hr=fr,mr=new pr("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),vr=new pr("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),br=new pr("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),gr=new hr({explicit:[mr,vr,br]});var yr=new pr("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});var xr=new pr("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function wr(e){return 48<=e&&e<=55}function kr(e){return 48<=e&&e<=57}var Sr=new pr("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=e.length,a=0,i=!1;if(!n)return!1;if("-"!==(t=e[a])&&"+"!==t||(t=e[++a]),"0"===t){if(a+1===n)return!0;if("b"===(t=e[++a])){for(a++;a<n;a++)if("_"!==(t=e[a])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(a++;a<n;a++)if("_"!==(t=e[a])){if(!(48<=(r=e.charCodeAt(a))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(a++;a<n;a++)if("_"!==(t=e[a])){if(!wr(e.charCodeAt(a)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;a<n;a++)if("_"!==(t=e[a])){if(!kr(e.charCodeAt(a)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,r=e,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(n=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!rr.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),_r=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var Ar=/^[-+]?[0-9]+e/;var Er=new pr("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!_r.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||rr.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(rr.isNegativeZero(e))return"-0.0";return r=e.toString(10),Ar.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),Or=gr.extend({implicit:[yr,xr,Sr,Er]}),$r=Or,jr=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Cr=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var Tr=new pr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==jr.exec(e)||null!==Cr.exec(e))},construct:function(e){var t,r,n,a,i,o,s,c,u=0,l=null;if(null===(t=jr.exec(e))&&(t=Cr.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(r,n,a));if(i=+t[4],o=+t[5],s=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(l=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(l=-l)),c=new Date(Date.UTC(r,n,a,i,o,s,u)),l&&c.setTime(c.getTime()-l),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var Pr=new pr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),Ir="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var Rr=new pr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,a=e.length,i=Ir;for(r=0;r<a;r++)if(!((t=i.indexOf(e.charAt(r)))>64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,n=e.replace(/[\r\n=]/g,""),a=n.length,i=Ir,o=0,s=[];for(t=0;t<a;t++)t%4==0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)),o=o<<6|i.indexOf(n.charAt(t));return 0===(r=a%4*6)?(s.push(o>>16&255),s.push(o>>8&255),s.push(255&o)):18===r?(s.push(o>>10&255),s.push(o>>2&255)):12===r&&s.push(o>>4&255),new Uint8Array(s)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",a=0,i=e.length,o=Ir;for(t=0;t<i;t++)t%3==0&&t&&(n+=o[a>>18&63],n+=o[a>>12&63],n+=o[a>>6&63],n+=o[63&a]),a=(a<<8)+e[t];return 0===(r=i%3)?(n+=o[a>>18&63],n+=o[a>>12&63],n+=o[a>>6&63],n+=o[63&a]):2===r?(n+=o[a>>10&63],n+=o[a>>4&63],n+=o[a<<2&63],n+=o[64]):1===r&&(n+=o[a>>2&63],n+=o[a<<4&63],n+=o[64],n+=o[64]),n}}),Nr=Object.prototype.hasOwnProperty,Lr=Object.prototype.toString;var zr=new pr("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,a,i,o=[],s=e;for(t=0,r=s.length;t<r;t+=1){if(n=s[t],i=!1,"[object Object]"!==Lr.call(n))return!1;for(a in n)if(Nr.call(n,a)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==o.indexOf(a))return!1;o.push(a)}return!0},construct:function(e){return null!==e?e:[]}}),Mr=Object.prototype.toString;var Fr=new pr("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,a,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],"[object Object]"!==Mr.call(n))return!1;if(1!==(a=Object.keys(n)).length)return!1;i[t]=[a[0],n[a[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,n,a,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],a=Object.keys(n),i[t]=[a[0],n[a[0]]];return i}}),qr=Object.prototype.hasOwnProperty;var Dr=new pr("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(qr.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),Ur=$r.extend({implicit:[Tr,Pr],explicit:[Rr,zr,Fr,Dr]}),Br=Object.prototype.hasOwnProperty,Hr=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Vr=/[\x85\u2028\u2029]/,Gr=/[,\[\]\{\}]/,Wr=/^(?:!|!!|![a-z\-]+!)$/i,Kr=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Jr(e){return Object.prototype.toString.call(e)}function Yr(e){return 10===e||13===e}function Qr(e){return 9===e||32===e}function Zr(e){return 9===e||32===e||10===e||13===e}function Xr(e){return 44===e||91===e||93===e||123===e||125===e}function en(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function tn(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function rn(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var nn=new Array(256),an=new Array(256),on=0;on<256;on++)nn[on]=tn(on)?1:0,an[on]=tn(on);function sn(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Ur,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function cn(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=cr(r),new ir(t,r)}function un(e,t){throw cn(e,t)}function ln(e,t){e.onWarning&&e.onWarning.call(null,cn(e,t))}var pn={YAML:function(e,t,r){var n,a,i;null!==e.version&&un(e,"duplication of %YAML directive"),1!==r.length&&un(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&un(e,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),i=parseInt(n[2],10),1!==a&&un(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&ln(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,a;2!==r.length&&un(e,"TAG directive accepts exactly two arguments"),n=r[0],a=r[1],Wr.test(n)||un(e,"ill-formed tag handle (first argument) of the TAG directive"),Br.call(e.tagMap,n)&&un(e,'there is a previously declared suffix for "'+n+'" tag handle'),Kr.test(a)||un(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch(t){un(e,"tag prefix is malformed: "+a)}e.tagMap[n]=a}};function dn(e,t,r,n){var a,i,o,s;if(t<r){if(s=e.input.slice(t,r),n)for(a=0,i=s.length;a<i;a+=1)9===(o=s.charCodeAt(a))||32<=o&&o<=1114111||un(e,"expected valid JSON character");else Hr.test(s)&&un(e,"the stream contains non-printable characters");e.result+=s}}function fn(e,t,r,n){var a,i,o,s;for(rr.isObject(r)||un(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,s=(a=Object.keys(r)).length;o<s;o+=1)i=a[o],Br.call(t,i)||(t[i]=r[i],n[i]=!0)}function hn(e,t,r,n,a,i,o,s,c){var u,l;if(Array.isArray(a))for(u=0,l=(a=Array.prototype.slice.call(a)).length;u<l;u+=1)Array.isArray(a[u])&&un(e,"nested arrays are not supported inside keys"),"object"==typeof a&&"[object Object]"===Jr(a[u])&&(a[u]="[object Object]");if("object"==typeof a&&"[object Object]"===Jr(a)&&(a="[object Object]"),a=String(a),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(u=0,l=i.length;u<l;u+=1)fn(e,t,i[u],r);else fn(e,t,i,r);else e.json||Br.call(r,a)||!Br.call(t,a)||(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=c||e.position,un(e,"duplicated mapping key")),"__proto__"===a?Object.defineProperty(t,a,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[a]=i,delete r[a];return t}function mn(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):un(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function vn(e,t,r){for(var n=0,a=e.input.charCodeAt(e.position);0!==a;){for(;Qr(a);)9===a&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),a=e.input.charCodeAt(++e.position);if(t&&35===a)do{a=e.input.charCodeAt(++e.position)}while(10!==a&&13!==a&&0!==a);if(!Yr(a))break;for(mn(e),a=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent<r&&ln(e,"deficient indentation"),n}function bn(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!Zr(t)))}function gn(e,t){1===t?e.result+=" ":t>1&&(e.result+=rr.repeat("\n",t-1))}function yn(e,t){var r,n,a=e.tag,i=e.anchor,o=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,un(e,"tab characters must not be used in indentation")),45===n)&&Zr(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,vn(e,!0,-1)&&e.lineIndent<=t)o.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,kn(e,t,3,!1,!0),o.push(e.result),vn(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)un(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=a,e.anchor=i,e.kind="sequence",e.result=o,!0)}function xn(e){var t,r,n,a,i=!1,o=!1;if(33!==(a=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&un(e,"duplication of a tag property"),60===(a=e.input.charCodeAt(++e.position))?(i=!0,a=e.input.charCodeAt(++e.position)):33===a?(o=!0,r="!!",a=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do{a=e.input.charCodeAt(++e.position)}while(0!==a&&62!==a);e.position<e.length?(n=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):un(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==a&&!Zr(a);)33===a&&(o?un(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),Wr.test(r)||un(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),Gr.test(n)&&un(e,"tag suffix cannot contain flow indicator characters")}n&&!Kr.test(n)&&un(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){un(e,"tag name is malformed: "+n)}return i?e.tag=n:Br.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:un(e,'undeclared tag handle "'+r+'"'),!0}function wn(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&un(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!Zr(r)&&!Xr(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&un(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function kn(e,t,r,n,a){var i,o,s,c,u,l,p,d,f,h=1,m=!1,v=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=o=s=4===r||3===r,n&&vn(e,!0,-1)&&(m=!0,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)),1===h)for(;xn(e)||wn(e);)vn(e,!0,-1)?(m=!0,s=i,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)):s=!1;if(s&&(s=m||a),1!==h&&4!==r||(d=1===r||2===r?t:t+1,f=e.position-e.lineStart,1===h?s&&(yn(e,f)||function(e,t,r){var n,a,i,o,s,c,u,l=e.tag,p=e.anchor,d={},f=Object.create(null),h=null,m=null,v=null,b=!1,g=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=d),u=e.input.charCodeAt(e.position);0!==u;){if(b||-1===e.firstTabInLine||(e.position=e.firstTabInLine,un(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,63!==u&&58!==u||!Zr(n)){if(o=e.line,s=e.lineStart,c=e.position,!kn(e,r,2,!1,!0))break;if(e.line===i){for(u=e.input.charCodeAt(e.position);Qr(u);)u=e.input.charCodeAt(++e.position);if(58===u)Zr(u=e.input.charCodeAt(++e.position))||un(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(hn(e,d,f,h,m,null,o,s,c),h=m=v=null),g=!0,b=!1,a=!1,h=e.tag,m=e.result;else{if(!g)return e.tag=l,e.anchor=p,!0;un(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!g)return e.tag=l,e.anchor=p,!0;un(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===u?(b&&(hn(e,d,f,h,m,null,o,s,c),h=m=v=null),g=!0,b=!0,a=!0):b?(b=!1,a=!0):un(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,u=n;if((e.line===i||e.lineIndent>t)&&(b&&(o=e.line,s=e.lineStart,c=e.position),kn(e,t,4,!0,a)&&(b?m=e.result:v=e.result),b||(hn(e,d,f,h,m,v,o,s,c),h=m=v=null),vn(e,!0,-1),u=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==u)un(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return b&&hn(e,d,f,h,m,null,o,s,c),g&&(e.tag=l,e.anchor=p,e.kind="mapping",e.result=d),g}(e,f,d))||function(e,t){var r,n,a,i,o,s,c,u,l,p,d,f,h=!0,m=e.tag,v=e.anchor,b=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))o=93,u=!1,i=[];else{if(123!==f)return!1;o=125,u=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),f=e.input.charCodeAt(++e.position);0!==f;){if(vn(e,!0,t),(f=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=m,e.anchor=v,e.kind=u?"mapping":"sequence",e.result=i,!0;h?44===f&&un(e,"expected the node content, but found ','"):un(e,"missed comma between flow collection entries"),d=null,s=c=!1,63===f&&Zr(e.input.charCodeAt(e.position+1))&&(s=c=!0,e.position++,vn(e,!0,t)),r=e.line,n=e.lineStart,a=e.position,kn(e,t,1,!1,!0),p=e.tag,l=e.result,vn(e,!0,t),f=e.input.charCodeAt(e.position),!c&&e.line!==r||58!==f||(s=!0,f=e.input.charCodeAt(++e.position),vn(e,!0,t),kn(e,t,1,!1,!0),d=e.result),u?hn(e,i,b,p,l,d,r,n,a):s?i.push(hn(e,null,b,p,l,d,r,n,a)):i.push(l),vn(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(h=!0,f=e.input.charCodeAt(++e.position)):h=!1}un(e,"unexpected end of the stream within a flow collection")}(e,d)?v=!0:(o&&function(e,t){var r,n,a,i,o,s=1,c=!1,u=!1,l=t,p=0,d=!1;if(124===(i=e.input.charCodeAt(e.position)))n=!1;else{if(62!==i)return!1;n=!0}for(e.kind="scalar",e.result="";0!==i;)if(43===(i=e.input.charCodeAt(++e.position))||45===i)1===s?s=43===i?3:2:un(e,"repeat of a chomping mode identifier");else{if(!((a=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===a?un(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?un(e,"repeat of an indentation width identifier"):(l=t+a-1,u=!0)}if(Qr(i)){do{i=e.input.charCodeAt(++e.position)}while(Qr(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!Yr(i)&&0!==i)}for(;0!==i;){for(mn(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!u||e.lineIndent<l)&&32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>l&&(l=e.lineIndent),Yr(i))p++;else{if(e.lineIndent<l){3===s?e.result+=rr.repeat("\n",c?1+p:p):1===s&&c&&(e.result+="\n");break}for(n?Qr(i)?(d=!0,e.result+=rr.repeat("\n",c?1+p:p)):d?(d=!1,e.result+=rr.repeat("\n",p+1)):0===p?c&&(e.result+=" "):e.result+=rr.repeat("\n",p):e.result+=rr.repeat("\n",c?1+p:p),c=!0,u=!0,p=0,r=e.position;!Yr(i)&&0!==i;)i=e.input.charCodeAt(++e.position);dn(e,r,e.position,!1)}}return!0}(e,d)||function(e,t){var r,n,a;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(dn(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,a=e.position}else Yr(r)?(dn(e,n,a,!0),gn(e,vn(e,!1,t)),n=a=e.position):e.position===e.lineStart&&bn(e)?un(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);un(e,"unexpected end of the stream within a single quoted scalar")}(e,d)||function(e,t){var r,n,a,i,o,s,c;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return dn(e,r,e.position,!0),e.position++,!0;if(92===s){if(dn(e,r,e.position,!0),Yr(s=e.input.charCodeAt(++e.position)))vn(e,!1,t);else if(s<256&&nn[s])e.result+=an[s],e.position++;else if((o=120===(c=s)?2:117===c?4:85===c?8:0)>0){for(a=o,i=0;a>0;a--)(o=en(s=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:un(e,"expected hexadecimal character");e.result+=rn(i),e.position++}else un(e,"unknown escape sequence");r=n=e.position}else Yr(s)?(dn(e,r,n,!0),gn(e,vn(e,!1,t)),r=n=e.position):e.position===e.lineStart&&bn(e)?un(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}un(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?v=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Zr(n)&&!Xr(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&un(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Br.call(e.anchorMap,r)||un(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],vn(e,!0,-1),!0}(e)?function(e,t,r){var n,a,i,o,s,c,u,l,p=e.kind,d=e.result;if(Zr(l=e.input.charCodeAt(e.position))||Xr(l)||35===l||38===l||42===l||33===l||124===l||62===l||39===l||34===l||37===l||64===l||96===l)return!1;if((63===l||45===l)&&(Zr(n=e.input.charCodeAt(e.position+1))||r&&Xr(n)))return!1;for(e.kind="scalar",e.result="",a=i=e.position,o=!1;0!==l;){if(58===l){if(Zr(n=e.input.charCodeAt(e.position+1))||r&&Xr(n))break}else if(35===l){if(Zr(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&bn(e)||r&&Xr(l))break;if(Yr(l)){if(s=e.line,c=e.lineStart,u=e.lineIndent,vn(e,!1,-1),e.lineIndent>=t){o=!0,l=e.input.charCodeAt(e.position);continue}e.position=i,e.line=s,e.lineStart=c,e.lineIndent=u;break}}o&&(dn(e,a,i,!1),gn(e,e.line-s),a=i=e.position,o=!1),Qr(l)||(i=e.position+1),l=e.input.charCodeAt(++e.position)}return dn(e,a,i,!1),!!e.result||(e.kind=p,e.result=d,!1)}(e,d,1===r)&&(v=!0,null===e.tag&&(e.tag="?")):(v=!0,null===e.tag&&null===e.anchor||un(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===h&&(v=s&&yn(e,f))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&un(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,u=e.implicitTypes.length;c<u;c+=1)if((p=e.implicitTypes[c]).resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(Br.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,c=0,u=(l=e.typeMap.multi[e.kind||"fallback"]).length;c<u;c+=1)if(e.tag.slice(0,l[c].tag.length)===l[c].tag){p=l[c];break}p||un(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&un(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):un(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||v}function Sn(e){var t,r,n,a,i=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(a=e.input.charCodeAt(e.position))&&(vn(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==a));){for(o=!0,a=e.input.charCodeAt(++e.position),t=e.position;0!==a&&!Zr(a);)a=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&un(e,"directive name must not be less than one character in length");0!==a;){for(;Qr(a);)a=e.input.charCodeAt(++e.position);if(35===a){do{a=e.input.charCodeAt(++e.position)}while(0!==a&&!Yr(a));break}if(Yr(a))break;for(t=e.position;0!==a&&!Zr(a);)a=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==a&&mn(e),Br.call(pn,r)?pn[r](e,r,n):ln(e,'unknown document directive "'+r+'"')}vn(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,vn(e,!0,-1)):o&&un(e,"directives end mark is expected"),kn(e,e.lineIndent-1,4,!1,!0),vn(e,!0,-1),e.checkLineBreaks&&Vr.test(e.input.slice(i,e.position))&&ln(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&bn(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,vn(e,!0,-1)):e.position<e.length-1&&un(e,"end of the stream or a document separator is expected")}function _n(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new sn(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,un(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Sn(r);return r.documents}var An=function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=_n(e,r);if("function"!=typeof t)return n;for(var a=0,i=n.length;a<i;a+=1)t(n[a])},En=function(e,t){var r=_n(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new ir("expected a single document in the stream, but found more")}},On={loadAll:An,load:En},$n=Object.prototype.toString,jn=Object.prototype.hasOwnProperty,Cn=65279,Tn={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},Pn=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],In=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Rn(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else{if(!(e<=4294967295))throw new ir("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+rr.repeat("0",n-t.length)+t}function Nn(e){this.schema=e.schema||Ur,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=rr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,a,i,o,s,c;if(null===t)return{};for(r={},a=0,i=(n=Object.keys(t)).length;a<i;a+=1)o=n[a],s=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(c=e.compiledTypeMap.fallback[o])&&jn.call(c.styleAliases,s)&&(s=c.styleAliases[s]),r[o]=s;return r}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ln(e,t){for(var r,n=rr.repeat(" ",t),a=0,i=-1,o="",s=e.length;a<s;)-1===(i=e.indexOf("\n",a))?(r=e.slice(a),a=s):(r=e.slice(a,i+1),a=i+1),r.length&&"\n"!==r&&(o+=n),o+=r;return o}function zn(e,t){return"\n"+rr.repeat(" ",e.indent*t)}function Mn(e){return 32===e||9===e}function Fn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==Cn||65536<=e&&e<=1114111}function qn(e){return Fn(e)&&e!==Cn&&13!==e&&10!==e}function Dn(e,t,r){var n=qn(e),a=n&&!Mn(e);return(r?n:n&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!a)||qn(t)&&!Mn(t)&&35===e||58===t&&a}function Un(e,t){var r,n=e.charCodeAt(t);return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function Bn(e){return/^\n* /.test(e)}function Hn(e,t,r,n,a,i,o,s){var c,u,l=0,p=null,d=!1,f=!1,h=-1!==n,m=-1,v=Fn(u=Un(e,0))&&u!==Cn&&!Mn(u)&&45!==u&&63!==u&&58!==u&&44!==u&&91!==u&&93!==u&&123!==u&&125!==u&&35!==u&&38!==u&&42!==u&&33!==u&&124!==u&&61!==u&&62!==u&&39!==u&&34!==u&&37!==u&&64!==u&&96!==u&&function(e){return!Mn(e)&&58!==e}(Un(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(!Fn(l=Un(e,c)))return 5;v=v&&Dn(l,p,s),p=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(10===(l=Un(e,c)))d=!0,h&&(f=f||c-m-1>n&&" "!==e[m+1],m=c);else if(!Fn(l))return 5;v=v&&Dn(l,p,s),p=l}f=f||h&&c-m-1>n&&" "!==e[m+1]}return d||f?r>9&&Bn(e)?5:o?2===i?5:2:f?4:3:!v||o||a(e)?2===i?5:2:1}function Vn(e,t,r,n,a){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==Pn.indexOf(t)||In.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,r),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=n||e.flowLevel>-1&&r>=e.flowLevel;switch(Hn(t,s,e.indent,o,(function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!n,a)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+Gn(t,e.indent)+Wn(Ln(t,i));case 4:return">"+Gn(t,e.indent)+Wn(Ln(function(e,t){var r,n,a=/(\n+)([^\n]*)/g,i=(s=e.indexOf("\n"),s=-1!==s?s:e.length,a.lastIndex=s,Kn(e.slice(0,s),t)),o="\n"===e[0]||" "===e[0];var s;for(;n=a.exec(e);){var c=n[1],u=n[2];r=" "===u[0],i+=c+(o||r||""===u?"":"\n")+Kn(u,t),o=r}return i}(t,o),i));case 5:return'"'+function(e){for(var t,r="",n=0,a=0;a<e.length;n>=65536?a+=2:a++)n=Un(e,a),!(t=Tn[n])&&Fn(n)?(r+=e[a],n>=65536&&(r+=e[a+1])):r+=t||Rn(n);return r}(t)+'"';default:throw new ir("impossible error: invalid scalar style")}}()}function Gn(e,t){var r=Bn(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function Wn(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Kn(e,t){if(""===e||" "===e[0])return e;for(var r,n,a=/ [^ ]/g,i=0,o=0,s=0,c="";r=a.exec(e);)(s=r.index)-i>t&&(n=o>i?o:s,c+="\n"+e.slice(i,n),i=n+1),o=s;return c+="\n",e.length-i>t&&o>i?c+=e.slice(i,o)+"\n"+e.slice(o+1):c+=e.slice(i),c.slice(1)}function Jn(e,t,r,n){var a,i,o,s="",c=e.tag;for(a=0,i=r.length;a<i;a+=1)o=r[a],e.replacer&&(o=e.replacer.call(r,String(a),o)),(Qn(e,t+1,o,!0,!0,!1,!0)||void 0===o&&Qn(e,t+1,null,!0,!0,!1,!0))&&(n&&""===s||(s+=zn(e,t)),e.dump&&10===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=c,e.dump=s||"[]"}function Yn(e,t,r){var n,a,i,o,s,c;for(i=0,o=(a=r?e.explicitTypes:e.implicitTypes).length;i<o;i+=1)if(((s=a[i]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof t&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(r?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,"[object Function]"===$n.call(s.represent))n=s.represent(t,c);else{if(!jn.call(s.represent,c))throw new ir("!<"+s.tag+'> tag resolver accepts not "'+c+'" style');n=s.represent[c](t,c)}e.dump=n}return!0}return!1}function Qn(e,t,r,n,a,i,o){e.tag=null,e.dump=r,Yn(e,r,!1)||Yn(e,r,!0);var s,c=$n.call(e.dump),u=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var l,p,d="[object Object]"===c||"[object Array]"===c;if(d&&(p=-1!==(l=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&t>0)&&(a=!1),p&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(d&&p&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),"[object Object]"===c)n&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var a,i,o,s,c,u,l="",p=e.tag,d=Object.keys(r);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new ir("sortKeys must be a boolean or a function");for(a=0,i=d.length;a<i;a+=1)u="",n&&""===l||(u+=zn(e,t)),s=r[o=d[a]],e.replacer&&(s=e.replacer.call(r,o,s)),Qn(e,t+1,o,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,c&&(u+=zn(e,t)),Qn(e,t+1,s,!0,c)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",l+=u+=e.dump));e.tag=p,e.dump=l||"{}"}(e,t,e.dump,a),p&&(e.dump="&ref_"+l+e.dump)):(!function(e,t,r){var n,a,i,o,s,c="",u=e.tag,l=Object.keys(r);for(n=0,a=l.length;n<a;n+=1)s="",""!==c&&(s+=", "),e.condenseFlow&&(s+='"'),o=r[i=l[n]],e.replacer&&(o=e.replacer.call(r,i,o)),Qn(e,t,i,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Qn(e,t,o,!1,!1)&&(c+=s+=e.dump));e.tag=u,e.dump="{"+c+"}"}(e,t,e.dump),p&&(e.dump="&ref_"+l+" "+e.dump));else if("[object Array]"===c)n&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?Jn(e,t-1,e.dump,a):Jn(e,t,e.dump,a),p&&(e.dump="&ref_"+l+e.dump)):(!function(e,t,r){var n,a,i,o="",s=e.tag;for(n=0,a=r.length;n<a;n+=1)i=r[n],e.replacer&&(i=e.replacer.call(r,String(n),i)),(Qn(e,t,i,!1,!1)||void 0===i&&Qn(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=s,e.dump="["+o+"]"}(e,t,e.dump),p&&(e.dump="&ref_"+l+" "+e.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(e.skipInvalid)return!1;throw new ir("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&Vn(e,e.dump,t,i,u)}null!==e.tag&&"?"!==e.tag&&(s=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),s="!"===e.tag[0]?"!"+s:"tag:yaml.org,2002:"===s.slice(0,18)?"!!"+s.slice(18):"!<"+s+">",e.dump=s+" "+e.dump)}return!0}function Zn(e,t){var r,n,a=[],i=[];for(Xn(e,a,i),r=0,n=i.length;r<n;r+=1)t.duplicates.push(a[i[r]]);t.usedDuplicates=new Array(n)}function Xn(e,t,r){var n,a,i;if(null!==e&&"object"==typeof e)if(-1!==(a=t.indexOf(e)))-1===r.indexOf(a)&&r.push(a);else if(t.push(e),Array.isArray(e))for(a=0,i=e.length;a<i;a+=1)Xn(e[a],t,r);else for(a=0,i=(n=Object.keys(e)).length;a<i;a+=1)Xn(e[n[a]],t,r)}var ea=function(e,t){var r=new Nn(t=t||{});r.noRefs||Zn(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Qn(r,0,n,!0,!0)?r.dump+"\n":""};function ta(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}const ra={Type:pr,Schema:hr,FAILSAFE_SCHEMA:gr,JSON_SCHEMA:Or,CORE_SCHEMA:$r,DEFAULT_SCHEMA:Ur,load:On.load,loadAll:On.loadAll,dump:{dump:ea}.dump,YAMLException:ir,types:{binary:Rr,float:Er,map:br,null:yr,pairs:Fr,set:Dr,timestamp:Tr,bool:xr,int:Sr,merge:Pr,omap:zr,seq:vr,str:mr},safeLoad:ta("safeLoad","load"),safeLoadAll:ta("safeLoadAll","loadAll"),safeDump:ta("safeDump","dump")},na="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{FormData:aa,Blob:ia,File:oa}=na;function sa(e){return function(e){if(wt(e))return _t(e)}(e)||function(e){if(void 0!==yt&&null!=xt(e)||null!=e["@@iterator"])return St(e)}(e)||At(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ca=r(3649),ua=r.n(ca),la=function(e){return":/?#[]@!$&'()*+,;=".indexOf(e)>-1},pa=function(e){return/^[a-z0-9\-._~]+$/i.test(e)};function da(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.escape,a=arguments.length>2?arguments[2]:void 0;return"number"==typeof e&&(e=e.toString()),"string"==typeof e&&e.length&&n?a?JSON.parse(e):Ht()(t=sa(e)).call(t,(function(e){var t,r;if(pa(e))return e;if(la(e)&&"unsafe"===n)return e;var a=new TextEncoder;return Ht()(t=Ht()(r=qt()(a.encode(e))).call(r,(function(e){var t;return ua()(t="0".concat(e.toString(16).toUpperCase())).call(t,-2)}))).call(t,(function(e){return"%".concat(e)})).join("")})).join(""):e}function fa(e){var t=e.value;return Array.isArray(t)?function(e){var t=e.key,r=e.value,n=e.style,a=e.explode,i=e.escape,o=function(e){return da(e,{escape:i})};if("simple"===n)return Ht()(r).call(r,(function(e){return o(e)})).join(",");if("label"===n)return".".concat(Ht()(r).call(r,(function(e){return o(e)})).join("."));if("matrix"===n)return Ht()(r).call(r,(function(e){return o(e)})).reduce((function(e,r){var n,i,o;return!e||a?Kt()(i=Kt()(o="".concat(e||"",";")).call(o,t,"=")).call(i,r):Kt()(n="".concat(e,",")).call(n,r)}),"");if("form"===n){var s=a?"&".concat(t,"="):",";return Ht()(r).call(r,(function(e){return o(e)})).join(s)}if("spaceDelimited"===n){var c=a?"".concat(t,"="):"";return Ht()(r).call(r,(function(e){return o(e)})).join(" ".concat(c))}if("pipeDelimited"===n){var u=a?"".concat(t,"="):"";return Ht()(r).call(r,(function(e){return o(e)})).join("|".concat(u))}return}(e):"object"===$t(t)?function(e){var t=e.key,r=e.value,n=e.style,a=e.explode,i=e.escape,o=function(e){return da(e,{escape:i})},s=Gt()(r);if("simple"===n)return s.reduce((function(e,t){var n,i,s,c=o(r[t]),u=a?"=":",",l=e?"".concat(e,","):"";return Kt()(n=Kt()(i=Kt()(s="".concat(l)).call(s,t)).call(i,u)).call(n,c)}),"");if("label"===n)return s.reduce((function(e,t){var n,i,s,c=o(r[t]),u=a?"=":".",l=e?"".concat(e,"."):".";return Kt()(n=Kt()(i=Kt()(s="".concat(l)).call(s,t)).call(i,u)).call(n,c)}),"");if("matrix"===n&&a)return s.reduce((function(e,t){var n,a,i=o(r[t]),s=e?"".concat(e,";"):";";return Kt()(n=Kt()(a="".concat(s)).call(a,t,"=")).call(n,i)}),"");if("matrix"===n)return s.reduce((function(e,n){var a,i,s=o(r[n]),c=e?"".concat(e,","):";".concat(t,"=");return Kt()(a=Kt()(i="".concat(c)).call(i,n,",")).call(a,s)}),"");if("form"===n)return s.reduce((function(e,t){var n,i,s,c,u=o(r[t]),l=e?Kt()(n="".concat(e)).call(n,a?"&":","):"",p=a?"=":",";return Kt()(i=Kt()(s=Kt()(c="".concat(l)).call(c,t)).call(s,p)).call(i,u)}),"");return}(e):function(e){var t,r=e.key,n=e.value,a=e.style,i=e.escape,o=function(e){return da(e,{escape:i})};if("simple"===a)return o(n);if("label"===a)return".".concat(o(n));if("matrix"===a)return Kt()(t=";".concat(r,"=")).call(t,o(n));if("form"===a)return o(n);if("deepObject"===a)return o(n,{},!0);return}(e)}const ha=function(e,t){t.body=e};var ma={serializeRes:xa,mergeInQueryOrForm:Ta};function va(e){return ba.apply(this,arguments)}function ba(){return ba=Pt(Rt().mark((function e(t){var r,n,a,i,o,s=arguments;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=s.length>1&&void 0!==s[1]?s[1]:{},"object"===$t(t)&&(t=(r=t).url),r.headers=r.headers||{},ma.mergeInQueryOrForm(r),r.headers&&Gt()(r.headers).forEach((function(e){var t=r.headers[e];"string"==typeof t&&(r.headers[e]=t.replace(/\n+/g," "))})),!r.requestInterceptor){e.next=12;break}return e.next=8,r.requestInterceptor(r);case 8:if(e.t0=e.sent,e.t0){e.next=11;break}e.t0=r;case 11:r=e.t0;case 12:return n=r.headers["content-type"]||r.headers["Content-Type"],/multipart\/form-data/i.test(n)&&r.body instanceof aa&&(delete r.headers["content-type"],delete r.headers["Content-Type"]),e.prev=14,e.next=17,(r.userFetch||fetch)(r.url,r);case 17:return a=e.sent,e.next=20,ma.serializeRes(a,t,r);case 20:if(a=e.sent,!r.responseInterceptor){e.next=28;break}return e.next=24,r.responseInterceptor(a);case 24:if(e.t1=e.sent,e.t1){e.next=27;break}e.t1=a;case 27:a=e.t1;case 28:e.next=39;break;case 30:if(e.prev=30,e.t2=e.catch(14),a){e.next=34;break}throw e.t2;case 34:throw(i=new Error(a.statusText||"response status is ".concat(a.status))).status=a.status,i.statusCode=a.status,i.responseError=e.t2,i;case 39:if(a.ok){e.next=45;break}throw(o=new Error(a.statusText||"response status is ".concat(a.status))).status=a.status,o.statusCode=a.status,o.response=a,o;case 45:return e.abrupt("return",a);case 46:case"end":return e.stop()}}),e,null,[[14,30]])}))),ba.apply(this,arguments)}var ga=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(e)};function ya(e,t){return t&&(0===t.indexOf("application/json")||t.indexOf("+json")>0)?JSON.parse(e):ra.load(e)}function xa(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.loadSpec,a=void 0!==n&&n,i={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:ka(e.headers)},o=i.headers["content-type"],s=a||ga(o),c=s?e.text:e.blob||e.buffer;return c.call(e).then((function(e){if(i.text=e,i.data=e,s)try{var t=ya(e,o);i.body=t,i.obj=t}catch(e){i.parseError=e}return i}))}function wa(e){return Lt()(e).call(e,", ")?e.split(", "):e}function ka(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"function"!=typeof Mt()(e)?{}:qt()(Mt()(e).call(e)).reduce((function(e,t){var r=jt(t,2),n=r[0],a=r[1];return e[n]=wa(a),e}),{})}function Sa(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!==$t(e)||"string"!=typeof e.uri):void 0!==oa&&e instanceof oa||(void 0!==ia&&e instanceof ia||(!!ArrayBuffer.isView(e)||null!==e&&"object"===$t(e)&&"function"==typeof e.pipe))}function _a(e,t){return Array.isArray(e)&&e.some((function(e){return Sa(e,t)}))}var Aa={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Ea={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function Oa(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t.collectionFormat,a=t.allowEmptyValue,i=t.serializationOption,o=t.encoding,s="object"!==$t(t)||Array.isArray(t)?t:t.value,c=r?function(e){return e.toString()}:function(e){return encodeURIComponent(e)},u=c(e);if(void 0===s&&a)return[[u,""]];if(Sa(s)||_a(s))return[[u,s]];if(i)return $a(e,s,r,i);if(o){if([$t(o.style),$t(o.explode),$t(o.allowReserved)].some((function(e){return"undefined"!==e}))){var l=o.style,p=o.explode,d=o.allowReserved;return $a(e,s,r,{style:l,explode:p,allowReserved:d})}if(o.contentType){if("application/json"===o.contentType){var f="string"==typeof s?s:Ut()(s);return[[u,c(f)]]}return[[u,c(s.toString())]]}return"object"!==$t(s)?[[u,c(s)]]:Array.isArray(s)&&s.every((function(e){return"object"!==$t(e)}))?[[u,Ht()(s).call(s,c).join(",")]]:[[u,c(Ut()(s))]]}return"object"!==$t(s)?[[u,c(s)]]:Array.isArray(s)?"multi"===n?[[u,Ht()(s).call(s,c)]]:[[u,Ht()(s).call(s,c).join(Ea[n||"csv"])]]:[[u,""]]}function $a(e,t,r,n){var a,i,o,s=n.style||"form",c=void 0===n.explode?"form"===s:n.explode,u=!r&&(n&&n.allowReserved?"unsafe":"reserved"),l=function(e){return da(e,{escape:u})},p=r?function(e){return e}:function(e){return da(e,{escape:u})};return"object"!==$t(t)?[[p(e),l(t)]]:Array.isArray(t)?c?[[p(e),Ht()(t).call(t,l)]]:[[p(e),Ht()(t).call(t,l).join(Aa[s])]]:"deepObject"===s?Ht()(i=Gt()(t)).call(i,(function(r){var n;return[p(Kt()(n="".concat(e,"[")).call(n,r,"]")),l(t[r])]})):c?Ht()(o=Gt()(t)).call(o,(function(e){return[p(e),l(t[e])]})):[[p(e),Ht()(a=Gt()(t)).call(a,(function(e){var r;return[Kt()(r="".concat(p(e),",")).call(r,l(t[e]))]})).join(",")]]}function ja(e){return Yt()(e).reduce((function(e,t){var r,n=jt(t,2),a=Et(Oa(n[0],n[1],!0));try{for(a.s();!(r=a.n()).done;){var i=jt(r.value,2),o=i[0],s=i[1];if(Array.isArray(s)){var c,u=Et(s);try{for(u.s();!(c=u.n()).done;){var l=c.value;if(ArrayBuffer.isView(l)){var p=new ia([l]);e.append(o,p)}else e.append(o,l)}}catch(e){u.e(e)}finally{u.f()}}else if(ArrayBuffer.isView(s)){var d=new ia([s]);e.append(o,d)}else e.append(o,s)}}catch(e){a.e(e)}finally{a.f()}return e}),new aa)}function Ca(e){var t=Gt()(e).reduce((function(t,r){var n,a=Et(Oa(r,e[r]));try{for(a.s();!(n=a.n()).done;){var i=jt(n.value,2),o=i[0],s=i[1];t[o]=s}}catch(e){a.e(e)}finally{a.f()}return t}),{});return er().stringify(t,{encode:!1,indices:!1})||""}function Ta(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,r=void 0===t?"":t,n=e.query,a=e.form,i=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Zt()(t).call(t,(function(e){return e})).join("&");return n?"?".concat(n):""};if(a){var o=Gt()(a).some((function(e){var t=a[e].value;return Sa(t)||_a(t)})),s=e.headers["content-type"]||e.headers["Content-Type"];if(o||/multipart\/form-data/i.test(s)){var c=ja(e.form);ha(c,e)}else e.body=Ca(a);delete e.form}if(n){var u=r.split("?"),l=jt(u,2),p=l[0],d=l[1],f="";if(d){var h=er().parse(d),m=Gt()(n);m.forEach((function(e){return delete h[e]})),f=er().stringify(h,{encode:!0})}var v=i(f,Ca(n));e.url=p+v,delete e.query}return e}function Pa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ia(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),lt(e,n.key,n)}}function Ra(e,t,r){return t&&Ia(e.prototype,t),r&&Ia(e,r),lt(e,"prototype",{writable:!1}),e}var Na,La=r(94473),za=r.n(La),Ma=r(93476),Fa=r.n(Ma),qa=r(92762),Da=r.n(qa),Ua=(Na=function(e,t){return Na=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},Na(e,t)},function(e,t){function r(){this.constructor=e}Na(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Ba=Object.prototype.hasOwnProperty;function Ha(e,t){return Ba.call(e,t)}function Va(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var n=[];for(var a in e)Ha(e,a)&&n.push(a);return n}function Ga(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Wa(e){for(var t,r=0,n=e.length;r<n;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0}function Ka(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Ja(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ya(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Ya(e[t]))return!0}else if("object"==typeof e)for(var n=Va(e),a=n.length,i=0;i<a;i++)if(Ya(e[n[i]]))return!0;return!1}function Qa(e,t){var r=[e];for(var n in t){var a="object"==typeof t[n]?JSON.stringify(t[n],null,2):t[n];void 0!==a&&r.push(n+": "+a)}return r.join("\n")}var Za=function(e){function t(t,r,n,a,i){var o=this.constructor,s=e.call(this,Qa(t,{name:r,index:n,operation:a,tree:i}))||this;return s.name=r,s.index=n,s.operation=a,s.tree=i,Object.setPrototypeOf(s,o.prototype),s.message=Qa(t,{name:r,index:n,operation:a,tree:i}),s}return Ua(t,e),t}(Error),Xa=Za,ei=Ga,ti={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var n=e[t];return delete e[t],{newDocument:r,removed:n}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:function(e,t,r){var n=ni(r,this.path);n&&(n=Ga(n));var a=ai(r,{op:"remove",path:this.from}).removed;return ai(r,{op:"add",path:this.path,value:a}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=ni(r,this.from);return ai(r,{op:"add",path:this.path,value:Ga(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:ui(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},ri={add:function(e,t,r){return Wa(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){return{newDocument:r,removed:e.splice(t,1)[0]}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:ti.move,copy:ti.copy,test:ti.test,_get:ti._get};function ni(e,t){if(""==t)return e;var r={op:"_get",path:t};return ai(e,r),r.value}function ai(e,t,r,n,a,i){if(void 0===r&&(r=!1),void 0===n&&(n=!0),void 0===a&&(a=!0),void 0===i&&(i=0),r&&("function"==typeof r?r(t,0,e,t.path):si(t,0)),""===t.path){var o={newDocument:e};if("add"===t.op)return o.newDocument=t.value,o;if("replace"===t.op)return o.newDocument=t.value,o.removed=e,o;if("move"===t.op||"copy"===t.op)return o.newDocument=ni(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=ui(e,t.value),!1===o.test)throw new Xa("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o.newDocument=e,o}if("remove"===t.op)return o.removed=e,o.newDocument=null,o;if("_get"===t.op)return t.value=e,o;if(r)throw new Xa("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}n||(e=Ga(e));var s=(t.path||"").split("/"),c=e,u=1,l=s.length,p=void 0,d=void 0,f=void 0;for(f="function"==typeof r?r:si;;){if((d=s[u])&&-1!=d.indexOf("~")&&(d=Ja(d)),a&&("__proto__"==d||"prototype"==d&&u>0&&"constructor"==s[u-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&void 0===p&&(void 0===c[d]?p=s.slice(0,u).join("/"):u==l-1&&(p=t.path),void 0!==p&&f(t,0,e,p)),u++,Array.isArray(c)){if("-"===d)d=c.length;else{if(r&&!Wa(d))throw new Xa("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);Wa(d)&&(d=~~d)}if(u>=l){if(r&&"add"===t.op&&d>c.length)throw new Xa("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(o=ri[t.op].call(t,c,d,e)).test)throw new Xa("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(u>=l){if(!1===(o=ti[t.op].call(t,c,d,e)).test)throw new Xa("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(c=c[d],r&&u<l&&(!c||"object"!=typeof c))throw new Xa("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function ii(e,t,r,n,a){if(void 0===n&&(n=!0),void 0===a&&(a=!0),r&&!Array.isArray(t))throw new Xa("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=Ga(e));for(var i=new Array(t.length),o=0,s=t.length;o<s;o++)i[o]=ai(e,t[o],r,!0,a,o),e=i[o].newDocument;return i.newDocument=e,i}function oi(e,t,r){var n=ai(e,t);if(!1===n.test)throw new Xa("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function si(e,t,r,n){if("object"!=typeof e||null===e||Array.isArray(e))throw new Xa("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!ti[e.op])throw new Xa("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r);if("string"!=typeof e.path)throw new Xa("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new Xa('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new Xa("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new Xa("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&Ya(e.value))throw new Xa("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r)if("add"==e.op){var a=e.path.split("/").length,i=n.split("/").length;if(a!==i+1&&a!==i)throw new Xa("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==n)throw new Xa("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if("move"===e.op||"copy"===e.op){var o=ci([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new Xa("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function ci(e,t,r){try{if(!Array.isArray(e))throw new Xa("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)ii(Ga(t),Ga(e),r||!0);else{r=r||si;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(e){if(e instanceof Xa)return e;throw e}}function ui(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,n,a,i=Array.isArray(e),o=Array.isArray(t);if(i&&o){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!ui(e[r],t[r]))return!1;return!0}if(i!=o)return!1;var s=Object.keys(e);if((n=s.length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!t.hasOwnProperty(s[r]))return!1;for(r=n;0!=r--;)if(!ui(e[a=s[r]],t[a]))return!1;return!0}return e!=e&&t!=t}var li=new WeakMap,pi=function(e){this.observers=new Map,this.obj=e},di=function(e,t){this.callback=e,this.observer=t};function fi(e,t){t.unobserve()}function hi(e,t){var r,n=function(e){return li.get(e)}(e);if(n){var a=function(e,t){return e.observers.get(t)}(n,t);r=a&&a.observer}else n=new pi(e),li.set(e,n);if(r)return r;if(r={},n.value=Ga(e),t){r.callback=t,r.next=null;var i=function(){mi(r)},o=function(){clearTimeout(r.next),r.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return r.patches=[],r.object=e,r.unobserve=function(){mi(r),clearTimeout(r.next),function(e,t){e.observers.delete(t.callback)}(n,r),"undefined"!=typeof window&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},n.observers.set(t,new di(t,r)),r}function mi(e,t){void 0===t&&(t=!1);var r=li.get(e.object);vi(r.value,e.object,e.patches,"",t),e.patches.length&&ii(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function vi(e,t,r,n,a){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=Va(t),o=Va(e),s=!1,c=o.length-1;c>=0;c--){var u=e[p=o[c]];if(!Ha(t,p)||void 0===t[p]&&void 0!==u&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(a&&r.push({op:"test",path:n+"/"+Ka(p),value:Ga(u)}),r.push({op:"remove",path:n+"/"+Ka(p)}),s=!0):(a&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}),!0);else{var l=t[p];"object"==typeof u&&null!=u&&"object"==typeof l&&null!=l&&Array.isArray(u)===Array.isArray(l)?vi(u,l,r,n+"/"+Ka(p),a):u!==l&&(!0,a&&r.push({op:"test",path:n+"/"+Ka(p),value:Ga(u)}),r.push({op:"replace",path:n+"/"+Ka(p),value:Ga(l)}))}}if(s||i.length!=o.length)for(c=0;c<i.length;c++){var p;Ha(e,p=i[c])||void 0===t[p]||r.push({op:"add",path:n+"/"+Ka(p),value:Ga(t[p])})}}}function bi(e,t,r){void 0===r&&(r=!1);var n=[];return vi(e,t,n,"",r),n}Object.assign({},n,a,{JsonPatchError:Za,deepClone:Ga,escapePathComponent:Ka,unescapePathComponent:Ja});var gi=r(9996),yi=r.n(gi);const xi={add:function(e,t){return{op:"add",path:e,value:t}},replace:ki,remove:function(e){return{op:"remove",path:e}},merge:function(e,t){return{type:"mutation",op:"merge",path:e,value:t}},mergeDeep:function(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}},context:function(e,t){return{type:"context",path:e,value:t}},getIn:function(e,t){return t.reduce((function(e,t){return void 0!==t&&e?e[t]:e}),e)},applyPatch:function(e,t,r){if(r=r||{},"merge"===(t=ft(ft({},t),{},{path:t.path&&wi(t.path)})).op){var n=Ni(e,t.path);mt()(n,t.value),ii(e,[ki(t.path,n)])}else if("mergeDeep"===t.op){var a=Ni(e,t.path),i=yi()(a,t.value);e=ii(e,[ki(t.path,i)]).newDocument}else if("add"===t.op&&""===t.path&&ji(t.value)){var o=Gt()(t.value).reduce((function(e,r){return e.push({op:"add",path:"/".concat(wi(r)),value:t.value[r]}),e}),[]);ii(e,o)}else if("replace"===t.op&&""===t.path){var s=t.value;r.allowMetaPatches&&t.meta&&Ii(t)&&(Array.isArray(t.value)||ji(t.value))&&(s=ft(ft({},s),t.meta)),e=s}else if(ii(e,[t]),r.allowMetaPatches&&t.meta&&Ii(t)&&(Array.isArray(t.value)||ji(t.value))){var c=ft(ft({},Ni(e,t.path)),t.meta);ii(e,[ki(t.path,c)])}return e},parentPathMatch:function(e,t){if(!Array.isArray(t))return!1;for(var r=0,n=t.length;r<n;r+=1)if(t[r]!==e[r])return!1;return!0},flatten:Oi,fullyNormalizeArray:function(e){return $i(Oi(Ei(e)))},normalizeArray:Ei,isPromise:function(e){return ji(e)&&Ci(e.then)},forEachNew:function(e,t){try{return Si(e,Ai,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return Si(e,_i,t)}catch(e){return e}},isJsonPatch:Ti,isContextPatch:function(e){return Ri(e)&&"context"===e.type},isPatch:Ri,isMutation:Pi,isAdditiveMutation:Ii,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:Ci,isObject:ji,isError:function(e){return e instanceof Error}};function wi(e){return Array.isArray(e)?e.length<1?"":"/".concat(Ht()(e).call(e,(function(e){return(e+"").replace(/~/g,"~0").replace(/\//g,"~1")})).join("/")):e}function ki(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function Si(e,t,r){var n;return $i(Oi(Ht()(n=Zt()(e).call(e,Ii)).call(n,(function(e){return t(e.value,r,e.path)}))||[]))}function _i(e,t,r){return r=r||[],Array.isArray(e)?Ht()(e).call(e,(function(e,n){return _i(e,t,Kt()(r).call(r,n))})):ji(e)?Ht()(n=Gt()(e)).call(n,(function(n){return _i(e[n],t,Kt()(r).call(r,n))})):t(e,r[r.length-1],r);var n}function Ai(e,t,r){var n=[];if((r=r||[]).length>0){var a=t(e,r[r.length-1],r);a&&(n=Kt()(n).call(n,a))}if(Array.isArray(e)){var i=Ht()(e).call(e,(function(e,n){return Ai(e,t,Kt()(r).call(r,n))}));i&&(n=Kt()(n).call(n,i))}else if(ji(e)){var o,s=Ht()(o=Gt()(e)).call(o,(function(n){return Ai(e[n],t,Kt()(r).call(r,n))}));s&&(n=Kt()(n).call(n,s))}return n=Oi(n)}function Ei(e){return Array.isArray(e)?e:[e]}function Oi(e){var t;return Kt()(t=[]).apply(t,sa(Ht()(e).call(e,(function(e){return Array.isArray(e)?Oi(e):e}))))}function $i(e){return Zt()(e).call(e,(function(e){return void 0!==e}))}function ji(e){return e&&"object"===$t(e)}function Ci(e){return e&&"function"==typeof e}function Ti(e){if(Ri(e)){var t=e.op;return"add"===t||"remove"===t||"replace"===t}return!1}function Pi(e){return Ti(e)||Ri(e)&&"mutation"===e.type}function Ii(e){return Pi(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Ri(e){return e&&"object"===$t(e)}function Ni(e,t){try{return ni(e,t)}catch(e){return console.error(e),{}}}var Li=r(52424),zi=r.n(Li),Mi=r(94435),Fi=r.n(Mi);function qi(e,t){function r(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack;for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];this.message=r[0],t&&t.apply(this,r)}return r.prototype=new Error,r.prototype.name=e,r.prototype.constructor=r,r}var Di=r(13692),Ui=r.n(Di),Bi=["properties"],Hi=["properties"],Vi=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Gi=["schema/example","items/example"];function Wi(e){var t=e[e.length-1],r=e[e.length-2],n=e.join("/");return Bi.indexOf(t)>-1&&-1===Hi.indexOf(r)||Vi.indexOf(n)>-1||Gi.some((function(e){return n.indexOf(e)>-1}))}function Ki(e,t){var r,n=jt(e.split("#"),2),a=n[0],i=n[1],o=gt.resolve(a||"",t||"");return i?Kt()(r="".concat(o,"#")).call(r,i):o}var Ji="application/json, application/yaml",Yi=/^([a-z]+:\/\/|\/\/)/i,Qi=qi("JSONRefError",(function(e,t,r){this.originalError=r,mt()(this,t||{})})),Zi={},Xi=new(zi()),eo=[function(e){return"paths"===e[0]&&"responses"===e[3]&&"examples"===e[5]},function(e){return"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"example"===e[7]},function(e){return"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9]},function(e){return"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"example"===e[6]},function(e){return"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"example"===e[4]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"example"===e[5]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"examples"===e[4]&&"value"===e[6]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"examples"===e[5]&&"value"===e[7]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"example"===e[6]},function(e){return"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"content"===e[4]&&"example"===e[7]},function(e){return"paths"===e[0]&&"parameters"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9]}],to={key:"$ref",plugin:function(e,t,r,n){var a=n.getInstance(),i=ua()(r).call(r,0,-1);if(!Wi(i)&&!function(e){return eo.some((function(t){return t(e)}))}(i)){var o=n.getContext(r).baseDoc;if("string"!=typeof e)return new Qi("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});var s,c,u,l=oo(e),p=l[0],d=l[1]||"";try{s=o||p?ao(p,o):null}catch(t){return io(t,{pointer:d,$ref:e,basePath:s,fullPath:r})}if(function(e,t,r,n){var a,i,o=Xi.get(n);o||(o={},Xi.set(n,o));var s=function(e){if(0===e.length)return"";return"/".concat(Ht()(e).call(e,fo).join("/"))}(r),c=Kt()(a="".concat(t||"<specmap-base>","#")).call(a,e),u=s.replace(/allOf\/\d+\/?/g,""),l=n.contextTree.get([]).baseDoc;if(t===l&&ho(u,e))return!0;var p="",d=r.some((function(e){var t;return p=Kt()(t="".concat(p,"/")).call(t,fo(e)),o[p]&&o[p].some((function(e){return ho(e,c)||ho(c,e)}))}));if(d)return!0;return void(o[u]=Kt()(i=o[u]||[]).call(i,c))}(d,s,i,n)&&!a.useCircularStructures){var f=Ki(e,s);return e===f?null:xi.replace(r,f)}if(null==s?(u=lo(d),void 0===(c=n.get(u))&&(c=new Qi("Could not resolve reference: ".concat(e),{pointer:d,$ref:e,baseDoc:o,fullPath:r}))):c=null!=(c=so(s,d)).__value?c.__value:c.catch((function(t){throw io(t,{pointer:d,$ref:e,baseDoc:o,fullPath:r})})),c instanceof Error)return[xi.remove(r),c];var h=Ki(e,s),m=xi.replace(i,c,{$$ref:h});if(s&&s!==o)return[m,xi.context(i,{baseDoc:s})];try{if(!function(e,t){var r=[e];return t.path.reduce((function(e,t){return r.push(e[t]),e[t]}),e),n(t.value);function n(e){return xi.isObject(e)&&(r.indexOf(e)>=0||Gt()(e).some((function(t){return n(e[t])})))}}(n.state,m)||a.useCircularStructures)return m}catch(e){return null}}}},ro=mt()(to,{docCache:Zi,absoluteify:ao,clearCache:function(e){void 0!==e?delete Zi[e]:Gt()(Zi).forEach((function(e){delete Zi[e]}))},JSONRefError:Qi,wrapError:io,getDoc:co,split:oo,extractFromDoc:so,fetchJSON:function(e){return fetch(e,{headers:{Accept:Ji},loadSpec:!0}).then((function(e){return e.text()})).then((function(e){return ra.load(e)}))},extract:uo,jsonPointerToArray:lo,unescapeJsonPointerToken:po});const no=ro;function ao(e,t){if(!Yi.test(e)){var r;if(!t)throw new Qi(Kt()(r="Tried to resolve a relative URL, without having a basePath. path: '".concat(e,"' basePath: '")).call(r,t,"'"));return gt.resolve(t,e)}return e}function io(e,t){var r,n;e&&e.response&&e.response.body?r=Kt()(n="".concat(e.response.body.code," ")).call(n,e.response.body.message):r=e.message;return new Qi("Could not resolve reference: ".concat(r),t,e)}function oo(e){return(e+"").split("#")}function so(e,t){var r=Zi[e];if(r&&!xi.isPromise(r))try{var n=uo(t,r);return mt()(Fa().resolve(n),{__value:n})}catch(e){return Fa().reject(e)}return co(e).then((function(e){return uo(t,e)}))}function co(e){var t=Zi[e];return t?xi.isPromise(t)?t:Fa().resolve(t):(Zi[e]=ro.fetchJSON(e).then((function(t){return Zi[e]=t,t})),Zi[e])}function uo(e,t){var r=lo(e);if(r.length<1)return t;var n=xi.getIn(t,r);if(void 0===n)throw new Qi("Could not resolve pointer: ".concat(e," does not exist in document"),{pointer:e});return n}function lo(e){var t;if("string"!=typeof e)throw new TypeError("Expected a string, got a ".concat($t(e)));return"/"===e[0]&&(e=e.substr(1)),""===e?[]:Ht()(t=e.split("/")).call(t,po)}function po(e){return"string"!=typeof e?e:new(Fi())("=".concat(e.replace(/~1/g,"/").replace(/~0/g,"~"))).get("")}function fo(e){var t,r=new(Fi())([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]);return ua()(t=r.toString()).call(t,1)}function ho(e,t){if(!(r=t)||"/"===r||"#"===r)return!0;var r,n=e.charAt(t.length),a=ua()(t).call(t,-1);return 0===e.indexOf(t)&&(!n||"/"===n||"#"===n)&&"#"!==a}const mo={key:"allOf",plugin:function(e,t,r,n,a){if(!a.meta||!a.meta.$$ref){var i=ua()(r).call(r,0,-1);if(!Wi(i)){if(!Array.isArray(e)){var o=new TypeError("allOf must be an array");return o.fullPath=r,o}var s=!1,c=a.value;if(i.forEach((function(e){c&&(c=c[e])})),c=ft({},c),0!==Gt()(c).length){delete c.allOf;var u,l,p=[];if(p.push(n.replace(i,{})),e.forEach((function(e,t){if(!n.isObject(e)){if(s)return null;s=!0;var a=new TypeError("Elements in allOf must be objects");return a.fullPath=r,p.push(a)}p.push(n.mergeDeep(i,e));var o=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.specmap,a=r.getBaseUrlForNodePath,i=void 0===a?function(e){var r;return n.getContext(Kt()(r=[]).call(r,sa(t),sa(e))).baseDoc}:a,o=r.targetKeys,s=void 0===o?["$ref","$$ref"]:o,c=[];return Ui()(e).forEach((function(){if(Lt()(s).call(s,this.key)&&"string"==typeof this.node){var e=this.path,r=Kt()(t).call(t,this.path),a=Ki(this.node,i(e));c.push(n.replace(r,a))}})),c}(e,ua()(r).call(r,0,-1),{getBaseUrlForNodePath:function(e){var a;return n.getContext(Kt()(a=[]).call(a,sa(r),[t],sa(e))).baseDoc},specmap:n});p.push.apply(p,sa(o))})),c.example)p.push(n.remove(Kt()(u=[]).call(u,i,"example")));if(p.push(n.mergeDeep(i,c)),!c.$$ref)p.push(n.remove(Kt()(l=[]).call(l,i,"$$ref")));return p}}}}},vo={key:"parameters",plugin:function(e,t,r,n){if(Array.isArray(e)&&e.length){var a=mt()([],e),i=ua()(r).call(r,0,-1),o=ft({},xi.getIn(n.spec,i));return e.forEach((function(e,t){try{a[t].default=n.parameterMacro(o,e)}catch(e){var i=new Error(e);return i.fullPath=r,i}})),xi.replace(r,a)}return xi.replace(r,e)}},bo={key:"properties",plugin:function(e,t,r,n){var a=ft({},e);for(var i in e)try{a[i].default=n.modelPropertyMacro(a[i])}catch(e){var o=new Error(e);return o.fullPath=r,o}return xi.replace(r,a)}};var go=function(){function e(t){Pa(this,e),this.root=yo(t||{})}return Ra(e,[{key:"set",value:function(e,t){var r=this.getParent(e,!0);if(r){var n=e[e.length-1],a=r.children;a[n]?xo(a[n],t,r):a[n]=yo(t,r)}else xo(this.root,t,null)}},{key:"get",value:function(e){if((e=e||[]).length<1)return this.root.value;for(var t,r,n=this.root,a=0;a<e.length&&(r=e[a],(t=n.children)[r]);a+=1)n=t[r];return n&&n.protoValue}},{key:"getParent",value:function(e,t){return!e||e.length<1?null:e.length<2?this.root:ua()(e).call(e,0,-1).reduce((function(e,r){if(!e)return e;var n=e.children;return!n[r]&&t&&(n[r]=yo(null,e)),n[r]}),this.root)}}]),e}();function yo(e,t){return xo({children:{}},e,t)}function xo(e,t,r){return e.value=t||{},e.protoValue=r?ft(ft({},r.protoValue),e.value):e.value,Gt()(e.children).forEach((function(t){var r=e.children[t];e.children[t]=xo(r,r.value,e)})),e}var wo=function(){},ko=function(){function e(t){var r,n,a=this;Pa(this,e),mt()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new go,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:mt()(Object.create(this),xi,{getInstance:function(){return a}}),allowMetaPatches:!1},t),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=Zt()(r=Ht()(n=this.plugins).call(n,this.wrapPlugin.bind(this))).call(r,xi.isFunction),this.patches.push(xi.add([],this.spec)),this.patches.push(xi.context([],this.context)),this.updatePatches(this.patches)}return Ra(e,[{key:"debug",value:function(e){if(this.debugLevel===e){for(var t,r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];(t=console).log.apply(t,n)}}},{key:"verbose",value:function(e){if("verbose"===this.debugLevel){for(var t,r,n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];(t=console).log.apply(t,Kt()(r=["[".concat(e,"] ")]).call(r,a))}}},{key:"wrapPlugin",value:function(e,t){var r,n,a,i=this.pathDiscriminator,o=null;return e[this.pluginProp]?(o=e,r=e[this.pluginProp]):xi.isFunction(e)?r=e:xi.isObject(e)&&(n=e,a=function(e,t){return!Array.isArray(e)||e.every((function(e,r){return e===t[r]}))},r=Rt().mark((function e(t,r){var o,s,c,u,l,p;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:p=function(e,t,c){var u,l,d,f,h,m,v,b,g,y,x,w,k;return Rt().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(xi.isObject(e)){o.next=6;break}if(n.key!==t[t.length-1]){o.next=4;break}return o.next=4,n.plugin(e,n.key,t,r);case 4:o.next=30;break;case 6:u=t.length-1,l=t[u],d=t.indexOf("properties"),f="properties"===l&&u===d,h=r.allowMetaPatches&&s[e.$$ref],m=0,v=Gt()(e);case 12:if(!(m<v.length)){o.next=30;break}if(b=v[m],g=e[b],y=Kt()(t).call(t,b),x=xi.isObject(g),w=e.$$ref,h){o.next=22;break}if(!x){o.next=22;break}return r.allowMetaPatches&&w&&(s[w]=!0),o.delegateYield(p(g,y,c),"t0",22);case 22:if(f||b!==n.key){o.next=27;break}if(k=a(i,t),i&&!k){o.next=27;break}return o.next=27,n.plugin(g,b,y,r,c);case 27:m++,o.next=12;break;case 30:case"end":return o.stop()}}),o)},o=Rt().mark(p),s={},c=Et(Zt()(t).call(t,xi.isAdditiveMutation)),e.prev=4,c.s();case 6:if((u=c.n()).done){e.next=11;break}return l=u.value,e.delegateYield(p(l.value,l.path,l),"t0",9);case 9:e.next=6;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(4),c.e(e.t1);case 16:return e.prev=16,c.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[4,13,16,19]])}))),mt()(r.bind(o),{pluginName:e.name||t,isGenerator:xi.isGenerator(r)})}},{key:"nextPlugin",value:function(){var e,t=this;return za()(e=this.wrappedPlugins).call(e,(function(e){return t.getMutationsForPlugin(e).length>0}))}},{key:"nextPromisedPatch",value:function(){var e;if(this.promisedPatches.length>0)return Fa().race(Ht()(e=this.promisedPatches).call(e,(function(e){return e.value})))}},{key:"getPluginHistory",value:function(e){var t=this.constructor.getPluginName(e);return this.pluginHistory[t]||[]}},{key:"getPluginRunCount",value:function(e){return this.getPluginHistory(e).length}},{key:"getPluginHistoryTip",value:function(e){var t=this.getPluginHistory(e);return t&&t[t.length-1]||{}}},{key:"getPluginMutationIndex",value:function(e){var t=this.getPluginHistoryTip(e).mutationIndex;return"number"!=typeof t?-1:t}},{key:"updatePluginHistory",value:function(e,t){var r=this.constructor.getPluginName(e);this.pluginHistory[r]=this.pluginHistory[r]||[],this.pluginHistory[r].push(t)}},{key:"updatePatches",value:function(e){var t=this;xi.normalizeArray(e).forEach((function(e){if(e instanceof Error)t.errors.push(e);else try{if(!xi.isObject(e))return void t.debug("updatePatches","Got a non-object patch",e);if(t.showDebug&&t.allPatches.push(e),xi.isPromise(e.value))return t.promisedPatches.push(e),void t.promisedPatchThen(e);if(xi.isContextPatch(e))return void t.setContext(e.path,e.value);if(xi.isMutation(e))return void t.updateMutations(e)}catch(e){console.error(e),t.errors.push(e)}}))}},{key:"updateMutations",value:function(e){"object"===$t(e.value)&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value=ft({},e.value));var t=xi.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});t&&(this.mutations.push(e),this.state=t)}},{key:"removePromisedPatch",value:function(e){var t,r=this.promisedPatches.indexOf(e);r<0?this.debug("Tried to remove a promisedPatch that isn't there!"):Da()(t=this.promisedPatches).call(t,r,1)}},{key:"promisedPatchThen",value:function(e){var t=this;return e.value=e.value.then((function(r){var n=ft(ft({},e),{},{value:r});t.removePromisedPatch(e),t.updatePatches(n)})).catch((function(r){t.removePromisedPatch(e),t.updatePatches(r)})),e.value}},{key:"getMutations",value:function(e,t){var r;return e=e||0,"number"!=typeof t&&(t=this.mutations.length),ua()(r=this.mutations).call(r,e,t)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(e){var t=this.getPluginMutationIndex(e);return this.getMutations(t+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(e){return xi.getIn(this.state,e)}},{key:"_getContext",value:function(e){return this.contextTree.get(e)}},{key:"setContext",value:function(e,t){return this.contextTree.set(e,t)}},{key:"_hasRun",value:function(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}},{key:"dispatch",value:function(){var e,t=this,r=this,n=this.nextPlugin();if(!n){var a=this.nextPromisedPatch();if(a)return a.then((function(){return t.dispatch()})).catch((function(){return t.dispatch()}));var i={spec:this.state,errors:this.errors};return this.showDebug&&(i.patches=this.allPatches),Fa().resolve(i)}if(r.pluginCount=r.pluginCount||{},r.pluginCount[n]=(r.pluginCount[n]||0)+1,r.pluginCount[n]>100)return Fa().resolve({spec:r.state,errors:Kt()(e=r.errors).call(e,new Error("We've reached a hard limit of ".concat(100," plugin runs")))});if(n!==this.currentPlugin&&this.promisedPatches.length){var o,s=Ht()(o=this.promisedPatches).call(o,(function(e){return e.value}));return Fa().all(Ht()(s).call(s,(function(e){return e.then(wo,wo)}))).then((function(){return t.dispatch()}))}return function(){r.currentPlugin=n;var e=r.getCurrentMutations(),t=r.mutations.length-1;try{if(n.isGenerator){var a,i=Et(n(e,r.getLib()));try{for(i.s();!(a=i.n()).done;){c(a.value)}}catch(e){i.e(e)}finally{i.f()}}else{c(n(e,r.getLib()))}}catch(e){console.error(e),c([mt()(Object.create(e),{plugin:n})])}finally{r.updatePluginHistory(n,{mutationIndex:t})}return r.dispatch()}();function c(e){e&&(e=xi.fullyNormalizeArray(e),r.updatePatches(e,n))}}}],[{key:"getPluginName",value:function(e){return e.pluginName}},{key:"getPatchesOfType",value:function(e,t){return Zt()(e).call(e,t)}}]),e}();var So={refs:no,allOf:mo,parameters:vo,properties:bo},_o=function(e){return String.prototype.toLowerCase.call(e)},Ao=function(e){return e.replace(/[^\w]/gi,"_")};function Eo(e){var t=e.openapi;return!!t&&bt()(t).call(t,"3")}function Oo(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=n.v2OperationIdCompatibilityMode;if(!e||"object"!==$t(e))return null;var i=(e.operationId||"").replace(/\s/g,"");return i.length?Ao(e.operationId):$o(t,r,{v2OperationIdCompatibilityMode:a})}function $o(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.v2OperationIdCompatibilityMode;if(a){var i,o,s=Kt()(i="".concat(t.toLowerCase(),"_")).call(i,e).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return(s=s||Kt()(o="".concat(e.substring(1),"_")).call(o,t)).replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Kt()(r="".concat(_o(t))).call(r,Ao(e))}function jo(e,t){var r;return Kt()(r="".concat(_o(t),"-")).call(r,e)}function Co(e,t){return e&&e.paths?function(e,t){return To(e,t,!0)||null}(e,(function(e){var r=e.pathName,n=e.method,a=e.operation;if(!a||"object"!==$t(a))return!1;var i=a.operationId;return[Oo(a,r,n),jo(r,n),i].some((function(e){return e&&e===t}))})):null}function To(e,t,r){if(!e||"object"!==$t(e)||!e.paths||"object"!==$t(e.paths))return null;var n=e.paths;for(var a in n)for(var i in n[a])if("PARAMETERS"!==i.toUpperCase()){var o=n[a][i];if(o&&"object"===$t(o)){var s={spec:e,pathName:a,method:i.toUpperCase(),operation:o},c=t(s);if(r&&c)return s}}}function Po(e){var t=e.spec,r=t.paths,n={};if(!r||t.$$normalized)return e;for(var a in r){var i,o=r[a];if(null!=o&&Lt()(i=["object","function"]).call(i,$t(o))){var s=o.parameters,c=function(e){var r,i=o[e];if(null==i||!Lt()(r=["object","function"]).call(r,$t(i)))return"continue";var c=Oo(i,a,e);if(c){n[c]?n[c].push(i):n[c]=[i];var u=n[c];if(u.length>1)u.forEach((function(e,t){var r;e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=Kt()(r="".concat(c)).call(r,t+1)}));else if(void 0!==i.operationId){var l=u[0];l.__originalOperationId=l.__originalOperationId||i.operationId,l.operationId=c}}if("parameters"!==e){var p=[],d={};for(var f in t)"produces"!==f&&"consumes"!==f&&"security"!==f||(d[f]=t[f],p.push(d));if(s&&(d.parameters=s,p.push(d)),p.length){var h,m=Et(p);try{for(m.s();!(h=m.n()).done;){var v=h.value;for(var b in v)if(i[b]){if("parameters"===b){var g,y=Et(v[b]);try{var x=function(){var e=g.value;i[b].some((function(t){return t.name&&t.name===e.name||t.$ref&&t.$ref===e.$ref||t.$$ref&&t.$$ref===e.$$ref||t===e}))||i[b].push(e)};for(y.s();!(g=y.n()).done;)x()}catch(e){y.e(e)}finally{y.f()}}}else i[b]=v[b]}}catch(e){m.e(e)}finally{m.f()}}}};for(var u in o)c(u)}}return t.$$normalized=!0,e}function Io(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.requestInterceptor,n=t.responseInterceptor,a=e.withCredentials?"include":"same-origin";return function(t){return e({url:t,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:Ji},credentials:a}).then((function(e){return e.body}))}}function Ro(e){var t=e.fetch,r=e.spec,n=e.url,a=e.mode,i=e.allowMetaPatches,o=void 0===i||i,s=e.pathDiscriminator,c=e.modelPropertyMacro,u=e.parameterMacro,l=e.requestInterceptor,p=e.responseInterceptor,d=e.skipNormalization,f=e.useCircularStructures,h=e.http,m=e.baseDoc;return m=m||n,h=t||h||va,r?v(r):Io(h,{requestInterceptor:l,responseInterceptor:p})(m).then(v);function v(e){m&&(So.refs.docCache[m]=e),So.refs.fetchJSON=Io(h,{requestInterceptor:l,responseInterceptor:p});var t,r=[So.refs];return"function"==typeof u&&r.push(So.parameters),"function"==typeof c&&r.push(So.properties),"strict"!==a&&r.push(So.allOf),(t={spec:e,context:{baseDoc:m},plugins:r,allowMetaPatches:o,pathDiscriminator:s,parameterMacro:u,modelPropertyMacro:c,useCircularStructures:f},new ko(t).dispatch()).then(d?function(){var e=Pt(Rt().mark((function e(t){return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():Po)}}var No=r(27361),Lo=r.n(No);function zo(){return zo=Pt(Rt().mark((function e(t,r){var n,a,i,o,s,c,u,l,p,d,f,h,m=arguments;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=m.length>2&&void 0!==m[2]?m[2]:{},a=n.returnEntireTree,i=n.baseDoc,o=n.requestInterceptor,s=n.responseInterceptor,c=n.parameterMacro,u=n.modelPropertyMacro,l=n.useCircularStructures,p={pathDiscriminator:r,baseDoc:i,requestInterceptor:o,responseInterceptor:s,parameterMacro:c,modelPropertyMacro:u,useCircularStructures:l},d=Po({spec:t}),f=d.spec,e.next=6,Ro(ft(ft({},p),{},{spec:f,allowMetaPatches:!0,skipNormalization:!0}));case 6:return h=e.sent,!a&&Array.isArray(r)&&r.length&&(h.spec=Lo()(h.spec,r)||null),e.abrupt("return",h);case 9:case"end":return e.stop()}}),e)}))),zo.apply(this,arguments)}var Mo=function(){return null},Fo={mapTagOperations:function(e){var t=e.spec,r=e.cb,n=void 0===r?Mo:r,a=e.defaultTag,i=void 0===a?"default":a,o=e.v2OperationIdCompatibilityMode,s={},c={};return To(t,(function(e){var r,a=e.pathName,u=e.method,l=e.operation;(l.tags?(r=l.tags,Array.isArray(r)?r:[r]):[i]).forEach((function(e){if("string"==typeof e){c[e]=c[e]||{};var r,i=c[e],p=Oo(l,a,u,{v2OperationIdCompatibilityMode:o}),d=n({spec:t,pathName:a,method:u,operation:l,operationId:p});if(s[p])s[p]+=1,i[Kt()(r="".concat(p)).call(r,s[p])]=d;else if(void 0!==i[p]){var f,h,m=s[p]||1;s[p]=m+1,i[Kt()(f="".concat(p)).call(f,s[p])]=d;var v=i[p];delete i[p],i[Kt()(h="".concat(p)).call(h,m)]=v}else i[p]=d}}))})),c},makeExecute:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var r=t.pathName,n=t.method,a=t.operationId;return function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e.requestInterceptor,s=e.responseInterceptor,c=e.userFetch;return e.execute(ft({spec:e.spec,requestInterceptor:o,responseInterceptor:s,userFetch:c,pathName:r,method:n,parameters:t,operationId:a},i))}}}};var qo=r(95683);function Do(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},i=nt(e);for(n=0;n<i.length;n++)r=i[n],qo(t).call(t,r)>=0||(a[r]=e[r]);return a}(e,t);if(at){var i=at(e);for(n=0;n<i.length;n++)r=i[n],qo(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var Uo=r(76489);function Bo(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ho(e){var t,r;return!1!==Bo(e)&&(void 0===(t=e.constructor)||!1!==Bo(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}const Vo={body:function(e){var t=e.req,r=e.value;t.body=r},header:function(e){var t=e.req,r=e.parameter,n=e.value;t.headers=t.headers||{},void 0!==n&&(t.headers[r.name]=n)},query:function(e){var t=e.req,r=e.value,n=e.parameter;t.query=t.query||{},!1===r&&"boolean"===n.type&&(r="false");0===r&&["number","integer"].indexOf(n.type)>-1&&(r="0");if(r)t.query[n.name]={collectionFormat:n.collectionFormat,value:r};else if(n.allowEmptyValue&&void 0!==r){var a=n.name;t.query[a]=t.query[a]||{},t.query[a].allowEmptyValue=!0}},path:function(e){var t=e.req,r=e.value,n=e.parameter;t.url=t.url.split("{".concat(n.name,"}")).join(encodeURIComponent(r))},formData:function(e){var t=e.req,r=e.value,n=e.parameter;(r||n.allowEmptyValue)&&(t.form=t.form||{},t.form[n.name]={value:r,allowEmptyValue:n.allowEmptyValue,collectionFormat:n.collectionFormat})}};function Go(e,t){return Lt()(t).call(t,"application/json")?"string"==typeof e?e:Ut()(e):e.toString()}function Wo(e){var t=e.req,r=e.value,n=e.parameter,a=n.name,i=n.style,o=n.explode,s=n.content;if(s){var c=Gt()(s)[0];t.url=t.url.split("{".concat(a,"}")).join(da(Go(r,c),{escape:!0}))}else{var u=fa({key:n.name,value:r,style:i||"simple",explode:o||!1,escape:!0});t.url=t.url.split("{".concat(a,"}")).join(u)}}function Ko(e){var t=e.req,r=e.value,n=e.parameter;if(t.query=t.query||{},n.content){var a=Gt()(n.content)[0];t.query[n.name]=Go(r,a)}else if(!1===r&&(r="false"),0===r&&(r="0"),r){var i=n.style,o=n.explode,s=n.allowReserved;t.query[n.name]={value:r,serializationOption:{style:i,explode:o,allowReserved:s}}}else if(n.allowEmptyValue&&void 0!==r){var c=n.name;t.query[c]=t.query[c]||{},t.query[c].allowEmptyValue=!0}}var Jo=["accept","authorization","content-type"];function Yo(e){var t=e.req,r=e.parameter,n=e.value;if(t.headers=t.headers||{},!(Jo.indexOf(r.name.toLowerCase())>-1))if(r.content){var a=Gt()(r.content)[0];t.headers[r.name]=Go(n,a)}else void 0!==n&&(t.headers[r.name]=fa({key:r.name,value:n,style:r.style||"simple",explode:void 0!==r.explode&&r.explode,escape:!1}))}function Qo(e){var t=e.req,r=e.parameter,n=e.value;t.headers=t.headers||{};var a=$t(n);if(r.content){var i,o=Gt()(r.content)[0];t.headers.Cookie=Kt()(i="".concat(r.name,"=")).call(i,Go(n,o))}else if("undefined"!==a){var s="object"===a&&!Array.isArray(n)&&r.explode?"":"".concat(r.name,"=");t.headers.Cookie=s+fa({key:r.name,value:n,escape:!1,style:r.style||"form",explode:void 0!==r.explode&&r.explode})}}var Zo=r(90149),Xo=r.n(Zo);const es=(void 0!==Xo()?Xo():"undefined"!=typeof self?self:window).btoa;function ts(e,t){var r=e.operation,n=e.requestBody,a=e.securities,i=e.spec,o=e.attachContentTypeForEmptyPayload,s=e.requestContentType;t=function(e){var t=e.request,r=e.securities,n=void 0===r?{}:r,a=e.operation,i=void 0===a?{}:a,o=e.spec,s=ft({},t),c=n.authorized,u=void 0===c?{}:c,l=i.security||o.security||[],p=u&&!!Gt()(u).length,d=Lo()(o,["components","securitySchemes"])||{};if(s.headers=s.headers||{},s.query=s.query||{},!Gt()(n).length||!p||!l||Array.isArray(i.security)&&!i.security.length)return t;return l.forEach((function(e){Gt()(e).forEach((function(e){var t=u[e],r=d[e];if(t){var n=t.value||t,a=r.type;if(t)if("apiKey"===a)"query"===r.in&&(s.query[r.name]=n),"header"===r.in&&(s.headers[r.name]=n),"cookie"===r.in&&(s.cookies[r.name]=n);else if("http"===a){if(/^basic$/i.test(r.scheme)){var i,o=n.username||"",c=n.password||"",l=es(Kt()(i="".concat(o,":")).call(i,c));s.headers.Authorization="Basic ".concat(l)}/^bearer$/i.test(r.scheme)&&(s.headers.Authorization="Bearer ".concat(n))}else if("oauth2"===a||"openIdConnect"===a){var p,f=t.token||{},h=f[r["x-tokenName"]||"access_token"],m=f.token_type;m&&"bearer"!==m.toLowerCase()||(m="Bearer"),s.headers.Authorization=Kt()(p="".concat(m," ")).call(p,h)}}}))})),s}({request:t,securities:a,operation:r,spec:i});var c=r.requestBody||{},u=Gt()(c.content||{}),l=s&&u.indexOf(s)>-1;if(n||o){if(s&&l)t.headers["Content-Type"]=s;else if(!s){var p=u[0];p&&(t.headers["Content-Type"]=p,s=p)}}else s&&l&&(t.headers["Content-Type"]=s);if(!e.responseContentType&&r.responses){var d,f=Zt()(d=Yt()(r.responses)).call(d,(function(e){var t=jt(e,2),r=t[0],n=t[1],a=parseInt(r,10);return a>=200&&a<300&&Ho(n.content)})).reduce((function(e,t){var r=jt(t,2)[1];return Kt()(e).call(e,Gt()(r.content))}),[]);f.length>0&&(t.headers.accept=f.join(", "))}if(n)if(s){if(u.indexOf(s)>-1)if("application/x-www-form-urlencoded"===s||"multipart/form-data"===s)if("object"===$t(n)){var h=(c.content[s]||{}).encoding||{};t.form={},Gt()(n).forEach((function(e){t.form[e]={value:n[e],encoding:h[e]||{}}}))}else t.form=n;else t.body=n}else t.body=n;return t}function rs(e,t){var r,n,a=e.spec,i=e.operation,o=e.securities,s=e.requestContentType,c=e.responseContentType,u=e.attachContentTypeForEmptyPayload;if(t=function(e){var t=e.request,r=e.securities,n=void 0===r?{}:r,a=e.operation,i=void 0===a?{}:a,o=e.spec,s=ft({},t),c=n.authorized,u=void 0===c?{}:c,l=n.specSecurity,p=void 0===l?[]:l,d=i.security||p,f=u&&!!Gt()(u).length,h=o.securityDefinitions;if(s.headers=s.headers||{},s.query=s.query||{},!Gt()(n).length||!f||!d||Array.isArray(i.security)&&!i.security.length)return t;return d.forEach((function(e){Gt()(e).forEach((function(e){var t=u[e];if(t){var r=t.token,n=t.value||t,a=h[e],i=a.type,o=a["x-tokenName"]||"access_token",c=r&&r[o],l=r&&r.token_type;if(t)if("apiKey"===i){var p="query"===a.in?"query":"headers";s[p]=s[p]||{},s[p][a.name]=n}else if("basic"===i)if(n.header)s.headers.authorization=n.header;else{var d,f=n.username||"",m=n.password||"";n.base64=es(Kt()(d="".concat(f,":")).call(d,m)),s.headers.authorization="Basic ".concat(n.base64)}else if("oauth2"===i&&c){var v;l=l&&"bearer"!==l.toLowerCase()?l:"Bearer",s.headers.authorization=Kt()(v="".concat(l," ")).call(v,c)}}}))})),s}({request:t,securities:o,operation:i,spec:a}),t.body||t.form||u)if(s)t.headers["Content-Type"]=s;else if(Array.isArray(i.consumes)){var l=jt(i.consumes,1);t.headers["Content-Type"]=l[0]}else if(Array.isArray(a.consumes)){var p=jt(a.consumes,1);t.headers["Content-Type"]=p[0]}else i.parameters&&Zt()(r=i.parameters).call(r,(function(e){return"file"===e.type})).length?t.headers["Content-Type"]="multipart/form-data":i.parameters&&Zt()(n=i.parameters).call(n,(function(e){return"formData"===e.in})).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(s){var d,f,h=i.parameters&&Zt()(d=i.parameters).call(d,(function(e){return"body"===e.in})).length>0,m=i.parameters&&Zt()(f=i.parameters).call(f,(function(e){return"formData"===e.in})).length>0;(h||m)&&(t.headers["Content-Type"]=s)}return!c&&Array.isArray(i.produces)&&i.produces.length>0&&(t.headers.accept=i.produces.join(", ")),t}var ns=["http","fetch","spec","operationId","pathName","method","parameters","securities"],as=function(e){return Array.isArray(e)?e:[]},is=qi("OperationNotFoundError",(function(e,t,r){this.originalError=r,mt()(this,t||{})})),os={buildRequest:ss};function ss(e){var t,r,n=e.spec,a=e.operationId,o=e.responseContentType,s=e.scheme,c=e.requestInterceptor,u=e.responseInterceptor,l=e.contextUrl,p=e.userFetch,d=e.server,f=e.serverVariables,h=e.http,m=e.signal,v=e.parameters,b=e.parameterBuilders,g=Eo(n);b||(b=g?i:Vo);var y={url:"",credentials:h&&h.withCredentials?"include":"same-origin",headers:{},cookies:{}};m&&(y.signal=m),c&&(y.requestInterceptor=c),u&&(y.responseInterceptor=u),p&&(y.userFetch=p);var x=Co(n,a);if(!x)throw new is("Operation ".concat(a," not found"));var w=x.operation,k=void 0===w?{}:w,S=x.method,_=x.pathName;if(y.url+=us({spec:n,scheme:s,contextUrl:l,server:d,serverVariables:f,pathName:_,method:S}),!a)return delete y.cookies,y;y.url+=_,y.method="".concat(S).toUpperCase(),v=v||{};var A=n.paths[_]||{};o&&(y.headers.accept=o);var E=function(e){var t={};e.forEach((function(e){t[e.in]||(t[e.in]={}),t[e.in][e.name]=e}));var r=[];return Gt()(t).forEach((function(e){Gt()(t[e]).forEach((function(n){r.push(t[e][n])}))})),r}(Kt()(t=Kt()(r=[]).call(r,as(k.parameters))).call(t,as(A.parameters)));E.forEach((function(e){var t,r,a=b[e.in];if("body"===e.in&&e.schema&&e.schema.properties&&(t=v),void 0===(t=e&&e.name&&v[e.name]))t=e&&e.name&&v[Kt()(r="".concat(e.in,".")).call(r,e.name)];else if(function(e,t){return Zt()(t).call(t,(function(t){return t.name===e}))}(e.name,E).length>1){var i;console.warn(Kt()(i="Parameter '".concat(e.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(i,e.name,"' and the passed-in parameter values did not define an 'in' value."))}if(null!==t){if(void 0!==e.default&&void 0===t&&(t=e.default),void 0===t&&e.required&&!e.allowEmptyValue)throw new Error("Required parameter ".concat(e.name," is not provided"));if(g&&e.schema&&"object"===e.schema.type&&"string"==typeof t)try{t=JSON.parse(t)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}a&&a({req:y,parameter:e,value:t,operation:k,spec:n})}}));var O=ft(ft({},e),{},{operation:k});if((y=g?ts(O,y):rs(O,y)).cookies&&Gt()(y.cookies).length){var $=Gt()(y.cookies).reduce((function(e,t){var r=y.cookies[t];return e+(e?"&":"")+Uo.serialize(t,r)}),"");y.headers.Cookie=$}return y.cookies&&delete y.cookies,Ta(y),y}var cs=function(e){return e?e.replace(/\W/g,""):null};function us(e){return Eo(e.spec)?function(e){var t=e.spec,r=e.pathName,n=e.method,a=e.server,i=e.contextUrl,o=e.serverVariables,s=void 0===o?{}:o,c=Lo()(t,["paths",r,(n||"").toLowerCase(),"servers"])||Lo()(t,["paths",r,"servers"])||Lo()(t,["servers"]),u="",l=null;if(a&&c&&c.length){var p=Ht()(c).call(c,(function(e){return e.url}));p.indexOf(a)>-1&&(u=a,l=c[p.indexOf(a)])}if(!u&&c&&c.length){u=c[0].url;var d=jt(c,1);l=d[0]}if(u.indexOf("{")>-1){var f=function(e){var t,r=[],n=/{([^}]+)}/g;for(;t=n.exec(e);)r.push(t[1]);return r}(u);f.forEach((function(e){if(l.variables&&l.variables[e]){var t=l.variables[e],r=s[e]||t.default,n=new RegExp("{".concat(e,"}"),"g");u=u.replace(n,r)}}))}return function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=r&&n?gt.parse(gt.resolve(n,r)):gt.parse(r),i=gt.parse(n),o=cs(a.protocol)||cs(i.protocol)||"",s=a.host||i.host,c=a.pathname||"";e=o&&s?Kt()(t="".concat(o,"://")).call(t,s+c):c;return"/"===e[e.length-1]?ua()(e).call(e,0,-1):e}(u,i)}(e):function(e){var t,r,n=e.spec,a=e.scheme,i=e.contextUrl,o=void 0===i?"":i,s=gt.parse(o),c=Array.isArray(n.schemes)?n.schemes[0]:null,u=a||c||cs(s.protocol)||"http",l=n.host||s.host||"",p=n.basePath||"";t=u&&l?Kt()(r="".concat(u,"://")).call(r,l+p):p;return"/"===t[t.length-1]?ua()(t).call(t,0,-1):t}(e)}function ls(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e?r.url=e:r=e,!(this instanceof ls))return new ls(r);mt()(this,r);var n=this.resolve().then((function(){return t.disableInterfaces||mt()(t,ls.makeApisTagOperation(t)),t}));return n.client=this,n}ls.http=va,ls.makeHttp=function(e,t,r){return r=r||function(e){return e},t=t||function(e){return e},function(n){return"string"==typeof n&&(n={url:n}),ma.mergeInQueryOrForm(n),n=t(n),r(e(n))}}.bind(null,ls.http),ls.resolve=Ro,ls.resolveSubtree=function(e,t){return zo.apply(this,arguments)},ls.execute=function(e){var t=e.http,r=e.fetch,n=e.spec,a=e.operationId,i=e.pathName,o=e.method,s=e.parameters,c=e.securities,u=Do(e,ns),l=t||r||va;i&&o&&!a&&(a=jo(i,o));var p=os.buildRequest(ft({spec:n,operationId:a,parameters:s,securities:c,http:l},u));return p.body&&(Ho(p.body)||Array.isArray(p.body))&&(p.body=Ut()(p.body)),l(p)},ls.serializeRes=xa,ls.serializeHeaders=ka,ls.clearCache=function(){So.refs.clearCache()},ls.makeApisTagOperation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Fo.makeExecute(e);return{apis:Fo.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},ls.buildRequest=ss,ls.helpers={opId:Oo},ls.getBaseUrl=us,ls.prototype={http:va,execute:function(e){return this.applyDefaults(),ls.execute(ft({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},e))},resolve:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ls.resolve(ft({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1},t)).then((function(t){return e.originalSpec=e.spec,e.spec=t.spec,e.errors=t.errors,e}))}},ls.prototype.applyDefaults=function(){var e=this.spec,t=this.url;if(t&&bt()(t).call(t,"http")){var r=gt.parse(t);e.host||(e.host=r.host),e.schemes||(e.schemes=[r.protocol.replace(":","")]),e.basePath||(e.basePath="/")}};ls.helpers;const ps=ls;async function ds(e,t,r=""){let n;function a(e){return e.ok&&e.text&&e.parseError&&"YAMLException"===e.parseError.name&&(!e.headers["content-type"]||e.headers["content-type"].match("text/plain"))&&(e.body=e.text),e}n=e?await ps({allowMetaPatches:!1,url:t,responseInterceptor:a}):"string"==typeof t?await ps({allowMetaPatches:!1,spec:ra.load(t),responseInterceptor:a}):await ps({allowMetaPatches:!1,spec:t,responseInterceptor:a});const i=n.spec;if("Not Found"===n.message||!i)throw Error("SpecificationNotFound");const o=function(e){const t=["get","put","post","delete","patch","head","options"],r=e.tags&&Array.isArray(e.tags)?e.tags.map((e=>({show:!0,elementId:`tag--${e.name.replace(Ye,"-")}`,name:e.name,description:e.description||"",headers:e.description?fs(e.description):[],paths:[],expanded:!1!==e["x-tag-expanded"]}))):[],n=e.paths||{};if(e.webhooks)for(const[t,r]of Object.entries(e.webhooks))r._type="webhook",n[t]=r;for(const a in n){const i=n[a].parameters,o={servers:n[a].servers||[],parameters:n[a].parameters||[]},s="webhook"===n[a]._type;t.forEach((t=>{if(n[a][t]){const n=e.paths[a][t],c=n.tags||[];0===c.length&&c.push("General ⦂"),c.forEach((c=>{let u,l;e.tags&&(l=e.tags.find((e=>e.name.toLowerCase()===c.toLowerCase()))),u=r.find((e=>e.name===c)),u||(u={show:!0,elementId:`tag--${c.replace(Ye,"-")}`,name:c,description:l&&l.description||"",headers:l&&l.description?fs(l.description):[],paths:[],expanded:!l||!1!==l["x-tag-expanded"]},r.push(u));let p=(n.summary||n.description||`${t.toUpperCase()} ${a}`).trim();p.length>100&&(p=p.split(/[.|!|?]\s|[\r?\n]/)[0]);let d=[];if(d=i?n.parameters?i.filter((e=>{if(!n.parameters.some((t=>e.name===t.name&&e.in===t.in)))return e})).concat(n.parameters):i.slice(0):n.parameters?n.parameters.slice(0):[],n.callbacks)for(const[e,t]of Object.entries(n.callbacks)){const r=Object.entries(t),a=r.filter((e=>"object"==typeof e[1]))||[];n.callbacks[e]=Object.fromEntries(a),a.length!==r.length&&console.warn(`OpenAPI Explorer: Invalid Callback found in ${e}`)}u.paths.push({show:!0,expanded:!1,isWebhook:s,expandedAtLeastOnce:!1,summary:n.summary||"",description:n.description||"",shortSummary:p,method:t,path:a,operationId:n.operationId,elementId:`${t}-${a.replace(Ye,"-")}`,servers:n.servers?o.servers.concat(n.servers):o.servers,parameters:d,requestBody:n.requestBody,responses:n.responses,callbacks:n.callbacks,deprecated:n.deprecated,security:n.security,xCodeSamples:n["x-codeSamples"]||n["x-code-samples"]||""})}))}}))}return r.filter((e=>e.paths&&e.paths.length>0))}(i),s=function(e){if(!e.components)return[];const t=[];for(const r in e.components){const n=[];for(const t in e.components[r]){const a={show:!0,id:`${r.toLowerCase()}-${t.toLowerCase()}`.replace(Ye,"-"),name:t,component:e.components[r][t]};n.push(a)}let a=r,i=r;switch(r){case"schemas":i="Schemas",a="Schemas allows the definition of input and output data types. These types can be objects, but also primitives and arrays.";break;case"responses":i="Responses",a="Describes responses from an API Operation, including design-time, static links to operations based on the response.";break;case"parameters":i="Parameters",a="Describes operation parameters. A unique parameter is defined by a combination of a name and location.";break;case"examples":i="Examples",a="List of Examples for operations, can be requests, responses and objects examples.";break;case"requestBodies":i="Request Bodies",a="Describes common request bodies that are used across the API operations.";break;case"headers":i="Headers",a='Headers follows the structure of the Parameters but they are explicitly in "header"';break;case"securitySchemes":i="Security Schemes",a="Defines a security scheme that can be used by the operations. Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), OAuth2's common flows(client credentials and authorization code) as defined in RFC6749, and OpenID Connect Discovery.";break;case"links":i="Links",a="Links represent a possible design-time link for a response. The presence of a link does not guarantee the caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations.";break;case"callbacks":i="Callbacks",a="A map of possible out-of band callbacks related to the parent operation. Each value in the map is a Path Item Object that describes a set of requests that may be initiated by the API provider and the expected responses. The key value used to identify the path item object is an expression, evaluated at runtime, that identifies a URL to use for the callback operation.";break;default:i=r,a=r}const o={show:!0,name:i,description:a,subComponents:n};t.push(o)}return t||[]}(i),c=i.info&&i.info.description?fs(i.info.description):[],u=[];i.components&&i.components.securitySchemes&&Object.entries(i.components.securitySchemes).forEach((e=>{const t={apiKeyId:e[0],...e[1]};t.value="",t.finalKeyValue="","apiKey"===e[1].type||"http"===e[1].type?(t.name=e[1].name||"Authorization",t.user="",t.password=""):"oauth2"===e[1].type&&(t.name="Authorization",t.clientId="",t.clientSecret=""),u.push(t)})),u.forEach((e=>{"http"===e.type?e.typeDisplay="basic"===e.scheme?"HTTP Basic":"HTTP Bearer":"apiKey"===e.type?e.typeDisplay=`API Key (${e.name})`:"oauth2"===e.type?e.typeDisplay="OAuth2.0":e.typeDisplay=e.type}));let l=[];i.servers&&Array.isArray(i.servers)&&i.servers.length?(i.servers.forEach((e=>{let t=e.url.trim();t.startsWith("http")||t.startsWith("//")||t.startsWith("{")||window.location.origin.startsWith("http")&&(e.url=window.location.origin+e.url,t=e.url),e.variables&&Object.entries(e.variables).forEach((e=>{const r=new RegExp(`{${e[0]}}`,"g");t=t.replace(r,e[1].default||""),e[1].value=e[1].default||""})),e.computedUrl=t})),r&&i.servers.push({url:r,computedUrl:r})):r?i.servers=[{url:r,computedUrl:r}]:window.location.origin.startsWith("http")?i.servers=[{url:window.location.origin,computedUrl:window.location.origin}]:i.servers=[{url:"http://localhost",computedUrl:"http://localhost"}],l=i.servers;return{info:i.info,infoDescriptionHeaders:c,tags:o,components:s,externalDocs:i.externalDocs,securitySchemes:u,servers:l}}function fs(e){return ze.lexer(e).filter((e=>"heading"===e.type&&e.depth<=2))||[]}const hs=new WeakMap,ms=(vs=e=>t=>{if(!(t instanceof j))throw new Error("unsafeHTML can only be used in text bindings");const r=hs.get(t);if(void 0!==r&&A(e)&&e===r.value&&t.value===r.fragment)return;const n=document.createElement("template");n.innerHTML=e;const a=document.importNode(n.content,!0);t.setValue(a),hs.set(t,{value:e,fragment:a})},(...e)=>{const t=vs(...e);return o.set(t,!0),t});var vs,bs=r(45772),gs=r.n(bs);function ys(e,t){let r="";const n=this.resolvedSpec.securitySchemes.find((t=>t.apiKeyId===e));if(!n)return;const a=t.target.closest("tr");if(n.type&&"http"===n.type&&n.scheme&&"basic"===n.scheme.toLowerCase()){const e=a.querySelector(".api-key-user").value.trim(),t=a.querySelector(".api-key-password").value.trim();t&&(r=`Basic ${btoa(`${e}:${t}`)}`)}else r=a.querySelector(".api-key-input").value.trim(),r&&n.scheme&&"bearer"===n.scheme.toLowerCase()&&(r=`Bearer ${r.replace(/^Bearer\s+/i,"")}`);n.finalKeyValue=r,this.requestUpdate()}function xs(){this.resolvedSpec.securitySchemes.forEach((e=>{e.user="",e.password="",e.value="",e.finalKeyValue=""})),this.requestUpdate()}function ws(e,t="Bearer",r){const n=this.resolvedSpec.securitySchemes.find((t=>t.apiKeyId===e)),a=t&&"bearer"===t.toLowerCase()?"Bearer":t;n.finalKeyValue=`${a}${a?" ":""}${r}`,this.requestUpdate()}async function ks(e,t,r,n,a,i,o="header",s,c,u=null){const l=c?c.querySelector(".oauth-resp-display"):void 0,p=new URLSearchParams,d=new Headers;p.append("grant_type",a),n&&p.append("redirect_uri",n),i&&p.append("code",i),"header"===o?d.set("Authorization",`Basic ${btoa(`${t}:${r}`)}`):(p.append("client_id",t),r&&p.append("client_secret",r)),u&&p.append("scope",u);const{codeVerifier:f}=JSON.parse(localStorage.getItem("openapi-explorer-oauth")||"{}");localStorage.removeItem("openapi-explorer-oauth"),f&&p.append("code_verifier",f);try{const t=await fetch(e,{method:"POST",headers:d,body:p}),r=await t.json();if(!t.ok)return void(l&&(l.innerHTML=`<span style="color:var(--red)">${r.error_description||r.error_description||"Unable to get access token"}</span>`));r.token_type&&r.access_token&&(ws.call(this,s,r.token_type,r.access_token),l&&(l.innerHTML='<span style="color:var(--green)">Access Token Received</span>'))}catch(e){l&&(l.innerHTML='<span style="color:var(--red)">Failed to get access token</span>')}}function Ss(e){const t={},r=e&&e.entries()||[];for(const[e,n]of r)t[e]=n;return t}async function _s(e){const t=Ss(new URLSearchParams(window.location.search)),r=Ss(new URLSearchParams(window.location.hash.slice(1)));Object.assign(t,r);const n=new URL(window.location);if(n.searchParams.delete("nonce"),n.searchParams.delete("expires_in"),n.searchParams.delete("access_token"),n.searchParams.delete("token_type"),n.searchParams.delete("id_token"),n.searchParams.delete("state"),n.searchParams.delete("code"),n.searchParams.delete("iss"),n.searchParams.delete("scope"),n.searchParams.delete("prompt"),n.searchParams.delete("hd"),n.searchParams.delete("authuser"),n.searchParams.delete("redirect_auth"),!t.state)return;const a=n.toString().replace(/#((code|state|access_token|id_token|authuser|expires_in|hd|prompt|scope|token_type)=[^&]+&?)*$/gi,"");history.replaceState({},void 0,a);const{apiKeyId:i,flowId:o,url:s}=JSON.parse(gs().decode(t.state));if(e&&s&&!t.redirect_auth){const e=new URL(s);return Object.keys(t).forEach((r=>e.searchParams.append(r,t[r]))),e.searchParams.append("redirect_auth",!0),void window.location.replace(e.toString())}if(t.code){const e=this.resolvedSpec.securitySchemes.find((e=>e.apiKeyId===i)),r=e&&e.flows[o]&&new URL(e.flows[o].tokenUrl||"",this.selectedServer.computedUrl);await ks.call(this,r,e.clientId,e.clientSecret,e.redirectUri||window.location.href,"authorization_code",t.code,null,i)}else ws.call(this,i,t.token_type,t.access_token)}async function As(e,t,r,n,a){const i=a.target.closest(".oauth-flow"),o=i.querySelector(".oauth-client-id")?i.querySelector(".oauth-client-id").value.trim():"",s=i.querySelector(".oauth-client-secret")?i.querySelector(".oauth-client-secret").value.trim():"",c=i.querySelector(".oauth-send-client-secret-in")?i.querySelector(".oauth-send-client-secret-in").value.trim():"header",u=[...i.querySelectorAll('input[type="checkbox"]:checked')],l=this.resolvedSpec.securitySchemes.find((t=>t.apiKeyId===e));let p="",d="";if([...i.parentNode.querySelectorAll(".oauth-resp-display")].forEach((e=>{e.innerHTML=""})),"authorizationCode"===t||"implicit"===t){const n=new URL(r),a=new URLSearchParams(n.search);if("authorizationCode"===t){const e=new Uint32Array(3);(window.crypto||window.msCrypto).getRandomValues(e),a.set("nonce",e.toString("hex").split(",").join("")),p="authorization_code",d="code";const t=e.toString("hex").split(",").join(""),r=await(window.crypto||window.msCrypto).subtle.digest("SHA-256",(new TextEncoder).encode(t)),n=gs()(r);a.set("code_challenge",n),a.set("code_challenge_method","S256"),localStorage.setItem("openapi-explorer-oauth",JSON.stringify({codeVerifier:t}))}else"implicit"===t&&(d="token");const i=u.map((e=>e.value)).join(" ");i&&a.set("scope",i),a.set("client_id",o),a.set("redirect_uri",l.redirectUri||window.location.href),a.set("response_type",d),a.set("state",gs().encode(JSON.stringify({apiKeyId:e,flowId:t,url:window.location.href}))),n.search=a.toString(),window.location.assign(n.toString())}else if("clientCredentials"===t){p="client_credentials";const t=u.map((e=>e.value)).join(" ");ks.call(this,n,o,s,"",p,"",c,e,i,t)}}function Es(e,t,r){const n=t.apiKeyId,a=e=>e?new URL(e,this.selectedServer.computedUrl):void 0,i=a(r.authorizationUrl,this.selectedServer.computedUrl),o=a(r.tokenUrl,this.selectedServer.computedUrl),s=a(r.refreshUrl,this.selectedServer.computedUrl);let c;return c="authorizationCode"===e?"Authorization Code Flow":"clientCredentials"===e?"Client Credentials Flow":"implicit"===e?"Implicit Flow":e,q` <div class="oauth-flow" style="padding:10px 0;margin-bottom:10px"> <div class="tiny-title upper" style="margin-bottom:5px">${c}</div> ${i?q`<div><span style="width:75px;display:inline-block">Auth URL</span> <span class="mono-font"> ${i} </span></div>`:""} ${o?q`<div><span style="width:75px;display:inline-block">Token URL</span> <span class="mono-font">${o}</span></div>`:""} ${s?q`<div><span style="width:75px;display:inline-block">Refresh URL</span> <span class="mono-font">${s}</span></div>`:""} ${"authorizationCode"===e||"clientCredentials"===e||"implicit"===e?q` ${r.scopes?q` <span> Scopes </span> <div class="oauth-scopes" part="section-auth-scopes" style="width:100%;display:flex;flex-direction:column;flex-wrap:wrap;margin:0 0 .125rem 0"> ${Object.entries(r.scopes).map(((t,r)=>q` <div class="m-checkbox" style="display:inline-flex;align-items:center"> <input type="checkbox" checked="checked" part="checkbox checkbox-auth-scope" id="${e}${r}" value="${t[0]}"> <label for="${e}${r}" style="margin-left:5px"> <span class="mono-font">${t[0]}</span> ${t[0]!==t[1]?` - ${t[1]||""}`:""} </label> </div> `))} </div> `:""} <div style="display:flex"> <input type="text" part="textbox textbox-auth-client-id" value="${t.clientId||""}" placeholder="Client ID" spellcheck="false" class="oauth-client-id"> ${"clientCredentials"===e?q` <input type="password" part="textbox textbox-auth-client-secret" value="" placeholder="Client Secret" spellcheck="false" class="oauth-client-secret" style="margin:0 5px"> <select style="margin-right:5px" class="oauth-send-client-secret-in"> <option value="header" selected="selected"> Authorization Header </option> <option value="request-body"> Request Body </option> </select>`:q`<div style="width:5px"></div>`} ${"authorizationCode"===e||"clientCredentials"===e||"implicit"===e?q` <button class="m-btn thin-border" part="btn btn-outline" @click="${t=>{As.call(this,n,e,i,o,t)}}">GET TOKEN</button>`:""} </div> <div class="oauth-resp-display red-text small-font-size"></div> `:""} </div> `}function Os(){const e=this.resolvedSpec&&this.resolvedSpec.securitySchemes;if(!e)return;const t=e.filter((e=>e.finalKeyValue));return q` <section id="auth" part="section-auth" class="observe-me ${"focused"===this.renderStyle?"section-gap--focused-mode":"section-gap"}"> <slot name="authentication"> <div class="section-padding"> <div class="sub-title regular-font">AUTHENTICATION</div> <div class="small-font-size" style="display:flex;align-items:center;min-height:30px"> ${t.length>0?q` <div class="blue-text"> ${t.length} API key applied </div> <div style="flex:1"></div> <button class="m-btn thin-border" part="btn btn-outline" @click="${()=>{xs.call(this)}}">CLEAR ALL API KEYS</button>`:q`<div class="red-text">No API key applied</div>`} </div> ${e.length>0?q` <table class="m-table" style="width:100%"> ${e.map((e=>q` <tr> <td style="max-width:500px;overflow-wrap:break-word"> <div style="min-height:24px"> <span style="font-weight:700">${e.typeDisplay}</span> ${e.finalKeyValue?q` <span class="blue-text"> ${e.finalKeyValue?"Key Applied":""} </span> <button class="m-btn thin-border small" part="btn btn-outline" @click="${()=>{e.finalKeyValue="",this.requestUpdate()}}">REMOVE</button> `:""} </div> ${e.description?q` <div class="m-markdown"> ${ms(ze(e.description||""))} </div>`:""} </td> <td> ${e.type&&("apikey"===e.type.toLowerCase()||"http"===e.type.toLowerCase()&&e.scheme&&"bearer"===e.scheme.toLowerCase())?q` ${"apikey"===e.type.toLowerCase()?q`Send <code>${e.name}</code> in <code>${e.in}</code> with the given value:`:q`Send <code>Authorization</code> in <code>header</code> containing the word <code>Bearer</code> followed by a space and a Token String.`} <div style="display:flex"> ${"cookie"===e.in?q` <div style="display:block"> <input type="text" value="${function(e){const t=(document.cookie||"").split(";").find((t=>t.split("=")[0]===e));return t&&t.split("=")[1]||""}(e.apiKeyId)}" disabled="disabled" class="api-key-input" placeholder="IygRVGf54B59e0GAkKmigGfuiVlp/uhFfk2ifA+jMMJzau2F1jPldc09gPTfnMw13BFBxqUZIFDm55DPfwkb0A==" spellcheck="false" style="resize:horizontal;width:100%"> <br> <small> <strong>Cookies</strong>&nbsp;are set and configured by the remote service, therefore it is not possible to configure them from the browser. </small> </div>`:q` <input type="text" value="${e.value}" class="api-key-input" placeholder="api-token" spellcheck="false"> <button class="m-btn thin-border" style="margin-left:5px" part="btn btn-outline" @click="${t=>{ys.call(this,e.apiKeyId,t)}}"> ${e.finalKeyValue?"UPDATE":"SET"} </button>`} </div>`:""} ${e.type&&"http"===e.type.toLowerCase()&&e.scheme&&"basic"===e.scheme.toLowerCase()?q` Send the <code>Authorization</code> header containing the type <code>Basic</code> followed by a space and a base64 encoded string of <code>username:password</code>. <div style="display:flex"> <input type="text" value="${e.user}" placeholder="username" spellcheck="false" class="api-key-user" style="width:100px"> <input type="password" value="${e.password}" placeholder="password" spellcheck="false" class="api-key-password" style="width:100px;margin:0 5px"> <button class="m-btn thin-border" @click="${t=>{ys.call(this,e.apiKeyId,t)}}" part="btn btn-outline"> ${e.finalKeyValue?"UPDATE":"SET"} </button> </div>`:""} </td> </tr> ${"oauth2"===e.type.toLowerCase()?q` <tr> <td colspan="2" style="border:none;padding-left:48px"> ${Object.keys(e.flows).map((t=>Es.call(this,t,e,e.flows[t])))} </td> </tr> `:""} `))} </table>`:""} </div> </slot> </section> `}function $s(e){return e&&e.length&&Array.isArray(e)?q` <div> <b>Required scopes:</b> <br> <div style="margin-left:8px"> ${e.map((e=>q`<span>${e}</span>&nbsp;`))} </div> </div>`:""}function js(e){if(this.resolvedSpec.securitySchemes&&e){const t=[];return e.forEach((e=>{const r=[],n=[];Object.keys(e).forEach((t=>{const a=this.resolvedSpec.securitySchemes.find((e=>e.apiKeyId===t));a&&(n.push(a.typeDisplay),r.push({...a,scopes:e[t]}))})),t.push({securityTypes:n.length>1?`${n[0]} + ${n.length-1} more`:n[0],securityDefs:r})})),q`<div class="security-info-button" data-content-id="auth" @click="${e=>this.scrollToEventTarget(e,!1)}"> <div style="position:relative;display:flex;min-width:350px;max-width:700px;justify-content:flex-end"> <svg width="16" height="24" style="cursor:pointer"> <g> <path style="fill:var(--fg3)" d="m13.8,8.5l0,-2.6l0,0c0,-3.2 -2.6,-5.8 -5.8,-5.8s-5.8,2.6 -5.8,5.8l0,0l0,2.6l-2.1,0l0,11.2l16,0l0,-11.2l-2.1,0l-0,0l0,0l0,0l-0,0zm-9.8,-2.6c0,0 0,0 0,0c0,-2.2 1.8,-4 4,-4c2.2,0 4,1.8 4,4c0,0 0,0 0,0l0,2.6l-8.03,0l0,-2.6l0,0l0,0z"/> </g> </svg> ${t.map(((e,t)=>q` ${0!==t?q`<div style="padding:3px 4px"> OR </div>`:""} <div class="tooltip" style="cursor:pointer"> <div style="padding:2px 4px;white-space:nowrap;text-overflow:ellipsis;max-width:150px;overflow:hidden"> <span part="anchor anchor-operation-security"> ${e.securityTypes} </span> </div> <div class="tooltip-text" style="position:absolute;color:var(--fg);top:26px;right:0;border:1px solid var(--border-color);padding:2px 4px;display:block"> ${e.securityDefs.length>1?q`<div>Requires <b>all</b> of the following </div>`:""} <div style="padding-left:8px"> ${e.securityDefs.map(((t,r)=>q` ${"oauth2"===t.type?q` <div> ${e.securityDefs.length>1?q`<b>${r+1}.</b> &nbsp;`:q`Requires`} OAuth token (${t.apiKeyId}) in <b>Authorization header</b> ${$s(t.scopes)} </div>`:"http"===t.type?q` <div> ${e.securityDefs.length>1?q`<b>${r+1}.</b> &nbsp;`:q`Requires`} ${"basic"===t.scheme?"Base 64 encoded username:password":"Bearer Token"} in <b>Authorization header</b> ${$s(t.scopes)} </div>`:q` <div> ${e.securityDefs.length>1?q`<b>${r+1}.</b> &nbsp;`:q`Requires`} Token in <b>${t.name} ${t.in}</b> ${$s(t.scopes)} </div>`} `))} </div> </div> </div> `))} </div> </div>`}return""}function Cs(e){return q` <section class="table-title top-gap"> CODE SAMPLES <div class="tab-panel col" @click="${e=>{if(!e.target.classList.contains("tab-btn"))return;const t=e.target.dataset.tab,r=[...e.currentTarget.querySelectorAll(".tab-btn")],n=[...e.currentTarget.querySelectorAll(".tab-content")];r.forEach((e=>e.classList[e.dataset.tab===t?"add":"remove"]("active"))),n.forEach((e=>{e.style.display=e.dataset.tab===t?"block":"none"}))}}"> <div class="tab-buttons row" style="width:100"> ${e.map(((e,t)=>q`<button class="tab-btn ${0===t?"active":""}" data-tab="${e.lang}${t}"> ${e.label||e.lang} </button>`))} </div> ${e.map(((e,t)=>q` <div class="tab-content m-markdown code-sample-wrapper" style="display:${0===t?"block":"none"}" data-tab="${e.lang}${t}"> <button class="toolbar-copy-btn" @click="${t=>{Ze(e.source,t)}}">Copy</button> <pre>
3
3
  <code>${Fe().languages[e.lang&&e.lang.toLowerCase()]?ms(Fe().highlight(e.source,Fe().languages[e.lang&&e.lang.toLowerCase()],e.lang&&e.lang.toLowerCase())):e.source}</code>
4
4
  </pre> </div>`))} </div></section>`}function Ts(e){return q` <div class="api-request col regular-font request-panel ${this.renderStyle}-mode"> ${Object.entries(e).map((e=>q` <div class="${this.renderStyle}-request"> <div class="req-res-title">CALLBACKS</div> <div class="table-title">${e[0]}</div> ${Object.entries(e[1]).map((e=>q` <div class="mono-font small-font-size" style="display:flex"> <div style="width:100%"> ${Object.entries(e[1]).map((t=>q` <div> <div style="margin-top:12px"> <div class="method method-fg ${t[0]}" style="width:70px;border:none;margin:0;padding:0;line-height:20px;vertical-align:baseline;text-align:left"> <span style="font-size:20px"> &#x2944; </span> ${t[0]} </div> <span style="line-height:20px;vertical-align:baseline">${e[0]} </span> </div> <div class="expanded-req-resp-container"> <api-request class="request-panel" callback="true" method="${t[0]||""}" , path="${e[0]||""}" .parameters="${t[1]&&t[1].parameters||""}" .request_body="${t[1]&&t[1].requestBody||""}" fill-defaults="${this.fillRequestWithDefault}" enable-console="false" render-style="${this.renderStyle}" schema-style="${this.schemaStyle}" active-schema-tab="${this.defaultSchemaTab}" schema-expand-level="${this.schemaExpandLevel}" schema-description-expanded="${this.schemaDescriptionExpanded}" schema-hide-read-only="${this.schemaHideReadOnly}" fetch-credentials="${this.fetchCredentials}" exportparts="btn btn-fill btn-outline btn-try"> </api-request> <api-response callback="true" .responses="${t[1]&&t[1].responses}" render-style="${this.renderStyle}" schema-style="${this.schemaStyle}" active-schema-tab="${this.defaultSchemaTab}" schema-expand-level="${this.schemaExpandLevel}" schema-description-expanded="${this.schemaDescriptionExpanded}" exportparts="btn--resp btn-fill--resp btn-outline--resp"> </api-response> </div> </div> `))} </div> </div> `))} </div> `))} </div> `}var Ps=r(80983),Is=r(3131),Rs=r.n(Is),Ns=r(83465),Ls=r.n(Ns),zs=r(26890),Ms=r(93373),Fs=r.n(Ms);function qs(e){if(!e)return;let t="",r="";if(e.$ref){const r=e.$ref.lastIndexOf("/");t=`{recursive: ${e.$ref.substring(r+1)}} `}else if(e.type){const r=Array.isArray(e.type)?e.type:"string"==typeof e.type?e.type.split("┃"):e.type;t=Array.isArray(r)?r.filter((e=>"null"!==e)).join("┃"):e.type,(e.format||e.enum)&&(t=t.replace("string",e.enum?"enum":e.format))}else t="{missing-type-info}";const n={type:t,format:e.format||"",pattern:e.pattern&&!e.enum?e.pattern:"",readOrWriteOnly:(e.readOnly?"🆁":e.writeOnly&&"🆆")||"",deprecated:!!e.deprecated,example:Array.isArray(e.example)?e.example:void 0!==e.example?`${e.example}`:"",default:e.default||"",title:e.title||"",description:e.description||"",constraint:"",allowedValues:"",arrayType:"",html:""};if("{recursive}"===n.type?n.description=e.$ref.substring(e.$ref.lastIndexOf("/")+1):"{missing-type-info}"===n.type&&(n.description=n.description||""),n.allowedValues=Array.isArray(e.enum)?e.enum.join("┃"):"","array"===t&&e.items){const t=e.items.type,r=void 0!==e.items.default?e.items.default:"";n.arrayType=`${e.type} of ${Array.isArray(t)?t.join(""):t}`,n.default=r,n.allowedValues=Array.isArray(e.items.enum)?e.items.enum.join("┃"):""}if(t.match(/integer|number/g)){const t=void 0!==e.minimum?e.minimum:e.exclusiveMinimum,n=void 0!==e.maximum?e.maximum:e.exclusiveMaximum,a=void 0!==e.minimum?"[":"(",i=void 0!==e.maximum?"]":")";"number"!=typeof t&&"number"!=typeof n||(r=`Range: ${a}${t||""},${n||""}${i}`),void 0!==e.multipleOf&&(r+=`${r?", ":""}Multiples: ${e.multipleOf}`)}return t.match(/string/g)&&(void 0!==e.minLength&&void 0!==e.maxLength?r+=`Min length: ${e.minLength}, Max length: ${e.maxLength}`:void 0!==e.minLength?r+=`Min length: ${e.minLength}`:void 0!==e.maxLength&&(r+=`Max length: ${e.maxLength}`)),n.constraint=r,n.html=JSON.stringify({type:n.type,readOrWriteOnly:n.readOrWriteOnly,constraint:n.constraint,defaultValue:n.default,allowedValues:n.allowedValues,pattern:n.pattern,schemaDescription:n.description,schemaTitle:n.title,deprecated:n.deprecated}),n}function Ds(e,t={}){if(!e)return[];const r={},n=[],{prefix:a,namespace:i}=e.xml||{};i&&(r[a?`xmlns:${a}`:"xmlns"]=i);const o=e.items&&e.items.xml&&e.items.xml.name||e.xml&&e.xml.name||t.propertyName||"root",s=a?`${a}:${o}`:o;if(e.allOf)return Ds(e.allOf[0],t);if(e.oneOf)return e.oneOf.map((e=>Ds(e,t))).flat(1);if(e.anyOf)return e.anyOf.map((e=>Ds(e,t))).flat(1);if("array"===e.type||e.items){if(!t.xml)return[Ds(e.items||{},t)];if(!e.xml||!e.xml.wrapped){const a=Ds(e.items||{},t);return n.push({[s]:a[0]},{_attr:r}),[n]}const a=Ds(e.items||{},{...t,propertyName:s});return n.push({[s]:a[0]},{_attr:r}),[n]}if("object"===e.type||e.properties){let o=[{}];return Object.keys(e.properties||{}).forEach((s=>{const c=e.properties[s];if(c.deprecated)return;if(c.readOnly&&!t.includeReadOnly)return;if(c.writeOnly&&!t.includeWriteOnly)return;const u=Ds(c,{...t,propertyName:s});o=function(e,t,r){return e.reduce(((e,n)=>{const a=r.slice(0,2).map((e=>({...Ls()(n),[t]:e})));return e.concat(...a)}),[]).slice(0,10)}(o,s,u),c.xml&&c.xml.namespace&&(r[c.xml.prefix?`xmlns:${c.xml.prefix}`:"xmlns"]=i);const l=c.xml&&c.xml.name||s||t.propertyName,p=a?`${a}:${l}`:l;c.xml&&c.xml.attribute?r[p]=u[0]:n.push({[p]:u[0]})})),Object.keys(r).length&&n.push({_attr:r}),t.xml?[n]:o}return[function(e,t,r){const n=e.examples?e.examples[0]:e.example;if(""===n)return"";if(null===n)return null;if(0===n)return 0;if(r&&"string"==typeof n)return"";if(n)return n;if(e.default)return e.default;if(0===Object.keys(e).length)return null;if(e.$ref)return e.$ref;const a=Array.isArray(e.type)?e.type.filter((e=>"null"!==e))[0]:e.type;if(a.match(/^integer|^number/g)){const t=Number.isNaN(Number(e.multipleOf))?void 0:Number(e.multipleOf),r=Number.isNaN(Number(e.maximum))?void 0:Number(e.maximum),n=Number.isNaN(Number(e.minimum))?Number.isNaN(Number(e.exclusiveMinimum))?r||0:Number(e.exclusiveMinimum)+(a.startsWith("integer")?1:.001):Number(e.minimum);return t?t>=n?t:n%t==0?n:Math.ceil(n/t)*t:n}if(a.match(/^boolean/g))return!1;if(a.match(/^null/g))return null;if(r&&a.match(/^string/g))return"";if(a.match(/^string/g)){if(e.enum)return e.enum[0];if(e.pattern){const r=e.pattern.replace(/[+*](?![^\][]*[\]])/g,"{8}").replace(/\{\d*,(\d+)?\}/g,"{8}");return(0,zs.expandN)(r,1)[0]||t||"string"}if(!e.format)return t||"string";switch(e.format.toLowerCase()){case"url":return"https://example.com";case"uri":return"urn:namespace:type:example/resource";case"date":return(new Date).toISOString().split("T")[0];case"time":return(new Date).toISOString().split("T")[1];case"date-time":return(new Date).toISOString();case"duration":return"P3Y6M4DT12H30M5S";case"email":case"idn-email":return"user@example.com";case"hostname":case"idn-hostname":return"www.example.com";case"ipv4":return"192.168.0.1";case"ipv6":return"2001:0db8:5b96:0000:0000:426f:8e17:642a";case"uuid":return"4e0ba220-9575-11eb-a8b3-0242ac130003";default:return e.format}}return"?"}(e,t.propertyName,t.skipExampleStrings)]}function Us(e){if("object"==typeof e&&null!==e){delete e["::TITLE"],delete e["::DESCRIPTION"];for(const t in e)Us(e[t])}}function Bs(e,t,r=0,n=""){if(e){if(e.allOf){const n={};if(1===e.allOf.length&&!e.allOf[0].properties&&!e.allOf[0].items){return`${qs(e.allOf[0]).html}`}e.allOf.map(((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const a=(e.anyOf||e.oneOf)&&t>0?t:"",i=Bs(e,{},r+1,a);Object.assign(n,i)}else if("array"===e.type||e.items){const t=Bs(e,{},r+1);Object.assign(n,t)}else if(e.type){const t=`prop${Object.keys(n).length}`,r=qs(e);n[t]=`${r.html}`}})),t=n}else if(e.anyOf||e.oneOf){if(t["::description"]=e.description||"","object"===e.type||e.properties){t["::description"]=e.description||"",t["::flags"]={"🆁":e.readOnly&&"🆁","🆆":e.writeOnly&&"🆆"},t["::type"]="object";for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=Bs(e.properties[n],{},r+1):t[n]=Bs(e.properties[n],{},r+1)}const a={},i=e.anyOf?"anyOf":"oneOf";e[i].forEach(((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){const r=Bs(e,{});a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]=r,a["::type"]="xxx-of-option"}else if("array"===e.type||e.items){const r=Bs(e,{});a[`::OPTION~${t+1}${e.title?`~${e.title}`:""}`]=r,a["::type"]="xxx-of-array"}else{const r=`::OPTION~${t+1}${e.title?`~${e.title}`:""}`;a[r]=`${qs(e).html}`,a["::type"]="xxx-of-option"}})),t[e.anyOf?`::ANY~OF ${n}`:`::ONE~OF ${n}`]=a,t["::type"]="xxx-of"}else if(Array.isArray(e.type)){const n=JSON.parse(JSON.stringify(e)),a=[],i=[];let o;if(n.type.forEach((t=>{t.match(/integer|number|string|null|boolean/g)?a.push(t):"array"===t&&"string"==typeof(n.items&&n.items.type)&&e.items&&n.items.type.match(/integer|number|string|null|boolean/g)?"string"===n.items.type&&n.items.format?a.push(`${n.items.format}[]`):a.push(`${n.items.type}[]`):i.push(t)})),a.length>0&&(n.type=a.join("┃"),o=qs(n),0===i.length))return`${o&&o.html||""}`;if(i.length>0){t["::type"]="xxx-of";const a={"::type":"xxx-of-option"};i.forEach(((t,i)=>{if("null"===t)a[`::OPTION~${i+1}`]="NULL~|~~|~~|~~|~~|~~|~~|~~|~";else if("integer, number, string, boolean,".includes(`${t},`)){n.type=Array.isArray(t)?t.join("┃"):t;const e=qs(n);a[`::OPTION~${i+1}`]=e.html}else if("object"===t){const t={"::title":e.title||"","::description":e.description||"","::flags":{"🆁":e.readOnly&&"🆁","🆆":e.writeOnly&&"🆆"},"::type":"object","::deprecated":e.deprecated||!1};for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=Bs(e.properties[n],{},r+1):t[n]=Bs(e.properties[n],{},r+1);a[`::OPTION~${i+1}`]=t}else"array"===t&&(a[`::OPTION~${i+1}`]={"::title":e.title||"","::description":e.description||"","::flags":{"🆁":e.readOnly&&"🆁","🆆":e.writeOnly&&"🆆"},"::type":"array","::props":Bs(Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.items),{},r+1)})})),a[`::OPTION~${i.length+1}`]=o&&o.html||"",t["::ONE~OF"]=a}}else if("object"===e.type||e.properties){t["::title"]=e.title||"",t["::description"]=e.description||"",t["::flags"]={"🆁":e.readOnly&&"🆁","🆆":e.writeOnly&&"🆆"},t["::type"]="object",t["::deprecated"]=e.deprecated||!1;for(const n in e.properties)e.required&&e.required.includes(n)?t[`${n}*`]=Bs(e.properties[n],{},r+1):t[n]=Bs(e.properties[n],{},r+1);e.additionalProperties&&(t["<any-key>"]=Bs(e.additionalProperties,{}))}else{if("array"!==e.type&&!e.items){const t=qs(e);return t&&t.html?`${t.html}`:""}t["::title"]=e.title||"",t["::description"]=e.description?e.description:e.items&&e.items.description?`array&lt;${e.items.description}&gt;`:"",t["::flags"]={"🆁":e.readOnly&&"🆁","🆆":e.writeOnly&&"🆆"},t["::type"]="array",t["::deprecated"]=e.deprecated||!1,t["::props"]=Bs(Object.assign({deprecated:e.deprecated,readOnly:e.readOnly,writeOnly:e.writeOnly},e.items),{},r+1)}return t}}function Hs(e,t,r,n,a=!0,i=!0,o,s=!1){const c=n||"application/json",u=[];if(e)for(const t in e){let r="",n="json";if(c.toLowerCase().includes("json")){if("text"===o)r="string"==typeof e[t].value?e[t].value:JSON.stringify(e[t].value,void 0,2),n="text";else if(r=e[t].value,"string"==typeof e[t].value)try{const a=e[t].value.replace(/([\w]+)(:)/g,'"$1"$2').replace(/'/g,'"');r=JSON.parse(a),n="json"}catch(a){n="text",r=e[t].value}}else r=e[t].value,n="text";u.push({exampleId:t,exampleSummary:e[t].summary||t,exampleDescription:e[t].description||"",exampleType:c,exampleValue:r,exampleFormat:n})}else if(t){let e="",r="json";if(c.toLowerCase().includes("json")){if("text"===o)e="string"==typeof t?t:JSON.stringify(t,void 0,2),r="text";else if("object"==typeof t)e=t,r="json";else if("string"==typeof t)try{e=JSON.parse(t),r="json"}catch(n){r="text",e=t}}else e=t,r="text";u.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:c,exampleValue:e,exampleFormat:r})}if(u.length)return u;if(r&&r.example)return[{exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:c,exampleValue:r.example,exampleFormat:c.toLowerCase().includes("json")&&"object"==typeof r.example?"json":"text"}];const l=function(e,t={}){if(t.xml)return Ds("object"===e.type?{properties:{_root:e}}:e,t).map((e=>e[0]));return Ds(e,t)}(r,{includeReadOnly:a,includeWriteOnly:i,skipExampleStrings:s,xml:c.toLowerCase().includes("xml")});return l&&(c.toLowerCase().includes("json")||c.toLowerCase().includes("text")||c.toLowerCase().includes("*/*")||c.toLowerCase().includes("xml"))?l.map(((e,t)=>{const r=e["::TITLE"]||`Example ${t+1}`,n=e["::DESCRIPTION"]||"";Us(e);let a="";return a=c.toLowerCase().includes("xml")?Fs()(e,{declaration:!0,indent:" "}):"text"===o?JSON.stringify(e,null,8):e,{exampleId:`Example-${t}`,exampleSummary:r,exampleDescription:n,exampleType:c,exampleFormat:c.toLowerCase().includes("xml")?"text":o,exampleValue:a}})).filter((e=>e)):[{exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:c,exampleValue:"",exampleFormat:"text"}]}const Vs=Q`.border-top{border-top:1px solid var(--border-color)}.border{border:1px solid var(--border-color);border-radius:var(--border-radius)}.light-border{border:1px solid var(--light-border-color);border-radius:var(--border-radius)}.pad-8-16{padding:8px 16px}.pad-top-8{padding-top:8px}.mar-top-8{margin-top:8px}`;class Gs extends X{static get properties(){return{data:{type:Object},renderStyle:{type:String,attribute:"render-style"}}}static get styles(){return[qe,Vs,De,Q`:host{display:flex}.json-tree{background:#333;color:#fff;padding:8px;min-height:30px;font-family:var(--font-mono);font-size:var(--font-size-small);overflow:hidden;word-break:break-all;flex:1;line-height:calc(var(--font-size-small) + 6px)}.open-bracket{display:inline-block;padding:0 20px 0 0;cursor:pointer;border:1px solid transparent;border-radius:3px}.open-bracket:hover{color:var(--primary-color);background-color:var(--hover-color);border:1px solid var(--border-color)}.inside-bracket{padding-left:16px;border-left:1px dotted var(--border-color)}.open-bracket.collapsed+.inside-bracket,.open-bracket.collapsed+.inside-bracket+.close-bracket{display:none}.string{color:var(--green)}.number{color:var(--blue)}.null{color:var(--red)}.boolean{color:var(--orange)}.object{color:#fff}.toolbar{position:absolute;right:6px;display:flex;align-items:center}`]}render(){return q` <div class="json-tree"> <div class="toolbar"> <button class="toolbar-copy-btn" part="btn btn-fill" @click="${e=>{Ze(JSON.stringify(this.data,null,2),e)}}">Copy</button> </div> ${this.generateTree(this.data,!0)} </div> `}generateTree(e,t=!1){if(null===e)return q`<div class="null" style="display:inline">null</div>`;if("object"==typeof e&&e instanceof Date==!1){const r=Array.isArray(e)?"array":"pure_object";return 0===Object.keys(e).length?q`${Array.isArray(e)?"[ ],":"{ },"}`:q` <div class="open-bracket expanded ${"array"===r?"array":"object"}" @click="${this.toggleExpand}"> ${"array"===r?"[":"{"}</div> <div class="inside-bracket"> ${Object.keys(e).map(((t,n,a)=>q` <div class="item"> ${"pure_object"===r?q`"${t}":`:""} ${this.generateTree(e[t],n===a.length-1)} </div>`))} </div> <div class="close-bracket">${"array"===r?"]":"}"}${t?"":","}</div> `}return"string"==typeof e||e instanceof Date?q`<span class="${typeof e}">"${e}"</span>${t?"":","}`:q`<span class="${typeof e}">${e}</span>${t?"":","}`}toggleExpand(e){const t=e.target;t.classList.contains("expanded")?(t.classList.replace("expanded","collapsed"),e.target.innerHTML=e.target.classList.contains("array")?"[...]":"{...}"):(t.classList.replace("collapsed","expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{")}}customElements.get("openapi-explorer")||customElements.define("json-tree",Gs);const Ws=Q`*,:after,:before{box-sizing:border-box}.tr{display:flex;flex:none;width:100%;box-sizing:content-box;border-bottom:1px dotted transparent}.td{display:block;flex:0 0 auto}.key{font-family:var(--font-mono);white-space:normal;word-break:break-all}.collapsed-descr .key{overflow:hidden}.key-descr{font-family:var(--font-regular);flex-shrink:1;text-overflow:ellipsis;overflow:hidden;display:none}.toolbar{display:none}.expanded-descr .key-descr{max-height:auto;overflow:hidden;display:none}.collapsed-descr .tr{max-height:20px}.tr.xxx-of{border-top:1px dotted var(--primary-color)}.xxx-of-key{font-size:calc(var(--font-size-small) - 2px);font-weight:700;background-color:var(--primary-color);color:var(--primary-btn-text-color);border-radius:2px;line-height:calc(var(--font-size-small) + 6px);padding:0 5px;margin-bottom:1px;display:inline-block}.xxx-of-descr{font-family:var(--font-regular);color:var(--primary-color);font-size:calc(var(--font-size-small) - 1px);margin-left:2px}.bina,.byte,.date,.emai,.host,.ipv4,.pass,.stri,.string,.uri,.url,.uuid{color:var(--green)}.deci .blue,.doub,.floa,.int3,.int6,.inte,.numb,.number{color:var(--blue)}.null{color:var(--red)}.bool,.boolean{color:var(--orange)}.enum{color:var(--yellow)}.tree .toolbar{display:flex;justify-content:space-between}.toolbar{width:100%}.toolbar-item{cursor:pointer;padding:5px 0 5px 1rem;margin:0 1rem!important;color:#38b3f9;flex-shrink:0}.tree .toolbar .toolbar-item{display:none}.schema-root-type{cursor:auto;color:var(--fg2);font-weight:700;text-transform:uppercase}.schema-root-type.xxx-of{display:none}.toolbar-item:first-of-type{margin:0 2px 0 0}@media only screen and (min-width:576px){.key-descr{display:block}.tree .toolbar .toolbar-item{display:block}.toolbar{display:flex}.expanded-descr .key-descr{display:block}}`;class Ks extends X{static get properties(){return{data:{type:Object},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},schemaHideWriteOnly:{type:String,attribute:"schema-hide-write-only"}}}connectedCallback(){super.connectedCallback(),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true false".includes(this.schemaDescriptionExpanded)||(this.schemaDescriptionExpanded="true"),this.schemaHideReadOnly&&"true false".includes(this.schemaHideReadOnly)||(this.schemaHideReadOnly="true"),this.schemaHideWriteOnly&&"true false".includes(this.schemaHideWriteOnly)||(this.schemaHideWriteOnly="true")}static get styles(){return[qe,Ws,Vs,Q`.tree{min-height:30px;background:#333;padding:10px;color:#fff;font-size:var(--font-size-small);text-align:left;line-height:calc(var(--font-size-small) + 6px)}.collapsed-descr .tr{max-height:calc(var(--font-size-small) + 8px)}.collapsed-descr .m-markdown-small p{line-height:calc(var(--font-size-small) + 6px)}.tree .key{max-width:300px}.key.deprecated .key-label{text-decoration:line-through}.open-bracket{display:inline-block;padding:0 20px 0 0;cursor:pointer;border:1px solid transparent;border-radius:3px}.open-bracket:hover{color:var(--primary-color);background-color:var(--hover-color);border:1px solid var(--border-color)}.close-bracket{display:inline-block;font-family:var(--font-mono)}.tr.collapsed+.inside-bracket,.tr.collapsed+.inside-bracket+.close-bracket{display:none}.inside-bracket.array,.inside-bracket.object{border-left:1px dotted var(--border-color)}.inside-bracket.xxx-of{padding:5px 0;border-style:dotted;border-width:0 0 1px 0;border-color:var(--primary-color)}`]}render(){return q` <div class="tree ${"true"===this.schemaDescriptionExpanded?"expanded-descr":"collapsed-descr"}"> <div class="toolbar"> ${this.data&&this.data["::description"]?q`<span class="m-markdown" style="margin-block-start:0"> ${ms(ze(this.data["::description"]||""))}</span>`:q`<div>&nbsp;</div>`} <div class="toolbar-item" @click="${()=>{this.schemaDescriptionExpanded="true"===this.schemaDescriptionExpanded?"false":"true"}}"> ${"true"===this.schemaDescriptionExpanded?"Collapse descriptions":"Expand descriptions"} </div> </div> ${this.data?q`${this.generateTree("array"===this.data["::type"]?this.data["::props"]:this.data,this.data["::type"])}`:q`<span class="mono-font" style="color:var(--red)"> Schema not found </span>`} </div> `}generateTree(e,t="object",r="",n="",a=0,i=0){if(!e)return q`<div class="null" style="display:inline">null</div>`;if(0===Object.keys(e).length)return q`<span class="key object">${r}:{ }</span>`;let o="",s="";if(r.startsWith("::ONE~OF")||r.startsWith("::ANY~OF"))o=r.replace("::","").replace("~"," ");else if(r.startsWith("::OPTION")){const e=r.split("~");o=e[1],s=e[2]}else o=r;const c=250-16*i;let u="",l="";const p=e["::type"]&&e["::type"].startsWith("xxx-of")?a:a+1,d="xxx-of-option"===t||"xxx-of-option"===e["::type"]||r.startsWith("::OPTION")?i:i+1;if("object"===e["::type"]?"array"===t?(u=a<this.schemaExpandLevel?q`<span class="open-bracket array-of-object" @click="${this.toggleObjectExpand}">[{</span>`:q`<span class="open-bracket array-of-object" @click="${this.toggleObjectExpand}">[{...}]</span>`,l="}]"):(u=a<this.schemaExpandLevel?q`<span class="open-bracket object" @click="${this.toggleObjectExpand}">{</span>`:q`<span class="open-bracket object" @click="${this.toggleObjectExpand}">{...}</span>`,l="}"):"array"===e["::type"]&&("array"===t?(u=a<this.schemaExpandLevel?q`<span class="open-bracket array-of-array" @click="${this.toggleObjectExpand}">[[</span>`:q`<span class="open-bracket array-of-array" @click="${this.toggleObjectExpand}">[[...]]</span>`,l="]]"):(u=a<this.schemaExpandLevel?q`<span class="open-bracket array" @click="${this.toggleObjectExpand}">[</span>`:q`<span class="open-bracket array" @click="${this.toggleObjectExpand}">[...]</span>`,l="]")),"object"==typeof e){const i=e["::flags"]||{};if(i["🆁"]&&"true"===this.schemaHideReadOnly)return;if(i["🆆"]&&"true"===this.schemaHideWriteOnly)return;const f=[i["🆁"]||i["🆆"],n].filter((e=>e)).join(" ");return q` <div class="tr ${a<this.schemaExpandLevel||e["::type"]&&e["::type"].startsWith("xxx-of")?"expanded":"collapsed"} ${e["::type"]||"no-type-info"}"> <div class="td key ${e["::deprecated"]?"deprecated":""}" style="min-width:${c}px"> ${"xxx-of-option"===e["::type"]||"xxx-of-array"===e["::type"]||r.startsWith("::OPTION")?q`<span class="key-label xxx-of-key">${o}</span><span class="xxx-of-descr">${s}</span>`:o.endsWith("*")?q`<span class="key-label">${o.substring(0,o.length-1)}</span><span style="color:var(--red)">*</span>:`:"::props"===o||"::ARRAY~OF"===o?"":a>0?q`<span class="key-label">${o}:</span>`:""} ${"xxx-of"===e["::type"]&&"array"===t?q`<span style="color:var(--primary-color)">ARRAY</span>`:""} ${u} </div> <div class="td key-descr"> <span class="m-markdown-small" style="font-family:var(--font-mono);vertical-align:middle" title="${(i["🆁"]?"Read only attribute":i["🆆"]&&"Write only attribute")||""}"> ${ms(ze(f))} </span> </div> </div> <div class="inside-bracket ${e["::type"]||"no-type-info"}" style="padding-left:${"xxx-of-option"===e["::type"]||"xxx-of-array"===e["::type"]?0:16}px"> ${Array.isArray(e)&&e[0]?q`${this.generateTree(e[0],"xxx-of-option","::ARRAY~OF","",p,d)}`:q` ${Object.keys(e).map((t=>t.startsWith("::")&&"array"!==e[t]["::type"]&&"object"!==e[t]["::type"]?"":q`${this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],t,e[t]["::description"],p,d)}`))}`} </div> ${e["::type"]&&e["::type"].includes("xxx-of")?"":q`<div class="close-bracket"> ${l} </div>`} `}const{type:f,readOrWriteOnly:h,constraint:m,defaultValue:v,allowedValues:b,pattern:g,schemaDescription:y,schemaTitle:x,deprecated:w}=JSON.parse(e);if("🆁"===h&&"true"===this.schemaHideReadOnly)return;if("🆆"===h&&"true"===this.schemaHideWriteOnly)return;const k=f.replace(/┃.*/g,"").replace(/[^a-zA-Z0-9+]/g,"").substring(0,4).toLowerCase();return q` <div class="tr primitive"> <div class="td key ${w?"deprecated":""}" style="min-width:${c}px"> ${o.endsWith("*")?q`<span class="key-label">${o.substring(0,o.length-1)}</span><span style="color:var(--red)">*</span>:`:r.startsWith("::OPTION")?q`<span class="key-label xxx-of-key">${o}</span><span class="xxx-of-descr">${s}</span>`:a>0?q`<span class="key-label">${o}:</span>`:""} <span class="${k}"> ${"array"===t?`${f}[]`:`${f}`} </span> </div> <div class="td key-descr"> <span class="m-markdown-small" style="font-family:var(--font-mono);vertical-align:middle" title="${("🆁"===h?"Read only attribute":"🆆"===h&&"Write only attribute")||""}"> ${ms(ze(`${h&&`${h} `||""}${"array"===t&&n||`${x?`**${x}:**`:""} ${y}`||""}`))} </span> ${m?q`<div style="display:inline-block;line-break:anywhere;margin-right:8px"><span class="bold-text">Constraints: </span>${m}</div>`:""} ${v?q`<div style="display:inline-block;line-break:anywhere;margin-right:8px"><span class="bold-text">Default: </span>${v}</div>`:""} ${b?q`<div style="display:inline-block;line-break:anywhere;margin-right:8px"><span class="bold-text">Allowed: </span>${b}</div>`:""} ${g?q`<div style="display:inline-block;line-break:anywhere;margin-right:8px"><span class="bold-text">Pattern: </span>${g}</div>`:""} </div> </div> `}toggleObjectExpand(e){const t=e.target.closest(".tr");t.classList.contains("expanded")?(t.classList.replace("expanded","collapsed"),e.target.innerHTML=e.target.classList.contains("array-of-object")?"[{...}]":e.target.classList.contains("array-of-array")?"[[...]]":e.target.classList.contains("array")?"[...]":"{...}"):(t.classList.replace("collapsed","expanded"),e.target.innerHTML=e.target.classList.contains("array-of-object")?"[{":e.target.classList.contains("array-of-array")?"[[":e.target.classList.contains("object")?"{":"[")}}customElements.get("openapi-explorer")||customElements.define("schema-tree",Ks);class Js extends X{render(){const e=q`${(this.value||[]).filter((e=>e.trim())).map((e=>q`<span class="tag">${e}</span>`))}`;return q` <div class="tags" tabindex="0"> ${e} <input type="text" class="editor" @paste="${e=>this.afterPaste(e)}" @keydown="${this.afterKeyDown}" placeholder="${this.placeholder||""}"> </div> `}static get properties(){return{placeholder:{type:String},value:{type:Array,attribute:"value"}}}connectedCallback(){super.connectedCallback(),Array.isArray(this.value)||(this.value=""!==this.value?[this.value]:[])}attributeChangedCallback(e,t,r){"value"===e&&r&&t!==r&&(this.value=r.split(",").filter((e=>e.trim()))),super.attributeChangedCallback(e,t,r)}afterPaste(e){const t=(e.clipboardData||window.clipboardData).getData("Text"),r=t&&t.split(",").filter((e=>e.trim()))||[];this.value=this.value.concat(r),e.preventDefault()}afterKeyDown(e){13===e.keyCode?(e.stopPropagation(),e.preventDefault(),this.value=this.value.concat(e.target.value||[]),e.target.value=""):8===e.keyCode&&0===e.target.value.length&&(this.value=this.value.slice(0,-1))}static get styles(){return[Q`.tags{display:flex;flex-wrap:wrap;outline:0;padding:0;border-radius:var(--border-radius);border:1px solid var(--border-color);cursor:text;overflow:hidden;background:var(--input-bg)}.editor,.tag{padding:3px;margin:2px}.tag{border:1px solid var(--border-color);background-color:var(--bg3);color:var(--fg3);border-radius:var(--border-radius);word-break:break-all;font-size:var(--font-size-small)}.tag:hover~#cursor{display:block}.editor{flex:1;border:1px solid transparent;color:var(--fg);min-width:60px;outline:0;line-height:inherit;font-family:inherit;background:0 0;font-size:calc(var(--font-size-small) + 1px)}.editor::placeholder{color:var(--placeholder-color);opacity:1}`]}}customElements.get("openapi-explorer")||customElements.define("tag-input",Js);const Ys=RegExp("^font/|tar$|zip$|7z$|rtf$|msword$|excel$|/pdf$|/octet-stream$|^application/vnd."),Qs=RegExp("^audio/|^image/|^video/"),Zs=(e,t)=>e&&e.length>t?`${e.substring(0,t-1)}…`:e;class Xs extends X{createRenderRoot(){return this}constructor(){super(),this.responseMessage="",this.responseStatus="",this.responseHeaders="",this.responseText="",this.responseUrl="",this.responseElapsedMs=0,this.curlSyntax="",this.activeResponseTab="response",this.selectedRequestBodyType="",this.selectedRequestBodyExample=""}static get properties(){return{serverUrl:{type:String,attribute:"server-url"},servers:{type:Array},method:{type:String},path:{type:String},parameters:{type:Array},request_body:{type:Object},api_keys:{type:Array},parser:{type:Object},accept:{type:String},callback:{type:String},responseMessage:{type:String,attribute:!1},responseText:{type:String,attribute:!1},responseHeaders:{type:String,attribute:!1},responseStatus:{type:String,attribute:!1},responseUrl:{type:String,attribute:!1},responseElapsedMs:{type:Number,attribute:!1},fillRequestWithDefault:{type:String,attribute:"fill-defaults"},allowTry:{type:String,attribute:"enable-console"},renderStyle:{type:String,attribute:"render-style"},schemaStyle:{type:String,attribute:"schema-style"},activeSchemaTab:{type:String,attribute:"active-schema-tab"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},schemaHideReadOnly:{type:String,attribute:"schema-hide-read-only"},fetchCredentials:{type:String,attribute:"fetch-credentials"},activeResponseTab:{type:String},selectedRequestBodyType:{type:String,attribute:"selected-request-body-type"},selectedRequestBodyExample:{type:String,attribute:"selected-request-body-example"}}}render(){return q` <div class="api-request col regular-font request-panel ${"focused"===this.renderStyle||"true"===this.callback?"focused-mode":"view-mode"}"> <div class="${"true"===this.callback?"tiny-title":"req-res-title"}"> ${"true"===this.callback?"CALLBACK REQUEST":"REQUEST"} </div> <div> ${this.inputParametersTemplate("path")} ${this.inputParametersTemplate("query")} ${this.requestBodyTemplate()} ${this.inputParametersTemplate("header")} ${this.inputParametersTemplate("cookie")} ${"false"===this.allowTry?"":q`${this.apiCallTemplate()}`} </div> </div> `}updated(e){if("focused"!==this.renderStyle)return;if(1===e.size&&e.has("activeSchemaTab"))return;[...this.querySelectorAll('textarea[data-ptype="form-data"]')].forEach((e=>{const t=this.querySelector(`textarea[data-pname='hidden-${e.dataset.pname}']`);t&&(e.value=t.value)}))}inputParametersTemplate(e){const t=this.parameters?this.parameters.filter((t=>t.in===e)):[];if(0===t.length)return"";let r="";"path"===e?r="PATH PARAMETERS":"query"===e?r="QUERY-STRING PARAMETERS":"header"===e?r="REQUEST HEADERS":"cookie"===e&&(r="COOKIES");const n=[];for(const r of t){if(!r.schema)continue;const t=qs(r.schema);if(!t)continue;const a=Array.isArray(t.default)?t.default:`${t.default}`;let i="form",o=!0;"query"===e&&(r.style&&"form spaceDelimited pipeDelimited".includes(r.style)&&(i=r.style),"boolean"==typeof r.explode&&(o=r.explode)),n.push(q` <tr> <td style="width:160px;min-width:50px"> <div class="param-name ${t.deprecated?"deprecated":""}"> ${r.name}${!t.deprecated&&r.required?q`<span style="color:var(--red)">*</span>`:""} </div> <div class="param-type"> ${"array"===t.type?`${t.arrayType}`:`${t.format?t.format:t.type}`}${!t.deprecated&&r.required?q`<span style="opacity:0">*</span>`:""} </div> </td> ${"true"===this.allowTry?q` <td style="min-width:160px"> ${"array"===t.type?q` <tag-input class="request-param" style="width:100%" data-ptype="${e}" data-pname="${r.name}" data-default="${Array.isArray(a)?a.join("~|~"):a}" data-param-serialize-style="${i}" data-param-serialize-explode="${o}" data-array="true" placeholder="${t.example||(Array.isArray(a)?a[0]:a)||"add-multiple &#x21a9;"}" .value="${Array.isArray(a)?a:a.split(",")}"> </tag-input>`:"object"===t.type?q` <textarea class="textarea request-param" part="textarea textarea-param" data-ptype="${e}-object" data-pname="${r.name}" data-default="${a}" data-param-serialize-style="${i}" data-param-serialize-explode="${o}" spellcheck="false" placeholder="${t.example||a||""}" style="resize:vertical;width:100%;height:${"read focused".includes(this.renderStyle)?"180px":"120px"}">${"true"===this.fillRequestWithDefault?a:""}</textarea>`:q` <input type="${"password"===t.format?"password":"text"}" spellcheck="false" style="width:100%" placeholder="${t.example||a||""}" class="request-param" part="textbox textbox-param" data-ptype="${e}" data-pname="${r.name}" data-default="${Array.isArray(a)?a.join("~|~"):a}" data-array="false" @keyup="${this.requestParamFunction}" .value="${"true"===this.fillRequestWithDefault?a:""}">`} </td>`:""} ${"focused"===this.renderStyle?q` <td> ${t.default||t.constraint||t.allowedValues||t.pattern?q` <div class="param-constraint"> ${t.constraint?q`<span style="font-weight:700">Constraints: </span>${t.constraint}<br>`:""} ${t.pattern?q`<span style="font-weight:700">Pattern: </span>${Zs(t.pattern,60)}<br>`:""} ${t.allowedValues&&t.allowedValues.split("┃").map(((e,n)=>q` ${n>0?"|":q`<span style="font-weight:700">Allowed: </span>`} ${q` <a part="anchor anchor-param-constraint" class="${"true"===this.allowTry?"":"inactive-link"}" data-type="${"array"===t.type?t.type:"string"}" data-enum="${e.trim()}" @click="${e=>{const t=e.target.closest("table").querySelector(`[data-pname="${r.name}"]`);t&&("array"===e.target.dataset.type?t.value=[e.target.dataset.enum]:t.value=e.target.dataset.enum)}}"> ${e} </a>`}`))} </div>`:""} </td> `:""} </tr>`)}return q` <div class="table-title top-gap">${r}${"path"===e?q`<span style="color:var(--red)">*</span>`:""}</div> <div style="display:block;overflow-x:auto;max-width:100%"> <table class="m-table" style="width:100%;word-break:break-word"> ${n} </table> </div>`}resetRequestBodySelection(){this.selectedRequestBodyType="",this.selectedRequestBodyExample="",this.clearResponseData()}onSelectExample(e){this.selectedRequestBodyExample=e.target.value;const t=e.target;window.setTimeout((e=>{const t=e.closest(".example-panel").querySelector(".request-body-param");e.closest(".example-panel").querySelector(".request-body-param-user-input").value=t.value}),0,t)}onMimeTypeChange(e){this.selectedRequestBodyType=e.target.value;const t=e.target;this.selectedRequestBodyExample="",window.setTimeout((e=>{const t=e.closest(".request-body-container").querySelector(".request-body-param");if(t){e.closest(".request-body-container").querySelector(".request-body-param-user-input").value=t.value}}),0,t)}requestBodyTemplate(){if(!this.request_body)return"";if(0===Object.keys(this.request_body).length)return"";let e="",t="",r="",n="",a="";const i=[],o=this.request_body.content;for(const e in o)i.push({mimeType:e,schema:o[e].schema,example:o[e].example,examples:o[e].examples}),this.selectedRequestBodyType||(this.selectedRequestBodyType=e);return e=1===i.length?"":q` <select style="min-width:100px;max-width:100%;margin-bottom:-1px" @change="${e=>this.onMimeTypeChange(e)}"> ${i.map((e=>q` <option value="${e.mimeType}" ?selected="${e.mimeType===this.selectedRequestBodyType}"> ${e.mimeType} </option> `))} </select> `,i.forEach((e=>{let i=[];if(this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text"))e.mimeType===this.selectedRequestBodyType&&(i=Hs(e.examples?e.examples:"",e.example?e.example:"",e.schema,e.mimeType,!1,!0,"text",!0),this.selectedRequestBodyExample||(this.selectedRequestBodyExample=i.length>0?i[0].exampleId:""),a=q` ${a} <div class="example-panel border-top pad-top-8"> ${1===i.length?"":q` <select style="min-width:100px;max-width:100%;margin-bottom:-1px" @change="${e=>this.onSelectExample(e)}"> ${i.map((e=>q`<option value="${e.exampleId}" ?selected="${e.exampleId===this.selectedRequestBodyExample}"> ${e.exampleSummary.length>80?e.exampleId:e.exampleSummary?e.exampleSummary:e.exampleId} </option>`))} </select> `} ${i.filter((e=>e.exampleId===this.selectedRequestBodyExample)).map((t=>q` <div class="example ${t.exampleId===this.selectedRequestBodyExample?"example-selected":""}" data-default="${t.exampleId}"> ${t.exampleSummary&&t.exampleSummary.length>80?q`<div style="padding:4px 0"> ${t.exampleSummary} </div>`:""} ${t.exampleDescription?q`<div class="m-markdown-small" style="padding:4px 0"> ${ms(ze(t.exampleDescription||""))} </div>`:""} <textarea class="textarea request-body-param-user-input" part="textarea textarea-param" spellcheck="false" data-ptype="${e.mimeType}" data-default="${"text"===t.exampleFormat?t.exampleValue:JSON.stringify(t.exampleValue,null,8)}" data-default-format="${t.exampleFormat}" style="width:100%;resize:vertical">${"true"===this.fillRequestWithDefault?"text"===t.exampleFormat?t.exampleValue:JSON.stringify(t.exampleValue,null,8):""}</textarea> <textarea class="textarea is-hidden request-body-param ${e.mimeType.substring(e.mimeType.indexOf("/")+1)}" spellcheck="false" data-ptype="${e.mimeType}" style="width:100%;resize:vertical;display:none">${"text"===t.exampleFormat?t.exampleValue:JSON.stringify(t.exampleValue,null,8)}</textarea> </div> `))} </div> `);else if(this.selectedRequestBodyType.includes("form-urlencoded")||this.selectedRequestBodyType.includes("form-data")){if(e.mimeType===this.selectedRequestBodyType){const t=Hs(e.examples?e.examples:"",e.example?e.example:"",e.schema,e.mimeType,!1,!0,"text",!0);e.schema&&(r=this.formDataTemplate(e.schema,e.mimeType,t[0]?t[0].exampleValue:""))}}else(Qs.test(this.selectedRequestBodyType)||Ys.test(this.selectedRequestBodyType))&&e.mimeType===this.selectedRequestBodyType&&(t=q` <div class="small-font-size bold-text row"> <input type="file" part="file-input" style="max-width:100%" class="request-body-param-file" data-ptype="${e.mimeType}" spellcheck="false"> </div> `);if(e.mimeType.includes("json")||e.mimeType.includes("xml")||e.mimeType.includes("text")){const t=Bs(e.schema,{});"table"===this.schemaStyle?n=q` ${n} <schema-table class="${e.mimeType.substring(e.mimeType.indexOf("/")+1)} pad-top-8" style="display:${this.selectedRequestBodyType===e.mimeType?"block":"none"}" .data="${t}" schema-expand-level="${this.schemaExpandLevel}" schema-description-expanded="${this.schemaDescriptionExpanded}" schema-hide-read-only="${this.schemaHideReadOnly.includes(this.method)}" schema-hide-write-only="false"> </schema-table> `:"tree"===this.schemaStyle&&(n=q` ${n} <schema-tree class="${e.mimeType.substring(e.mimeType.indexOf("/")+1)} pad-top-8" style="display:${this.selectedRequestBodyType===e.mimeType?"block":"none"}" .data="${t}" schema-expand-level="${this.schemaExpandLevel}" schema-description-expanded="${this.schemaDescriptionExpanded}" schema-hide-read-only="${this.schemaHideReadOnly.includes(this.method)}" schema-hide-write-only="false"> </schema-tree> `)}})),q` <div class="request-body-container" data-selected-request-body-type="${this.selectedRequestBodyType}"> <div class="table-title top-gap row"> REQUEST BODY ${this.request_body.required?q`<span class="mono-font" style="color:var(--red)">*</span>`:""} <span style="font-weight:400;margin-left:5px"> ${this.selectedRequestBodyType}</span> <span style="flex:1"></span> ${e} </div> ${this.request_body.description?q`<div class="m-markdown" style="margin-bottom:12px">${ms(ze(this.request_body.description))}</div>`:""} ${this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text")?q` <div class="tab-panel col" style="border-width:0 0 1px 0"> <div class="tab-buttons row" @click="${e=>{"button"===e.target.tagName.toLowerCase()&&(this.activeSchemaTab=e.target.dataset.tab)}}"> <button class="tab-btn ${"model"===this.activeSchemaTab?"active":""}" data-tab="model">MODEL</button> <button class="tab-btn ${"body"===this.activeSchemaTab?"active":""}" data-tab="body">BODY</button> </div> ${q`<div class="tab-content col" style="display:${"model"===this.activeSchemaTab?"block":"none"}"> ${n}</div>`} ${q`<div class="tab-content col" style="display:${"model"===this.activeSchemaTab?"none":"block"}"> ${a}</div>`} </div>`:q` ${t} ${r}`} </div> `}formDataTemplate(e,t,r=""){const n=[];if(e.properties){for(const r in e.properties){const a=e.properties[r];if(a.readOnly)continue;const i=a.type,o=Bs(a,{}),s=qs(a),c=Hs("",a.example?a.example:"",a,"json",!1,!0,"text",!0);n.push(q` <tr> <td style="width:160px;min-width:100px"> <div class="param-name ${a.deprecated?"deprecated":""}"> ${r}${!a.deprecated&&(e.required&&e.required.includes(r)||a.required)?q`<span style="color:var(--red)">*</span>`:""} </div> <div class="param-type">${s.type}</div> </td> <td style="${"object"===i?"width:100%; padding:0;":"true"===this.allowTry?"":"display:none;"} min-width:100px" colspan="${"object"===i?2:1}"> ${"array"===i?a.items&&"binary"===a.items.format?q` <div class="file-input-container col" style="align-items:flex-end" @click="${e=>this.onAddRemoveFileInput(e,r,t)}"> <div class="input-set row"> <input type="file" part="file-input" style="width:100%" data-pname="${r}" data-ptype="${t.includes("form-urlencode")?"form-urlencode":"form-data"}" data-array="false" data-file-array="true"> <button class="file-input-remove-btn"> &#x2715; </button> </div> <button class="m-btn primary file-input-add-btn" part="btn btn-fill" style="margin:2px 25px 0 0;padding:2px 6px">ADD</button> </div> `:q` <tag-input style="width:100%" data-ptype="${t.includes("form-urlencode")?"form-urlencode":"form-data"}" data-pname="${r}" data-default="${s.default||""}" data-array="true" placeholder="${(Array.isArray(s.example)?s.example[0]:s.example)||"add-multiple &#x21a9;"}" .value="${s.default||""}"> </tag-input> `:q` ${"object"===i?q` <div class="tab-panel row" style="min-height:220px;border-left:6px solid var(--light-border-color);align-items:stretch"> <div style="width:24px;background-color:var(--light-border-color)"> <div class="row" style="flex-direction:row-reverse;width:160px;height:24px;transform:rotate(270deg) translateX(-160px);transform-origin:top left;display:block" @click="${e=>{if(e.target.classList.contains("v-tab-btn")){const t=e.target.dataset.tab;if(t){const r=e.target.closest(".tab-panel"),n=r.querySelector(`.v-tab-btn[data-tab="${t}"]`),a=[...r.querySelectorAll(`.v-tab-btn:not([data-tab="${t}"])`)],i=r.querySelector(`.tab-content[data-tab="${t}"]`),o=[...r.querySelectorAll(`.tab-content:not([data-tab="${t}"])`)];n.classList.add("active"),i.style.display="block",a.forEach((e=>{e.classList.remove("active")})),o.forEach((e=>{e.style.display="none"}))}}"button"===e.target.tagName.toLowerCase()&&(this.activeSchemaTab=e.target.dataset.tab)}}"> <button class="v-tab-btn ${"model"===this.activeSchemaTab?"active":""}" data-tab="model">MODEL</button> <button class="v-tab-btn ${"body"===this.activeSchemaTab?"active":""}" data-tab="body">REQUEST BODY</button> </div> </div> ${q` <div class="tab-content col" data-tab="model" style="display:${"model"===this.activeSchemaTab?"block":"none"};padding-left:5px;width:100%"> <schema-tree .data="${o}" schema-expand-level="${this.schemaExpandLevel}" schema-description-expanded="${this.schemaDescriptionExpanded}"> </schema-tree> </div>`} ${q` <div class="tab-content col" data-tab="example" style="display:${"body"===this.activeSchemaTab?"block":"none"};padding-left:5px;width:100%"> <textarea class="textarea" placeholder="${c[0]&&c[0].exampleValue||s.default||""}" part="textarea textarea-param" style="width:100%;border:none;resize:vertical" data-array="false" data-ptype="${t.includes("form-urlencode")?"form-urlencode":"form-data"}" data-pname="${r}" data-default="${s.default||""}" spellcheck="false">${"true"===this.fillRequestWithDefault?s.default:""}</textarea> <textarea data-pname="hidden-${r}" data-ptype="${t.includes("form-urlencode")?"hidden-form-urlencode":"hidden-form-data"}" class="is-hidden" style="display:none">${s.default}</textarea> </div>`} </div>`:q` ${"true"===this.allowTry?q`<input placeholder="${s.example||s.default||""}" .value="${"true"===this.fillRequestWithDefault&&s.default||""}" spellcheck="false" type="${"binary"===a.format?"file":"password"===a.format?"password":"text"}" part="textbox textbox-param" style="width:100%" data-ptype="${t.includes("form-urlencode")?"form-urlencode":"form-data"}" data-pname="${r}" data-default="${s.default||""}" data-array="false">`:""} `}`} </td> ${"object"===i?"":q` <td> ${s.default||s.constraint||s.allowedValues||s.pattern?q` <div class="param-constraint"> ${s.pattern?q`<span style="font-weight:700">Pattern: </span>${s.pattern}<br>`:""} ${s.constraint?q`<span style="font-weight:700">Constraints: </span>${s.constraint}<br>`:""} ${s.allowedValues&&s.allowedValues.split("┃").map(((e,t)=>q` ${t>0?"|":q`<span style="font-weight:700">Allowed: </span>`} ${q` <a part="anchor anchor-param-constraint" class="${"true"===this.allowTry?"":"inactive-link"}" data-type="${"array"===s.type?s.type:"string"}" data-enum="${e.trim()}" @click="${e=>{const t=e.target.closest("table").querySelector(`[data-pname="${r}"]`);t&&("array"===e.target.dataset.type?t.value=[e.target.dataset.enum]:t.value=e.target.dataset.enum)}}"> ${e} </a>`}`))} </div>`:""} </td>`} </tr> ${"object"===i?"":q` <tr> <td style="border:none"> </td> <td colspan="2" style="border:none;margin-top:0;padding:0 5px 8px 5px"> <span class="m-markdown-small">${ms(ze(a.description||""))}</span> ${s.example?q` <span> <span style="font-weight:700"> Example: </span> ${"array"===s.type?"[ ":""} <a part="anchor anchor-param-example" class="${"true"===this.allowTry?"":"inactive-link"}" data-default-type="${"array"===s.type?s.type:"string"}" data-default="${Array.isArray(s.example)&&s.example.join("~|~")||s.example||""}" @click="${e=>{const t=e.target.closest("table").querySelector(`[data-pname="${r}"]`);t&&("array"===e.target.dataset.exampleType?t.value=e.target.dataset.example.split("~|~"):t.value=e.target.dataset.example)}}"> ${"array"===s.type?s.example.join(", "):s.example} </a> ${"array"===s.type?"] ":""} </span>`:""} </td> </tr> `}`)}return q` <table style="width:100%" class="m-table"> ${n} </table> `}return q` <textarea class="textarea dynamic-form-param ${t}" part="textarea textarea-param" spellcheck="false" data-pname="dynamic-form" data-ptype="${t}" style="width:100%">${r}</textarea> ${e.description?q`<span class="m-markdown-small">${ms(ze(e.description))}</span>`:""} `}apiResponseTabTemplate(){const e=this.responseHeaders.includes("json")?"json":this.responseHeaders.includes("html")||this.responseHeaders.includes("xml")?"html":"";return q` <div class="row" style="font-size:var(--font-size-small);margin:5px 0"> ${this.responseMessage?q`<div class="response-message ${this.responseStatus}">Response Status: ${this.responseMessage} ${this.responseElapsedMs?q`<span><br>Execution Time: ${this.responseElapsedMs}ms</span>`:""} </div>`:""} <div style="flex:1"></div> <button class="m-btn" part="btn btn-outline" @click="${this.clearResponseData}">CLEAR RESPONSE</button> </div> <div class="tab-panel col" style="border-width:0 0 1px 0"> <div id="tab_buttons" class="tab-buttons row" @click="${e=>{!1!==e.target.classList.contains("tab-btn")&&(this.activeResponseTab=e.target.dataset.tab)}}"> <button class="tab-btn ${"response"===this.activeResponseTab?"active":""}" data-tab="response">RESPONSE</button> <button class="tab-btn ${"headers"===this.activeResponseTab?"active":""}" data-tab="headers">RESPONSE HEADERS</button> <button class="tab-btn ${"curl"===this.activeResponseTab?"active":""}" data-tab="curl">CURL</button> </div> ${this.responseIsBlob?q` <div class="tab-content col" style="flex:1;display:${"response"===this.activeResponseTab?"flex":"none"}"> <button class="m-btn thin-border mar-top-8" style="width:135px" @click="${this.downloadResponseBlob}" part="btn btn-outline">DOWNLOAD</button> ${"view"===this.responseBlobType?q`<button class="m-btn thin-border mar-top-8" style="width:135px" @click="${this.viewResponseBlob}" part="btn btn-outline">VIEW (NEW TAB)</button>`:""} </div>`:q` <div class="tab-content col m-markdown" style="flex:1;display:${"response"===this.activeResponseTab?"flex":"none"}"> <button class="toolbar-copy-btn" @click="${e=>{Ze(this.responseText,e)}}" part="btn btn-fill">Copy</button> <pre>${e?q`<code>${ms(Fe().highlight(this.responseText,Fe().languages[e],e))}</code>`:`${this.responseText}`}
@@ -79,7 +79,7 @@
79
79
 
80
80
  /**
81
81
  * @preserve
82
- * OpenAPI Explorer 0.8.290 - WebComponent to View OpenAPI docs
82
+ * OpenAPI Explorer 0.8.291 - WebComponent to View OpenAPI docs
83
83
  * License: Apache-2.0
84
84
  * Repo : https://github.com/Rhosys/openapi-explorer
85
85
  * Author : Rhosys Developers
Binary file
package/dist/report.html CHANGED
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="UTF-8"/>
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
6
- <title>openapi-explorer [6 Jul 2022 at 19:10]</title>
6
+ <title>openapi-explorer [6 Jul 2022 at 19:12]</title>
7
7
  <link rel="shortcut icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABrVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+O1foceMD///+J0/qK1Pr7/v8Xdr/9///W8P4UdL7L7P0Scr2r4Pyj3vwad8D5/f/2/f+55f3E6f34+/2H0/ojfMKpzOd0rNgQcb3F3O/j9f7c8v6g3Pz0/P/w+v/q+P7n9v6T1/uQ1vuE0vqLut/y+v+Z2fvt+f+15Pzv9fuc2/vR7v2V2Pvd6/bg9P7I6/285/2y4/yp3/zp8vk8i8kqgMT7/P31+fyv4vxGkcz6/P6/6P3j7vfS5PNnpNUxhcbO7f7F6v3O4vHK3/DA2u631Ouy0eqXweKJud5wqthfoNMMbLvY8f73+v2dxeR8sNtTmdDx9/zX6PSjyeaCtd1YnNGX2PuQveCGt95Nls42h8dLlM3F4vBtAAAAM3RSTlMAAyOx0/sKBvik8opWGBMOAe3l1snDm2E9LSb06eHcu5JpHbarfHZCN9CBb08zzkdNS0kYaptYAAAFV0lEQVRYw92X51/aYBDHHS2O2qqttVbrqNq9m+TJIAYIShBkWwqIiCgoWvfeq7Z2/s29hyQNyUcR7LveGwVyXy6XH8/9rqxglLfUPLxVduUor3h0rfp2TYvpivk37929TkG037hffoX0+peVtZQc1589rigVUdXS/ABSAyEmGIO/1XfvldSK8vs3OqB6u3m0nxmIrvgB0dj7rr7Y9IbuF68hnfFaiHA/sxqm0wciIG43P60qKv9WXWc1RXGh/mFESFABTSBi0sNAKzqet17eCtOb3kZIDwxEEU0oAIJGYxNBDhBND29e0rtXXbcpuPmED9IhEAAQ/AXEaF8EPmnrrKsv0LvWR3fg5sWDNAFZOgAgaKvZDogHNU9MFwnnYROkc56RD5CjAbQX9Ow4g7upCsvYu55aSI/Nj0H1akgKQEUM94dwK65hYRmFU9MIcH/fqJYOZYcnuJSU/waKDgTOEVaVKhwrTRP5XzgSpAITYzom7UvkhFX5VutmxeNnWDjjswTKTyfgluNDGbUpWissXhF3s7mlSml+czWkg3D0l1nNjGNjz3myOQOa1KM/jOS6ebdbAVTCi4gljHSFrviza7tOgRWcS0MOUX9zdNgag5w7rRqA44Lzw0hr1WqES36dFliSJFlh2rXIae3FFcDDgKdxrUIDePr8jGcSClV1u7A9xeN0ModY/pHMxmR1EzRh8TJiwqsHmKW0l4FCEZI+jHio+JdPPE9qwQtTRxku2D8sIeRL2LnxWSllANCQGOIiqVHAz2ye2JR0DcH+HoxDkaADLjgxjKQ+AwCX/g0+DNgdG0ukYCONAe+dbc2IAc6fwt1ARoDSezNHxV2Cmzwv3O6lDMV55edBGwGK9n1+x2F8EDfAGCxug8MhpsMEcTEAWf3rx2vZhe/LAmtIn/6apE6PN0ULKgywD9mmdxbmFl3OvD5AS5fW5zLbv/YHmcsBTjf/afDz3MaZTVCfAP9z6/Bw6ycv8EUBWJIn9zYcoAWWlW9+OzO3vkTy8H+RANLmdrpOuYWdZYEXpo+TlCJrW5EARb7fF+bWdqf3hhyZI1nWJQHgznErZhbjoEsWqi8dQNoE294aldzFurwSABL2XXMf9+H1VQGke9exw5P/AnA5Pv5ngMul7LOvO922iwACu8WkCwLCafvM4CeWPxfA8lNHcWZSoi8EwMAIciKX2Z4SWCMAa3snCZ/G4EA8D6CMLNFsGQhkkz/gQNEBbPCbWsxGUpYVu3z8IyNAknwJkfPMEhLyrdi5RTyUVACkw4GSFRNWJNEW+fgPGwHD8/JxnRuLabN4CGNRkAE23na2+VmEAUmrYymSGjMAYqH84YUIyzgzs3XC7gNgH36Vcc4zKY9o9fgPBXUAiHHwVboBHGLiX6Zcjp1f2wu4tvzZKo0ecPnDtQYDQvJXaBeNzce45Fp28ZQLrEZVuFqgBwOalArKXnW1UzlnSusQKJqKYNuz4tOnI6sZG4zanpemv+7ySU2jbA9h6uhcgpfy6G2PahirDZ6zvq6zDduMVFTKvzw8wgyEdelwY9in3XkEPs3osJuwRQ4qTkfzifndg9Gfc4pdsu82+tTnHZTBa2EAMrqr2t43pguc8tNm7JQVQ2S0ukj2d22dhXYP0/veWtwKrCkNoNimAN5+Xr/oLrxswKbVJjteWrX7eR63o4j9q0GxnaBdWgGA5VStpanIjQmEhV0/nVt5VOFUvix6awJhPcAaTEShgrG+iGyvb5a0Ndb1YGHFPEwoqAinoaykaID1o1pdPNu7XsnCKQ3R+hwWIIhGvORcJUBYXe3Xa3vq/mF/N9V13ugufMkfXn+KHsRD0B8AAAAASUVORK5CYII=" type="image/x-icon" />
8
8
 
9
9
  <script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openapi-explorer",
3
- "version": "0.8.290",
3
+ "version": "0.8.291",
4
4
  "description": "OpenAPI Explorer - API viewer with dynamically generated components, documentation, and interaction console",
5
5
  "author": "Rhosys Developers <developers@rhosys.ch>",
6
6
  "repository": {