@apiwiz/apiwiz-catalog-library 2.0.49 → 2.0.50
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/build/index.css.map +1 -1
- package/build/index.esm.js +1 -1
- package/build/index.js +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -55,4 +55,4 @@ function BJ(e){return e+.5|0}const qJ=(e,t,n)=>Math.max(Math.min(e,n),t);functio
|
|
|
55
55
|
* Released under MIT license <https://lodash.com/license>
|
|
56
56
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
57
57
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
58
|
-
*/M6||(M6=1,function(e,t){(function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=16,s=32,c=64,l=128,u=256,p=1/0,d=9007199254740991,f=NaN,h=4294967295,m=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",s],["partialRight",c],["rearg",u]],g="[object Arguments]",y="[object Array]",v="[object Boolean]",b="[object Date]",w="[object Error]",x="[object Function]",_="[object GeneratorFunction]",E="[object Map]",k="[object Number]",O="[object Object]",A="[object Promise]",D="[object RegExp]",M="[object Set]",C="[object String]",N="[object Symbol]",j="[object WeakMap]",T="[object ArrayBuffer]",P="[object DataView]",I="[object Float32Array]",R="[object Float64Array]",L="[object Int8Array]",F="[object Int16Array]",H="[object Int32Array]",$="[object Uint8Array]",B="[object Uint8ClampedArray]",q="[object Uint16Array]",U="[object Uint32Array]",z=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Z=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,G=RegExp(Z.source),Q=RegExp(Y.source),K=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(re.source),ie=/^\s+/,ae=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",De="A-Z\\xc0-\\xd6\\xd8-\\xde",Me="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Se="['’]",Ne="["+Ee+"]",je="["+Ce+"]",Te="["+ke+"]",Pe="\\d+",Ie="["+Oe+"]",Re="["+Ae+"]",Le="[^"+Ee+Ce+Pe+Oe+Ae+De+"]",Fe="\\ud83c[\\udffb-\\udfff]",He="[^"+Ee+"]",$e="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",qe="["+De+"]",Ue="\\u200d",ze="(?:"+Re+"|"+Le+")",Ve="(?:"+qe+"|"+Le+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ze="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+Te+"|"+Fe+")?",Ge="["+Me+"]?",Qe=Ge+Ye+"(?:"+Ue+"(?:"+[He,$e,Be].join("|")+")"+Ge+Ye+")*",Ke="(?:"+[Ie,$e,Be].join("|")+")"+Qe,Xe="(?:"+[He+Te+"?",Te,$e,Be,Ne].join("|")+")",Je=RegExp(Se,"g"),et=RegExp(Te,"g"),tt=RegExp(Fe+"(?="+Fe+")|"+Xe+Qe,"g"),nt=RegExp([qe+"?"+Re+"+"+We+"(?="+[je,qe,"$"].join("|")+")",Ve+"+"+Ze+"(?="+[je,qe+ze,"$"].join("|")+")",qe+"?"+ze+"+"+We,qe+"+"+Ze,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Ke].join("|"),"g"),rt=RegExp("["+Ue+Ee+ke+Me+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,st={};st[I]=st[R]=st[L]=st[F]=st[H]=st[$]=st[B]=st[q]=st[U]=!0,st[g]=st[y]=st[T]=st[v]=st[P]=st[b]=st[w]=st[x]=st[E]=st[k]=st[O]=st[D]=st[M]=st[C]=st[j]=!1;var ct={};ct[g]=ct[y]=ct[T]=ct[P]=ct[v]=ct[b]=ct[I]=ct[R]=ct[L]=ct[F]=ct[H]=ct[E]=ct[k]=ct[O]=ct[D]=ct[M]=ct[C]=ct[N]=ct[$]=ct[B]=ct[q]=ct[U]=!0,ct[w]=ct[x]=ct[j]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,pt=parseInt,dt="object"==typeof S&&S&&S.Object===Object&&S,ft="object"==typeof self&&self&&self.Object===Object&&self,ht=dt||ft||Function("return this")(),mt=t&&!t.nodeType&&t,gt=mt&&e&&!e.nodeType&&e,yt=gt&>.exports===mt,vt=yt&&dt.process,bt=function(){try{var e=gt&>.require&>.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),wt=bt&&bt.isArrayBuffer,xt=bt&&bt.isDate,_t=bt&&bt.isMap,Et=bt&&bt.isRegExp,kt=bt&&bt.isSet,Ot=bt&&bt.isTypedArray;function At(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Dt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Mt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function St(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Nt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function jt(e,t){return!(null==e||!e.length)&&qt(e,t,0)>-1}function Tt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function It(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Rt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Lt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Ft(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ht=Wt("length");function $t(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function Bt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function qt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Bt(e,zt,n)}function Ut(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function zt(e){return e!=e}function Vt(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:f}function Wt(e){return function(t){return null==t?n:t[e]}}function Zt(e){return function(t){return null==e?n:e[t]}}function Yt(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Gt(e,t){for(var r,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==n&&(r=r===n?a:r+a)}return r}function Qt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Kt(e){return e?e.slice(0,mn(e)+1).replace(ie,""):e}function Xt(e){return function(t){return e(t)}}function Jt(e,t){return Pt(t,function(t){return e[t]})}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,r=e.length;++n<r&&qt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&qt(t,e[n],0)>-1;);return n}var rn=Zt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),on=Zt({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+lt[e]}function sn(e){return rt.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function ln(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var s=e[n];s!==t&&s!==i||(e[n]=i,a[o++]=n)}return a}function pn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function dn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function fn(e){return sn(e)?function(e){for(var t=tt.lastIndex=0;tt.test(e);)++t;return t}(e):Ht(e)}function hn(e){return sn(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var gn=Zt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),yn=function e(t){var S=(t=null==t?ht:yn.defaults(ht.Object(),t,yn.pick(ht,it))).Array,ae=t.Date,Ee=t.Error,ke=t.Function,Oe=t.Math,Ae=t.Object,De=t.RegExp,Me=t.String,Ce=t.TypeError,Se=S.prototype,Ne=ke.prototype,je=Ae.prototype,Te=t["__core-js_shared__"],Pe=Ne.toString,Ie=je.hasOwnProperty,Re=0,Le=function(){var e=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fe=je.toString,He=Pe.call(Ae),$e=ht._,Be=De("^"+Pe.call(Ie).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=yt?t.Buffer:n,Ue=t.Symbol,ze=t.Uint8Array,Ve=qe?qe.allocUnsafe:n,We=ln(Ae.getPrototypeOf,Ae),Ze=Ae.create,Ye=je.propertyIsEnumerable,Ge=Se.splice,Qe=Ue?Ue.isConcatSpreadable:n,Ke=Ue?Ue.iterator:n,Xe=Ue?Ue.toStringTag:n,tt=function(){try{var e=di(Ae,"defineProperty");return e({},"",{}),e}catch(e){}}(),rt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,lt=ae&&ae.now!==ht.Date.now&&ae.now,dt=t.setTimeout!==ht.setTimeout&&t.setTimeout,ft=Oe.ceil,mt=Oe.floor,gt=Ae.getOwnPropertySymbols,vt=qe?qe.isBuffer:n,bt=t.isFinite,Ht=Se.join,Zt=ln(Ae.keys,Ae),vn=Oe.max,bn=Oe.min,wn=ae.now,xn=t.parseInt,_n=Oe.random,En=Se.reverse,kn=di(t,"DataView"),On=di(t,"Map"),An=di(t,"Promise"),Dn=di(t,"Set"),Mn=di(t,"WeakMap"),Cn=di(Ae,"create"),Sn=Mn&&new Mn,Nn={},jn=Fi(kn),Tn=Fi(On),Pn=Fi(An),In=Fi(Dn),Rn=Fi(Mn),Ln=Ue?Ue.prototype:n,Fn=Ln?Ln.valueOf:n,Hn=Ln?Ln.toString:n;function $n(e){if(ts(e)&&!za(e)&&!(e instanceof zn)){if(e instanceof Un)return e;if(Ie.call(e,"__wrapped__"))return Hi(e)}return new Un(e)}var Bn=function(){function e(){}return function(t){if(!es(t))return{};if(Ze)return Ze(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function qn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function zn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Zn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Wn(e);this.size=t.size}function Qn(e,t){var n=za(e),r=!n&&Ua(e),o=!n&&!r&&Ya(e),i=!n&&!r&&!o&&ls(e),a=n||r||o||i,s=a?Qt(e.length,Me):[],c=s.length;for(var l in e)!t&&!Ie.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||bi(l,c))||s.push(l);return s}function Kn(e){var t=e.length;return t?e[Yr(0,t-1)]:n}function Xn(e,t){return Ii(So(e),sr(t,0,e.length))}function Jn(e){return Ii(So(e))}function er(e,t,r){(r!==n&&!$a(e[t],r)||r===n&&!(t in e))&&ir(e,t,r)}function tr(e,t,r){var o=e[t];Ie.call(e,t)&&$a(o,r)&&(r!==n||t in e)||ir(e,t,r)}function nr(e,t){for(var n=e.length;n--;)if($a(e[n][0],t))return n;return-1}function rr(e,t,n,r){return dr(e,function(e,o,i){t(r,e,n(e),i)}),r}function or(e,t){return e&&No(t,Ns(t),e)}function ir(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ar(e,t){for(var r=-1,o=t.length,i=S(o),a=null==e;++r<o;)i[r]=a?n:As(e,t[r]);return i}function sr(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function cr(e,t,r,o,i,a){var s,c=1&t,l=2&t,u=4&t;if(r&&(s=i?r(e,o,i,a):r(e)),s!==n)return s;if(!es(e))return e;var p=za(e);if(p){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return So(e,s)}else{var d=mi(e),f=d==x||d==_;if(Ya(e))return ko(e,c);if(d==O||d==g||f&&!i){if(s=l||f?{}:yi(e),!c)return l?function(e,t){return No(e,hi(e),t)}(e,function(e,t){return e&&No(t,js(t),e)}(s,e)):function(e,t){return No(e,fi(e),t)}(e,or(s,e))}else{if(!ct[d])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case T:return Oo(e);case v:case b:return new o(+e);case P:return function(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case R:case L:case F:case H:case $:case B:case q:case U:return Ao(e,n);case E:return new o;case k:case C:return new o(e);case D:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case M:return new o;case N:return r=e,Fn?Ae(Fn.call(r)):{}}}(e,d,c)}}a||(a=new Gn);var h=a.get(e);if(h)return h;a.set(e,s),as(e)?e.forEach(function(n){s.add(cr(n,t,r,n,e,a))}):ns(e)&&e.forEach(function(n,o){s.set(o,cr(n,t,r,o,e,a))});var m=p?n:(u?l?ii:oi:l?js:Ns)(e);return Mt(m||e,function(n,o){m&&(n=e[o=n]),tr(s,o,cr(n,t,r,o,e,a))}),s}function lr(e,t,r){var o=r.length;if(null==e)return!o;for(e=Ae(e);o--;){var i=r[o],a=t[i],s=e[i];if(s===n&&!(i in e)||!a(s))return!1}return!0}function ur(e,t,o){if("function"!=typeof e)throw new Ce(r);return Ni(function(){e.apply(n,o)},t)}function pr(e,t,n,r){var o=-1,i=jt,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=Pt(t,Xt(n))),r?(i=Tt,a=!1):t.length>=200&&(i=en,a=!1,t=new Yn(t));e:for(;++o<s;){var u=e[o],p=null==n?u:n(u);if(u=r||0!==u?u:0,a&&p==p){for(var d=l;d--;)if(t[d]===p)continue e;c.push(u)}else i(t,p,r)||c.push(u)}return c}$n.templateSettings={escape:K,evaluate:X,interpolate:J,variable:"",imports:{_:$n}},$n.prototype=qn.prototype,$n.prototype.constructor=$n,Un.prototype=Bn(qn.prototype),Un.prototype.constructor=Un,zn.prototype=Bn(qn.prototype),zn.prototype.constructor=zn,Vn.prototype.clear=function(){this.__data__=Cn?Cn(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if(Cn){var r=t[e];return r===o?n:r}return Ie.call(t,e)?t[e]:n},Vn.prototype.has=function(e){var t=this.__data__;return Cn?t[e]!==n:Ie.call(t,e)},Vn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Cn&&t===n?o:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},Wn.prototype.get=function(e){var t=this.__data__,r=nr(t,e);return r<0?n:t[r][1]},Wn.prototype.has=function(e){return nr(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(On||Wn),string:new Vn}},Zn.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},Zn.prototype.get=function(e){return ui(this,e).get(e)},Zn.prototype.has=function(e){return ui(this,e).has(e)},Zn.prototype.set=function(e,t){var n=ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,o),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!On||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Zn(r)}return n.set(e,t),this.size=n.size,this};var dr=Po(wr),fr=Po(xr,!0);function hr(e,t){var n=!0;return dr(e,function(e,r,o){return n=!!t(e,r,o)}),n}function mr(e,t,r){for(var o=-1,i=e.length;++o<i;){var a=e[o],s=t(a);if(null!=s&&(c===n?s==s&&!cs(s):r(s,c)))var c=s,l=a}return l}function gr(e,t){var n=[];return dr(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function yr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=vi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?yr(s,t-1,n,r,o):It(o,s):r||(o[o.length]=s)}return o}var vr=Io(),br=Io(!0);function wr(e,t){return e&&vr(e,t,Ns)}function xr(e,t){return e&&br(e,t,Ns)}function _r(e,t){return Nt(t,function(t){return Ka(e[t])})}function Er(e,t){for(var r=0,o=(t=wo(t,e)).length;null!=e&&r<o;)e=e[Li(t[r++])];return r&&r==o?e:n}function kr(e,t,n){var r=t(e);return za(e)?r:It(r,n(e))}function Or(e){return null==e?e===n?"[object Undefined]":"[object Null]":Xe&&Xe in Ae(e)?function(e){var t=Ie.call(e,Xe),r=e[Xe];try{e[Xe]=n;var o=!0}catch(e){}var i=Fe.call(e);return o&&(t?e[Xe]=r:delete e[Xe]),i}(e):function(e){return Fe.call(e)}(e)}function Ar(e,t){return e>t}function Dr(e,t){return null!=e&&Ie.call(e,t)}function Mr(e,t){return null!=e&&t in Ae(e)}function Cr(e,t,r){for(var o=r?Tt:jt,i=e[0].length,a=e.length,s=a,c=S(a),l=1/0,u=[];s--;){var p=e[s];s&&t&&(p=Pt(p,Xt(t))),l=bn(p.length,l),c[s]=!r&&(t||i>=120&&p.length>=120)?new Yn(s&&p):n}p=e[0];var d=-1,f=c[0];e:for(;++d<i&&u.length<l;){var h=p[d],m=t?t(h):h;if(h=r||0!==h?h:0,!(f?en(f,m):o(u,m,r))){for(s=a;--s;){var g=c[s];if(!(g?en(g,m):o(e[s],m,r)))continue e}f&&f.push(m),u.push(h)}}return u}function Sr(e,t,r){var o=null==(e=Mi(e,t=wo(t,e)))?e:e[Li(Qi(t))];return null==o?n:At(o,e,r)}function Nr(e){return ts(e)&&Or(e)==g}function jr(e,t,r,o,i){return e===t||(null==e||null==t||!ts(e)&&!ts(t)?e!=e&&t!=t:function(e,t,r,o,i,a){var s=za(e),c=za(t),l=s?y:mi(e),u=c?y:mi(t),p=(l=l==g?O:l)==O,d=(u=u==g?O:u)==O,f=l==u;if(f&&Ya(e)){if(!Ya(t))return!1;s=!0,p=!1}if(f&&!p)return a||(a=new Gn),s||ls(e)?ni(e,t,r,o,i,a):function(e,t,n,r,o,i,a){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!i(new ze(e),new ze(t)));case v:case b:case k:return $a(+e,+t);case w:return e.name==t.name&&e.message==t.message;case D:case C:return e==t+"";case E:var s=cn;case M:var c=1&r;if(s||(s=pn),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var u=ni(s(e),s(t),r,o,i,a);return a.delete(e),u;case N:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,l,r,o,i,a);if(!(1&r)){var h=p&&Ie.call(e,"__wrapped__"),m=d&&Ie.call(t,"__wrapped__");if(h||m){var x=h?e.value():e,_=m?t.value():t;return a||(a=new Gn),i(x,_,r,o,a)}}return!!f&&(a||(a=new Gn),function(e,t,r,o,i,a){var s=1&r,c=oi(e),l=c.length,u=oi(t),p=u.length;if(l!=p&&!s)return!1;for(var d=l;d--;){var f=c[d];if(!(s?f in t:Ie.call(t,f)))return!1}var h=a.get(e),m=a.get(t);if(h&&m)return h==t&&m==e;var g=!0;a.set(e,t),a.set(t,e);for(var y=s;++d<l;){var v=e[f=c[d]],b=t[f];if(o)var w=s?o(b,v,f,t,e,a):o(v,b,f,e,t,a);if(!(w===n?v===b||i(v,b,r,o,a):w)){g=!1;break}y||(y="constructor"==f)}if(g&&!y){var x=e.constructor,_=t.constructor;x==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,r,o,i,a))}(e,t,r,o,jr,i))}function Tr(e,t,r,o){var i=r.length,a=i,s=!o;if(null==e)return!a;for(e=Ae(e);i--;){var c=r[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<a;){var l=(c=r[i])[0],u=e[l],p=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var d=new Gn;if(o)var f=o(u,p,l,e,t,d);if(!(f===n?jr(p,u,3,o,d):f))return!1}}return!0}function Pr(e){return!(!es(e)||(t=e,Le&&Le in t))&&(Ka(e)?Be:ye).test(Fi(e));var t}function Ir(e){return"function"==typeof e?e:null==e?rc:"object"==typeof e?za(e)?Br(e[0],e[1]):$r(e):dc(e)}function Rr(e){if(!ki(e))return Zt(e);var t=[];for(var n in Ae(e))Ie.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e){if(!es(e))return function(e){var t=[];if(null!=e)for(var n in Ae(e))t.push(n);return t}(e);var t=ki(e),n=[];for(var r in e)("constructor"!=r||!t&&Ie.call(e,r))&&n.push(r);return n}function Fr(e,t){return e<t}function Hr(e,t){var n=-1,r=Wa(e)?S(e.length):[];return dr(e,function(e,o,i){r[++n]=t(e,o,i)}),r}function $r(e){var t=pi(e);return 1==t.length&&t[0][2]?Ai(t[0][0],t[0][1]):function(n){return n===e||Tr(n,e,t)}}function Br(e,t){return xi(e)&&Oi(t)?Ai(Li(e),t):function(r){var o=As(r,e);return o===n&&o===t?Ds(r,e):jr(t,o,3)}}function qr(e,t,r,o,i){e!==t&&vr(t,function(a,s){if(i||(i=new Gn),es(a))!function(e,t,r,o,i,a,s){var c=Ci(e,r),l=Ci(t,r),u=s.get(l);if(u)er(e,r,u);else{var p=a?a(c,l,r+"",e,t,s):n,d=p===n;if(d){var f=za(l),h=!f&&Ya(l),m=!f&&!h&&ls(l);p=l,f||h||m?za(c)?p=c:Za(c)?p=So(c):h?(d=!1,p=ko(l,!0)):m?(d=!1,p=Ao(l,!0)):p=[]:os(l)||Ua(l)?(p=c,Ua(c)?p=ys(c):es(c)&&!Ka(c)||(p=yi(l))):d=!1}d&&(s.set(l,p),i(p,l,o,a,s),s.delete(l)),er(e,r,p)}}(e,t,s,r,qr,o,i);else{var c=o?o(Ci(e,s),a,s+"",e,t,i):n;c===n&&(c=a),er(e,s,c)}},js)}function Ur(e,t){var r=e.length;if(r)return bi(t+=t<0?r:0,r)?e[t]:n}function zr(e,t,n){t=t.length?Pt(t,function(e){return za(e)?function(t){return Er(t,1===e.length?e[0]:e)}:e}):[rc];var r=-1;t=Pt(t,Xt(li()));var o=Hr(e,function(e,n,o){var i=Pt(t,function(t){return t(e)});return{criteria:i,index:++r,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var c=Do(o[r],i[r]);if(c)return r>=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function Vr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Er(e,a);n(s,a)&&Jr(i,wo(a,e),s)}return i}function Wr(e,t,n,r){var o=r?Ut:qt,i=-1,a=t.length,s=e;for(e===t&&(t=So(t)),n&&(s=Pt(e,Xt(n)));++i<a;)for(var c=0,l=t[i],u=n?n(l):l;(c=o(s,u,c,r))>-1;)s!==e&&Ge.call(s,c,1),Ge.call(e,c,1);return e}function Zr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;bi(o)?Ge.call(e,o,1):po(e,o)}}return e}function Yr(e,t){return e+mt(_n()*(t-e+1))}function Gr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return ji(Di(e,t,rc),e+"")}function Kr(e){return Kn($s(e))}function Xr(e,t){var n=$s(e);return Ii(n,sr(t,0,n.length))}function Jr(e,t,r,o){if(!es(e))return e;for(var i=-1,a=(t=wo(t,e)).length,s=a-1,c=e;null!=c&&++i<a;){var l=Li(t[i]),u=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=s){var p=c[l];(u=o?o(p,l,c):n)===n&&(u=es(p)?p:bi(t[i+1])?[]:{})}tr(c,l,u),c=c[l]}return e}var eo=Sn?function(e,t){return Sn.set(e,t),e}:rc,to=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:rc;function no(e){return Ii($s(e))}function ro(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=S(o);++r<o;)i[r]=e[r+t];return i}function oo(e,t){var n;return dr(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function io(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return ao(e,t,rc,n)}function ao(e,t,r,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=r(t))!=t,c=null===t,l=cs(t),u=t===n;i<a;){var p=mt((i+a)/2),d=r(e[p]),f=d!==n,h=null===d,m=d==d,g=cs(d);if(s)var y=o||m;else y=u?m&&(o||f):c?m&&f&&(o||!h):l?m&&f&&!h&&(o||!g):!h&&!g&&(o?d<=t:d<t);y?i=p+1:a=p}return bn(a,4294967294)}function so(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!$a(s,c)){var c=s;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:cs(e)?f:+e}function lo(e){if("string"==typeof e)return e;if(za(e))return Pt(e,lo)+"";if(cs(e))return Hn?Hn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function uo(e,t,n){var r=-1,o=jt,i=e.length,a=!0,s=[],c=s;if(n)a=!1,o=Tt;else if(i>=200){var l=t?null:Qo(e);if(l)return pn(l);a=!1,o=en,c=new Yn}else c=t?[]:s;e:for(;++r<i;){var u=e[r],p=t?t(u):u;if(u=n||0!==u?u:0,a&&p==p){for(var d=c.length;d--;)if(c[d]===p)continue e;t&&c.push(p),s.push(u)}else o(c,p,n)||(c!==s&&c.push(p),s.push(u))}return s}function po(e,t){return null==(e=Mi(e,t=wo(t,e)))||delete e[Li(Qi(t))]}function fo(e,t,n,r){return Jr(e,t,n(Er(e,t)),r)}function ho(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?ro(e,r?0:i,r?i+1:o):ro(e,r?i+1:0,r?o:i)}function mo(e,t){var n=e;return n instanceof zn&&(n=n.value()),Rt(t,function(e,t){return t.func.apply(t.thisArg,It([e],t.args))},n)}function go(e,t,n){var r=e.length;if(r<2)return r?uo(e[0]):[];for(var o=-1,i=S(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=pr(i[o]||a,e[s],t,n));return uo(yr(i,1),t,n)}function yo(e,t,r){for(var o=-1,i=e.length,a=t.length,s={};++o<i;){var c=o<a?t[o]:n;r(s,e[o],c)}return s}function vo(e){return Za(e)?e:[]}function bo(e){return"function"==typeof e?e:rc}function wo(e,t){return za(e)?e:xi(e,t)?[e]:Ri(vs(e))}var xo=Qr;function _o(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:ro(e,t,r)}var Eo=rt||function(e){return ht.clearTimeout(e)};function ko(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function Oo(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function Ao(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Do(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=cs(e),s=t!==n,c=null===t,l=t==t,u=cs(t);if(!c&&!u&&!a&&e>t||a&&s&&l&&!c&&!u||o&&s&&l||!r&&l||!i)return 1;if(!o&&!a&&!u&&e<t||u&&r&&i&&!o&&!a||c&&r&&i||!s&&i||!l)return-1}return 0}function Mo(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,c=t.length,l=vn(i-a,0),u=S(c+l),p=!r;++s<c;)u[s]=t[s];for(;++o<a;)(p||o<i)&&(u[n[o]]=e[o]);for(;l--;)u[s++]=e[o++];return u}function Co(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,c=-1,l=t.length,u=vn(i-s,0),p=S(u+l),d=!r;++o<u;)p[o]=e[o];for(var f=o;++c<l;)p[f+c]=t[c];for(;++a<s;)(d||o<i)&&(p[f+n[a]]=e[o++]);return p}function So(e,t){var n=-1,r=e.length;for(t||(t=S(r));++n<r;)t[n]=e[n];return t}function No(e,t,r,o){var i=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var c=t[a],l=o?o(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),i?ir(r,c,l):tr(r,c,l)}return r}function jo(e,t){return function(n,r){var o=za(n)?Dt:rr,i=t?t():{};return o(n,e,li(r,2),i)}}function To(e){return Qr(function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:n,s=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,s&&wi(r[0],r[1],s)&&(a=i<3?n:a,i=1),t=Ae(t);++o<i;){var c=r[o];c&&e(t,c,o,a)}return t})}function Po(e,t){return function(n,r){if(null==n)return n;if(!Wa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ae(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Io(e){return function(t,n,r){for(var o=-1,i=Ae(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}}function Ro(e){return function(t){var r=sn(t=vs(t))?hn(t):n,o=r?r[0]:t.charAt(0),i=r?_o(r,1).join(""):t.slice(1);return o[e]()+i}}function Lo(e){return function(t){return Rt(Ks(Us(t).replace(Je,"")),e,"")}}function Fo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return es(r)?r:n}}function Ho(e){return function(t,r,o){var i=Ae(t);if(!Wa(t)){var a=li(r,3);t=Ns(t),r=function(e){return a(i[e],e,i)}}var s=e(t,r,o);return s>-1?i[a?t[s]:s]:n}}function $o(e){return ri(function(t){var o=t.length,i=o,a=Un.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new Ce(r);if(a&&!c&&"wrapper"==si(s))var c=new Un([],!0)}for(i=c?i:o;++i<o;){var l=si(s=t[i]),u="wrapper"==l?ai(s):n;c=u&&_i(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[si(u[0])].apply(c,u[3]):1==s.length&&_i(s)?c[l]():c.thru(s)}return function(){var e=arguments,n=e[0];if(c&&1==e.length&&za(n))return c.plant(n).value();for(var r=0,i=o?t[r].apply(this,e):n;++r<o;)i=t[r].call(this,i);return i}})}function Bo(e,t,r,o,i,a,s,c,u,p){var d=t&l,f=1&t,h=2&t,m=24&t,g=512&t,y=h?n:Fo(e);return function l(){for(var v=arguments.length,b=S(v),w=v;w--;)b[w]=arguments[w];if(m)var x=ci(l),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,x);if(o&&(b=Mo(b,o,i,m)),a&&(b=Co(b,a,s,m)),v-=_,m&&v<p){var E=un(b,x);return Yo(e,t,Bo,l.placeholder,r,b,E,c,u,p-v)}var k=f?r:this,O=h?k[e]:e;return v=b.length,c?b=function(e,t){for(var r=e.length,o=bn(t.length,r),i=So(e);o--;){var a=t[o];e[o]=bi(a,r)?i[a]:n}return e}(b,c):g&&v>1&&b.reverse(),d&&u<v&&(b.length=u),this&&this!==ht&&this instanceof l&&(O=y||Fo(O)),O.apply(k,b)}}function qo(e,t){return function(n,r){return function(e,t,n,r){return wr(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}function Uo(e,t){return function(r,o){var i;if(r===n&&o===n)return t;if(r!==n&&(i=r),o!==n){if(i===n)return o;"string"==typeof r||"string"==typeof o?(r=lo(r),o=lo(o)):(r=co(r),o=co(o)),i=e(r,o)}return i}}function zo(e){return ri(function(t){return t=Pt(t,Xt(li())),Qr(function(n){var r=this;return e(t,function(e){return At(e,r,n)})})})}function Vo(e,t){var r=(t=t===n?" ":lo(t)).length;if(r<2)return r?Gr(t,e):t;var o=Gr(t,ft(e/fn(t)));return sn(t)?_o(hn(o),0,e).join(""):o.slice(0,e)}function Wo(e){return function(t,r,o){return o&&"number"!=typeof o&&wi(t,r,o)&&(r=o=n),t=fs(t),r===n?(r=t,t=0):r=fs(r),function(e,t,n,r){for(var o=-1,i=vn(ft((t-e)/(n||1)),0),a=S(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,r,o=o===n?t<r?1:-1:fs(o),e)}}function Zo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gs(t),n=gs(n)),e(t,n)}}function Yo(e,t,r,o,i,a,l,u,p,d){var f=8&t;t|=f?s:c,4&(t&=~(f?c:s))||(t&=-4);var h=[e,t,i,f?a:n,f?l:n,f?n:a,f?n:l,u,p,d],m=r.apply(n,h);return _i(e)&&Si(m,h),m.placeholder=o,Ti(m,e,t)}function Go(e){var t=Oe[e];return function(e,n){if(e=gs(e),(n=null==n?0:bn(hs(n),292))&&bt(e)){var r=(vs(e)+"e").split("e");return+((r=(vs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Qo=Dn&&1/pn(new Dn([,-0]))[1]==p?function(e){return new Dn(e)}:cc;function Ko(e){return function(t){var n=mi(t);return n==E?cn(t):n==M?dn(t):function(e,t){return Pt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Xo(e,t,o,p,d,f,h,m){var g=2&t;if(!g&&"function"!=typeof e)throw new Ce(r);var y=p?p.length:0;if(y||(t&=-97,p=d=n),h=h===n?h:vn(hs(h),0),m=m===n?m:hs(m),y-=d?d.length:0,t&c){var v=p,b=d;p=d=n}var w=g?n:ai(e),x=[e,t,o,p,d,v,b,f,h,m];if(w&&function(e,t){var n=e[1],r=t[1],o=n|r,a=o<131,s=r==l&&8==n||r==l&&n==u&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var c=t[3];if(c){var p=e[3];e[3]=p?Mo(p,c,t[4]):c,e[4]=p?un(e[3],i):t[4]}(c=t[5])&&(p=e[5],e[5]=p?Co(p,c,t[6]):c,e[6]=p?un(e[5],i):t[6]),(c=t[7])&&(e[7]=c),r&l&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(x,w),e=x[0],t=x[1],o=x[2],p=x[3],d=x[4],!(m=x[9]=x[9]===n?g?0:e.length:vn(x[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==a?function(e,t,r){var o=Fo(e);return function i(){for(var a=arguments.length,s=S(a),c=a,l=ci(i);c--;)s[c]=arguments[c];var u=a<3&&s[0]!==l&&s[a-1]!==l?[]:un(s,l);return(a-=u.length)<r?Yo(e,t,Bo,i.placeholder,n,s,u,n,n,r-a):At(this&&this!==ht&&this instanceof i?o:e,this,s)}}(e,t,m):t!=s&&33!=t||d.length?Bo.apply(n,x):function(e,t,n,r){var o=1&t,i=Fo(e);return function t(){for(var a=-1,s=arguments.length,c=-1,l=r.length,u=S(l+s),p=this&&this!==ht&&this instanceof t?i:e;++c<l;)u[c]=r[c];for(;s--;)u[c++]=arguments[++a];return At(p,o?n:this,u)}}(e,t,o,p);else var _=function(e,t,n){var r=1&t,o=Fo(e);return function t(){return(this&&this!==ht&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,o);return Ti((w?eo:Si)(_,x),e,t)}function Jo(e,t,r,o){return e===n||$a(e,je[r])&&!Ie.call(o,r)?t:e}function ei(e,t,r,o,i,a){return es(e)&&es(t)&&(a.set(t,e),qr(e,t,n,ei,a),a.delete(t)),e}function ti(e){return os(e)?n:e}function ni(e,t,r,o,i,a){var s=1&r,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=a.get(e),p=a.get(t);if(u&&p)return u==t&&p==e;var d=-1,f=!0,h=2&r?new Yn:n;for(a.set(e,t),a.set(t,e);++d<c;){var m=e[d],g=t[d];if(o)var y=s?o(g,m,d,t,e,a):o(m,g,d,e,t,a);if(y!==n){if(y)continue;f=!1;break}if(h){if(!Ft(t,function(e,t){if(!en(h,t)&&(m===e||i(m,e,r,o,a)))return h.push(t)})){f=!1;break}}else if(m!==g&&!i(m,g,r,o,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function ri(e){return ji(Di(e,n,Vi),e+"")}function oi(e){return kr(e,Ns,fi)}function ii(e){return kr(e,js,hi)}var ai=Sn?function(e){return Sn.get(e)}:cc;function si(e){for(var t=e.name+"",n=Nn[t],r=Ie.call(Nn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(Ie.call($n,"placeholder")?$n:e).placeholder}function li(){var e=$n.iteratee||oc;return e=e===oc?Ir:e,arguments.length?e(arguments[0],arguments[1]):e}function ui(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function pi(e){for(var t=Ns(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Oi(o)]}return t}function di(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Pr(r)?r:n}var fi=gt?function(e){return null==e?[]:(e=Ae(e),Nt(gt(e),function(t){return Ye.call(e,t)}))}:mc,hi=gt?function(e){for(var t=[];e;)It(t,fi(e)),e=We(e);return t}:mc,mi=Or;function gi(e,t,n){for(var r=-1,o=(t=wo(t,e)).length,i=!1;++r<o;){var a=Li(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Ja(o)&&bi(a,o)&&(za(e)||Ua(e))}function yi(e){return"function"!=typeof e.constructor||ki(e)?{}:Bn(We(e))}function vi(e){return za(e)||Ua(e)||!!(Qe&&e&&e[Qe])}function bi(e,t){var n=typeof e;return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&be.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,n){if(!es(n))return!1;var r=typeof t;return!!("number"==r?Wa(n)&&bi(t,n.length):"string"==r&&t in n)&&$a(n[t],e)}function xi(e,t){if(za(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||te.test(e)||!ee.test(e)||null!=t&&e in Ae(t)}function _i(e){var t=si(e),n=$n[t];if("function"!=typeof n||!(t in zn.prototype))return!1;if(e===n)return!0;var r=ai(n);return!!r&&e===r[0]}(kn&&mi(new kn(new ArrayBuffer(1)))!=P||On&&mi(new On)!=E||An&&mi(An.resolve())!=A||Dn&&mi(new Dn)!=M||Mn&&mi(new Mn)!=j)&&(mi=function(e){var t=Or(e),r=t==O?e.constructor:n,o=r?Fi(r):"";if(o)switch(o){case jn:return P;case Tn:return E;case Pn:return A;case In:return M;case Rn:return j}return t});var Ei=Te?Ka:gc;function ki(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||je)}function Oi(e){return e==e&&!es(e)}function Ai(e,t){return function(r){return null!=r&&r[e]===t&&(t!==n||e in Ae(r))}}function Di(e,t,r){return t=vn(t===n?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=vn(n.length-t,0),a=S(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=S(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),At(e,this,s)}}function Mi(e,t){return t.length<2?e:Er(e,ro(t,0,-1))}function Ci(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Si=Pi(eo),Ni=dt||function(e,t){return ht.setTimeout(e,t)},ji=Pi(to);function Ti(e,t,n){var r=t+"";return ji(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Mt(m,function(n){var r="_."+n[0];t&n[1]&&!jt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(le):[]}(r),n)))}function Pi(e){var t=0,r=0;return function(){var o=wn(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ii(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var a=Yr(r,i),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var Ri=function(e){var t=Pa(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,function(e,n,r,o){t.push(r?o.replace(de,"$1"):n||e)}),t});function Li(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fi(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Hi(e){if(e instanceof zn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=So(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var $i=Qr(function(e,t){return Za(e)?pr(e,yr(t,1,Za,!0)):[]}),Bi=Qr(function(e,t){var r=Qi(t);return Za(r)&&(r=n),Za(e)?pr(e,yr(t,1,Za,!0),li(r,2)):[]}),qi=Qr(function(e,t){var r=Qi(t);return Za(r)&&(r=n),Za(e)?pr(e,yr(t,1,Za,!0),n,r):[]});function Ui(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:hs(n);return o<0&&(o=vn(r+o,0)),Bt(e,li(t,3),o)}function zi(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=hs(r),i=r<0?vn(o+i,0):bn(i,o-1)),Bt(e,li(t,3),i,!0)}function Vi(e){return null!=e&&e.length?yr(e,1):[]}function Wi(e){return e&&e.length?e[0]:n}var Zi=Qr(function(e){var t=Pt(e,vo);return t.length&&t[0]===e[0]?Cr(t):[]}),Yi=Qr(function(e){var t=Qi(e),r=Pt(e,vo);return t===Qi(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Cr(r,li(t,2)):[]}),Gi=Qr(function(e){var t=Qi(e),r=Pt(e,vo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Cr(r,n,t):[]});function Qi(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Ki=Qr(Xi);function Xi(e,t){return e&&e.length&&t&&t.length?Wr(e,t):e}var Ji=ri(function(e,t){var n=null==e?0:e.length,r=ar(e,t);return Zr(e,Pt(t,function(e){return bi(e,n)?+e:e}).sort(Do)),r});function ea(e){return null==e?e:En.call(e)}var ta=Qr(function(e){return uo(yr(e,1,Za,!0))}),na=Qr(function(e){var t=Qi(e);return Za(t)&&(t=n),uo(yr(e,1,Za,!0),li(t,2))}),ra=Qr(function(e){var t=Qi(e);return t="function"==typeof t?t:n,uo(yr(e,1,Za,!0),n,t)});function oa(e){if(!e||!e.length)return[];var t=0;return e=Nt(e,function(e){if(Za(e))return t=vn(e.length,t),!0}),Qt(t,function(t){return Pt(e,Wt(t))})}function ia(e,t){if(!e||!e.length)return[];var r=oa(e);return null==t?r:Pt(r,function(e){return At(t,n,e)})}var aa=Qr(function(e,t){return Za(e)?pr(e,t):[]}),sa=Qr(function(e){return go(Nt(e,Za))}),ca=Qr(function(e){var t=Qi(e);return Za(t)&&(t=n),go(Nt(e,Za),li(t,2))}),la=Qr(function(e){var t=Qi(e);return t="function"==typeof t?t:n,go(Nt(e,Za),n,t)}),ua=Qr(oa),pa=Qr(function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ia(e,r)});function da(e){var t=$n(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var ha=ri(function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&o instanceof zn&&bi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:fa,args:[i],thisArg:n}),new Un(o,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e})):this.thru(i)}),ma=jo(function(e,t,n){Ie.call(e,n)?++e[n]:ir(e,n,1)}),ga=Ho(Ui),ya=Ho(zi);function va(e,t){return(za(e)?Mt:dr)(e,li(t,3))}function ba(e,t){return(za(e)?Ct:fr)(e,li(t,3))}var wa=jo(function(e,t,n){Ie.call(e,n)?e[n].push(t):ir(e,n,[t])}),xa=Qr(function(e,t,n){var r=-1,o="function"==typeof t,i=Wa(e)?S(e.length):[];return dr(e,function(e){i[++r]=o?At(t,e,n):Sr(e,t,n)}),i}),_a=jo(function(e,t,n){ir(e,n,t)});function Ea(e,t){return(za(e)?Pt:Hr)(e,li(t,3))}var ka=jo(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Oa=Qr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&wi(e,t[0],t[1])?t=[]:n>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),zr(e,yr(t,1),[])}),Aa=lt||function(){return ht.Date.now()};function Da(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Xo(e,l,n,n,n,n,t)}function Ma(e,t){var o;if("function"!=typeof t)throw new Ce(r);return e=hs(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Ca=Qr(function(e,t,n){var r=1;if(n.length){var o=un(n,ci(Ca));r|=s}return Xo(e,r,t,n,o)}),Sa=Qr(function(e,t,n){var r=3;if(n.length){var o=un(n,ci(Sa));r|=s}return Xo(t,r,e,n,o)});function Na(e,t,o){var i,a,s,c,l,u,p=0,d=!1,f=!1,h=!0;if("function"!=typeof e)throw new Ce(r);function m(t){var r=i,o=a;return i=a=n,p=t,c=e.apply(o,r)}function g(e){var r=e-u;return u===n||r>=t||r<0||f&&e-p>=s}function y(){var e=Aa();if(g(e))return v(e);l=Ni(y,function(e){var n=t-(e-u);return f?bn(n,s-(e-p)):n}(e))}function v(e){return l=n,h&&i?m(e):(i=a=n,c)}function b(){var e=Aa(),r=g(e);if(i=arguments,a=this,u=e,r){if(l===n)return function(e){return p=e,l=Ni(y,t),d?m(e):c}(u);if(f)return Eo(l),l=Ni(y,t),m(u)}return l===n&&(l=Ni(y,t)),c}return t=gs(t)||0,es(o)&&(d=!!o.leading,s=(f="maxWait"in o)?vn(gs(o.maxWait)||0,t):s,h="trailing"in o?!!o.trailing:h),b.cancel=function(){l!==n&&Eo(l),p=0,i=u=a=l=n},b.flush=function(){return l===n?c:v(Aa())},b}var ja=Qr(function(e,t){return ur(e,1,t)}),Ta=Qr(function(e,t,n){return ur(e,gs(t)||0,n)});function Pa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ce(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Pa.Cache||Zn),n}function Ia(e){if("function"!=typeof e)throw new Ce(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Pa.Cache=Zn;var Ra=xo(function(e,t){var n=(t=1==t.length&&za(t[0])?Pt(t[0],Xt(li())):Pt(yr(t,1),Xt(li()))).length;return Qr(function(r){for(var o=-1,i=bn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return At(e,this,r)})}),La=Qr(function(e,t){var r=un(t,ci(La));return Xo(e,s,n,t,r)}),Fa=Qr(function(e,t){var r=un(t,ci(Fa));return Xo(e,c,n,t,r)}),Ha=ri(function(e,t){return Xo(e,u,n,n,n,t)});function $a(e,t){return e===t||e!=e&&t!=t}var Ba=Zo(Ar),qa=Zo(function(e,t){return e>=t}),Ua=Nr(function(){return arguments}())?Nr:function(e){return ts(e)&&Ie.call(e,"callee")&&!Ye.call(e,"callee")},za=S.isArray,Va=wt?Xt(wt):function(e){return ts(e)&&Or(e)==T};function Wa(e){return null!=e&&Ja(e.length)&&!Ka(e)}function Za(e){return ts(e)&&Wa(e)}var Ya=vt||gc,Ga=xt?Xt(xt):function(e){return ts(e)&&Or(e)==b};function Qa(e){if(!ts(e))return!1;var t=Or(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Ka(e){if(!es(e))return!1;var t=Or(e);return t==x||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xa(e){return"number"==typeof e&&e==hs(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var ns=_t?Xt(_t):function(e){return ts(e)&&mi(e)==E};function rs(e){return"number"==typeof e||ts(e)&&Or(e)==k}function os(e){if(!ts(e)||Or(e)!=O)return!1;var t=We(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==He}var is=Et?Xt(Et):function(e){return ts(e)&&Or(e)==D},as=kt?Xt(kt):function(e){return ts(e)&&mi(e)==M};function ss(e){return"string"==typeof e||!za(e)&&ts(e)&&Or(e)==C}function cs(e){return"symbol"==typeof e||ts(e)&&Or(e)==N}var ls=Ot?Xt(Ot):function(e){return ts(e)&&Ja(e.length)&&!!st[Or(e)]},us=Zo(Fr),ps=Zo(function(e,t){return e<=t});function ds(e){if(!e)return[];if(Wa(e))return ss(e)?hn(e):So(e);if(Ke&&e[Ke])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ke]());var t=mi(e);return(t==E?cn:t==M?pn:$s)(e)}function fs(e){return e?(e=gs(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hs(e){var t=fs(e),n=t%1;return t==t?n?t-n:t:0}function ms(e){return e?sr(hs(e),0,h):0}function gs(e){if("number"==typeof e)return e;if(cs(e))return f;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=ge.test(e);return n||ve.test(e)?pt(e.slice(2),n?2:8):me.test(e)?f:+e}function ys(e){return No(e,js(e))}function vs(e){return null==e?"":lo(e)}var bs=To(function(e,t){if(ki(t)||Wa(t))No(t,Ns(t),e);else for(var n in t)Ie.call(t,n)&&tr(e,n,t[n])}),ws=To(function(e,t){No(t,js(t),e)}),xs=To(function(e,t,n,r){No(t,js(t),e,r)}),_s=To(function(e,t,n,r){No(t,Ns(t),e,r)}),Es=ri(ar),ks=Qr(function(e,t){e=Ae(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&wi(t[0],t[1],i)&&(o=1);++r<o;)for(var a=t[r],s=js(a),c=-1,l=s.length;++c<l;){var u=s[c],p=e[u];(p===n||$a(p,je[u])&&!Ie.call(e,u))&&(e[u]=a[u])}return e}),Os=Qr(function(e){return e.push(n,ei),At(Ps,n,e)});function As(e,t,r){var o=null==e?n:Er(e,t);return o===n?r:o}function Ds(e,t){return null!=e&&gi(e,t,Mr)}var Ms=qo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n},ec(rc)),Cs=qo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Ie.call(e,t)?e[t].push(n):e[t]=[n]},li),Ss=Qr(Sr);function Ns(e){return Wa(e)?Qn(e):Rr(e)}function js(e){return Wa(e)?Qn(e,!0):Lr(e)}var Ts=To(function(e,t,n){qr(e,t,n)}),Ps=To(function(e,t,n,r){qr(e,t,n,r)}),Is=ri(function(e,t){var n={};if(null==e)return n;var r=!1;t=Pt(t,function(t){return t=wo(t,e),r||(r=t.length>1),t}),No(e,ii(e),n),r&&(n=cr(n,7,ti));for(var o=t.length;o--;)po(n,t[o]);return n}),Rs=ri(function(e,t){return null==e?{}:function(e,t){return Vr(e,t,function(t,n){return Ds(e,n)})}(e,t)});function Ls(e,t){if(null==e)return{};var n=Pt(ii(e),function(e){return[e]});return t=li(t),Vr(e,n,function(e,n){return t(e,n[0])})}var Fs=Ko(Ns),Hs=Ko(js);function $s(e){return null==e?[]:Jt(e,Ns(e))}var Bs=Lo(function(e,t,n){return t=t.toLowerCase(),e+(n?qs(t):t)});function qs(e){return Qs(vs(e).toLowerCase())}function Us(e){return(e=vs(e))&&e.replace(we,rn).replace(et,"")}var zs=Lo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Vs=Lo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Ws=Ro("toLowerCase"),Zs=Lo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Ys=Lo(function(e,t,n){return e+(n?" ":"")+Qs(t)}),Gs=Lo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Qs=Ro("toUpperCase");function Ks(e,t,r){return e=vs(e),(t=r?n:t)===n?function(e){return ot.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Xs=Qr(function(e,t){try{return At(e,n,t)}catch(e){return Qa(e)?e:new Ee(e)}}),Js=ri(function(e,t){return Mt(t,function(t){t=Li(t),ir(e,t,Ca(e[t],e))}),e});function ec(e){return function(){return e}}var tc=$o(),nc=$o(!0);function rc(e){return e}function oc(e){return Ir("function"==typeof e?e:cr(e,1))}var ic=Qr(function(e,t){return function(n){return Sr(n,e,t)}}),ac=Qr(function(e,t){return function(n){return Sr(e,n,t)}});function sc(e,t,n){var r=Ns(t),o=_r(t,r);null!=n||es(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,Ns(t)));var i=!(es(n)&&"chain"in n&&!n.chain),a=Ka(e);return Mt(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=So(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,It([this.value()],arguments))})}),e}function cc(){}var lc=zo(Pt),uc=zo(St),pc=zo(Ft);function dc(e){return xi(e)?Wt(Li(e)):function(e){return function(t){return Er(t,e)}}(e)}var fc=Wo(),hc=Wo(!0);function mc(){return[]}function gc(){return!1}var yc=Uo(function(e,t){return e+t},0),vc=Go("ceil"),bc=Uo(function(e,t){return e/t},1),wc=Go("floor"),xc=Uo(function(e,t){return e*t},1),_c=Go("round"),Ec=Uo(function(e,t){return e-t},0);return $n.after=function(e,t){if("function"!=typeof t)throw new Ce(r);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},$n.ary=Da,$n.assign=bs,$n.assignIn=ws,$n.assignInWith=xs,$n.assignWith=_s,$n.at=Es,$n.before=Ma,$n.bind=Ca,$n.bindAll=Js,$n.bindKey=Sa,$n.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return za(e)?e:[e]},$n.chain=da,$n.chunk=function(e,t,r){t=(r?wi(e,t,r):t===n)?1:vn(hs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,s=S(ft(o/t));i<o;)s[a++]=ro(e,i,i+=t);return s},$n.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},$n.concat=function(){var e=arguments.length;if(!e)return[];for(var t=S(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return It(za(n)?So(n):[n],yr(t,1))},$n.cond=function(e){var t=null==e?0:e.length,n=li();return e=t?Pt(e,function(e){if("function"!=typeof e[1])throw new Ce(r);return[n(e[0]),e[1]]}):[],Qr(function(n){for(var r=-1;++r<t;){var o=e[r];if(At(o[0],this,n))return At(o[1],this,n)}})},$n.conforms=function(e){return function(e){var t=Ns(e);return function(n){return lr(n,e,t)}}(cr(e,1))},$n.constant=ec,$n.countBy=ma,$n.create=function(e,t){var n=Bn(e);return null==t?n:or(n,t)},$n.curry=function e(t,r,o){var i=Xo(t,8,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},$n.curryRight=function e(t,r,o){var i=Xo(t,a,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},$n.debounce=Na,$n.defaults=ks,$n.defaultsDeep=Os,$n.defer=ja,$n.delay=Ta,$n.difference=$i,$n.differenceBy=Bi,$n.differenceWith=qi,$n.drop=function(e,t,r){var o=null==e?0:e.length;return o?ro(e,(t=r||t===n?1:hs(t))<0?0:t,o):[]},$n.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?ro(e,0,(t=o-(t=r||t===n?1:hs(t)))<0?0:t):[]},$n.dropRightWhile=function(e,t){return e&&e.length?ho(e,li(t,3),!0,!0):[]},$n.dropWhile=function(e,t){return e&&e.length?ho(e,li(t,3),!0):[]},$n.fill=function(e,t,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&wi(e,t,r)&&(r=0,o=i),function(e,t,r,o){var i=e.length;for((r=hs(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:hs(o))<0&&(o+=i),o=r>o?0:ms(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},$n.filter=function(e,t){return(za(e)?Nt:gr)(e,li(t,3))},$n.flatMap=function(e,t){return yr(Ea(e,t),1)},$n.flatMapDeep=function(e,t){return yr(Ea(e,t),p)},$n.flatMapDepth=function(e,t,r){return r=r===n?1:hs(r),yr(Ea(e,t),r)},$n.flatten=Vi,$n.flattenDeep=function(e){return null!=e&&e.length?yr(e,p):[]},$n.flattenDepth=function(e,t){return null!=e&&e.length?yr(e,t=t===n?1:hs(t)):[]},$n.flip=function(e){return Xo(e,512)},$n.flow=tc,$n.flowRight=nc,$n.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},$n.functions=function(e){return null==e?[]:_r(e,Ns(e))},$n.functionsIn=function(e){return null==e?[]:_r(e,js(e))},$n.groupBy=wa,$n.initial=function(e){return null!=e&&e.length?ro(e,0,-1):[]},$n.intersection=Zi,$n.intersectionBy=Yi,$n.intersectionWith=Gi,$n.invert=Ms,$n.invertBy=Cs,$n.invokeMap=xa,$n.iteratee=oc,$n.keyBy=_a,$n.keys=Ns,$n.keysIn=js,$n.map=Ea,$n.mapKeys=function(e,t){var n={};return t=li(t,3),wr(e,function(e,r,o){ir(n,t(e,r,o),e)}),n},$n.mapValues=function(e,t){var n={};return t=li(t,3),wr(e,function(e,r,o){ir(n,r,t(e,r,o))}),n},$n.matches=function(e){return $r(cr(e,1))},$n.matchesProperty=function(e,t){return Br(e,cr(t,1))},$n.memoize=Pa,$n.merge=Ts,$n.mergeWith=Ps,$n.method=ic,$n.methodOf=ac,$n.mixin=sc,$n.negate=Ia,$n.nthArg=function(e){return e=hs(e),Qr(function(t){return Ur(t,e)})},$n.omit=Is,$n.omitBy=function(e,t){return Ls(e,Ia(li(t)))},$n.once=function(e){return Ma(2,e)},$n.orderBy=function(e,t,r,o){return null==e?[]:(za(t)||(t=null==t?[]:[t]),za(r=o?n:r)||(r=null==r?[]:[r]),zr(e,t,r))},$n.over=lc,$n.overArgs=Ra,$n.overEvery=uc,$n.overSome=pc,$n.partial=La,$n.partialRight=Fa,$n.partition=ka,$n.pick=Rs,$n.pickBy=Ls,$n.property=dc,$n.propertyOf=function(e){return function(t){return null==e?n:Er(e,t)}},$n.pull=Ki,$n.pullAll=Xi,$n.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,li(n,2)):e},$n.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Wr(e,t,n,r):e},$n.pullAt=Ji,$n.range=fc,$n.rangeRight=hc,$n.rearg=Ha,$n.reject=function(e,t){return(za(e)?Nt:gr)(e,Ia(li(t,3)))},$n.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=li(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Zr(e,o),n},$n.rest=function(e,t){if("function"!=typeof e)throw new Ce(r);return Qr(e,t=t===n?t:hs(t))},$n.reverse=ea,$n.sampleSize=function(e,t,r){return t=(r?wi(e,t,r):t===n)?1:hs(t),(za(e)?Xn:Xr)(e,t)},$n.set=function(e,t,n){return null==e?e:Jr(e,t,n)},$n.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:Jr(e,t,r,o)},$n.shuffle=function(e){return(za(e)?Jn:no)(e)},$n.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&wi(e,t,r)?(t=0,r=o):(t=null==t?0:hs(t),r=r===n?o:hs(r)),ro(e,t,r)):[]},$n.sortBy=Oa,$n.sortedUniq=function(e){return e&&e.length?so(e):[]},$n.sortedUniqBy=function(e,t){return e&&e.length?so(e,li(t,2)):[]},$n.split=function(e,t,r){return r&&"number"!=typeof r&&wi(e,t,r)&&(t=r=n),(r=r===n?h:r>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=lo(t))&&sn(e)?_o(hn(e),0,r):e.split(t,r):[]},$n.spread=function(e,t){if("function"!=typeof e)throw new Ce(r);return t=null==t?0:vn(hs(t),0),Qr(function(n){var r=n[t],o=_o(n,0,t);return r&&It(o,r),At(e,this,o)})},$n.tail=function(e){var t=null==e?0:e.length;return t?ro(e,1,t):[]},$n.take=function(e,t,r){return e&&e.length?ro(e,0,(t=r||t===n?1:hs(t))<0?0:t):[]},$n.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?ro(e,(t=o-(t=r||t===n?1:hs(t)))<0?0:t,o):[]},$n.takeRightWhile=function(e,t){return e&&e.length?ho(e,li(t,3),!1,!0):[]},$n.takeWhile=function(e,t){return e&&e.length?ho(e,li(t,3)):[]},$n.tap=function(e,t){return t(e),e},$n.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new Ce(r);return es(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Na(e,t,{leading:o,maxWait:t,trailing:i})},$n.thru=fa,$n.toArray=ds,$n.toPairs=Fs,$n.toPairsIn=Hs,$n.toPath=function(e){return za(e)?Pt(e,Li):cs(e)?[e]:So(Ri(vs(e)))},$n.toPlainObject=ys,$n.transform=function(e,t,n){var r=za(e),o=r||Ya(e)||ls(e);if(t=li(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:es(e)&&Ka(i)?Bn(We(e)):{}}return(o?Mt:wr)(e,function(e,r,o){return t(n,e,r,o)}),n},$n.unary=function(e){return Da(e,1)},$n.union=ta,$n.unionBy=na,$n.unionWith=ra,$n.uniq=function(e){return e&&e.length?uo(e):[]},$n.uniqBy=function(e,t){return e&&e.length?uo(e,li(t,2)):[]},$n.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?uo(e,n,t):[]},$n.unset=function(e,t){return null==e||po(e,t)},$n.unzip=oa,$n.unzipWith=ia,$n.update=function(e,t,n){return null==e?e:fo(e,t,bo(n))},$n.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:fo(e,t,bo(r),o)},$n.values=$s,$n.valuesIn=function(e){return null==e?[]:Jt(e,js(e))},$n.without=aa,$n.words=Ks,$n.wrap=function(e,t){return La(bo(t),e)},$n.xor=sa,$n.xorBy=ca,$n.xorWith=la,$n.zip=ua,$n.zipObject=function(e,t){return yo(e||[],t||[],tr)},$n.zipObjectDeep=function(e,t){return yo(e||[],t||[],Jr)},$n.zipWith=pa,$n.entries=Fs,$n.entriesIn=Hs,$n.extend=ws,$n.extendWith=xs,sc($n,$n),$n.add=yc,$n.attempt=Xs,$n.camelCase=Bs,$n.capitalize=qs,$n.ceil=vc,$n.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=gs(r))==r?r:0),t!==n&&(t=(t=gs(t))==t?t:0),sr(gs(e),t,r)},$n.clone=function(e){return cr(e,4)},$n.cloneDeep=function(e){return cr(e,5)},$n.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},$n.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},$n.conformsTo=function(e,t){return null==t||lr(e,t,Ns(t))},$n.deburr=Us,$n.defaultTo=function(e,t){return null==e||e!=e?t:e},$n.divide=bc,$n.endsWith=function(e,t,r){e=vs(e),t=lo(t);var o=e.length,i=r=r===n?o:sr(hs(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},$n.eq=$a,$n.escape=function(e){return(e=vs(e))&&Q.test(e)?e.replace(Y,on):e},$n.escapeRegExp=function(e){return(e=vs(e))&&oe.test(e)?e.replace(re,"\\$&"):e},$n.every=function(e,t,r){var o=za(e)?St:hr;return r&&wi(e,t,r)&&(t=n),o(e,li(t,3))},$n.find=ga,$n.findIndex=Ui,$n.findKey=function(e,t){return $t(e,li(t,3),wr)},$n.findLast=ya,$n.findLastIndex=zi,$n.findLastKey=function(e,t){return $t(e,li(t,3),xr)},$n.floor=wc,$n.forEach=va,$n.forEachRight=ba,$n.forIn=function(e,t){return null==e?e:vr(e,li(t,3),js)},$n.forInRight=function(e,t){return null==e?e:br(e,li(t,3),js)},$n.forOwn=function(e,t){return e&&wr(e,li(t,3))},$n.forOwnRight=function(e,t){return e&&xr(e,li(t,3))},$n.get=As,$n.gt=Ba,$n.gte=qa,$n.has=function(e,t){return null!=e&&gi(e,t,Dr)},$n.hasIn=Ds,$n.head=Wi,$n.identity=rc,$n.includes=function(e,t,n,r){e=Wa(e)?e:$s(e),n=n&&!r?hs(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),ss(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&qt(e,t,n)>-1},$n.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:hs(n);return o<0&&(o=vn(r+o,0)),qt(e,t,o)},$n.inRange=function(e,t,r){return t=fs(t),r===n?(r=t,t=0):r=fs(r),function(e,t,n){return e>=bn(t,n)&&e<vn(t,n)}(e=gs(e),t,r)},$n.invoke=Ss,$n.isArguments=Ua,$n.isArray=za,$n.isArrayBuffer=Va,$n.isArrayLike=Wa,$n.isArrayLikeObject=Za,$n.isBoolean=function(e){return!0===e||!1===e||ts(e)&&Or(e)==v},$n.isBuffer=Ya,$n.isDate=Ga,$n.isElement=function(e){return ts(e)&&1===e.nodeType&&!os(e)},$n.isEmpty=function(e){if(null==e)return!0;if(Wa(e)&&(za(e)||"string"==typeof e||"function"==typeof e.splice||Ya(e)||ls(e)||Ua(e)))return!e.length;var t=mi(e);if(t==E||t==M)return!e.size;if(ki(e))return!Rr(e).length;for(var n in e)if(Ie.call(e,n))return!1;return!0},$n.isEqual=function(e,t){return jr(e,t)},$n.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?jr(e,t,n,r):!!o},$n.isError=Qa,$n.isFinite=function(e){return"number"==typeof e&&bt(e)},$n.isFunction=Ka,$n.isInteger=Xa,$n.isLength=Ja,$n.isMap=ns,$n.isMatch=function(e,t){return e===t||Tr(e,t,pi(t))},$n.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Tr(e,t,pi(t),r)},$n.isNaN=function(e){return rs(e)&&e!=+e},$n.isNative=function(e){if(Ei(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(e)},$n.isNil=function(e){return null==e},$n.isNull=function(e){return null===e},$n.isNumber=rs,$n.isObject=es,$n.isObjectLike=ts,$n.isPlainObject=os,$n.isRegExp=is,$n.isSafeInteger=function(e){return Xa(e)&&e>=-9007199254740991&&e<=d},$n.isSet=as,$n.isString=ss,$n.isSymbol=cs,$n.isTypedArray=ls,$n.isUndefined=function(e){return e===n},$n.isWeakMap=function(e){return ts(e)&&mi(e)==j},$n.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==Or(e)},$n.join=function(e,t){return null==e?"":Ht.call(e,t)},$n.kebabCase=zs,$n.last=Qi,$n.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=hs(r))<0?vn(o+i,0):bn(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Bt(e,zt,i,!0)},$n.lowerCase=Vs,$n.lowerFirst=Ws,$n.lt=us,$n.lte=ps,$n.max=function(e){return e&&e.length?mr(e,rc,Ar):n},$n.maxBy=function(e,t){return e&&e.length?mr(e,li(t,2),Ar):n},$n.mean=function(e){return Vt(e,rc)},$n.meanBy=function(e,t){return Vt(e,li(t,2))},$n.min=function(e){return e&&e.length?mr(e,rc,Fr):n},$n.minBy=function(e,t){return e&&e.length?mr(e,li(t,2),Fr):n},$n.stubArray=mc,$n.stubFalse=gc,$n.stubObject=function(){return{}},$n.stubString=function(){return""},$n.stubTrue=function(){return!0},$n.multiply=xc,$n.nth=function(e,t){return e&&e.length?Ur(e,hs(t)):n},$n.noConflict=function(){return ht._===this&&(ht._=$e),this},$n.noop=cc,$n.now=Aa,$n.pad=function(e,t,n){e=vs(e);var r=(t=hs(t))?fn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Vo(mt(o),n)+e+Vo(ft(o),n)},$n.padEnd=function(e,t,n){e=vs(e);var r=(t=hs(t))?fn(e):0;return t&&r<t?e+Vo(t-r,n):e},$n.padStart=function(e,t,n){e=vs(e);var r=(t=hs(t))?fn(e):0;return t&&r<t?Vo(t-r,n)+e:e},$n.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),xn(vs(e).replace(ie,""),t||0)},$n.random=function(e,t,r){if(r&&"boolean"!=typeof r&&wi(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=fs(e),t===n?(t=e,e=0):t=fs(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=_n();return bn(e+i*(t-e+ut("1e-"+((i+"").length-1))),t)}return Yr(e,t)},$n.reduce=function(e,t,n){var r=za(e)?Rt:Yt,o=arguments.length<3;return r(e,li(t,4),n,o,dr)},$n.reduceRight=function(e,t,n){var r=za(e)?Lt:Yt,o=arguments.length<3;return r(e,li(t,4),n,o,fr)},$n.repeat=function(e,t,r){return t=(r?wi(e,t,r):t===n)?1:hs(t),Gr(vs(e),t)},$n.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},$n.result=function(e,t,r){var o=-1,i=(t=wo(t,e)).length;for(i||(i=1,e=n);++o<i;){var a=null==e?n:e[Li(t[o])];a===n&&(o=i,a=r),e=Ka(a)?a.call(e):a}return e},$n.round=_c,$n.runInContext=e,$n.sample=function(e){return(za(e)?Kn:Kr)(e)},$n.size=function(e){if(null==e)return 0;if(Wa(e))return ss(e)?fn(e):e.length;var t=mi(e);return t==E||t==M?e.size:Rr(e).length},$n.snakeCase=Zs,$n.some=function(e,t,r){var o=za(e)?Ft:oo;return r&&wi(e,t,r)&&(t=n),o(e,li(t,3))},$n.sortedIndex=function(e,t){return io(e,t)},$n.sortedIndexBy=function(e,t,n){return ao(e,t,li(n,2))},$n.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=io(e,t);if(r<n&&$a(e[r],t))return r}return-1},$n.sortedLastIndex=function(e,t){return io(e,t,!0)},$n.sortedLastIndexBy=function(e,t,n){return ao(e,t,li(n,2),!0)},$n.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=io(e,t,!0)-1;if($a(e[n],t))return n}return-1},$n.startCase=Ys,$n.startsWith=function(e,t,n){return e=vs(e),n=null==n?0:sr(hs(n),0,e.length),t=lo(t),e.slice(n,n+t.length)==t},$n.subtract=Ec,$n.sum=function(e){return e&&e.length?Gt(e,rc):0},$n.sumBy=function(e,t){return e&&e.length?Gt(e,li(t,2)):0},$n.template=function(e,t,r){var o=$n.templateSettings;r&&wi(e,t,r)&&(t=n),e=vs(e),t=xs({},t,o,Jo);var i,a,s=xs({},t.imports,o.imports,Jo),c=Ns(s),l=Jt(s,c),u=0,p=t.interpolate||xe,d="__p += '",f=De((t.escape||xe).source+"|"+p.source+"|"+(p===J?fe:xe).source+"|"+(t.evaluate||xe).source+"|$","g"),h="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(f,function(t,n,r,o,s,c){return r||(r=o),d+=e.slice(u,c).replace(_e,an),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=c+t.length,t}),d+="';\n";var m=Ie.call(t,"variable")&&t.variable;if(m){if(pe.test(m))throw new Ee("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(z,""):d).replace(V,"$1").replace(W,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Xs(function(){return ke(c,h+"return "+d).apply(n,l)});if(g.source=d,Qa(g))throw g;return g},$n.times=function(e,t){if((e=hs(e))<1||e>d)return[];var n=h,r=bn(e,h);t=li(t),e-=h;for(var o=Qt(r,t);++n<e;)t(n);return o},$n.toFinite=fs,$n.toInteger=hs,$n.toLength=ms,$n.toLower=function(e){return vs(e).toLowerCase()},$n.toNumber=gs,$n.toSafeInteger=function(e){return e?sr(hs(e),-9007199254740991,d):0===e?e:0},$n.toString=vs,$n.toUpper=function(e){return vs(e).toUpperCase()},$n.trim=function(e,t,r){if((e=vs(e))&&(r||t===n))return Kt(e);if(!e||!(t=lo(t)))return e;var o=hn(e),i=hn(t);return _o(o,tn(o,i),nn(o,i)+1).join("")},$n.trimEnd=function(e,t,r){if((e=vs(e))&&(r||t===n))return e.slice(0,mn(e)+1);if(!e||!(t=lo(t)))return e;var o=hn(e);return _o(o,0,nn(o,hn(t))+1).join("")},$n.trimStart=function(e,t,r){if((e=vs(e))&&(r||t===n))return e.replace(ie,"");if(!e||!(t=lo(t)))return e;var o=hn(e);return _o(o,tn(o,hn(t))).join("")},$n.truncate=function(e,t){var r=30,o="...";if(es(t)){var i="separator"in t?t.separator:i;r="length"in t?hs(t.length):r,o="omission"in t?lo(t.omission):o}var a=(e=vs(e)).length;if(sn(e)){var s=hn(e);a=s.length}if(r>=a)return e;var c=r-fn(o);if(c<1)return o;var l=s?_o(s,0,c).join(""):e.slice(0,c);if(i===n)return l+o;if(s&&(c+=l.length-c),is(i)){if(e.slice(c).search(i)){var u,p=l;for(i.global||(i=De(i.source,vs(he.exec(i))+"g")),i.lastIndex=0;u=i.exec(p);)var d=u.index;l=l.slice(0,d===n?c:d)}}else if(e.indexOf(lo(i),c)!=c){var f=l.lastIndexOf(i);f>-1&&(l=l.slice(0,f))}return l+o},$n.unescape=function(e){return(e=vs(e))&&G.test(e)?e.replace(Z,gn):e},$n.uniqueId=function(e){var t=++Re;return vs(e)+t},$n.upperCase=Gs,$n.upperFirst=Qs,$n.each=va,$n.eachRight=ba,$n.first=Wi,sc($n,function(){var e={};return wr($n,function(t,n){Ie.call($n.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),$n.VERSION="4.17.21",Mt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){$n[e].placeholder=$n}),Mt(["drop","take"],function(e,t){zn.prototype[e]=function(r){r=r===n?1:vn(hs(r),0);var o=this.__filtered__&&!t?new zn(this):this.clone();return o.__filtered__?o.__takeCount__=bn(r,o.__takeCount__):o.__views__.push({size:bn(r,h),type:e+(o.__dir__<0?"Right":"")}),o},zn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Mt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;zn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:li(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Mt(["head","last"],function(e,t){var n="take"+(t?"Right":"");zn.prototype[e]=function(){return this[n](1).value()[0]}}),Mt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");zn.prototype[e]=function(){return this.__filtered__?new zn(this):this[n](1)}}),zn.prototype.compact=function(){return this.filter(rc)},zn.prototype.find=function(e){return this.filter(e).head()},zn.prototype.findLast=function(e){return this.reverse().find(e)},zn.prototype.invokeMap=Qr(function(e,t){return"function"==typeof e?new zn(this):this.map(function(n){return Sr(n,e,t)})}),zn.prototype.reject=function(e){return this.filter(Ia(li(e)))},zn.prototype.slice=function(e,t){e=hs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new zn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},zn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},zn.prototype.toArray=function(){return this.take(h)},wr(zn.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=$n[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&($n.prototype[t]=function(){var t=this.__wrapped__,s=o?[1]:arguments,c=t instanceof zn,l=s[0],u=c||za(t),p=function(e){var t=i.apply($n,It([e],s));return o&&d?t[0]:t};u&&r&&"function"==typeof l&&1!=l.length&&(c=u=!1);var d=this.__chain__,f=!!this.__actions__.length,h=a&&!d,m=c&&!f;if(!a&&u){t=m?t:new zn(this);var g=e.apply(t,s);return g.__actions__.push({func:fa,args:[p],thisArg:n}),new Un(g,d)}return h&&m?e.apply(this,s):(g=this.thru(p),h?o?g.value()[0]:g.value():g)})}),Mt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Se[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);$n.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(za(o)?o:[],e)}return this[n](function(n){return t.apply(za(n)?n:[],e)})}}),wr(zn.prototype,function(e,t){var n=$n[t];if(n){var r=n.name+"";Ie.call(Nn,r)||(Nn[r]=[]),Nn[r].push({name:t,func:n})}}),Nn[Bo(n,2).name]=[{name:"wrapper",func:n}],zn.prototype.clone=function(){var e=new zn(this.__wrapped__);return e.__actions__=So(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=So(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=So(this.__views__),e},zn.prototype.reverse=function(){if(this.__filtered__){var e=new zn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},zn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=za(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,c=s-a,l=r?s:a-1,u=this.__iteratees__,p=u.length,d=0,f=bn(c,this.__takeCount__);if(!n||!r&&o==c&&f==c)return mo(e,this.__actions__);var h=[];e:for(;c--&&d<f;){for(var m=-1,g=e[l+=t];++m<p;){var y=u[m],v=y.iteratee,b=y.type,w=v(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}h[d++]=g}return h},$n.prototype.at=ha,$n.prototype.chain=function(){return da(this)},$n.prototype.commit=function(){return new Un(this.value(),this.__chain__)},$n.prototype.next=function(){this.__values__===n&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},$n.prototype.plant=function(e){for(var t,r=this;r instanceof qn;){var o=Hi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},$n.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof zn){var t=e;return this.__actions__.length&&(t=new zn(this)),(t=t.reverse()).__actions__.push({func:fa,args:[ea],thisArg:n}),new Un(t,this.__chain__)}return this.thru(ea)},$n.prototype.toJSON=$n.prototype.valueOf=$n.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},$n.prototype.first=$n.prototype.head,Ke&&($n.prototype[Ke]=function(){return this}),$n}();gt?((gt.exports=yn)._=yn,mt._=yn):ht._=yn}).call(S6)}(C6,C6.exports)),tb.arrayOf(tb.shape({name:tb.string.isRequired,path:tb.string.isRequired})).isRequired,tb.func.isRequired;var N6={CORE_UI:"CORE_UI",DEV_PORTAL:"DEV_PORTAL",OPEN_API:"OPEN_API",EXTERNAL:"EXTERNAL"},j6={CATALOG:"CATALOG",GUIDE:"GUIDE"};function T6(e){var t=e.exampleScheme,n=e.onSelectExample,r=e.onSelectSchema,i=e.className,a=Wy(),s=t===fe,c=t===de;return o.jsxs("div",{className:Qy("ref-tab-toggle",i),children:[o.jsxs("div",{"aria-hidden":!0,onClick:function(e){e.stopPropagation(),r()},className:Qy("ref-tab-toggle__item",s&&"ref-tab-toggle__item--active"),children:[o.jsx(Kw,{size:a.sm,className:"ref-tab-toggle__icon"}),o.jsx("span",{className:"ref-tab-toggle__label text-nowrap",children:"Schema"})]}),o.jsxs("div",{"aria-hidden":!0,onClick:function(e){e.stopPropagation(),n()},className:Qy("ref-tab-toggle__item",c&&"ref-tab-toggle__item--active"),children:[o.jsx(aw,{size:a.sm,className:"ref-tab-toggle__icon"}),o.jsx("span",{className:"ref-tab-toggle__label text-nowrap",children:"Example"})]})]})}function P6(e){var t=e.example,n=e.isDarkMode,r=e.emptyMessage,i=Wy();return function(e){return null!=e&&("string"!=typeof e||e.trim().length>0)}(t)?o.jsx(tJ,{code:JSON.stringify(t,null,2),lang:"json",theme:"light",style:{maxHeight:"100%",overflowY:"auto",borderRadius:"8px",border:n?"1px solid #434343":""},tokens:{attr:"#5EAAF7",string:"#F0F0F0",punctuation:"#F0F0F0",bg:n?"#292724":"#373533"}}):o.jsx("div",{className:"flex-center w-100",children:o.jsxs("div",{className:"flex-col vt-center hz-center dss-gap-12 dss-br-4 dss-px-12 dss-py-40 w-100",children:[o.jsx(Iw,{size:i.custom(36),className:"color-disabled"}),o.jsx("p",{className:"color-tertiary fs-12px fw-600 dss-my-0",children:r||"No example available"})]})})}T6.propTypes={exampleScheme:tb.string.isRequired,onSelectExample:tb.func.isRequired,onSelectSchema:tb.func.isRequired,className:tb.string},T6.defaultProps={className:""};function I6(n){var r,i,a=n.activeViewType,s=n.FROM,c=Wy(),l=t.useDispatch(),u=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),p=t.useSelector(function(e){return e.libConfig.isDarkMode},zy),d=t.useSelector(function(e){return e.apiReference.selected.request.schema},zy),f=t.useSelector(function(e){return e.apiReference.selected.request.contentList},zy),h=t.useSelector(function(e){return e.apiReference.selected.request.contentType},zy),m=t.useSelector(function(e){return e.apiReference.selected.request.example},zy),g=Ce(e.useState(null),2),y=g[0],v=g[1],b=Ce(e.useState([]),2),w=b[0],x=b[1],_=Ce(e.useState(!u),2),E=_[0],k=_[1],O=Ce(e.useState(fe),2),A=O[0],D=O[1],M=e.useMemo(function(){return(Object.keys(f)||[]).map(function(e){return{onClick:function(){return l(py({contentType:e,contentTypeData:f[e]}))},element:o.jsx("div",{className:Qy("ref-ui-12 color-02 fw-400"),children:e})}})},[f,l]),C=function(e){if(e){var t=e.uiData&&e.uiData.traversePath||"",n=[],r="request".concat(G,"schema"),o=t.startsWith("".concat(r).concat(G))?t.slice("".concat(r).concat(G).length):"";if(o)for(var i=o.split(G),a=d,s=r,c=0;c+1<i.length;c+=2){var l=i[c],u=Number(i[c+1]);s="".concat(s).concat(G).concat(l).concat(G).concat(u),"properties"===l&&a.properties&&a.properties[u]&&(a=a.properties[u],s.startsWith("".concat("request#..@..#schema#..@..#properties#..@..#0#..@..#properties#..@..#0").concat(G))&&n.push({name:a.uiData&&a.uiData.name||"",traversePath:s}))}x(n),v(e)}},S=(null==d||null===(r=d.properties)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.properties)||void 0===r?void 0:r[0])||null;e.useEffect(function(){C(S||null)},[S]);var N=S?o.jsx(NN,{node:S,depth:0,selectedBodyObject:y,setSelectedBodyObject:C}):o.jsx("div",{className:"dss-p-8 ref-ui-12 color-secondary",children:"No schema"}),j=o.jsx(T6,{exampleScheme:A,onSelectExample:function(){D(de),k(!0)},onSelectSchema:function(){D(fe),k(!0)}}),T=o.jsx(hN,{options:M,btnClassName:"dss-br-8 dss-py-1",ddPositionClassName:"bg-L1 catalog-dd-max-h zIndex-12",optionClassName:"color-primary fs-11px fw-400 dss-p-8 font-dm-sans",styles:{minWidth:X(110)},caretClassName:"color-text-inverse",hideArrowIcon:!0,children:o.jsxs("div",{className:"flex-rows vt-center dss-gap-6 w-100",children:[o.jsx("div",{className:Qy("color-primary ref-ui-12 fw-400 font-dm-sans w-80 text-truncate-1"),title:h,children:h}),o.jsx("div",{className:"flex-rows vt-center hz-flex-end w-20",children:o.jsx(cw,{weight:"fill",size:c.md,className:"color-secondary"})})]})}),P=o.jsx("div",{"aria-hidden":!0,onClick:function(){return k(function(e){return!e})},className:"ref-schema-toolbar-collapse",children:o.jsx("span",{className:"ref-schema-toolbar-collapse__icon",children:o.jsx(Bw,{size:c.md,className:"color-04"})})});return o.jsxs("div",{className:"ref-section-block",children:[o.jsx("div",{className:"ref-section-header border-bottom-secondary-1px",children:o.jsxs("div",{className:"ref-section-header-title-row",children:[o.jsx("span",{className:"ref-section-header__icon",children:o.jsx(TextIndentIcon,{size:c.section,className:"color-00",weight:"duotone"})}),o.jsx("div",{className:"ref-section-heading color-primary",children:"Request Body"})]})}),o.jsx("div",{className:"ref-schema-card bg-ground border-secondary-1px dss-mt-20",children:A===fe?o.jsxs("div",{className:"ref-schema-layout br-tr-8px br-tl-8px border-bottom-secondary-1px",children:[o.jsxs("div",{className:"ref-schema-top-toolbar border-bottom-secondary-1px w-100",children:[o.jsx("div",{className:"ref-schema-left-title-tab dss-p-8 border-right-secondary-1px",children:o.jsxs("span",{className:"ref-schema-sidebar-header__icon dss-gap-6 flex-rows vt-center",children:[o.jsx(Kw,{size:c.sm,className:"color-04"}),T]})}),o.jsxs("div",{className:"ref-schema-top-toolbar__left",children:[P,j]})]}),o.jsxs("div",{className:"ref-schema-body",children:[E&&o.jsx("div",{className:"ref-schema-sidebar ref-schema-sidebar--desktop border-right-secondary-1px",children:o.jsx("div",{className:"ref-schema-sidebar-tree noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:N})})}),o.jsxs("div",{className:Qy("ref-schema-main-panel",!E&&"ref-schema-main-panel--full"),children:[w.length>0&&o.jsx("div",{className:"ref-schema-breadcrumbs-row bg-ground border-bottom-secondary-1px",children:o.jsxs("div",{className:"ref-schema-breadcrumbs flex-rows vt-center noscrollbar",children:[o.jsx("div",{className:"flex-center flex-shrink-0",children:o.jsx(iw,{className:"color-04",size:c.md})}),w.map(function(e,t){return o.jsxs("div",{className:"flex-rows vt-center dss-gap-4 flex-shrink-0",children:[t>0&&o.jsx(lw,{size:c.xs,className:"color-04"}),o.jsx("div",{className:"ref-ui-12 fw-500 color-secondary",children:e.name})]},e.traversePath)})]})}),E&&o.jsx("div",{className:"ref-schema-sidebar-tree--drawer noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:N})}),o.jsx("div",{className:"ref-schema-detail bg-step-up",children:y&&o.jsx(iX,{activeViewType:a,FROM:s,showEmptyFallback:a===e3.VIEW,rootElement:!0,setSelectedBodyObject:C,traverse:null==y?void 0:y.uiData.traversePath,param:y,order:0},(null==y||null===(i=y.uiData)||void 0===i?void 0:i.keyId)||"")})]})]})]}):o.jsxs("div",{className:"ref-schema-layout br-tr-8px br-tl-8px border-bottom-secondary-1px",children:[o.jsxs("div",{className:"ref-schema-top-toolbar border-bottom-secondary-1px w-100",children:[o.jsx("div",{className:"ref-schema-left-title-tab dss-p-8 border-right-secondary-1px",children:o.jsxs("span",{className:"ref-schema-sidebar-header__icon dss-gap-6 flex-rows vt-center",children:[o.jsx(Kw,{size:c.sm,className:"color-04"}),T]})}),o.jsxs("div",{className:"ref-schema-top-toolbar__left",children:[P,j]})]}),o.jsxs("div",{className:"ref-schema-body",children:[E&&o.jsx("div",{className:"ref-schema-sidebar ref-schema-sidebar--desktop border-right-secondary-1px",children:o.jsx("div",{className:"ref-schema-sidebar-tree noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:N})})}),o.jsxs("div",{className:Qy("ref-schema-main-panel",!E&&"ref-schema-main-panel--full"),children:[E&&o.jsx("div",{className:"ref-schema-sidebar-tree--drawer noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:N})}),o.jsx("div",{className:"ref-schema-example-body color-02 bg-L3 dss-p-20",children:o.jsx(P6,{example:m,isDarkMode:p,emptyMessage:"No example provided for this request body"})})]})]})]})})]})}var R6=function(e){if(!e)return null;var t=e.uiData&&e.uiData.name||"",n=Array.isArray(e.properties)&&1===e.properties.length?e.properties[0]:null;return!t&&n&&n.uiData&&n.uiData.type===ee.OBJECT?n:e},L6=function(n){var r,i,a,s,c,l=n.activeViewType,u=n.FROM,p=Wy(),d=t.useSelector(function(e){return e.apiReference.selected.responses},zy),f=t.useSelector(function(e){var t;return null===(t=e.apiReference.selected.operation)||void 0===t?void 0:t.keyId},zy),h=t.useSelector(function(e){return e.libConfig.isDarkMode},zy),m=e.useMemo(function(){return!!d.filter(function(e){return e.name}).length},[d]),g=Ce(e.useState(null),2),y=g[0],v=g[1],b=Ce(e.useState(null),2),w=b[0],x=b[1],_=Ce(e.useState([]),2),E=_[0],k=_[1],O=Ce(e.useState(!0),2),A=O[0],D=O[1],M=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),C=Ce(e.useState(!M),2),S=C[0],N=C[1],j=Ce(e.useState(fe),2),T=j[0],P=j[1],I=e.useMemo(function(){return(d||[]).map(function(e){return{onClick:function(){return x(t=e),void R(R6(null==t?void 0:t.schema),t);var t},element:o.jsxs("div",{className:Qy("ref-ui-12 color-02 fw-400"),children:[(null==e?void 0:e.name)||"-",null!=e&&e.exampleSummary?o.jsxs("span",{className:"color-tertiary",children:[" · ",e.exampleSummary]}):null]})}})},[d]),R=function(e,t){var n,r;if(e){var o=e.uiData&&e.uiData.traversePath||"",i=[],a=t||w,s=null!==(n=null==a?void 0:a.responseIndex)&&void 0!==n?n:0,c=R6((null==a?void 0:a.schema)||(null===(r=d[s])||void 0===r?void 0:r.schema)),l=c&&c.uiData&&c.uiData.traversePath||"response".concat(G).concat(s).concat(G,"schema"),u=o.startsWith("".concat(l).concat(G))?o.slice("".concat(l).concat(G).length):"";if(u)for(var p=u.split(G),f=c,h=l,m=0;m+1<p.length;m+=2){var g,y=p[m],b=Number(p[m+1]);h="".concat(h).concat(G).concat(y).concat(G).concat(b),"properties"===y&&null!==(g=f)&&void 0!==g&&g.properties&&f.properties[b]&&(f=f.properties[b],i.push({name:f.uiData&&f.uiData.name||"",traversePath:h}))}k(i),v(e)}};e.useEffect(function(){m&&d[0]&&!w&&(x(d[0]),R(R6(d[0].schema),d[0]))},[m,d,w]),e.useEffect(function(){f&&m&&d[0]&&(x(d[0]),R(R6(d[0].schema),d[0]))},[f]);var L=e.useMemo(function(){var e;if(!w)return null;var t=null!==(e=w.responseIndex)&&void 0!==e?e:0;return d[t]||w},[d,w]),F=e.useMemo(function(){return R6(null==L?void 0:L.schema)},[null==L?void 0:L.schema]),H=e.useMemo(function(){var e;return F?F.uiData&&F.uiData.traversePath||"response".concat(G).concat(null!==(e=null==L?void 0:L.responseIndex)&&void 0!==e?e:0).concat(G,"schema"):""},[F,L]),$=e.useMemo(function(){var e;return y&&F&&null!==(e=y.uiData)&&void 0!==e&&e.traversePath&&Fg(F,y.uiData.traversePath,H)||y},[y,F,H]);e.useEffect(function(){var e,t,n;if(null!=y&&null!==(e=y.uiData)&&void 0!==e&&e.traversePath&&F){var r=Fg(F,y.uiData.traversePath,H);!r||null!==(t=y.uiData)&&void 0!==t&&t.keyId&&(null===(n=r.uiData)||void 0===n?void 0:n.keyId)!==y.uiData.keyId?R(F,L):r!==y&&v(r)}},[F,null==y||null===(r=y.uiData)||void 0===r?void 0:r.traversePath,H]);var B=F?o.jsx(NN,{node:F,depth:0,selectedBodyObject:$||y,setSelectedBodyObject:function(e){return R(e,L)}}):o.jsx("div",{className:"dss-p-8 ref-ui-12 color-secondary",children:"No schema"}),q=(null==L||null===(i=L.headerParams)||void 0===i?void 0:i.properties)||[],U=q.length?o.jsxs("div",{className:"ref-schema-headers-group",children:[o.jsxs("div",{"aria-hidden":!0,onClick:function(){return D(function(e){return!e})},className:"ref-schema-tree-node cursor hover-bg-gray-l2",style:{"--ref-tree-indent":"calc(8px * var(--ui-scale))"},children:[o.jsx("span",{className:"ref-schema-tree-node__icon cursor",children:A?o.jsx(cw,{size:p.sm,className:"color-04"}):o.jsx(lw,{size:p.sm,className:"color-04"})}),o.jsx("div",{className:"ref-tree-label color-tertiary text-truncate",children:"Response Headers"})]}),A&&q.map(function(e,t){var n,r=e.uiData||{},i=(null==y||null===(n=y.uiData)||void 0===n?void 0:n.keyId)&&r.keyId===y.uiData.keyId;return o.jsxs("div",{"aria-hidden":!0,onClick:function(){return R(e,L)},className:Qy("ref-schema-tree-node cursor hover-bg-gray-l2",i&&"ref-schema-tree-node--selected bg-gray-l2"),style:{"--ref-tree-indent":"calc(22px * var(--ui-scale))"},children:[o.jsx("span",{className:"ref-schema-tree-node__icon",children:SN(r.type,p.sm,r.renderType,r.itemType)}),o.jsx("div",{className:"ref-tree-label color-tertiary text-truncate",children:r.name||e.name||""})]},r.keyId||t)})]}):null,z=o.jsxs(o.Fragment,{children:[U,B]}),V=o.jsx(T6,{exampleScheme:T,onSelectExample:function(){P(de),N(!0)},onSelectSchema:function(){P(fe),N(!0)}}),W=o.jsx(hN,{options:I,hideArrowIcon:!0,btnClassName:"dss-br-8 dss-px-8",ddPositionClassName:"bg-L1 catalog-dd-max-h zIndex-12",optionClassName:"color-primary fs-11px fw-400 dss-p-8 font-dm-sans",styles:{minWidth:X(110)},caretClassName:"color-text-inverse",children:o.jsxs("div",{className:"ref-schema-status-trigger",children:[w&&o.jsx(pX,{name:w.name,textProps:{color:"color-primary",fontSize:"fs-12px",fontWeight:"fw-600",classNames:"ref-schema-status-label font-dm-sans "}}),o.jsx("span",{className:"ref-schema-status-caret","aria-hidden":!0,children:o.jsx(cw,{size:p.md,className:"color-secondary",weight:"fill"})})]})}),Z=o.jsx("div",{"aria-hidden":!0,onClick:function(){return N(function(e){return!e})},className:"ref-schema-toolbar-collapse",children:o.jsx("span",{className:"ref-schema-toolbar-collapse__icon",children:o.jsx(Bw,{size:p.md,className:"color-04"})})});return m?o.jsxs("div",{className:"ref-section-block",children:[o.jsx("div",{className:"ref-section-header border-bottom-secondary-1px",children:o.jsxs("div",{className:"ref-section-header-title-row",children:[o.jsx("span",{className:"ref-section-header__icon",children:o.jsx(Rw,{size:p.section,className:"color-00",weight:"duotone"})}),o.jsx("div",{className:"ref-section-heading color-primary",children:"Response"})]})}),o.jsx("div",{className:"ref-schema-card bg-ground border-secondary-1px dss-mt-20",children:T===fe?o.jsxs("div",{className:"ref-schema-layout br-tr-8px br-tl-8px border-bottom-secondary-1px",children:[o.jsxs("div",{className:"ref-schema-top-toolbar border-bottom-secondary-1px w-100",children:[o.jsx("div",{className:"ref-schema-left-title-tab dss-p-8 border-right-secondary-1px",children:o.jsxs("span",{className:"ref-schema-sidebar-header__icon dss-gap-6 flex-rows vt-center",children:[o.jsx(Kw,{size:p.sm,className:"color-04"}),W]})}),o.jsxs("div",{className:"ref-schema-top-toolbar__left",children:[Z,V]})]}),o.jsxs("div",{className:"ref-schema-body",children:[S&&o.jsx("div",{className:"ref-schema-sidebar ref-schema-sidebar--desktop border-right-secondary-1px",children:o.jsx("div",{className:"ref-schema-sidebar-tree noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:z})})}),o.jsxs("div",{className:Qy("ref-schema-main-panel",!S&&"ref-schema-main-panel--full"),children:[E.length>0&&o.jsx("div",{className:"ref-schema-breadcrumbs-row bg-ground border-bottom-secondary-1px",children:o.jsxs("div",{className:"ref-schema-breadcrumbs flex-rows vt-center noscrollbar",children:[o.jsx("div",{className:"flex-center flex-shrink-0",children:o.jsx(iw,{className:"color-04",size:p.md})}),E.map(function(e,t){return o.jsxs("div",{className:"flex-rows vt-center dss-gap-4 flex-shrink-0",children:[t>0&&o.jsx(lw,{size:p.xs,className:"color-04"}),o.jsx("div",{"aria-hidden":!0,onClick:function(){return function(e){if(F){var t=Fg(F,e.traversePath,H);t&&R(t,L)}}(e)},className:"ref-ui-12 fw-500 color-secondary cursor",children:e.name})]},e.traversePath)})]})}),S&&o.jsx("div",{className:"ref-schema-sidebar-tree--drawer noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:z})}),o.jsx("div",{className:"ref-schema-detail bg-step-up",children:$&&o.jsx(iX,{activeViewType:l,FROM:u,showEmptyFallback:!0,rootElement:!0,setSelectedBodyObject:function(e){return R(e,L)},traverse:null==$||null===(c=$.uiData)||void 0===c?void 0:c.traversePath,param:$,order:0},(null==$||null===(a=$.uiData)||void 0===a?void 0:a.traversePath)||(null==$||null===(s=$.uiData)||void 0===s?void 0:s.keyId)||"response-detail")})]})]})]}):o.jsxs("div",{className:"ref-schema-layout br-tr-8px br-tl-8px border-bottom-secondary-1px",children:[o.jsxs("div",{className:"ref-schema-top-toolbar border-bottom-secondary-1px w-100",children:[o.jsx("div",{className:"ref-schema-left-title-tab dss-p-8 border-right-secondary-1px",children:o.jsxs("span",{className:"ref-schema-sidebar-header__icon dss-gap-6 flex-rows vt-center",children:[o.jsx(Kw,{size:p.sm,className:"color-04"}),W]})}),o.jsxs("div",{className:"ref-schema-top-toolbar__left",children:[Z,V]})]}),o.jsxs("div",{className:"ref-schema-body",children:[S&&o.jsx("div",{className:"ref-schema-sidebar ref-schema-sidebar--desktop border-right-secondary-1px",children:o.jsx("div",{className:"ref-schema-sidebar-tree noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:z})})}),o.jsxs("div",{className:Qy("ref-schema-main-panel",!S&&"ref-schema-main-panel--full"),children:[S&&o.jsx("div",{className:"ref-schema-sidebar-tree--drawer noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:z})}),o.jsx("div",{className:"ref-schema-example-body color-02 dss-p-20 bg-L3",children:o.jsx(P6,{example:null==L?void 0:L.example,isDarkMode:h,emptyMessage:"No example provided for this response"})})]})]})]})})]}):null};function F6(e){if(!e||e.constructor!==Object)return e;if(Array.isArray(e.allOf)){var t={type:e.type||"object",properties:{}};Object.keys(e).forEach(function(n){"allOf"!==n&&"properties"!==n&&(t[n]=e[n])}),e.properties&&e.properties.constructor===Object&&Object.assign(t.properties,e.properties),e.allOf.forEach(function(e){var n=F6(e),r=n&&n.properties;r&&r.constructor===Object&&Object.keys(r).forEach(function(e){e.startsWith("__")||(t.properties[e]=r[e])})}),e=t}return e.properties&&e.properties.constructor===Object&&Object.keys(e.properties).forEach(function(t){t.startsWith("__")||(e.properties[t]=F6(e.properties[t]))}),e.items&&(e.items=F6(e.items)),e}function H6(e,t){e&&(e.uiData&&(e.uiData.traversePath=t),Array.isArray(e.properties)&&e.properties.length&&e.properties.forEach(function(e,n){H6(e,"".concat(t).concat(G,"properties").concat(G).concat(n))}))}function $6(){var n,r=Wy(),i=t.useSelector(function(e){return e.apiReference.selected.swagger},zy),a=t.useSelector(function(e){return e.libConfig.isDarkMode},zy),s=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),c=e.useMemo(function(){var e=i&&i.source,t=function(e){return e?e.components&&e.components.schemas&&Object.keys(e.components.schemas).length?e.components.schemas:e.definitions&&Object.keys(e.definitions).length?e.definitions:null:null}(e);return t?Object.keys(t).map(function(n,r){var o=null;try{var i=F6(Fa({swagger:e,value:ye(t[n])}));(o=Cg.schemaConversionForUi(i,n))&&Sg(o),o&&H6(o,"schemas".concat(G).concat(r).concat(G,"schema"))}catch(e){o=null}var a=null;try{a=Ua({swagger:e,value:Fa({swagger:e,value:ye(t[n])}),type:"json"})}catch(e){a=null}if(null==a){var s=t[n]&&t[n].examples;if(Array.isArray(s)&&s.length)a=Ce(s,1)[0];else t[n]&&void 0!==t[n].example&&(a=t[n].example)}return{name:n,converted:o,example:a}}).filter(function(e){return e.converted&&e.converted.uiData}):[]},[i]),l=Ce(e.useState(null),2),u=l[0],p=l[1],d=Ce(e.useState(null),2),f=d[0],h=d[1],m=Ce(e.useState([]),2),g=m[0],y=m[1],v=Ce(e.useState(!s),2),b=v[0],w=v[1],x=Ce(e.useState(fe),2),_=x[0],E=x[1],k=function(e,t){if(e){var n=t||u&&u.converted,r=n&&n.uiData&&n.uiData.traversePath,o=e.uiData&&e.uiData.traversePath||"",i=[];if(n&&r&&o.startsWith("".concat(r).concat(G)))for(var a=o.slice("".concat(r).concat(G).length).split(G),s=n,c=r,l=0;l+1<a.length;l+=2){var p=a[l],d=Number(a[l+1]);c="".concat(c).concat(G).concat(p).concat(G).concat(d),"properties"===p&&s.properties&&s.properties[d]&&(s=s.properties[d],i.push({name:s.uiData&&s.uiData.name||"",traversePath:c}))}y(i),h(e)}},O=function(e){e&&(p(e),k(e.converted,e.converted))};e.useEffect(function(){c.length?O(c[0]):(p(null),h(null),y([]))},[c]);var A=e.useMemo(function(){return c.map(function(e){return{onClick:function(){return O(e)},element:o.jsx("div",{className:Qy("ref-ui-12 color-02 fw-400"),children:e.name})}})},[c]);if(!c.length||!u)return null;var D=u.converted,M=D?o.jsx(NN,{node:D,depth:0,selectedBodyObject:f,setSelectedBodyObject:function(e){return k(e,D)}}):o.jsx("div",{className:"dss-p-8 ref-ui-12 color-secondary",children:"No schema"}),C=o.jsx(T6,{exampleScheme:_,onSelectExample:function(){E(de),w(!0)},onSelectSchema:function(){E(fe),w(!0)}}),S=o.jsx(hN,{options:A,hideArrowIcon:!0,btnClassName:"dss-br-8 dss-px-8",ddPositionClassName:"bg-L1 catalog-dd-max-h zIndex-12",optionClassName:"color-primary fs-11px fw-400 dss-p-8 font-dm-sans",styles:{minWidth:X(110)},caretClassName:"color-text-inverse",children:o.jsxs("div",{className:"ref-schema-status-trigger",children:[o.jsx("div",{className:Qy("color-primary fs-12px fw-600 ref-schema-status-label text-truncate-1 font-dm-sans "),children:u.name}),o.jsx("span",{className:"ref-schema-status-caret","aria-hidden":!0,children:o.jsx(cw,{size:r.md,className:"color-secondary",weight:"fill"})})]})}),N=o.jsx("div",{"aria-hidden":!0,onClick:function(){return w(function(e){return!e})},className:"ref-schema-toolbar-collapse",children:o.jsx("span",{className:"ref-schema-toolbar-collapse__icon",children:o.jsx(Bw,{size:r.md,className:"color-04"})})});return o.jsxs("div",{className:"ref-section-block",children:[o.jsxs("div",{className:"ref-section-header border-bottom-secondary-1px",children:[o.jsxs("div",{className:"ref-section-header-title-row",children:[o.jsx("span",{className:"ref-section-header__icon",children:o.jsx(aw,{size:r.section,className:"color-00",weight:"duotone"})}),o.jsx("div",{className:"ref-section-heading color-primary",children:"Schemas"})]}),o.jsx("p",{className:"ref-section-subtext color-tertiary",children:"Reusable data models defined in this specification"})]}),o.jsx("div",{className:"ref-schema-card bg-ground border-secondary-1px dss-mt-20",children:_===fe?o.jsxs("div",{className:"ref-schema-layout br-tr-8px br-tl-8px border-bottom-secondary-1px",children:[o.jsxs("div",{className:"ref-schema-top-toolbar border-bottom-secondary-1px w-100",children:[o.jsx("div",{className:"ref-schema-left-title-tab dss-p-8 border-right-secondary-1px",children:o.jsxs("span",{className:"ref-schema-sidebar-header__icon dss-gap-6 flex-rows vt-center",children:[o.jsx(Kw,{size:r.sm,className:"color-04"}),S]})}),o.jsxs("div",{className:"ref-schema-top-toolbar__left",children:[N,C]})]}),o.jsxs("div",{className:"ref-schema-body",children:[b&&o.jsx("div",{className:"ref-schema-sidebar ref-schema-sidebar--desktop border-right-secondary-1px",children:o.jsx("div",{className:"ref-schema-sidebar-tree noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:M})})}),o.jsxs("div",{className:Qy("ref-schema-main-panel",!b&&"ref-schema-main-panel--full"),children:[g.length>0&&o.jsx("div",{className:"ref-schema-breadcrumbs-row bg-ground border-bottom-secondary-1px",children:o.jsxs("div",{className:"ref-schema-breadcrumbs flex-rows vt-center noscrollbar",children:[o.jsx("div",{className:"flex-center flex-shrink-0",children:o.jsx(iw,{className:"color-04",size:r.md})}),g.map(function(e,t){return o.jsxs("div",{className:"flex-rows vt-center dss-gap-4 flex-shrink-0",children:[t>0&&o.jsx(lw,{size:r.xs,className:"color-04"}),o.jsx("div",{className:"ref-ui-12 fw-500 color-secondary",children:e.name})]},e.traversePath)})]})}),b&&o.jsx("div",{className:"ref-schema-sidebar-tree--drawer noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:M})}),o.jsx("div",{className:"ref-schema-detail bg-step-up",children:f&&o.jsx(iX,{activeViewType:e3.VIEW,showEmptyFallback:!0,rootElement:!0,setSelectedBodyObject:function(e){return k(e,D)},traverse:null==f?void 0:f.uiData.traversePath,param:f,order:0},(null==f||null===(n=f.uiData)||void 0===n?void 0:n.keyId)||"")})]})]})]}):o.jsxs("div",{className:"ref-schema-layout br-tr-8px br-tl-8px border-bottom-secondary-1px",children:[o.jsxs("div",{className:"ref-schema-top-toolbar border-bottom-secondary-1px w-100",children:[o.jsx("div",{className:"ref-schema-left-title-tab dss-p-8 border-right-secondary-1px",children:o.jsxs("span",{className:"ref-schema-sidebar-header__icon dss-gap-6 flex-rows vt-center",children:[o.jsx(Kw,{size:r.sm,className:"color-04"}),S]})}),o.jsxs("div",{className:"ref-schema-top-toolbar__left",children:[N,C]})]}),o.jsxs("div",{className:"ref-schema-body",children:[b&&o.jsx("div",{className:"ref-schema-sidebar ref-schema-sidebar--desktop border-right-secondary-1px",children:o.jsx("div",{className:"ref-schema-sidebar-tree noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:M})})}),o.jsxs("div",{className:Qy("ref-schema-main-panel",!b&&"ref-schema-main-panel--full"),children:[b&&o.jsx("div",{className:"ref-schema-sidebar-tree--drawer noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:M})}),o.jsx("div",{className:"ref-schema-example-body color-02 bg-L3 dss-p-20",children:o.jsx(P6,{example:u.example,isDarkMode:a,emptyMessage:"No example available for this schema"})})]})]})]})})]})}var B6=p.default.memo($6),q6=[{key:"pathParams",label:"Path Parameters",icon:qw,description:"Variables in the URL path identifying specific resources."},{key:"queryParams",label:"Query Parameters",icon:Sw,description:"Query string parameters appended to the request URL."},{key:"headerParams",label:"Header Parameters",icon:gw,description:"HTTP headers sent with the request."},{key:"cookieParams",label:"Cookie Parameters",icon:yw,description:"Cookies sent with the request."},{key:"formParams",label:"Form Parameters",icon:iw,description:"Form fields sent as application/x-www-form-urlencoded or multipart data."}],U6="yaml",z6="json";function V6(e,t){if(null==e||!e.source)return"";try{return t===z6?_e(e.source):vd(e.source)||_e(e.source)}catch(e){return console.error("getOASContent err:",e),""}}function W6(e){return Z6.apply(this,arguments)}function Z6(){return Z6=Ae(ct.mark(function e(t){var n,r=arguments;return ct.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=V6(t,r.length>1&&void 0!==r[1]?r[1]:z6)){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,navigator.clipboard.writeText(n);case 2:case"end":return e.stop()}},e)})),Z6.apply(this,arguments)}function Y6(e){if(null!=e&&e.source){var t=new k6;t.file("".concat(e.name,".json"),_e(e.source)),t.file("".concat(e.name,".yaml"),vd(e.source)),t.generateAsync({type:"blob"}).then(function(t){bd({blob:t,filename:e.name,ext:"zip"})}).catch(function(e){console.error("downloadOAS err:",e)})}}var G6=[{keyId:U6,label:"YAML"},{keyId:z6,label:"JSON"}];function Q6(n){var r,i=n.isMobile,a=void 0!==i&&i,s=t.useSelector(function(e){return e.apiReference.selected.swagger},zy),c=t.useSelector(function(e){return e.libConfig.isDarkMode},zy),l=Wy(),u=Ce(e.useState(U6),2),p=u[0],d=u[1],f=Ce(e.useState(!1),2),h=f[0],m=f[1],g=e.useRef(null),y=Ce(e.useState(600),2),v=y[0],b=y[1];e.useEffect(function(){var e=g.current;if(e){var t=function(){b(Math.max(e.getBoundingClientRect().height,200))},n=new ResizeObserver(function(){t()});return n.observe(e),t(),function(){return n.disconnect()}}},[]);var w=e.useMemo(function(){return V6(s,p)},[s,p]),x=p===z6?"json":"yaml",_=c?"theme-oas":"theme-oas-light",E=e.useMemo(function(){return G6.map(function(e){return{keyId:e.keyId,onClick:function(){return d(e.keyId)},element:o.jsx("span",{className:"color-primary fs-11px fw-400",children:e.label})}})},[]),k=e.useCallback(Ae(ct.mark(function e(){return ct.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!h&&s){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,W6(s,p);case 2:m(!0),setTimeout(function(){return m(!1)},500);case 3:case"end":return e.stop()}},e)})),[s,p,h]),O=e.useCallback(function(){Y6(s)},[s]);return s?o.jsx("div",{className:Qy("ref-right-panel-tryout","ref-oas-panel","flex-col h-100 position-relative",a&&"ref-oas-panel--mobile"),children:o.jsx("div",{className:"ref-tryout-root",children:o.jsx("div",{className:"ref-tryout-panel ref-oas-tryout-panel",children:o.jsxs("div",{className:"ref-tryout-section flex-col dss-br-10 border-gray-primary-1px border-secondary-1px",children:[o.jsxs("div",{className:Qy("ref-tryout-section__header","flex-rows vt-center hz-space-between br-t-10px bg-try-out"),children:[o.jsx("p",{className:"color-text-inverse fs-12px fw-600 dss-my-0",children:"OAS"}),o.jsxs("div",{className:"ref-oas-panel__header-actions",children:[o.jsx(hN,{options:E,btnClassName:"dss-br-8 dss-px-8 dss-py-4",ddPositionClassName:"bg-L1 overflow-y catalog-dd-max-h zIndex-12",optionClassName:"color-primary fs-11px fw-400 dss-p-8",styles:{minWidth:X(80)},caretClassName:"color-text-inverse",children:o.jsx("div",{className:"color-text-inverse fs-12px fw-400",children:(null===(r=G6.find(function(e){return e.keyId===p}))||void 0===r?void 0:r.label)||"YAML"})}),o.jsx(uN,{placement:"top",tooltipOffset:8,tooltipProps:{className:"text-nowrap"},tooltipEl:o.jsx("div",{className:"fs-11px fw-500",children:h?"Copied":"Copy"}),children:o.jsx("div",{"aria-hidden":!0,onClick:k,className:"dss-p-6 color-text-inverse cursor flex-center",children:h?o.jsx(dw,{size:l.base}):o.jsx(vw,{size:l.base})})}),o.jsx(uN,{placement:"top",tooltipOffset:8,tooltipProps:{className:"text-nowrap"},tooltipEl:o.jsx("div",{className:"fs-11px fw-500",children:"Download"}),children:o.jsx("div",{"aria-hidden":!0,onClick:O,className:"dss-p-6 color-text-inverse cursor flex-center",children:o.jsx(ww,{size:l.base})})})]})]}),o.jsx("div",{className:Qy("ref-tryout-section__body","ref-oas-panel__body","br-b-8px"),ref:g,children:o.jsx("div",{className:"ref-oas-editor",children:o.jsx(M_,{width:"100%",height:v,language:x,theme:_,useOasTheme:!0,value:w,autoGrow:!1,options:{readOnly:!0,lineNumbers:"on",lineDecorationsWidth:0,scrollBeyondLastLine:!1,minimap:{enabled:!1},wordWrap:"off",scrollbar:{vertical:"auto",horizontal:"auto"}}},p)})})]})})})}):null}function K6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function X6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K6(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var J6=p.default.memo(function(e){var t=e.label;e.infoMessage;var n=e.textProps,r=e.setExampleScheme,i=e.exampleScheme,a=e.examples;return o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-12 hz-space-between","Response Body"===t?i===de?"dss-pb-12":"dss-pb-0":"Host"===t?"dss-mt-12 dss-mb-8":"Responses"===t?"dss-mt-24 dss-mb-16":"dss-mt-24"),children:[o.jsx("div",{className:Qy("flex-rows vt-center dss-gap-12"),children:o.jsx("div",{className:Qy(n.className||""),children:t})}),a&&o.jsx(T6,{exampleScheme:i,onSelectExample:function(){return r(de)},onSelectSchema:function(){return r(fe)}})]})});J6.propTypes={label:tb.string.isRequired,infoMessage:tb.string,textProps:tb.shape({className:tb.string}),examples:tb.bool,setExampleScheme:tb.func.isRequired,exampleScheme:tb.string},J6.defaultProps={infoMessage:"",textProps:{className:"ref-section-heading color-secondary"},examples:!1,exampleScheme:"Example"};var e3={VIEW:"VIEW",TRYOUT:"TRYOUT",OAS:"OAS"},t3=E(E(E({},e3.VIEW,"View"),e3.TRYOUT,"Tryout"),e3.OAS,"OAS");function n3(n){var r,i=n.bottomBar,a=n.RightPanel,s=n.RightSidenav,c=n.FROM,l=n.isLoggedIn,u=n.showOAS,d=void 0!==u&&u,f=n.hideRightPanel,h=void 0!==f&&f,m=n.disableTryout,g=void 0!==m&&m,y=e.useCallback(function(){return g?d?e3.OAS:e3.VIEW:d?e3.TRYOUT:e3.VIEW},[g,d]),v=Ce(e.useState(y),2),b=v[0],w=v[1];e.useEffect(function(){w(y())},[y]);var x=t.useSelector(function(e){return e.apiReference.selected.operation},zy),_=t.useSelector(function(e){return e.apiReference.selected.swagger},zy),E=t.useSelector(function(e){return e.apiReference.selected.loading},zy),k=t.useSelector(function(e){return e.apiReference.selected.headerParams},zy),O=t.useSelector(function(e){return e.apiReference.selected.pathParams},zy),A=t.useSelector(function(e){return e.apiReference.selected.queryParams},zy),D=t.useSelector(function(e){return e.apiReference.selected.cookieParams},zy),M=t.useSelector(function(e){return e.apiReference.selected.formParams},zy),C=t.useSelector(function(e){return e.libConfig.currentPKG},zy),S=t.useSelector(function(e){return e.graphql.view},zy),N=t.useSelector(function(e){return e.apiReference.rightSidenavExpanded},zy);t.useSelector(function(e){return e.apiReference.selected.request},zy);var j=t.useSelector(function(e){return e.apiReference.selected.request.schema},zy),T=t.useSelector(function(e){return e.apiReference.selected.responses},zy),P=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),I=t.useSelector(function(e){return e.libConfig.isLargeDevice},zy),R=t.useSelector(function(e){return e.libConfig.screenSize},zy),L=e.useMemo(function(){return P?"ref-layout--mobile":"tablet-device"===R?"ref-layout--tablet":"ref-layout--desktop"},[P,R]),F=Wy(),H=Ce(e.useState(null),2),$=H[0],B=H[1],z=Ce(e.useState(!1),2);z[0],z[1],e.useMemo(function(){return o.jsx(vw,{size:F.base})},[F.base]),e.useMemo(function(){return o.jsx(dw,{size:F.base})},[F.base]),e.useMemo(function(){return o.jsx(bw,{size:F.base})},[F.base]);var V=Ce(Ny(),1)[0],W=Ce(e.useState([]),2),Z=W[0],Y=W[1],Q=Ce(e.useState(!1),2),K=Q[0];Q[1];var J=e.useRef(null),ee=Ce(e.useState(!1),2),te=ee[0],ne=ee[1],re=e.useCallback(function(){var e=J.current;e&&ne(e.scrollTop>0)},[]),oe=e.useMemo(function(){return{pathParams:O,queryParams:A,headerParams:k,formParams:M,cookieParams:D}},[k,O,A,M,D]),ie=e.useMemo(function(){return!!T.filter(function(e){return e.name}).length},[T]),ae=!h&&(!g||d),se=!g&&!d,le=!g&&d,ue=g&&d,pe=se||le,de=e.useMemo(function(){return le?[e3.TRYOUT,e3.OAS]:se?[e3.VIEW,e3.TRYOUT]:[]},[le,se]),fe=e.useMemo(function(){return g||d&&b===e3.OAS||b===e3.OAS?e3.VIEW:b},[g,d,b]),he=e.useMemo(function(){return fe===e3.VIEW},[fe]),me=d&&b===e3.OAS||ue,ge=e.useMemo(function(){return i&&p.default.isValidElement(i)?i:null},[i]);e.useEffect(function(){var e=document.getElementById("center-content-lg"),t=document.getElementById("right-panel-lg"),n=document.getElementById("body-layout-sm");e&&e.scrollTo({behavior:"smooth",top:0}),t&&t.scrollTo({behavior:"smooth",top:0}),n&&n.scrollTo({behavior:"smooth",top:0}),J.current&&(J.current.scrollTop=0,ne(!1))},[x]),e.useEffect(function(){var e=J.current;if(e&&!P)return re(),e.addEventListener("scroll",re,{passive:!0}),function(){return e.removeEventListener("scroll",re)}},[x,P,re]);var ye=function(){var e=Ae(ct.mark(function e(t){var n;return ct.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,V({swaggerId:t});case 1:(n=e.sent).error?console.error("Error:",n.error):Y(n.data);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),ve=e.useCallback(function(){if(C===q.WORKFLOWS)return null;if(C===q.GRAPHQL&&S===ce.EXPLORER)return null;if(a){var e=C===q.GUIDES?o.jsx("div",{style:{width:"30%"},id:"right-panel-lg",className:Qy("overflow-y noscrollbar h-100 w-100"),children:o.jsx(a,X6({},n))}):o.jsx("div",{id:"right-panel-lg",className:Qy("ref-right-panel","h-100 w-100"),children:o.jsx(a,X6({},n))});return K?N?e:o.jsx("div",{className:Qy("right-sidenav"),children:o.jsx(s,X6({},n))}):e}return null},[a,s,C,S,K,N]);if(e.useEffect(function(){_&&!E&&(null==n?void 0:n.moduleType)!==N6.EXTERNAL&&ye(_.swaggerId)},[_]),E)return o.jsx("div",{className:Qy("h-100 w-100"),children:o.jsx(E_,{size:"md",message:"Loading Document"})});if(!x)return o.jsx("div",{className:Qy("h-100 w-100 color-00 fs-14px flex-center"),children:o.jsx(JS,{message:"No Resource Selected"})});pd()&&(window.location.pathname.includes(U.OPEN_API)||n.moduleType);var be=function(e){if("Copy OAS"===e)W6(_).then(function(){B(!0),setTimeout(function(){return B(!1)},500)});else if("Open in ChatGPT"===e){var t="Read ".concat(window.location.href," and explain.");window.open("https://chatgpt.com/?q=".concat(encodeURIComponent(t)),"_blank")}else"Download OAS"===e&&_&&Y6(_)},we=[{keyId:"copy-oas",onClick:function(){return be("Copy OAS")},element:o.jsxs("div",{className:"flex-rows vt-center dss-gap-8",children:[$?o.jsx(dw,{size:F.base,className:"color-secondary"}):o.jsx(vw,{size:F.base,className:"color-secondary"}),o.jsx("span",{className:"color-secondary fs-12px fw-500",children:$?"Copied":"Copy OAS"})]})},{keyId:"download-oas",onClick:function(){return be("Download OAS")},element:o.jsxs("div",{className:"flex-rows vt-center dss-gap-8",children:[o.jsx(ww,{size:F.base,className:"color-secondary"}),o.jsx("span",{className:"color-secondary fs-12px fw-500",children:"Download OAS"})]})}];return o.jsx("div",{ref:P?null:J,className:Qy("reference-framer text-size-md flex-col overflow-y noscrollbar",L,he?"ref-mode-view":"ref-mode-tryout",d&&"ref-show-oas",!ae&&"ref-hide-right-panel",!P&&"ref-page-scroll h-100",te&&"ref-page-scrolled"),children:o.jsxs("div",{className:Qy("ref-page-inner flex-col w-100"),children:[o.jsxs("div",{className:Qy("ref-hero-block-top"),children:[o.jsx("div",{className:Qy("ref-breadcrumb-row w-100"),children:[_.name,x.swaggerVersion?"Version ".concat(x.swaggerVersion):"",x.api.summary||x.api.operationId||x.__listTitle].filter(function(e){return e}).map(function(e,t){return o.jsxs("div",{className:Qy("flex-rows vt-center max-w-50"),children:[o.jsx("p",{className:Qy("ref-breadcrumb color-tertiary text-truncate-1",0===t?"dss-pr-4":"dss-px-4"),title:e,children:e.toUpperCase()}),t<1&&o.jsx(lw,{size:F.sm,className:Qy("color-disabled")})]},"".concat(e,"-").concat(t))})}),o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-10 flex-wrap"),children:[o.jsx("div",{id:"center-title-bar",className:Qy("ref-title type-heading-title text-break color-primary"),children:x.summary||x.api.operationId||x.description||""}),!0===(null===(r=x.api)||void 0===r?void 0:r.deprecated)||!0===x.deprecated?o.jsxs("div",{className:Qy("ref-deprecated-chip"),title:"This operation is deprecated and may be removed in a future version.",children:[o.jsx(Xw,{size:F.sm,weight:"fill"}),o.jsx("span",{children:"Deprecated"})]}):null]}),x.api&&x.api.description?o.jsx(tC,{className:Qy("ref-description type-body-l color-tertiary reference-markdown"),remarkPlugins:[GS],children:x.api.description||""}):null,o.jsxs("div",{className:Qy("ref-hero-top-block-bottom"),children:[o.jsxs("div",{className:Qy("ref-hero-top-block-bottom-left"),children:[o.jsx(KS,{textProps:{className:"ref-http-method-badge"},text:x.apiMethod}),o.jsx("div",{className:Qy("ref-endpoint-path color-tertiary flex-fill text-break-all"),title:x.endpoint||"",children:o.jsx("p",{className:"dss-my-0",children:x.endpoint||""})}),!d&&o.jsx("div",{className:"ref-hero-actions",children:o.jsx(hN,{options:we,btnClassName:"",ddPositionClassName:"bg-ground zIndex-12 position-absolute catalog-dd-max-h overflow-y",optionClassName:"color-primary dss-p-8",styles:{minWidth:X(160)},caretClassName:"color-secondary",children:o.jsxs("div",{className:"flex-rows vt-center dss-gap-6",children:[o.jsx(Uw,{size:F.base,className:"color-tertiary"}),o.jsx("p",{className:"ref-hero-top-block-bottom-middle-text color-secondary",children:"Actions"})]})})})]}),pe&&o.jsx("div",{className:"ref-hero-top-block-bottom-right bg-L3 border-secondary-1px",children:de.map(function(e){return o.jsx("div",{className:"ref-view-toggle cursor flex-center color-primary ".concat(b===e?"bg-L1 border-secondary-1px":""),onClick:function(){return w(e)},children:t3[e]},e)})})]}),o.jsx("div",{className:"ref-hero-top-line bg-gray-l2"})]}),o.jsxs("div",{className:"ref-doc-container",children:[o.jsxs("div",{className:Qy("ref-doc-column flex-col min-w-0"),children:[o.jsxs("div",{className:"ref-host-card border-secondary-1px bg-ground",children:[o.jsxs("div",{className:"ref-host-card-header",children:[o.jsxs("div",{className:"ref-host-card-title-row",children:[o.jsx(xw,{size:F.xl,className:"color-00 flex-shrink-0",weight:"duotone"}),o.jsx("div",{className:"ref-host-heading color-primary",children:"Host"})]}),o.jsx("p",{className:"ref-section-subtext color-tertiary",children:"Select the host environment"})]}),o.jsx("div",{className:"ref-host-card-select bg-L1 border-secondary-1px",children:o.jsx(cN,{FROM:c,isLoggedIn:l})})]}),o.jsxs("div",{className:Qy("flex-col ref-doc-sections"),children:[q6.filter(function(e){var t=e.key;return oe[t]&&oe[t].properties&&oe[t].properties.length}).map(function(e){var t=e.key,n=e.label,r=e.icon,i=e.description;return o.jsxs("div",{className:"ref-section-block",children:[o.jsxs("div",{className:"ref-section-header border-bottom-secondary-1px",children:[o.jsxs("div",{className:"ref-section-header-title-row",children:[o.jsx(r,{size:F.section,className:"color-00 flex-shrink-0",weight:"duotone"}),o.jsx("p",{className:"ref-section-heading color-primary",children:n})]}),i?o.jsx("p",{className:"ref-section-subtext color-tertiary",children:i}):null]}),o.jsx(sX,{activeViewType:fe,properties:oe[t].properties,traverse:"".concat(t).concat(G,"properties"),showGap:!1})]},t)}),j?o.jsx(I6,{activeViewType:fe,FROM:c}):null,ie&&o.jsx(L6,{activeViewType:fe,FROM:c}),o.jsx(B6,{}),(null==n?void 0:n.moduleType)!==N6.EXTERNAL&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:Qy(I&&"dss-h-28",P&&"dss-h-8")}),Z&&Z.length>0&&o.jsx(D6,{swaggerGuides:Z}),o.jsx(yN,{})]}),ge,me&&P&&o.jsx(Q6,{isMobile:!0})]})]}),ae&&!P&&o.jsx("div",{className:Qy("ref-right-panel-tryout flex-col min-w-0",(d||ue)&&"h-100"),children:me?o.jsx("div",{id:"right-panel-lg",className:Qy("ref-right-panel","h-100 w-100"),children:o.jsx(Q6,{})}):ve(n)})]})]})})}var r3=["node"];function o3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o3(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a3(e){var t=(e.method||"").toUpperCase();return o.jsx("div",{className:Qy("apiMethod",t,"w-fit-content flex-center"),style:{color:"#fff",letterSpacing:"0.4px",lineHeight:"4px",flexShrink:0},children:o.jsx("span",{style:{fontSize:"10px",fontWeight:700},children:t})})}function s3(e){var t=e.path,n=e.method,r=e.summary,i=e.onClick;return o.jsxs("div",{className:Qy("dss-px-16 dss-py-12 dss-br-8 border-00-1px flex-col bg-L1 cursor","hover-bg-gray-l2"),style:{gap:4},onClick:i,children:[o.jsx("p",{className:"color-primary fs-14px fw-300 text-truncate-1 w-100",title:r,style:{lineHeight:"20px"},children:r||"—"}),o.jsxs("div",{className:"flex-rows vt-center",style:{gap:4},children:[o.jsx(a3,{method:n}),o.jsx("p",{className:"color-tertiary fs-12px fw-300 text-truncate-1 font-geist-mono",title:t,style:{lineHeight:"15px",letterSpacing:"0.32px"},children:t})]})]})}function c3(n){var r,i,a,s=n.onEndpointSelect,c=t.useSelector(function(e){return e.apiReference.selected.swagger},zy),l=t.useSelector(function(e){return e.apiReference.swaggers},zy),u=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),p=c||l&&l[0],d=e.useMemo(function(){var e;return null!==(e=null==p?void 0:p.info)&&void 0!==e?e:{}},[p]),f=e.useMemo(function(){return p?p.operationsFlatten&&p.operationsFlatten.length>0?function(e){if(!e)return[];var t=e.operationsFlatten||[],n=new Map;return t.forEach(function(e){var t=e.endpoint||"";n.has(t)||n.set(t,[]),n.get(t).push({method:(e.apiMethod||"").toUpperCase(),summary:e.summary||e.__listTitle||e.name||"",description:e.description||"",path:t})}),Array.from(n.entries()).map(function(e){var t=Ce(e,2);return{path:t[0],methods:t[1]}})}(p):p.source?function(e){if(!e)return[];try{var t=("string"==typeof e?JSON.parse(e):e).paths||{},n=["get","post","put","delete","patch","options","head","trace"],r=[];return Object.entries(t).forEach(function(e){var t=Ce(e,2),o=t[0],i=t[1],a=[];n.forEach(function(e){if(i[e]){var t=i[e];a.push({method:e.toUpperCase(),summary:t.summary||t.operationId||"",description:t.description||"",path:o})}}),a.length>0&&r.push({path:o,methods:a})}),r}catch(e){return[]}}(p.source):[]:[]},[p]),h=e.useMemo(function(){return f.flatMap(function(e){var t=e.path;return e.methods.map(function(e){return i3(i3({},e),{},{path:t})})})},[f]),m=e.useMemo(function(){return{a:function(e){e.node;var t=lg(e,r3);return o.jsx("a",i3(i3({},t),{},{target:"_blank",rel:"noopener noreferrer"}))}}},[]);if(!p)return o.jsx("div",{className:"flex-center h-100 w-100",children:o.jsx("p",{className:"fs-14px fw-400 color-tertiary",children:"No API reference loaded."})});var g=u?1:2;return o.jsxs("div",{className:"flex-col w-100",style:{padding:u?"24px 16px":"40px 80px",maxWidth:900},children:[o.jsx("p",{className:"color-primary fw-500 font-baskerville",style:{fontSize:u?24:28,letterSpacing:"0.28px",wordBreak:"break-word",lineHeight:"1.3",paddingBottom:4},children:d.title||"API Reference"}),d.description?o.jsx("div",{className:"color-primary fw-300 reference-markdown",style:{padding:"8px 0",marginBottom:20,fontSize:14,lineHeight:"1.6"},children:o.jsx(tC,{remarkPlugins:[GS],components:m,children:d.description||""})}):null,h.length>0&&o.jsx("div",{style:{display:"grid",rowGap:10,columnGap:10,alignSelf:"stretch",gridTemplateColumns:"repeat(".concat(g,", minmax(0, 1fr))"),marginTop:16,marginBottom:20},children:h.map(function(e,t){var n=e.path,r=e.method,i=e.summary;return o.jsx(s3,{path:n,method:r,summary:i,onClick:function(){return s&&s({path:n,method:r})}},"".concat(t,"-").concat(n,"-").concat(r))})}),d.contact||d.version?o.jsx("div",{className:"flex-col",style:{marginTop:4},children:[{label:"Contact",value:null===(r=d.contact)||void 0===r?void 0:r.name},{label:"Email",value:null===(i=d.contact)||void 0===i?void 0:i.email},{label:"URL",value:null===(a=d.contact)||void 0===a?void 0:a.url},{label:"Version",value:d.version}].filter(function(e){return e.value}).map(function(e,t,n){return o.jsxs("div",{className:Qy("dss-px-16 dss-py-6 border-bottom-00-1px flex-rows vt-center w-100",0===t?"border-top-00-1px":""),style:{height:28},children:[o.jsx("div",{className:"w-50 flex-rows vt-center hz-flex-start color-disabled fs-12px fw-400",children:e.label}),o.jsx("p",{className:"w-50 flex-rows vt-center hz-flex-start color-primary fs-12px fw-400 text-truncate-1",title:e.value,children:e.value})]},e.label)})}):null]})}var l3=p.default.memo(c3,zy);function u3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u3(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d3(n){var r=t.useDispatch(),i=t.useSelector(function(e){return e.apiReference.view},zy),a=t.useSelector(function(e){return e.apiReference.swaggers},zy),s=t.useSelector(function(e){return e.apiReference.selected.swagger},zy),c=e.useCallback(function(e){var t=e.path,n=e.method,o=null!=s?s:null==a?void 0:a[0];if(o){var i={method:n,path:t},c=o.operationsFlatten.find(function(e){return fd(e,i)});c&&r(ey({swagger:o,operation:p3(p3({},c),{},{keyId:Ee()})})),r(Gg(ae.RESOURCE))}},[r,a,s]);return i===ae.INTRO?o.jsx(Tk,p3({},n)):i===ae.OVERVIEW?o.jsx("div",{className:"overflow-y noscrollbar h-100 w-100",children:o.jsx(l3,{onEndpointSelect:c})}):o.jsx(n3,p3({},n))}var f3=p.default.memo(d3);function h3(t){var n=t.initialValue,r=t.debounceDelay,i=t.inputProps,a=Wy(),s=Ce(e.useState(""),2),c=s[0],l=s[1];e.useEffect(function(){c!=n&&l(n)},[n]);var u=e.useCallback(function(e){l(e.target.value)},[]);return kk(e.useCallback(function(){i.onChange&&i.onChange(c)},[c]),r,[c]),o.jsxs("div",{className:Qy("search-container flex-rows vt-center dss-gap-6 dss-px-12 dss-br-8 dss-h-32"),children:[o.jsx(Tw,{size:a.base,className:Qy("color-secondary")}),o.jsx("input",{type:"text",value:c,placeholder:i.placeholder,style:{background:"transparent",width:"100%",border:0,outline:0},onChange:u,className:Qy(i.className)})]})}h3.propTypes={initialValue:tb.string,debounceDelay:tb.number,inputProps:tb.shape({className:tb.string,placeholder:tb.string,onChange:tb.func.isRequired})},h3.defaultProps={initialValue:"",debounceDelay:1e3,inputProps:{className:"",placeholder:"",onChange:function(){}}};var m3=p.default.memo(h3,zy);function g3(t){var n=t.name,r=t.expanded,i=t.onClick,a=t.onClickIcon,s=t.containerHeight,c=t.iconContainerClassName,l=t.textColor,u=t.textFontSize,p=t.textFontWeight,d=t.textClassName,f=t.onlyText,h=t.isLink,m=t.isGroup,g=Wy(),y=e.useCallback(function(){m?(a&&a(),i&&i()):i&&i()},[m,i,a]);return o.jsxs("div",{"aria-hidden":!0,onClick:y,className:Qy(s,"flex-rows vt-center dss-gap-4","cursor"),children:[f?h?o.jsx(ArrowUpRight,{size:g.md,className:"color-disabled"}):o.jsx("div",{className:"dss-w-15"}):o.jsx("div",{"aria-hidden":!0,className:Qy("flex-center",c||"color-disabled"),children:r?o.jsx(pw,{size:g.md}):o.jsx(cw,{size:g.md})}),o.jsx("div",{className:Qy(l||"color-tertiary",u||"fs-14px",p||"fw-400","text-truncate-1",d,"lh-150 w--15px"),title:n,children:n})]})}g3.propTypes={name:tb.string.isRequired,expanded:tb.bool.isRequired,onClick:tb.func,onClickIcon:tb.func,containerHeight:tb.string,iconContainerClassName:tb.string,onlyText:tb.bool,textFontWeight:tb.string,textFontSize:tb.string,textColor:tb.string,textClassName:tb.string,isGroup:tb.bool},g3.defaultProps={onClick:null,onClickIcon:null,containerHeight:"dss-h-34",iconContainerClassName:"",onlyText:!1,textFontWeight:"",textFontSize:"",textColor:"",textClassName:"",isGroup:!1};var y3=p.default.memo(g3);function v3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v3(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w3(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return x3(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x3(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function x3(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var _3=p.default.memo(function(n){var r=n.guideId,i=n.pages,a=n.isChild,s=t.useDispatch(),c=t.useSelector(function(e){return e.libConfig.currentPage},zy),l=t.useSelector(function(e){return e.guides.selectedDocument.documentId},zy),u=t.useSelector(function(e){return e.guides.selectedDocument.guideId},zy),p=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),d=Ce(Hy(),1)[0],f=t.useSelector(function(e){return e.guides.guides}),h=t.useSelector(function(e){return e.guides.expandedId},zy);var m=e.useCallback(function(e){var t=e.page;if("document"===t.type){var n={pathArgs:{id:t.document},otherArgs:{title:t.title,guideId:r,pageId:t.id,description:t.description}};if(d(n),c===q.WORKFLOWS&&(s(eg(se.PORTFOLIO_GUIDES)),s(tg())),c===q.GRAPHQL&&(s(yg(ce.GUIDE)),s(vg())),p&&s(ag()),c===q.GUIDES){var o=f.filter(function(e){return e.id===r}),i=function(e,t){var n=[];return function e(r,o){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],s=w3(r);try{for(s.s();!(i=s.n()).done;){var c=i.value;console.log("pages",c.slug,t);var l=[].concat(lt(a),[c]);if(c.slug===o)return console.log("inside if"),n.push(l),console.log("breadcrumb11",n),!0;if(c.pages&&c.pages.length>0&&e(c.pages,o,l))return!0}}catch(e){s.e(e)}finally{s.f()}return!1}(e,t),n}(o[0].versions[0].pages,t.slug);i.length>0&&s(ef(i[0])),s(Xd(o[0]))}}"link"===t.type&&pd()&&window.open(t.url,"_blank")},[p,c]),g=e.useCallback(function(e){var t=e.page;s(Wd({guideId:r,pageId:t.id})),s(nf({guideId:r,pageId:t.id}))},[]);return o.jsx("div",{className:Qy("flex-col dss-gap-2 slide-from-top-400"),children:i.map(function(e){return o.jsxs(o.Fragment,{children:[o.jsxs("div",{id:e.id,className:Qy(u===r&&l===e.document?"bg-info-00":"hover-bg-gray-l2 ","dss-br-8 dss-py-4 dss-pr-12 dss-pl-16 position-relative"),children:[u===r&&l===e.document?o.jsx(Aw,{className:"bg-stroke-info-00 position-absolute dss-br-4",style:{left:6,bottom:6,width:2}}):null,o.jsx(y3,{name:e.title,isGroup:"document"===e.type&&e.pages&&e.pages.length||"group"===e.type,expanded:h.pageId===e.id,isLink:"link"===e.type,onClick:function(){return m({page:e})},onClickIcon:function(){return g({page:e})},onlyText:!e.pages||!e.pages.length,textFontSize:"fs-14px",textClassName:"lh-150 ".concat("link"===e.type&&"hover-link"),textColor:u===r&&l===e.document?"color-primary":"color-tertiary",textFontWeight:u===r&&l===e.document?"":"fw-400",containerHeight:"".concat(a?"dss-pl-16":""," ").concat(u===r&&l===e.document&&"")},e.id)]},e.id),h.pageId===e.id&&e.pages&&e.pages.length&&o.jsx(_3,{guideId:r,pages:e.pages,isChild:!0})]})})})},zy);function E3(n){var r=n.fromRef,i=n.isSinglePage,a=n.guides,s=n.titleFontWeight,c=n.titleFontSize,l=n.titleColor,u=n.titleClassName,p=n.isChild,d=void 0!==p&&p,f=n.currentVersionId;n.toggle,n.selectedSearchGuide;var h=Wy(),m=t.useDispatch(),g=t.useSelector(function(e){return e.libConfig.currentPage},zy),y=t.useSelector(function(e){return e.guides.listLoading},zy),v=t.useSelector(function(e){return e.apiReference.listLoading},zy);t.useSelector(function(e){return e.guides.selectedDocument.documentId},zy);var b=t.useSelector(function(e){return e.guides.selectedDocument.guideId},zy),w=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),x=Ce(Hy(),1)[0],_=t.useSelector(function(e){return e.guides.guides},zy),E=t.useSelector(function(e){return e.apiReference.metaSwaggers},zy),k=Ce(_y(),2),O=k[0],A=k[1].isFetching,D=Ce(xy(),2),M=D[0],C=D[1].isFetching,S=Ce(Ey(),1)[0],N=t.useSelector(function(e){return e.guides.selectedCategory}),j=t.useSelector(function(e){return e.libConfig}).userSetting;e.useEffect(function(){m(Yg({prop:"listLoading",value:C||A}))},[C||A]);var T=function(){var e=Ae(ct.mark(function e(){var t,n,r;return ct.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,O();case 1:return t=e.sent,n=t.data,r=n.userGroups?n.userGroups:[],pd()&&window.location.pathname.includes(U.OPEN_API)&&(r=[j.openApiPartner]),e.next=2,M({queryArgs:{status:"Publish",partnerNames:r}});case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();e.useEffect(function(){T()},[]);var P=e.useCallback(function(e){var t=e.guide;if(i){var n=t.currentVersion.pages[0];x({pathArgs:{id:n.document},otherArgs:d?{title:t.name,guideId:t.id,currentVersionId:t.currentVersion.id}:{title:t.name,guideId:t.id}}),g===q.API_ENDPOINTS&&m(Gg(ae.INTRO)),g===q.WORKFLOWS&&(m(eg(se.INTRO)),m(tg())),g===q.GRAPHQL&&(m(yg(ce.INTRO)),m(vg())),w&&m(ag())}else m(Zd(d?{guideId:t.id,currentVersionId:t.currentVersion.id}:{guideId:t.id}))},[g,w]);if(e.useCallback(function(e){var t=e.guide;return b===t.id},[b]),y)return i||[q.WORKFLOWS,q.GRAPHQL].includes(g)?null:o.jsx(E_,{message:"Loading Guides"});if(v&&g===q.GUIDES)return o.jsx("div",{className:Qy("h-100"),children:o.jsx(E_,{size:"md",message:"Loading"})});if(!a||!a.length)return i||[q.WORKFLOWS,q.GRAPHQL].includes(g)?null:o.jsx("div",{className:Qy("h-100 flex-center"),children:o.jsx(JS,{message:"No Guides Found"})});var I=function(e){var t=E.filter(function(t){return t.swaggerId===e.swaggerId});!function(e){var t=e.swagger,n=e.operation,r=new ke({swagger:t,resource:n}).toObject();S(r),m(Gg(ae.RESOURCE)),w&&m(ag()),_d(r),m(uy({uuid:t.versionData[0].uuid,expanded:!0},{uuid:t.uuid,expanded:!0}))}({swagger:t[0],operation:t[0].currentVersion.resources[0]})},R=a.reduce(function(e,t){return e[t.category]||(e[t.category]=[]),e[t.category].push(t),e},{});return o.jsx("div",{className:Qy("flex-col dss-gap-16 overflow-y noscrollbar",r?"":"h-100"),style:{overflowX:"hidden"},children:Object.entries(R).map(function(e){var t=Ce(e,2),n=t[0],r=t[1];return N&&N!==n?null:o.jsxs("div",{className:"flex-col dss-gap-2",children:[o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-12",N?"dss-py-8 dss-px-12 dss-br-24 bg-gray-l3 border-gray-primary-1px dss-mb-10":"dss-p-8 border-bottom-gray-primary-1px dss-mb-8"),style:{width:N?"fit-content":"100%",boxSizing:"border-box"},children:[o.jsx("div",{className:Qy("color-primary text-transform-uppercase fs-12px fw-600 lh-140"),children:n}),N?o.jsx(tx,{className:"color-primary cursor",size:h.sm,onClick:function(){return m(Jd(null))}}):null]}),r.map(function(e){var t=!1;if(d)ye(_).forEach(function(n){n.id===e.id&&n.versions.forEach(function(e){e.id===f&&(t=e.expand)})});else{var n=ye(_).filter(function(t){return t.id===e.id});n=n.length>0?n[0]:null,t=n?n.expand:e.expand}return o.jsxs("div",{id:e.id,className:Qy("flex-col dss-gap-2"),children:[o.jsx(y3,{name:d?"Version ".concat(e.currentVersion.title," (").concat(e.currentVersion.tag,")"):e.name,expanded:t,onClick:function(){return P({guide:e})},textFontWeight:s||"fw-400",textColor:b===e.id?"color-link-00":l||"",iconContainerClassName:b===e.id?"color-link-00":"",textFontSize:c||"",textClassName:u||"",onlyText:i,containerHeight:d?"dss-pl-16 dss-py-2 dss-pr-12":Qy("dss-py-4 dss-pr-12 hover-bg-gray-l3 dss-br-8")}),e.versions.length>1&&g!==q.API_ENDPOINTS&&t?o.jsx(o.Fragment,{children:e.versions.map(function(t){return o.jsx(E3,{isChild:!0,guides:[b3(b3({},e),{},{currentVersion:ye(t),versions:[],isChild:!0})],currentVersionId:t.id,titleFontWeight:"fw-400",titleFontSize:"fs-14px",titleColor:"color-tertiary"},t.id)})}):g!==q.API_ENDPOINTS&&t&&e.currentVersion.pages.length?o.jsx(_3,{guideId:e.id,pages:e.currentVersion.pages}):null,e.versions.length&&e.versions[0].swagger&&t&&o.jsxs("div",{className:Qy("flex-rows vt-center hz-space-between hover-bg-gray-l2 dss-br-8 cursor dss-pl-16 dss-py-4 dss-pr-12"),onClick:function(){return I(e.versions[0].swagger)},children:[o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-4"),children:[o.jsx(ow,{className:"color-disabled",size:h.md}),o.jsx("p",{className:"color-tertiary fs-14px fw-400 dss-my-0 lh-150",children:e.versions[0].swagger.swaggerName})]}),o.jsx("p",{className:Qy("color-http-method-get fw-600 fs-11px dss-my-0"),children:"OAS 3.0"})]})]},e.id)})]},n)})})}_3.propTypes={pages:tb.any.isRequired,guideId:tb.string.isRequired},E3.propTypes={isSinglePage:tb.bool,guides:tb.any.isRequired,titleFontWeight:tb.string,titleFontSize:tb.string,titleColor:tb.string,titleClassName:tb.string},E3.defaultProps={isSinglePage:!1,titleFontWeight:"",titleFontSize:"",titleColor:"",titleClassName:""};var k3=p.default.memo(E3,zy);function O3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O3(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var D3=function(){return o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 256 256",fill:"currentColor",children:o.jsx("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"})})},M3=function(){return o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 256 256",fill:"currentColor",children:o.jsx("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"})})},C3=function(){return o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 256 256",fill:"currentColor",children:o.jsx("path",{d:"M228,128a8,8,0,0,1-8,8H36a8,8,0,0,1,0-16H220A8,8,0,0,1,228,128ZM36,72H220a8,8,0,0,0,0-16H36a8,8,0,0,0,0,16ZM220,184H36a8,8,0,0,0,0,16H220a8,8,0,0,0,0-16Z"})})};function S3(e){var t=(e.method||"").toUpperCase();return o.jsx("div",{className:Qy("apiMethod",t,"w-fit-content flex-center"),style:{color:"#fff",letterSpacing:"0.4px",lineHeight:"16px",flexShrink:0},children:o.jsx("span",{style:{fontSize:"10px",fontWeight:700},children:t})})}function N3(e){var t=e.op,n=e.isSelected,r=e.onClick,i=t.summary||t.__listTitle||t.name||t.endpoint||t.path||"",a=(t.apiMethod||t.method||"").toUpperCase();return o.jsxs("div",{onClick:r,className:Qy("flex-rows vt-center cursor",n?"bg-L2":"hover-bg-gray-l2"),style:{borderLeft:n?"2px solid var(--brand-color, #0265DC)":"2px solid transparent",padding:"6px 16px 6px 16px",minHeight:30,gap:8},children:[o.jsx("div",{className:"flex-rows vt-center",style:{gap:6,flex:1,minWidth:0},children:o.jsx("p",{className:Qy("fs-14px text-truncate-1 w-100",n?"fw-500 color-primary":"fw-400 color-tertiary"),title:i,style:{lineHeight:"20px",margin:0},children:i})}),o.jsx(S3,{method:a})]})}function j3(t){var n=t.path,r=t.methods,i=t.selectedOperation,a=((null==i?void 0:i.method)||(null==i?void 0:i.apiMethod)||"").toUpperCase(),s=(null==i?void 0:i.path)||(null==i?void 0:i.endpoint)||"",c=r.some(function(e){var t=e.endpoint||e.path||"",n=(e.apiMethod||e.method||"").toUpperCase();return t===s&&n===a}),l=Ce(e.useState(c),2),u=l[0],p=l[1];return e.useEffect(function(){c&&!u&&p(!0)},[s,a]),o.jsxs("div",{children:[o.jsxs("div",{className:Qy("flex-rows vt-center cursor hover-bg-gray-l2"),style:{borderLeft:"2px solid transparent",padding:"2px 16px",minHeight:30,gap:8},onClick:function(){return p(function(e){return!e})},children:[o.jsx("span",{className:"color-tertiary",style:{flexShrink:0},children:u?o.jsx(D3,{}):o.jsx(M3,{})}),o.jsx("p",{className:"color-tertiary fw-400 text-truncate-1",style:{fontSize:14,lineHeight:"22px",width:"calc(100% - 22px)",margin:0},title:n,children:n})]}),u&&o.jsx("div",{style:{marginLeft:22},children:r.map(function(e){var t=e.endpoint||e.path||"",n=(e.apiMethod||e.method||"").toUpperCase(),r=t===s&&n===a;return o.jsx(N3,{op:e,isSelected:r,onClick:function(){return e._onSelect&&e._onSelect(e)}},"".concat(t,":").concat(n))})})]})}function T3(t){var n=t.operations,r=t.selectedOp,i=t.onSelect,a=e.useMemo(function(){var e=new Map;return(n||[]).forEach(function(t){var n=t.endpoint||t.path||"";e.has(n)||e.set(n,[]),e.get(n).push(A3(A3({},t),{},{_onSelect:i}))}),Array.from(e.entries()).map(function(e){var t=Ce(e,2);return{path:t[0],methods:t[1]}})},[n,i]);return a.length?o.jsx("div",{children:a.map(function(e){var t=e.path,n=e.methods;return o.jsx(j3,{path:t,methods:n,selectedOperation:r},t)})}):null}function P3(){var n=t.useDispatch(),r=Ce(Ey(),1)[0],i=Ce(e.useState(""),2),a=i[0],s=i[1],c=t.useSelector(function(e){return e.apiReference.metaSwaggers},zy),l=t.useSelector(function(e){return e.apiReference.swaggers},zy),u=t.useSelector(function(e){return e.apiReference.selected.swagger},zy),p=t.useSelector(function(e){return e.apiReference.selected.operation},zy),d=t.useSelector(function(e){return e.apiReference.view},zy),f=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),h=t.useSelector(function(e){return e.guides.guides},zy),m=(null==c?void 0:c.length)>0,g=e.useMemo(function(){return p?{path:p.endpoint||p.path||"",method:(p.apiMethod||p.method||"").toUpperCase()}:null},[p]),y=d===ae.OVERVIEW,v=e.useCallback(function(){n(Gg(ae.OVERVIEW)),f&&n(ag())},[n,f]),b=e.useCallback(function(e){var t=u||(null==l?void 0:l[0]);if(t){var r={method:e.apiMethod||e.method||"",path:e.endpoint||e.path||""},o=t.operationsFlatten.find(function(e){return fd(e,r)});o&&n(ey({swagger:t,operation:A3(A3({},o),{},{keyId:Ee()})})),n(Gg(ae.RESOURCE)),f&&n(ag())}},[n,u,l,f]),w=e.useCallback(function(e){var t=e.swagger,o=e.op,i=new ke({swagger:t,resource:o}).toObject();r(i),n(Gg(ae.RESOURCE)),f&&n(ag())},[n,r,f]),x=e.useCallback(function(e){return s(e)},[]),_=e.useCallback(function(e){if(!a)return e;var t=a.toLowerCase();return(e||[]).filter(function(e){return(e.endpoint||e.path||"").toLowerCase().includes(t)||(e.apiMethod||e.method||"").toLowerCase().includes(t)||(e.summary||e.__listTitle||e.name||"").toLowerCase().includes(t)})},[a]),E=e.useMemo(function(){return m?null:u||(null==l?void 0:l[0])||null},[m,u,l]),k=e.useMemo(function(){var e;return _(null!==(e=null==E?void 0:E.operationsFlatten)&&void 0!==e?e:[])},[E,_]),O=e.useMemo(function(){return m?c.map(function(e){var t;return A3(A3({},e),{},{filteredResources:_((null===(t=e.currentVersion)||void 0===t?void 0:t.resources)||[])})}).filter(function(e){return e.filteredResources.length>0}):[]},[m,c,_]),A=e.useState(function(){return(null!=c?c:[]).map(function(e){var t;return null!==(t=e.swaggerId)&&void 0!==t?t:e.uuid})}),D=Ce(A,2),M=D[0],C=D[1];e.useEffect(function(){null!=c&&c.length&&C(function(e){var t=new Set(e);return c.forEach(function(e){var n;return t.add(null!==(n=e.swaggerId)&&void 0!==n?n:e.uuid)}),Array.from(t)})},[c]);var S=e.useCallback(function(e){return C(function(t){return t.includes(e)?t.filter(function(t){return t!==e}):[].concat(lt(t),[e])})},[]);return o.jsxs("div",{style:{height:"100%",width:"100%",display:"flex",flexDirection:"column"},children:[o.jsx("div",{style:{padding:"16px 16px 8px"},children:o.jsx(m3,{initialValue:a,debounceDelay:300,inputProps:{onChange:x,placeholder:"Search APIs",className:Qy("color-disabled fs-12px fw-400 lh-140")}})}),o.jsxs("div",{className:Qy("flex-col overflow-y noscrollbar slide-from-left-500"),style:{flex:1},children:[(null==h?void 0:h.length)>0&&o.jsx("div",{style:{padding:"8px 16px"},children:o.jsx(k3,{guides:h,isSinglePage:!0,fromRef:!0})}),!m&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{onClick:v,className:Qy("flex-rows vt-center cursor",y?"bg-L2":"hover-bg-gray-l2"),style:{borderLeft:y?"2px solid var(--brand-color, #0265DC)":"2px solid transparent",padding:"6px 16px",minHeight:30,gap:8},children:[o.jsx("span",{className:Qy(y?"color-primary":"color-tertiary"),style:{flexShrink:0},children:o.jsx(C3,{})}),o.jsx("p",{className:Qy("fs-14px",y?"fw-500 color-primary":"fw-400 color-tertiary"),style:{lineHeight:"20px"},children:"Overview"})]}),0===k.length&&a?o.jsx("div",{style:{padding:"24px 16px",textAlign:"center"},children:o.jsx("p",{className:"fs-12px fw-400 color-tertiary",children:"No endpoints found"})}):null,o.jsx(T3,{operations:k,selectedOp:y?null:g,onSelect:b})]}),m&&o.jsx("div",{className:Qy("flex-col"),style:{gap:2},children:O.map(function(e){var t,r=null!==(t=e.swaggerId)&&void 0!==t?t:e.uuid,i=M.includes(r),a=u&&u.swaggerId===e.swaggerId,s=y&&a;return o.jsxs("div",{children:[o.jsxs("div",{className:Qy("flex-rows vt-center cursor hover-bg-gray-l2"),style:{borderLeft:"2px solid transparent",padding:"4px 12px",minHeight:30,gap:8},onClick:function(){return S(r)},children:[o.jsx("span",{className:"color-tertiary",style:{flexShrink:0},children:i?o.jsx(D3,{}):o.jsx(M3,{})}),o.jsx("p",{className:Qy("text-truncate-1 fw-400 fs-14px",a?"color-primary":"color-tertiary"),title:e.name,style:{lineHeight:"20px",width:"calc(100% - 22px)"},children:e.name})]}),i&&o.jsxs("div",{className:"slide-from-top-400",style:{paddingLeft:19},children:[o.jsxs("div",{onClick:function(){n(Gg(ae.OVERVIEW)),f&&n(ag())},className:Qy("flex-rows vt-center cursor",s?"bg-L2":"hover-bg-gray-l2"),style:{borderLeft:s?"2px solid var(--brand-color, #0265DC)":"2px solid transparent",padding:"6px 16px",minHeight:30,gap:8},children:[o.jsx("span",{className:Qy(s?"color-primary":"color-tertiary"),style:{flexShrink:0},children:o.jsx(C3,{})}),o.jsx("p",{className:Qy("fs-14px",s?"fw-500 color-primary":"fw-400 color-tertiary"),style:{lineHeight:"20px"},children:"Overview"})]}),o.jsx(T3,{operations:e.filteredResources,selectedOp:a?g:null,onSelect:function(t){return w({swagger:e,op:t})}})]})]},r)})})]})]})}var I3=p.default.memo(P3);function R3(){return o.jsx(I3,{})}var L3=p.default.memo(R3);function F3(e,t){return function(){return e.apply(t,arguments)}}const{toString:H3}=Object.prototype,{getPrototypeOf:$3}=Object,{iterator:B3,toStringTag:q3}=Symbol,U3=(e=>t=>{const n=H3.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),z3=e=>(e=e.toLowerCase(),t=>U3(t)===e),V3=e=>t=>typeof t===e,{isArray:W3}=Array,Z3=V3("undefined");function Y3(e){return null!==e&&!Z3(e)&&null!==e.constructor&&!Z3(e.constructor)&&K3(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const G3=z3("ArrayBuffer");const Q3=V3("string"),K3=V3("function"),X3=V3("number"),J3=e=>null!==e&&"object"==typeof e,e5=e=>{if("object"!==U3(e))return!1;const t=$3(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||q3 in e||B3 in e)},t5=z3("Date"),n5=z3("File"),r5=z3("Blob"),o5=z3("FileList"),i5=z3("URLSearchParams"),[a5,s5,c5,l5]=["ReadableStream","Request","Response","Headers"].map(z3);function u5(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),W3(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Y3(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function p5(e,t){if(Y3(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const d5="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,f5=e=>!Z3(e)&&e!==d5;const h5=(m5="undefined"!=typeof Uint8Array&&$3(Uint8Array),e=>m5&&e instanceof m5);var m5;const g5=z3("HTMLFormElement"),y5=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),v5=z3("RegExp"),b5=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};u5(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const w5=z3("AsyncFunction"),x5=(_5="function"==typeof setImmediate,E5=K3(d5.postMessage),_5?setImmediate:E5?(k5=`axios@${Math.random()}`,O5=[],d5.addEventListener("message",({source:e,data:t})=>{e===d5&&t===k5&&O5.length&&O5.shift()()},!1),e=>{O5.push(e),d5.postMessage(k5,"*")}):e=>setTimeout(e));var _5,E5,k5,O5;const A5="undefined"!=typeof queueMicrotask?queueMicrotask.bind(d5):void 0!==cs&&cs.nextTick||x5;var D5={isArray:W3,isArrayBuffer:G3,isBuffer:Y3,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||K3(e.append)&&("formdata"===(t=U3(e))||"object"===t&&K3(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&G3(e.buffer),t},isString:Q3,isNumber:X3,isBoolean:e=>!0===e||!1===e,isObject:J3,isPlainObject:e5,isEmptyObject:e=>{if(!J3(e)||Y3(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:a5,isRequest:s5,isResponse:c5,isHeaders:l5,isUndefined:Z3,isDate:t5,isFile:n5,isBlob:r5,isRegExp:v5,isFunction:K3,isStream:e=>J3(e)&&K3(e.pipe),isURLSearchParams:i5,isTypedArray:h5,isFileList:o5,forEach:u5,merge:function e(){const{caseless:t}=f5(this)&&this||{},n={},r=(r,o)=>{const i=t&&p5(n,o)||o;e5(n[i])&&e5(r)?n[i]=e(n[i],r):e5(r)?n[i]=e({},r):W3(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&u5(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(u5(t,(t,r)=>{n&&K3(t)?e[r]=F3(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&$3(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:U3,kindOfTest:z3,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(W3(e))return e;let t=e.length;if(!X3(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[B3]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:g5,hasOwnProperty:y5,hasOwnProp:y5,reduceDescriptors:b5,freezeMethods:e=>{b5(e,(t,n)=>{if(K3(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];K3(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return W3(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:p5,global:d5,isContextDefined:f5,isSpecCompliantForm:function(e){return!!(e&&K3(e.append)&&"FormData"===e[q3]&&e[B3])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(J3(e)){if(t.indexOf(e)>=0)return;if(Y3(e))return e;if(!("toJSON"in e)){t[r]=e;const o=W3(e)?[]:{};return u5(e,(e,t)=>{const i=n(e,r+1);!Z3(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:w5,isThenable:e=>e&&(J3(e)||K3(e))&&K3(e.then)&&K3(e.catch),setImmediate:x5,asap:A5,isIterable:e=>null!=e&&K3(e[B3])};function M5(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}D5.inherits(M5,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:D5.toJSONObject(this.config),code:this.code,status:this.status}}});const C5=M5.prototype,S5={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{S5[e]={value:e}}),Object.defineProperties(M5,S5),Object.defineProperty(C5,"isAxiosError",{value:!0}),M5.from=(e,t,n,r,o,i)=>{const a=Object.create(C5);return D5.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),M5.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function N5(e){return D5.isPlainObject(e)||D5.isArray(e)}function j5(e){return D5.endsWith(e,"[]")?e.slice(0,-2):e}function T5(e,t,n){return e?e.concat(t).map(function(e,t){return e=j5(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const P5=D5.toFlatObject(D5,{},null,function(e){return/^is[A-Z]/.test(e)});function I5(e,t,n){if(!D5.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=D5.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!D5.isUndefined(t[e])});const r=n.metaTokens,o=n.visitor||l,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&D5.isSpecCompliantForm(t);if(!D5.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(D5.isDate(e))return e.toISOString();if(D5.isBoolean(e))return e.toString();if(!s&&D5.isBlob(e))throw new M5("Blob is not supported. Use a Buffer instead.");return D5.isArrayBuffer(e)||D5.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):oa.Buffer.from(e):e}function l(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(D5.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(D5.isArray(e)&&function(e){return D5.isArray(e)&&!e.some(N5)}(e)||(D5.isFileList(e)||D5.endsWith(n,"[]"))&&(s=D5.toArray(e)))return n=j5(n),s.forEach(function(e,r){!D5.isUndefined(e)&&null!==e&&t.append(!0===a?T5([n],r,i):null===a?n:n+"[]",c(e))}),!1;return!!N5(e)||(t.append(T5(o,n,i),c(e)),!1)}const u=[],p=Object.assign(P5,{defaultVisitor:l,convertValue:c,isVisitable:N5});if(!D5.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!D5.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),D5.forEach(n,function(n,i){!0===(!(D5.isUndefined(n)||null===n)&&o.call(t,n,D5.isString(i)?i.trim():i,r,p))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t}function R5(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function L5(e,t){this._pairs=[],e&&I5(e,this,t)}const F5=L5.prototype;function H5(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $5(e,t,n){if(!t)return e;const r=n&&n.encode||H5;D5.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):D5.isURLSearchParams(t)?t.toString():new L5(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}F5.append=function(e,t){this._pairs.push([e,t])},F5.toString=function(e){const t=e?function(t){return e.call(this,t,R5)}:R5;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var B5=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){D5.forEach(this.handlers,function(t){null!==t&&e(t)})}},q5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},U5={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:L5,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const z5="undefined"!=typeof window&&"undefined"!=typeof document,V5="object"==typeof navigator&&navigator||void 0,W5=z5&&(!V5||["ReactNative","NativeScript","NS"].indexOf(V5.product)<0),Z5="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Y5=z5&&window.location.href||"http://localhost";var G5={...Object.freeze({__proto__:null,hasBrowserEnv:z5,hasStandardBrowserWebWorkerEnv:Z5,hasStandardBrowserEnv:W5,navigator:V5,origin:Y5}),...U5};function Q5(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&D5.isArray(r)?r.length:i,s)return D5.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&D5.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&D5.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(D5.isFormData(e)&&D5.isFunction(e.entries)){const n={};return D5.forEachEntry(e,(e,r)=>{t(function(e){return D5.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const K5={transitional:q5,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=D5.isObject(e);o&&D5.isHTMLForm(e)&&(e=new FormData(e));if(D5.isFormData(e))return r?JSON.stringify(Q5(e)):e;if(D5.isArrayBuffer(e)||D5.isBuffer(e)||D5.isStream(e)||D5.isFile(e)||D5.isBlob(e)||D5.isReadableStream(e))return e;if(D5.isArrayBufferView(e))return e.buffer;if(D5.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return I5(e,new G5.classes.URLSearchParams,{visitor:function(e,t,n,r){return G5.isNode&&D5.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=D5.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return I5(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(D5.isString(e))try{return(t||JSON.parse)(e),D5.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||K5.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(D5.isResponse(e)||D5.isReadableStream(e))return e;if(e&&D5.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw M5.from(e,M5.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:G5.classes.FormData,Blob:G5.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D5.forEach(["delete","get","head","post","put","patch"],e=>{K5.headers[e]={}});var X5=K5;const J5=D5.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const e9=Symbol("internals");function t9(e){return e&&String(e).trim().toLowerCase()}function n9(e){return!1===e||null==e?e:D5.isArray(e)?e.map(n9):String(e)}function r9(e,t,n,r,o){return D5.isFunction(r)?r.call(this,t,n):(o&&(t=n),D5.isString(t)?D5.isString(r)?-1!==t.indexOf(r):D5.isRegExp(r)?r.test(t):void 0:void 0)}class o9{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=t9(t);if(!o)throw new Error("header name must be a non-empty string");const i=D5.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=n9(e))}const i=(e,t)=>D5.forEach(e,(e,n)=>o(e,n,t));if(D5.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(D5.isString(e)&&(e=e.trim())&&!(e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))(e))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&J5[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(D5.isObject(e)&&D5.isIterable(e)){let n,r,o={};for(const t of e){if(!D5.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?D5.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=t9(e)){const n=D5.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(D5.isFunction(t))return t.call(this,e,n);if(D5.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=t9(e)){const n=D5.findKey(this,e);return!(!n||void 0===this[n]||t&&!r9(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=t9(e)){const o=D5.findKey(n,e);!o||t&&!r9(0,n[o],o,t)||(delete n[o],r=!0)}}return D5.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!r9(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return D5.forEach(this,(r,o)=>{const i=D5.findKey(n,o);if(i)return t[i]=n9(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=n9(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return D5.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&D5.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[e9]=this[e9]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=t9(e);t[r]||(!function(e,t){const n=D5.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return D5.isArray(e)?e.forEach(r):r(e),this}}o9.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),D5.reduceDescriptors(o9.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),D5.freezeMethods(o9);var i9=o9;function a9(e,t){const n=this||X5,r=t||n,o=i9.from(r.headers);let i=r.data;return D5.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function s9(e){return!(!e||!e.__CANCEL__)}function c9(e,t,n){M5.call(this,null==e?"canceled":e,M5.ERR_CANCELED,t,n),this.name="CanceledError"}function l9(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new M5("Request failed with status code "+n.status,[M5.ERR_BAD_REQUEST,M5.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}D5.inherits(c9,M5,{__CANCEL__:!0});const u9=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=r[a];o||(o=c),n[i]=s,r[i]=c;let u=a,p=0;for(;u!==i;)p+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const d=l&&c-l;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,c=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},p9=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},d9=e=>(...t)=>D5.asap(()=>e(...t));var f9=G5.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,G5.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(G5.origin),G5.navigator&&/(msie|trident)/i.test(G5.navigator.userAgent)):()=>!0,h9=G5.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];D5.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),D5.isString(r)&&a.push("path="+r),D5.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function m9(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const g9=e=>e instanceof i9?{...e}:e;function y9(e,t){t=t||{};const n={};function r(e,t,n,r){return D5.isPlainObject(e)&&D5.isPlainObject(t)?D5.merge.call({caseless:r},e,t):D5.isPlainObject(t)?D5.merge({},t):D5.isArray(t)?t.slice():t}function o(e,t,n,o){return D5.isUndefined(t)?D5.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!D5.isUndefined(t))return r(void 0,t)}function a(e,t){return D5.isUndefined(t)?D5.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(g9(e),g9(t),0,!0)};return D5.forEach(Object.keys({...e,...t}),function(r){const i=c[r]||o,a=i(e[r],t[r],r);D5.isUndefined(a)&&i!==s||(n[r]=a)}),n}var v9=e=>{const t=y9({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=i9.from(s),t.url=$5(m9(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),D5.isFormData(r))if(G5.hasStandardBrowserEnv||G5.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(G5.hasStandardBrowserEnv&&(o&&D5.isFunction(o)&&(o=o(t)),o||!1!==o&&f9(t.url))){const e=i&&a&&h9.read(a);e&&s.set(i,e)}return t};var b9="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=v9(e);let o=r.data;const i=i9.from(r.headers).normalize();let a,s,c,l,u,{responseType:p,onUploadProgress:d,onDownloadProgress:f}=r;function h(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=i9.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());l9(function(e){t(e),h()},function(e){n(e),h()},{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new M5("Request aborted",M5.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new M5("Network Error",M5.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||q5;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new M5(t,o.clarifyTimeoutError?M5.ETIMEDOUT:M5.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&D5.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),D5.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),p&&"json"!==p&&(m.responseType=r.responseType),f&&([c,u]=u9(f,!0),m.addEventListener("progress",c)),d&&m.upload&&([s,l]=u9(d),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new c9(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===G5.protocols.indexOf(y)?n(new M5("Unsupported protocol "+y+":",M5.ERR_BAD_REQUEST,e)):m.send(o||null)})};var w9=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof M5?t:new c9(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new M5(`timeout ${t} of ms exceeded`,M5.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>D5.asap(a),s}};const x9=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},_9=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},E9=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of _9(e))yield*x9(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},k9="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,O9=k9&&"function"==typeof ReadableStream,A9=k9&&("function"==typeof TextEncoder?(D9=new TextEncoder,e=>D9.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var D9;const M9=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},C9=O9&&M9(()=>{let e=!1;const t=new Request(G5.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),S9=O9&&M9(()=>D5.isReadableStream(new Response("").body)),N9={stream:S9&&(e=>e.body)};var j9;k9&&(j9=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!N9[e]&&(N9[e]=D5.isFunction(j9[e])?t=>t[e]():(t,n)=>{throw new M5(`Response type '${e}' is not supported`,M5.ERR_NOT_SUPPORT,n)})}));const T9=async(e,t)=>{const n=D5.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(D5.isBlob(e))return e.size;if(D5.isSpecCompliantForm(e)){const t=new Request(G5.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return D5.isArrayBufferView(e)||D5.isArrayBuffer(e)?e.byteLength:(D5.isURLSearchParams(e)&&(e+=""),D5.isString(e)?(await A9(e)).byteLength:void 0)})(t):n};var P9=k9&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:u,withCredentials:p="same-origin",fetchOptions:d}=v9(e);l=l?(l+"").toLowerCase():"text";let f,h=w9([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(c&&C9&&"get"!==n&&"head"!==n&&0!==(g=await T9(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(D5.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=p9(g,u9(d9(c)));r=E9(n.body,65536,e,t)}}D5.isString(p)||(p=p?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?p:void 0});let i=await fetch(f,d);const a=S9&&("stream"===l||"response"===l);if(S9&&(s||a&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=D5.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&p9(t,u9(d9(s),!0))||[];i=new Response(E9(i.body,65536,n,()=>{r&&r(),m&&m()}),e)}l=l||"text";let y=await N9[D5.findKey(N9,l)||"text"](i,e);return!a&&m&&m(),await new Promise((t,n)=>{l9(t,n,{data:y,headers:i9.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})})}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new M5("Network Error",M5.ERR_NETWORK,e,f),{cause:t.cause||t});throw M5.from(t,t&&t.code,e,f)}});const I9={http:null,xhr:b9,fetch:P9};D5.forEach(I9,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const R9=e=>`- ${e}`,L9=e=>D5.isFunction(e)||null===e||!1===e;var F9=e=>{e=D5.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!L9(n)&&(r=I9[(t=String(n)).toLowerCase()],void 0===r))throw new M5(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new M5("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(R9).join("\n"):" "+R9(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function H9(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new c9(null,e)}function $9(e){H9(e),e.headers=i9.from(e.headers),e.data=a9.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return F9(e.adapter||X5.adapter)(e).then(function(t){return H9(e),t.data=a9.call(e,e.transformResponse,t),t.headers=i9.from(t.headers),t},function(t){return s9(t)||(H9(e),t&&t.response&&(t.response.data=a9.call(e,e.transformResponse,t.response),t.response.headers=i9.from(t.response.headers))),Promise.reject(t)})}const B9="1.11.0",q9={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{q9[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const U9={};q9.transitional=function(e,t,n){function r(e,t){return"[Axios v"+B9+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new M5(r(o," has been removed"+(t?" in "+t:"")),M5.ERR_DEPRECATED);return t&&!U9[o]&&(U9[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},q9.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var z9={assertOptions:function(e,t,n){if("object"!=typeof e)throw new M5("options must be an object",M5.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new M5("option "+i+" must be "+n,M5.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new M5("Unknown option "+i,M5.ERR_BAD_OPTION)}},validators:q9};const V9=z9.validators;class W9{constructor(e){this.defaults=e||{},this.interceptors={request:new B5,response:new B5}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=y9(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&z9.assertOptions(n,{silentJSONParsing:V9.transitional(V9.boolean),forcedJSONParsing:V9.transitional(V9.boolean),clarifyTimeoutError:V9.transitional(V9.boolean)},!1),null!=r&&(D5.isFunction(r)?t.paramsSerializer={serialize:r}:z9.assertOptions(r,{encode:V9.function,serialize:V9.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),z9.assertOptions(t,{baseUrl:V9.spelling("baseURL"),withXsrfToken:V9.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&D5.merge(o.common,o[t.method]);o&&D5.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=i9.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,p=0;if(!s){const e=[$9.bind(this),void 0];for(e.unshift(...a),e.push(...c),u=e.length,l=Promise.resolve(t);p<u;)l=l.then(e[p++],e[p++]);return l}u=a.length;let d=t;for(p=0;p<u;){const e=a[p++],t=a[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=$9.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,u=c.length;p<u;)l=l.then(c[p++],c[p++]);return l}getUri(e){return $5(m9((e=y9(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}D5.forEach(["delete","get","head","options"],function(e){W9.prototype[e]=function(t,n){return this.request(y9(n||{},{method:e,url:t,data:(n||{}).data}))}}),D5.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(y9(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}W9.prototype[e]=t(),W9.prototype[e+"Form"]=t(!0)});var Z9=W9;class Y9{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new c9(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new Y9(function(t){e=t});return{token:t,cancel:e}}}var G9=Y9;const Q9={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Q9).forEach(([e,t])=>{Q9[t]=e});var K9=Q9;const X9=function e(t){const n=new Z9(t),r=F3(Z9.prototype.request,n);return D5.extend(r,Z9.prototype,n,{allOwnKeys:!0}),D5.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(y9(t,n))},r}(X5);X9.Axios=Z9,X9.CanceledError=c9,X9.CancelToken=G9,X9.isCancel=s9,X9.VERSION=B9,X9.toFormData=I5,X9.AxiosError=M5,X9.Cancel=X9.CanceledError,X9.all=function(e){return Promise.all(e)},X9.spread=function(e){return function(t){return e.apply(null,t)}},X9.isAxiosError=function(e){return D5.isObject(e)&&!0===e.isAxiosError},X9.mergeConfig=y9,X9.AxiosHeaders=i9,X9.formToJSON=e=>Q5(D5.isHTMLForm(e)?new FormData(e):e),X9.getAdapter=F9,X9.HttpStatusCode=K9,X9.default=X9;var J9=X9,e7=Object.freeze({SERVER:"servers",CLIENT:"clients"});function t7(n){var r=n.toggleModal;Wy();var i=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),a=t.useSelector(function(e){return e.apiReference.selected.swagger},zy),s=t.useSelector(function(e){return e.modal.codeGenerator},zy),c=Cy({headerArgs:a.type}).data,l=Ce(Sy(),1)[0],u=Ce(Ym(),1)[0],p=Ce(e.useState(null),2),d=p[0],f=p[1],h=Ce(e.useState(null),2),m=h[0],g=h[1],y=Ce(e.useState(!1),2),v=y[0],b=y[1],w=e.useMemo(function(){return Object.keys(e7).map(function(e){return{onClick:function(){return f(e7[e])},element:o.jsx("div",{className:Qy("fs-14px color-02 fw-500 text-transform-capitalize"),children:e7[e]})}})},[]),x=e.useMemo(function(){return d&&c?(c[d]||[]).map(function(e){return{onClick:function(){return g(e)},element:o.jsx("div",{className:Qy("fs-14px color-02 fw-500 text-transform-capitalize"),children:e})}}):[]},[d,c]);e.useEffect(function(){g(null)},[d]);var _=e.useCallback(Ae(ct.mark(function e(){var t,n,o,i,s,c;return ct.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!v){e.next=1;break}return e.abrupt("return");case 1:return e.prev=1,t={swaggerName:a.swaggerId,revision:a.revision},b(!0),e.next=2,l({pathArgs:{target:d,framework:m},headerArgs:{oas:be(a.type)},body:t});case 2:if(n=e.sent,o=n.data){e.next=3;break}return b(!1),e.abrupt("return");case 3:return i=o.link,e.next=4,u({body:{url:i}});case 4:if(s=e.sent,c=s.data){e.next=5;break}return b(!1),e.abrupt("return");case 5:bd({blob:c,filename:"".concat(m),ext:"zip"}),b(!1),r(),e.next=7;break;case 6:e.prev=6,e.catch(1),b(!1);case 7:case"end":return e.stop()}},e,null,[[1,6]])})),[d,m,v]);return o.jsx(DJ,{size:i?"fill":"sm",placement:"left",open:s,children:o.jsxs("div",{className:Qy("dss-px-26 dss-py-32","flex-col dss-gap-32"),children:[o.jsx("div",{className:Qy("fs-12px color-02 fw-800 text-transform-uppercase"),children:"Download Server / Client Code"}),o.jsxs("div",{className:Qy("flex-col dss-gap-12"),children:[o.jsx(hN,{options:w,btnClassName:"border-00-1px dss-p-8",haveBottomEmptySpace:!0,children:o.jsx("div",{className:Qy("color-05 fs-14px fw-400 text-transform-capitalize"),children:d||"Select Servers or Clients"})}),!!d&&o.jsx(hN,{options:x,btnClassName:"border-00-1px dss-p-8",haveBottomEmptySpace:!0,children:o.jsx("div",{className:Qy("color-05 fs-14px fw-400 text-transform-capitalize"),children:m||"Select Frameworks"})})]}),o.jsxs("div",{className:Qy("flex-rows dss-gap-12"),children:[d&&m?o.jsx(bJ,{onClick:_,text:"Generate",loading:v,loadingEl:o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-4"),children:[o.jsx("div",{className:Qy(""),children:"Generating "}),o.jsx(x_,{size:"md",color:"color-button-00"})]}),textSize:"fs-12px"}):o.jsx(xJ,{text:"Generate",textSize:"fs-12px"}),o.jsx(xJ,{text:"Cancel",textSize:"fs-12px",onClick:r})]})]})})}function n7(){var n=t.useDispatch(),r=Wy(),i=t.useSelector(function(e){return e.modal.codeGenerator},zy),a=e.useMemo(function(){return o.jsx(ww,{size:r.xl})},[r.xl]),s=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),c=e.useCallback(function(){n(ig())},[]);return o.jsxs(o.Fragment,{children:[pd()&&!window.location.pathname.includes(U.OPEN_API)&&o.jsx(uN,{placement:"left",tooltipOffset:8,tooltipEl:o.jsx("div",{className:Qy("fs-11px fw-500"),children:"Download Server/Client Code"}),children:o.jsx("div",{className:Qy("color-text-inverse dss-p-6",s&&"bg-gray-l2 dss-p-6 dss-br-4 border-gray-primary-1px dss-w-24 dss-h-24"),children:o.jsx(gN,{Icon:a,onClick:c,className:Qy("")})})}),i&&o.jsx(t7,{toggleModal:c})]})}t7.propTypes={toggleModal:tb.func.isRequired};var r7=p.default.memo(n7);function o7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o7(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var a7=Object.freeze({COPIED:"Copied",COPY:"Copy"});function s7(){var n=t.useDispatch(),r=t.useSelector(function(e){return e.libConfig.isDarkMode},zy),i=t.useSelector(function(e){return e.libConfig.moduleType},zy),a=t.useSelector(function(e){return e.apiReference.selected.operation},zy),s=t.useSelector(function(e){return e.apiReference.selected.loading},zy),c=t.useSelector(function(e){return e.apiReference.selected.axiosOptions},zy),l=t.useSelector(function(e){return e.apiReference.selected.responses},zy),u=t.useSelector(function(e){return e.apiReference.selected.headerParams},zy),p=t.useSelector(function(e){return e.libConfig.isLargeDevice},zy),d=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),f=t.useSelector(function(e){return e.apiReference.selected.response.contentType},zy),h=t.useSelector(function(e){return e.apiReference.selected.result.response},zy),m=t.useSelector(function(e){return e.libConfig.currentPage},zy),g=e.useMemo(function(){var e=u.properties.find(function(e){return yd(e)});return e?e.uiData.value:Q},[u]),y=Ce(e.useState(pe[2]),2),v=y[0],b=y[1],w=Ce(e.useState(""),2),x=w[0],_=w[1],E=Ce(e.useState(null),2),k=E[0],O=E[1],A=Ce(e.useState(!1),2),D=A[0],M=A[1],S=Ce(e.useState(!1),2),N=S[0],j=S[1],T=Ce(e.useState(a7.COPY),2),P=T[0],I=T[1],R=Wy(),L=e.useMemo(function(){return d?o.jsx(cv,{size:R.xl}):o.jsx(vv,{size:R.xl})},[d,R.xl]),F=e.useMemo(function(){var e="json";k&&k.contentType&&(e=Da(k.contentType));var t="";if(k&&k.example){var n=k.example;n.constructor===String?t=n:"json"!==e||n.constructor!==Object&&n.constructor!==Array?"xml"===e&&(t=Ma(n,e)):t=_e(n)}return{lang:e,value:t}},[k]),H=e.useMemo(function(){var e="json";h&&h.contentType&&(e=Da(h.contentType));var t="";if(h&&h.body){var n=h.body;n.constructor===String?t="xml"===e?function(e){try{return $(e,{collapseContent:!0})}catch(t){return e}}(n):n:"json"!==e||n.constructor!==Object&&n.constructor!==Array||(t=_e(n))}return{lang:e,value:t}},[h]),B=e.useMemo(function(){return!c||!!c.error},[c]),U=e.useMemo(function(){if(!c||c.error)return null;var e=function(e){var t=e.axiosOptions,n=[];if(t.headers)for(var r in t.headers)n.push({name:r,value:t.headers[r]});var o={method:t&&t.apiMethod?t.apiMethod.toUpperCase():"",url:t.url?encodeURI(t.url):"",headers:[]};return n.length&&(o.headers=n),t.data&&(o.postData={mimeType:"text/plain",text:t.data},t.data&&t.data.constructor===Object&&(o.postData.text=JSON.stringify(t.data)),o.bodySize=o.postData.text.length),o}({axiosOptions:c});return e},[c]),z=function(){var e=Ae(ct.mark(function e(){var t;return ct.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,rs({snippets:U,lang:v.language});case 1:t=e.sent,_(t);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();e.useEffect(function(){z()},[v,U]),e.useCallback(function(e){console.log("lang",e),b(e)},[]);var V=e.useCallback(function(){j(!1),O(null)},[]),W=e.useCallback(function(e){if(!e)return O(null),void j(!0);O(e),j(!1)},[]),Z=e.useCallback(function(){pd()&&window.navigator.clipboard.writeText(x),I(a7.COPIED),setTimeout(function(){I(a7.COPY)},2e3)},[x]);e.useEffect(function(){V()},[f]),e.useEffect(function(){if(N&&h&&h.statusCode===Y){var e=setTimeout(function(){V()},1e4);return function(){clearTimeout(e)}}},[N,h]);var G=e.useCallback(function(){n(d?sg():Qg())},[]),K=e.useMemo(function(){return[{keyId:C(),element:o.jsx(VK,{text:g,textProps:{className:"",color:"color-04",fontSize:"fs-12px",fontWeight:"fw-400"}}),onClick:null}].concat(lt((l||[]).filter(function(e){return e.example||e.examples}).reduce(function(e,t){if(t.examples&&Object.keys(t.examples).length)for(var n=0,r=Object.values(t.examples);n<r.length;n++){var o=r[n],i=o.value;try{i=JSON.parse(o.value)}catch(e){console.log(e)}e.push(i7(i7({},t),{},{example:i,exampleSummary:o.summary||""}))}else e.push(t);return e},[]).map(function(e){return{keyId:C(),element:o.jsx(pX,{statusCode:e.statusCode,name:"".concat(e.name," ").concat(e.exampleSummary?"- ".concat(e.exampleSummary):""),textProps:{className:"",color:"color-primary",fontSize:"fs-11px",fontWeight:"fw-400"}}),onClick:function(){W(e)}}})),[k||N?{keyId:C(),element:o.jsx(VK,{text:"Clear ".concat(k?"Example":"Response"),textProps:{className:"",color:"color-required-00",fontSize:"fs-12px",fontWeight:"fw-400"}}),onClick:V}:null]).filter(Boolean)},[g,N,k,l]),J=e.useMemo(function(){return(pe||[]).map(function(e){return{onClick:function(){return b(e)},element:o.jsx("div",{className:Qy("fs-12px color-02 fw-400"),children:e.label})}})},[]),ee=e.useCallback(function(){if(!B&&!D){var e=null;["get","delete","head","options"].includes(c.apiMethod)&&(e=J9[c.apiMethod](c.url,c.axiosConfig)),["post","put","patch"].includes(c.apiMethod)&&(e=J9[c.apiMethod](c.url,c.data,c.axiosConfig)),M(!0),e.then(function(e){M(!1);var t={statusCode:e.status,headers:e.headers.toJSON(),body:e.data};n(cy(t)),W()}).catch(function(e){M(!1);var t=null;if(e.response){var r=e.response||{};t={statusCode:r.status,headers:r.headers.toJSON(),body:r.data}}else t={statusCode:e.code,headers:{},body:e.message||"Network Error"};n(cy(t)),W()})}},[c,B,D]);return s?d&&m===q.WORKFLOWS?null:o.jsx("div",{className:Qy("h-100 w-100"),children:o.jsx(E_,{size:"md",message:"Loading Document"})}):a?p?o.jsxs("div",{className:Qy("ref-right-panel-tryout","flex-col h-100 position-relative",d?"":"dss-gap-16"),style:{paddingLeft:!d&&"0px !important"},children:[i!==N6.EXTERNAL?o.jsxs("div",{className:Qy("flex-rows vt-center hz-space-between dss-h-20",d?"dss-mb-16":""),children:[d?o.jsx("p",{className:Qy(d?"color-primary fs-21px fw-700 dss-my-0":"color-tertiary fs-11px fw-700 dss-my-0"),children:"TRYOUT"}):null,o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-12 "),children:[i!==N6.EXTERNAL&&o.jsx(r7,{}),d&&o.jsx("div",{className:Qy(d?"bg-gray-l2 dss-p-6 dss-br-4 border-gray-primary-1px dss-w-24 dss-h-24 color-primary":"color-primary "),children:o.jsx(gN,{Icon:L,onClick:G,className:Qy("hover-bg-gray-l2")})})]})]}):null,o.jsx("div",{className:"ref-tryout-root",children:o.jsxs("div",{className:Qy("ref-tryout-panel",d?"flex-col dss-p-12 dss-br-8 border-gray-primary-1px bg-try-out":""),children:[o.jsxs("div",{className:"ref-tryout-section flex-col dss-br-10 border-gray-primary-1px border-secondary-1px",children:[o.jsxs("div",{className:Qy("ref-tryout-section__header","flex-rows vt-center hz-space-between br-t-10px bg-try-out"),children:[o.jsx("p",{className:Qy("color-text-inverse fs-12px fw-600 dss-my-0 text-truncate-1"),title:a.api.operationId,children:"Endpoint"}),o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-4"),children:[o.jsx(hN,{options:J,btnClassName:"dss-br-8 dss-px-8 dss-py-4",ddPositionClassName:"bg-L1 overflow-y catalog-dd-max-h zIndex-12",optionClassName:"color-primary fs-11px fw-400 dss-p-8",styles:{minWidth:X(110)},caretClassName:"color-text-inverse",children:o.jsx("div",{className:Qy("color-text-inverse fs-12px fw-400"),children:v.label||"Select Language"})}),o.jsx(uN,{placement:"top",tooltipOffset:8,tooltipEl:o.jsx("div",{className:Qy("fs-11px fw-500"),children:P}),children:o.jsx("div",{"aria-hidden":!0,onClick:Z,className:Qy("dss-p-6 color-text-inverse cursor flex-center"),children:o.jsx(vw,{size:R.base})})}),o.jsx(uN,{placement:"top",tooltipOffset:8,tooltipEl:o.jsx("div",{className:Qy("fs-11px fw-500"),children:"Try it!"}),children:D?o.jsx(E_,{size:"md"}):o.jsx("div",{"aria-hidden":!0,onClick:ee,"aria-disabled":!!B,className:Qy("dss-p-6 dss-br-6 bg-brand flex-center cursor"),style:{border:"none"},children:o.jsx(Lw,{size:R.base,className:"color-text-inverse"})})})]})]}),o.jsx("div",{className:"ref-tryout-section__body br-b-8px",children:B?o.jsx("div",{className:Qy("br-b-8px flex-center fs-12px fw-400 dss-px-12 dss-py-20"),style:{color:"#FAFAFA",background:r?"#292724":"#373533"},children:c?c.error:""}):o.jsx(tJ,{code:x,lang:me[v.language],theme:"dark",tokens:{bg:r?"#292724":"#373533"},className:"bg-try-out",style:{height:"auto",width:"100%",boxSizing:"border-box"}})})]}),o.jsxs("div",{className:"ref-tryout-section flex-col dss-br-10 border-secondary-1px",children:[o.jsxs("div",{className:Qy("ref-tryout-section__header","flex-rows vt-center hz-space-between br-t-10px bg-try-out"),children:[o.jsx("p",{className:Qy("color-text-inverse fs-12px fw-600 dss-my-0 text-truncate-1"),children:"Response"}),o.jsx(hN,{options:K,ddPositionClassName:"bg-L1 overflow-y catalog-dd-max-h zIndex-12",optionClassName:"color-primary fs-11px fw-400 dss-p-8",caretClassName:"color-text-inverse",children:o.jsx("div",{className:Qy(""),children:N?o.jsxs("div",{className:Qy("flex-rows dss-gap-8 vt-center"),children:[h.statusCode!==Y&&o.jsx(pX,{name:h.statusCode,textProps:{className:"text-white",color:"text-white",fontSize:"fs-12px",fontWeight:"fw-400"}}),o.jsx("div",{className:Qy("bg-base border-00-0_5px dss-br-4 fs-13px dss-px-4 dss-py-2 color-03"),children:"Log"})]}):k?o.jsx("div",{className:Qy("flex-rows dss-gap-8 vt-center"),children:o.jsx(pX,{name:k.name,textProps:{className:"",color:"color-text-inverse",fontSize:"fs-12px",fontWeight:"fw-400"}})}):o.jsx(VK,{text:"Examples",textProps:{className:"",color:"color-text-inverse",fontSize:"fs-12px",fontWeight:"fw-400"}})})})]}),o.jsx("div",{className:Qy("br-b-8px",N||k?"ref-tryout-section__body":"ref-tryout-section__body ref-tryout-section__body--static"),children:N||k?N&&h.statusCode===Y?o.jsx("div",{className:Qy("flex-rows vt-center br-b-8px bg-L2",d?"w-100":""),children:o.jsxs("div",{className:"flex-col br-b-10px vt-center hz-center text-center w-100 dss-py-20 dss-gap-8 bg-try-out",children:[o.jsx(Ew,{size:R.xxl,className:"color-text-inverse"}),o.jsx("span",{className:"color-text-inverse fs-12px fw-400 lh-133",children:"Network Error"})]})}):o.jsx(tJ,{code:N?H.value:F.value,lang:"json",theme:"light",style:{height:"auto",width:"100%",boxSizing:"border-box",borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px"},tokens:{attr:"#5EAAF7",string:"#F0F0F0",punctuation:"#F0F0F0",bg:r?"#292724":"#373533"}}):o.jsx("div",{className:Qy("flex-rows vt-center br-b-10px bg-L2",d?"w-100":""),children:o.jsxs("div",{className:"flex-col vt-center hz-center text-center w-100 dss-py-20 dss-gap-8 bg-try-out br-b-10px",children:[o.jsx(Ew,{size:R.xxl,className:"color-disabled"}),o.jsx("span",{className:"color-text-inverse fs-12px fw-400 lh-133",children:"No Response To Show Yet"}),o.jsxs("div",{className:Qy("flex-rows vt-center hz-center dss-gap-4 dss-px-8 dss-py-4 dss-br-6 cursor"),onClick:ee,children:[o.jsx(Lw,{size:R.md,className:"color-brand"}),o.jsx("p",{className:Qy("fs-11px fw-500 color-brand dss-my-0"),children:"Try Now"})]})]})})})]})]})})]}):d?o.jsxs("div",{className:Qy("ref-tryout-modal-sm","dss-p-16","bg-base","position-relative","text-size-md"),children:[o.jsxs("div",{className:Qy("flex-rows vt-center hz-space-between dss-h-32","flex-shrink-0"),children:[o.jsx("p",{className:Qy("color-primary fs-21px fw-700 dss-my-0"),children:"Tryout"}),o.jsx("div",{className:Qy("flex-rows vt-center dss-gap-12"),children:o.jsx("div",{className:Qy("dss-br-4 border-gray-primary-1px bg-L2 dss-p-6 flex-center"),onClick:function(){n(sg())},children:o.jsx(tx,{size:R.xl,className:"color-primary"})})})]}),o.jsxs("div",{className:"ref-tryout-modal-sm__grid",children:[o.jsxs("div",{className:Qy("ref-tryout-modal-sm__section","flex-col dss-br-8 border-secondary-1px",r?"border-gray-primary-1px":""),children:[o.jsxs("div",{className:Qy("ref-tryout-section__header","flex-rows vt-center hz-space-between br-t-8px"),style:{background:"#434343"},children:[o.jsx("p",{className:Qy("color-text-inverse fs-14px fw-400 dss-my-0"),children:"Request"}),o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-6"),children:[o.jsx(hN,{options:J,btnClassName:"dss-br-8 dss-px-8 dss-py-6",ddPositionClassName:"bg-L1 overflow-y catalog-dd-max-h zIndex-12",btnStyles:{background:"#1F1F1F"},optionClassName:"color-primary fs-14px fw-400 dss-p-8",styles:{minWidth:X(110)},caretClassName:"color-text-inverse",children:o.jsx("div",{className:Qy("color-text-inverse fs-14px fw-400"),children:v.label||"Select Language"})}),o.jsx(uN,{placement:"top",tooltipOffset:8,tooltipEl:o.jsx("div",{className:Qy("fs-11px fw-500"),children:"Try it!"}),children:D?o.jsx(E_,{size:"md"}):o.jsx("div",{"aria-hidden":!0,onClick:ee,"aria-disabled":!!B,className:Qy("dss-p-6 dss-br-6 bg-brand flex-center cursor"),style:{border:"none"},children:o.jsx(Lw,{size:R.base,className:"color-text-inverse"})})})]})]}),o.jsx("div",{className:"ref-tryout-section__body br-b-8px",children:B?o.jsx("div",{className:Qy("flex-center fs-12px fw-400 dss-px-12 dss-py-20 h-100"),style:{color:"#FAFAFA",background:"#1F1F1F"},children:c?c.error:""}):o.jsx(tJ,{code:x,lang:me[v.language],theme:"dark",tokens:{bg:r?"#1F1F1F":"#434343"},style:{height:"100%",width:"100%",boxSizing:"border-box"}})})]}),o.jsx("div",{className:Qy("ref-tryout-modal-sm__section","dss-br-8 flex-col",r?"border-gray-primary-1px":"border-secondary-1px"),children:N||k?N&&h.statusCode===Y?o.jsxs("div",{className:Qy("w-100 h-100 flex-col"),style:{overflow:"hidden",background:r?"#F0F0F0":"#222325",minHeight:0},children:[o.jsxs("div",{className:Qy("ref-tryout-section__header","flex-rows vt-center hz-space-between br-t-8px"),style:{background:r?"#434343":"#F0F0F0"},children:[o.jsx("p",{className:Qy("color-text-inverse fs-14px fw-400 dss-my-0"),children:"Response"}),o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-8"),children:[o.jsx(hN,{options:K,ddPositionClassName:"bg-L1 overflow-y catalog-dd-max-h zIndex-12",optionClassName:"color-primary fs-11px fw-400 dss-p-8",caretClassName:"color-primary",children:o.jsx("div",{className:Qy(""),children:N?o.jsxs("div",{className:Qy("flex-rows dss-gap-8 vt-center"),children:[h.statusCode!==Y&&o.jsx(pX,{name:h.statusCode,textProps:{className:"",color:"color-primary",fontSize:"fs-12px",fontWeight:"fw-400"}}),o.jsx("div",{className:Qy("bg-base border-00-0_5px dss-br-4 fs-13px dss-px-4 dss-py-2 color-03"),children:"Log"})]}):k?o.jsx("div",{className:Qy("flex-rows dss-gap-8 vt-center"),children:o.jsx(pX,{name:k.name,textProps:{className:"",color:"color-primary",fontSize:"fs-12px",fontWeight:"fw-400"}})}):o.jsx(VK,{text:"Examples",textProps:{className:"",color:"color-primary",fontSize:"fs-12px",fontWeight:"fw-400"}})})}),o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-4"),children:[o.jsx("span",{className:Qy("br-circle"),style:{width:"8px",height:"8px",background:N?"#F24848":"#6B7280"}}),N&&h.statusCode!==Y?o.jsx("p",{className:Qy("color-text-inverse fs-11px fw-500 dss-my-0"),children:h.statusCode}):null]})]})]}),o.jsxs("div",{className:"ref-tryout-section__body flex-col vt-center hz-center text-center w-100 dss-py-20 dss-gap-8",children:[o.jsx(Ew,{size:R.xxl,className:"color-text-inverse"}),o.jsx("span",{className:"color-text-inverse fs-12px fw-400 lh-133",children:"Network Error"})]})]}):o.jsxs("div",{className:Qy("flex-col h-100 w-100"),style:{minHeight:0,overflow:"hidden"},children:[o.jsxs("div",{className:Qy("ref-tryout-section__header","flex-rows vt-center hz-space-between br-t-8px border-bottom-secondary-1px"),style:{background:r?"#434343":"#F0F0F0"},children:[o.jsx("p",{className:Qy("color-primary fs-14px fw-400 dss-my-0"),children:"Response"}),o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-8"),children:[o.jsx(hN,{options:K,ddPositionClassName:"bg-L1 overflow-y catalog-dd-max-h zIndex-12",optionClassName:"color-primary fs-11px fw-400 dss-p-8",caretClassName:"color-primary",children:o.jsx("div",{className:Qy(""),children:N?o.jsxs("div",{className:Qy("flex-rows dss-gap-8 vt-center"),children:[h.statusCode!==Y&&o.jsx(pX,{name:h.statusCode,textProps:{className:"",color:"color-primary",fontSize:"fs-12px",fontWeight:"fw-400"}}),o.jsx("div",{className:Qy("bg-base border-00-0_5px dss-br-4 fs-11px dss-px-4 dss-py-2 color-primary"),children:"Log"})]}):k?o.jsx("div",{className:Qy("flex-rows dss-gap-8 vt-center"),children:o.jsx(pX,{name:k.name,textProps:{className:"",color:"color-primary",fontSize:"fs-12px",fontWeight:"fw-400"}})}):o.jsx(VK,{text:"Examples",textProps:{className:"",color:"color-primary",fontSize:"fs-12px",fontWeight:"fw-400"}})})}),o.jsx("div",{className:Qy("flex-rows vt-center dss-gap-4"),children:N&&h.statusCode!==Y?o.jsx("p",{className:Qy("color-primary fs-11px fw-500 dss-my-0"),children:h.statusCode}):null})]})]}),o.jsx("div",{className:"ref-tryout-section__body",children:o.jsx(tJ,{code:N?H.value:F.value,lang:"json",style:{height:"100%",width:"100%",boxSizing:"border-box"},tokens:{attr:"#0265DC",string:r?"#FAFAFA":"#262626",punctuation:r?"#FAFAFA":"#262626",bg:r?"#1F1F1F":"#F5F5F5"}})})]}):o.jsxs("div",{className:Qy("flex-col h-100 w-100"),style:{minHeight:0,overflow:"hidden"},children:[o.jsxs("div",{className:Qy("ref-tryout-section__header","flex-rows vt-center hz-space-between br-t-8px border-bottom-secondary-1px"),style:{background:r?"#434343":"#F0F0F0"},children:[o.jsx("p",{className:Qy("color-primary fs-14px fw-400 dss-my-0"),children:"Response"}),o.jsx("div",{className:Qy("flex-rows vt-center dss-gap-8"),children:o.jsx(hN,{options:K,ddPositionClassName:"bg-L1 overflow-y catalog-dd-max-h zIndex-12",optionClassName:"color-primary fs-11px fw-400 dss-p-8",caretClassName:"color-primary",children:o.jsx("div",{className:Qy(""),children:N?o.jsxs("div",{className:Qy("flex-rows dss-gap-8 vt-center"),children:[h.statusCode!==Y&&o.jsx(pX,{name:h.statusCode,textProps:{className:"",color:"color-primary",fontSize:"fs-12px",fontWeight:"fw-400"}}),o.jsx("div",{className:Qy("bg-base border-00-0_5px dss-br-4 fs-13px dss-px-4 dss-py-2 color-03"),children:"Log"})]}):k?o.jsx("div",{className:Qy("flex-rows dss-gap-8 vt-center"),children:o.jsx(pX,{name:k.name,textProps:{className:"",color:"color-primary",fontSize:"fs-12px",fontWeight:"fw-400"}})}):o.jsx(VK,{text:"Examples",textProps:{className:"",color:"color-primary",fontSize:"fs-14px",fontWeight:"fw-400"}})})})})]}),o.jsxs("div",{className:"ref-tryout-section__body flex-col vt-center hz-center text-center dss-gap-8",style:{background:r?"#1F1F1F":"#F0F0F0"},children:[o.jsx(Ew,{size:R.xxl,className:"color-primary"}),o.jsx("span",{className:Qy("color-primary fs-12px fw-400 lh-133"),children:"No Response To Show Yet"}),o.jsxs("div",{className:Qy("flex-rows vt-center hz-center dss-gap-4 dss-px-8 dss-py-4 dss-br-6 cursor"),onClick:ee,children:[o.jsx(Lw,{size:R.md,className:"color-brand"}),o.jsx("p",{className:Qy("fs-12px fw-500 color-brand dss-my-0"),children:"Try Now"})]})]})]})})]}),o.jsxs("div",{className:Qy("ref-tryout-modal-sm__footer","flex-rows vt-center dss-gap-8 w-100"),children:[o.jsxs("div",{className:Qy("dss-br-6 border-secondary-1px bg-ground flex-center dss-gap-4 w-49 dss-h-40"),onClick:Z,children:[o.jsx(vw,{size:R.sm,className:Qy("color-primary")}),o.jsx("p",{className:Qy("color-secondary fs-11px fw-400 dss-my-0"),children:P})]}),o.jsx("div",{className:Qy("dss-br-6 bg-link flex-center dss-gap-4 w-49 dss-h-40"),onClick:ee,children:D?o.jsx(x_,{type:ne.BUTTON,color:"color-primary"}):o.jsxs(o.Fragment,{children:[o.jsx(Lw,{size:R.sm,className:Qy("color-button-00")}),o.jsx("p",{className:Qy("color-button-00 fs-11px fw-400 dss-my-0"),children:"Run"})]})})]})]}):null:d&&m===q.WORKFLOWS?null:o.jsx("div",{className:Qy("h-100 w-100 color-00 fs-14px flex-center"),children:o.jsx(JS,{message:"No Resource Selected"})})}var c7=p.default.memo(s7);function l7(){var n=t.useSelector(function(e){return e.guides.selectedDocument.tableOfContents},zy),r=t.useSelector(function(e){return e.guides.selectedAnchorId},zy),i=t.useSelector(function(e){return e.guides.selectedDocument.documentId},zy),a=t.useSelector(function(e){return e.guides.selectedDocument.content},zy),s=t.useSelector(function(e){return e.guides.selectedDocument.loading},zy),c=t.useDispatch();e.useEffect(function(){tf("")},[i]),e.useEffect(function(){var e=pd()?window.location.hash.substring(1):"",t=setInterval(function(){try{document.getElementById(e)?(l(e),clearInterval(t)):clearInterval(t)}catch(e){console.log("err",e)}},500)},[]);var l=e.useCallback(function(e){c(tf(e));var t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth",block:"start"})},[]);return s?o.jsx(E_,{message:"Loading Document"}):a?o.jsx("div",{className:Qy("dss-pl-24 dss-pt-60 dss-pr-80 flex-col dss-gap-16"),children:!(!n||!n.length)&&o.jsx(o.Fragment,{children:o.jsxs("div",{className:Qy("flex-col"),children:[o.jsx("div",{className:"dss-py-8",children:o.jsx("p",{className:"fw-700 fs-11px lh-16px color-primary",children:"TABLE OF CONTENTS"})}),o.jsx("div",{className:Qy("flex-col"),children:n.map(function(e){return o.jsxs("div",{children:[o.jsx("div",{"aria-hidden":!0,onClick:function(){return l(e.anchorId)},className:Qy("dss-px-12 dss-py-8 cursor","fs-13px fw-400",r===e.anchorId?"color-primary border-left-primary-1 fw-500":"hover-text-primary color-secondary hover-border-left-tertiary-1 border-left-gray-primary-1"),children:o.jsx("a",{href:"#".concat(e.anchorId),style:{textDecoration:"none",color:"inherit"},dangerouslySetInnerHTML:{__html:e.text}})},e.anchorId),e.h3s.map(function(e){return o.jsx("div",{"aria-hidden":!0,onClick:function(){return l(e.anchorId)},className:Qy("dss-px-28 dss-py-8 cursor text-truncate-1","fs-13px fw-400",r===e.anchorId?"color-primary border-left-tertiary-1 fw-500":"hover-text-primary color-secondary hover-border-left-tertiary-1 border-left-gray-primary-1"),dangerouslySetInnerHTML:{__html:e.text},title:e.text},e.anchorId)})]})})})]})})}):null}var u7=p.default.memo(l7);function p7(){var e=t.useSelector(function(e){return e.apiReference.view},zy),n=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy);return e===ae.INTRO?n?null:o.jsx(u7,{}):o.jsx(c7,{})}var d7=p.default.memo(p7),f7=function(){return _(function e(t){var n=t.swaggerData,r=t.swaggerId,o=t.revision,i=t.swaggerVersion,a=t.selectedMethod,s=t.selectedPath;v(this,e),this.swaggerData=n,this.swaggerId=r,this.revision=o,this.swaggerVersion=i,this.selectedMethod=a,this.selectedPath=s},[{key:"toObject",value:function(){return Object.freeze({swaggerData:this.swaggerData,swaggerId:this.swaggerId,revision:this.revision,swaggerVersion:this.swaggerVersion,selectedMethod:this.selectedMethod,selectedPath:this.selectedPath})}}])}(),h7={"modal-content":"style-module_modal-content__--LvD",sm:"style-module_sm__83wjc",md:"style-module_md__LmwBG",xl:"style-module_xl__fYj1a",full:"style-module_full__mLKLm"};function m7(t){var n=t.open,r=t.size,i=t.header,a=t.footer,s=t.children,l=t.onClickOutside,u=e.useRef(null),p=Ce(e.useState(null),2),d=p[0],f=p[1];return $_(u,function(){l&&l()}),e.useEffect(function(){var e=document.getElementById("app-root"),t=document.querySelector("#app-root .apiwiz-catalog-library")||document.querySelector(".apiwiz-catalog-library"),n=document.getElementById("modal-root");if(t){var r=t.querySelector("#modal-root")||document.createElement("div");return r.id="modal-root",r.parentElement||t.appendChild(r),void f(r)}if(e){if(n&&e.contains(n))return void f(n);var o=n||document.createElement("div");return o.id="modal-root",e.appendChild(o),void f(o)}n&&f(n)},[]),n&&d?c.createPortal(o.jsx("div",{className:Qy("modal","position-fixed ab-t-0px ab-l-0px","w-100 h-100vh bg-base-modalbg","zIndex-11","flex-rows hz-end"),children:o.jsxs("div",{ref:u,className:Qy(h7["modal-content"],h7[r],"modal-content","flex-col","bg-base"),children:[i?o.jsx("div",{className:Qy("dss-h-62"),children:i}):null,o.jsx("div",{className:Qy("modal-body",i&&a?"h--124px":a||i?"h--62px":"h-100"),children:s}),a?o.jsx("div",{className:Qy("dss-h-62"),children:a}):null]})}),d):null}m7.propTypes={open:tb.bool.isRequired,size:tb.string,children:tb.oneOfType([tb.element,tb.func,tb.object]),header:tb.element,footer:tb.element,onClickOutside:tb.func},m7.defaultProps={children:null,size:"xl",header:null,footer:null,onClickOutside:null};var g7,y7,v7=p.default.memo(m7);var b7=function(){if(y7)return g7;y7=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,r=/^0o[0-7]+$/i,o=parseInt,i="object"==typeof S&&S&&S.Object===Object&&S,a="object"==typeof self&&self&&self.Object===Object&&self,s=i||a||Function("return this")(),c=Object.prototype.toString,l=Math.max,u=Math.min,p=function(){return s.Date.now()};function d(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function f(i){if("number"==typeof i)return i;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==c.call(e)}(i))return NaN;if(d(i)){var a="function"==typeof i.valueOf?i.valueOf():i;i=d(a)?a+"":a}if("string"!=typeof i)return 0===i?i:+i;i=i.replace(e,"");var s=n.test(i);return s||r.test(i)?o(i.slice(2),s?2:8):t.test(i)?NaN:+i}return g7=function(e,t,n){var r,o,i,a,s,c,h=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=r,i=o;return r=o=void 0,h=t,a=e.apply(i,n)}function b(e){var n=e-c;return void 0===c||n>=t||n<0||g&&e-h>=i}function w(){var e=p();if(b(e))return x(e);s=setTimeout(w,function(e){var n=t-(e-c);return g?u(n,i-(e-h)):n}(e))}function x(e){return s=void 0,y&&r?v(e):(r=o=void 0,a)}function _(){var e=p(),n=b(e);if(r=arguments,o=this,c=e,n){if(void 0===s)return function(e){return h=e,s=setTimeout(w,t),m?v(e):a}(c);if(g)return s=setTimeout(w,t),v(c)}return void 0===s&&(s=setTimeout(w,t)),a}return t=f(t)||0,d(n)&&(m=!!n.leading,i=(g="maxWait"in n)?l(f(n.maxWait)||0,t):i,y="trailing"in n?!!n.trailing:y),_.cancel=function(){void 0!==s&&clearTimeout(s),h=0,r=c=o=s=void 0},_.flush=function(){return void 0===s?a:x(p())},_},g7}(),w7=N(b7);function x7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x7(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function E7(n){var r=n.moduleType,i=n.CenterContent,a=n.RightPanel,s=n.RightSidenav,c=n.LeftPanel,l=n.enableLeftPanel,u=n.appTheme,p=void 0===u?V.LIGHT:u,d=n.hideRightPanel,f=void 0!==d&&d,h=n.disableTryout,m=void 0!==h&&h,g=n.hideScroll,y=void 0!==g&&g,v=t.useDispatch(),b=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),w=t.useSelector(function(e){return e.libConfig.isLargeDevice},zy),x=t.useSelector(function(e){return e.libConfig.currentPKG},zy),_=t.useSelector(function(e){return e.workflows.view},zy),E=t.useSelector(function(e){return e.graphql.view},zy),k=t.useSelector(function(e){return e.apiReference.view},zy),O=t.useSelector(function(e){return e.apiReference.selected.operation},zy),A=t.useSelector(function(e){return e.apiReference.rightSidenavExpanded},zy),D=t.useSelector(function(e){return e.modal.smallDevice.curlModal}),M=Wy(),C=Ce(e.useState(!0),2),S=C[0],N=C[1],j=Ce(e.useState(!1),2),T=j[0],P=j[1],I=t.useSelector(function(e){return e.guides.guides}),R=t.useSelector(function(e){return e.guides.selectedDocument.content},zy),L=e.useRef(null),F=Ce(e.useState(!1),2),H=F[0],$=F[1],B=!f&&!m,U=function(e){var t=e.matches;v(qm(!!t))};e.useLayoutEffect(function(){!function(){class e extends Map{constructor(e,t){super(),this[cf]={type_:2,parent_:t,scope_:t?t.scope_:jf(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:e,draft_:this,isManual_:!1,revoked_:!1}}get size(){return Ef(this[cf]).size}has(e){return Ef(this[cf]).has(e)}set(e,n){const r=this[cf];return o(r),Ef(r).has(e)&&Ef(r).get(e)===n||(t(r),Wf(r),r.assigned_.set(e,!0),r.copy_.set(e,n),r.assigned_.set(e,!0)),this}delete(e){if(!this.has(e))return!1;const n=this[cf];return o(n),t(n),Wf(n),n.base_.has(e)?n.assigned_.set(e,!1):n.assigned_.delete(e),n.copy_.delete(e),!0}clear(){const e=this[cf];o(e),Ef(e).size&&(t(e),Wf(e),e.assigned_=new Map,gf(e.base_,t=>{e.assigned_.set(t,!1)}),e.copy_.clear())}forEach(e,t){Ef(this[cf]).forEach((n,r,o)=>{e.call(t,this.get(r),r,this)})}get(e){const n=this[cf];o(n);const r=Ef(n).get(e);if(n.finalized_||!ff(r))return r;if(r!==n.base_.get(e))return r;const i=Yf(r,n);return t(n),n.copy_.set(e,i),i}keys(){return Ef(this[cf]).keys()}values(){const e=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const t=e.next();return t.done?t:{done:!1,value:this.get(t.value)}}}}entries(){const e=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const t=e.next();if(t.done)return t;const n=this.get(t.value);return{done:!1,value:[t.value,n]}}}}[Symbol.iterator](){return this.entries()}}function t(e){e.copy_||(e.assigned_=new Map,e.copy_=new Map(e.base_))}class n extends Set{constructor(e,t){super(),this[cf]={type_:3,parent_:t,scope_:t?t.scope_:jf(),modified_:!1,finalized_:!1,copy_:void 0,base_:e,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return Ef(this[cf]).size}has(e){const t=this[cf];return o(t),t.copy_?!!t.copy_.has(e)||!(!t.drafts_.has(e)||!t.copy_.has(t.drafts_.get(e))):t.base_.has(e)}add(e){const t=this[cf];return o(t),this.has(e)||(r(t),Wf(t),t.copy_.add(e)),this}delete(e){if(!this.has(e))return!1;const t=this[cf];return o(t),r(t),Wf(t),t.copy_.delete(e)||!!t.drafts_.has(e)&&t.copy_.delete(t.drafts_.get(e))}clear(){const e=this[cf];o(e),Ef(e).size&&(r(e),Wf(e),e.copy_.clear())}values(){const e=this[cf];return o(e),r(e),e.copy_.values()}entries(){const e=this[cf];return o(e),r(e),e.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(e,t){const n=this.values();let r=n.next();for(;!r.done;)e.call(t,r.value,r.value,this),r=n.next()}}function r(e){e.copy_||(e.copy_=new Set,e.base_.forEach(t=>{if(ff(t)){const n=Yf(t,e);e.drafts_.set(t,n),e.copy_.add(n)}else e.copy_.add(t)}))}function o(e){e.revoked_&&uf(3,JSON.stringify(Ef(e)))}Nf("MapSet",{proxyMap_:function(t,n){return new e(t,n)},proxySet_:function(e,t){return new n(e,t)}})}(),v(Hm(r));var e=!1;return p&&(p===W.V2_APP.LIGHT?v(qm(!1)):v(qm(!0)),e=!0),pd()&&!e&&window.matchMedia&&(U(window.matchMedia("(prefers-color-scheme: dark)")),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",U)),e||v(qm(!1)),function(){pd()&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",U)}},[]);var z=w7(function(){v(Um())},500),Z=function(){z()};e.useEffect(function(){return pd()&&window.addEventListener("resize",Z),function(){pd()&&window.removeEventListener("resize",Z)}},[]),e.useEffect(function(){setTimeout(function(){return $(!0)},2e3)},[]),e.useEffect(function(){p&&p===V.DARK?v(qm(!0)):v(qm(!1))},[p]),e.useEffect(function(){N(!0),setTimeout(function(){N(!1)},1e3),x===q.API_ENDPOINTS&&k===ae.RESOURCE?P(!0):P(!1)},[x]),e.useEffect(function(){var e={};I.forEach(function(t){e[t.category]=t}),v(rf(e))},[I]),e.useEffect(function(){if(R&&x===q.GUIDES){if(!L.current)return;var e=function(){var e=null;R.blocks.forEach(function(t){"header"===t.type&&(document.getElementById(t.data.anchorId)&&document.getElementById(t.data.anchorId).getBoundingClientRect().top<=160&&(e=t.data.anchorId))}),e&&v(tf(e))};return L.current.addEventListener("scroll",e),function(){L&&L.current&&L.current.removeEventListener("scroll",e)}}},[R,H]),e.useEffect(function(){x===q.API_ENDPOINTS&&k===ae.RESOURCE?P(!0):P(!1)},[k]);var Y=e.useMemo(function(){return x===q.WORKFLOWS&&_===se.WORKFLOW_SELECTED||x===q.GRAPHQL&&E===ce.EXPLORER},[x,_]),G=function(){var e=document.getElementById(x===q.GUIDES?"":"center-title-bar");e&&e.scrollIntoView({behavior:"smooth"})},Q=e.useCallback(function(){b&&v(sg())},[]);e.useCallback(function(e){if(x===q.WORKFLOWS)return null;if(x===q.GRAPHQL&&E===ce.EXPLORER)return null;if(a){var t=x===q.GUIDES?o.jsx("div",{style:{width:"30%"},id:"right-panel-lg",className:Qy("overflow-y noscrollbar h-100"),children:o.jsx(a,_7({},e))}):o.jsx("div",{id:"right-panel-lg",className:Qy("ref-right-panel","h-100"),children:o.jsx(a,_7({},e))});return T?A?t:o.jsx("div",{className:Qy("right-sidenav"),children:o.jsx(s,_7({},e))}):t}return null},[a,s,x,E,T,A]);var K=e.useCallback(function(e){return x===q.WORKFLOWS?o.jsx("div",{id:"center-content-lg",className:Qy("center-content-fill h-100","border-right-00-1px",!Y&&"dss-px-56 dss-py-32","overflow-y noscrollbar w-75"),children:o.jsx(i,_7({},e))}):x===q.GRAPHQL&&E===ce.EXPLORER?o.jsx("div",{id:"center-content-lg",className:Qy("center-content-fill","border-right-00-1px","overflow-y noscrollbar"),children:o.jsx(i,_7({},e))}):o.jsx("div",{id:"center-content-lg",style:{flex:1,minWidth:0},className:Qy(T&&!A&&"center-content-expanded-right","flex-rows h-100 w-100"),ref:L,children:o.jsxs("div",{style:{height:"auto"},className:Qy("position-relative flex-col w-100",!Y&&""),children:[o.jsx(i,_7({},e)),x===q.API_ENDPOINTS&&!y&&o.jsx("div",{className:Qy("catalog-fab-stack catalog-fab-stack--desktop"),children:o.jsx("div",{id:"uparrow",className:Qy("catalog-fab-btn border-secondary-1px bg-gray-l2 color-primary hover-bg-L2"),children:o.jsx(ev,{size:M.xxl,onClick:G})})})]})})},[i,x,E,T,A,Y,y,M.xxl]);return b?o.jsx("div",{className:"flex-col w-100 h-100",children:o.jsx("div",{id:"body-layout-sm",className:Qy("page-pad-x page-pad-y","overflow-y noscrollbar"),children:S?o.jsx(E_,{message:"Loading...",size:"lg"}):o.jsxs("div",{className:Qy("flex-col position-relative h-100"),children:[o.jsx(i,_7({},n)),B&&(x===q.API_ENDPOINTS||x===q.GRAPHQL)&&o.jsx(v7,{open:D,onClickOutside:Q,size:"full",children:o.jsx("div",{className:Qy("right-panel h-100"),children:o.jsx(a,_7({},n))})}),o.jsxs("div",{className:Qy("catalog-fab-stack"),children:[(b&&x!==q.WORKFLOWS||w)&&o.jsx("div",{id:"uparrow",className:Qy("catalog-fab-btn border-secondary-1px bg-gray-l2 color-primary"),children:o.jsx(ev,{size:M.xxl,onClick:G})}),B&&(x===q.API_ENDPOINTS&&O&&Object.keys(O||{}).length>0||x===q.GRAPHQL)&&o.jsx("div",{className:Qy("catalog-fab-btn border-secondary-1px bg-gray-l2 color-primary"),children:o.jsx(lv,{size:M.xxl,onClick:function(){return v(sg())}})})]})]})})}):o.jsx("div",{className:"apiwiz-catalog-library",style:_7({height:"100%",width:"100%"},n.layoutStyles),children:o.jsx("div",{className:Qy("main-layout bg-ground text-size-md","w-100 h-100"),style:_7({},n.layoutStyles),children:o.jsx("div",{style:_7({display:"flex",alignItems:"center",overflowY:"hidden",width:"100%",height:"100%"},n.layoutStyles),children:S?o.jsx(E_,{message:"Loading...",size:"lg"}):o.jsxs(o.Fragment,{children:[l&&o.jsx("div",{className:Qy("left-panel left-panel-shell","h-100","border-right-00-1px"),children:c?o.jsx(c,{}):null}),x!==q.GUIDES||R&&R.blocks&&R.blocks.length?o.jsx("div",{className:Qy("main-content-shell flex-rows vt-stretch h-100 w-100 bg-L1"),children:o.jsx("div",{id:"panels-wrapper",className:Qy("flex-rows h-100 content-max"),children:K(n)})}):o.jsx(F_,{})]})})})})}var k7=p.default.memo(E7,zy);function O7(e){return e?(Ga({operations:Ya({swagger:e}).operations}).list||[]).map(function(e){var t,n;return{id:"".concat(e.apiMethod," ").concat(e.endpoint),method:e.apiMethod,path:e.endpoint,tag:((null===(t=e.api)||void 0===t?void 0:t.tags)||[])[0]||"default",summary:e.summary||(null===(n=e.api)||void 0===n?void 0:n.summary)||"",operation:e}}):[]}function A7(e){return ve(e)}function D7(e,t,n){return e.find(function(e){return e.method===t&&e.path===n})}function M7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function C7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M7(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var S7=[{id:"oas-2.0-enterprise",label:"OAS 2.0 — Enterprise Commerce",swaggerData:{swagger:"2.0",info:{title:"Swagger Petstore",version:"1.0.7",description:"The **Swagger Petstore** is a complete sample API that demonstrates how a real-world catalog is organized and documented. It models a small online pet store and is grouped into three domains:\n\n- **Pet** — create, update, search, and manage the animals available for adoption or sale.\n- **Store** — inspect inventory levels and place or track purchase orders.\n- **User** — register accounts and manage the full user lifecycle, including authentication.\n\nUse it as a reference for how endpoints, request/response models, authentication, and example values appear in the catalog. For testing the authorization filters you can use the API key `special-key`.\n\nLearn more at [swagger.io](http://swagger.io) or join the community on [irc.freenode.net, #swagger](http://swagger.io/irc/).",termsOfService:"http://swagger.io/terms/",contact:{name:"Petstore API Support",url:"http://swagger.io",email:"apiteam@swagger.io"},license:{name:"Apache 2.0",url:"http://www.apache.org/licenses/LICENSE-2.0.html"}},host:"petstore.swagger.io",basePath:"/v2",schemes:["https","http"],tags:[{name:"pet",description:"Everything about your Pets — add new animals to the catalog, update their details, search by status or tags, upload photos, and remove listings.",externalDocs:{description:"Find out more",url:"http://swagger.io"}},{name:"store",description:"Access to Petstore orders — check live inventory by status and place, retrieve, or cancel purchase orders.",externalDocs:{description:"Find out more about our store",url:"http://swagger.io"}},{name:"user",description:"Operations about users — register accounts, authenticate, and manage the user lifecycle from creation through deletion.",externalDocs:{description:"Find out more about our store",url:"http://swagger.io"}}],paths:{"/pet":{post:{tags:["pet"],summary:"Add a new pet to the store",description:"Creates a brand-new pet listing in the catalog. Provide the full Pet object in the request body — at minimum a `name` and one or more `photoUrls` are required. The store assigns and returns the generated `id`.",operationId:"addPet",consumes:["application/json","application/xml"],produces:["application/json","application/xml"],parameters:[{name:"Authorization",in:"header",description:"Authorization token for the request. Use `Bearer special-key` for testing.",required:!0,type:"string",default:"Bearer special-key"},{in:"body",name:"body",description:"The Pet object to add to the store. Include the pet's name, photo URLs, optional category, tags, and availability status.",required:!0,schema:{$ref:"#/definitions/Pet"}}],responses:{200:{description:"Pet created successfully.",schema:{$ref:"#/definitions/Pet"}},405:{description:"Invalid input — the request body failed validation."}},security:[{petstore_auth:["write:pets","read:pets"]}]},put:{tags:["pet"],summary:"Update an existing pet",description:"Updates an existing pet listing in place. Supply the complete Pet object, including the `id` of the pet you wish to modify. Fields omitted from the body may be cleared, so send the full representation.",operationId:"updatePet",consumes:["application/json","application/xml"],produces:["application/json","application/xml"],parameters:[{name:"Authorization",in:"header",description:"Authorization token for the request. Use `Bearer special-key` for testing.",required:!0,type:"string",default:"Bearer special-key"},{in:"body",name:"body",description:"The Pet object containing the updated details. The `id` field identifies which pet to update.",required:!0,schema:{$ref:"#/definitions/Pet"}}],responses:{200:{description:"Pet updated successfully.",schema:{$ref:"#/definitions/Pet"}},400:{description:"Invalid ID supplied."},404:{description:"Pet not found."},405:{description:"Validation exception — one or more fields failed validation."}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/pet/findByStatus":{get:{tags:["pet"],summary:"Find pets by status",description:"Returns all pets that match the supplied availability status. Multiple status values can be provided as a comma-separated list to widen the search — for example `available,pending`.",operationId:"findPetsByStatus",produces:["application/json","application/xml"],parameters:[{name:"Authorization",in:"header",description:"Authorization token for the request. Use `Bearer special-key` for testing.",required:!0,type:"string",default:"Bearer special-key"},{name:"status",in:"query",description:"The availability statuses to filter pets by. Accepts one or more of: `available`, `pending`, `sold`.",required:!0,type:"array",items:{type:"string",enum:["available","pending","sold"],default:"available"},default:["available"],collectionFormat:"multi"}],responses:{200:{description:"A list of pets matching the requested status(es).",schema:{type:"array",items:{$ref:"#/definitions/Pet"}}},400:{description:"Invalid status value — one of the supplied statuses is not recognized."}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/pet/findByTags":{get:{tags:["pet"],summary:"Find pets by tags",description:"Returns all pets that carry the supplied tags. Multiple tags can be provided as a comma-separated list. Use `tag1`, `tag2`, `tag3` for testing.\n\n> **Deprecated:** This endpoint is retained for backwards compatibility and may be removed in a future release.",operationId:"findPetsByTags",produces:["application/json","application/xml"],parameters:[{name:"Authorization",in:"header",description:"Authorization token for the request. Use `Bearer special-key` for testing.",required:!0,type:"string",default:"Bearer special-key"},{name:"tags",in:"query",description:"One or more tags to filter pets by.",required:!0,type:"array",items:{type:"string"},default:["tag1"],collectionFormat:"multi"}],responses:{200:{description:"A list of pets matching the requested tag(s).",schema:{type:"array",items:{$ref:"#/definitions/Pet"}}},400:{description:"Invalid tag value."}},security:[{petstore_auth:["write:pets","read:pets"]}],deprecated:!0}},"/pet/{petId}":{get:{tags:["pet"],summary:"Find pet by ID",description:"Returns a single pet by its unique identifier. Use this to retrieve the full details of one specific animal in the catalog.",operationId:"getPetById",produces:["application/json","application/xml"],parameters:[{name:"Authorization",in:"header",description:"Authorization token for the request. Use `Bearer special-key` for testing.",required:!0,type:"string",default:"Bearer special-key"},{name:"petId",in:"path",description:"The unique ID of the pet to fetch.",required:!0,type:"integer",format:"int64",default:10}],responses:{200:{description:"The requested pet.",schema:{$ref:"#/definitions/Pet"}},400:{description:"Invalid ID supplied."},404:{description:"Pet not found."}},security:[{api_key:[]}]},post:{tags:["pet"],summary:"Update a pet with form data",description:"Updates the name and/or status of an existing pet using URL-encoded form data. Handy for lightweight edits without sending the full Pet object.",operationId:"updatePetWithForm",consumes:["application/x-www-form-urlencoded"],produces:["application/json","application/xml"],parameters:[{name:"Authorization",in:"header",description:"Authorization token for the request. Use `Bearer special-key` for testing.",required:!0,type:"string",default:"Bearer special-key"},{name:"petId",in:"path",description:"The unique ID of the pet to update.",required:!0,type:"integer",format:"int64",default:10},{name:"name",in:"formData",description:"The new name for the pet.",required:!1,type:"string",default:"doggie"},{name:"status",in:"formData",description:"The new availability status for the pet (`available`, `pending`, or `sold`).",required:!1,type:"string",enum:["available","pending","sold"],default:"available"}],responses:{405:{description:"Invalid input."}},security:[{petstore_auth:["write:pets","read:pets"]}]},delete:{tags:["pet"],summary:"Delete a pet",description:"Permanently removes a pet listing from the catalog. This action cannot be undone.",operationId:"deletePet",produces:["application/json","application/xml"],parameters:[{name:"Authorization",in:"header",description:"Authorization token for the request. Use `Bearer special-key` for testing.",required:!0,type:"string",default:"Bearer special-key"},{name:"api_key",in:"header",description:"API key authorizing the deletion.",required:!1,type:"string",default:"special-key"},{name:"petId",in:"path",description:"The unique ID of the pet to delete.",required:!0,type:"integer",format:"int64",default:10}],responses:{400:{description:"Invalid ID supplied."},404:{description:"Pet not found."}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/pet/{petId}/uploadImage":{post:{tags:["pet"],summary:"Upload an image for a pet",description:"Uploads a photo and attaches it to the specified pet. The image is sent as multipart form data, with optional free-text metadata describing the upload.",operationId:"uploadFile",consumes:["multipart/form-data"],produces:["application/json"],parameters:[{name:"Authorization",in:"header",description:"Authorization token for the request. Use `Bearer special-key` for testing.",required:!0,type:"string",default:"Bearer special-key"},{name:"petId",in:"path",description:"The unique ID of the pet to attach the image to.",required:!0,type:"integer",format:"int64",default:10},{name:"additionalMetadata",in:"formData",description:"Optional free-text metadata to store alongside the image.",required:!1,type:"string",default:"Profile photo"},{name:"file",in:"formData",description:"The image file to upload.",required:!1,type:"file"}],responses:{200:{description:"Image uploaded successfully.",schema:{$ref:"#/definitions/ApiResponse"}}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/store/inventory":{get:{tags:["store"],summary:"Get pet inventory by status",description:"Returns a map of availability statuses to the number of pets currently in each. Useful for at-a-glance stock reporting.",operationId:"getInventory",produces:["application/json"],parameters:[{name:"Authorization",in:"header",description:"Authorization token for the request. Use `Bearer special-key` for testing.",required:!0,type:"string",default:"Bearer special-key"}],responses:{200:{description:"A map of status codes to the quantity of pets in each.",schema:{type:"object",additionalProperties:{type:"integer",format:"int32"}}}},security:[{api_key:[]}]}},"/store/order":{post:{tags:["store"],summary:"Place an order for a pet",description:"Submits a new purchase order for a pet. Provide the pet's ID, the desired quantity, and an optional ship date. The store returns the created order, including its generated `id` and current status.",operationId:"placeOrder",consumes:["application/json"],produces:["application/json","application/xml"],parameters:[{in:"body",name:"body",description:"The order to place, describing which pet to purchase and how many.",required:!0,schema:{$ref:"#/definitions/Order"}}],responses:{200:{description:"Order placed successfully.",schema:{$ref:"#/definitions/Order"}},400:{description:"Invalid order — the request body failed validation."}}}},"/store/order/{orderId}":{get:{tags:["store"],summary:"Find purchase order by ID",description:"Retrieves a single purchase order by its ID. For a valid response, use an integer ID between 1 and 10 (inclusive). Values outside this range will generate exceptions.",operationId:"getOrderById",produces:["application/json","application/xml"],parameters:[{name:"orderId",in:"path",description:"The ID of the order to fetch. Must be between 1 and 10.",required:!0,type:"integer",maximum:10,minimum:1,format:"int64",default:1}],responses:{200:{description:"The requested order.",schema:{$ref:"#/definitions/Order"}},400:{description:"Invalid ID supplied."},404:{description:"Order not found."}}},delete:{tags:["store"],summary:"Delete purchase order by ID",description:"Cancels and deletes a purchase order by its ID. For a valid response use a positive integer ID. Negative or non-integer values will generate API errors.",operationId:"deleteOrder",produces:["application/json","application/xml"],parameters:[{name:"orderId",in:"path",description:"The ID of the order to delete. Must be a positive integer.",required:!0,type:"integer",minimum:1,format:"int64",default:1}],responses:{400:{description:"Invalid ID supplied."},404:{description:"Order not found."}}}},"/user":{post:{tags:["user"],summary:"Create user",description:"Registers a single new user account. This operation can only be performed by a logged-in user.",operationId:"createUser",consumes:["application/json"],produces:["application/json","application/xml"],parameters:[{in:"body",name:"body",description:"The user account to create.",required:!0,schema:{$ref:"#/definitions/User"}}],responses:{default:{description:"Successful operation."}}}},"/user/createWithArray":{post:{tags:["user"],summary:"Create users from an array",description:"Registers multiple user accounts at once from a JSON array of User objects.",operationId:"createUsersWithArrayInput",consumes:["application/json"],produces:["application/json","application/xml"],parameters:[{in:"body",name:"body",description:"An array of user objects to create.",required:!0,schema:{type:"array",items:{$ref:"#/definitions/User"}}}],responses:{default:{description:"Successful operation."}}}},"/user/createWithList":{post:{tags:["user"],summary:"Create users from a list",description:"Registers multiple user accounts at once from a JSON list of User objects.",operationId:"createUsersWithListInput",consumes:["application/json"],produces:["application/json","application/xml"],parameters:[{in:"body",name:"body",description:"A list of user objects to create.",required:!0,schema:{type:"array",items:{$ref:"#/definitions/User"}}}],responses:{default:{description:"Successful operation."}}}},"/user/login":{get:{tags:["user"],summary:"Log user into the system",description:"Authenticates a user with their username and password and returns a session token. The response headers also report the rate limit and token expiry time.",operationId:"loginUser",produces:["application/json","application/xml"],parameters:[{name:"username",in:"query",description:"The username to log in with.",required:!0,type:"string",default:"user1"},{name:"password",in:"query",description:"The password for the account, in clear text.",required:!0,type:"string",default:"12345"}],responses:{200:{description:"Login successful — returns a session token.",headers:{"X-Rate-Limit":{type:"integer",format:"int32",description:"Number of API calls per hour allowed by the user."},"X-Expires-After":{type:"string",format:"date-time",description:"The UTC date and time at which the returned token expires."}},schema:{type:"string"}},400:{description:"Invalid username or password supplied."}}}},"/user/logout":{get:{tags:["user"],summary:"Log out the current user session",description:"Ends the session of the currently logged-in user, invalidating their token.",operationId:"logoutUser",produces:["application/json","application/xml"],parameters:[],responses:{default:{description:"Successful operation."}}}},"/user/{username}":{get:{tags:["user"],summary:"Get user by username",description:"Retrieves the profile details of a single user by their username. Use `user1` for testing.",operationId:"getUserByName",produces:["application/json","application/xml"],parameters:[{name:"username",in:"path",description:"The username of the account to fetch. Use `user1` for testing.",required:!0,type:"string",default:"user1"}],responses:{200:{description:"The requested user.",schema:{$ref:"#/definitions/User"}},400:{description:"Invalid username supplied."},404:{description:"User not found."}}},put:{tags:["user"],summary:"Update user",description:"Updates the profile of an existing user. This operation can only be performed by the logged-in user.",operationId:"updateUser",consumes:["application/json"],produces:["application/json","application/xml"],parameters:[{name:"username",in:"path",description:"The username of the account to update.",required:!0,type:"string",default:"user1"},{in:"body",name:"body",description:"The updated user object.",required:!0,schema:{$ref:"#/definitions/User"}}],responses:{400:{description:"Invalid user supplied."},404:{description:"User not found."}}},delete:{tags:["user"],summary:"Delete user",description:"Permanently deletes a user account. This operation can only be performed by the logged-in user.",operationId:"deleteUser",produces:["application/json","application/xml"],parameters:[{name:"username",in:"path",description:"The username of the account to delete.",required:!0,type:"string",default:"user1"}],responses:{400:{description:"Invalid username supplied."},404:{description:"User not found."}}}}},securityDefinitions:{api_key:{type:"apiKey",description:"API key authentication. Pass your key in the `api_key` request header.",name:"api_key",in:"header"},petstore_auth:{type:"oauth2",description:"OAuth2 authentication using the implicit flow. Grants scoped access to read and modify pets.",authorizationUrl:"https://petstore.swagger.io/oauth/authorize",flow:"implicit",scopes:{"read:pets":"Read access to your pets.","write:pets":"Create and modify pets in your account."}}},definitions:{Pet:{type:"object",description:"A pet available in the store, including its category, photos, tags, and availability status.",required:["name","photoUrls"],properties:{id:{type:"integer",format:"int64",description:"Unique identifier for the pet, assigned by the store.",example:10},category:{$ref:"#/definitions/Category"},name:{type:"string",description:"The pet's display name.",example:"doggie"},photoUrls:{type:"array",description:"One or more URLs pointing to photos of the pet.",xml:{wrapped:!0},items:{type:"string",xml:{name:"photoUrl"},example:"https://example.com/photos/doggie.jpg"},default:["https://example.com/photos/doggie.jpg"]},tags:{type:"array",description:"Tags used to categorize and search for the pet.",xml:{wrapped:!0},items:{xml:{name:"tag"},$ref:"#/definitions/Tag"}},status:{type:"string",description:"Availability status of the pet in the store.",enum:["available","pending","sold"],example:"available"}},xml:{name:"Pet"},example:{id:10,name:"doggie",category:{id:1,name:"Dogs"},photoUrls:["https://example.com/photos/doggie.jpg"],tags:[{id:1,name:"friendly"}],status:"available"}},Category:{type:"object",description:"A grouping that classifies pets, such as `Dogs` or `Cats`.",properties:{id:{type:"integer",format:"int64",description:"Unique identifier for the category.",example:1},name:{type:"string",description:"The display name of the category.",example:"Dogs"}},xml:{name:"Category"}},Tag:{type:"object",description:"A label that can be attached to a pet for searching and filtering.",properties:{id:{type:"integer",format:"int64",description:"Unique identifier for the tag.",example:1},name:{type:"string",description:"The display name of the tag.",example:"friendly"}},xml:{name:"Tag"}},Order:{type:"object",description:"A purchase order placed against the store for a specific pet.",properties:{id:{type:"integer",format:"int64",description:"Unique identifier for the order.",example:10},petId:{type:"integer",format:"int64",description:"The ID of the pet being purchased.",example:198772},quantity:{type:"integer",format:"int32",description:"Number of pets being ordered.",example:7},shipDate:{type:"string",format:"date-time",description:"The requested or scheduled shipment date and time, in UTC."},status:{type:"string",description:"Current status of the order.",enum:["placed","approved","delivered"],example:"approved"},complete:{type:"boolean",description:"Whether the order has been fully completed.",example:!1}},xml:{name:"Order"},example:{id:10,petId:198772,quantity:7,shipDate:"2026-06-26T10:00:00.000Z",status:"approved",complete:!1}},User:{type:"object",description:"A registered user account in the store.",properties:{id:{type:"integer",format:"int64",description:"Unique identifier for the user.",example:10},username:{type:"string",description:"The user's unique login name.",example:"theUser"},firstName:{type:"string",description:"The user's first name.",example:"John"},lastName:{type:"string",description:"The user's last name.",example:"James"},email:{type:"string",description:"The user's email address.",example:"john@email.com"},password:{type:"string",description:"The user's password (stored securely on the server).",example:"12345"},phone:{type:"string",description:"The user's contact phone number.",example:"12345"},userStatus:{type:"integer",format:"int32",description:"Account status flag (for example, active or suspended).",example:1}},xml:{name:"User"},example:{id:10,username:"theUser",firstName:"John",lastName:"James",email:"john@email.com",password:"12345",phone:"12345",userStatus:1}},ApiResponse:{type:"object",description:"A generic message returned by the API to describe the outcome of an operation.",properties:{code:{type:"integer",format:"int32",description:"A numeric status code for the operation.",example:200},type:{type:"string",description:"A short category for the response.",example:"success"},message:{type:"string",description:"A human-readable description of the outcome.",example:"Image uploaded successfully."}}}},externalDocs:{description:"Find out more about Swagger",url:"http://swagger.io"}},defaultMethod:"GET",defaultPath:"/products"},{id:"oas-3.0-extreme",label:"OAS 3.0 — Extreme Enterprise Platform",swaggerData:{openapi:"3.0.1",info:{title:"AppEnhancer Web Server",version:"v26.2.0"},paths:{"/api/v1/datasources/{dsn}/adhocqueryresults/{id}":{post:{tags:["AdhocQueryResults"],summary:"Run an adhoc query. This API supports the following OData query options: $Top, $Skip, $Count and $OrderBy.",description:'Example 1: The empty request body for querying all documents.\r\n```\r\n{}\r\n```\r\nExample 2: The request body for executing a document query.\r\n```\r\n{\r\n "QueryType": "DocumentQuery",\r\n "Indexes": [\r\n {\r\n "Name": "NAME",\r\n "Value": "pdf*",\r\n "IsODMAField": false,\r\n "Searchable": true,\r\n "Displayable": true\r\n }\r\n ]\r\n}\r\n```\r\nExample 3: The request body for executing a cross app query.\r\n```\r\n{\r\n "QueryType": "CrossAppQuery",\r\n "Indexes": [\r\n {\r\n "Name": "NAME",\r\n "Value": "pdf*",\r\n "IsODMAField": false,\r\n "Searchable": true,\r\n "Displayable": true\r\n }\r\n ],\r\n "Apps": [1,4]\r\n}\r\n```\r\nExample 4: The request body for executing a full-text query.\r\n```\r\n{\r\n "QueryType": "DocumentQuery",\r\n "FullText": {\r\n "QueryOperator": "And",\r\n "SearchType": "And",\r\n "Thesaurus": false,\r\n "Value": "software"\r\n }\r\n}\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32",default:0}},{name:"nativetype",in:"query",description:"Whether to return native index value type in the resultset",schema:{type:"boolean",default:!1}}],requestBody:{description:"QueryModel object",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryModel"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryResultCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryResultCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/appattributesdefinitions":{get:{tags:["AppAttributesDefinitions"],summary:"Get all application attributes definitions",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"object",additionalProperties:{type:"string"},description:"A list of all application attributes"}},'application/json; profile="urn:camelcase:upper"':{schema:{type:"object",additionalProperties:{type:"string"},description:"A list of all application attributes"}}}}}}},"/api/v1/datasources/{dsn}/appautoindexlookup/{id}":{post:{tags:["AppAutoIndexLookup"],summary:"Look up auto indexes that match provided query indexes",description:'Example 1: The request body for getting all auto index result collection.\r\n```\r\n[]\r\n```\r\nExample 2: The request body for getting the matched auto indexes.\r\n```\r\n[\r\n {\r\n "Name": "NAME",\r\n "Value": "PDF*"\r\n }\r\n]\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"nativetype",in:"query",description:"Whether to return native index value type in the result set",schema:{type:"boolean",default:!1}}],requestBody:{description:"Query index array",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryIndex"}}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryResultCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryResultCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["AppAutoIndexLookup"],summary:"Delete all auto indexes",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}}],responses:{204:{description:"No Content"},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/appautoindexlookup/{id}/{idx}":{delete:{tags:["AppAutoIndexLookup"],summary:"Delete a specific auto index",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"Auto index ID. Must be greater than 0.",required:!0,schema:{type:"integer",format:"int32"}}],responses:{204:{description:"No Content"},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/appfields/{id}":{get:{tags:["AppFields"],summary:"Get all application field resources for the specified data source. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.AppFields"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.AppFields"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/appfields/{id}/{idx}":{get:{tags:["AppFields"],summary:"Get a specific application field resource",description:"",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"Field ID",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.AppField"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.AppField"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/appkeyreflookup/{id}":{get:{tags:["AppKeyRefLookup"],summary:"Look up key reference index values that match provided field value",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"fieldvalue",in:"query",description:"KeyRef value to lookup for",required:!0,schema:{type:"string"}},{name:"nativetype",in:"query",description:"Whether to return native type index value",schema:{type:"boolean",default:!1}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.KeyRefIndexResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.KeyRefIndexResponse"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps":{get:{tags:["Apps"],summary:"Get all application resources for the specified data source. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Apps"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Apps"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{id}":{get:{tags:["Apps"],summary:"Get a specific application resource.",description:"",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID or application name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Apps"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Apps"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/appselectindexlookup/{id}":{post:{tags:["AppSelectIndexLookup"],summary:"Look up the selected indexes that match provided query indexes",description:'Example 1: The request body for getting all index result collection.\r\n```\r\n[]\r\n```\r\nExample 2: The request body for getting the matched indexes.\r\n```\r\n[\r\n {\r\n "Name": "NAME",\r\n "Value": "PDF*"\r\n }\r\n]\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"keyRefOuterJoin",in:"query",description:"Whether to get KeyRef OuterJoin",schema:{type:"boolean",default:!1}},{name:"nativetype",in:"query",description:"Whether to return native index value type in the resultset",schema:{type:"boolean",default:!1}}],requestBody:{description:"Query index array",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryIndex"}}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryResultCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryResultCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/auth/providers/oauth":{get:{tags:["Auth"],summary:"Get information about the available OAuth providers.",responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.OAuthProvidersResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.OAuthProvidersResponse"}}}}}}},"/api/v1/auth/providers/oauth/{providerName}":{get:{tags:["Auth"],summary:"Get information about the specified OAuth provider.",parameters:[{name:"providerName",in:"path",description:"",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.OAuthProvider"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.OAuthProvider"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/auth/login":{post:{tags:["Auth"],summary:"Authenticate the user based on the data source, user name and password",description:'Call this function to get an access token and a refresh token.\r\n\r\nExample 1: The request body for logging in with full-text search support option.\r\n```\r\n{\r\n "DataSource": "AEDEMO",\r\n "Username": "ADMIN",\r\n "Password":"password",\r\n "LicenseFlags":"FulltextSearchLicense"\r\n}\r\n```',requestBody:{description:"The authentication request data",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.LoginRequest"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.LoginResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.LoginResponse"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/auth/logout":{post:{tags:["Auth"],summary:"Invalidates the user's refresh token.",description:"Ends the user's access to the data source associated with the access token.",requestBody:{description:"Optional current access token and refresh token",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.LogoutRequest"}}}},responses:{200:{description:"OK"},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/auth/refreshaccesstoken":{post:{tags:["Auth"],summary:"Request another access token after the current one expires.",description:"Requesting another access token will reset the user's inactivity timeout.",requestBody:{description:"Optional current access token and refresh token",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.RefreshRequest"}}}},responses:{200:{description:"OK",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Unauthorized",content:{"text/plain":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/batches/{appid}":{get:{tags:["Batches"],summary:"Get the batch collection for the specified application. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},post:{tags:["Batches"],summary:"Create a batch by moving or copying pages from existing document when docid is set",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"docid",in:"query",description:"Source document id",schema:{type:"integer",format:"int32"}},{name:"pagerange",in:"query",description:'Page range such as "1, 3-5, 7-22"',schema:{type:"string"}},{name:"ismove",in:"query",description:"Whether move or copy action",schema:{type:"boolean",default:!1}},{name:"targetbatch",in:"query",description:"the name for target batch. Create a new batch if this is provided as null or empty",schema:{type:"string"}},{name:"access",in:"query",description:"Doc access request flag for HIPAA requirement",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests"}},{name:"comment",in:"query",description:"Doc access comment for HIPAA requirement",schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/batches/{appid}/{id}":{get:{tags:["Batches"],summary:"Get the batch resource for the specified batch.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},post:{tags:["Batches"],summary:"Create a new batch document or append to existing batch document from json data",description:' Example 1: Create a batch from a multipart/form-data request body which contains data and binfileref\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="data"\r\n \r\n{"Name":"batch name","Description":"a batch","ID":0}\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="binfileref"; filename="test.txt"\r\nContent-Type: text/plain\r\n \r\nC:\\test.PNG\r\n----------------------------394098244805491441835859--\r\n \r\n```\r\n Example 2: Create a batch from a multipart/form-data request body which contains data, bin, annotation and text\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="data"\r\n \r\n{"Name":"batch name","Description":"a batch","ID":0}\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="bin"; filename="test.JPG"\r\nContent-Type: image/jpeg\r\n \r\nbin file data\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="annotation"; filename="test.ano"\r\nContent-Type: application/octet-stream\r\n \r\nannotation file data\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="text"; filename="test.tx"\r\nContent-Type: application/octet-stream\r\n \r\ntext file data\r\n----------------------------394098244805491441835859--\r\n \r\n```\r\n Example 3: Create a batch by specifying the group owner from a multipart/form-data request body which contains data and binfileref\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="data"\r\n \r\n{"Name":"batch name","Description":"a batch","ID":0, "Group":"group_test"}\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="binfileref"; filename="test.txt"\r\nContent-Type: text/plain\r\n \r\nC:\\test.PNG\r\n----------------------------394098244805491441835859--\r\n \r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch id to append to existing batch document or 0 for new batch.",required:!0,schema:{type:"integer",format:"int32"}},{name:"COLDFormName",in:"query",description:"COLD form name",schema:{type:"string"}},{name:"importOption",in:"query",description:"Bin file import option",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.BinFileImportOptions"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},put:{tags:["Batches"],summary:"Modify an existing batch",description:'Only the name, description, private and group fields can be modified.\r\n\r\nExample 1: The request body for modifying the batch name, batch description and the group.\r\n```\r\n{\r\n "Name": "batch_modify",\r\n "Description": "description_modify",\r\n "Private":true,\r\n "Group":"G1"\r\n}\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}}],requestBody:{description:"Message Body. Updated batch information",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["Batches"],summary:"Delete a specific batch",description:"If a batch is currently not locked and forcedelete is false, an exception will be thrown if the batch can't be locked.\r\n If the batch is currently not locked and forcedelete is true, the user must have Administrator permission to force the deletion.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}},{name:"forcedelete",in:"query",description:"Force batch delete",schema:{type:"boolean",default:!1}}],responses:{204:{description:"No Content"},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/batches/{batchid}":{post:{tags:["Batches"],summary:"Create a batch by moving or copying pages from an existing batch",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application id",required:!0,schema:{type:"integer",format:"int32"}},{name:"batchid",in:"path",description:"Source batch name or id",required:!0,schema:{type:"string"}},{name:"pagerange",in:"query",description:'Page range, such as "1, 3-5, 7-22"',required:!0,schema:{type:"string"}},{name:"ismove",in:"query",description:"Whether to move or copy",schema:{type:"boolean",default:!1}},{name:"targetbatch",in:"query",description:"The name for the target batch. Create a new batch if this is provided as null or empty",schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/batches/{appid}/batchlock/{id}":{post:{tags:["Batches"],summary:"Lock a batch for access.",description:"If the batch is already locked in another mode, this will change to the designated mode.\r\nIf the batch is already locked with the same mode, this call with succeed without change anything.\r\nA locked batch can be unlocked by calling DELETE BatchLock with forceIdle = true.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}},{name:"isScan",in:"query",description:"Scan lock if true, index lock if false",schema:{type:"boolean",default:!0}}],responses:{204:{description:"No Content"},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["Batches"],summary:"Unlock a batch.",description:"",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}}],responses:{204:{description:"No Content"},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/batchpages/{id}":{get:{tags:["BatchPages"],summary:"Get batch pages collection. This API supports the following OData query options: $Top, $Skip and $Count. If $top is omitted, the default page size is 10.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchPagesCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchPagesCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},post:{tags:["BatchPages"],summary:"Add a new page into a batch with optional annotation and text file",description:' Example 1: Add a new batch page from a multipart/form-data request body which contains binfileref\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="binfileref"; filename="test.txt"\r\nContent-Type: text/plain\r\n \r\nC:\\test.PNG\r\n----------------------------394098244805491441835859--\r\n \r\n```\r\n Example 2: Add a new batch page from a multipart/form-data request body which contains data, bin, annotation and text\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="bin"; filename="test.JPG"\r\nContent-Type: image/jpeg\r\n \r\nbin file data\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="annotation"; filename="test.ano"\r\nContent-Type: application/octet-stream\r\n \r\nannotation file data\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="text"; filename="test.tx"\r\nContent-Type: application/octet-stream\r\n \r\ntext file data\r\n----------------------------394098244805491441835859--\r\n \r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}},{name:"COLDFormName",in:"query",description:"COLD form name",schema:{type:"string"}},{name:"importOption",in:"query",description:"Bin file import option",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.BinFileImportOptions"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchPage"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchPage"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/batchpages/{id}/{idx}":{get:{tags:["BatchPages"],summary:"Get batch page",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}},{name:"idx",in:"path",description:"1-based batch page index",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchPage"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchPage"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},put:{tags:["BatchPages"],summary:"Modify existing batch page",description:"Add or modify annotation file or text file from multipart form-data.\r\n\r\nBIN file can't be changed.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}},{name:"idx",in:"path",description:"1-based batch page index",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchPage"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchPage"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["BatchPages"],summary:"Delete batch page",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}},{name:"idx",in:"path",description:"1-based batch page index",required:!0,schema:{type:"integer",format:"int32"}}],responses:{204:{description:"No Content"},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/caqquery/{id}":{get:{tags:["CAQQuery"],summary:"Get a CAQ saved query.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Query ID or name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CAQConfig"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CAQConfig"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/usercollection":{get:{tags:["Collection"],summary:"Get the user collection for the specified data source. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserCollection"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/groupcollection":{get:{tags:["Collection"],summary:"Get the group collection for the specified data source. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.GroupCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.GroupCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserCollection"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/dataformats/{id}":{get:{tags:["DataFormats"],summary:"Get the data format collection for the specified data type. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Data type ID",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataFormatCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataFormatCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/dataformats/{id}/{idx}":{get:{tags:["DataFormats"],summary:"Get the specific data format.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Data type ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"Data format ID",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataFormat"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataFormat"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources":{get:{tags:["DataSources"],summary:"Get all data source resources. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataSources"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataSources"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}":{get:{tags:["DataSources"],summary:"Get a specific data source resource via data source name.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataSource"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataSource"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/datatypes":{get:{tags:["DataTypes"],summary:"Get the data type collection for the specified data source. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataTypeCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataTypeCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/datatypes/{id}":{get:{tags:["DataTypes"],summary:"Get a specific data type",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Data type ID",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataType"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataType"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/docindexes/{id}":{get:{tags:["DocIndexes"],summary:"Get all document indexes collection for the specific document. This API supports the following OData query options: $Top, $Skip and $Count. If $top is omitted, the default page size is 10.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"access",in:"query",description:"Doc access request flag for HIPAA requirement",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests"}},{name:"comment",in:"query",description:"Doc access comment for HIPAA requirement",schema:{type:"string"}},{name:"nativetype",in:"query",description:"Whether to return native type index value",schema:{type:"boolean",default:!1}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexesResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexesResponse"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},post:{tags:["DocIndexes"],summary:"Add a new document index.",description:'Example 1: The request body for adding a document index.\r\n```\r\n{\r\n "DocumentIndex": {\r\n "IndexID": 0,\r\n "IndexValues": [\r\n {\r\n "FieldID": "field1",\r\n "FieldValue": "5"\r\n },\r\n {\r\n "FieldID": "field2",\r\n "FieldValue": "Image1"\r\n }\r\n ]\r\n },\r\n "NativeDocumentIndex": null\r\n}\r\n```\r\nExample 2: The request body for adding a native document index.\r\n```\r\n{\r\n "DocumentIndex": null,\r\n "NativeDocumentIndex": {\r\n "IndexID": 0,\r\n "IndexValues": [\r\n {\r\n "FieldID": "field1",\r\n "NativeFieldValue": 5\r\n },\r\n {\r\n "FieldID": "field2",\r\n "NativeFieldValue": "Image1"\r\n }\r\n ]\r\n }\r\n}\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"nativetype",in:"query",description:"Whether to send the native document index object.",schema:{type:"boolean",default:!1}},{name:"failIfMatchIndex",in:"query",description:"Whether to perform match index validation",schema:{type:"boolean",default:!1}},{name:"failIfDLSViolation",in:"query",description:"Whether to perform Doc Level Security validation",schema:{type:"boolean",default:!1}}],requestBody:{description:"Document index request",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexRequest"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexResponse"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},409:{description:"Conflict",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/docindexes/{id}/{idx}":{get:{tags:["DocIndexes"],summary:"Get a specific document index for the specific document.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"Index ID. If the document has only one index, this value is ignored and the single index is returned.",required:!0,schema:{type:"integer",format:"int32"}},{name:"access",in:"query",description:"Doc access request flag for HIPAA requirement",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests"}},{name:"comment",in:"query",description:"Doc access comment for HIPAA requirement",schema:{type:"string"}},{name:"nativetype",in:"query",description:"Whether to return native type index value",schema:{type:"boolean",default:!1}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexResponse"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["DocIndexes"],summary:"Delete a specific doc index.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"Index ID. If the document has only one index, this value is ignored and the operation is not allowed.",required:!0,schema:{type:"integer",format:"int32"}}],responses:{204:{description:"No Content"},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},put:{tags:["DocIndexes"],summary:"Update an existing document index.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"Index ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"nativetype",in:"query",description:"Whether to send the native document index object.",schema:{type:"boolean",default:!1}},{name:"failIfMatchIndex",in:"query",description:"Whether to perform match index validation",schema:{type:"boolean",default:!1}},{name:"failIfDLSViolation",in:"query",description:"Whether to perform Doc Level Security validation",schema:{type:"boolean",default:!1}}],requestBody:{description:"Document index request",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexRequest"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexResponse"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},409:{description:"Conflict",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/docodma/{id}":{get:{tags:["DocODMA"],summary:"Get the ODMA resource for the specified document.",description:"The document properties in the response will be upper-cased to comply with ODMA specification.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"access",in:"query",description:"Doc access request flag for HIPAA requirement",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests"}},{name:"comment",in:"query",description:"Doc access comment for HIPAA requirement",schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocODMAResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocODMAResponse"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},put:{tags:["DocODMA"],summary:"Update the ODMA resource for the specified document.",description:'Only the following properties can be updated: Name, Author, Subject, Comment, and Keywords.\r\n\r\nExample: The request body for updating a document\'s properties.\r\n```\r\n{\r\n "Name": "TEST_NAME",\r\n "Author": "TEST_AUTHOR",\r\n "Subject": "TEST_SUBJECT",\r\n "Comment": "TEST_COMMENT",\r\n "Keywords": [\r\n "TEST_KEYWORD1",\r\n "TEST_KEYWORD2"\r\n ]\r\n}\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}}],requestBody:{description:"Updated odma properties",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocODMARequest"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocODMAResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocODMAResponse"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/docpages/{id}":{get:{tags:["DocPages"],summary:"Get document pages collection. This API supports the following OData query options: $Top, $Skip and $Count. If $top is omitted, the default page size is 10.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"access",in:"query",description:"Doc access request flag for HIPAA requirement (default: View)",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests"}},{name:"comment",in:"query",description:"Doc access comment for HIPAA requirement",schema:{type:"string"}}],responses:{200:{description:"Ok",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocPagesCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocPagesCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},post:{tags:["DocPages"],summary:"Add a new page.",description:' Two options to add a new page from multipart form data.\r\n \r\n 1. Upload a BIN file directly. The request may include annotation and/or text view files.\r\n \r\n 2. Provide a Data object where the ObjectResourceID string follows the format //{DSN}/DOC/{AppID}/{DocID}/{PageNum}/{VersionNum} \r\n (for example: //AEDEMO/DOC/176/131/1/1). In this case, the document’s ObjectID and SubPage will be shared. \r\n This option supports only documents that include subpages, and the object resource must reside in the same data source and the same application.\r\n \r\n Example 1: Add a new page from a multipart/form-data request body which contains binref\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="binref"\r\n \r\nC:\\test.PNG\r\n----------------------------394098244805491441835859--\r\n \r\n```\r\n Example 2: Add a new page from a multipart/form-data request body which contains binfileref\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="binfileref"; filename="test.txt"\r\nContent-Type: text/plain\r\n \r\nC:\\test.PNG\r\n----------------------------394098244805491441835859--\r\n \r\n```\r\n Example 3: Add a new page from a multipart/form-data request body which contains bin, annotaition and text\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="bin"; filename="test.JPG"\r\nContent-Type: image/jpeg\r\n \r\nbin file data\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="annotation"; filename="test.ano"\r\nContent-Type: application/octet-stream\r\n \r\nannotation file data\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="text"; filename="test.tx"\r\nContent-Type: application/octet-stream\r\n \r\ntext file data\r\n----------------------------394098244805491441835859--\r\n \r\n```\r\n Example 4: Add a new page by using data object from a multipart/form-data request body which contains data\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="data"\r\n \r\n{"ObjectResourceID": "//AEDEMO/DOC/176/131/1/1"}\r\n----------------------------394098244805491441835859\r\n \r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"query",description:"Document page location (1-based)",schema:{type:"integer",format:"int32"}},{name:"pageop",in:"query",description:"Page insert op code:0 - Insert before, 1 - insert after, 2 - append",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.PageInsertOP"}},{name:"COLDFormName",in:"query",description:"COLD form name",schema:{type:"string"}},{name:"importOption",in:"query",description:"Bin file import option",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.BinFileImportOptions"}}],responses:{201:{description:"Created",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocPage"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocPage"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["DocPages"],summary:"Delete a range of pages from a document",parameters:[{name:"dsn",in:"path",description:"Datasource name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"pagerange",in:"query",description:'Page range to be deleted, such as "1, 3-5, 7-22"',required:!0,schema:{type:"string"}},{name:"ifcheckpagecount",in:"query",description:"Set to false to bypass checking the page count before deleting pages",required:!0,schema:{type:"boolean",default:!0}},{name:"pagecount",in:"query",description:"If specified, the value must match the current document's page count. It is strongly recommended to use this parameter to prevent inadvertent data loss",schema:{type:"integer",format:"int32"}}],responses:{204:{description:"No Content"},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},409:{description:"Conflict",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/docpages/{id}/{idx}":{get:{tags:["DocPages"],summary:"Get document page information.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"1-based doc page number",required:!0,schema:{type:"integer",format:"int32"}},{name:"access",in:"query",description:"Doc access request flag for HIPAA requirement (default: View)",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests"}},{name:"comment",in:"query",description:"Doc access comment for HIPAA requirement",schema:{type:"string"}}],responses:{200:{description:"Ok",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocPage"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocPage"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},put:{tags:["DocPages"],summary:"Re-order a page to a new location",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"1-based doc page number",required:!0,schema:{type:"integer",format:"int32"}},{name:"newpageloc",in:"query",description:"New page location of this page",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"Ok",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocPage"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocPage"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["DocPages"],summary:"Delete a page from a document",parameters:[{name:"dsn",in:"path",description:"Datasource name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"1-based doc page number",required:!0,schema:{type:"integer",format:"int32"}},{name:"ifcheckpagecount",in:"query",description:"Set to false to bypass checking the page count before deleting pages",required:!0,schema:{type:"boolean",default:!0}},{name:"pagecount",in:"query",description:"If specified, the value must match the current document's page count. It is strongly recommended to use this parameter to prevent inadvertent data loss",schema:{type:"integer",format:"int32"}}],responses:{204:{description:"No Content"},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},409:{description:"Conflict",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/docs/{id}":{post:{tags:["Docs"],summary:"Create a new document from bin / binref / binfileref with annotation and text optional",description:' Example 1: Create a document from a multipart/form-data request body which contains data and binref\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="data"\r\n \r\n{"NewIndex":{"IndexID":0,"IndexValues":[{"FieldID":"field1","FieldValue":"Doc_from_binref"}]},"NativeNewIndex":null,"FromBatch":null,"BatchPageNum":0,"PageRange":null,"MergeDuplicateIndex":false,"IgnoreDuplicateIndex":false,"IgnoreDlsViolation":false}\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="binref"\r\n \r\nC:\\test.PNG\r\n----------------------------394098244805491441835859--\r\n \r\n```\r\n Example 2: Create a document from a multipart/form-data request body which contains data and binfileref\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="data"\r\n \r\n{"NewIndex":{"IndexID":0,"IndexValues":[{"FieldID":"field1","FieldValue":"Doc_from_binfileref"}]},"NativeNewIndex":null,"FromBatch":null,"BatchPageNum":0,"PageRange":null,"MergeDuplicateIndex":false,"IgnoreDuplicateIndex":false,"IgnoreDlsViolation":false}\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="binfileref"; filename="test.txt"\r\nContent-Type: text/plain\r\n \r\nC:\\test.PNG\r\n----------------------------394098244805491441835859--\r\n \r\n```\r\n Example 3: Create a document from a multipart/form-data request body which contains data, bin, annotaition and text\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="data"\r\n \r\n{"NewIndex":{"IndexID":0,"IndexValues":[{"FieldID":"field1","FieldValue":"Doc_from_bin"}]},"NativeNewIndex":null,"FromBatch":null,"BatchPageNum":0,"PageRange":null,"MergeDuplicateIndex":false,"IgnoreDuplicateIndex":false,"IgnoreDlsViolation":false}\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="bin"; filename="test.JPG"\r\nContent-Type: image/jpeg\r\n \r\nbin file data\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="annotation"; filename="test.ano"\r\nContent-Type: application/octet-stream\r\n \r\nannotation file data\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="text"; filename="test.tx"\r\nContent-Type: application/octet-stream\r\n \r\ntext file data\r\n----------------------------394098244805491441835859--\r\n \r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"nativetype",in:"query",description:"Native Type Support",schema:{type:"boolean",default:!1}},{name:"COLDFormName",in:"query",description:"COLD form name",schema:{type:"string"}},{name:"importOption",in:"query",description:"Bin file import option",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.BinFileImportOptions"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},409:{description:"Conflict",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/docs/{id}":{get:{tags:["Docs"],summary:"Get a specific document by document id",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"access",in:"query",description:"Doc access request flag for HIPAA requirement",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests"}},{name:"comment",in:"query",description:"Doc access comment for HIPAA requirement",schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["Docs"],summary:"Delete a specific document.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"deleteType",in:"query",description:"Specifies the document deletion type. Default is 'Active'.\r\n 'Active' - Delete an active document. If the application supports the Recycle Bin feature, the document is first moved to the Recycle Bin; otherwise, it is permanently deleted. \r\n 'Recycled' - Permanently deletes a document that is already in the Recycle Bin.",schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentDeletionType"}}],responses:{204:{description:"No Content"},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},put:{tags:["Docs"],summary:"Update an existing document by submitting a full-text/OCR job or by restoring it from Recycle Bin.",description:'Example 1: The request body for submitting a full-text job for a document which is not in Recycle Bin.\r\n```\r\n{\r\n "SubmitFulltext": true\r\n}\r\n```\r\nExample 2: The request body for submitting a OCR job for a document which is not in Recycle Bin.\r\n```\r\n{\r\n "SubmitOCR": true\r\n}\r\n```\r\nExample 3: The request body for restoring a document from Recycle Bin.\r\n```\r\n{\r\n "SubmitRestore": true\r\n}\r\n```\r\nExample 4: The request body for restoring a document from Recycle Bin first, then submitting a full-text job.\r\n```\r\n{\r\n "SubmitFulltext": true,\r\n "SubmitRestore": true\r\n}\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"ocrLanguage",in:"query",description:"OCR language for submitting the full-text/OCR job. Default is 'English'.",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.OCRLanguages"}}],requestBody:{description:"Updated doc value",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/documentsfrombatch/{id}":{post:{tags:["DocumentsFromBatch"],summary:"Create a new document from a batch or add pages to an existing document from a batch",description:'Example 1: The request body for creating a new document using pages 2 and 3 from the batch (ID = 4).\r\n```\r\n{\r\n "NewIndex": {\r\n "IndexID": 0,\r\n "IndexValues": [{\r\n "FieldID": "field1",\r\n "FieldValue": "DocFromBatch"\r\n }]\r\n },\r\n "FromBatch": {\r\n "ID": 4\r\n },\r\n "BatchPageNum": 0,\r\n "PageRange": "2-3",\r\n "SubmitFullText": false,\r\n "MergeDuplicateIndex": false,\r\n "IgnoreDuplicateIndex": false,\r\n "IgnoreDlsViolation": false\r\n}\r\n```\r\nExample 2: The request body for appending a new page to an existing document (ID = 5) using the second page from the batch (ID = 4).\r\n```\r\n{\r\n "TargetDoc": {\r\n "ID": 5\r\n },\r\n "FromBatch": {\r\n "ID": 4\r\n },\r\n "BatchPageNum": 2,\r\n "PageRange": "",\r\n "SubmitFullText": false,\r\n "MergeDuplicateIndex": false,\r\n "IgnoreDuplicateIndex": false,\r\n "IgnoreDlsViolation": false\r\n}\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"nativetype",in:"query",description:"Native Type Support",schema:{type:"boolean",default:!1}}],requestBody:{description:"New Document Object",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.NewDocumentRequest"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},409:{description:"Conflict",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/docworkingcopy/{id}":{post:{tags:["DocWorkingCopy"],summary:"Check out a document and get a working copy document.",description:"If the document has already been checked out by the current user, the operation will resume the checkout.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID. It must be the original document ID.",required:!0,schema:{type:"integer",format:"int32"}},{name:"comment",in:"query",description:"Check out comment",schema:{type:"string"}},{name:"access",in:"query",description:"Doc access request flag for HIPAA requirement",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests"}},{name:"hipaacomment",in:"query",description:"Doc access comment for HIPAA requirement",schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},get:{tags:["DocWorkingCopy"],summary:"Resume the document checkout and get the working copy",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID. It could be the original document ID or the working copy document ID.",required:!0,schema:{type:"integer",format:"int32"}},{name:"access",in:"query",description:"Doc access request flag for HIPAA requirement",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests"}},{name:"comment",in:"query",description:"Doc access comment for HIPAA requirement",schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["DocWorkingCopy"],summary:"Cancel the document checkout.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID. It could be the original document ID or the working copy document ID.",required:!0,schema:{type:"integer",format:"int32"}}],responses:{204:{description:"No Content"},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/errorcodes":{get:{tags:["ErrorCodes"],summary:"Get the error codes collection.",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"object",additionalProperties:{type:"integer",format:"int32"}}},'application/json; profile="urn:camelcase:upper"':{schema:{type:"object",additionalProperties:{type:"integer",format:"int32"}}}}}}}},"/api/v1/errorcodes/{code}":{get:{tags:["ErrorCodes"],summary:"Get a specific error code.",parameters:[{name:"code",in:"path",description:"Specific error code",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{type:"object",additionalProperties:{type:"integer",format:"int32"}}},'application/json; profile="urn:camelcase:upper"':{schema:{type:"object",additionalProperties:{type:"integer",format:"int32"}}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/fulltextadmin/requests/{appid}":{get:{tags:["FulltextAdmin"],summary:"Get a list of requests made to the fulltext server. This API supports the following OData query options: $Top, $Skip, $Filter and $OrderBy.",description:"This API returns the most recent requests.\r\n\r\nThe default number of requests returned is 100, \r\nthe maximum number of requests returned is 1000.\r\n\r\nThe user must have one or more of the following roles to call this API:\r\n<pre> GlobalAdministrator</pre>\r\n<pre> ServerManager</pre>\r\n<pre> DataSourceAdministrator</pre>",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.FulltextRequestItem"}}},'application/json; profile="urn:camelcase:upper"':{schema:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.FulltextRequestItem"}}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/fulltextadmin/content/{appid}/{docid}/{docpage}":{get:{tags:["FulltextAdmin"],summary:"Get the fulltext content of the requested document page.",description:"The user must have one or more of the following roles to call this API:\r\n<pre> GlobalAdministrator</pre>\r\n<pre> ServerManager</pre>\r\n<pre> DataSourceAdministrator</pre>",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"docid",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"docpage",in:"path",description:"Document page number",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{type:"string"}},'application/json; profile="urn:camelcase:upper"':{schema:{type:"string"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/fulltextadmin/contentpages/{appid}/{docid}":{get:{tags:["FulltextAdmin"],summary:"Get the fulltext content of the requested document pages in multipart/mixed format.",description:'The user must have one or more of the following roles to call this API:\r\n<pre> GlobalAdministrator</pre>\r\n<pre> ServerManager</pre>\r\n<pre> DataSourceAdministrator</pre>\r\n\r\nResponse format is multipart/mixed with the following structure:\r\n```\r\n-----Boundary\r\nContent-Type: application/json\r\n\r\n{"pages":n,"total":n}\r\n-----Boundary\r\nContent-Type: text/plain\r\n\r\n<page x content>\r\n-----Boundary\r\nContent-Type: text/plain\r\n\r\n<page y content>\r\n-----Boundary--\r\n```\r\nThe first multipart is a JSON part that contains the total page count and the number of pages returned in this response.\r\n\r\nThe following multiparts are the content of each requested page with content type text/plain.\r\n\r\nThe content of each page is what was sent to the fulltext server for that page.',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"docid",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"pagerange",in:"query",description:'Document page range such as "1, 3-5, 7-22"',schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{type:"string"}},'application/json; profile="urn:camelcase:upper"':{schema:{type:"string"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/fulltextquery/{id}":{get:{tags:["FulltextQuery"],summary:"Get a full-text saved query.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Query ID or name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.FulltextQuery"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.FulltextQuery"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/health/live":{get:{tags:["Health"],summary:"Is the server running?",responses:{200:{description:"OK"}}}},"/api/v1/health/ready":{get:{tags:["Health"],summary:"Is the server ready?",description:"Also returns information about the server.",responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.ReadyResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.ReadyResponse"}}}},503:{description:"Service Unavailable",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/httpcryptointerface/credential":{post:{tags:["HTTPCryptoInterface"],summary:"Generate an encrypted credential string based on domain, user name and password",description:' Example: The request body for generating an encrypted credential.\r\n ```\r\n{\r\n "UserName": "ADMIN",\r\n "Password":"password",\r\n "Domain":"mydomain"\r\n}\r\n \r\n```',requestBody:{description:"The credential request data",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoCredentialRequest"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoCredentialResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoCredentialResponse"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},501:{description:"Not Implemented",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/httpcryptointerface/url/idocument":{post:{tags:["HTTPCryptoInterface"],summary:"Generate a target URL to open the document view page",description:' Example: The request body for generating a target URL to open the document view page.\r\n ```\r\n{\r\n "commonParameters": {\r\n "targetSite": "http://localhost/AppEnhancer",\r\n "dataSource": "AppEnhancerDEMO",\r\n "appName": "IMAGEAPP",\r\n "credential": "AE:5E2C660FE0419D4BA9E4DDB0532EC3AABF11F859A7EE4E886A93DE9E5025B49D",\r\n "encParam": true,\r\n "autoLogoutOnClose": true,\r\n "blockNavigation": false,\r\n "dispMode": "HideDocMenu_PageMenu_ToolBar_IndexPanel"\r\n },\r\n "iDocumentParameters": {\r\n "docId": 22,\r\n "pageNum": 2\r\n }\r\n}\r\n \r\n```',requestBody:{description:"IDocument request data",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoIDocumentRequest"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoTargetURLResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoTargetURLResponse"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/httpcryptointerface/url/idocimport":{post:{tags:["HTTPCryptoInterface"],summary:"Generate a target URL to open document import page",description:' Example: The request body for generating a target URL to open the document import page.\r\n ```\r\n{\r\n "commonParameters": {\r\n "targetSite": "http://localhost/AppEnhancer",\r\n "dataSource": "AppEnhancerDEMO",\r\n "appName": "CHECKS",\r\n "credential": "AE:5E2C660FE0419D4BA9E4DDB0532EC3AABF11F859A7EE4E886A93DE9E5025B49D",\r\n "encParam": true,\r\n "autoLogoutOnClose": true,\r\n "blockNavigation": false,\r\n "dispMode": "NotSet"\r\n },\r\n "iDocImportParameters": {\r\n "allowEditCDKIndex": false,\r\n "fieldValues": "MEMBER NUMBER=925348;CHECK NUMBER=172"\r\n }\r\n}\r\n \r\n```',requestBody:{description:"IDocImport request data",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoIDocImportRequest"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoTargetURLResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoTargetURLResponse"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/httpcryptointerface/url/isubmitquery":{post:{tags:["HTTPCryptoInterface"],summary:"Generate a target URL to open query criteria page or query result page",description:' Example 1: The request body for normal query to open the query result page.\r\n ```\r\n{\r\n "commonParameters": {\r\n "targetSite": "http://localhost/AppEnhancer",\r\n "dataSource": "AppEnhancerDEMO",\r\n "appName": "IMAGEAPP",\r\n "credential": "AE:5E2C660FE0419D4BA9E4DDB0532EC3AABF11F859A7EE4E886A93DE9E5025B49D",\r\n "encParam": true,\r\n "autoLogoutOnClose": true,\r\n "blockNavigation": true,\r\n "dispMode": "HideAppList"\r\n },\r\n "iSubmitQueryParameters": {\r\n "queryType": "NormalQuery",\r\n "viewMode": "ResultSet",\r\n "searchAllRevisions": true,\r\n "updateFields": true,\r\n "fieldValues": "OBJECT NUMBER=Expression: [\'5\',\'10\'];DOCUMENT TYPE=AVI",\r\n "fieldsVisibility": "1=on;2=off;3=off;4=on"\r\n }\r\n}\r\n \r\n```\r\n Example 2: The request body for saved query to open the query criteria page.\r\n ```\r\n{\r\n "commonParameters": {\r\n "targetSite": "http://localhost/AppEnhancer",\r\n "dataSource": "AppEnhancerDEMO",\r\n "appName": "IMAGEAPP",\r\n "credential": "AE:5E2C660FE0419D4BA9E4DDB0532EC3AABF11F859A7EE4E886A93DE9E5025B49D",\r\n "encParam": true,\r\n "autoLogoutOnClose": true,\r\n "blockNavigation": true,\r\n "dispMode": "HideAppList"\r\n },\r\n "iSubmitQueryParameters": {\r\n "queryType": "SavedQuery",\r\n "SavedQuery": "savedQuery2",\r\n "viewMode": "QueryCriteria",\r\n "searchAllRevisions": true,\r\n "updateFields": true\r\n }\r\n}\r\n \r\n```\r\n Example 3: The request body for updating a saved query.\r\n ```\r\n{\r\n "commonParameters": {\r\n "targetSite": "http://localhost/AppEnhancer",\r\n "dataSource": "AppEnhancerDEMO",\r\n "appName": "IMAGEAPP",\r\n "credential": "AE:5E2C660FE0419D4BA9E4DDB0532EC3AABF11F859A7EE4E886A93DE9E5025B49D",\r\n "encParam": true,\r\n "autoLogoutOnClose": true,\r\n "blockNavigation": true,\r\n "dispMode": "HideAppList"\r\n },\r\n "iSubmitQueryParameters": {\r\n "queryType": "SavedQuery",\r\n "SavedQuery": "savedQuery2",\r\n "SaveAndRun": true,\r\n "viewMode": "ResultSet",\r\n "IsPublic": true,\r\n "searchAllRevisions": true,\r\n "updateFields": true,\r\n "FieldValues": "OBJECT NUMBER=Expression: [\'15\',\'20\'];DOCUMENT TYPE=ZIP"\r\n }\r\n}\r\n \r\n```\r\n Example 4: The request body for full-text query to open the query result page.\r\n ```\r\n{\r\n "commonParameters": {\r\n "targetSite": "http://localhost/AppEnhancer",\r\n "dataSource": "AppEnhancerDEMO",\r\n "appName": "IMAGEAPP",\r\n "credential": "AE:5E2C660FE0419D4BA9E4DDB0532EC3AABF11F859A7EE4E886A93DE9E5025B49D",\r\n "encParam": true,\r\n "autoLogoutOnClose": true,\r\n "blockNavigation": true,\r\n "dispMode": "HideAppList"\r\n },\r\n "iSubmitQueryParameters": {\r\n "queryType": "NormalQuery",\r\n "viewMode": "ResultSet",\r\n "searchAllRevisions": true,\r\n "FulltextQuery": "account",\r\n "FulltextQueryType": "And",\r\n "FulltextOperation": "Or"\r\n }\r\n}\r\n \r\n```',requestBody:{description:"ISubmitQuery request data",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoISubmitQueryRequest"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoTargetURLResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoTargetURLResponse"}}}},400:{description:"BadRequest"}}}},"/api/v1/datasources/{dsn}/odmaqueryfields/{id}":{get:{tags:["ODMAQueryFields"],summary:"Get ODMA query field collection for a specific saved query. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Query ID or name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryFields"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryFields"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/password":{put:{tags:["Password"],summary:"Change the password for the current user.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}}],requestBody:{description:"Change password form",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.ChangeUserForm"}}}},responses:{204:{description:"No Content"},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},417:{description:"Expectation Failed",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/permissiondefinitions":{get:{tags:["PermissionDefinitions"],summary:"Get all application permissions",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"object",additionalProperties:{type:"string"},description:"A list of all application permissions."}},'application/json; profile="urn:camelcase:upper"':{schema:{type:"object",additionalProperties:{type:"string"},description:"A list of all application permissions."}}}}}}},"/api/v1/datasources/{dsn}/queries":{get:{tags:["Queries"],summary:"Get saved query collection or collection for the specified application. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"query",description:"Application ID",schema:{type:"integer",format:"int32",default:0}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueriesCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueriesCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},post:{tags:["Queries"],summary:"Create a new saved query",description:'Example 1: The request body for creating a document saved query with full-text.\r\n```\r\n{\r\n "QueryType": "DocumentQuery",\r\n "Name": "Query_FT1",\r\n "IsPublic": true,\r\n "IsIncludingPreviousRevisions": true,\r\n "Indexes": [\r\n {\r\n "Name": "NAME",\r\n "Value": "pdf*",\r\n "IsODMAField": false,\r\n "Searchable": true,\r\n "Displayable": true\r\n }\r\n ],\r\n "FullText": {\r\n "QueryOperator": "And",\r\n "SearchType": "And",\r\n "Thesaurus": false,\r\n "Value": "software"\r\n }\r\n}\r\n```\r\nExample 2: The request body for creating a cross app saved query.\r\n```\r\n{\r\n "QueryType": "CrossAppQuery",\r\n "Name": "CAQ_1",\r\n "IsPublic": true,\r\n "IsIncludingPreviousRevisions": true,\r\n "Indexes": [\r\n {\r\n "Name": "NAME",\r\n "Value": "pdf*",\r\n "IsODMAField": false,\r\n "Searchable": true,\r\n "Displayable": true\r\n }\r\n ],\r\n "Apps": [1,4]\r\n}\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"query",description:"Application ID, required for DocumentQuery, ignored for CAQ",schema:{type:"integer",format:"int32",default:-1}}],requestBody:{description:"Query body",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryModel"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Query"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Query"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},406:{description:"Not Acceptable",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},409:{description:"Conflict",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/queries/{id}":{get:{tags:["Queries"],summary:"Get a specific saved query",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Query ID or name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Query"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Query"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["Queries"],summary:"Delete a specific saved query",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Query ID or name",required:!0,schema:{type:"string"}}],responses:{204:{description:"No Content"},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},put:{tags:["Queries"],summary:"Modify a specific saved query",description:'Example: The request body for modifying the Name, IsPublic and Index value field for the existing saved query.\r\n```\r\n{\r\n "Name": "Query_modify",\r\n "IsPublic": false,\r\n "Indexes": [\r\n {\r\n "Name": "NAME",\r\n "Value": "pdf_modify*",\r\n "IsODMAField": false,\r\n "Searchable": true,\r\n "Displayable": true\r\n }\r\n ]\r\n}\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Query ID or name",required:!0,schema:{type:"string"}}],requestBody:{description:"Query body",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryModel"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Query"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Query"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},406:{description:"Not Acceptable",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},409:{description:"Conflict",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/queryfields/{id}":{get:{tags:["QueryFields"],summary:"Get query field collection for a specific saved query. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Query ID or name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryFields"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryFields"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/recentvieweddocs":{get:{tags:["RecentViewedDocs"],summary:"Retrieves a collection of recently viewed documents. \r\nNote: The audit trail event for page viewing must be enabled to use this API.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"lastDays",in:"query",description:"Number of past days to include. Default is 1.",schema:{type:"integer",format:"int32",default:1}},{name:"pageNum",in:"query",description:"The page number for pagination. Default is 1.",schema:{type:"integer",format:"int32",default:1}},{name:"pageSize",in:"query",description:"The number of items per page. Default is 10.",schema:{type:"integer",format:"int32",default:10}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.RecentViewedDocsCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.RecentViewedDocsCollection"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/savedqueryresults/{id}":{get:{tags:["SavedQueryResults"],summary:"Execute a saved query and return a result collection. This API supports the following OData query options: $Top, $Skip, $Count and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Saved query ID or name",required:!0,schema:{type:"string"}},{name:"ftquery",in:"query",description:"Optional fulltext query string",schema:{type:"string"}},{name:"ftoperator",in:"query",description:"Optional fulltext query operator",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryOperator"}},{name:"ftexpression",in:"query",description:"Optional fulltext query expression",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryExpression"}},{name:"allrevisions",in:"query",description:"Whether to include all revisions",schema:{type:"boolean"}},{name:"nativetype",in:"query",description:"Whether to return native index value type in the resultset",schema:{type:"boolean",default:!1}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryResultCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryResultCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/serversettings":{get:{tags:["ServerSettings"],summary:"Get server settings",responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.ServerSettings"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.ServerSettings"}}}}}}},"/api/v1/service":{get:{tags:["Service"],summary:"Main API entry. Returns the one and only top level service resource.",responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.HomeDocument"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.HomeDocument"}}}}}}},"/api/v1/datasources/{dsn}/storagepaths":{get:{tags:["StoragePaths"],summary:"Return a list of defined storage paths.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXStorageContent"}}},'application/json; profile="urn:camelcase:upper"':{schema:{type:"array",items:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXStorageContent"}}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},500:{description:"Internal Server Error",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/user":{get:{tags:["User"],summary:"Returns the current user resource.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.User"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.User"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/user/{id}":{get:{tags:["User"],summary:"Returns the specified user resource.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"User ID",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.User"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.User"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/userdefinedlist/{id}/{idx}":{get:{tags:["UserDefinedList"],summary:"Get the specified user defined list. This API supports the following OData query options: $Top, $Skip and $Count. If $top is omitted, the default page size is 200.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"Field ID",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserDefinedList"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserDefinedList"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/userprofile/{appid}":{get:{tags:["UserProfile"],summary:"Returns the specified profile for the current user.\r\nAppid 0 returns the user's global profile.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserProfiles"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserProfiles"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},put:{tags:["UserProfile"],summary:"Updates the specified profile for the current user.",description:'To update the specified profile for the current user:\r\n\r\n1. Retrieve the current profile settings using: GET /api/v1/DataSources/{dsn}/UserProfile/{appid}.\r\n\r\n2. Modify the desired settings in the returned object by updating the value in the "profile" field. \r\nIf the modified value is not default, set "isDefault" to false; otherwise, set it to true.\r\n\r\n3. Send the updated object back using: PUT /api/v1/DataSources/{dsn}/UserProfile/{appid}.',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}}],requestBody:{description:"Updated user profile settings",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserProfiles"}}}},responses:{204:{description:"No Content"},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}}},components:{schemas:{"AppEnhancer.WebApi.Models.AnnoGroupPermission":{type:"object",properties:{groupName:{type:"string",nullable:!0},viewAnnotations:{type:"boolean"},hideRedactions:{type:"boolean"},editAnnotations:{type:"boolean"},editRedactions:{type:"boolean"},globalEdit:{type:"boolean"},legacyPermission:{type:"boolean"},createAnnotations:{type:"boolean"},createRedactions:{type:"boolean"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.App":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"App name",nullable:!0},description:{type:"string",description:"App description",nullable:!0},id:{type:"integer",description:"App ID",format:"int32"},attributes:{type:"object",additionalProperties:{type:"boolean"},description:"App attributes",nullable:!0},permissions:{type:"object",additionalProperties:{type:"boolean"},description:"App specific user permissions",nullable:!0},workflowID:{type:"string",description:"Workflow ID",nullable:!0},ftServerType:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.FTServerType"}},additionalProperties:!1,description:"App resource"},"AppEnhancer.WebApi.Models.AppField":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"Field name",nullable:!0},id:{type:"string",description:"Field ID",nullable:!0},dataTypeID:{type:"integer",description:"Data type ID",format:"int32"},dataFormatID:{type:"integer",description:"Data format ID",format:"int32"},sampleFormat:{type:"string",description:"Sample format",nullable:!0},editMask:{type:"string",description:"Field edit mask (optional)",nullable:!0},validationRegex:{type:"string",description:"Validation regex for index field",nullable:!0},queryValidationRegex:{type:"string",description:"Validation regex for query field",nullable:!0},fieldLength:{type:"integer",description:"Field length (optional)",format:"int32"},attributes:{type:"object",additionalProperties:{type:"boolean"},description:"Field attributes",nullable:!0}},additionalProperties:!1,description:"AppField resource"},"AppEnhancer.WebApi.Models.AppFields":{type:"object",properties:{"@base":{type:"string",description:"Base URL for all the links",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.AppField"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initialization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"AppField collection"},"AppEnhancer.WebApi.Models.Apps":{type:"object",properties:{"@base":{type:"string",description:"Base URL for all the links",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.App"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initialization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"App collection"},"AppEnhancer.WebApi.Models.Batch":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},id:{type:"integer",description:"Batch ID",format:"int32"},name:{type:"string",description:"Batch name",nullable:!0},description:{type:"string",description:"Batch description",nullable:!0},state:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.BATCH_STATE"},creationTime:{type:"string",description:"Batch creation time",format:"date-time"},pageCount:{type:"integer",description:"Batch page count",format:"int32"},private:{type:"boolean",description:"Whether batch is private",nullable:!0},group:{type:"string",description:"The group that owns the batch",nullable:!0},objectResourceID:{type:"string",nullable:!0}},additionalProperties:!1,description:"Batch resource"},"AppEnhancer.WebApi.Models.BatchCollection":{type:"object",properties:{"@base":{type:"string",description:"Base URL for all the links",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initialization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"Batch collection"},"AppEnhancer.WebApi.Models.BatchPage":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},page:{type:"integer",description:"Page number",format:"int32"},objectResourceID:{type:"string",nullable:!0}},additionalProperties:!1,description:"AX Batch page resource"},"AppEnhancer.WebApi.Models.BatchPagesCollection":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},id:{type:"string",description:"Id",nullable:!0},updated:{type:"string",description:"Updated timestamp",format:"date-time"},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchPage"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"AX Batch page collection"},"AppEnhancer.WebApi.Models.CAQConfig":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"Saved query name",nullable:!0},id:{type:"integer",description:"Saved query ID",format:"int32"},isPublic:{type:"boolean",description:"Public or private query"},owner:{type:"string",description:"Query owner (same as Creator)",nullable:!0},caqApps:{type:"array",items:{type:"integer",format:"int32"},description:"CAQ apps",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CAQField"},description:"CAQ fields",nullable:!0}},additionalProperties:!1,description:"CAQ saved query object"},"AppEnhancer.WebApi.Models.CAQField":{type:"object",properties:{name:{type:"string",nullable:!0},searchable:{type:"boolean"},displayable:{type:"boolean"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.ChangeUserForm":{type:"object",properties:{oldPassword:{type:"string",format:"password",nullable:!0},newPassword:{type:"string",format:"password",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoCommonParameters":{required:["appName","dataSource","targetSite"],type:"object",properties:{targetSite:{minLength:1,type:"string",description:"Specifies the target site URL for AppEnhancer Web Access. This field is required. e.g. http://10.20.30.40/AppEnhancer",format:"uri"},dataSource:{minLength:1,type:"string",description:"Specifies the data source name. This field is required. e.g. AppEnhancerDEMO"},appName:{minLength:1,type:"string",description:"Specifies the application name. This field is required. e.g. IMAGEAPP"},credential:{type:"string",description:"Specifies the encrypted credential for AppEnhancer Web Access silent login. This field is optional. If not provided, users need to input the credential manually when accessing the target URL.",nullable:!0},encParam:{type:"boolean",description:"Specifies whether to encrypt all the parameters in the target URL. This field is optional and the default value is true."},autoLogoutOnClose:{type:"boolean",description:"Specifies whether to automatically logout the user if they close the browser (or browse away). This field is optional and the default value is false."},blockNavigation:{type:"boolean",description:"Specifies whether to block certain navigation aspects of AppEnhancer Web Access document viewer. This field is optional and the default value is false. This field is valid for ISubmitQuery and IDocImport."},dispMode:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoDisplayMode"},customErrorPage:{type:"string",description:"Specifies the custom error redirect page. This field is optional.",nullable:!0},errorPassThru:{type:"boolean",description:"Specifies whether to pass error message through custom error page URL. This field is optional and the default value is false. This field is only valid when custom error page provided."}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoCredentialRequest":{required:["password","username"],type:"object",properties:{username:{minLength:1,type:"string",description:"Specifies the AppEnhancer username. This field is required."},password:{type:"string",description:"Specifies the AppEnhancer password. This field is required.",format:"password"},domain:{type:"string",description:"Specifies the domain. This field is optional.",nullable:!0},credentialType:{type:"string",description:'Specifies the credential type. This field is optional and the default value is "CM". Currently, only "CM" is supported.',nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoCredentialResponse":{type:"object",properties:{credential:{type:"string",description:"Encrypted credential",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoDisplayMode":{enum:["NotSet","HideAppList","HideLogout","HideAppList_Logout","HideDocMenu_PageMenu_ToolBar_IndexPanel","HideAppList_DocMenu_PageMenu_ToolBar_IndexPanel","HideLogout_DocMenu_PageMenu_ToolBar_IndexPanel","HideAppList_Logout_DocMenu_PageMenu_ToolBar_IndexPanel","HideDocMenu_IndexPanel","HideAppList_DocMenu_IndexPanel","HideLogout_DocMenu_IndexPanel","HideAppList_Logout_DocMenu_IndexPanel","HideIndexPanel","HideAppList_IndexPanel","HideLogout_IndexPanel","HideAppList_Logout_IndexPanel"],type:"string",description:"Specifies the display mode. This field is optional and the default value is NotSet.\r\n\r\nHiding application list and logout is not applicable for IDocument.\r\n\r\nHiding document menu, page menu, toolbar options and index panel is not applicable for IDocImport.\r\n\r\n0 – Not set.\r\n\r\n1 – Hide application list only.\r\n\r\n2 – Hide logout button only.\r\n\r\n3 – Hide application list and logout button.\r\n\r\n4 – Hide document menu, page menu, toolbar options and index panel.\r\n\r\n5 – Hide application list, document menu, page menu, toolbar options and index panel.\r\n\r\n6 – Hide logout button, document menu, page menu, toolbar options and index panel.\r\n\r\n7 – Hide application list, logout button, document menu, page menu, toolbar options and index panel.\r\n\r\n8 – Hide document menu and index panel.\r\n\r\n9 – Hide application list, document menu and index panel.\r\n\r\n10 – Hide logout button, document menu and index panel.\r\n\r\n11 – Hide application list, logout button, document menu and index panel.\r\n\r\n16 - Hide index panel only.\r\n\r\n17 – Hide application list and index panel.\r\n\r\n18 – Hide logout button and index panel.\r\n\r\n19 – Hide application list, logout button and index panel.\r\n"},"AppEnhancer.WebApi.Models.CryptoIDocImportParameters":{type:"object",properties:{allowEditCDKIndex:{type:"boolean",description:"Specifies whether users are allowed to edit index fields after the document import page opens. This field is optional and the default value is false."},fieldValues:{type:"string",description:'Specifies the index values. This field is optional. e.g. "MEMBER NUMBER=925348;CHECK NUMBER=172".',nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoIDocImportRequest":{required:["commonParameters"],type:"object",properties:{commonParameters:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoCommonParameters"},iDocImportParameters:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoIDocImportParameters"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoIDocumentParameters":{required:["docId"],type:"object",properties:{docId:{maximum:2147483647,minimum:1,type:"integer",description:"Specifies the documment id. This field is required and must start from 1.",format:"int32"},pageNum:{type:"integer",description:"Specifies the page number. This field is optional. The default value is 0, indicating that no specific page is specified.",format:"int32"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoIDocumentRequest":{required:["commonParameters","iDocumentParameters"],type:"object",properties:{commonParameters:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoCommonParameters"},iDocumentParameters:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoIDocumentParameters"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoISubmitQueryParameters":{type:"object",properties:{queryType:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoISubmitQueryQueryType"},viewMode:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoISubmitQueryViewMode"},savedQuery:{type:"string",description:"Specifies the saved query name. This field is optional and only valid when QueryType is set to SavedQuery.",nullable:!0},saveAndRun:{type:"boolean",description:"Specifies whether to save a query first before running it. This field is optional and the default value is false. This field is only valid when QueryType is set to SavedQuery, and it does not apply to Multi-Application search.\r\nIf this value is true, the saved query will be updated with the field values provided in the query string, saved, and then executed."},isPublic:{type:"boolean",description:"Specifies whether to save the query as a public query. This field is optional and the default value is false. \r\nThis field is only valid when SaveAndRun is set to true and it it controls the 'Available to all users' setting of the saved query."},searchAllRevisions:{type:"boolean",description:"Specifies whether to search all document revisions. This field is optional and the default value is false."},updateFields:{type:"boolean",description:"Specifies whether to use the supplied field values for the query. This field is optional and the default value is true. \r\nWhen using a saved query, only the existing fields will be overridden; all other fields will retain their original values (if any)."},fulltextQuery:{type:"string",description:"Specifies the full-text query string (case-insensitive). This field is optional. \r\nProviding a FulltextQuery value enables full-text query mode, which requires a full-text license",nullable:!0},fulltextQueryType:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryExpression"},fulltextOperation:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryOperator"},fieldValues:{type:"string",description:"Specifies the query field values. e.g. \"DOCUMENT TYPE=DWG;OBJECT NUMBER=Expression: ['5','10']\". This field is optional.",nullable:!0},fieldsVisibility:{type:"string",description:'Specifies the visibility settings for the list of fields.This field is optional.\r\ne.g. "1=off;2=on;3=on;4=off;", where "1=off" hides Field1 and "2=on" shows Field2.',nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoISubmitQueryQueryType":{enum:["NormalQuery","SavedQuery"],type:"string",description:"Specifies the query type (NormalQuery = 0; SavedQuery = 1). This field is optional and the default value is NormalQuery."},"AppEnhancer.WebApi.Models.CryptoISubmitQueryRequest":{required:["commonParameters"],type:"object",properties:{commonParameters:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoCommonParameters"},iSubmitQueryParameters:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoISubmitQueryParameters"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoISubmitQueryViewMode":{enum:["ResultSet","QueryCriteria"],type:"string",description:"Specifies the view mode (ResultSet = 0; QueryCriteria = 1). This field is optional and the default value is ResultSet. Result set view will switch to query criteria page if no documents found."},"AppEnhancer.WebApi.Models.CryptoTargetURLResponse":{type:"object",properties:{targetUrl:{type:"string",description:"Target URL",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.DataFormat":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"Data format name",nullable:!0},id:{type:"integer",description:"Data format ID",format:"int32"},isCustom:{type:"boolean",description:"Is this a custom data format"},formatWidth:{type:"integer",description:"Format width",format:"int32"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.DataFormatCollection":{type:"object",properties:{"@base":{type:"string",description:"Base URL for all the links",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataFormat"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initialization if needed",format:"int64",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.DataSource":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"datasource name",nullable:!0},description:{type:"string",description:"datasource description",nullable:!0},isDefault:{type:"boolean",description:"default datasource"},id:{type:"string",description:"datesource GUID string for unique identifier",format:"uuid",nullable:!0},dbVersion:{type:"string",description:"datasource DB version",nullable:!0},securityModel:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DataSourceAuthenticationType"}},additionalProperties:!1,description:"DataSource resource"},"AppEnhancer.WebApi.Models.DataSources":{type:"object",properties:{"@base":{type:"string",description:"Base URL for all the links",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataSource"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initialization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"DataSource collection"},"AppEnhancer.WebApi.Models.DataType":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"Data type name",nullable:!0},id:{type:"integer",description:"Data type ID",format:"int32"},isCustom:{type:"boolean",description:"Is this a custom data type"},primitiveType:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXPrimitiveTypeKind"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.DataTypeCollection":{type:"object",properties:{"@base":{type:"string",description:"Base URL for all the links",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataType"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initialization if needed",format:"int64",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.DocAttributesCollection":{type:"object",properties:{checkedout:{type:"boolean",description:"Doc is checked out by current user"},checkoutComment:{type:"string",description:"Doc check out comment",nullable:!0},previousRevision:{type:"boolean",description:"Doc is a previous revision"},hasVersions:{type:"boolean",description:"Doc has revisions"},finalRevision:{type:"boolean",description:"Doc is the final revision"},isCOLD:{type:"boolean",description:"Doc is a COLD document"},recycledBy:{type:"string",description:"User who puts document into RecycleBin",nullable:!0},isRecycled:{type:"boolean",description:"Doc is Recycled document"}},additionalProperties:!1,description:"Doc Attributes Collection"},"AppEnhancer.WebApi.Models.DocODMARequest":{type:"object",properties:{name:{type:"string",description:"Document name/title",nullable:!0},author:{type:"string",description:"Document author",nullable:!0},subject:{type:"string",description:"Document subject",nullable:!0},comment:{type:"string",description:"Document comment",nullable:!0},keywords:{type:"array",items:{type:"string"},description:"Document keywords",nullable:!0}},additionalProperties:!1,description:"Doc ODMA request"},"AppEnhancer.WebApi.Models.DocODMAResponse":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"Document name/title",nullable:!0},author:{type:"string",description:"Document author",nullable:!0},subject:{type:"string",description:"Document subject",nullable:!0},comment:{type:"string",description:"Document comment",nullable:!0},created:{type:"string",description:"Document creation time",format:"date-time",nullable:!0},creator:{type:"string",description:"Document creator",nullable:!0},modified:{type:"string",description:"Document modification time",format:"date-time",nullable:!0},modifier:{type:"string",description:"Document modifier",nullable:!0},keywords:{type:"array",items:{type:"string"},description:"Document keywords",nullable:!0}},additionalProperties:!1,description:"Doc ODMA resource"},"AppEnhancer.WebApi.Models.DocPage":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},page:{type:"integer",description:"Page number",format:"int32"},objectResourceID:{type:"string",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.DocPagesCollection":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},id:{type:"string",description:"Id",nullable:!0},updated:{type:"string",description:"Updated timestamp",format:"date-time"},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocPage"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"Doc page collection"},"AppEnhancer.WebApi.Models.Document":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},workingCopy:{type:"boolean",description:"Whether the document is a working copy"},id:{type:"integer",description:"Doc ID",format:"int32"},pageCount:{type:"integer",description:"Page Count",format:"int32"},attributes:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocAttributesCollection"},objectResourceID:{type:"string",nullable:!0},submitFulltext:{type:"boolean",description:"Submit fulltext job. Can not be used during checkout"},fulltextQueue:{type:"string",description:"Obsolete. Server will use its own logic to determine which queue it will use basing on the Application and User.",nullable:!0},submitOCR:{type:"boolean",description:"Submit OCR job. Can not be used during checkout"},ocrQueue:{type:"string",description:"Obsolete. Server will use its own logic to determine which queue it will use basing on the Application and User.",nullable:!0},submitRestore:{type:"boolean",description:"Submit restore job. Only used on recycled items"}},additionalProperties:!1,description:"Document resource"},"AppEnhancer.WebApi.Models.DocumentDeletionType":{enum:["Active","Recycled"],type:"string",description:"Specifies the document deletion type. Default is 'Active'.\r\n\r\n'Active' – Delete an active document. If the application supports the Recycle Bin feature, the document is first moved to the Recycle Bin; otherwise, it is permanently deleted.\r\n\r\n'Recycled' – Permanently deletes a document that is already in the Recycle Bin.\r\n"},"AppEnhancer.WebApi.Models.DocumentIndex":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},indexID:{type:"integer",description:"Index ID",format:"int32"},indexValues:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexValue"},description:"Index values for each field",nullable:!0}},additionalProperties:!1,description:"Document Index"},"AppEnhancer.WebApi.Models.DocumentIndexRequest":{type:"object",properties:{documentIndex:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndex"},nativeDocumentIndex:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.NativeDocumentIndex"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.DocumentIndexResponse":{type:"object",properties:{documentIndex:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndex"},nativeDocumentIndex:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.NativeDocumentIndex"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.DocumentIndexValue":{type:"object",properties:{fieldID:{type:"string",description:"App field ID",nullable:!0},fieldValue:{type:"string",description:"Index value",nullable:!0}},additionalProperties:!1,description:"Document index field value"},"AppEnhancer.WebApi.Models.DocumentIndexes":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},id:{type:"string",description:"Id",nullable:!0},updated:{type:"string",description:"Updated timestamp",format:"date-time"},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndex"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"Document Index collection with pagenation"},"AppEnhancer.WebApi.Models.DocumentIndexesResponse":{type:"object",properties:{documentIndexes:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexes"},nativeDocumentIndexes:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.NativeDocumentIndexes"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.EmbeddedResource":{type:"object",properties:{href:{type:"string",nullable:!0},hints:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Hints"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.FullTextSearchOptions":{type:"object",properties:{queryOperator:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryOperator"},searchType:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryExpression"},value:{type:"string",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.FulltextQuery":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},ftQueryOperator:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryOperator"},ftQueryExpression:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryExpression"},ftQueryValue:{type:"string",description:"Fulltext query criteria value",nullable:!0},ftQueryOptions:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryOptions"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.FulltextRequestItem":{type:"object",properties:{request:{type:"string",description:"Request string",nullable:!0},clientID:{type:"string",description:"Client IP",nullable:!0},timeStamp:{type:"string",description:"Time of request",nullable:!0},duration:{type:"string",description:"Duration of request",nullable:!0},status:{type:"string",description:"Status of request",nullable:!0}},additionalProperties:!1,description:"Parsed IDOL request item"},"AppEnhancer.WebApi.Models.GroupCollection":{type:"object",properties:{count:{type:"integer",format:"int64",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QuickGroup"},nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.Hints":{type:"object",properties:{allow:{type:"array",items:{type:"string"},nullable:!0},representations:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.HomeDocument":{type:"object",properties:{resources:{type:"object",additionalProperties:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.EmbeddedResource"},nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.KeyRefIndex":{type:"object",properties:{indexValues:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexValue"},description:"Index values for each field",nullable:!0}},additionalProperties:!1,description:"Key Ref Index"},"AppEnhancer.WebApi.Models.KeyRefIndexResponse":{type:"object",properties:{keyRefIndex:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.KeyRefIndex"},nativeKeyRefIndex:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.NativeKeyRefIndex"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.Link":{type:"object",properties:{rel:{type:"string",description:"Relationship",nullable:!0},href:{type:"string",description:"Hyperlink",nullable:!0}},additionalProperties:!1,description:"Link class for supporting linked resources"},"AppEnhancer.WebApi.Models.LoginRequest":{required:["dataSource"],type:"object",properties:{dataSource:{minLength:1,type:"string"},username:{type:"string",nullable:!0},password:{type:"string",format:"password",nullable:!0},ssoTicket:{type:"string",nullable:!0},licenseFlags:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.ExtraLoginLicenseFlags"},clientCode:{type:"string",format:"uuid",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.LoginResponse":{type:"object",properties:{id:{type:"integer",format:"int32"},isSuperUser:{type:"boolean"},fullName:{type:"string",nullable:!0},username:{type:"string",nullable:!0},token:{type:"string",nullable:!0},refresh:{type:"string",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.LogoutRequest":{type:"object",properties:{refreshToken:{type:"string",nullable:!0},accessToken:{type:"string",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.NativeDocIndexValue":{type:"object",properties:{fieldID:{type:"string",description:"App field ID",nullable:!0},nativeFieldValue:{description:"Index value",nullable:!0}},additionalProperties:!1,description:"Document index field value"},"AppEnhancer.WebApi.Models.NativeDocumentIndex":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},indexID:{type:"integer",description:"Index ID",format:"int32"},indexValues:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.NativeDocIndexValue"},description:"Index values for each field",nullable:!0}},additionalProperties:!1,description:"Document Index"},"AppEnhancer.WebApi.Models.NativeDocumentIndexes":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},id:{type:"string",description:"Id",nullable:!0},updated:{type:"string",description:"Updated timestamp",format:"date-time"},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.NativeDocumentIndex"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"Native Document Index collection with pagenation"},"AppEnhancer.WebApi.Models.NativeKeyRefIndex":{type:"object",properties:{indexValues:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.NativeDocIndexValue"},description:"Index values for each field",nullable:!0}},additionalProperties:!1,description:"Native Key Ref Index"},"AppEnhancer.WebApi.Models.NewDocumentRequest":{type:"object",properties:{targetDoc:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"},newIndex:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndex"},nativeNewIndex:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.NativeDocumentIndex"},fromBatch:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"},batchPageNum:{type:"integer",format:"int32"},pageRange:{type:"string",nullable:!0},submitFullText:{type:"boolean"},mergeDuplicateIndex:{type:"boolean"},ignoreDuplicateIndex:{type:"boolean"},ignoreDlsViolation:{type:"boolean"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.OAuthProvider":{type:"object",properties:{id:{type:"string",nullable:!0},name:{type:"string",nullable:!0},clientId:{type:"string",nullable:!0},scope:{type:"string",nullable:!0},userInfoEndpoint:{type:"string",nullable:!0},authEndpoint:{type:"string",nullable:!0},tokenEndpoint:{type:"string",nullable:!0},logoutEndpoint:{type:"string",nullable:!0},dataSources:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.OAuthProvidersResponse":{type:"object",properties:{providers:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.OAuthProvider"},nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.QueriesCollection":{type:"object",properties:{"@base":{type:"string",description:"Base URL for all the links",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Query"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initialization if needed",format:"int64",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.Query":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"Saved query name",nullable:!0},id:{type:"integer",description:"Saved query ID",format:"int32"},queryType:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXQueryTypes"},isPublic:{type:"boolean",description:"Public or private query"},isIncludingPreviousRevisions:{type:"boolean",description:"Whether to search all previous doc revisions"},owner:{type:"string",description:"Query owner (same as Creator)",nullable:!0},appID:{type:"integer",description:"Application ID. It is only valid when QueryType is DocumentQuery.",format:"int32"},caqApps:{type:"array",items:{type:"integer",format:"int32"},description:"CAQ apps. It is only valid when QueryType is CrossAppQuery.",nullable:!0}},additionalProperties:!1,description:"Saved query object"},"AppEnhancer.WebApi.Models.QueryField":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"Query Field Name for display",nullable:!0},searchName:{type:"string",description:"Query Field Name for search (used in OData query)",nullable:!0},fieldAttributes:{type:"object",additionalProperties:{type:"boolean"},description:"Query field attributes",nullable:!0},fieldLength:{type:"integer",description:"Optional field length",format:"int32"},queryValue:{type:"string",description:"Query criteria value",nullable:!0}},additionalProperties:!1,description:"Query field"},"AppEnhancer.WebApi.Models.QueryFields":{type:"object",properties:{"@base":{type:"string",description:"Base URL for all the links",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryField"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initialization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"Query field collection"},"AppEnhancer.WebApi.Models.QueryIndex":{type:"object",properties:{name:{type:"string",nullable:!0},value:{type:"string",nullable:!0},isODMAField:{type:"boolean"},searchable:{type:"boolean"},displayable:{type:"boolean"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.QueryModel":{type:"object",properties:{indexes:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryIndex"},nullable:!0},fullText:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.FullTextSearchOptions"},retentionOptions:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.RetentionQueryOptions"},name:{maxLength:132,minLength:0,type:"string",nullable:!0},id:{type:"integer",format:"int32"},isPublic:{type:"boolean"},isIncludingPreviousRevisions:{type:"boolean"},recBinSearch:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.SearchRecycleBinDocuments"},queryType:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXQueryTypes"},apps:{type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1,description:"Represents a saved query"},"AppEnhancer.WebApi.Models.QueryResultCollection":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},id:{type:"string",description:"Id",nullable:!0},updated:{type:"string",description:"Updated timestamp",format:"date-time"},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryResultItem"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initization if needed",format:"int64",nullable:!0},columns:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1,description:"AX query resultset items collection with pagenation."},"AppEnhancer.WebApi.Models.QueryResultItem":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},indexValues:{type:"array",items:{type:"string"},description:"Resultset item column values",nullable:!0},nativeIndexValues:{type:"array",items:{},description:"Resultset item native column values",nullable:!0},id:{type:"integer",description:"Primary ID of the resultset item (could be doc or report ID)",format:"int32"},appID:{type:"integer",description:"AX Application ID this result item belongs to",format:"int32"},pageCount:{type:"integer",description:"Page count of the document or report",format:"int32"},attributes:{type:"object",additionalProperties:{type:"boolean"},description:"Attributes",nullable:!0},recycleUserId:{type:"integer",format:"int32"},fulltextHits:{type:"integer",description:"If full text search if performed, this contains number of full text hits on this item.\r\nOtherwise, it will be null.",format:"int32",nullable:!0}},additionalProperties:!1,description:"Represents a query resultset item"},"AppEnhancer.WebApi.Models.QuickGroup":{type:"object",properties:{name:{type:"string",nullable:!0},description:{type:"string",nullable:!0},id:{type:"integer",format:"int32"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.QuickUser":{type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fullName:{type:"string",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.ReadyResponse":{required:["dbSchemaVersion","productVersion"],type:"object",properties:{productVersion:{type:"string",nullable:!0},dbSchemaVersion:{type:"string",nullable:!0},dbResponseTimeMS:{type:"integer",format:"int64"},jwtEnabled:{type:"boolean"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.RecentViewedDoc":{type:"object",properties:{appId:{type:"integer",description:"Application ID",format:"int32"},appName:{type:"string",description:"Application Name",nullable:!0},appFieldName:{type:"string",description:"Application Field Name",nullable:!0},docId:{type:"integer",description:"Doc ID",format:"int32"},docTitle:{type:"string",description:"Doc title",nullable:!0},dateTime:{type:"string",description:"Viewed datetime",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.RecentViewedDocsCollection":{type:"object",properties:{totalCount:{type:"integer",format:"int32"},recentViewDocs:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.RecentViewedDoc"},nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.RefreshRequest":{type:"object",properties:{refreshToken:{type:"string",nullable:!0},accessToken:{type:"string",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.RetentionQueryOptions":{type:"object",properties:{type:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXRetentionQueryType"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.SearchRecycleBinDocuments":{type:"object",properties:{searchOnlyRecycleBinDocs:{type:"boolean"},searchWithRecycleBinDocs:{type:"boolean"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.ServerSettings":{type:"object",properties:{isSingleDataSource:{type:"boolean"},autoLogoutOnClose:{type:"boolean"},productVersion:{type:"string",nullable:!0},isRenderForeignFileAsHTMLEnabled:{type:"boolean"},maxVisibleUDLItems:{type:"integer",format:"int32"},isClientEmail:{type:"boolean"},isPDFRedactionEnabled:{type:"boolean"},useHiddenFieldLegacyRules:{type:"boolean"},customSettings:{type:"object",additionalProperties:{},nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.User":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"Gets or sets the user name.",nullable:!0},fullName:{type:"string",description:"Gets or sets the user full name.",nullable:!0},id:{type:"integer",description:"Gets or sets the user ID.",format:"int32"},permissions:{type:"object",additionalProperties:{type:"boolean"},description:"Gets or sets the user permissions.",nullable:!0},annoGroupPermissions:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.AnnoGroupPermission"},nullable:!0},isSingleSignOnSession:{type:"boolean",nullable:!0},authenticationType:{type:"string",nullable:!0},canChangePassword:{type:"boolean",nullable:!0,readOnly:!0},passwordState:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.PasswordStates"},passwordExpirationDate:{type:"string",format:"date-time",nullable:!0,readOnly:!0},licenseType:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXLicenseTypes"},isLicensePending:{type:"boolean",nullable:!0,readOnly:!0},isFTLicensed:{type:"boolean",nullable:!0,readOnly:!0},evaluationDaysLeft:{type:"integer",format:"int32",nullable:!0,readOnly:!0},groups:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QuickGroup"},nullable:!0,readOnly:!0}},additionalProperties:!1,description:"Represents a user in the system."},"AppEnhancer.WebApi.Models.UserCollection":{type:"object",properties:{count:{type:"integer",format:"int64",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QuickUser"},nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.UserDefinedList":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},id:{type:"string",description:"Id",nullable:!0},updated:{type:"string",description:"Updated timestamp",format:"date-time"},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserDefinedListItem"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"User Defined List"},"AppEnhancer.WebApi.Models.UserDefinedListItem":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},id:{type:"integer",description:"User Defined List item ID. This is typically used for sorting",format:"int32"},value:{type:"string",description:"User Defined List item value.",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.UserProfiles":{type:"object",properties:{appId:{type:"integer",format:"int32",nullable:!0},userId:{type:"integer",format:"int32",nullable:!0},profiles:{type:"object",additionalProperties:{$ref:"#/components/schemas/XtenderSolutions.UserProfile.ProfileSet"},nullable:!0},profileGroupInfo:{type:"array",items:{$ref:"#/components/schemas/XtenderSolutions.UserProfile.ProfileGroupInfo"},nullable:!0}},additionalProperties:!1,description:"Represents a user profile in the system."},"Microsoft.AspNetCore.Mvc.ProblemDetails":{type:"object",properties:{type:{type:"string",nullable:!0},title:{type:"string",nullable:!0},status:{type:"integer",format:"int32",nullable:!0},detail:{type:"string",nullable:!0},instance:{type:"string",nullable:!0}},additionalProperties:{}},"XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryExpression":{enum:["And","OR","Exact","Expression"],type:"string",description:"Full text search expressions"},"XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryOperator":{enum:["And","Or"],type:"string",description:"Full text query operator"},"XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryOptions":{enum:["None","Thesaurus"],type:"string",description:"Full text search options"},"XtenderSolutions.AXEngineApi.Interfaces.AXLicenseTypes":{enum:["Normal","Demo","Evaluation","Unknown"],type:"string",description:"AX license types enumeration"},"XtenderSolutions.AXEngineApi.Interfaces.AXPrimitiveTypeKind":{enum:["None","Boolean","Integer","LongInteger","Decimal","LongDecimal","String","DateTime","Guid"],type:"string",description:"List of all primitive types that can be mapped from AX data types"},"XtenderSolutions.AXEngineApi.Interfaces.AXQueryTypes":{enum:["DocumentQuery","CrossAppQuery","ReportQuery","RetentionQuery"],type:"string",description:"Supported AX query types"},"XtenderSolutions.AXEngineApi.Interfaces.AXRetentionQueryType":{enum:["AllIncludingRetention","AllExcludingRetention","OnlyUnderRetention","OnlyOnRetentionHold","OnlyUnderRetentionNotOnHold"],type:"string",description:"Retention Query Types"},"XtenderSolutions.AXEngineApi.Interfaces.AXStorageContent":{type:"object",properties:{storageType:{type:"string",nullable:!0,readOnly:!0},storageContent:{type:"string",nullable:!0}},additionalProperties:!1},"XtenderSolutions.AXEngineApi.Interfaces.BATCH_STATE":{enum:["Idle","Scan","Index"],type:"string",description:"Batch opertation state"},"XtenderSolutions.AXEngineApi.Interfaces.BinFileImportOptions":{enum:["None","InspectPDFFile","DecryptPDFFile","SaveAsCompressedTextWithFormName","SaveAsUncompressedText","ImportPDFPortfolioAsForeignFile","ImportPDFPortfolioExtractEmbeddedFiles"],type:"string",description:"Bin file import options enumeration"},"XtenderSolutions.AXEngineApi.Interfaces.DataSourceAuthenticationType":{enum:["CM","Windows","Directory","EAI","Custom","Unknown"],type:"string",description:"Datasource authentication type enumeration"},"XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests":{enum:["None","View","Print","Email","Export","ModifyOrDelete"],type:"string",description:"On App with HIPPAComment attributes, actions on documents must be pre-requested.\r\nThis is the enumeration of all allowed requests"},"XtenderSolutions.AXEngineApi.Interfaces.ExtraLoginLicenseFlags":{enum:["FulltextSearchLicense","ImageProcessing"],type:"string",description:"License flags during login"},"XtenderSolutions.AXEngineApi.Interfaces.FTServerType":{enum:["None","ProIndex","XPlore","IDOL"],type:"string",description:"Full text server type"},"XtenderSolutions.AXEngineApi.Interfaces.OCRLanguages":{enum:["Belarusian","Czech","Danish","Dutch","English","Estonian","Finnish","French","German","Greek","Hungarian","Italian","Latvian","Luthuanian","NorwegianBokmal","Polish","PortugueseBrazilian","PortugueseStandard","Romanian","Russian","Slovenian","Spanish","Swedish","Turkish","Ukrainian","ChineseSimplified","ChineseTraditional","Japanese","Korean"],type:"string",description:"Enuemration of supported OCR languages"},"XtenderSolutions.AXEngineApi.Interfaces.PageInsertOP":{enum:["InsertBefore","InsertAfter","Append"],type:"string"},"XtenderSolutions.AXEngineApi.Interfaces.PasswordStates":{enum:["Ok","PromptChange","MustChange"],type:"string",description:"Password states"},"XtenderSolutions.UserProfile.ProfileGroup":{enum:["FullText","QueryResultset","Display","Batch","Index","Import","Email","COLD","IRM","Print","Viewer","Export","Job","Share","Workflow","Others","CoreSignature"],type:"string"},"XtenderSolutions.UserProfile.ProfileGroupInfo":{type:"object",properties:{profileGroup:{$ref:"#/components/schemas/XtenderSolutions.UserProfile.ProfileGroup"},displayName:{type:"string",nullable:!0,readOnly:!0},description:{type:"string",nullable:!0,readOnly:!0}},additionalProperties:!1},"XtenderSolutions.UserProfile.ProfileSet":{type:"object",properties:{isDefault:{type:"boolean"},customizable:{type:"boolean"},profile:{nullable:!0},displayName:{type:"string",nullable:!0},errorMessage:{type:"string",nullable:!0},maxValue:{type:"number",format:"double"},minValue:{type:"number",format:"double"},pattern:{type:"string",nullable:!0},valueOptions:{type:"array",items:{$ref:"#/components/schemas/XtenderSolutions.UserProfile.ProfileValueOption"},nullable:!0}},additionalProperties:!1},"XtenderSolutions.UserProfile.ProfileValueOption":{type:"object",properties:{label:{type:"string",nullable:!0,readOnly:!0},value:{nullable:!0},name:{type:"string",nullable:!0}},additionalProperties:!1}},securitySchemes:{Bearer:{type:"http",description:"Please enter a valid token",scheme:"bearer",bearerFormat:"JWT"}}},security:[{Bearer:[]}],tags:[{name:"AdhocQueryResults"},{name:"AppAttributesDefinitions"},{name:"AppAutoIndexLookup"},{name:"AppFields"},{name:"AppKeyRefLookup"},{name:"Apps"},{name:"AppSelectIndexLookup"},{name:"Auth"},{name:"Batches"},{name:"BatchPages"},{name:"CAQQuery"},{name:"Collection"},{name:"DataFormats"},{name:"DataSources"},{name:"DataTypes"},{name:"DocIndexes"},{name:"DocODMA"},{name:"DocPages"},{name:"Docs"},{name:"DocumentsFromBatch"},{name:"DocWorkingCopy"},{name:"ErrorCodes"},{name:"FulltextAdmin"},{name:"FulltextQuery"},{name:"Health"},{name:"HTTPCryptoInterface"},{name:"ODMAQueryFields"},{name:"Password"},{name:"PermissionDefinitions"},{name:"Queries"},{name:"QueryFields"},{name:"RecentViewedDocs"},{name:"SavedQueryResults"},{name:"ServerSettings"},{name:"Service"},{name:"StoragePaths"},{name:"User"},{name:"UserDefinedList"},{name:"UserProfile"}]},defaultMethod:"GET",defaultPath:"/entities/1"},{id:"oas-3.1-extreme",label:"OAS 3.1 — Extreme Enterprise Platform",swaggerData:{openapi:"3.1.0",jsonSchemaDialect:"https://json-schema.org/draft/2020-12/schema",info:{title:"Enterprise Platform API",version:"1.0.0",description:"Production-grade OpenAPI 3.1 specification with multiple environments, polymorphism, webhooks, callbacks, security schemes and advanced schemas."},servers:[{url:"https://dev-api.company.com",description:"Development"},{url:"https://qa-api.company.com",description:"QA"},{url:"https://uat-api.company.com",description:"UAT"},{url:"https://staging-api.company.com",description:"Staging"},{url:"https://api.company.com",description:"Production"}],tags:[{name:"auth"},{name:"users"},{name:"organizations"},{name:"projects"},{name:"deployments"},{name:"billing"},{name:"files"},{name:"analytics"},{name:"admin"},{name:"webhooks"}],paths:{"/auth":{get:{tags:["auth"],operationId:"listAuth",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["auth"],operationId:"createAuth",responses:{202:{description:"Accepted"}}}},"/auth/{id}":{get:{tags:["auth"],operationId:"getAuth",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/users":{get:{tags:["users"],operationId:"listUsers",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["users"],operationId:"createUsers",responses:{202:{description:"Accepted"}}}},"/users/{id}":{get:{tags:["users"],operationId:"getUsers",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/organizations":{get:{tags:["organizations"],operationId:"listOrganizations",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["organizations"],operationId:"createOrganizations",responses:{202:{description:"Accepted"}}}},"/organizations/{id}":{get:{tags:["organizations"],operationId:"getOrganizations",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/projects":{get:{tags:["projects"],operationId:"listProjects",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["projects"],operationId:"createProjects",responses:{202:{description:"Accepted"}}}},"/projects/{id}":{get:{tags:["projects"],operationId:"getProjects",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/workspaces":{get:{tags:["workspaces"],operationId:"listWorkspaces",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["workspaces"],operationId:"createWorkspaces",responses:{202:{description:"Accepted"}}}},"/workspaces/{id}":{get:{tags:["workspaces"],operationId:"getWorkspaces",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/environments":{get:{tags:["environments"],operationId:"listEnvironments",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["environments"],operationId:"createEnvironments",responses:{202:{description:"Accepted"}}}},"/environments/{id}":{get:{tags:["environments"],operationId:"getEnvironments",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/apis":{get:{tags:["apis"],operationId:"listApis",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["apis"],operationId:"createApis",responses:{202:{description:"Accepted"}}}},"/apis/{id}":{get:{tags:["apis"],operationId:"getApis",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/deployments":{get:{tags:["deployments"],operationId:"listDeployments",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["deployments"],operationId:"createDeployments",responses:{202:{description:"Accepted"}}}},"/deployments/{id}":{get:{tags:["deployments"],operationId:"getDeployments",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/audit-logs":{get:{tags:["audit-logs"],operationId:"listAuditLogs",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["audit-logs"],operationId:"createAuditLogs",responses:{202:{description:"Accepted"}}}},"/audit-logs/{id}":{get:{tags:["audit-logs"],operationId:"getAuditLogs",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/notifications":{get:{tags:["notifications"],operationId:"listNotifications",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["notifications"],operationId:"createNotifications",responses:{202:{description:"Accepted"}}}},"/notifications/{id}":{get:{tags:["notifications"],operationId:"getNotifications",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/billing":{get:{tags:["billing"],operationId:"listBilling",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["billing"],operationId:"createBilling",responses:{202:{description:"Accepted"}}}},"/billing/{id}":{get:{tags:["billing"],operationId:"getBilling",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/subscriptions":{get:{tags:["subscriptions"],operationId:"listSubscriptions",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["subscriptions"],operationId:"createSubscriptions",responses:{202:{description:"Accepted"}}}},"/subscriptions/{id}":{get:{tags:["subscriptions"],operationId:"getSubscriptions",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/webhooks":{get:{tags:["webhooks"],operationId:"listWebhooks",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["webhooks"],operationId:"createWebhooks",responses:{202:{description:"Accepted"}}}},"/webhooks/{id}":{get:{tags:["webhooks"],operationId:"getWebhooks",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/files":{get:{tags:["files"],operationId:"listFiles",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["files"],operationId:"createFiles",responses:{202:{description:"Accepted"}}}},"/files/{id}":{get:{tags:["files"],operationId:"getFiles",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/search":{get:{tags:["search"],operationId:"listSearch",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["search"],operationId:"createSearch",responses:{202:{description:"Accepted"}}}},"/search/{id}":{get:{tags:["search"],operationId:"getSearch",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/analytics":{get:{tags:["analytics"],operationId:"listAnalytics",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["analytics"],operationId:"createAnalytics",responses:{202:{description:"Accepted"}}}},"/analytics/{id}":{get:{tags:["analytics"],operationId:"getAnalytics",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/reports":{get:{tags:["reports"],operationId:"listReports",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["reports"],operationId:"createReports",responses:{202:{description:"Accepted"}}}},"/reports/{id}":{get:{tags:["reports"],operationId:"getReports",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/admin":{get:{tags:["admin"],operationId:"listAdmin",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["admin"],operationId:"createAdmin",responses:{202:{description:"Accepted"}}}},"/admin/{id}":{get:{tags:["admin"],operationId:"getAdmin",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/feature-flags":{get:{tags:["feature-flags"],operationId:"listFeatureFlags",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["feature-flags"],operationId:"createFeatureFlags",responses:{202:{description:"Accepted"}}}},"/feature-flags/{id}":{get:{tags:["feature-flags"],operationId:"getFeatureFlags",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/system":{get:{tags:["system"],operationId:"listSystem",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["system"],operationId:"createSystem",responses:{202:{description:"Accepted"}}}},"/system/{id}":{get:{tags:["system"],operationId:"getSystem",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}}},webhooks:{deploymentCompleted:{post:{requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/DeploymentEvent"}}}},responses:{200:{description:"Accepted"}}}}},components:{securitySchemes:{bearerAuth:{type:"http",scheme:"bearer",bearerFormat:"JWT"},apiKeyAuth:{type:"apiKey",in:"header",name:"X-API-Key"},oauth2:{type:"oauth2",flows:{authorizationCode:{authorizationUrl:"https://auth.company.com/authorize",tokenUrl:"https://auth.company.com/token",scopes:{read:"Read",write:"Write"}}}}},schemas:{ProblemDetails:{type:"object",required:["title","status"],properties:{type:{type:"string"},title:{type:"string"},status:{type:"integer"},detail:{type:"string"},instance:{type:"string"}}},BaseResource:{type:"object",required:["id","resourceType"],properties:{id:{type:"string",format:"uuid"},resourceType:{type:"string"}}},User:{allOf:[{$ref:"#/components/schemas/BaseResource"},{type:"object",properties:{email:{type:"string",format:"email"}}}]},Organization:{allOf:[{$ref:"#/components/schemas/BaseResource"},{type:"object",properties:{name:{type:"string"}}}]},Resource:{oneOf:[{$ref:"#/components/schemas/User"},{$ref:"#/components/schemas/Organization"}],discriminator:{propertyName:"resourceType"}},DeploymentEvent:{type:"object",properties:{deploymentId:{type:"string"},status:{enum:["SUCCESS","FAILED","PENDING"]}}},OAS31DatatypeReference:{type:"object",description:"Reference schema covering OpenAPI 3.1 datatypes and validation/modifier checks. Mirrors the 3.0 datatype reference but uses numeric exclusiveMinimum/exclusiveMaximum (3.1 semantics).",required:["stringConstrained","roomId","quantity","colorTags","userProfile"],minProperties:5,maxProperties:40,additionalProperties:!1,deprecated:!0,properties:{stringConstrained:{type:"string",description:"String with length, pattern, enum, default, example, and modifier checks (deprecated + writeOnly).",format:"email",minLength:5,maxLength:100,pattern:"^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}$",enum:["admin@example.com","user@example.com"],default:"user@example.com",example:"admin@example.com",writeOnly:!0,deprecated:!0},nickname:{type:"string",description:"Nullable string (nullable modifier check).",minLength:1,maxLength:30,nullable:!0,example:"jdoe"},sessionId:{type:"string",description:"String uuid format example (read-only).",format:"uuid",readOnly:!0,example:"550e8400-e29b-41d4-a716-446655440000"},toggleDisplay:{type:"boolean",description:"Boolean datatype example.",example:!0},roomId:{type:"number",description:"Number with numeric exclusive bounds (3.1 style) and multipleOf.",exclusiveMinimum:2300,exclusiveMaximum:2500,multipleOf:.5,example:2400.5},quantity:{type:"integer",description:"Integer with inclusive bounds, multipleOf, enum, default, and example checks.",minimum:10,maximum:100,multipleOf:5,enum:[15,20,25,30],default:20,example:25},colorTags:{type:"array",description:"Array with items, minItems, maxItems, uniqueItems, defaults, examples, and modifier checks (nullable + deprecated).",minItems:1,maxItems:5,uniqueItems:!0,nullable:!0,default:["red"],example:["green"],deprecated:!0,items:{type:"string",minLength:3,maxLength:20,example:"green"}},userProfile:{type:"object",description:"Object with properties, required, additionalProperties, minProperties, maxProperties, and modifier checks (nullable + deprecated + readOnly).",minProperties:2,maxProperties:5,additionalProperties:!1,nullable:!0,readOnly:!0,deprecated:!0,required:["id","name"],properties:{id:{type:"integer",readOnly:!0,example:101},name:{type:"string",minLength:3,maxLength:50,writeOnly:!0,example:"John Doe"},email:{type:"string",format:"email",example:"john@example.com"}}}},example:{stringConstrained:"admin@example.com",nickname:"jdoe",sessionId:"550e8400-e29b-41d4-a716-446655440000",toggleDisplay:!0,roomId:2400.5,quantity:25,colorTags:["green"],userProfile:{id:101,name:"John Doe",email:"john@example.com"}}}}},security:[{bearerAuth:[]}]},defaultMethod:"GET",defaultPath:"/resources/1"}];function N7(){return S7.map(function(e){var t=O7(e.swaggerData),n=function(e){if(!e.length)return{selectedMethod:"",selectedPath:""};var t=e[0];return{selectedMethod:t.method,selectedPath:t.path}}(t),r=e.defaultMethod||n.selectedMethod,o=e.defaultPath||n.selectedPath;return C7(C7({},e),{},{version:A7(e.swaggerData),operations:t,defaultMethod:r,defaultPath:o})})}function j7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function T7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j7(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P7(t){var n,r=t.value,i=t.onChange,a=t.fixtures,s=Ce(e.useState(!1),2),c=s[0],l=s[1],u=e.useMemo(function(){return a||N7()},[a]),p=e.useMemo(function(){return O7(r.swaggerData)},[r.swaggerData]),d=e.useMemo(function(){return function(e){return e.reduce(function(e,t){var n=t.tag||"default";return e[n]||(e[n]=[]),e[n].push(t),e},{})}(p)},[p]),f=e.useMemo(function(){return A7(r.swaggerData)},[r.swaggerData]),h="".concat(r.selectedMethod," ").concat(r.selectedPath),m=e.useCallback(function(e){i(T7(T7({},r),e))},[i,r]),g=e.useCallback(function(e){var t,n=(t=e.target.value,N7().find(function(e){return e.id===t}));n&&m({fixtureId:n.id,swaggerData:n.swaggerData,selectedMethod:n.defaultMethod,selectedPath:n.defaultPath})},[m]),y=e.useCallback(function(e){var t=D7.apply(void 0,[p].concat(lt(e.target.value.split("::"))));t&&m({selectedMethod:t.method,selectedPath:t.path})},[p,m]),v=e.useCallback(function(e){m({appTheme:e})},[m]),b=e.useCallback(function(e){m({enableLeftPanel:e})},[m]),w=e.useCallback(function(e){m({showOAS:e})},[m]),x=e.useCallback(function(e){m({hideRightPanel:e})},[m]),_=e.useCallback(function(e){m({disableTryout:e})},[m]);return o.jsxs("div",{className:Qy("catalog-dev-tools","apiwiz-catalog-library"),children:[c&&o.jsxs("div",{className:Qy("catalog-dev-tools__panel","border-secondary-1px","bg-L3"),children:[o.jsxs("div",{className:Qy("flex-rows","vt-center","hz-space-between","mb-12px"),children:[o.jsx("div",{className:Qy("fs-14px","fw-600","color-primary"),children:"Catalog Dev Tools"}),o.jsxs("span",{className:"catalog-dev-tools__badge",children:["OAS ",f]})]}),o.jsxs("div",{className:"catalog-dev-tools__field",children:[o.jsx("label",{className:"catalog-dev-tools__label",htmlFor:"catalog-dev-tools-spec",children:"Spec preset"}),o.jsx("select",{id:"catalog-dev-tools-spec",className:"catalog-dev-tools__select",value:r.fixtureId||(null===(n=u[0])||void 0===n?void 0:n.id),onChange:g,children:u.map(function(e){return o.jsx("option",{value:e.id,children:e.label},e.id)})})]}),o.jsxs("div",{className:"catalog-dev-tools__field",children:[o.jsx("label",{className:"catalog-dev-tools__label",htmlFor:"catalog-dev-tools-operation",children:"Operation"}),o.jsx("select",{id:"catalog-dev-tools-operation",className:"catalog-dev-tools__select",value:p.find(function(e){return e.id===h})?"".concat(r.selectedMethod,"::").concat(r.selectedPath):"",onChange:y,children:Object.keys(d).sort().map(function(e){return o.jsx("optgroup",{label:e,children:d[e].map(function(e){return o.jsxs("option",{value:"".concat(e.method,"::").concat(e.path),children:[e.method," ",e.path,e.summary?" — ".concat(e.summary):""]},e.id)})},e)})})]}),o.jsx("div",{className:"catalog-dev-tools__field",children:o.jsxs("div",{className:"catalog-dev-tools__toggle-row",children:[o.jsx("span",{className:"catalog-dev-tools__label",children:"Theme"}),o.jsxs("div",{className:"catalog-dev-tools__toggle",children:[o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":r.appTheme===V.LIGHT}),onClick:function(){return v(V.LIGHT)},children:"Light"}),o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":r.appTheme===V.DARK}),onClick:function(){return v(V.DARK)},children:"Dark"})]})]})}),o.jsx("div",{className:"catalog-dev-tools__field",children:o.jsxs("div",{className:"catalog-dev-tools__toggle-row",children:[o.jsx("span",{className:"catalog-dev-tools__label",children:"Left panel"}),o.jsxs("div",{className:"catalog-dev-tools__toggle",children:[o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":r.enableLeftPanel}),onClick:function(){return b(!0)},children:"On"}),o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":!r.enableLeftPanel}),onClick:function(){return b(!1)},children:"Off"})]})]})}),o.jsx("div",{className:"catalog-dev-tools__field",children:o.jsxs("div",{className:"catalog-dev-tools__toggle-row",children:[o.jsx("span",{className:"catalog-dev-tools__label",children:"OAS mode"}),o.jsxs("div",{className:"catalog-dev-tools__toggle",children:[o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":r.showOAS}),onClick:function(){return w(!0)},children:"On"}),o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":!r.showOAS}),onClick:function(){return w(!1)},children:"Off"})]})]})}),o.jsx("div",{className:"catalog-dev-tools__field",children:o.jsxs("div",{className:"catalog-dev-tools__toggle-row",children:[o.jsx("span",{className:"catalog-dev-tools__label",children:"Hide right panel"}),o.jsxs("div",{className:"catalog-dev-tools__toggle",children:[o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":r.hideRightPanel}),onClick:function(){return x(!0)},children:"On"}),o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":!r.hideRightPanel}),onClick:function(){return x(!1)},children:"Off"})]})]})}),o.jsx("div",{className:"catalog-dev-tools__field",children:o.jsxs("div",{className:"catalog-dev-tools__toggle-row",children:[o.jsx("span",{className:"catalog-dev-tools__label",children:"Disable tryout"}),o.jsxs("div",{className:"catalog-dev-tools__toggle",children:[o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":r.disableTryout}),onClick:function(){return _(!0)},children:"On"}),o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":!r.disableTryout}),onClick:function(){return _(!1)},children:"Off"})]})]})})]}),o.jsx("button",{type:"button","aria-label":c?"Close catalog dev tools":"Open catalog dev tools","aria-expanded":c,className:Qy("catalog-fab-btn","border-secondary-1px","bg-gray-l2","color-primary","hover-bg-L2"),onClick:function(){return l(function(e){return!e})},children:o.jsx(Ev,{size:22})})]})}function I7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function R7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I7(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function L7(n){var r,a,s=n.pkgSwaggerPayload,c=n.moduleType,l=n.partnersList,u=n.enableLeftPanel,p=n.hideRightPanel,d=void 0!==p&&p,f=n.disableTryout,h=void 0!==f&&f,m=n.hideScroll,g=n.enableDevTools,y=void 0!==g&&g,v=n.swaggerData,b=n.selectedMethod,w=n.selectedPath,x=n.appTheme,_=n.showOAS,E=void 0!==_&&_,k=t.useDispatch(),O=i.useParams(),A=e.useRef(null),D=e.useRef(null),M=Ce(e.useState(null),2),C=M[0],S=M[1],N=y&&C?C.swaggerData:v,j=y&&C?C.selectedMethod:b,T=y&&C?C.selectedPath:w,P=y&&C?C.appTheme:x,I=y&&C?C.enableLeftPanel:u,R=y&&C?C.showOAS:E,L=y&&C&&null!==(r=C.hideRightPanel)&&void 0!==r?r:d,F=y&&C&&null!==(a=C.disableTryout)&&void 0!==a?a:h,H=Ce(xy(),2),$=H[0],B=H[1].isFetching,U=Ce(Fy(),1)[0],z=Ce(Hy(),1)[0],V=Ce(Ey(),1)[0],W=e.useCallback(Ae(ct.mark(function e(){var t,n,r,o,i;return ct.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c!==N6.OPEN_API){e.next=2;break}return t=dd("REACT_APP_API_REFERENCE_INTRO_SLUG"),O.guideSlug&&(t=O.guideSlug),e.next=1,U({pathArgs:{slug:t}});case 1:n=e.sent,(r=n.data)&&!O.resourcePayload&&(o=wd(r))&&(z({pathArgs:{id:o.document},otherArgs:{title:r.name,guideId:r.id}}),k(Gg(ae.INTRO)));case 2:if(i=ye(s||{}),!u){e.next=3;break}return e.next=3,$({queryArgs:{status:"Publish",partnerNames:l}});case 3:i&&Object.keys(i).length>0&&(V(i),k(Gg(ae.RESOURCE)),k(Xg({swaggerId:i.pathArgs.swaggerId,value:!0})));case 4:case"end":return e.stop()}},e)})),[]);return e.useEffect(function(){y&&c===N6.EXTERNAL&&S(function(e){return e||{swaggerData:v,selectedMethod:b,selectedPath:w,appTheme:x,enableLeftPanel:null!=u&&u,showOAS:null!=E&&E,hideRightPanel:null!=d&&d,disableTryout:null!=h&&h}})},[y,c,v,b,w,x,u,E,d,h]),e.useEffect(function(){k(Yg({prop:"listLoading",value:B}))},[B,k]),e.useEffect(function(){if(c===N6.EXTERNAL)try{if(!N)throw new Error("Please provide OAS data");if(!j||!T)throw new Error("Please provide selected method and path");var e=A.current===N&&D.current;A.current=N;var t={method:j,path:T};if(e&&D.current){var n=D.current.operationsFlatten.find(function(e){return fd(e,t)});if(n)return void k(ey({swagger:D.current,operation:R7(R7({},n),{},{keyId:Ee()})}))}D.current=new $g({swagger:N}).toObject();var r=new f7({swaggerData:N,selectedMethod:j,selectedPath:T});k(dy(R7(R7({},r.toObject()),{},{replace:!0})))}catch(e){console.error(e)}},[N,j,T,c,k]),e.useEffect(function(){return c!==N6.EXTERNAL&&W(),function(){k(ly()),k(Kd())}},[]),e.useLayoutEffect(function(){k($m(q.API_ENDPOINTS)),k(Jg(!0))},[]),o.jsxs(o.Fragment,{children:[o.jsx(k7,R7(R7({},n),{},{appTheme:P,enableLeftPanel:I,showOAS:R,hideRightPanel:L,disableTryout:F,swaggerData:N,selectedMethod:j,selectedPath:T,LeftPanel:L3,CenterContent:f3,RightPanel:L?null:d7,RightSidenav:Dv,hideScroll:m})),y&&c===N6.EXTERNAL&&C&&o.jsx(P7,{value:C,onChange:S})]})}function F7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H7(e){if(!e||e.constructor!==Object)return e;if(Array.isArray(e.allOf)){var t={type:e.type||"object",properties:{}};Object.keys(e).forEach(function(n){"allOf"!==n&&"properties"!==n&&(t[n]=e[n])}),e.properties&&e.properties.constructor===Object&&Object.assign(t.properties,e.properties),e.allOf.forEach(function(e){var n=H7(e),r=n&&n.properties;r&&r.constructor===Object&&Object.keys(r).forEach(function(e){e.startsWith("__")||(t.properties[e]=r[e])})}),e=t}return e.properties&&e.properties.constructor===Object&&Object.keys(e.properties).forEach(function(t){t.startsWith("__")||(e.properties[t]=H7(e.properties[t]))}),e.items&&(e.items=H7(e.items)),e}function $7(e,t){e&&(e.uiData&&(e.uiData.traversePath=t),Array.isArray(e.properties)&&e.properties.length&&e.properties.forEach(function(e,n){$7(e,"".concat(t).concat(G,"properties").concat(G).concat(n))}))}function B7(e){var t=e.selected,n=e.rootNode,r=e.breadcrumbFilterPath,o=[];if(!t||!n)return o;var i=n.uiData&&n.uiData.traversePath||"",a=t.uiData&&t.uiData.traversePath||"";if(!i||!a.startsWith("".concat(i).concat(G)))return o;for(var s=a.slice("".concat(i).concat(G).length).split(G),c=n,l=i,u=0;u+1<s.length;u+=2){var p=s[u],d=Number(s[u+1]);l="".concat(l).concat(G).concat(p).concat(G).concat(d),"properties"===p&&c.properties&&c.properties[d]&&(c=c.properties[d],r&&!l.startsWith("".concat(r).concat(G))||o.push({name:c.uiData&&c.uiData.name||"",traversePath:l}))}return o}P7.propTypes={value:tb.shape({fixtureId:tb.string,swaggerData:tb.object,selectedMethod:tb.string,selectedPath:tb.string,appTheme:tb.string,enableLeftPanel:tb.bool,showOAS:tb.bool,hideRightPanel:tb.bool,disableTryout:tb.bool}).isRequired,onChange:tb.func.isRequired,fixtures:tb.array};function q7(n){var r=n.rootNode,i=n.example,a=n.headerLeft,s=n.activeViewType,c=n.FROM,l=n.showEmptyFallback,u=n.emptyExampleMessage,p=n.breadcrumbFilterPath,d=n.isDarkMode,f=n.initialSidebarExpanded,h=n.className,m=n.onSelectionChange,g=n.defaultView,y=Wy(),v=t.useSelector(function(e){return e.libConfig.isDarkMode},zy),b=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),w=null!=d?d:v,x=Ce(e.useState(null),2),_=x[0],E=x[1],k=Ce(e.useState([]),2),O=k[0],A=k[1],D=Ce(e.useState(void 0!==f?f:!b),2),M=D[0],C=D[1],S=Ce(e.useState(g||fe),2),N=S[0],j=S[1],T=e.useCallback(function(e){if(e){var t=B7({selected:e,rootNode:r,breadcrumbFilterPath:p});A(t),E(e),null==m||m(e,t)}},[r,p,m]);e.useEffect(function(){r?T(r):(E(null),A([]))},[r,T]);var P,I,R=r?o.jsx(NN,{node:r,depth:0,selectedBodyObject:_,setSelectedBodyObject:T}):o.jsx("div",{className:"dss-p-8 ref-ui-12 color-secondary",children:"No schema"}),L=o.jsx(T6,{exampleScheme:N,onSelectExample:function(){j(de),C(!0)},onSelectSchema:function(){j(fe),C(!0)}}),F=o.jsx("div",{"aria-hidden":!0,onClick:function(){return C(function(e){return!e})},className:"ref-schema-toolbar-collapse",children:o.jsx("span",{className:"ref-schema-toolbar-collapse__icon",children:o.jsx(Bw,{size:y.md,className:"color-04"})})}),H=o.jsx("div",{className:"ref-schema-left-title-tab dss-p-8 border-right-secondary-1px",children:o.jsxs("span",{className:"ref-schema-sidebar-header__icon dss-gap-6 flex-rows vt-center",children:[o.jsx(Kw,{size:y.sm,className:"color-04"}),a]})});return o.jsx("div",{className:Qy("ref-schema-card bg-ground border-secondary-1px",h),children:o.jsxs("div",{className:"ref-schema-layout br-tr-8px br-tl-8px border-bottom-secondary-1px",children:[o.jsxs("div",{className:"ref-schema-top-toolbar border-bottom-secondary-1px w-100",children:[H,o.jsxs("div",{className:"ref-schema-top-toolbar__left",children:[F,L]})]}),N===fe?o.jsxs("div",{className:"ref-schema-body",children:[M&&o.jsx("div",{className:"ref-schema-sidebar ref-schema-sidebar--desktop border-right-secondary-1px",children:o.jsx("div",{className:"ref-schema-sidebar-tree noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:R})})}),o.jsxs("div",{className:Qy("ref-schema-main-panel",!M&&"ref-schema-main-panel--full"),children:[O.length>0&&o.jsx("div",{className:"ref-schema-breadcrumbs-row bg-ground border-bottom-secondary-1px",children:o.jsxs("div",{className:"ref-schema-breadcrumbs flex-rows vt-center noscrollbar",children:[o.jsx("div",{className:"flex-center flex-shrink-0",children:o.jsx(iw,{className:"color-04",size:y.md})}),O.map(function(e,t){return o.jsxs("div",{className:"flex-rows vt-center dss-gap-4 flex-shrink-0",children:[t>0&&o.jsx(lw,{size:y.xs,className:"color-04"}),o.jsx("div",{className:"ref-ui-12 fw-500 color-secondary",children:e.name})]},e.traversePath)})]})}),M&&o.jsx("div",{className:"ref-schema-sidebar-tree--drawer noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:R})}),o.jsx("div",{className:"ref-schema-detail bg-step-up",children:_&&o.jsx(iX,{activeViewType:s,FROM:c,showEmptyFallback:l,rootElement:!0,setSelectedBodyObject:T,traverse:null==_?void 0:_.uiData.traversePath,param:_,order:0},(null==_||null===(P=_.uiData)||void 0===P?void 0:P.keyId)||(null==_||null===(I=_.uiData)||void 0===I?void 0:I.traversePath)||"")})]})]}):o.jsxs("div",{className:"ref-schema-body",children:[M&&o.jsx("div",{className:"ref-schema-sidebar ref-schema-sidebar--desktop border-right-secondary-1px",children:o.jsx("div",{className:"ref-schema-sidebar-tree noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:R})})}),o.jsxs("div",{className:Qy("ref-schema-main-panel",!M&&"ref-schema-main-panel--full"),children:[M&&o.jsx("div",{className:"ref-schema-sidebar-tree--drawer noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:R})}),o.jsx("div",{className:"ref-schema-example-body color-02 bg-L3 dss-p-20",children:o.jsx(P6,{example:i,isDarkMode:w,emptyMessage:u})})]})]})]})})}q7.propTypes={rootNode:tb.object,example:tb.any,headerLeft:tb.node,activeViewType:tb.string,FROM:tb.string,showEmptyFallback:tb.bool,emptyExampleMessage:tb.string,breadcrumbFilterPath:tb.string,isDarkMode:tb.bool,initialSidebarExpanded:tb.bool,className:tb.string,onSelectionChange:tb.func,defaultView:tb.string},q7.defaultProps={rootNode:null,example:null,headerLeft:null,activeViewType:"VIEW",FROM:void 0,showEmptyFallback:!0,emptyExampleMessage:"No example available",breadcrumbFilterPath:void 0,isDarkMode:void 0,initialSidebarExpanded:void 0,className:"",onSelectionChange:void 0,defaultView:fe},exports.APIReference=L7,exports.APP_THEME_OPTION=V,exports.ApiwizCatalog=function(e){return e.componentType===j6.CATALOG&&o.jsx(L7,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F7(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e))},exports.COMPONENT_TYPE=j6,exports.CatalogDevTools=P7,exports.ExamplePayload=P6,exports.MODULE_TYPE=N6,exports.RefExampleSchemaToggle=T6,exports.SchemaExplorer=q7,exports.SchemaTreeNode=NN,exports.SwaggerPayload=ke,exports.addTraversePaths=$7,exports.apiReferenceReducer=my,exports.appReducer=zm,exports.buildBreadcrumbs=B7,exports.buildSchemaFromOpenApi=function(e){var t=e.swagger,n=e.schema,r=e.name,o=void 0===r?"":r,i=e.rootPath,a=void 0===i?"schema":i,s=H7(Fa({swagger:t,value:ye(n)})),c=Cg.schemaConversionForUi(s,o);return c&&Sg(c),c&&$7(c,a),c},exports.extractSchemaExample=function(e){var t=e.swagger,n=e.schema;try{var r=Ua({swagger:t,value:Fa({swagger:t,value:ye(n)}),type:"json"});if(null==r){var o=n.examples;if(Array.isArray(o)&&o.length)r=Ce(o,1)[0];else void 0!==n.example&&(r=n.example)}return r}catch(e){return null}},exports.getSchemaDictionary=function(e){return e?e.components&&e.components.schemas&&Object.keys(e.components.schemas).length?e.components.schemas:e.definitions&&Object.keys(e.definitions).length?e.definitions:null:null},exports.getSchemaIcon=SN,exports.graphqlReducer=bg,exports.guidesReducer=of,exports.materializeArraysDeep=Sg,exports.modelReducer=cg,exports.transformation=Cg,exports.workflowReducer=ng;
|
|
58
|
+
*/M6||(M6=1,function(e,t){(function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=16,s=32,c=64,l=128,u=256,p=1/0,d=9007199254740991,f=NaN,h=4294967295,m=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",s],["partialRight",c],["rearg",u]],g="[object Arguments]",y="[object Array]",v="[object Boolean]",b="[object Date]",w="[object Error]",x="[object Function]",_="[object GeneratorFunction]",E="[object Map]",k="[object Number]",O="[object Object]",A="[object Promise]",D="[object RegExp]",M="[object Set]",C="[object String]",N="[object Symbol]",j="[object WeakMap]",T="[object ArrayBuffer]",P="[object DataView]",I="[object Float32Array]",R="[object Float64Array]",L="[object Int8Array]",F="[object Int16Array]",H="[object Int32Array]",$="[object Uint8Array]",B="[object Uint8ClampedArray]",q="[object Uint16Array]",U="[object Uint32Array]",z=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Z=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,G=RegExp(Z.source),Q=RegExp(Y.source),K=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(re.source),ie=/^\s+/,ae=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",Ae="a-z\\xdf-\\xf6\\xf8-\\xff",De="A-Z\\xc0-\\xd6\\xd8-\\xde",Me="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Se="['’]",Ne="["+Ee+"]",je="["+Ce+"]",Te="["+ke+"]",Pe="\\d+",Ie="["+Oe+"]",Re="["+Ae+"]",Le="[^"+Ee+Ce+Pe+Oe+Ae+De+"]",Fe="\\ud83c[\\udffb-\\udfff]",He="[^"+Ee+"]",$e="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",qe="["+De+"]",Ue="\\u200d",ze="(?:"+Re+"|"+Le+")",Ve="(?:"+qe+"|"+Le+")",We="(?:['’](?:d|ll|m|re|s|t|ve))?",Ze="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+Te+"|"+Fe+")?",Ge="["+Me+"]?",Qe=Ge+Ye+"(?:"+Ue+"(?:"+[He,$e,Be].join("|")+")"+Ge+Ye+")*",Ke="(?:"+[Ie,$e,Be].join("|")+")"+Qe,Xe="(?:"+[He+Te+"?",Te,$e,Be,Ne].join("|")+")",Je=RegExp(Se,"g"),et=RegExp(Te,"g"),tt=RegExp(Fe+"(?="+Fe+")|"+Xe+Qe,"g"),nt=RegExp([qe+"?"+Re+"+"+We+"(?="+[je,qe,"$"].join("|")+")",Ve+"+"+Ze+"(?="+[je,qe+ze,"$"].join("|")+")",qe+"?"+ze+"+"+We,qe+"+"+Ze,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Ke].join("|"),"g"),rt=RegExp("["+Ue+Ee+ke+Me+"]"),ot=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,st={};st[I]=st[R]=st[L]=st[F]=st[H]=st[$]=st[B]=st[q]=st[U]=!0,st[g]=st[y]=st[T]=st[v]=st[P]=st[b]=st[w]=st[x]=st[E]=st[k]=st[O]=st[D]=st[M]=st[C]=st[j]=!1;var ct={};ct[g]=ct[y]=ct[T]=ct[P]=ct[v]=ct[b]=ct[I]=ct[R]=ct[L]=ct[F]=ct[H]=ct[E]=ct[k]=ct[O]=ct[D]=ct[M]=ct[C]=ct[N]=ct[$]=ct[B]=ct[q]=ct[U]=!0,ct[w]=ct[x]=ct[j]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,pt=parseInt,dt="object"==typeof S&&S&&S.Object===Object&&S,ft="object"==typeof self&&self&&self.Object===Object&&self,ht=dt||ft||Function("return this")(),mt=t&&!t.nodeType&&t,gt=mt&&e&&!e.nodeType&&e,yt=gt&>.exports===mt,vt=yt&&dt.process,bt=function(){try{var e=gt&>.require&>.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),wt=bt&&bt.isArrayBuffer,xt=bt&&bt.isDate,_t=bt&&bt.isMap,Et=bt&&bt.isRegExp,kt=bt&&bt.isSet,Ot=bt&&bt.isTypedArray;function At(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Dt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Mt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function St(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Nt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function jt(e,t){return!(null==e||!e.length)&&qt(e,t,0)>-1}function Tt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function It(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Rt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Lt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Ft(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ht=Wt("length");function $t(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function Bt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function qt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Bt(e,zt,n)}function Ut(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function zt(e){return e!=e}function Vt(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:f}function Wt(e){return function(t){return null==t?n:t[e]}}function Zt(e){return function(t){return null==e?n:e[t]}}function Yt(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Gt(e,t){for(var r,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==n&&(r=r===n?a:r+a)}return r}function Qt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Kt(e){return e?e.slice(0,mn(e)+1).replace(ie,""):e}function Xt(e){return function(t){return e(t)}}function Jt(e,t){return Pt(t,function(t){return e[t]})}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,r=e.length;++n<r&&qt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&qt(t,e[n],0)>-1;);return n}var rn=Zt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),on=Zt({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+lt[e]}function sn(e){return rt.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function ln(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var s=e[n];s!==t&&s!==i||(e[n]=i,a[o++]=n)}return a}function pn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function dn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function fn(e){return sn(e)?function(e){for(var t=tt.lastIndex=0;tt.test(e);)++t;return t}(e):Ht(e)}function hn(e){return sn(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var gn=Zt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),yn=function e(t){var S=(t=null==t?ht:yn.defaults(ht.Object(),t,yn.pick(ht,it))).Array,ae=t.Date,Ee=t.Error,ke=t.Function,Oe=t.Math,Ae=t.Object,De=t.RegExp,Me=t.String,Ce=t.TypeError,Se=S.prototype,Ne=ke.prototype,je=Ae.prototype,Te=t["__core-js_shared__"],Pe=Ne.toString,Ie=je.hasOwnProperty,Re=0,Le=function(){var e=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fe=je.toString,He=Pe.call(Ae),$e=ht._,Be=De("^"+Pe.call(Ie).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=yt?t.Buffer:n,Ue=t.Symbol,ze=t.Uint8Array,Ve=qe?qe.allocUnsafe:n,We=ln(Ae.getPrototypeOf,Ae),Ze=Ae.create,Ye=je.propertyIsEnumerable,Ge=Se.splice,Qe=Ue?Ue.isConcatSpreadable:n,Ke=Ue?Ue.iterator:n,Xe=Ue?Ue.toStringTag:n,tt=function(){try{var e=di(Ae,"defineProperty");return e({},"",{}),e}catch(e){}}(),rt=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,lt=ae&&ae.now!==ht.Date.now&&ae.now,dt=t.setTimeout!==ht.setTimeout&&t.setTimeout,ft=Oe.ceil,mt=Oe.floor,gt=Ae.getOwnPropertySymbols,vt=qe?qe.isBuffer:n,bt=t.isFinite,Ht=Se.join,Zt=ln(Ae.keys,Ae),vn=Oe.max,bn=Oe.min,wn=ae.now,xn=t.parseInt,_n=Oe.random,En=Se.reverse,kn=di(t,"DataView"),On=di(t,"Map"),An=di(t,"Promise"),Dn=di(t,"Set"),Mn=di(t,"WeakMap"),Cn=di(Ae,"create"),Sn=Mn&&new Mn,Nn={},jn=Fi(kn),Tn=Fi(On),Pn=Fi(An),In=Fi(Dn),Rn=Fi(Mn),Ln=Ue?Ue.prototype:n,Fn=Ln?Ln.valueOf:n,Hn=Ln?Ln.toString:n;function $n(e){if(ts(e)&&!za(e)&&!(e instanceof zn)){if(e instanceof Un)return e;if(Ie.call(e,"__wrapped__"))return Hi(e)}return new Un(e)}var Bn=function(){function e(){}return function(t){if(!es(t))return{};if(Ze)return Ze(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function qn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function zn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Zn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Wn(e);this.size=t.size}function Qn(e,t){var n=za(e),r=!n&&Ua(e),o=!n&&!r&&Ya(e),i=!n&&!r&&!o&&ls(e),a=n||r||o||i,s=a?Qt(e.length,Me):[],c=s.length;for(var l in e)!t&&!Ie.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||bi(l,c))||s.push(l);return s}function Kn(e){var t=e.length;return t?e[Yr(0,t-1)]:n}function Xn(e,t){return Ii(So(e),sr(t,0,e.length))}function Jn(e){return Ii(So(e))}function er(e,t,r){(r!==n&&!$a(e[t],r)||r===n&&!(t in e))&&ir(e,t,r)}function tr(e,t,r){var o=e[t];Ie.call(e,t)&&$a(o,r)&&(r!==n||t in e)||ir(e,t,r)}function nr(e,t){for(var n=e.length;n--;)if($a(e[n][0],t))return n;return-1}function rr(e,t,n,r){return dr(e,function(e,o,i){t(r,e,n(e),i)}),r}function or(e,t){return e&&No(t,Ns(t),e)}function ir(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ar(e,t){for(var r=-1,o=t.length,i=S(o),a=null==e;++r<o;)i[r]=a?n:As(e,t[r]);return i}function sr(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function cr(e,t,r,o,i,a){var s,c=1&t,l=2&t,u=4&t;if(r&&(s=i?r(e,o,i,a):r(e)),s!==n)return s;if(!es(e))return e;var p=za(e);if(p){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return So(e,s)}else{var d=mi(e),f=d==x||d==_;if(Ya(e))return ko(e,c);if(d==O||d==g||f&&!i){if(s=l||f?{}:yi(e),!c)return l?function(e,t){return No(e,hi(e),t)}(e,function(e,t){return e&&No(t,js(t),e)}(s,e)):function(e,t){return No(e,fi(e),t)}(e,or(s,e))}else{if(!ct[d])return i?e:{};s=function(e,t,n){var r,o=e.constructor;switch(t){case T:return Oo(e);case v:case b:return new o(+e);case P:return function(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case R:case L:case F:case H:case $:case B:case q:case U:return Ao(e,n);case E:return new o;case k:case C:return new o(e);case D:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case M:return new o;case N:return r=e,Fn?Ae(Fn.call(r)):{}}}(e,d,c)}}a||(a=new Gn);var h=a.get(e);if(h)return h;a.set(e,s),as(e)?e.forEach(function(n){s.add(cr(n,t,r,n,e,a))}):ns(e)&&e.forEach(function(n,o){s.set(o,cr(n,t,r,o,e,a))});var m=p?n:(u?l?ii:oi:l?js:Ns)(e);return Mt(m||e,function(n,o){m&&(n=e[o=n]),tr(s,o,cr(n,t,r,o,e,a))}),s}function lr(e,t,r){var o=r.length;if(null==e)return!o;for(e=Ae(e);o--;){var i=r[o],a=t[i],s=e[i];if(s===n&&!(i in e)||!a(s))return!1}return!0}function ur(e,t,o){if("function"!=typeof e)throw new Ce(r);return Ni(function(){e.apply(n,o)},t)}function pr(e,t,n,r){var o=-1,i=jt,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=Pt(t,Xt(n))),r?(i=Tt,a=!1):t.length>=200&&(i=en,a=!1,t=new Yn(t));e:for(;++o<s;){var u=e[o],p=null==n?u:n(u);if(u=r||0!==u?u:0,a&&p==p){for(var d=l;d--;)if(t[d]===p)continue e;c.push(u)}else i(t,p,r)||c.push(u)}return c}$n.templateSettings={escape:K,evaluate:X,interpolate:J,variable:"",imports:{_:$n}},$n.prototype=qn.prototype,$n.prototype.constructor=$n,Un.prototype=Bn(qn.prototype),Un.prototype.constructor=Un,zn.prototype=Bn(qn.prototype),zn.prototype.constructor=zn,Vn.prototype.clear=function(){this.__data__=Cn?Cn(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if(Cn){var r=t[e];return r===o?n:r}return Ie.call(t,e)?t[e]:n},Vn.prototype.has=function(e){var t=this.__data__;return Cn?t[e]!==n:Ie.call(t,e)},Vn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Cn&&t===n?o:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},Wn.prototype.get=function(e){var t=this.__data__,r=nr(t,e);return r<0?n:t[r][1]},Wn.prototype.has=function(e){return nr(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Zn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(On||Wn),string:new Vn}},Zn.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},Zn.prototype.get=function(e){return ui(this,e).get(e)},Zn.prototype.has=function(e){return ui(this,e).has(e)},Zn.prototype.set=function(e,t){var n=ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,o),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!On||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Zn(r)}return n.set(e,t),this.size=n.size,this};var dr=Po(wr),fr=Po(xr,!0);function hr(e,t){var n=!0;return dr(e,function(e,r,o){return n=!!t(e,r,o)}),n}function mr(e,t,r){for(var o=-1,i=e.length;++o<i;){var a=e[o],s=t(a);if(null!=s&&(c===n?s==s&&!cs(s):r(s,c)))var c=s,l=a}return l}function gr(e,t){var n=[];return dr(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function yr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=vi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?yr(s,t-1,n,r,o):It(o,s):r||(o[o.length]=s)}return o}var vr=Io(),br=Io(!0);function wr(e,t){return e&&vr(e,t,Ns)}function xr(e,t){return e&&br(e,t,Ns)}function _r(e,t){return Nt(t,function(t){return Ka(e[t])})}function Er(e,t){for(var r=0,o=(t=wo(t,e)).length;null!=e&&r<o;)e=e[Li(t[r++])];return r&&r==o?e:n}function kr(e,t,n){var r=t(e);return za(e)?r:It(r,n(e))}function Or(e){return null==e?e===n?"[object Undefined]":"[object Null]":Xe&&Xe in Ae(e)?function(e){var t=Ie.call(e,Xe),r=e[Xe];try{e[Xe]=n;var o=!0}catch(e){}var i=Fe.call(e);return o&&(t?e[Xe]=r:delete e[Xe]),i}(e):function(e){return Fe.call(e)}(e)}function Ar(e,t){return e>t}function Dr(e,t){return null!=e&&Ie.call(e,t)}function Mr(e,t){return null!=e&&t in Ae(e)}function Cr(e,t,r){for(var o=r?Tt:jt,i=e[0].length,a=e.length,s=a,c=S(a),l=1/0,u=[];s--;){var p=e[s];s&&t&&(p=Pt(p,Xt(t))),l=bn(p.length,l),c[s]=!r&&(t||i>=120&&p.length>=120)?new Yn(s&&p):n}p=e[0];var d=-1,f=c[0];e:for(;++d<i&&u.length<l;){var h=p[d],m=t?t(h):h;if(h=r||0!==h?h:0,!(f?en(f,m):o(u,m,r))){for(s=a;--s;){var g=c[s];if(!(g?en(g,m):o(e[s],m,r)))continue e}f&&f.push(m),u.push(h)}}return u}function Sr(e,t,r){var o=null==(e=Mi(e,t=wo(t,e)))?e:e[Li(Qi(t))];return null==o?n:At(o,e,r)}function Nr(e){return ts(e)&&Or(e)==g}function jr(e,t,r,o,i){return e===t||(null==e||null==t||!ts(e)&&!ts(t)?e!=e&&t!=t:function(e,t,r,o,i,a){var s=za(e),c=za(t),l=s?y:mi(e),u=c?y:mi(t),p=(l=l==g?O:l)==O,d=(u=u==g?O:u)==O,f=l==u;if(f&&Ya(e)){if(!Ya(t))return!1;s=!0,p=!1}if(f&&!p)return a||(a=new Gn),s||ls(e)?ni(e,t,r,o,i,a):function(e,t,n,r,o,i,a){switch(n){case P:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!i(new ze(e),new ze(t)));case v:case b:case k:return $a(+e,+t);case w:return e.name==t.name&&e.message==t.message;case D:case C:return e==t+"";case E:var s=cn;case M:var c=1&r;if(s||(s=pn),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var u=ni(s(e),s(t),r,o,i,a);return a.delete(e),u;case N:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,l,r,o,i,a);if(!(1&r)){var h=p&&Ie.call(e,"__wrapped__"),m=d&&Ie.call(t,"__wrapped__");if(h||m){var x=h?e.value():e,_=m?t.value():t;return a||(a=new Gn),i(x,_,r,o,a)}}return!!f&&(a||(a=new Gn),function(e,t,r,o,i,a){var s=1&r,c=oi(e),l=c.length,u=oi(t),p=u.length;if(l!=p&&!s)return!1;for(var d=l;d--;){var f=c[d];if(!(s?f in t:Ie.call(t,f)))return!1}var h=a.get(e),m=a.get(t);if(h&&m)return h==t&&m==e;var g=!0;a.set(e,t),a.set(t,e);for(var y=s;++d<l;){var v=e[f=c[d]],b=t[f];if(o)var w=s?o(b,v,f,t,e,a):o(v,b,f,e,t,a);if(!(w===n?v===b||i(v,b,r,o,a):w)){g=!1;break}y||(y="constructor"==f)}if(g&&!y){var x=e.constructor,_=t.constructor;x==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,r,o,i,a))}(e,t,r,o,jr,i))}function Tr(e,t,r,o){var i=r.length,a=i,s=!o;if(null==e)return!a;for(e=Ae(e);i--;){var c=r[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<a;){var l=(c=r[i])[0],u=e[l],p=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var d=new Gn;if(o)var f=o(u,p,l,e,t,d);if(!(f===n?jr(p,u,3,o,d):f))return!1}}return!0}function Pr(e){return!(!es(e)||(t=e,Le&&Le in t))&&(Ka(e)?Be:ye).test(Fi(e));var t}function Ir(e){return"function"==typeof e?e:null==e?rc:"object"==typeof e?za(e)?Br(e[0],e[1]):$r(e):dc(e)}function Rr(e){if(!ki(e))return Zt(e);var t=[];for(var n in Ae(e))Ie.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e){if(!es(e))return function(e){var t=[];if(null!=e)for(var n in Ae(e))t.push(n);return t}(e);var t=ki(e),n=[];for(var r in e)("constructor"!=r||!t&&Ie.call(e,r))&&n.push(r);return n}function Fr(e,t){return e<t}function Hr(e,t){var n=-1,r=Wa(e)?S(e.length):[];return dr(e,function(e,o,i){r[++n]=t(e,o,i)}),r}function $r(e){var t=pi(e);return 1==t.length&&t[0][2]?Ai(t[0][0],t[0][1]):function(n){return n===e||Tr(n,e,t)}}function Br(e,t){return xi(e)&&Oi(t)?Ai(Li(e),t):function(r){var o=As(r,e);return o===n&&o===t?Ds(r,e):jr(t,o,3)}}function qr(e,t,r,o,i){e!==t&&vr(t,function(a,s){if(i||(i=new Gn),es(a))!function(e,t,r,o,i,a,s){var c=Ci(e,r),l=Ci(t,r),u=s.get(l);if(u)er(e,r,u);else{var p=a?a(c,l,r+"",e,t,s):n,d=p===n;if(d){var f=za(l),h=!f&&Ya(l),m=!f&&!h&&ls(l);p=l,f||h||m?za(c)?p=c:Za(c)?p=So(c):h?(d=!1,p=ko(l,!0)):m?(d=!1,p=Ao(l,!0)):p=[]:os(l)||Ua(l)?(p=c,Ua(c)?p=ys(c):es(c)&&!Ka(c)||(p=yi(l))):d=!1}d&&(s.set(l,p),i(p,l,o,a,s),s.delete(l)),er(e,r,p)}}(e,t,s,r,qr,o,i);else{var c=o?o(Ci(e,s),a,s+"",e,t,i):n;c===n&&(c=a),er(e,s,c)}},js)}function Ur(e,t){var r=e.length;if(r)return bi(t+=t<0?r:0,r)?e[t]:n}function zr(e,t,n){t=t.length?Pt(t,function(e){return za(e)?function(t){return Er(t,1===e.length?e[0]:e)}:e}):[rc];var r=-1;t=Pt(t,Xt(li()));var o=Hr(e,function(e,n,o){var i=Pt(t,function(t){return t(e)});return{criteria:i,index:++r,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var c=Do(o[r],i[r]);if(c)return r>=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function Vr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Er(e,a);n(s,a)&&Jr(i,wo(a,e),s)}return i}function Wr(e,t,n,r){var o=r?Ut:qt,i=-1,a=t.length,s=e;for(e===t&&(t=So(t)),n&&(s=Pt(e,Xt(n)));++i<a;)for(var c=0,l=t[i],u=n?n(l):l;(c=o(s,u,c,r))>-1;)s!==e&&Ge.call(s,c,1),Ge.call(e,c,1);return e}function Zr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;bi(o)?Ge.call(e,o,1):po(e,o)}}return e}function Yr(e,t){return e+mt(_n()*(t-e+1))}function Gr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return ji(Di(e,t,rc),e+"")}function Kr(e){return Kn($s(e))}function Xr(e,t){var n=$s(e);return Ii(n,sr(t,0,n.length))}function Jr(e,t,r,o){if(!es(e))return e;for(var i=-1,a=(t=wo(t,e)).length,s=a-1,c=e;null!=c&&++i<a;){var l=Li(t[i]),u=r;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=s){var p=c[l];(u=o?o(p,l,c):n)===n&&(u=es(p)?p:bi(t[i+1])?[]:{})}tr(c,l,u),c=c[l]}return e}var eo=Sn?function(e,t){return Sn.set(e,t),e}:rc,to=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:ec(t),writable:!0})}:rc;function no(e){return Ii($s(e))}function ro(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=S(o);++r<o;)i[r]=e[r+t];return i}function oo(e,t){var n;return dr(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function io(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return ao(e,t,rc,n)}function ao(e,t,r,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=r(t))!=t,c=null===t,l=cs(t),u=t===n;i<a;){var p=mt((i+a)/2),d=r(e[p]),f=d!==n,h=null===d,m=d==d,g=cs(d);if(s)var y=o||m;else y=u?m&&(o||f):c?m&&f&&(o||!h):l?m&&f&&!h&&(o||!g):!h&&!g&&(o?d<=t:d<t);y?i=p+1:a=p}return bn(a,4294967294)}function so(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!$a(s,c)){var c=s;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:cs(e)?f:+e}function lo(e){if("string"==typeof e)return e;if(za(e))return Pt(e,lo)+"";if(cs(e))return Hn?Hn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function uo(e,t,n){var r=-1,o=jt,i=e.length,a=!0,s=[],c=s;if(n)a=!1,o=Tt;else if(i>=200){var l=t?null:Qo(e);if(l)return pn(l);a=!1,o=en,c=new Yn}else c=t?[]:s;e:for(;++r<i;){var u=e[r],p=t?t(u):u;if(u=n||0!==u?u:0,a&&p==p){for(var d=c.length;d--;)if(c[d]===p)continue e;t&&c.push(p),s.push(u)}else o(c,p,n)||(c!==s&&c.push(p),s.push(u))}return s}function po(e,t){return null==(e=Mi(e,t=wo(t,e)))||delete e[Li(Qi(t))]}function fo(e,t,n,r){return Jr(e,t,n(Er(e,t)),r)}function ho(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?ro(e,r?0:i,r?i+1:o):ro(e,r?i+1:0,r?o:i)}function mo(e,t){var n=e;return n instanceof zn&&(n=n.value()),Rt(t,function(e,t){return t.func.apply(t.thisArg,It([e],t.args))},n)}function go(e,t,n){var r=e.length;if(r<2)return r?uo(e[0]):[];for(var o=-1,i=S(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=pr(i[o]||a,e[s],t,n));return uo(yr(i,1),t,n)}function yo(e,t,r){for(var o=-1,i=e.length,a=t.length,s={};++o<i;){var c=o<a?t[o]:n;r(s,e[o],c)}return s}function vo(e){return Za(e)?e:[]}function bo(e){return"function"==typeof e?e:rc}function wo(e,t){return za(e)?e:xi(e,t)?[e]:Ri(vs(e))}var xo=Qr;function _o(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:ro(e,t,r)}var Eo=rt||function(e){return ht.clearTimeout(e)};function ko(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function Oo(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function Ao(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Do(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=cs(e),s=t!==n,c=null===t,l=t==t,u=cs(t);if(!c&&!u&&!a&&e>t||a&&s&&l&&!c&&!u||o&&s&&l||!r&&l||!i)return 1;if(!o&&!a&&!u&&e<t||u&&r&&i&&!o&&!a||c&&r&&i||!s&&i||!l)return-1}return 0}function Mo(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,c=t.length,l=vn(i-a,0),u=S(c+l),p=!r;++s<c;)u[s]=t[s];for(;++o<a;)(p||o<i)&&(u[n[o]]=e[o]);for(;l--;)u[s++]=e[o++];return u}function Co(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,c=-1,l=t.length,u=vn(i-s,0),p=S(u+l),d=!r;++o<u;)p[o]=e[o];for(var f=o;++c<l;)p[f+c]=t[c];for(;++a<s;)(d||o<i)&&(p[f+n[a]]=e[o++]);return p}function So(e,t){var n=-1,r=e.length;for(t||(t=S(r));++n<r;)t[n]=e[n];return t}function No(e,t,r,o){var i=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var c=t[a],l=o?o(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),i?ir(r,c,l):tr(r,c,l)}return r}function jo(e,t){return function(n,r){var o=za(n)?Dt:rr,i=t?t():{};return o(n,e,li(r,2),i)}}function To(e){return Qr(function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:n,s=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,s&&wi(r[0],r[1],s)&&(a=i<3?n:a,i=1),t=Ae(t);++o<i;){var c=r[o];c&&e(t,c,o,a)}return t})}function Po(e,t){return function(n,r){if(null==n)return n;if(!Wa(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ae(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Io(e){return function(t,n,r){for(var o=-1,i=Ae(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}}function Ro(e){return function(t){var r=sn(t=vs(t))?hn(t):n,o=r?r[0]:t.charAt(0),i=r?_o(r,1).join(""):t.slice(1);return o[e]()+i}}function Lo(e){return function(t){return Rt(Ks(Us(t).replace(Je,"")),e,"")}}function Fo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Bn(e.prototype),r=e.apply(n,t);return es(r)?r:n}}function Ho(e){return function(t,r,o){var i=Ae(t);if(!Wa(t)){var a=li(r,3);t=Ns(t),r=function(e){return a(i[e],e,i)}}var s=e(t,r,o);return s>-1?i[a?t[s]:s]:n}}function $o(e){return ri(function(t){var o=t.length,i=o,a=Un.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new Ce(r);if(a&&!c&&"wrapper"==si(s))var c=new Un([],!0)}for(i=c?i:o;++i<o;){var l=si(s=t[i]),u="wrapper"==l?ai(s):n;c=u&&_i(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?c[si(u[0])].apply(c,u[3]):1==s.length&&_i(s)?c[l]():c.thru(s)}return function(){var e=arguments,n=e[0];if(c&&1==e.length&&za(n))return c.plant(n).value();for(var r=0,i=o?t[r].apply(this,e):n;++r<o;)i=t[r].call(this,i);return i}})}function Bo(e,t,r,o,i,a,s,c,u,p){var d=t&l,f=1&t,h=2&t,m=24&t,g=512&t,y=h?n:Fo(e);return function l(){for(var v=arguments.length,b=S(v),w=v;w--;)b[w]=arguments[w];if(m)var x=ci(l),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,x);if(o&&(b=Mo(b,o,i,m)),a&&(b=Co(b,a,s,m)),v-=_,m&&v<p){var E=un(b,x);return Yo(e,t,Bo,l.placeholder,r,b,E,c,u,p-v)}var k=f?r:this,O=h?k[e]:e;return v=b.length,c?b=function(e,t){for(var r=e.length,o=bn(t.length,r),i=So(e);o--;){var a=t[o];e[o]=bi(a,r)?i[a]:n}return e}(b,c):g&&v>1&&b.reverse(),d&&u<v&&(b.length=u),this&&this!==ht&&this instanceof l&&(O=y||Fo(O)),O.apply(k,b)}}function qo(e,t){return function(n,r){return function(e,t,n,r){return wr(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}function Uo(e,t){return function(r,o){var i;if(r===n&&o===n)return t;if(r!==n&&(i=r),o!==n){if(i===n)return o;"string"==typeof r||"string"==typeof o?(r=lo(r),o=lo(o)):(r=co(r),o=co(o)),i=e(r,o)}return i}}function zo(e){return ri(function(t){return t=Pt(t,Xt(li())),Qr(function(n){var r=this;return e(t,function(e){return At(e,r,n)})})})}function Vo(e,t){var r=(t=t===n?" ":lo(t)).length;if(r<2)return r?Gr(t,e):t;var o=Gr(t,ft(e/fn(t)));return sn(t)?_o(hn(o),0,e).join(""):o.slice(0,e)}function Wo(e){return function(t,r,o){return o&&"number"!=typeof o&&wi(t,r,o)&&(r=o=n),t=fs(t),r===n?(r=t,t=0):r=fs(r),function(e,t,n,r){for(var o=-1,i=vn(ft((t-e)/(n||1)),0),a=S(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,r,o=o===n?t<r?1:-1:fs(o),e)}}function Zo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gs(t),n=gs(n)),e(t,n)}}function Yo(e,t,r,o,i,a,l,u,p,d){var f=8&t;t|=f?s:c,4&(t&=~(f?c:s))||(t&=-4);var h=[e,t,i,f?a:n,f?l:n,f?n:a,f?n:l,u,p,d],m=r.apply(n,h);return _i(e)&&Si(m,h),m.placeholder=o,Ti(m,e,t)}function Go(e){var t=Oe[e];return function(e,n){if(e=gs(e),(n=null==n?0:bn(hs(n),292))&&bt(e)){var r=(vs(e)+"e").split("e");return+((r=(vs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Qo=Dn&&1/pn(new Dn([,-0]))[1]==p?function(e){return new Dn(e)}:cc;function Ko(e){return function(t){var n=mi(t);return n==E?cn(t):n==M?dn(t):function(e,t){return Pt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Xo(e,t,o,p,d,f,h,m){var g=2&t;if(!g&&"function"!=typeof e)throw new Ce(r);var y=p?p.length:0;if(y||(t&=-97,p=d=n),h=h===n?h:vn(hs(h),0),m=m===n?m:hs(m),y-=d?d.length:0,t&c){var v=p,b=d;p=d=n}var w=g?n:ai(e),x=[e,t,o,p,d,v,b,f,h,m];if(w&&function(e,t){var n=e[1],r=t[1],o=n|r,a=o<131,s=r==l&&8==n||r==l&&n==u&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var c=t[3];if(c){var p=e[3];e[3]=p?Mo(p,c,t[4]):c,e[4]=p?un(e[3],i):t[4]}(c=t[5])&&(p=e[5],e[5]=p?Co(p,c,t[6]):c,e[6]=p?un(e[5],i):t[6]),(c=t[7])&&(e[7]=c),r&l&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(x,w),e=x[0],t=x[1],o=x[2],p=x[3],d=x[4],!(m=x[9]=x[9]===n?g?0:e.length:vn(x[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||t==a?function(e,t,r){var o=Fo(e);return function i(){for(var a=arguments.length,s=S(a),c=a,l=ci(i);c--;)s[c]=arguments[c];var u=a<3&&s[0]!==l&&s[a-1]!==l?[]:un(s,l);return(a-=u.length)<r?Yo(e,t,Bo,i.placeholder,n,s,u,n,n,r-a):At(this&&this!==ht&&this instanceof i?o:e,this,s)}}(e,t,m):t!=s&&33!=t||d.length?Bo.apply(n,x):function(e,t,n,r){var o=1&t,i=Fo(e);return function t(){for(var a=-1,s=arguments.length,c=-1,l=r.length,u=S(l+s),p=this&&this!==ht&&this instanceof t?i:e;++c<l;)u[c]=r[c];for(;s--;)u[c++]=arguments[++a];return At(p,o?n:this,u)}}(e,t,o,p);else var _=function(e,t,n){var r=1&t,o=Fo(e);return function t(){return(this&&this!==ht&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,o);return Ti((w?eo:Si)(_,x),e,t)}function Jo(e,t,r,o){return e===n||$a(e,je[r])&&!Ie.call(o,r)?t:e}function ei(e,t,r,o,i,a){return es(e)&&es(t)&&(a.set(t,e),qr(e,t,n,ei,a),a.delete(t)),e}function ti(e){return os(e)?n:e}function ni(e,t,r,o,i,a){var s=1&r,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=a.get(e),p=a.get(t);if(u&&p)return u==t&&p==e;var d=-1,f=!0,h=2&r?new Yn:n;for(a.set(e,t),a.set(t,e);++d<c;){var m=e[d],g=t[d];if(o)var y=s?o(g,m,d,t,e,a):o(m,g,d,e,t,a);if(y!==n){if(y)continue;f=!1;break}if(h){if(!Ft(t,function(e,t){if(!en(h,t)&&(m===e||i(m,e,r,o,a)))return h.push(t)})){f=!1;break}}else if(m!==g&&!i(m,g,r,o,a)){f=!1;break}}return a.delete(e),a.delete(t),f}function ri(e){return ji(Di(e,n,Vi),e+"")}function oi(e){return kr(e,Ns,fi)}function ii(e){return kr(e,js,hi)}var ai=Sn?function(e){return Sn.get(e)}:cc;function si(e){for(var t=e.name+"",n=Nn[t],r=Ie.call(Nn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(Ie.call($n,"placeholder")?$n:e).placeholder}function li(){var e=$n.iteratee||oc;return e=e===oc?Ir:e,arguments.length?e(arguments[0],arguments[1]):e}function ui(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function pi(e){for(var t=Ns(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Oi(o)]}return t}function di(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Pr(r)?r:n}var fi=gt?function(e){return null==e?[]:(e=Ae(e),Nt(gt(e),function(t){return Ye.call(e,t)}))}:mc,hi=gt?function(e){for(var t=[];e;)It(t,fi(e)),e=We(e);return t}:mc,mi=Or;function gi(e,t,n){for(var r=-1,o=(t=wo(t,e)).length,i=!1;++r<o;){var a=Li(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Ja(o)&&bi(a,o)&&(za(e)||Ua(e))}function yi(e){return"function"!=typeof e.constructor||ki(e)?{}:Bn(We(e))}function vi(e){return za(e)||Ua(e)||!!(Qe&&e&&e[Qe])}function bi(e,t){var n=typeof e;return!!(t=null==t?d:t)&&("number"==n||"symbol"!=n&&be.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,n){if(!es(n))return!1;var r=typeof t;return!!("number"==r?Wa(n)&&bi(t,n.length):"string"==r&&t in n)&&$a(n[t],e)}function xi(e,t){if(za(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||te.test(e)||!ee.test(e)||null!=t&&e in Ae(t)}function _i(e){var t=si(e),n=$n[t];if("function"!=typeof n||!(t in zn.prototype))return!1;if(e===n)return!0;var r=ai(n);return!!r&&e===r[0]}(kn&&mi(new kn(new ArrayBuffer(1)))!=P||On&&mi(new On)!=E||An&&mi(An.resolve())!=A||Dn&&mi(new Dn)!=M||Mn&&mi(new Mn)!=j)&&(mi=function(e){var t=Or(e),r=t==O?e.constructor:n,o=r?Fi(r):"";if(o)switch(o){case jn:return P;case Tn:return E;case Pn:return A;case In:return M;case Rn:return j}return t});var Ei=Te?Ka:gc;function ki(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||je)}function Oi(e){return e==e&&!es(e)}function Ai(e,t){return function(r){return null!=r&&r[e]===t&&(t!==n||e in Ae(r))}}function Di(e,t,r){return t=vn(t===n?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=vn(n.length-t,0),a=S(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=S(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),At(e,this,s)}}function Mi(e,t){return t.length<2?e:Er(e,ro(t,0,-1))}function Ci(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Si=Pi(eo),Ni=dt||function(e,t){return ht.setTimeout(e,t)},ji=Pi(to);function Ti(e,t,n){var r=t+"";return ji(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Mt(m,function(n){var r="_."+n[0];t&n[1]&&!jt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(le):[]}(r),n)))}function Pi(e){var t=0,r=0;return function(){var o=wn(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ii(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var a=Yr(r,i),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var Ri=function(e){var t=Pa(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,function(e,n,r,o){t.push(r?o.replace(de,"$1"):n||e)}),t});function Li(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fi(e){if(null!=e){try{return Pe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Hi(e){if(e instanceof zn)return e.clone();var t=new Un(e.__wrapped__,e.__chain__);return t.__actions__=So(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var $i=Qr(function(e,t){return Za(e)?pr(e,yr(t,1,Za,!0)):[]}),Bi=Qr(function(e,t){var r=Qi(t);return Za(r)&&(r=n),Za(e)?pr(e,yr(t,1,Za,!0),li(r,2)):[]}),qi=Qr(function(e,t){var r=Qi(t);return Za(r)&&(r=n),Za(e)?pr(e,yr(t,1,Za,!0),n,r):[]});function Ui(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:hs(n);return o<0&&(o=vn(r+o,0)),Bt(e,li(t,3),o)}function zi(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=hs(r),i=r<0?vn(o+i,0):bn(i,o-1)),Bt(e,li(t,3),i,!0)}function Vi(e){return null!=e&&e.length?yr(e,1):[]}function Wi(e){return e&&e.length?e[0]:n}var Zi=Qr(function(e){var t=Pt(e,vo);return t.length&&t[0]===e[0]?Cr(t):[]}),Yi=Qr(function(e){var t=Qi(e),r=Pt(e,vo);return t===Qi(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Cr(r,li(t,2)):[]}),Gi=Qr(function(e){var t=Qi(e),r=Pt(e,vo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Cr(r,n,t):[]});function Qi(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Ki=Qr(Xi);function Xi(e,t){return e&&e.length&&t&&t.length?Wr(e,t):e}var Ji=ri(function(e,t){var n=null==e?0:e.length,r=ar(e,t);return Zr(e,Pt(t,function(e){return bi(e,n)?+e:e}).sort(Do)),r});function ea(e){return null==e?e:En.call(e)}var ta=Qr(function(e){return uo(yr(e,1,Za,!0))}),na=Qr(function(e){var t=Qi(e);return Za(t)&&(t=n),uo(yr(e,1,Za,!0),li(t,2))}),ra=Qr(function(e){var t=Qi(e);return t="function"==typeof t?t:n,uo(yr(e,1,Za,!0),n,t)});function oa(e){if(!e||!e.length)return[];var t=0;return e=Nt(e,function(e){if(Za(e))return t=vn(e.length,t),!0}),Qt(t,function(t){return Pt(e,Wt(t))})}function ia(e,t){if(!e||!e.length)return[];var r=oa(e);return null==t?r:Pt(r,function(e){return At(t,n,e)})}var aa=Qr(function(e,t){return Za(e)?pr(e,t):[]}),sa=Qr(function(e){return go(Nt(e,Za))}),ca=Qr(function(e){var t=Qi(e);return Za(t)&&(t=n),go(Nt(e,Za),li(t,2))}),la=Qr(function(e){var t=Qi(e);return t="function"==typeof t?t:n,go(Nt(e,Za),n,t)}),ua=Qr(oa),pa=Qr(function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ia(e,r)});function da(e){var t=$n(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var ha=ri(function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&o instanceof zn&&bi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:fa,args:[i],thisArg:n}),new Un(o,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e})):this.thru(i)}),ma=jo(function(e,t,n){Ie.call(e,n)?++e[n]:ir(e,n,1)}),ga=Ho(Ui),ya=Ho(zi);function va(e,t){return(za(e)?Mt:dr)(e,li(t,3))}function ba(e,t){return(za(e)?Ct:fr)(e,li(t,3))}var wa=jo(function(e,t,n){Ie.call(e,n)?e[n].push(t):ir(e,n,[t])}),xa=Qr(function(e,t,n){var r=-1,o="function"==typeof t,i=Wa(e)?S(e.length):[];return dr(e,function(e){i[++r]=o?At(t,e,n):Sr(e,t,n)}),i}),_a=jo(function(e,t,n){ir(e,n,t)});function Ea(e,t){return(za(e)?Pt:Hr)(e,li(t,3))}var ka=jo(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),Oa=Qr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&wi(e,t[0],t[1])?t=[]:n>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),zr(e,yr(t,1),[])}),Aa=lt||function(){return ht.Date.now()};function Da(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Xo(e,l,n,n,n,n,t)}function Ma(e,t){var o;if("function"!=typeof t)throw new Ce(r);return e=hs(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Ca=Qr(function(e,t,n){var r=1;if(n.length){var o=un(n,ci(Ca));r|=s}return Xo(e,r,t,n,o)}),Sa=Qr(function(e,t,n){var r=3;if(n.length){var o=un(n,ci(Sa));r|=s}return Xo(t,r,e,n,o)});function Na(e,t,o){var i,a,s,c,l,u,p=0,d=!1,f=!1,h=!0;if("function"!=typeof e)throw new Ce(r);function m(t){var r=i,o=a;return i=a=n,p=t,c=e.apply(o,r)}function g(e){var r=e-u;return u===n||r>=t||r<0||f&&e-p>=s}function y(){var e=Aa();if(g(e))return v(e);l=Ni(y,function(e){var n=t-(e-u);return f?bn(n,s-(e-p)):n}(e))}function v(e){return l=n,h&&i?m(e):(i=a=n,c)}function b(){var e=Aa(),r=g(e);if(i=arguments,a=this,u=e,r){if(l===n)return function(e){return p=e,l=Ni(y,t),d?m(e):c}(u);if(f)return Eo(l),l=Ni(y,t),m(u)}return l===n&&(l=Ni(y,t)),c}return t=gs(t)||0,es(o)&&(d=!!o.leading,s=(f="maxWait"in o)?vn(gs(o.maxWait)||0,t):s,h="trailing"in o?!!o.trailing:h),b.cancel=function(){l!==n&&Eo(l),p=0,i=u=a=l=n},b.flush=function(){return l===n?c:v(Aa())},b}var ja=Qr(function(e,t){return ur(e,1,t)}),Ta=Qr(function(e,t,n){return ur(e,gs(t)||0,n)});function Pa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ce(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Pa.Cache||Zn),n}function Ia(e){if("function"!=typeof e)throw new Ce(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Pa.Cache=Zn;var Ra=xo(function(e,t){var n=(t=1==t.length&&za(t[0])?Pt(t[0],Xt(li())):Pt(yr(t,1),Xt(li()))).length;return Qr(function(r){for(var o=-1,i=bn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return At(e,this,r)})}),La=Qr(function(e,t){var r=un(t,ci(La));return Xo(e,s,n,t,r)}),Fa=Qr(function(e,t){var r=un(t,ci(Fa));return Xo(e,c,n,t,r)}),Ha=ri(function(e,t){return Xo(e,u,n,n,n,t)});function $a(e,t){return e===t||e!=e&&t!=t}var Ba=Zo(Ar),qa=Zo(function(e,t){return e>=t}),Ua=Nr(function(){return arguments}())?Nr:function(e){return ts(e)&&Ie.call(e,"callee")&&!Ye.call(e,"callee")},za=S.isArray,Va=wt?Xt(wt):function(e){return ts(e)&&Or(e)==T};function Wa(e){return null!=e&&Ja(e.length)&&!Ka(e)}function Za(e){return ts(e)&&Wa(e)}var Ya=vt||gc,Ga=xt?Xt(xt):function(e){return ts(e)&&Or(e)==b};function Qa(e){if(!ts(e))return!1;var t=Or(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Ka(e){if(!es(e))return!1;var t=Or(e);return t==x||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Xa(e){return"number"==typeof e&&e==hs(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var ns=_t?Xt(_t):function(e){return ts(e)&&mi(e)==E};function rs(e){return"number"==typeof e||ts(e)&&Or(e)==k}function os(e){if(!ts(e)||Or(e)!=O)return!1;var t=We(e);if(null===t)return!0;var n=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==He}var is=Et?Xt(Et):function(e){return ts(e)&&Or(e)==D},as=kt?Xt(kt):function(e){return ts(e)&&mi(e)==M};function ss(e){return"string"==typeof e||!za(e)&&ts(e)&&Or(e)==C}function cs(e){return"symbol"==typeof e||ts(e)&&Or(e)==N}var ls=Ot?Xt(Ot):function(e){return ts(e)&&Ja(e.length)&&!!st[Or(e)]},us=Zo(Fr),ps=Zo(function(e,t){return e<=t});function ds(e){if(!e)return[];if(Wa(e))return ss(e)?hn(e):So(e);if(Ke&&e[Ke])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ke]());var t=mi(e);return(t==E?cn:t==M?pn:$s)(e)}function fs(e){return e?(e=gs(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hs(e){var t=fs(e),n=t%1;return t==t?n?t-n:t:0}function ms(e){return e?sr(hs(e),0,h):0}function gs(e){if("number"==typeof e)return e;if(cs(e))return f;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=ge.test(e);return n||ve.test(e)?pt(e.slice(2),n?2:8):me.test(e)?f:+e}function ys(e){return No(e,js(e))}function vs(e){return null==e?"":lo(e)}var bs=To(function(e,t){if(ki(t)||Wa(t))No(t,Ns(t),e);else for(var n in t)Ie.call(t,n)&&tr(e,n,t[n])}),ws=To(function(e,t){No(t,js(t),e)}),xs=To(function(e,t,n,r){No(t,js(t),e,r)}),_s=To(function(e,t,n,r){No(t,Ns(t),e,r)}),Es=ri(ar),ks=Qr(function(e,t){e=Ae(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&wi(t[0],t[1],i)&&(o=1);++r<o;)for(var a=t[r],s=js(a),c=-1,l=s.length;++c<l;){var u=s[c],p=e[u];(p===n||$a(p,je[u])&&!Ie.call(e,u))&&(e[u]=a[u])}return e}),Os=Qr(function(e){return e.push(n,ei),At(Ps,n,e)});function As(e,t,r){var o=null==e?n:Er(e,t);return o===n?r:o}function Ds(e,t){return null!=e&&gi(e,t,Mr)}var Ms=qo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n},ec(rc)),Cs=qo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Ie.call(e,t)?e[t].push(n):e[t]=[n]},li),Ss=Qr(Sr);function Ns(e){return Wa(e)?Qn(e):Rr(e)}function js(e){return Wa(e)?Qn(e,!0):Lr(e)}var Ts=To(function(e,t,n){qr(e,t,n)}),Ps=To(function(e,t,n,r){qr(e,t,n,r)}),Is=ri(function(e,t){var n={};if(null==e)return n;var r=!1;t=Pt(t,function(t){return t=wo(t,e),r||(r=t.length>1),t}),No(e,ii(e),n),r&&(n=cr(n,7,ti));for(var o=t.length;o--;)po(n,t[o]);return n}),Rs=ri(function(e,t){return null==e?{}:function(e,t){return Vr(e,t,function(t,n){return Ds(e,n)})}(e,t)});function Ls(e,t){if(null==e)return{};var n=Pt(ii(e),function(e){return[e]});return t=li(t),Vr(e,n,function(e,n){return t(e,n[0])})}var Fs=Ko(Ns),Hs=Ko(js);function $s(e){return null==e?[]:Jt(e,Ns(e))}var Bs=Lo(function(e,t,n){return t=t.toLowerCase(),e+(n?qs(t):t)});function qs(e){return Qs(vs(e).toLowerCase())}function Us(e){return(e=vs(e))&&e.replace(we,rn).replace(et,"")}var zs=Lo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Vs=Lo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Ws=Ro("toLowerCase"),Zs=Lo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Ys=Lo(function(e,t,n){return e+(n?" ":"")+Qs(t)}),Gs=Lo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Qs=Ro("toUpperCase");function Ks(e,t,r){return e=vs(e),(t=r?n:t)===n?function(e){return ot.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Xs=Qr(function(e,t){try{return At(e,n,t)}catch(e){return Qa(e)?e:new Ee(e)}}),Js=ri(function(e,t){return Mt(t,function(t){t=Li(t),ir(e,t,Ca(e[t],e))}),e});function ec(e){return function(){return e}}var tc=$o(),nc=$o(!0);function rc(e){return e}function oc(e){return Ir("function"==typeof e?e:cr(e,1))}var ic=Qr(function(e,t){return function(n){return Sr(n,e,t)}}),ac=Qr(function(e,t){return function(n){return Sr(e,n,t)}});function sc(e,t,n){var r=Ns(t),o=_r(t,r);null!=n||es(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,Ns(t)));var i=!(es(n)&&"chain"in n&&!n.chain),a=Ka(e);return Mt(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=So(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,It([this.value()],arguments))})}),e}function cc(){}var lc=zo(Pt),uc=zo(St),pc=zo(Ft);function dc(e){return xi(e)?Wt(Li(e)):function(e){return function(t){return Er(t,e)}}(e)}var fc=Wo(),hc=Wo(!0);function mc(){return[]}function gc(){return!1}var yc=Uo(function(e,t){return e+t},0),vc=Go("ceil"),bc=Uo(function(e,t){return e/t},1),wc=Go("floor"),xc=Uo(function(e,t){return e*t},1),_c=Go("round"),Ec=Uo(function(e,t){return e-t},0);return $n.after=function(e,t){if("function"!=typeof t)throw new Ce(r);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},$n.ary=Da,$n.assign=bs,$n.assignIn=ws,$n.assignInWith=xs,$n.assignWith=_s,$n.at=Es,$n.before=Ma,$n.bind=Ca,$n.bindAll=Js,$n.bindKey=Sa,$n.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return za(e)?e:[e]},$n.chain=da,$n.chunk=function(e,t,r){t=(r?wi(e,t,r):t===n)?1:vn(hs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,s=S(ft(o/t));i<o;)s[a++]=ro(e,i,i+=t);return s},$n.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},$n.concat=function(){var e=arguments.length;if(!e)return[];for(var t=S(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return It(za(n)?So(n):[n],yr(t,1))},$n.cond=function(e){var t=null==e?0:e.length,n=li();return e=t?Pt(e,function(e){if("function"!=typeof e[1])throw new Ce(r);return[n(e[0]),e[1]]}):[],Qr(function(n){for(var r=-1;++r<t;){var o=e[r];if(At(o[0],this,n))return At(o[1],this,n)}})},$n.conforms=function(e){return function(e){var t=Ns(e);return function(n){return lr(n,e,t)}}(cr(e,1))},$n.constant=ec,$n.countBy=ma,$n.create=function(e,t){var n=Bn(e);return null==t?n:or(n,t)},$n.curry=function e(t,r,o){var i=Xo(t,8,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},$n.curryRight=function e(t,r,o){var i=Xo(t,a,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},$n.debounce=Na,$n.defaults=ks,$n.defaultsDeep=Os,$n.defer=ja,$n.delay=Ta,$n.difference=$i,$n.differenceBy=Bi,$n.differenceWith=qi,$n.drop=function(e,t,r){var o=null==e?0:e.length;return o?ro(e,(t=r||t===n?1:hs(t))<0?0:t,o):[]},$n.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?ro(e,0,(t=o-(t=r||t===n?1:hs(t)))<0?0:t):[]},$n.dropRightWhile=function(e,t){return e&&e.length?ho(e,li(t,3),!0,!0):[]},$n.dropWhile=function(e,t){return e&&e.length?ho(e,li(t,3),!0):[]},$n.fill=function(e,t,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&wi(e,t,r)&&(r=0,o=i),function(e,t,r,o){var i=e.length;for((r=hs(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:hs(o))<0&&(o+=i),o=r>o?0:ms(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},$n.filter=function(e,t){return(za(e)?Nt:gr)(e,li(t,3))},$n.flatMap=function(e,t){return yr(Ea(e,t),1)},$n.flatMapDeep=function(e,t){return yr(Ea(e,t),p)},$n.flatMapDepth=function(e,t,r){return r=r===n?1:hs(r),yr(Ea(e,t),r)},$n.flatten=Vi,$n.flattenDeep=function(e){return null!=e&&e.length?yr(e,p):[]},$n.flattenDepth=function(e,t){return null!=e&&e.length?yr(e,t=t===n?1:hs(t)):[]},$n.flip=function(e){return Xo(e,512)},$n.flow=tc,$n.flowRight=nc,$n.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},$n.functions=function(e){return null==e?[]:_r(e,Ns(e))},$n.functionsIn=function(e){return null==e?[]:_r(e,js(e))},$n.groupBy=wa,$n.initial=function(e){return null!=e&&e.length?ro(e,0,-1):[]},$n.intersection=Zi,$n.intersectionBy=Yi,$n.intersectionWith=Gi,$n.invert=Ms,$n.invertBy=Cs,$n.invokeMap=xa,$n.iteratee=oc,$n.keyBy=_a,$n.keys=Ns,$n.keysIn=js,$n.map=Ea,$n.mapKeys=function(e,t){var n={};return t=li(t,3),wr(e,function(e,r,o){ir(n,t(e,r,o),e)}),n},$n.mapValues=function(e,t){var n={};return t=li(t,3),wr(e,function(e,r,o){ir(n,r,t(e,r,o))}),n},$n.matches=function(e){return $r(cr(e,1))},$n.matchesProperty=function(e,t){return Br(e,cr(t,1))},$n.memoize=Pa,$n.merge=Ts,$n.mergeWith=Ps,$n.method=ic,$n.methodOf=ac,$n.mixin=sc,$n.negate=Ia,$n.nthArg=function(e){return e=hs(e),Qr(function(t){return Ur(t,e)})},$n.omit=Is,$n.omitBy=function(e,t){return Ls(e,Ia(li(t)))},$n.once=function(e){return Ma(2,e)},$n.orderBy=function(e,t,r,o){return null==e?[]:(za(t)||(t=null==t?[]:[t]),za(r=o?n:r)||(r=null==r?[]:[r]),zr(e,t,r))},$n.over=lc,$n.overArgs=Ra,$n.overEvery=uc,$n.overSome=pc,$n.partial=La,$n.partialRight=Fa,$n.partition=ka,$n.pick=Rs,$n.pickBy=Ls,$n.property=dc,$n.propertyOf=function(e){return function(t){return null==e?n:Er(e,t)}},$n.pull=Ki,$n.pullAll=Xi,$n.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,li(n,2)):e},$n.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Wr(e,t,n,r):e},$n.pullAt=Ji,$n.range=fc,$n.rangeRight=hc,$n.rearg=Ha,$n.reject=function(e,t){return(za(e)?Nt:gr)(e,Ia(li(t,3)))},$n.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=li(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Zr(e,o),n},$n.rest=function(e,t){if("function"!=typeof e)throw new Ce(r);return Qr(e,t=t===n?t:hs(t))},$n.reverse=ea,$n.sampleSize=function(e,t,r){return t=(r?wi(e,t,r):t===n)?1:hs(t),(za(e)?Xn:Xr)(e,t)},$n.set=function(e,t,n){return null==e?e:Jr(e,t,n)},$n.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:Jr(e,t,r,o)},$n.shuffle=function(e){return(za(e)?Jn:no)(e)},$n.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&wi(e,t,r)?(t=0,r=o):(t=null==t?0:hs(t),r=r===n?o:hs(r)),ro(e,t,r)):[]},$n.sortBy=Oa,$n.sortedUniq=function(e){return e&&e.length?so(e):[]},$n.sortedUniqBy=function(e,t){return e&&e.length?so(e,li(t,2)):[]},$n.split=function(e,t,r){return r&&"number"!=typeof r&&wi(e,t,r)&&(t=r=n),(r=r===n?h:r>>>0)?(e=vs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=lo(t))&&sn(e)?_o(hn(e),0,r):e.split(t,r):[]},$n.spread=function(e,t){if("function"!=typeof e)throw new Ce(r);return t=null==t?0:vn(hs(t),0),Qr(function(n){var r=n[t],o=_o(n,0,t);return r&&It(o,r),At(e,this,o)})},$n.tail=function(e){var t=null==e?0:e.length;return t?ro(e,1,t):[]},$n.take=function(e,t,r){return e&&e.length?ro(e,0,(t=r||t===n?1:hs(t))<0?0:t):[]},$n.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?ro(e,(t=o-(t=r||t===n?1:hs(t)))<0?0:t,o):[]},$n.takeRightWhile=function(e,t){return e&&e.length?ho(e,li(t,3),!1,!0):[]},$n.takeWhile=function(e,t){return e&&e.length?ho(e,li(t,3)):[]},$n.tap=function(e,t){return t(e),e},$n.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new Ce(r);return es(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Na(e,t,{leading:o,maxWait:t,trailing:i})},$n.thru=fa,$n.toArray=ds,$n.toPairs=Fs,$n.toPairsIn=Hs,$n.toPath=function(e){return za(e)?Pt(e,Li):cs(e)?[e]:So(Ri(vs(e)))},$n.toPlainObject=ys,$n.transform=function(e,t,n){var r=za(e),o=r||Ya(e)||ls(e);if(t=li(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:es(e)&&Ka(i)?Bn(We(e)):{}}return(o?Mt:wr)(e,function(e,r,o){return t(n,e,r,o)}),n},$n.unary=function(e){return Da(e,1)},$n.union=ta,$n.unionBy=na,$n.unionWith=ra,$n.uniq=function(e){return e&&e.length?uo(e):[]},$n.uniqBy=function(e,t){return e&&e.length?uo(e,li(t,2)):[]},$n.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?uo(e,n,t):[]},$n.unset=function(e,t){return null==e||po(e,t)},$n.unzip=oa,$n.unzipWith=ia,$n.update=function(e,t,n){return null==e?e:fo(e,t,bo(n))},$n.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:fo(e,t,bo(r),o)},$n.values=$s,$n.valuesIn=function(e){return null==e?[]:Jt(e,js(e))},$n.without=aa,$n.words=Ks,$n.wrap=function(e,t){return La(bo(t),e)},$n.xor=sa,$n.xorBy=ca,$n.xorWith=la,$n.zip=ua,$n.zipObject=function(e,t){return yo(e||[],t||[],tr)},$n.zipObjectDeep=function(e,t){return yo(e||[],t||[],Jr)},$n.zipWith=pa,$n.entries=Fs,$n.entriesIn=Hs,$n.extend=ws,$n.extendWith=xs,sc($n,$n),$n.add=yc,$n.attempt=Xs,$n.camelCase=Bs,$n.capitalize=qs,$n.ceil=vc,$n.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=gs(r))==r?r:0),t!==n&&(t=(t=gs(t))==t?t:0),sr(gs(e),t,r)},$n.clone=function(e){return cr(e,4)},$n.cloneDeep=function(e){return cr(e,5)},$n.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},$n.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},$n.conformsTo=function(e,t){return null==t||lr(e,t,Ns(t))},$n.deburr=Us,$n.defaultTo=function(e,t){return null==e||e!=e?t:e},$n.divide=bc,$n.endsWith=function(e,t,r){e=vs(e),t=lo(t);var o=e.length,i=r=r===n?o:sr(hs(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},$n.eq=$a,$n.escape=function(e){return(e=vs(e))&&Q.test(e)?e.replace(Y,on):e},$n.escapeRegExp=function(e){return(e=vs(e))&&oe.test(e)?e.replace(re,"\\$&"):e},$n.every=function(e,t,r){var o=za(e)?St:hr;return r&&wi(e,t,r)&&(t=n),o(e,li(t,3))},$n.find=ga,$n.findIndex=Ui,$n.findKey=function(e,t){return $t(e,li(t,3),wr)},$n.findLast=ya,$n.findLastIndex=zi,$n.findLastKey=function(e,t){return $t(e,li(t,3),xr)},$n.floor=wc,$n.forEach=va,$n.forEachRight=ba,$n.forIn=function(e,t){return null==e?e:vr(e,li(t,3),js)},$n.forInRight=function(e,t){return null==e?e:br(e,li(t,3),js)},$n.forOwn=function(e,t){return e&&wr(e,li(t,3))},$n.forOwnRight=function(e,t){return e&&xr(e,li(t,3))},$n.get=As,$n.gt=Ba,$n.gte=qa,$n.has=function(e,t){return null!=e&&gi(e,t,Dr)},$n.hasIn=Ds,$n.head=Wi,$n.identity=rc,$n.includes=function(e,t,n,r){e=Wa(e)?e:$s(e),n=n&&!r?hs(n):0;var o=e.length;return n<0&&(n=vn(o+n,0)),ss(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&qt(e,t,n)>-1},$n.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:hs(n);return o<0&&(o=vn(r+o,0)),qt(e,t,o)},$n.inRange=function(e,t,r){return t=fs(t),r===n?(r=t,t=0):r=fs(r),function(e,t,n){return e>=bn(t,n)&&e<vn(t,n)}(e=gs(e),t,r)},$n.invoke=Ss,$n.isArguments=Ua,$n.isArray=za,$n.isArrayBuffer=Va,$n.isArrayLike=Wa,$n.isArrayLikeObject=Za,$n.isBoolean=function(e){return!0===e||!1===e||ts(e)&&Or(e)==v},$n.isBuffer=Ya,$n.isDate=Ga,$n.isElement=function(e){return ts(e)&&1===e.nodeType&&!os(e)},$n.isEmpty=function(e){if(null==e)return!0;if(Wa(e)&&(za(e)||"string"==typeof e||"function"==typeof e.splice||Ya(e)||ls(e)||Ua(e)))return!e.length;var t=mi(e);if(t==E||t==M)return!e.size;if(ki(e))return!Rr(e).length;for(var n in e)if(Ie.call(e,n))return!1;return!0},$n.isEqual=function(e,t){return jr(e,t)},$n.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?jr(e,t,n,r):!!o},$n.isError=Qa,$n.isFinite=function(e){return"number"==typeof e&&bt(e)},$n.isFunction=Ka,$n.isInteger=Xa,$n.isLength=Ja,$n.isMap=ns,$n.isMatch=function(e,t){return e===t||Tr(e,t,pi(t))},$n.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Tr(e,t,pi(t),r)},$n.isNaN=function(e){return rs(e)&&e!=+e},$n.isNative=function(e){if(Ei(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Pr(e)},$n.isNil=function(e){return null==e},$n.isNull=function(e){return null===e},$n.isNumber=rs,$n.isObject=es,$n.isObjectLike=ts,$n.isPlainObject=os,$n.isRegExp=is,$n.isSafeInteger=function(e){return Xa(e)&&e>=-9007199254740991&&e<=d},$n.isSet=as,$n.isString=ss,$n.isSymbol=cs,$n.isTypedArray=ls,$n.isUndefined=function(e){return e===n},$n.isWeakMap=function(e){return ts(e)&&mi(e)==j},$n.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==Or(e)},$n.join=function(e,t){return null==e?"":Ht.call(e,t)},$n.kebabCase=zs,$n.last=Qi,$n.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=hs(r))<0?vn(o+i,0):bn(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Bt(e,zt,i,!0)},$n.lowerCase=Vs,$n.lowerFirst=Ws,$n.lt=us,$n.lte=ps,$n.max=function(e){return e&&e.length?mr(e,rc,Ar):n},$n.maxBy=function(e,t){return e&&e.length?mr(e,li(t,2),Ar):n},$n.mean=function(e){return Vt(e,rc)},$n.meanBy=function(e,t){return Vt(e,li(t,2))},$n.min=function(e){return e&&e.length?mr(e,rc,Fr):n},$n.minBy=function(e,t){return e&&e.length?mr(e,li(t,2),Fr):n},$n.stubArray=mc,$n.stubFalse=gc,$n.stubObject=function(){return{}},$n.stubString=function(){return""},$n.stubTrue=function(){return!0},$n.multiply=xc,$n.nth=function(e,t){return e&&e.length?Ur(e,hs(t)):n},$n.noConflict=function(){return ht._===this&&(ht._=$e),this},$n.noop=cc,$n.now=Aa,$n.pad=function(e,t,n){e=vs(e);var r=(t=hs(t))?fn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Vo(mt(o),n)+e+Vo(ft(o),n)},$n.padEnd=function(e,t,n){e=vs(e);var r=(t=hs(t))?fn(e):0;return t&&r<t?e+Vo(t-r,n):e},$n.padStart=function(e,t,n){e=vs(e);var r=(t=hs(t))?fn(e):0;return t&&r<t?Vo(t-r,n)+e:e},$n.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),xn(vs(e).replace(ie,""),t||0)},$n.random=function(e,t,r){if(r&&"boolean"!=typeof r&&wi(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=fs(e),t===n?(t=e,e=0):t=fs(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=_n();return bn(e+i*(t-e+ut("1e-"+((i+"").length-1))),t)}return Yr(e,t)},$n.reduce=function(e,t,n){var r=za(e)?Rt:Yt,o=arguments.length<3;return r(e,li(t,4),n,o,dr)},$n.reduceRight=function(e,t,n){var r=za(e)?Lt:Yt,o=arguments.length<3;return r(e,li(t,4),n,o,fr)},$n.repeat=function(e,t,r){return t=(r?wi(e,t,r):t===n)?1:hs(t),Gr(vs(e),t)},$n.replace=function(){var e=arguments,t=vs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},$n.result=function(e,t,r){var o=-1,i=(t=wo(t,e)).length;for(i||(i=1,e=n);++o<i;){var a=null==e?n:e[Li(t[o])];a===n&&(o=i,a=r),e=Ka(a)?a.call(e):a}return e},$n.round=_c,$n.runInContext=e,$n.sample=function(e){return(za(e)?Kn:Kr)(e)},$n.size=function(e){if(null==e)return 0;if(Wa(e))return ss(e)?fn(e):e.length;var t=mi(e);return t==E||t==M?e.size:Rr(e).length},$n.snakeCase=Zs,$n.some=function(e,t,r){var o=za(e)?Ft:oo;return r&&wi(e,t,r)&&(t=n),o(e,li(t,3))},$n.sortedIndex=function(e,t){return io(e,t)},$n.sortedIndexBy=function(e,t,n){return ao(e,t,li(n,2))},$n.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=io(e,t);if(r<n&&$a(e[r],t))return r}return-1},$n.sortedLastIndex=function(e,t){return io(e,t,!0)},$n.sortedLastIndexBy=function(e,t,n){return ao(e,t,li(n,2),!0)},$n.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=io(e,t,!0)-1;if($a(e[n],t))return n}return-1},$n.startCase=Ys,$n.startsWith=function(e,t,n){return e=vs(e),n=null==n?0:sr(hs(n),0,e.length),t=lo(t),e.slice(n,n+t.length)==t},$n.subtract=Ec,$n.sum=function(e){return e&&e.length?Gt(e,rc):0},$n.sumBy=function(e,t){return e&&e.length?Gt(e,li(t,2)):0},$n.template=function(e,t,r){var o=$n.templateSettings;r&&wi(e,t,r)&&(t=n),e=vs(e),t=xs({},t,o,Jo);var i,a,s=xs({},t.imports,o.imports,Jo),c=Ns(s),l=Jt(s,c),u=0,p=t.interpolate||xe,d="__p += '",f=De((t.escape||xe).source+"|"+p.source+"|"+(p===J?fe:xe).source+"|"+(t.evaluate||xe).source+"|$","g"),h="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(f,function(t,n,r,o,s,c){return r||(r=o),d+=e.slice(u,c).replace(_e,an),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=c+t.length,t}),d+="';\n";var m=Ie.call(t,"variable")&&t.variable;if(m){if(pe.test(m))throw new Ee("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(z,""):d).replace(V,"$1").replace(W,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var g=Xs(function(){return ke(c,h+"return "+d).apply(n,l)});if(g.source=d,Qa(g))throw g;return g},$n.times=function(e,t){if((e=hs(e))<1||e>d)return[];var n=h,r=bn(e,h);t=li(t),e-=h;for(var o=Qt(r,t);++n<e;)t(n);return o},$n.toFinite=fs,$n.toInteger=hs,$n.toLength=ms,$n.toLower=function(e){return vs(e).toLowerCase()},$n.toNumber=gs,$n.toSafeInteger=function(e){return e?sr(hs(e),-9007199254740991,d):0===e?e:0},$n.toString=vs,$n.toUpper=function(e){return vs(e).toUpperCase()},$n.trim=function(e,t,r){if((e=vs(e))&&(r||t===n))return Kt(e);if(!e||!(t=lo(t)))return e;var o=hn(e),i=hn(t);return _o(o,tn(o,i),nn(o,i)+1).join("")},$n.trimEnd=function(e,t,r){if((e=vs(e))&&(r||t===n))return e.slice(0,mn(e)+1);if(!e||!(t=lo(t)))return e;var o=hn(e);return _o(o,0,nn(o,hn(t))+1).join("")},$n.trimStart=function(e,t,r){if((e=vs(e))&&(r||t===n))return e.replace(ie,"");if(!e||!(t=lo(t)))return e;var o=hn(e);return _o(o,tn(o,hn(t))).join("")},$n.truncate=function(e,t){var r=30,o="...";if(es(t)){var i="separator"in t?t.separator:i;r="length"in t?hs(t.length):r,o="omission"in t?lo(t.omission):o}var a=(e=vs(e)).length;if(sn(e)){var s=hn(e);a=s.length}if(r>=a)return e;var c=r-fn(o);if(c<1)return o;var l=s?_o(s,0,c).join(""):e.slice(0,c);if(i===n)return l+o;if(s&&(c+=l.length-c),is(i)){if(e.slice(c).search(i)){var u,p=l;for(i.global||(i=De(i.source,vs(he.exec(i))+"g")),i.lastIndex=0;u=i.exec(p);)var d=u.index;l=l.slice(0,d===n?c:d)}}else if(e.indexOf(lo(i),c)!=c){var f=l.lastIndexOf(i);f>-1&&(l=l.slice(0,f))}return l+o},$n.unescape=function(e){return(e=vs(e))&&G.test(e)?e.replace(Z,gn):e},$n.uniqueId=function(e){var t=++Re;return vs(e)+t},$n.upperCase=Gs,$n.upperFirst=Qs,$n.each=va,$n.eachRight=ba,$n.first=Wi,sc($n,function(){var e={};return wr($n,function(t,n){Ie.call($n.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),$n.VERSION="4.17.21",Mt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){$n[e].placeholder=$n}),Mt(["drop","take"],function(e,t){zn.prototype[e]=function(r){r=r===n?1:vn(hs(r),0);var o=this.__filtered__&&!t?new zn(this):this.clone();return o.__filtered__?o.__takeCount__=bn(r,o.__takeCount__):o.__views__.push({size:bn(r,h),type:e+(o.__dir__<0?"Right":"")}),o},zn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Mt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;zn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:li(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Mt(["head","last"],function(e,t){var n="take"+(t?"Right":"");zn.prototype[e]=function(){return this[n](1).value()[0]}}),Mt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");zn.prototype[e]=function(){return this.__filtered__?new zn(this):this[n](1)}}),zn.prototype.compact=function(){return this.filter(rc)},zn.prototype.find=function(e){return this.filter(e).head()},zn.prototype.findLast=function(e){return this.reverse().find(e)},zn.prototype.invokeMap=Qr(function(e,t){return"function"==typeof e?new zn(this):this.map(function(n){return Sr(n,e,t)})}),zn.prototype.reject=function(e){return this.filter(Ia(li(e)))},zn.prototype.slice=function(e,t){e=hs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new zn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=hs(t))<0?r.dropRight(-t):r.take(t-e)),r)},zn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},zn.prototype.toArray=function(){return this.take(h)},wr(zn.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=$n[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&($n.prototype[t]=function(){var t=this.__wrapped__,s=o?[1]:arguments,c=t instanceof zn,l=s[0],u=c||za(t),p=function(e){var t=i.apply($n,It([e],s));return o&&d?t[0]:t};u&&r&&"function"==typeof l&&1!=l.length&&(c=u=!1);var d=this.__chain__,f=!!this.__actions__.length,h=a&&!d,m=c&&!f;if(!a&&u){t=m?t:new zn(this);var g=e.apply(t,s);return g.__actions__.push({func:fa,args:[p],thisArg:n}),new Un(g,d)}return h&&m?e.apply(this,s):(g=this.thru(p),h?o?g.value()[0]:g.value():g)})}),Mt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Se[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);$n.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(za(o)?o:[],e)}return this[n](function(n){return t.apply(za(n)?n:[],e)})}}),wr(zn.prototype,function(e,t){var n=$n[t];if(n){var r=n.name+"";Ie.call(Nn,r)||(Nn[r]=[]),Nn[r].push({name:t,func:n})}}),Nn[Bo(n,2).name]=[{name:"wrapper",func:n}],zn.prototype.clone=function(){var e=new zn(this.__wrapped__);return e.__actions__=So(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=So(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=So(this.__views__),e},zn.prototype.reverse=function(){if(this.__filtered__){var e=new zn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},zn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=za(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=vn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,c=s-a,l=r?s:a-1,u=this.__iteratees__,p=u.length,d=0,f=bn(c,this.__takeCount__);if(!n||!r&&o==c&&f==c)return mo(e,this.__actions__);var h=[];e:for(;c--&&d<f;){for(var m=-1,g=e[l+=t];++m<p;){var y=u[m],v=y.iteratee,b=y.type,w=v(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}h[d++]=g}return h},$n.prototype.at=ha,$n.prototype.chain=function(){return da(this)},$n.prototype.commit=function(){return new Un(this.value(),this.__chain__)},$n.prototype.next=function(){this.__values__===n&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},$n.prototype.plant=function(e){for(var t,r=this;r instanceof qn;){var o=Hi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},$n.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof zn){var t=e;return this.__actions__.length&&(t=new zn(this)),(t=t.reverse()).__actions__.push({func:fa,args:[ea],thisArg:n}),new Un(t,this.__chain__)}return this.thru(ea)},$n.prototype.toJSON=$n.prototype.valueOf=$n.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},$n.prototype.first=$n.prototype.head,Ke&&($n.prototype[Ke]=function(){return this}),$n}();gt?((gt.exports=yn)._=yn,mt._=yn):ht._=yn}).call(S6)}(C6,C6.exports)),tb.arrayOf(tb.shape({name:tb.string.isRequired,path:tb.string.isRequired})).isRequired,tb.func.isRequired;var N6={CORE_UI:"CORE_UI",DEV_PORTAL:"DEV_PORTAL",OPEN_API:"OPEN_API",EXTERNAL:"EXTERNAL"},j6={CATALOG:"CATALOG",GUIDE:"GUIDE"};function T6(e){var t=e.exampleScheme,n=e.onSelectExample,r=e.onSelectSchema,i=e.className,a=Wy(),s=t===fe,c=t===de;return o.jsxs("div",{className:Qy("ref-tab-toggle",i),children:[o.jsxs("div",{"aria-hidden":!0,onClick:function(e){e.stopPropagation(),r()},className:Qy("ref-tab-toggle__item",s&&"ref-tab-toggle__item--active"),children:[o.jsx(Kw,{size:a.sm,className:"ref-tab-toggle__icon"}),o.jsx("span",{className:"ref-tab-toggle__label text-nowrap",children:"Schema"})]}),o.jsxs("div",{"aria-hidden":!0,onClick:function(e){e.stopPropagation(),n()},className:Qy("ref-tab-toggle__item",c&&"ref-tab-toggle__item--active"),children:[o.jsx(aw,{size:a.sm,className:"ref-tab-toggle__icon"}),o.jsx("span",{className:"ref-tab-toggle__label text-nowrap",children:"Example"})]})]})}function P6(e){var t=e.example,n=e.isDarkMode,r=e.emptyMessage,i=Wy();return function(e){return null!=e&&("string"!=typeof e||e.trim().length>0)}(t)?o.jsx(tJ,{code:JSON.stringify(t,null,2),lang:"json",theme:"light",style:{maxHeight:"100%",overflowY:"auto",borderRadius:"8px",border:n?"1px solid #434343":""},tokens:{attr:"#5EAAF7",string:"#F0F0F0",punctuation:"#F0F0F0",bg:n?"#292724":"#373533"}}):o.jsx("div",{className:"flex-center w-100",children:o.jsxs("div",{className:"flex-col vt-center hz-center dss-gap-12 dss-br-4 dss-px-12 dss-py-40 w-100",children:[o.jsx(Iw,{size:i.custom(36),className:"color-disabled"}),o.jsx("p",{className:"color-tertiary fs-12px fw-600 dss-my-0",children:r||"No example available"})]})})}T6.propTypes={exampleScheme:tb.string.isRequired,onSelectExample:tb.func.isRequired,onSelectSchema:tb.func.isRequired,className:tb.string},T6.defaultProps={className:""};function I6(n){var r,i,a=n.activeViewType,s=n.FROM,c=Wy(),l=t.useDispatch(),u=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),p=t.useSelector(function(e){return e.libConfig.isDarkMode},zy),d=t.useSelector(function(e){return e.apiReference.selected.request.schema},zy),f=t.useSelector(function(e){return e.apiReference.selected.request.contentList},zy),h=t.useSelector(function(e){return e.apiReference.selected.request.contentType},zy),m=t.useSelector(function(e){return e.apiReference.selected.request.example},zy),g=Ce(e.useState(null),2),y=g[0],v=g[1],b=Ce(e.useState([]),2),w=b[0],x=b[1],_=Ce(e.useState(!u),2),E=_[0],k=_[1],O=Ce(e.useState(fe),2),A=O[0],D=O[1],M=e.useMemo(function(){return(Object.keys(f)||[]).map(function(e){return{onClick:function(){return l(py({contentType:e,contentTypeData:f[e]}))},element:o.jsx("div",{className:Qy("ref-ui-12 color-02 fw-400"),children:e})}})},[f,l]),C=function(e){if(e){var t=e.uiData&&e.uiData.traversePath||"",n=[],r="request".concat(G,"schema"),o=t.startsWith("".concat(r).concat(G))?t.slice("".concat(r).concat(G).length):"";if(o)for(var i=o.split(G),a=d,s=r,c=0;c+1<i.length;c+=2){var l=i[c],u=Number(i[c+1]);s="".concat(s).concat(G).concat(l).concat(G).concat(u),"properties"===l&&a.properties&&a.properties[u]&&(a=a.properties[u],s.startsWith("".concat("request#..@..#schema#..@..#properties#..@..#0#..@..#properties#..@..#0").concat(G))&&n.push({name:a.uiData&&a.uiData.name||"",traversePath:s}))}x(n),v(e)}},S=(null==d||null===(r=d.properties)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.properties)||void 0===r?void 0:r[0])||null;e.useEffect(function(){C(S||null)},[S]);var N=S?o.jsx(NN,{node:S,depth:0,selectedBodyObject:y,setSelectedBodyObject:C}):o.jsx("div",{className:"dss-p-8 ref-ui-12 color-secondary",children:"No schema"}),j=o.jsx(T6,{exampleScheme:A,onSelectExample:function(){D(de),k(!0)},onSelectSchema:function(){D(fe),k(!0)}}),T=o.jsx(hN,{options:M,btnClassName:"dss-br-8 dss-py-1",ddPositionClassName:"bg-L1 catalog-dd-max-h zIndex-12",optionClassName:"color-primary fs-11px fw-400 dss-p-8 font-dm-sans",styles:{minWidth:X(110)},caretClassName:"color-text-inverse",hideArrowIcon:!0,children:o.jsxs("div",{className:"flex-rows vt-center dss-gap-6 w-100",children:[o.jsx("div",{className:Qy("color-primary ref-ui-12 fw-400 font-dm-sans w-80 text-truncate-1"),title:h,children:h}),o.jsx("div",{className:"flex-rows vt-center hz-flex-end w-20",children:o.jsx(cw,{weight:"fill",size:c.md,className:"color-secondary"})})]})}),P=o.jsx("div",{"aria-hidden":!0,onClick:function(){return k(function(e){return!e})},className:"ref-schema-toolbar-collapse",children:o.jsx("span",{className:"ref-schema-toolbar-collapse__icon",children:o.jsx(Bw,{size:c.md,className:"color-04"})})});return o.jsxs("div",{className:"ref-section-block",children:[o.jsx("div",{className:"ref-section-header border-bottom-secondary-1px",children:o.jsxs("div",{className:"ref-section-header-title-row",children:[o.jsx("span",{className:"ref-section-header__icon",children:o.jsx(zw,{size:c.section,className:"color-00",weight:"duotone"})}),o.jsx("div",{className:"ref-section-heading color-primary",children:"Request Body"})]})}),o.jsx("div",{className:"ref-schema-card bg-ground border-secondary-1px dss-mt-20",children:A===fe?o.jsxs("div",{className:"ref-schema-layout br-tr-8px br-tl-8px border-bottom-secondary-1px",children:[o.jsxs("div",{className:"ref-schema-top-toolbar border-bottom-secondary-1px w-100",children:[o.jsx("div",{className:"ref-schema-left-title-tab dss-p-8 border-right-secondary-1px",children:o.jsxs("span",{className:"ref-schema-sidebar-header__icon dss-gap-6 flex-rows vt-center",children:[o.jsx(Kw,{size:c.sm,className:"color-04"}),T]})}),o.jsxs("div",{className:"ref-schema-top-toolbar__left",children:[P,j]})]}),o.jsxs("div",{className:"ref-schema-body",children:[E&&o.jsx("div",{className:"ref-schema-sidebar ref-schema-sidebar--desktop border-right-secondary-1px",children:o.jsx("div",{className:"ref-schema-sidebar-tree noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:N})})}),o.jsxs("div",{className:Qy("ref-schema-main-panel",!E&&"ref-schema-main-panel--full"),children:[w.length>0&&o.jsx("div",{className:"ref-schema-breadcrumbs-row bg-ground border-bottom-secondary-1px",children:o.jsxs("div",{className:"ref-schema-breadcrumbs flex-rows vt-center noscrollbar",children:[o.jsx("div",{className:"flex-center flex-shrink-0",children:o.jsx(iw,{className:"color-04",size:c.md})}),w.map(function(e,t){return o.jsxs("div",{className:"flex-rows vt-center dss-gap-4 flex-shrink-0",children:[t>0&&o.jsx(lw,{size:c.xs,className:"color-04"}),o.jsx("div",{className:"ref-ui-12 fw-500 color-secondary",children:e.name})]},e.traversePath)})]})}),E&&o.jsx("div",{className:"ref-schema-sidebar-tree--drawer noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:N})}),o.jsx("div",{className:"ref-schema-detail bg-step-up",children:y&&o.jsx(iX,{activeViewType:a,FROM:s,showEmptyFallback:a===e3.VIEW,rootElement:!0,setSelectedBodyObject:C,traverse:null==y?void 0:y.uiData.traversePath,param:y,order:0},(null==y||null===(i=y.uiData)||void 0===i?void 0:i.keyId)||"")})]})]})]}):o.jsxs("div",{className:"ref-schema-layout br-tr-8px br-tl-8px border-bottom-secondary-1px",children:[o.jsxs("div",{className:"ref-schema-top-toolbar border-bottom-secondary-1px w-100",children:[o.jsx("div",{className:"ref-schema-left-title-tab dss-p-8 border-right-secondary-1px",children:o.jsxs("span",{className:"ref-schema-sidebar-header__icon dss-gap-6 flex-rows vt-center",children:[o.jsx(Kw,{size:c.sm,className:"color-04"}),T]})}),o.jsxs("div",{className:"ref-schema-top-toolbar__left",children:[P,j]})]}),o.jsxs("div",{className:"ref-schema-body",children:[E&&o.jsx("div",{className:"ref-schema-sidebar ref-schema-sidebar--desktop border-right-secondary-1px",children:o.jsx("div",{className:"ref-schema-sidebar-tree noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:N})})}),o.jsxs("div",{className:Qy("ref-schema-main-panel",!E&&"ref-schema-main-panel--full"),children:[E&&o.jsx("div",{className:"ref-schema-sidebar-tree--drawer noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:N})}),o.jsx("div",{className:"ref-schema-example-body color-02 bg-L3 dss-p-20",children:o.jsx(P6,{example:m,isDarkMode:p,emptyMessage:"No example provided for this request body"})})]})]})]})})]})}var R6=function(e){if(!e)return null;var t=e.uiData&&e.uiData.name||"",n=Array.isArray(e.properties)&&1===e.properties.length?e.properties[0]:null;return!t&&n&&n.uiData&&n.uiData.type===ee.OBJECT?n:e},L6=function(n){var r,i,a,s,c,l=n.activeViewType,u=n.FROM,p=Wy(),d=t.useSelector(function(e){return e.apiReference.selected.responses},zy),f=t.useSelector(function(e){var t;return null===(t=e.apiReference.selected.operation)||void 0===t?void 0:t.keyId},zy),h=t.useSelector(function(e){return e.libConfig.isDarkMode},zy),m=e.useMemo(function(){return!!d.filter(function(e){return e.name}).length},[d]),g=Ce(e.useState(null),2),y=g[0],v=g[1],b=Ce(e.useState(null),2),w=b[0],x=b[1],_=Ce(e.useState([]),2),E=_[0],k=_[1],O=Ce(e.useState(!0),2),A=O[0],D=O[1],M=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),C=Ce(e.useState(!M),2),S=C[0],N=C[1],j=Ce(e.useState(fe),2),T=j[0],P=j[1],I=e.useMemo(function(){return(d||[]).map(function(e){return{onClick:function(){return x(t=e),void R(R6(null==t?void 0:t.schema),t);var t},element:o.jsxs("div",{className:Qy("ref-ui-12 color-02 fw-400"),children:[(null==e?void 0:e.name)||"-",null!=e&&e.exampleSummary?o.jsxs("span",{className:"color-tertiary",children:[" · ",e.exampleSummary]}):null]})}})},[d]),R=function(e,t){var n,r;if(e){var o=e.uiData&&e.uiData.traversePath||"",i=[],a=t||w,s=null!==(n=null==a?void 0:a.responseIndex)&&void 0!==n?n:0,c=R6((null==a?void 0:a.schema)||(null===(r=d[s])||void 0===r?void 0:r.schema)),l=c&&c.uiData&&c.uiData.traversePath||"response".concat(G).concat(s).concat(G,"schema"),u=o.startsWith("".concat(l).concat(G))?o.slice("".concat(l).concat(G).length):"";if(u)for(var p=u.split(G),f=c,h=l,m=0;m+1<p.length;m+=2){var g,y=p[m],b=Number(p[m+1]);h="".concat(h).concat(G).concat(y).concat(G).concat(b),"properties"===y&&null!==(g=f)&&void 0!==g&&g.properties&&f.properties[b]&&(f=f.properties[b],i.push({name:f.uiData&&f.uiData.name||"",traversePath:h}))}k(i),v(e)}};e.useEffect(function(){m&&d[0]&&!w&&(x(d[0]),R(R6(d[0].schema),d[0]))},[m,d,w]),e.useEffect(function(){f&&m&&d[0]&&(x(d[0]),R(R6(d[0].schema),d[0]))},[f]);var L=e.useMemo(function(){var e;if(!w)return null;var t=null!==(e=w.responseIndex)&&void 0!==e?e:0;return d[t]||w},[d,w]),F=e.useMemo(function(){return R6(null==L?void 0:L.schema)},[null==L?void 0:L.schema]),H=e.useMemo(function(){var e;return F?F.uiData&&F.uiData.traversePath||"response".concat(G).concat(null!==(e=null==L?void 0:L.responseIndex)&&void 0!==e?e:0).concat(G,"schema"):""},[F,L]),$=e.useMemo(function(){var e;return y&&F&&null!==(e=y.uiData)&&void 0!==e&&e.traversePath&&Fg(F,y.uiData.traversePath,H)||y},[y,F,H]);e.useEffect(function(){var e,t,n;if(null!=y&&null!==(e=y.uiData)&&void 0!==e&&e.traversePath&&F){var r=Fg(F,y.uiData.traversePath,H);!r||null!==(t=y.uiData)&&void 0!==t&&t.keyId&&(null===(n=r.uiData)||void 0===n?void 0:n.keyId)!==y.uiData.keyId?R(F,L):r!==y&&v(r)}},[F,null==y||null===(r=y.uiData)||void 0===r?void 0:r.traversePath,H]);var B=F?o.jsx(NN,{node:F,depth:0,selectedBodyObject:$||y,setSelectedBodyObject:function(e){return R(e,L)}}):o.jsx("div",{className:"dss-p-8 ref-ui-12 color-secondary",children:"No schema"}),q=(null==L||null===(i=L.headerParams)||void 0===i?void 0:i.properties)||[],U=q.length?o.jsxs("div",{className:"ref-schema-headers-group",children:[o.jsxs("div",{"aria-hidden":!0,onClick:function(){return D(function(e){return!e})},className:"ref-schema-tree-node cursor hover-bg-gray-l2",style:{"--ref-tree-indent":"calc(8px * var(--ui-scale))"},children:[o.jsx("span",{className:"ref-schema-tree-node__icon cursor",children:A?o.jsx(cw,{size:p.sm,className:"color-04"}):o.jsx(lw,{size:p.sm,className:"color-04"})}),o.jsx("div",{className:"ref-tree-label color-tertiary text-truncate",children:"Response Headers"})]}),A&&q.map(function(e,t){var n,r=e.uiData||{},i=(null==y||null===(n=y.uiData)||void 0===n?void 0:n.keyId)&&r.keyId===y.uiData.keyId;return o.jsxs("div",{"aria-hidden":!0,onClick:function(){return R(e,L)},className:Qy("ref-schema-tree-node cursor hover-bg-gray-l2",i&&"ref-schema-tree-node--selected bg-gray-l2"),style:{"--ref-tree-indent":"calc(22px * var(--ui-scale))"},children:[o.jsx("span",{className:"ref-schema-tree-node__icon",children:SN(r.type,p.sm,r.renderType,r.itemType)}),o.jsx("div",{className:"ref-tree-label color-tertiary text-truncate",children:r.name||e.name||""})]},r.keyId||t)})]}):null,z=o.jsxs(o.Fragment,{children:[U,B]}),V=o.jsx(T6,{exampleScheme:T,onSelectExample:function(){P(de),N(!0)},onSelectSchema:function(){P(fe),N(!0)}}),W=o.jsx(hN,{options:I,hideArrowIcon:!0,btnClassName:"dss-br-8 dss-px-8",ddPositionClassName:"bg-L1 catalog-dd-max-h zIndex-12",optionClassName:"color-primary fs-11px fw-400 dss-p-8 font-dm-sans",styles:{minWidth:X(110)},caretClassName:"color-text-inverse",children:o.jsxs("div",{className:"ref-schema-status-trigger",children:[w&&o.jsx(pX,{name:w.name,textProps:{color:"color-primary",fontSize:"fs-12px",fontWeight:"fw-600",classNames:"ref-schema-status-label font-dm-sans "}}),o.jsx("span",{className:"ref-schema-status-caret","aria-hidden":!0,children:o.jsx(cw,{size:p.md,className:"color-secondary",weight:"fill"})})]})}),Z=o.jsx("div",{"aria-hidden":!0,onClick:function(){return N(function(e){return!e})},className:"ref-schema-toolbar-collapse",children:o.jsx("span",{className:"ref-schema-toolbar-collapse__icon",children:o.jsx(Bw,{size:p.md,className:"color-04"})})});return m?o.jsxs("div",{className:"ref-section-block",children:[o.jsx("div",{className:"ref-section-header border-bottom-secondary-1px",children:o.jsxs("div",{className:"ref-section-header-title-row",children:[o.jsx("span",{className:"ref-section-header__icon",children:o.jsx(Rw,{size:p.section,className:"color-00",weight:"duotone"})}),o.jsx("div",{className:"ref-section-heading color-primary",children:"Response"})]})}),o.jsx("div",{className:"ref-schema-card bg-ground border-secondary-1px dss-mt-20",children:T===fe?o.jsxs("div",{className:"ref-schema-layout br-tr-8px br-tl-8px border-bottom-secondary-1px",children:[o.jsxs("div",{className:"ref-schema-top-toolbar border-bottom-secondary-1px w-100",children:[o.jsx("div",{className:"ref-schema-left-title-tab dss-p-8 border-right-secondary-1px",children:o.jsxs("span",{className:"ref-schema-sidebar-header__icon dss-gap-6 flex-rows vt-center",children:[o.jsx(Kw,{size:p.sm,className:"color-04"}),W]})}),o.jsxs("div",{className:"ref-schema-top-toolbar__left",children:[Z,V]})]}),o.jsxs("div",{className:"ref-schema-body",children:[S&&o.jsx("div",{className:"ref-schema-sidebar ref-schema-sidebar--desktop border-right-secondary-1px",children:o.jsx("div",{className:"ref-schema-sidebar-tree noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:z})})}),o.jsxs("div",{className:Qy("ref-schema-main-panel",!S&&"ref-schema-main-panel--full"),children:[E.length>0&&o.jsx("div",{className:"ref-schema-breadcrumbs-row bg-ground border-bottom-secondary-1px",children:o.jsxs("div",{className:"ref-schema-breadcrumbs flex-rows vt-center noscrollbar",children:[o.jsx("div",{className:"flex-center flex-shrink-0",children:o.jsx(iw,{className:"color-04",size:p.md})}),E.map(function(e,t){return o.jsxs("div",{className:"flex-rows vt-center dss-gap-4 flex-shrink-0",children:[t>0&&o.jsx(lw,{size:p.xs,className:"color-04"}),o.jsx("div",{"aria-hidden":!0,onClick:function(){return function(e){if(F){var t=Fg(F,e.traversePath,H);t&&R(t,L)}}(e)},className:"ref-ui-12 fw-500 color-secondary cursor",children:e.name})]},e.traversePath)})]})}),S&&o.jsx("div",{className:"ref-schema-sidebar-tree--drawer noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:z})}),o.jsx("div",{className:"ref-schema-detail bg-step-up",children:$&&o.jsx(iX,{activeViewType:l,FROM:u,showEmptyFallback:!0,rootElement:!0,setSelectedBodyObject:function(e){return R(e,L)},traverse:null==$||null===(c=$.uiData)||void 0===c?void 0:c.traversePath,param:$,order:0},(null==$||null===(a=$.uiData)||void 0===a?void 0:a.traversePath)||(null==$||null===(s=$.uiData)||void 0===s?void 0:s.keyId)||"response-detail")})]})]})]}):o.jsxs("div",{className:"ref-schema-layout br-tr-8px br-tl-8px border-bottom-secondary-1px",children:[o.jsxs("div",{className:"ref-schema-top-toolbar border-bottom-secondary-1px w-100",children:[o.jsx("div",{className:"ref-schema-left-title-tab dss-p-8 border-right-secondary-1px",children:o.jsxs("span",{className:"ref-schema-sidebar-header__icon dss-gap-6 flex-rows vt-center",children:[o.jsx(Kw,{size:p.sm,className:"color-04"}),W]})}),o.jsxs("div",{className:"ref-schema-top-toolbar__left",children:[Z,V]})]}),o.jsxs("div",{className:"ref-schema-body",children:[S&&o.jsx("div",{className:"ref-schema-sidebar ref-schema-sidebar--desktop border-right-secondary-1px",children:o.jsx("div",{className:"ref-schema-sidebar-tree noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:z})})}),o.jsxs("div",{className:Qy("ref-schema-main-panel",!S&&"ref-schema-main-panel--full"),children:[S&&o.jsx("div",{className:"ref-schema-sidebar-tree--drawer noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:z})}),o.jsx("div",{className:"ref-schema-example-body color-02 dss-p-20 bg-L3",children:o.jsx(P6,{example:null==L?void 0:L.example,isDarkMode:h,emptyMessage:"No example provided for this response"})})]})]})]})})]}):null};function F6(e){if(!e||e.constructor!==Object)return e;if(Array.isArray(e.allOf)){var t={type:e.type||"object",properties:{}};Object.keys(e).forEach(function(n){"allOf"!==n&&"properties"!==n&&(t[n]=e[n])}),e.properties&&e.properties.constructor===Object&&Object.assign(t.properties,e.properties),e.allOf.forEach(function(e){var n=F6(e),r=n&&n.properties;r&&r.constructor===Object&&Object.keys(r).forEach(function(e){e.startsWith("__")||(t.properties[e]=r[e])})}),e=t}return e.properties&&e.properties.constructor===Object&&Object.keys(e.properties).forEach(function(t){t.startsWith("__")||(e.properties[t]=F6(e.properties[t]))}),e.items&&(e.items=F6(e.items)),e}function H6(e,t){e&&(e.uiData&&(e.uiData.traversePath=t),Array.isArray(e.properties)&&e.properties.length&&e.properties.forEach(function(e,n){H6(e,"".concat(t).concat(G,"properties").concat(G).concat(n))}))}function $6(){var n,r=Wy(),i=t.useSelector(function(e){return e.apiReference.selected.swagger},zy),a=t.useSelector(function(e){return e.libConfig.isDarkMode},zy),s=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),c=e.useMemo(function(){var e=i&&i.source,t=function(e){return e?e.components&&e.components.schemas&&Object.keys(e.components.schemas).length?e.components.schemas:e.definitions&&Object.keys(e.definitions).length?e.definitions:null:null}(e);return t?Object.keys(t).map(function(n,r){var o=null;try{var i=F6(Fa({swagger:e,value:ye(t[n])}));(o=Cg.schemaConversionForUi(i,n))&&Sg(o),o&&H6(o,"schemas".concat(G).concat(r).concat(G,"schema"))}catch(e){o=null}var a=null;try{a=Ua({swagger:e,value:Fa({swagger:e,value:ye(t[n])}),type:"json"})}catch(e){a=null}if(null==a){var s=t[n]&&t[n].examples;if(Array.isArray(s)&&s.length)a=Ce(s,1)[0];else t[n]&&void 0!==t[n].example&&(a=t[n].example)}return{name:n,converted:o,example:a}}).filter(function(e){return e.converted&&e.converted.uiData}):[]},[i]),l=Ce(e.useState(null),2),u=l[0],p=l[1],d=Ce(e.useState(null),2),f=d[0],h=d[1],m=Ce(e.useState([]),2),g=m[0],y=m[1],v=Ce(e.useState(!s),2),b=v[0],w=v[1],x=Ce(e.useState(fe),2),_=x[0],E=x[1],k=function(e,t){if(e){var n=t||u&&u.converted,r=n&&n.uiData&&n.uiData.traversePath,o=e.uiData&&e.uiData.traversePath||"",i=[];if(n&&r&&o.startsWith("".concat(r).concat(G)))for(var a=o.slice("".concat(r).concat(G).length).split(G),s=n,c=r,l=0;l+1<a.length;l+=2){var p=a[l],d=Number(a[l+1]);c="".concat(c).concat(G).concat(p).concat(G).concat(d),"properties"===p&&s.properties&&s.properties[d]&&(s=s.properties[d],i.push({name:s.uiData&&s.uiData.name||"",traversePath:c}))}y(i),h(e)}},O=function(e){e&&(p(e),k(e.converted,e.converted))};e.useEffect(function(){c.length?O(c[0]):(p(null),h(null),y([]))},[c]);var A=e.useMemo(function(){return c.map(function(e){return{onClick:function(){return O(e)},element:o.jsx("div",{className:Qy("ref-ui-12 color-02 fw-400"),children:e.name})}})},[c]);if(!c.length||!u)return null;var D=u.converted,M=D?o.jsx(NN,{node:D,depth:0,selectedBodyObject:f,setSelectedBodyObject:function(e){return k(e,D)}}):o.jsx("div",{className:"dss-p-8 ref-ui-12 color-secondary",children:"No schema"}),C=o.jsx(T6,{exampleScheme:_,onSelectExample:function(){E(de),w(!0)},onSelectSchema:function(){E(fe),w(!0)}}),S=o.jsx(hN,{options:A,hideArrowIcon:!0,btnClassName:"dss-br-8 dss-px-8",ddPositionClassName:"bg-L1 catalog-dd-max-h zIndex-12",optionClassName:"color-primary fs-11px fw-400 dss-p-8 font-dm-sans",styles:{minWidth:X(110)},caretClassName:"color-text-inverse",children:o.jsxs("div",{className:"ref-schema-status-trigger",children:[o.jsx("div",{className:Qy("color-primary fs-12px fw-600 ref-schema-status-label text-truncate-1 font-dm-sans "),children:u.name}),o.jsx("span",{className:"ref-schema-status-caret","aria-hidden":!0,children:o.jsx(cw,{size:r.md,className:"color-secondary",weight:"fill"})})]})}),N=o.jsx("div",{"aria-hidden":!0,onClick:function(){return w(function(e){return!e})},className:"ref-schema-toolbar-collapse",children:o.jsx("span",{className:"ref-schema-toolbar-collapse__icon",children:o.jsx(Bw,{size:r.md,className:"color-04"})})});return o.jsxs("div",{className:"ref-section-block",children:[o.jsxs("div",{className:"ref-section-header border-bottom-secondary-1px",children:[o.jsxs("div",{className:"ref-section-header-title-row",children:[o.jsx("span",{className:"ref-section-header__icon",children:o.jsx(aw,{size:r.section,className:"color-00",weight:"duotone"})}),o.jsx("div",{className:"ref-section-heading color-primary",children:"Schemas"})]}),o.jsx("p",{className:"ref-section-subtext color-tertiary",children:"Reusable data models defined in this specification"})]}),o.jsx("div",{className:"ref-schema-card bg-ground border-secondary-1px dss-mt-20",children:_===fe?o.jsxs("div",{className:"ref-schema-layout br-tr-8px br-tl-8px border-bottom-secondary-1px",children:[o.jsxs("div",{className:"ref-schema-top-toolbar border-bottom-secondary-1px w-100",children:[o.jsx("div",{className:"ref-schema-left-title-tab dss-p-8 border-right-secondary-1px",children:o.jsxs("span",{className:"ref-schema-sidebar-header__icon dss-gap-6 flex-rows vt-center",children:[o.jsx(Kw,{size:r.sm,className:"color-04"}),S]})}),o.jsxs("div",{className:"ref-schema-top-toolbar__left",children:[N,C]})]}),o.jsxs("div",{className:"ref-schema-body",children:[b&&o.jsx("div",{className:"ref-schema-sidebar ref-schema-sidebar--desktop border-right-secondary-1px",children:o.jsx("div",{className:"ref-schema-sidebar-tree noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:M})})}),o.jsxs("div",{className:Qy("ref-schema-main-panel",!b&&"ref-schema-main-panel--full"),children:[g.length>0&&o.jsx("div",{className:"ref-schema-breadcrumbs-row bg-ground border-bottom-secondary-1px",children:o.jsxs("div",{className:"ref-schema-breadcrumbs flex-rows vt-center noscrollbar",children:[o.jsx("div",{className:"flex-center flex-shrink-0",children:o.jsx(iw,{className:"color-04",size:r.md})}),g.map(function(e,t){return o.jsxs("div",{className:"flex-rows vt-center dss-gap-4 flex-shrink-0",children:[t>0&&o.jsx(lw,{size:r.xs,className:"color-04"}),o.jsx("div",{className:"ref-ui-12 fw-500 color-secondary",children:e.name})]},e.traversePath)})]})}),b&&o.jsx("div",{className:"ref-schema-sidebar-tree--drawer noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:M})}),o.jsx("div",{className:"ref-schema-detail bg-step-up",children:f&&o.jsx(iX,{activeViewType:e3.VIEW,showEmptyFallback:!0,rootElement:!0,setSelectedBodyObject:function(e){return k(e,D)},traverse:null==f?void 0:f.uiData.traversePath,param:f,order:0},(null==f||null===(n=f.uiData)||void 0===n?void 0:n.keyId)||"")})]})]})]}):o.jsxs("div",{className:"ref-schema-layout br-tr-8px br-tl-8px border-bottom-secondary-1px",children:[o.jsxs("div",{className:"ref-schema-top-toolbar border-bottom-secondary-1px w-100",children:[o.jsx("div",{className:"ref-schema-left-title-tab dss-p-8 border-right-secondary-1px",children:o.jsxs("span",{className:"ref-schema-sidebar-header__icon dss-gap-6 flex-rows vt-center",children:[o.jsx(Kw,{size:r.sm,className:"color-04"}),S]})}),o.jsxs("div",{className:"ref-schema-top-toolbar__left",children:[N,C]})]}),o.jsxs("div",{className:"ref-schema-body",children:[b&&o.jsx("div",{className:"ref-schema-sidebar ref-schema-sidebar--desktop border-right-secondary-1px",children:o.jsx("div",{className:"ref-schema-sidebar-tree noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:M})})}),o.jsxs("div",{className:Qy("ref-schema-main-panel",!b&&"ref-schema-main-panel--full"),children:[b&&o.jsx("div",{className:"ref-schema-sidebar-tree--drawer noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:M})}),o.jsx("div",{className:"ref-schema-example-body color-02 bg-L3 dss-p-20",children:o.jsx(P6,{example:u.example,isDarkMode:a,emptyMessage:"No example available for this schema"})})]})]})]})})]})}var B6=p.default.memo($6),q6=[{key:"pathParams",label:"Path Parameters",icon:qw,description:"Variables in the URL path identifying specific resources."},{key:"queryParams",label:"Query Parameters",icon:Sw,description:"Query string parameters appended to the request URL."},{key:"headerParams",label:"Header Parameters",icon:gw,description:"HTTP headers sent with the request."},{key:"cookieParams",label:"Cookie Parameters",icon:yw,description:"Cookies sent with the request."},{key:"formParams",label:"Form Parameters",icon:iw,description:"Form fields sent as application/x-www-form-urlencoded or multipart data."}],U6="yaml",z6="json";function V6(e,t){if(null==e||!e.source)return"";try{return t===z6?_e(e.source):vd(e.source)||_e(e.source)}catch(e){return console.error("getOASContent err:",e),""}}function W6(e){return Z6.apply(this,arguments)}function Z6(){return Z6=Ae(ct.mark(function e(t){var n,r=arguments;return ct.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=V6(t,r.length>1&&void 0!==r[1]?r[1]:z6)){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,navigator.clipboard.writeText(n);case 2:case"end":return e.stop()}},e)})),Z6.apply(this,arguments)}function Y6(e){if(null!=e&&e.source){var t=new k6;t.file("".concat(e.name,".json"),_e(e.source)),t.file("".concat(e.name,".yaml"),vd(e.source)),t.generateAsync({type:"blob"}).then(function(t){bd({blob:t,filename:e.name,ext:"zip"})}).catch(function(e){console.error("downloadOAS err:",e)})}}var G6=[{keyId:U6,label:"YAML"},{keyId:z6,label:"JSON"}];function Q6(n){var r,i=n.isMobile,a=void 0!==i&&i,s=t.useSelector(function(e){return e.apiReference.selected.swagger},zy),c=t.useSelector(function(e){return e.libConfig.isDarkMode},zy),l=Wy(),u=Ce(e.useState(U6),2),p=u[0],d=u[1],f=Ce(e.useState(!1),2),h=f[0],m=f[1],g=e.useRef(null),y=Ce(e.useState(600),2),v=y[0],b=y[1];e.useEffect(function(){var e=g.current;if(e){var t=function(){b(Math.max(e.getBoundingClientRect().height,200))},n=new ResizeObserver(function(){t()});return n.observe(e),t(),function(){return n.disconnect()}}},[]);var w=e.useMemo(function(){return V6(s,p)},[s,p]),x=p===z6?"json":"yaml",_=c?"theme-oas":"theme-oas-light",E=e.useMemo(function(){return G6.map(function(e){return{keyId:e.keyId,onClick:function(){return d(e.keyId)},element:o.jsx("span",{className:"color-primary fs-11px fw-400",children:e.label})}})},[]),k=e.useCallback(Ae(ct.mark(function e(){return ct.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!h&&s){e.next=1;break}return e.abrupt("return");case 1:return e.next=2,W6(s,p);case 2:m(!0),setTimeout(function(){return m(!1)},500);case 3:case"end":return e.stop()}},e)})),[s,p,h]),O=e.useCallback(function(){Y6(s)},[s]);return s?o.jsx("div",{className:Qy("ref-right-panel-tryout","ref-oas-panel","flex-col h-100 position-relative",a&&"ref-oas-panel--mobile"),children:o.jsx("div",{className:"ref-tryout-root",children:o.jsx("div",{className:"ref-tryout-panel ref-oas-tryout-panel",children:o.jsxs("div",{className:"ref-tryout-section flex-col dss-br-10 border-gray-primary-1px border-secondary-1px",children:[o.jsxs("div",{className:Qy("ref-tryout-section__header","flex-rows vt-center hz-space-between br-t-10px bg-try-out"),children:[o.jsx("p",{className:"color-text-inverse fs-12px fw-600 dss-my-0",children:"OAS"}),o.jsxs("div",{className:"ref-oas-panel__header-actions",children:[o.jsx(hN,{options:E,btnClassName:"dss-br-8 dss-px-8 dss-py-4",ddPositionClassName:"bg-L1 overflow-y catalog-dd-max-h zIndex-12",optionClassName:"color-primary fs-11px fw-400 dss-p-8",styles:{minWidth:X(80)},caretClassName:"color-text-inverse",children:o.jsx("div",{className:"color-text-inverse fs-12px fw-400",children:(null===(r=G6.find(function(e){return e.keyId===p}))||void 0===r?void 0:r.label)||"YAML"})}),o.jsx(uN,{placement:"top",tooltipOffset:8,tooltipProps:{className:"text-nowrap"},tooltipEl:o.jsx("div",{className:"fs-11px fw-500",children:h?"Copied":"Copy"}),children:o.jsx("div",{"aria-hidden":!0,onClick:k,className:"dss-p-6 color-text-inverse cursor flex-center",children:h?o.jsx(dw,{size:l.base}):o.jsx(vw,{size:l.base})})}),o.jsx(uN,{placement:"top",tooltipOffset:8,tooltipProps:{className:"text-nowrap"},tooltipEl:o.jsx("div",{className:"fs-11px fw-500",children:"Download"}),children:o.jsx("div",{"aria-hidden":!0,onClick:O,className:"dss-p-6 color-text-inverse cursor flex-center",children:o.jsx(ww,{size:l.base})})})]})]}),o.jsx("div",{className:Qy("ref-tryout-section__body","ref-oas-panel__body","br-b-8px"),ref:g,children:o.jsx("div",{className:"ref-oas-editor",children:o.jsx(M_,{width:"100%",height:v,language:x,theme:_,useOasTheme:!0,value:w,autoGrow:!1,options:{readOnly:!0,lineNumbers:"on",lineDecorationsWidth:0,scrollBeyondLastLine:!1,minimap:{enabled:!1},wordWrap:"off",scrollbar:{vertical:"auto",horizontal:"auto"}}},p)})})]})})})}):null}function K6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function X6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K6(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var J6=p.default.memo(function(e){var t=e.label;e.infoMessage;var n=e.textProps,r=e.setExampleScheme,i=e.exampleScheme,a=e.examples;return o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-12 hz-space-between","Response Body"===t?i===de?"dss-pb-12":"dss-pb-0":"Host"===t?"dss-mt-12 dss-mb-8":"Responses"===t?"dss-mt-24 dss-mb-16":"dss-mt-24"),children:[o.jsx("div",{className:Qy("flex-rows vt-center dss-gap-12"),children:o.jsx("div",{className:Qy(n.className||""),children:t})}),a&&o.jsx(T6,{exampleScheme:i,onSelectExample:function(){return r(de)},onSelectSchema:function(){return r(fe)}})]})});J6.propTypes={label:tb.string.isRequired,infoMessage:tb.string,textProps:tb.shape({className:tb.string}),examples:tb.bool,setExampleScheme:tb.func.isRequired,exampleScheme:tb.string},J6.defaultProps={infoMessage:"",textProps:{className:"ref-section-heading color-secondary"},examples:!1,exampleScheme:"Example"};var e3={VIEW:"VIEW",TRYOUT:"TRYOUT",OAS:"OAS"},t3=E(E(E({},e3.VIEW,"View"),e3.TRYOUT,"Tryout"),e3.OAS,"OAS");function n3(n){var r,i=n.bottomBar,a=n.RightPanel,s=n.RightSidenav,c=n.FROM,l=n.isLoggedIn,u=n.showOAS,d=void 0!==u&&u,f=n.hideRightPanel,h=void 0!==f&&f,m=n.disableTryout,g=void 0!==m&&m,y=e.useCallback(function(){return g?d?e3.OAS:e3.VIEW:d?e3.TRYOUT:e3.VIEW},[g,d]),v=Ce(e.useState(y),2),b=v[0],w=v[1];e.useEffect(function(){w(y())},[y]);var x=t.useSelector(function(e){return e.apiReference.selected.operation},zy),_=t.useSelector(function(e){return e.apiReference.selected.swagger},zy),E=t.useSelector(function(e){return e.apiReference.selected.loading},zy),k=t.useSelector(function(e){return e.apiReference.selected.headerParams},zy),O=t.useSelector(function(e){return e.apiReference.selected.pathParams},zy),A=t.useSelector(function(e){return e.apiReference.selected.queryParams},zy),D=t.useSelector(function(e){return e.apiReference.selected.cookieParams},zy),M=t.useSelector(function(e){return e.apiReference.selected.formParams},zy),C=t.useSelector(function(e){return e.libConfig.currentPKG},zy),S=t.useSelector(function(e){return e.graphql.view},zy),N=t.useSelector(function(e){return e.apiReference.rightSidenavExpanded},zy);t.useSelector(function(e){return e.apiReference.selected.request},zy);var j=t.useSelector(function(e){return e.apiReference.selected.request.schema},zy),T=t.useSelector(function(e){return e.apiReference.selected.responses},zy),P=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),I=t.useSelector(function(e){return e.libConfig.isLargeDevice},zy),R=t.useSelector(function(e){return e.libConfig.screenSize},zy),L=e.useMemo(function(){return P?"ref-layout--mobile":"tablet-device"===R?"ref-layout--tablet":"ref-layout--desktop"},[P,R]),F=Wy(),H=Ce(e.useState(null),2),$=H[0],B=H[1],z=Ce(e.useState(!1),2);z[0],z[1],e.useMemo(function(){return o.jsx(vw,{size:F.base})},[F.base]),e.useMemo(function(){return o.jsx(dw,{size:F.base})},[F.base]),e.useMemo(function(){return o.jsx(bw,{size:F.base})},[F.base]);var V=Ce(Ny(),1)[0],W=Ce(e.useState([]),2),Z=W[0],Y=W[1],Q=Ce(e.useState(!1),2),K=Q[0];Q[1];var J=e.useRef(null),ee=Ce(e.useState(!1),2),te=ee[0],ne=ee[1],re=e.useCallback(function(){var e=J.current;e&&ne(e.scrollTop>0)},[]),oe=e.useMemo(function(){return{pathParams:O,queryParams:A,headerParams:k,formParams:M,cookieParams:D}},[k,O,A,M,D]),ie=e.useMemo(function(){return!!T.filter(function(e){return e.name}).length},[T]),ae=!h&&(!g||d),se=!g&&!d,le=!g&&d,ue=g&&d,pe=se||le,de=e.useMemo(function(){return le?[e3.TRYOUT,e3.OAS]:se?[e3.VIEW,e3.TRYOUT]:[]},[le,se]),fe=e.useMemo(function(){return g||d&&b===e3.OAS||b===e3.OAS?e3.VIEW:b},[g,d,b]),he=e.useMemo(function(){return fe===e3.VIEW},[fe]),me=d&&b===e3.OAS||ue,ge=e.useMemo(function(){return i&&p.default.isValidElement(i)?i:null},[i]);e.useEffect(function(){var e=document.getElementById("center-content-lg"),t=document.getElementById("right-panel-lg"),n=document.getElementById("body-layout-sm");e&&e.scrollTo({behavior:"smooth",top:0}),t&&t.scrollTo({behavior:"smooth",top:0}),n&&n.scrollTo({behavior:"smooth",top:0}),J.current&&(J.current.scrollTop=0,ne(!1))},[x]),e.useEffect(function(){var e=J.current;if(e&&!P)return re(),e.addEventListener("scroll",re,{passive:!0}),function(){return e.removeEventListener("scroll",re)}},[x,P,re]);var ye=function(){var e=Ae(ct.mark(function e(t){var n;return ct.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,V({swaggerId:t});case 1:(n=e.sent).error?console.error("Error:",n.error):Y(n.data);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),ve=e.useCallback(function(){if(C===q.WORKFLOWS)return null;if(C===q.GRAPHQL&&S===ce.EXPLORER)return null;if(a){var e=C===q.GUIDES?o.jsx("div",{style:{width:"30%"},id:"right-panel-lg",className:Qy("overflow-y noscrollbar h-100 w-100"),children:o.jsx(a,X6({},n))}):o.jsx("div",{id:"right-panel-lg",className:Qy("ref-right-panel","h-100 w-100"),children:o.jsx(a,X6({},n))});return K?N?e:o.jsx("div",{className:Qy("right-sidenav"),children:o.jsx(s,X6({},n))}):e}return null},[a,s,C,S,K,N]);if(e.useEffect(function(){_&&!E&&(null==n?void 0:n.moduleType)!==N6.EXTERNAL&&ye(_.swaggerId)},[_]),E)return o.jsx("div",{className:Qy("h-100 w-100"),children:o.jsx(E_,{size:"md",message:"Loading Document"})});if(!x)return o.jsx("div",{className:Qy("h-100 w-100 color-00 fs-14px flex-center"),children:o.jsx(JS,{message:"No Resource Selected"})});pd()&&(window.location.pathname.includes(U.OPEN_API)||n.moduleType);var be=function(e){if("Copy OAS"===e)W6(_).then(function(){B(!0),setTimeout(function(){return B(!1)},500)});else if("Open in ChatGPT"===e){var t="Read ".concat(window.location.href," and explain.");window.open("https://chatgpt.com/?q=".concat(encodeURIComponent(t)),"_blank")}else"Download OAS"===e&&_&&Y6(_)},we=[{keyId:"copy-oas",onClick:function(){return be("Copy OAS")},element:o.jsxs("div",{className:"flex-rows vt-center dss-gap-8",children:[$?o.jsx(dw,{size:F.base,className:"color-secondary"}):o.jsx(vw,{size:F.base,className:"color-secondary"}),o.jsx("span",{className:"color-secondary fs-12px fw-500",children:$?"Copied":"Copy OAS"})]})},{keyId:"download-oas",onClick:function(){return be("Download OAS")},element:o.jsxs("div",{className:"flex-rows vt-center dss-gap-8",children:[o.jsx(ww,{size:F.base,className:"color-secondary"}),o.jsx("span",{className:"color-secondary fs-12px fw-500",children:"Download OAS"})]})}];return o.jsx("div",{ref:P?null:J,className:Qy("reference-framer text-size-md flex-col overflow-y noscrollbar",L,he?"ref-mode-view":"ref-mode-tryout",d&&"ref-show-oas",!ae&&"ref-hide-right-panel",!P&&"ref-page-scroll h-100",te&&"ref-page-scrolled"),children:o.jsxs("div",{className:Qy("ref-page-inner flex-col w-100"),children:[o.jsxs("div",{className:Qy("ref-hero-block-top"),children:[o.jsx("div",{className:Qy("ref-breadcrumb-row w-100"),children:[_.name,x.swaggerVersion?"Version ".concat(x.swaggerVersion):"",x.api.summary||x.api.operationId||x.__listTitle].filter(function(e){return e}).map(function(e,t){return o.jsxs("div",{className:Qy("flex-rows vt-center max-w-50"),children:[o.jsx("p",{className:Qy("ref-breadcrumb color-tertiary text-truncate-1",0===t?"dss-pr-4":"dss-px-4"),title:e,children:e.toUpperCase()}),t<1&&o.jsx(lw,{size:F.sm,className:Qy("color-disabled")})]},"".concat(e,"-").concat(t))})}),o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-10 flex-wrap"),children:[o.jsx("div",{id:"center-title-bar",className:Qy("ref-title type-heading-title text-break color-primary"),children:x.summary||x.api.operationId||x.description||""}),!0===(null===(r=x.api)||void 0===r?void 0:r.deprecated)||!0===x.deprecated?o.jsxs("div",{className:Qy("ref-deprecated-chip"),title:"This operation is deprecated and may be removed in a future version.",children:[o.jsx(Xw,{size:F.sm,weight:"fill"}),o.jsx("span",{children:"Deprecated"})]}):null]}),x.api&&x.api.description?o.jsx(tC,{className:Qy("ref-description type-body-l color-tertiary reference-markdown"),remarkPlugins:[GS],children:x.api.description||""}):null,o.jsxs("div",{className:Qy("ref-hero-top-block-bottom"),children:[o.jsxs("div",{className:Qy("ref-hero-top-block-bottom-left"),children:[o.jsx(KS,{textProps:{className:"ref-http-method-badge"},text:x.apiMethod}),o.jsx("div",{className:Qy("ref-endpoint-path color-tertiary flex-fill text-break-all"),title:x.endpoint||"",children:o.jsx("p",{className:"dss-my-0",children:x.endpoint||""})}),!d&&o.jsx("div",{className:"ref-hero-actions",children:o.jsx(hN,{options:we,btnClassName:"",ddPositionClassName:"bg-ground zIndex-12 position-absolute catalog-dd-max-h overflow-y",optionClassName:"color-primary dss-p-8",styles:{minWidth:X(160)},caretClassName:"color-secondary",children:o.jsxs("div",{className:"flex-rows vt-center dss-gap-6",children:[o.jsx(Uw,{size:F.base,className:"color-tertiary"}),o.jsx("p",{className:"ref-hero-top-block-bottom-middle-text color-secondary",children:"Actions"})]})})})]}),pe&&o.jsx("div",{className:"ref-hero-top-block-bottom-right bg-L3 border-secondary-1px",children:de.map(function(e){return o.jsx("div",{className:"ref-view-toggle cursor flex-center color-primary ".concat(b===e?"bg-L1 border-secondary-1px":""),onClick:function(){return w(e)},children:t3[e]},e)})})]}),o.jsx("div",{className:"ref-hero-top-line bg-gray-l2"})]}),o.jsxs("div",{className:"ref-doc-container",children:[o.jsxs("div",{className:Qy("ref-doc-column flex-col min-w-0"),children:[o.jsxs("div",{className:"ref-host-card border-secondary-1px bg-ground",children:[o.jsxs("div",{className:"ref-host-card-header",children:[o.jsxs("div",{className:"ref-host-card-title-row",children:[o.jsx(xw,{size:F.xl,className:"color-00 flex-shrink-0",weight:"duotone"}),o.jsx("div",{className:"ref-host-heading color-primary",children:"Host"})]}),o.jsx("p",{className:"ref-section-subtext color-tertiary",children:"Select the host environment"})]}),o.jsx("div",{className:"ref-host-card-select bg-L1 border-secondary-1px",children:o.jsx(cN,{FROM:c,isLoggedIn:l})})]}),o.jsxs("div",{className:Qy("flex-col ref-doc-sections"),children:[q6.filter(function(e){var t=e.key;return oe[t]&&oe[t].properties&&oe[t].properties.length}).map(function(e){var t=e.key,n=e.label,r=e.icon,i=e.description;return o.jsxs("div",{className:"ref-section-block",children:[o.jsxs("div",{className:"ref-section-header border-bottom-secondary-1px",children:[o.jsxs("div",{className:"ref-section-header-title-row",children:[o.jsx(r,{size:F.section,className:"color-00 flex-shrink-0",weight:"duotone"}),o.jsx("p",{className:"ref-section-heading color-primary",children:n})]}),i?o.jsx("p",{className:"ref-section-subtext color-tertiary",children:i}):null]}),o.jsx(sX,{activeViewType:fe,properties:oe[t].properties,traverse:"".concat(t).concat(G,"properties"),showGap:!1})]},t)}),j?o.jsx(I6,{activeViewType:fe,FROM:c}):null,ie&&o.jsx(L6,{activeViewType:fe,FROM:c}),o.jsx(B6,{}),(null==n?void 0:n.moduleType)!==N6.EXTERNAL&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:Qy(I&&"dss-h-28",P&&"dss-h-8")}),Z&&Z.length>0&&o.jsx(D6,{swaggerGuides:Z}),o.jsx(yN,{})]}),ge,me&&P&&o.jsx(Q6,{isMobile:!0})]})]}),ae&&!P&&o.jsx("div",{className:Qy("ref-right-panel-tryout flex-col min-w-0",(d||ue)&&"h-100"),children:me?o.jsx("div",{id:"right-panel-lg",className:Qy("ref-right-panel","h-100 w-100"),children:o.jsx(Q6,{})}):ve(n)})]})]})})}var r3=["node"];function o3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o3(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a3(e){var t=(e.method||"").toUpperCase();return o.jsx("div",{className:Qy("apiMethod",t,"w-fit-content flex-center"),style:{color:"#fff",letterSpacing:"0.4px",lineHeight:"4px",flexShrink:0},children:o.jsx("span",{style:{fontSize:"10px",fontWeight:700},children:t})})}function s3(e){var t=e.path,n=e.method,r=e.summary,i=e.onClick;return o.jsxs("div",{className:Qy("dss-px-16 dss-py-12 dss-br-8 border-00-1px flex-col bg-L1 cursor","hover-bg-gray-l2"),style:{gap:4},onClick:i,children:[o.jsx("p",{className:"color-primary fs-14px fw-300 text-truncate-1 w-100",title:r,style:{lineHeight:"20px"},children:r||"—"}),o.jsxs("div",{className:"flex-rows vt-center",style:{gap:4},children:[o.jsx(a3,{method:n}),o.jsx("p",{className:"color-tertiary fs-12px fw-300 text-truncate-1 font-geist-mono",title:t,style:{lineHeight:"15px",letterSpacing:"0.32px"},children:t})]})]})}function c3(n){var r,i,a,s=n.onEndpointSelect,c=t.useSelector(function(e){return e.apiReference.selected.swagger},zy),l=t.useSelector(function(e){return e.apiReference.swaggers},zy),u=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),p=c||l&&l[0],d=e.useMemo(function(){var e;return null!==(e=null==p?void 0:p.info)&&void 0!==e?e:{}},[p]),f=e.useMemo(function(){return p?p.operationsFlatten&&p.operationsFlatten.length>0?function(e){if(!e)return[];var t=e.operationsFlatten||[],n=new Map;return t.forEach(function(e){var t=e.endpoint||"";n.has(t)||n.set(t,[]),n.get(t).push({method:(e.apiMethod||"").toUpperCase(),summary:e.summary||e.__listTitle||e.name||"",description:e.description||"",path:t})}),Array.from(n.entries()).map(function(e){var t=Ce(e,2);return{path:t[0],methods:t[1]}})}(p):p.source?function(e){if(!e)return[];try{var t=("string"==typeof e?JSON.parse(e):e).paths||{},n=["get","post","put","delete","patch","options","head","trace"],r=[];return Object.entries(t).forEach(function(e){var t=Ce(e,2),o=t[0],i=t[1],a=[];n.forEach(function(e){if(i[e]){var t=i[e];a.push({method:e.toUpperCase(),summary:t.summary||t.operationId||"",description:t.description||"",path:o})}}),a.length>0&&r.push({path:o,methods:a})}),r}catch(e){return[]}}(p.source):[]:[]},[p]),h=e.useMemo(function(){return f.flatMap(function(e){var t=e.path;return e.methods.map(function(e){return i3(i3({},e),{},{path:t})})})},[f]),m=e.useMemo(function(){return{a:function(e){e.node;var t=lg(e,r3);return o.jsx("a",i3(i3({},t),{},{target:"_blank",rel:"noopener noreferrer"}))}}},[]);if(!p)return o.jsx("div",{className:"flex-center h-100 w-100",children:o.jsx("p",{className:"fs-14px fw-400 color-tertiary",children:"No API reference loaded."})});var g=u?1:2;return o.jsxs("div",{className:"flex-col w-100",style:{padding:u?"24px 16px":"40px 80px",maxWidth:900},children:[o.jsx("p",{className:"color-primary fw-500 font-baskerville",style:{fontSize:u?24:28,letterSpacing:"0.28px",wordBreak:"break-word",lineHeight:"1.3",paddingBottom:4},children:d.title||"API Reference"}),d.description?o.jsx("div",{className:"color-primary fw-300 reference-markdown",style:{padding:"8px 0",marginBottom:20,fontSize:14,lineHeight:"1.6"},children:o.jsx(tC,{remarkPlugins:[GS],components:m,children:d.description||""})}):null,h.length>0&&o.jsx("div",{style:{display:"grid",rowGap:10,columnGap:10,alignSelf:"stretch",gridTemplateColumns:"repeat(".concat(g,", minmax(0, 1fr))"),marginTop:16,marginBottom:20},children:h.map(function(e,t){var n=e.path,r=e.method,i=e.summary;return o.jsx(s3,{path:n,method:r,summary:i,onClick:function(){return s&&s({path:n,method:r})}},"".concat(t,"-").concat(n,"-").concat(r))})}),d.contact||d.version?o.jsx("div",{className:"flex-col",style:{marginTop:4},children:[{label:"Contact",value:null===(r=d.contact)||void 0===r?void 0:r.name},{label:"Email",value:null===(i=d.contact)||void 0===i?void 0:i.email},{label:"URL",value:null===(a=d.contact)||void 0===a?void 0:a.url},{label:"Version",value:d.version}].filter(function(e){return e.value}).map(function(e,t,n){return o.jsxs("div",{className:Qy("dss-px-16 dss-py-6 border-bottom-00-1px flex-rows vt-center w-100",0===t?"border-top-00-1px":""),style:{height:28},children:[o.jsx("div",{className:"w-50 flex-rows vt-center hz-flex-start color-disabled fs-12px fw-400",children:e.label}),o.jsx("p",{className:"w-50 flex-rows vt-center hz-flex-start color-primary fs-12px fw-400 text-truncate-1",title:e.value,children:e.value})]},e.label)})}):null]})}var l3=p.default.memo(c3,zy);function u3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u3(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d3(n){var r=t.useDispatch(),i=t.useSelector(function(e){return e.apiReference.view},zy),a=t.useSelector(function(e){return e.apiReference.swaggers},zy),s=t.useSelector(function(e){return e.apiReference.selected.swagger},zy),c=e.useCallback(function(e){var t=e.path,n=e.method,o=null!=s?s:null==a?void 0:a[0];if(o){var i={method:n,path:t},c=o.operationsFlatten.find(function(e){return fd(e,i)});c&&r(ey({swagger:o,operation:p3(p3({},c),{},{keyId:Ee()})})),r(Gg(ae.RESOURCE))}},[r,a,s]);return i===ae.INTRO?o.jsx(Tk,p3({},n)):i===ae.OVERVIEW?o.jsx("div",{className:"overflow-y noscrollbar h-100 w-100",children:o.jsx(l3,{onEndpointSelect:c})}):o.jsx(n3,p3({},n))}var f3=p.default.memo(d3);function h3(t){var n=t.initialValue,r=t.debounceDelay,i=t.inputProps,a=Wy(),s=Ce(e.useState(""),2),c=s[0],l=s[1];e.useEffect(function(){c!=n&&l(n)},[n]);var u=e.useCallback(function(e){l(e.target.value)},[]);return kk(e.useCallback(function(){i.onChange&&i.onChange(c)},[c]),r,[c]),o.jsxs("div",{className:Qy("search-container flex-rows vt-center dss-gap-6 dss-px-12 dss-br-8 dss-h-32"),children:[o.jsx(Tw,{size:a.base,className:Qy("color-secondary")}),o.jsx("input",{type:"text",value:c,placeholder:i.placeholder,style:{background:"transparent",width:"100%",border:0,outline:0},onChange:u,className:Qy(i.className)})]})}h3.propTypes={initialValue:tb.string,debounceDelay:tb.number,inputProps:tb.shape({className:tb.string,placeholder:tb.string,onChange:tb.func.isRequired})},h3.defaultProps={initialValue:"",debounceDelay:1e3,inputProps:{className:"",placeholder:"",onChange:function(){}}};var m3=p.default.memo(h3,zy);function g3(t){var n=t.name,r=t.expanded,i=t.onClick,a=t.onClickIcon,s=t.containerHeight,c=t.iconContainerClassName,l=t.textColor,u=t.textFontSize,p=t.textFontWeight,d=t.textClassName,f=t.onlyText,h=t.isLink,m=t.isGroup,g=Wy(),y=e.useCallback(function(){m?(a&&a(),i&&i()):i&&i()},[m,i,a]);return o.jsxs("div",{"aria-hidden":!0,onClick:y,className:Qy(s,"flex-rows vt-center dss-gap-4","cursor"),children:[f?h?o.jsx(ArrowUpRight,{size:g.md,className:"color-disabled"}):o.jsx("div",{className:"dss-w-15"}):o.jsx("div",{"aria-hidden":!0,className:Qy("flex-center",c||"color-disabled"),children:r?o.jsx(pw,{size:g.md}):o.jsx(cw,{size:g.md})}),o.jsx("div",{className:Qy(l||"color-tertiary",u||"fs-14px",p||"fw-400","text-truncate-1",d,"lh-150 w--15px"),title:n,children:n})]})}g3.propTypes={name:tb.string.isRequired,expanded:tb.bool.isRequired,onClick:tb.func,onClickIcon:tb.func,containerHeight:tb.string,iconContainerClassName:tb.string,onlyText:tb.bool,textFontWeight:tb.string,textFontSize:tb.string,textColor:tb.string,textClassName:tb.string,isGroup:tb.bool},g3.defaultProps={onClick:null,onClickIcon:null,containerHeight:"dss-h-34",iconContainerClassName:"",onlyText:!1,textFontWeight:"",textFontSize:"",textColor:"",textClassName:"",isGroup:!1};var y3=p.default.memo(g3);function v3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v3(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w3(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return x3(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x3(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function x3(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var _3=p.default.memo(function(n){var r=n.guideId,i=n.pages,a=n.isChild,s=t.useDispatch(),c=t.useSelector(function(e){return e.libConfig.currentPage},zy),l=t.useSelector(function(e){return e.guides.selectedDocument.documentId},zy),u=t.useSelector(function(e){return e.guides.selectedDocument.guideId},zy),p=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),d=Ce(Hy(),1)[0],f=t.useSelector(function(e){return e.guides.guides}),h=t.useSelector(function(e){return e.guides.expandedId},zy);var m=e.useCallback(function(e){var t=e.page;if("document"===t.type){var n={pathArgs:{id:t.document},otherArgs:{title:t.title,guideId:r,pageId:t.id,description:t.description}};if(d(n),c===q.WORKFLOWS&&(s(eg(se.PORTFOLIO_GUIDES)),s(tg())),c===q.GRAPHQL&&(s(yg(ce.GUIDE)),s(vg())),p&&s(ag()),c===q.GUIDES){var o=f.filter(function(e){return e.id===r}),i=function(e,t){var n=[];return function e(r,o){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],s=w3(r);try{for(s.s();!(i=s.n()).done;){var c=i.value;console.log("pages",c.slug,t);var l=[].concat(lt(a),[c]);if(c.slug===o)return console.log("inside if"),n.push(l),console.log("breadcrumb11",n),!0;if(c.pages&&c.pages.length>0&&e(c.pages,o,l))return!0}}catch(e){s.e(e)}finally{s.f()}return!1}(e,t),n}(o[0].versions[0].pages,t.slug);i.length>0&&s(ef(i[0])),s(Xd(o[0]))}}"link"===t.type&&pd()&&window.open(t.url,"_blank")},[p,c]),g=e.useCallback(function(e){var t=e.page;s(Wd({guideId:r,pageId:t.id})),s(nf({guideId:r,pageId:t.id}))},[]);return o.jsx("div",{className:Qy("flex-col dss-gap-2 slide-from-top-400"),children:i.map(function(e){return o.jsxs(o.Fragment,{children:[o.jsxs("div",{id:e.id,className:Qy(u===r&&l===e.document?"bg-info-00":"hover-bg-gray-l2 ","dss-br-8 dss-py-4 dss-pr-12 dss-pl-16 position-relative"),children:[u===r&&l===e.document?o.jsx(Aw,{className:"bg-stroke-info-00 position-absolute dss-br-4",style:{left:6,bottom:6,width:2}}):null,o.jsx(y3,{name:e.title,isGroup:"document"===e.type&&e.pages&&e.pages.length||"group"===e.type,expanded:h.pageId===e.id,isLink:"link"===e.type,onClick:function(){return m({page:e})},onClickIcon:function(){return g({page:e})},onlyText:!e.pages||!e.pages.length,textFontSize:"fs-14px",textClassName:"lh-150 ".concat("link"===e.type&&"hover-link"),textColor:u===r&&l===e.document?"color-primary":"color-tertiary",textFontWeight:u===r&&l===e.document?"":"fw-400",containerHeight:"".concat(a?"dss-pl-16":""," ").concat(u===r&&l===e.document&&"")},e.id)]},e.id),h.pageId===e.id&&e.pages&&e.pages.length&&o.jsx(_3,{guideId:r,pages:e.pages,isChild:!0})]})})})},zy);function E3(n){var r=n.fromRef,i=n.isSinglePage,a=n.guides,s=n.titleFontWeight,c=n.titleFontSize,l=n.titleColor,u=n.titleClassName,p=n.isChild,d=void 0!==p&&p,f=n.currentVersionId;n.toggle,n.selectedSearchGuide;var h=Wy(),m=t.useDispatch(),g=t.useSelector(function(e){return e.libConfig.currentPage},zy),y=t.useSelector(function(e){return e.guides.listLoading},zy),v=t.useSelector(function(e){return e.apiReference.listLoading},zy);t.useSelector(function(e){return e.guides.selectedDocument.documentId},zy);var b=t.useSelector(function(e){return e.guides.selectedDocument.guideId},zy),w=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),x=Ce(Hy(),1)[0],_=t.useSelector(function(e){return e.guides.guides},zy),E=t.useSelector(function(e){return e.apiReference.metaSwaggers},zy),k=Ce(_y(),2),O=k[0],A=k[1].isFetching,D=Ce(xy(),2),M=D[0],C=D[1].isFetching,S=Ce(Ey(),1)[0],N=t.useSelector(function(e){return e.guides.selectedCategory}),j=t.useSelector(function(e){return e.libConfig}).userSetting;e.useEffect(function(){m(Yg({prop:"listLoading",value:C||A}))},[C||A]);var T=function(){var e=Ae(ct.mark(function e(){var t,n,r;return ct.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,O();case 1:return t=e.sent,n=t.data,r=n.userGroups?n.userGroups:[],pd()&&window.location.pathname.includes(U.OPEN_API)&&(r=[j.openApiPartner]),e.next=2,M({queryArgs:{status:"Publish",partnerNames:r}});case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();e.useEffect(function(){T()},[]);var P=e.useCallback(function(e){var t=e.guide;if(i){var n=t.currentVersion.pages[0];x({pathArgs:{id:n.document},otherArgs:d?{title:t.name,guideId:t.id,currentVersionId:t.currentVersion.id}:{title:t.name,guideId:t.id}}),g===q.API_ENDPOINTS&&m(Gg(ae.INTRO)),g===q.WORKFLOWS&&(m(eg(se.INTRO)),m(tg())),g===q.GRAPHQL&&(m(yg(ce.INTRO)),m(vg())),w&&m(ag())}else m(Zd(d?{guideId:t.id,currentVersionId:t.currentVersion.id}:{guideId:t.id}))},[g,w]);if(e.useCallback(function(e){var t=e.guide;return b===t.id},[b]),y)return i||[q.WORKFLOWS,q.GRAPHQL].includes(g)?null:o.jsx(E_,{message:"Loading Guides"});if(v&&g===q.GUIDES)return o.jsx("div",{className:Qy("h-100"),children:o.jsx(E_,{size:"md",message:"Loading"})});if(!a||!a.length)return i||[q.WORKFLOWS,q.GRAPHQL].includes(g)?null:o.jsx("div",{className:Qy("h-100 flex-center"),children:o.jsx(JS,{message:"No Guides Found"})});var I=function(e){var t=E.filter(function(t){return t.swaggerId===e.swaggerId});!function(e){var t=e.swagger,n=e.operation,r=new ke({swagger:t,resource:n}).toObject();S(r),m(Gg(ae.RESOURCE)),w&&m(ag()),_d(r),m(uy({uuid:t.versionData[0].uuid,expanded:!0},{uuid:t.uuid,expanded:!0}))}({swagger:t[0],operation:t[0].currentVersion.resources[0]})},R=a.reduce(function(e,t){return e[t.category]||(e[t.category]=[]),e[t.category].push(t),e},{});return o.jsx("div",{className:Qy("flex-col dss-gap-16 overflow-y noscrollbar",r?"":"h-100"),style:{overflowX:"hidden"},children:Object.entries(R).map(function(e){var t=Ce(e,2),n=t[0],r=t[1];return N&&N!==n?null:o.jsxs("div",{className:"flex-col dss-gap-2",children:[o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-12",N?"dss-py-8 dss-px-12 dss-br-24 bg-gray-l3 border-gray-primary-1px dss-mb-10":"dss-p-8 border-bottom-gray-primary-1px dss-mb-8"),style:{width:N?"fit-content":"100%",boxSizing:"border-box"},children:[o.jsx("div",{className:Qy("color-primary text-transform-uppercase fs-12px fw-600 lh-140"),children:n}),N?o.jsx(tx,{className:"color-primary cursor",size:h.sm,onClick:function(){return m(Jd(null))}}):null]}),r.map(function(e){var t=!1;if(d)ye(_).forEach(function(n){n.id===e.id&&n.versions.forEach(function(e){e.id===f&&(t=e.expand)})});else{var n=ye(_).filter(function(t){return t.id===e.id});n=n.length>0?n[0]:null,t=n?n.expand:e.expand}return o.jsxs("div",{id:e.id,className:Qy("flex-col dss-gap-2"),children:[o.jsx(y3,{name:d?"Version ".concat(e.currentVersion.title," (").concat(e.currentVersion.tag,")"):e.name,expanded:t,onClick:function(){return P({guide:e})},textFontWeight:s||"fw-400",textColor:b===e.id?"color-link-00":l||"",iconContainerClassName:b===e.id?"color-link-00":"",textFontSize:c||"",textClassName:u||"",onlyText:i,containerHeight:d?"dss-pl-16 dss-py-2 dss-pr-12":Qy("dss-py-4 dss-pr-12 hover-bg-gray-l3 dss-br-8")}),e.versions.length>1&&g!==q.API_ENDPOINTS&&t?o.jsx(o.Fragment,{children:e.versions.map(function(t){return o.jsx(E3,{isChild:!0,guides:[b3(b3({},e),{},{currentVersion:ye(t),versions:[],isChild:!0})],currentVersionId:t.id,titleFontWeight:"fw-400",titleFontSize:"fs-14px",titleColor:"color-tertiary"},t.id)})}):g!==q.API_ENDPOINTS&&t&&e.currentVersion.pages.length?o.jsx(_3,{guideId:e.id,pages:e.currentVersion.pages}):null,e.versions.length&&e.versions[0].swagger&&t&&o.jsxs("div",{className:Qy("flex-rows vt-center hz-space-between hover-bg-gray-l2 dss-br-8 cursor dss-pl-16 dss-py-4 dss-pr-12"),onClick:function(){return I(e.versions[0].swagger)},children:[o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-4"),children:[o.jsx(ow,{className:"color-disabled",size:h.md}),o.jsx("p",{className:"color-tertiary fs-14px fw-400 dss-my-0 lh-150",children:e.versions[0].swagger.swaggerName})]}),o.jsx("p",{className:Qy("color-http-method-get fw-600 fs-11px dss-my-0"),children:"OAS 3.0"})]})]},e.id)})]},n)})})}_3.propTypes={pages:tb.any.isRequired,guideId:tb.string.isRequired},E3.propTypes={isSinglePage:tb.bool,guides:tb.any.isRequired,titleFontWeight:tb.string,titleFontSize:tb.string,titleColor:tb.string,titleClassName:tb.string},E3.defaultProps={isSinglePage:!1,titleFontWeight:"",titleFontSize:"",titleColor:"",titleClassName:""};var k3=p.default.memo(E3,zy);function O3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function A3(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O3(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var D3=function(){return o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 256 256",fill:"currentColor",children:o.jsx("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"})})},M3=function(){return o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 256 256",fill:"currentColor",children:o.jsx("path",{d:"M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"})})},C3=function(){return o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 256 256",fill:"currentColor",children:o.jsx("path",{d:"M228,128a8,8,0,0,1-8,8H36a8,8,0,0,1,0-16H220A8,8,0,0,1,228,128ZM36,72H220a8,8,0,0,0,0-16H36a8,8,0,0,0,0,16ZM220,184H36a8,8,0,0,0,0,16H220a8,8,0,0,0,0-16Z"})})};function S3(e){var t=(e.method||"").toUpperCase();return o.jsx("div",{className:Qy("apiMethod",t,"w-fit-content flex-center"),style:{color:"#fff",letterSpacing:"0.4px",lineHeight:"16px",flexShrink:0},children:o.jsx("span",{style:{fontSize:"10px",fontWeight:700},children:t})})}function N3(e){var t=e.op,n=e.isSelected,r=e.onClick,i=t.summary||t.__listTitle||t.name||t.endpoint||t.path||"",a=(t.apiMethod||t.method||"").toUpperCase();return o.jsxs("div",{onClick:r,className:Qy("flex-rows vt-center cursor",n?"bg-L2":"hover-bg-gray-l2"),style:{borderLeft:n?"2px solid var(--brand-color, #0265DC)":"2px solid transparent",padding:"6px 16px 6px 16px",minHeight:30,gap:8},children:[o.jsx("div",{className:"flex-rows vt-center",style:{gap:6,flex:1,minWidth:0},children:o.jsx("p",{className:Qy("fs-14px text-truncate-1 w-100",n?"fw-500 color-primary":"fw-400 color-tertiary"),title:i,style:{lineHeight:"20px",margin:0},children:i})}),o.jsx(S3,{method:a})]})}function j3(t){var n=t.path,r=t.methods,i=t.selectedOperation,a=((null==i?void 0:i.method)||(null==i?void 0:i.apiMethod)||"").toUpperCase(),s=(null==i?void 0:i.path)||(null==i?void 0:i.endpoint)||"",c=r.some(function(e){var t=e.endpoint||e.path||"",n=(e.apiMethod||e.method||"").toUpperCase();return t===s&&n===a}),l=Ce(e.useState(c),2),u=l[0],p=l[1];return e.useEffect(function(){c&&!u&&p(!0)},[s,a]),o.jsxs("div",{children:[o.jsxs("div",{className:Qy("flex-rows vt-center cursor hover-bg-gray-l2"),style:{borderLeft:"2px solid transparent",padding:"2px 16px",minHeight:30,gap:8},onClick:function(){return p(function(e){return!e})},children:[o.jsx("span",{className:"color-tertiary",style:{flexShrink:0},children:u?o.jsx(D3,{}):o.jsx(M3,{})}),o.jsx("p",{className:"color-tertiary fw-400 text-truncate-1",style:{fontSize:14,lineHeight:"22px",width:"calc(100% - 22px)",margin:0},title:n,children:n})]}),u&&o.jsx("div",{style:{marginLeft:22},children:r.map(function(e){var t=e.endpoint||e.path||"",n=(e.apiMethod||e.method||"").toUpperCase(),r=t===s&&n===a;return o.jsx(N3,{op:e,isSelected:r,onClick:function(){return e._onSelect&&e._onSelect(e)}},"".concat(t,":").concat(n))})})]})}function T3(t){var n=t.operations,r=t.selectedOp,i=t.onSelect,a=e.useMemo(function(){var e=new Map;return(n||[]).forEach(function(t){var n=t.endpoint||t.path||"";e.has(n)||e.set(n,[]),e.get(n).push(A3(A3({},t),{},{_onSelect:i}))}),Array.from(e.entries()).map(function(e){var t=Ce(e,2);return{path:t[0],methods:t[1]}})},[n,i]);return a.length?o.jsx("div",{children:a.map(function(e){var t=e.path,n=e.methods;return o.jsx(j3,{path:t,methods:n,selectedOperation:r},t)})}):null}function P3(){var n=t.useDispatch(),r=Ce(Ey(),1)[0],i=Ce(e.useState(""),2),a=i[0],s=i[1],c=t.useSelector(function(e){return e.apiReference.metaSwaggers},zy),l=t.useSelector(function(e){return e.apiReference.swaggers},zy),u=t.useSelector(function(e){return e.apiReference.selected.swagger},zy),p=t.useSelector(function(e){return e.apiReference.selected.operation},zy),d=t.useSelector(function(e){return e.apiReference.view},zy),f=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),h=t.useSelector(function(e){return e.guides.guides},zy),m=(null==c?void 0:c.length)>0,g=e.useMemo(function(){return p?{path:p.endpoint||p.path||"",method:(p.apiMethod||p.method||"").toUpperCase()}:null},[p]),y=d===ae.OVERVIEW,v=e.useCallback(function(){n(Gg(ae.OVERVIEW)),f&&n(ag())},[n,f]),b=e.useCallback(function(e){var t=u||(null==l?void 0:l[0]);if(t){var r={method:e.apiMethod||e.method||"",path:e.endpoint||e.path||""},o=t.operationsFlatten.find(function(e){return fd(e,r)});o&&n(ey({swagger:t,operation:A3(A3({},o),{},{keyId:Ee()})})),n(Gg(ae.RESOURCE)),f&&n(ag())}},[n,u,l,f]),w=e.useCallback(function(e){var t=e.swagger,o=e.op,i=new ke({swagger:t,resource:o}).toObject();r(i),n(Gg(ae.RESOURCE)),f&&n(ag())},[n,r,f]),x=e.useCallback(function(e){return s(e)},[]),_=e.useCallback(function(e){if(!a)return e;var t=a.toLowerCase();return(e||[]).filter(function(e){return(e.endpoint||e.path||"").toLowerCase().includes(t)||(e.apiMethod||e.method||"").toLowerCase().includes(t)||(e.summary||e.__listTitle||e.name||"").toLowerCase().includes(t)})},[a]),E=e.useMemo(function(){return m?null:u||(null==l?void 0:l[0])||null},[m,u,l]),k=e.useMemo(function(){var e;return _(null!==(e=null==E?void 0:E.operationsFlatten)&&void 0!==e?e:[])},[E,_]),O=e.useMemo(function(){return m?c.map(function(e){var t;return A3(A3({},e),{},{filteredResources:_((null===(t=e.currentVersion)||void 0===t?void 0:t.resources)||[])})}).filter(function(e){return e.filteredResources.length>0}):[]},[m,c,_]),A=e.useState(function(){return(null!=c?c:[]).map(function(e){var t;return null!==(t=e.swaggerId)&&void 0!==t?t:e.uuid})}),D=Ce(A,2),M=D[0],C=D[1];e.useEffect(function(){null!=c&&c.length&&C(function(e){var t=new Set(e);return c.forEach(function(e){var n;return t.add(null!==(n=e.swaggerId)&&void 0!==n?n:e.uuid)}),Array.from(t)})},[c]);var S=e.useCallback(function(e){return C(function(t){return t.includes(e)?t.filter(function(t){return t!==e}):[].concat(lt(t),[e])})},[]);return o.jsxs("div",{style:{height:"100%",width:"100%",display:"flex",flexDirection:"column"},children:[o.jsx("div",{style:{padding:"16px 16px 8px"},children:o.jsx(m3,{initialValue:a,debounceDelay:300,inputProps:{onChange:x,placeholder:"Search APIs",className:Qy("color-disabled fs-12px fw-400 lh-140")}})}),o.jsxs("div",{className:Qy("flex-col overflow-y noscrollbar slide-from-left-500"),style:{flex:1},children:[(null==h?void 0:h.length)>0&&o.jsx("div",{style:{padding:"8px 16px"},children:o.jsx(k3,{guides:h,isSinglePage:!0,fromRef:!0})}),!m&&o.jsxs(o.Fragment,{children:[o.jsxs("div",{onClick:v,className:Qy("flex-rows vt-center cursor",y?"bg-L2":"hover-bg-gray-l2"),style:{borderLeft:y?"2px solid var(--brand-color, #0265DC)":"2px solid transparent",padding:"6px 16px",minHeight:30,gap:8},children:[o.jsx("span",{className:Qy(y?"color-primary":"color-tertiary"),style:{flexShrink:0},children:o.jsx(C3,{})}),o.jsx("p",{className:Qy("fs-14px",y?"fw-500 color-primary":"fw-400 color-tertiary"),style:{lineHeight:"20px"},children:"Overview"})]}),0===k.length&&a?o.jsx("div",{style:{padding:"24px 16px",textAlign:"center"},children:o.jsx("p",{className:"fs-12px fw-400 color-tertiary",children:"No endpoints found"})}):null,o.jsx(T3,{operations:k,selectedOp:y?null:g,onSelect:b})]}),m&&o.jsx("div",{className:Qy("flex-col"),style:{gap:2},children:O.map(function(e){var t,r=null!==(t=e.swaggerId)&&void 0!==t?t:e.uuid,i=M.includes(r),a=u&&u.swaggerId===e.swaggerId,s=y&&a;return o.jsxs("div",{children:[o.jsxs("div",{className:Qy("flex-rows vt-center cursor hover-bg-gray-l2"),style:{borderLeft:"2px solid transparent",padding:"4px 12px",minHeight:30,gap:8},onClick:function(){return S(r)},children:[o.jsx("span",{className:"color-tertiary",style:{flexShrink:0},children:i?o.jsx(D3,{}):o.jsx(M3,{})}),o.jsx("p",{className:Qy("text-truncate-1 fw-400 fs-14px",a?"color-primary":"color-tertiary"),title:e.name,style:{lineHeight:"20px",width:"calc(100% - 22px)"},children:e.name})]}),i&&o.jsxs("div",{className:"slide-from-top-400",style:{paddingLeft:19},children:[o.jsxs("div",{onClick:function(){n(Gg(ae.OVERVIEW)),f&&n(ag())},className:Qy("flex-rows vt-center cursor",s?"bg-L2":"hover-bg-gray-l2"),style:{borderLeft:s?"2px solid var(--brand-color, #0265DC)":"2px solid transparent",padding:"6px 16px",minHeight:30,gap:8},children:[o.jsx("span",{className:Qy(s?"color-primary":"color-tertiary"),style:{flexShrink:0},children:o.jsx(C3,{})}),o.jsx("p",{className:Qy("fs-14px",s?"fw-500 color-primary":"fw-400 color-tertiary"),style:{lineHeight:"20px"},children:"Overview"})]}),o.jsx(T3,{operations:e.filteredResources,selectedOp:a?g:null,onSelect:function(t){return w({swagger:e,op:t})}})]})]},r)})})]})]})}var I3=p.default.memo(P3);function R3(){return o.jsx(I3,{})}var L3=p.default.memo(R3);function F3(e,t){return function(){return e.apply(t,arguments)}}const{toString:H3}=Object.prototype,{getPrototypeOf:$3}=Object,{iterator:B3,toStringTag:q3}=Symbol,U3=(e=>t=>{const n=H3.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),z3=e=>(e=e.toLowerCase(),t=>U3(t)===e),V3=e=>t=>typeof t===e,{isArray:W3}=Array,Z3=V3("undefined");function Y3(e){return null!==e&&!Z3(e)&&null!==e.constructor&&!Z3(e.constructor)&&K3(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const G3=z3("ArrayBuffer");const Q3=V3("string"),K3=V3("function"),X3=V3("number"),J3=e=>null!==e&&"object"==typeof e,e5=e=>{if("object"!==U3(e))return!1;const t=$3(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||q3 in e||B3 in e)},t5=z3("Date"),n5=z3("File"),r5=z3("Blob"),o5=z3("FileList"),i5=z3("URLSearchParams"),[a5,s5,c5,l5]=["ReadableStream","Request","Response","Headers"].map(z3);function u5(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),W3(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Y3(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function p5(e,t){if(Y3(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const d5="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,f5=e=>!Z3(e)&&e!==d5;const h5=(m5="undefined"!=typeof Uint8Array&&$3(Uint8Array),e=>m5&&e instanceof m5);var m5;const g5=z3("HTMLFormElement"),y5=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),v5=z3("RegExp"),b5=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};u5(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const w5=z3("AsyncFunction"),x5=(_5="function"==typeof setImmediate,E5=K3(d5.postMessage),_5?setImmediate:E5?(k5=`axios@${Math.random()}`,O5=[],d5.addEventListener("message",({source:e,data:t})=>{e===d5&&t===k5&&O5.length&&O5.shift()()},!1),e=>{O5.push(e),d5.postMessage(k5,"*")}):e=>setTimeout(e));var _5,E5,k5,O5;const A5="undefined"!=typeof queueMicrotask?queueMicrotask.bind(d5):void 0!==cs&&cs.nextTick||x5;var D5={isArray:W3,isArrayBuffer:G3,isBuffer:Y3,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||K3(e.append)&&("formdata"===(t=U3(e))||"object"===t&&K3(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&G3(e.buffer),t},isString:Q3,isNumber:X3,isBoolean:e=>!0===e||!1===e,isObject:J3,isPlainObject:e5,isEmptyObject:e=>{if(!J3(e)||Y3(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:a5,isRequest:s5,isResponse:c5,isHeaders:l5,isUndefined:Z3,isDate:t5,isFile:n5,isBlob:r5,isRegExp:v5,isFunction:K3,isStream:e=>J3(e)&&K3(e.pipe),isURLSearchParams:i5,isTypedArray:h5,isFileList:o5,forEach:u5,merge:function e(){const{caseless:t}=f5(this)&&this||{},n={},r=(r,o)=>{const i=t&&p5(n,o)||o;e5(n[i])&&e5(r)?n[i]=e(n[i],r):e5(r)?n[i]=e({},r):W3(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&u5(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(u5(t,(t,r)=>{n&&K3(t)?e[r]=F3(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&$3(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:U3,kindOfTest:z3,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(W3(e))return e;let t=e.length;if(!X3(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[B3]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:g5,hasOwnProperty:y5,hasOwnProp:y5,reduceDescriptors:b5,freezeMethods:e=>{b5(e,(t,n)=>{if(K3(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];K3(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return W3(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:p5,global:d5,isContextDefined:f5,isSpecCompliantForm:function(e){return!!(e&&K3(e.append)&&"FormData"===e[q3]&&e[B3])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(J3(e)){if(t.indexOf(e)>=0)return;if(Y3(e))return e;if(!("toJSON"in e)){t[r]=e;const o=W3(e)?[]:{};return u5(e,(e,t)=>{const i=n(e,r+1);!Z3(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:w5,isThenable:e=>e&&(J3(e)||K3(e))&&K3(e.then)&&K3(e.catch),setImmediate:x5,asap:A5,isIterable:e=>null!=e&&K3(e[B3])};function M5(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}D5.inherits(M5,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:D5.toJSONObject(this.config),code:this.code,status:this.status}}});const C5=M5.prototype,S5={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{S5[e]={value:e}}),Object.defineProperties(M5,S5),Object.defineProperty(C5,"isAxiosError",{value:!0}),M5.from=(e,t,n,r,o,i)=>{const a=Object.create(C5);return D5.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),M5.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function N5(e){return D5.isPlainObject(e)||D5.isArray(e)}function j5(e){return D5.endsWith(e,"[]")?e.slice(0,-2):e}function T5(e,t,n){return e?e.concat(t).map(function(e,t){return e=j5(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const P5=D5.toFlatObject(D5,{},null,function(e){return/^is[A-Z]/.test(e)});function I5(e,t,n){if(!D5.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=D5.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!D5.isUndefined(t[e])});const r=n.metaTokens,o=n.visitor||l,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&D5.isSpecCompliantForm(t);if(!D5.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(D5.isDate(e))return e.toISOString();if(D5.isBoolean(e))return e.toString();if(!s&&D5.isBlob(e))throw new M5("Blob is not supported. Use a Buffer instead.");return D5.isArrayBuffer(e)||D5.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):oa.Buffer.from(e):e}function l(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(D5.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(D5.isArray(e)&&function(e){return D5.isArray(e)&&!e.some(N5)}(e)||(D5.isFileList(e)||D5.endsWith(n,"[]"))&&(s=D5.toArray(e)))return n=j5(n),s.forEach(function(e,r){!D5.isUndefined(e)&&null!==e&&t.append(!0===a?T5([n],r,i):null===a?n:n+"[]",c(e))}),!1;return!!N5(e)||(t.append(T5(o,n,i),c(e)),!1)}const u=[],p=Object.assign(P5,{defaultVisitor:l,convertValue:c,isVisitable:N5});if(!D5.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!D5.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),D5.forEach(n,function(n,i){!0===(!(D5.isUndefined(n)||null===n)&&o.call(t,n,D5.isString(i)?i.trim():i,r,p))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t}function R5(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function L5(e,t){this._pairs=[],e&&I5(e,this,t)}const F5=L5.prototype;function H5(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $5(e,t,n){if(!t)return e;const r=n&&n.encode||H5;D5.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):D5.isURLSearchParams(t)?t.toString():new L5(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}F5.append=function(e,t){this._pairs.push([e,t])},F5.toString=function(e){const t=e?function(t){return e.call(this,t,R5)}:R5;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var B5=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){D5.forEach(this.handlers,function(t){null!==t&&e(t)})}},q5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},U5={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:L5,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const z5="undefined"!=typeof window&&"undefined"!=typeof document,V5="object"==typeof navigator&&navigator||void 0,W5=z5&&(!V5||["ReactNative","NativeScript","NS"].indexOf(V5.product)<0),Z5="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Y5=z5&&window.location.href||"http://localhost";var G5={...Object.freeze({__proto__:null,hasBrowserEnv:z5,hasStandardBrowserWebWorkerEnv:Z5,hasStandardBrowserEnv:W5,navigator:V5,origin:Y5}),...U5};function Q5(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&D5.isArray(r)?r.length:i,s)return D5.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&D5.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&D5.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(D5.isFormData(e)&&D5.isFunction(e.entries)){const n={};return D5.forEachEntry(e,(e,r)=>{t(function(e){return D5.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const K5={transitional:q5,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=D5.isObject(e);o&&D5.isHTMLForm(e)&&(e=new FormData(e));if(D5.isFormData(e))return r?JSON.stringify(Q5(e)):e;if(D5.isArrayBuffer(e)||D5.isBuffer(e)||D5.isStream(e)||D5.isFile(e)||D5.isBlob(e)||D5.isReadableStream(e))return e;if(D5.isArrayBufferView(e))return e.buffer;if(D5.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return I5(e,new G5.classes.URLSearchParams,{visitor:function(e,t,n,r){return G5.isNode&&D5.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=D5.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return I5(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(D5.isString(e))try{return(t||JSON.parse)(e),D5.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||K5.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(D5.isResponse(e)||D5.isReadableStream(e))return e;if(e&&D5.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw M5.from(e,M5.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:G5.classes.FormData,Blob:G5.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D5.forEach(["delete","get","head","post","put","patch"],e=>{K5.headers[e]={}});var X5=K5;const J5=D5.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const e9=Symbol("internals");function t9(e){return e&&String(e).trim().toLowerCase()}function n9(e){return!1===e||null==e?e:D5.isArray(e)?e.map(n9):String(e)}function r9(e,t,n,r,o){return D5.isFunction(r)?r.call(this,t,n):(o&&(t=n),D5.isString(t)?D5.isString(r)?-1!==t.indexOf(r):D5.isRegExp(r)?r.test(t):void 0:void 0)}class o9{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=t9(t);if(!o)throw new Error("header name must be a non-empty string");const i=D5.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=n9(e))}const i=(e,t)=>D5.forEach(e,(e,n)=>o(e,n,t));if(D5.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(D5.isString(e)&&(e=e.trim())&&!(e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))(e))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&J5[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(D5.isObject(e)&&D5.isIterable(e)){let n,r,o={};for(const t of e){if(!D5.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?D5.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=t9(e)){const n=D5.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(D5.isFunction(t))return t.call(this,e,n);if(D5.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=t9(e)){const n=D5.findKey(this,e);return!(!n||void 0===this[n]||t&&!r9(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=t9(e)){const o=D5.findKey(n,e);!o||t&&!r9(0,n[o],o,t)||(delete n[o],r=!0)}}return D5.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!r9(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return D5.forEach(this,(r,o)=>{const i=D5.findKey(n,o);if(i)return t[i]=n9(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=n9(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return D5.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&D5.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[e9]=this[e9]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=t9(e);t[r]||(!function(e,t){const n=D5.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return D5.isArray(e)?e.forEach(r):r(e),this}}o9.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),D5.reduceDescriptors(o9.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),D5.freezeMethods(o9);var i9=o9;function a9(e,t){const n=this||X5,r=t||n,o=i9.from(r.headers);let i=r.data;return D5.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function s9(e){return!(!e||!e.__CANCEL__)}function c9(e,t,n){M5.call(this,null==e?"canceled":e,M5.ERR_CANCELED,t,n),this.name="CanceledError"}function l9(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new M5("Request failed with status code "+n.status,[M5.ERR_BAD_REQUEST,M5.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}D5.inherits(c9,M5,{__CANCEL__:!0});const u9=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=r[a];o||(o=c),n[i]=s,r[i]=c;let u=a,p=0;for(;u!==i;)p+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;const d=l&&c-l;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,c=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},p9=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},d9=e=>(...t)=>D5.asap(()=>e(...t));var f9=G5.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,G5.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(G5.origin),G5.navigator&&/(msie|trident)/i.test(G5.navigator.userAgent)):()=>!0,h9=G5.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];D5.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),D5.isString(r)&&a.push("path="+r),D5.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function m9(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const g9=e=>e instanceof i9?{...e}:e;function y9(e,t){t=t||{};const n={};function r(e,t,n,r){return D5.isPlainObject(e)&&D5.isPlainObject(t)?D5.merge.call({caseless:r},e,t):D5.isPlainObject(t)?D5.merge({},t):D5.isArray(t)?t.slice():t}function o(e,t,n,o){return D5.isUndefined(t)?D5.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!D5.isUndefined(t))return r(void 0,t)}function a(e,t){return D5.isUndefined(t)?D5.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(g9(e),g9(t),0,!0)};return D5.forEach(Object.keys({...e,...t}),function(r){const i=c[r]||o,a=i(e[r],t[r],r);D5.isUndefined(a)&&i!==s||(n[r]=a)}),n}var v9=e=>{const t=y9({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=i9.from(s),t.url=$5(m9(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),D5.isFormData(r))if(G5.hasStandardBrowserEnv||G5.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(G5.hasStandardBrowserEnv&&(o&&D5.isFunction(o)&&(o=o(t)),o||!1!==o&&f9(t.url))){const e=i&&a&&h9.read(a);e&&s.set(i,e)}return t};var b9="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=v9(e);let o=r.data;const i=i9.from(r.headers).normalize();let a,s,c,l,u,{responseType:p,onUploadProgress:d,onDownloadProgress:f}=r;function h(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=i9.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());l9(function(e){t(e),h()},function(e){n(e),h()},{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new M5("Request aborted",M5.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new M5("Network Error",M5.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||q5;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new M5(t,o.clarifyTimeoutError?M5.ETIMEDOUT:M5.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&D5.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),D5.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),p&&"json"!==p&&(m.responseType=r.responseType),f&&([c,u]=u9(f,!0),m.addEventListener("progress",c)),d&&m.upload&&([s,l]=u9(d),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new c9(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===G5.protocols.indexOf(y)?n(new M5("Unsupported protocol "+y+":",M5.ERR_BAD_REQUEST,e)):m.send(o||null)})};var w9=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof M5?t:new c9(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new M5(`timeout ${t} of ms exceeded`,M5.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>D5.asap(a),s}};const x9=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},_9=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},E9=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of _9(e))yield*x9(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},k9="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,O9=k9&&"function"==typeof ReadableStream,A9=k9&&("function"==typeof TextEncoder?(D9=new TextEncoder,e=>D9.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var D9;const M9=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},C9=O9&&M9(()=>{let e=!1;const t=new Request(G5.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),S9=O9&&M9(()=>D5.isReadableStream(new Response("").body)),N9={stream:S9&&(e=>e.body)};var j9;k9&&(j9=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!N9[e]&&(N9[e]=D5.isFunction(j9[e])?t=>t[e]():(t,n)=>{throw new M5(`Response type '${e}' is not supported`,M5.ERR_NOT_SUPPORT,n)})}));const T9=async(e,t)=>{const n=D5.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(D5.isBlob(e))return e.size;if(D5.isSpecCompliantForm(e)){const t=new Request(G5.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return D5.isArrayBufferView(e)||D5.isArrayBuffer(e)?e.byteLength:(D5.isURLSearchParams(e)&&(e+=""),D5.isString(e)?(await A9(e)).byteLength:void 0)})(t):n};var P9=k9&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:u,withCredentials:p="same-origin",fetchOptions:d}=v9(e);l=l?(l+"").toLowerCase():"text";let f,h=w9([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(c&&C9&&"get"!==n&&"head"!==n&&0!==(g=await T9(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(D5.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=p9(g,u9(d9(c)));r=E9(n.body,65536,e,t)}}D5.isString(p)||(p=p?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?p:void 0});let i=await fetch(f,d);const a=S9&&("stream"===l||"response"===l);if(S9&&(s||a&&m)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=i[t]});const t=D5.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&p9(t,u9(d9(s),!0))||[];i=new Response(E9(i.body,65536,n,()=>{r&&r(),m&&m()}),e)}l=l||"text";let y=await N9[D5.findKey(N9,l)||"text"](i,e);return!a&&m&&m(),await new Promise((t,n)=>{l9(t,n,{data:y,headers:i9.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})})}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new M5("Network Error",M5.ERR_NETWORK,e,f),{cause:t.cause||t});throw M5.from(t,t&&t.code,e,f)}});const I9={http:null,xhr:b9,fetch:P9};D5.forEach(I9,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const R9=e=>`- ${e}`,L9=e=>D5.isFunction(e)||null===e||!1===e;var F9=e=>{e=D5.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!L9(n)&&(r=I9[(t=String(n)).toLowerCase()],void 0===r))throw new M5(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new M5("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(R9).join("\n"):" "+R9(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function H9(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new c9(null,e)}function $9(e){H9(e),e.headers=i9.from(e.headers),e.data=a9.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return F9(e.adapter||X5.adapter)(e).then(function(t){return H9(e),t.data=a9.call(e,e.transformResponse,t),t.headers=i9.from(t.headers),t},function(t){return s9(t)||(H9(e),t&&t.response&&(t.response.data=a9.call(e,e.transformResponse,t.response),t.response.headers=i9.from(t.response.headers))),Promise.reject(t)})}const B9="1.11.0",q9={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{q9[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const U9={};q9.transitional=function(e,t,n){function r(e,t){return"[Axios v"+B9+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new M5(r(o," has been removed"+(t?" in "+t:"")),M5.ERR_DEPRECATED);return t&&!U9[o]&&(U9[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},q9.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var z9={assertOptions:function(e,t,n){if("object"!=typeof e)throw new M5("options must be an object",M5.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new M5("option "+i+" must be "+n,M5.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new M5("Unknown option "+i,M5.ERR_BAD_OPTION)}},validators:q9};const V9=z9.validators;class W9{constructor(e){this.defaults=e||{},this.interceptors={request:new B5,response:new B5}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=y9(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&z9.assertOptions(n,{silentJSONParsing:V9.transitional(V9.boolean),forcedJSONParsing:V9.transitional(V9.boolean),clarifyTimeoutError:V9.transitional(V9.boolean)},!1),null!=r&&(D5.isFunction(r)?t.paramsSerializer={serialize:r}:z9.assertOptions(r,{encode:V9.function,serialize:V9.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),z9.assertOptions(t,{baseUrl:V9.spelling("baseURL"),withXsrfToken:V9.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&D5.merge(o.common,o[t.method]);o&&D5.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=i9.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,p=0;if(!s){const e=[$9.bind(this),void 0];for(e.unshift(...a),e.push(...c),u=e.length,l=Promise.resolve(t);p<u;)l=l.then(e[p++],e[p++]);return l}u=a.length;let d=t;for(p=0;p<u;){const e=a[p++],t=a[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=$9.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,u=c.length;p<u;)l=l.then(c[p++],c[p++]);return l}getUri(e){return $5(m9((e=y9(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}D5.forEach(["delete","get","head","options"],function(e){W9.prototype[e]=function(t,n){return this.request(y9(n||{},{method:e,url:t,data:(n||{}).data}))}}),D5.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(y9(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}W9.prototype[e]=t(),W9.prototype[e+"Form"]=t(!0)});var Z9=W9;class Y9{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new c9(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new Y9(function(t){e=t});return{token:t,cancel:e}}}var G9=Y9;const Q9={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Q9).forEach(([e,t])=>{Q9[t]=e});var K9=Q9;const X9=function e(t){const n=new Z9(t),r=F3(Z9.prototype.request,n);return D5.extend(r,Z9.prototype,n,{allOwnKeys:!0}),D5.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(y9(t,n))},r}(X5);X9.Axios=Z9,X9.CanceledError=c9,X9.CancelToken=G9,X9.isCancel=s9,X9.VERSION=B9,X9.toFormData=I5,X9.AxiosError=M5,X9.Cancel=X9.CanceledError,X9.all=function(e){return Promise.all(e)},X9.spread=function(e){return function(t){return e.apply(null,t)}},X9.isAxiosError=function(e){return D5.isObject(e)&&!0===e.isAxiosError},X9.mergeConfig=y9,X9.AxiosHeaders=i9,X9.formToJSON=e=>Q5(D5.isHTMLForm(e)?new FormData(e):e),X9.getAdapter=F9,X9.HttpStatusCode=K9,X9.default=X9;var J9=X9,e7=Object.freeze({SERVER:"servers",CLIENT:"clients"});function t7(n){var r=n.toggleModal;Wy();var i=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),a=t.useSelector(function(e){return e.apiReference.selected.swagger},zy),s=t.useSelector(function(e){return e.modal.codeGenerator},zy),c=Cy({headerArgs:a.type}).data,l=Ce(Sy(),1)[0],u=Ce(Ym(),1)[0],p=Ce(e.useState(null),2),d=p[0],f=p[1],h=Ce(e.useState(null),2),m=h[0],g=h[1],y=Ce(e.useState(!1),2),v=y[0],b=y[1],w=e.useMemo(function(){return Object.keys(e7).map(function(e){return{onClick:function(){return f(e7[e])},element:o.jsx("div",{className:Qy("fs-14px color-02 fw-500 text-transform-capitalize"),children:e7[e]})}})},[]),x=e.useMemo(function(){return d&&c?(c[d]||[]).map(function(e){return{onClick:function(){return g(e)},element:o.jsx("div",{className:Qy("fs-14px color-02 fw-500 text-transform-capitalize"),children:e})}}):[]},[d,c]);e.useEffect(function(){g(null)},[d]);var _=e.useCallback(Ae(ct.mark(function e(){var t,n,o,i,s,c;return ct.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!v){e.next=1;break}return e.abrupt("return");case 1:return e.prev=1,t={swaggerName:a.swaggerId,revision:a.revision},b(!0),e.next=2,l({pathArgs:{target:d,framework:m},headerArgs:{oas:be(a.type)},body:t});case 2:if(n=e.sent,o=n.data){e.next=3;break}return b(!1),e.abrupt("return");case 3:return i=o.link,e.next=4,u({body:{url:i}});case 4:if(s=e.sent,c=s.data){e.next=5;break}return b(!1),e.abrupt("return");case 5:bd({blob:c,filename:"".concat(m),ext:"zip"}),b(!1),r(),e.next=7;break;case 6:e.prev=6,e.catch(1),b(!1);case 7:case"end":return e.stop()}},e,null,[[1,6]])})),[d,m,v]);return o.jsx(DJ,{size:i?"fill":"sm",placement:"left",open:s,children:o.jsxs("div",{className:Qy("dss-px-26 dss-py-32","flex-col dss-gap-32"),children:[o.jsx("div",{className:Qy("fs-12px color-02 fw-800 text-transform-uppercase"),children:"Download Server / Client Code"}),o.jsxs("div",{className:Qy("flex-col dss-gap-12"),children:[o.jsx(hN,{options:w,btnClassName:"border-00-1px dss-p-8",haveBottomEmptySpace:!0,children:o.jsx("div",{className:Qy("color-05 fs-14px fw-400 text-transform-capitalize"),children:d||"Select Servers or Clients"})}),!!d&&o.jsx(hN,{options:x,btnClassName:"border-00-1px dss-p-8",haveBottomEmptySpace:!0,children:o.jsx("div",{className:Qy("color-05 fs-14px fw-400 text-transform-capitalize"),children:m||"Select Frameworks"})})]}),o.jsxs("div",{className:Qy("flex-rows dss-gap-12"),children:[d&&m?o.jsx(bJ,{onClick:_,text:"Generate",loading:v,loadingEl:o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-4"),children:[o.jsx("div",{className:Qy(""),children:"Generating "}),o.jsx(x_,{size:"md",color:"color-button-00"})]}),textSize:"fs-12px"}):o.jsx(xJ,{text:"Generate",textSize:"fs-12px"}),o.jsx(xJ,{text:"Cancel",textSize:"fs-12px",onClick:r})]})]})})}function n7(){var n=t.useDispatch(),r=Wy(),i=t.useSelector(function(e){return e.modal.codeGenerator},zy),a=e.useMemo(function(){return o.jsx(ww,{size:r.xl})},[r.xl]),s=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),c=e.useCallback(function(){n(ig())},[]);return o.jsxs(o.Fragment,{children:[pd()&&!window.location.pathname.includes(U.OPEN_API)&&o.jsx(uN,{placement:"left",tooltipOffset:8,tooltipEl:o.jsx("div",{className:Qy("fs-11px fw-500"),children:"Download Server/Client Code"}),children:o.jsx("div",{className:Qy("color-text-inverse dss-p-6",s&&"bg-gray-l2 dss-p-6 dss-br-4 border-gray-primary-1px dss-w-24 dss-h-24"),children:o.jsx(gN,{Icon:a,onClick:c,className:Qy("")})})}),i&&o.jsx(t7,{toggleModal:c})]})}t7.propTypes={toggleModal:tb.func.isRequired};var r7=p.default.memo(n7);function o7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o7(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var a7=Object.freeze({COPIED:"Copied",COPY:"Copy"});function s7(){var n=t.useDispatch(),r=t.useSelector(function(e){return e.libConfig.isDarkMode},zy),i=t.useSelector(function(e){return e.libConfig.moduleType},zy),a=t.useSelector(function(e){return e.apiReference.selected.operation},zy),s=t.useSelector(function(e){return e.apiReference.selected.loading},zy),c=t.useSelector(function(e){return e.apiReference.selected.axiosOptions},zy),l=t.useSelector(function(e){return e.apiReference.selected.responses},zy),u=t.useSelector(function(e){return e.apiReference.selected.headerParams},zy),p=t.useSelector(function(e){return e.libConfig.isLargeDevice},zy),d=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),f=t.useSelector(function(e){return e.apiReference.selected.response.contentType},zy),h=t.useSelector(function(e){return e.apiReference.selected.result.response},zy),m=t.useSelector(function(e){return e.libConfig.currentPage},zy),g=e.useMemo(function(){var e=u.properties.find(function(e){return yd(e)});return e?e.uiData.value:Q},[u]),y=Ce(e.useState(pe[2]),2),v=y[0],b=y[1],w=Ce(e.useState(""),2),x=w[0],_=w[1],E=Ce(e.useState(null),2),k=E[0],O=E[1],A=Ce(e.useState(!1),2),D=A[0],M=A[1],S=Ce(e.useState(!1),2),N=S[0],j=S[1],T=Ce(e.useState(a7.COPY),2),P=T[0],I=T[1],R=Wy(),L=e.useMemo(function(){return d?o.jsx(cv,{size:R.xl}):o.jsx(vv,{size:R.xl})},[d,R.xl]),F=e.useMemo(function(){var e="json";k&&k.contentType&&(e=Da(k.contentType));var t="";if(k&&k.example){var n=k.example;n.constructor===String?t=n:"json"!==e||n.constructor!==Object&&n.constructor!==Array?"xml"===e&&(t=Ma(n,e)):t=_e(n)}return{lang:e,value:t}},[k]),H=e.useMemo(function(){var e="json";h&&h.contentType&&(e=Da(h.contentType));var t="";if(h&&h.body){var n=h.body;n.constructor===String?t="xml"===e?function(e){try{return $(e,{collapseContent:!0})}catch(t){return e}}(n):n:"json"!==e||n.constructor!==Object&&n.constructor!==Array||(t=_e(n))}return{lang:e,value:t}},[h]),B=e.useMemo(function(){return!c||!!c.error},[c]),U=e.useMemo(function(){if(!c||c.error)return null;var e=function(e){var t=e.axiosOptions,n=[];if(t.headers)for(var r in t.headers)n.push({name:r,value:t.headers[r]});var o={method:t&&t.apiMethod?t.apiMethod.toUpperCase():"",url:t.url?encodeURI(t.url):"",headers:[]};return n.length&&(o.headers=n),t.data&&(o.postData={mimeType:"text/plain",text:t.data},t.data&&t.data.constructor===Object&&(o.postData.text=JSON.stringify(t.data)),o.bodySize=o.postData.text.length),o}({axiosOptions:c});return e},[c]),z=function(){var e=Ae(ct.mark(function e(){var t;return ct.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,rs({snippets:U,lang:v.language});case 1:t=e.sent,_(t);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}();e.useEffect(function(){z()},[v,U]),e.useCallback(function(e){console.log("lang",e),b(e)},[]);var V=e.useCallback(function(){j(!1),O(null)},[]),W=e.useCallback(function(e){if(!e)return O(null),void j(!0);O(e),j(!1)},[]),Z=e.useCallback(function(){pd()&&window.navigator.clipboard.writeText(x),I(a7.COPIED),setTimeout(function(){I(a7.COPY)},2e3)},[x]);e.useEffect(function(){V()},[f]),e.useEffect(function(){if(N&&h&&h.statusCode===Y){var e=setTimeout(function(){V()},1e4);return function(){clearTimeout(e)}}},[N,h]);var G=e.useCallback(function(){n(d?sg():Qg())},[]),K=e.useMemo(function(){return[{keyId:C(),element:o.jsx(VK,{text:g,textProps:{className:"",color:"color-04",fontSize:"fs-12px",fontWeight:"fw-400"}}),onClick:null}].concat(lt((l||[]).filter(function(e){return e.example||e.examples}).reduce(function(e,t){if(t.examples&&Object.keys(t.examples).length)for(var n=0,r=Object.values(t.examples);n<r.length;n++){var o=r[n],i=o.value;try{i=JSON.parse(o.value)}catch(e){console.log(e)}e.push(i7(i7({},t),{},{example:i,exampleSummary:o.summary||""}))}else e.push(t);return e},[]).map(function(e){return{keyId:C(),element:o.jsx(pX,{statusCode:e.statusCode,name:"".concat(e.name," ").concat(e.exampleSummary?"- ".concat(e.exampleSummary):""),textProps:{className:"",color:"color-primary",fontSize:"fs-11px",fontWeight:"fw-400"}}),onClick:function(){W(e)}}})),[k||N?{keyId:C(),element:o.jsx(VK,{text:"Clear ".concat(k?"Example":"Response"),textProps:{className:"",color:"color-required-00",fontSize:"fs-12px",fontWeight:"fw-400"}}),onClick:V}:null]).filter(Boolean)},[g,N,k,l]),J=e.useMemo(function(){return(pe||[]).map(function(e){return{onClick:function(){return b(e)},element:o.jsx("div",{className:Qy("fs-12px color-02 fw-400"),children:e.label})}})},[]),ee=e.useCallback(function(){if(!B&&!D){var e=null;["get","delete","head","options"].includes(c.apiMethod)&&(e=J9[c.apiMethod](c.url,c.axiosConfig)),["post","put","patch"].includes(c.apiMethod)&&(e=J9[c.apiMethod](c.url,c.data,c.axiosConfig)),M(!0),e.then(function(e){M(!1);var t={statusCode:e.status,headers:e.headers.toJSON(),body:e.data};n(cy(t)),W()}).catch(function(e){M(!1);var t=null;if(e.response){var r=e.response||{};t={statusCode:r.status,headers:r.headers.toJSON(),body:r.data}}else t={statusCode:e.code,headers:{},body:e.message||"Network Error"};n(cy(t)),W()})}},[c,B,D]);return s?d&&m===q.WORKFLOWS?null:o.jsx("div",{className:Qy("h-100 w-100"),children:o.jsx(E_,{size:"md",message:"Loading Document"})}):a?p?o.jsxs("div",{className:Qy("ref-right-panel-tryout","flex-col h-100 position-relative",d?"":"dss-gap-16"),style:{paddingLeft:!d&&"0px !important"},children:[i!==N6.EXTERNAL?o.jsxs("div",{className:Qy("flex-rows vt-center hz-space-between dss-h-20",d?"dss-mb-16":""),children:[d?o.jsx("p",{className:Qy(d?"color-primary fs-21px fw-700 dss-my-0":"color-tertiary fs-11px fw-700 dss-my-0"),children:"TRYOUT"}):null,o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-12 "),children:[i!==N6.EXTERNAL&&o.jsx(r7,{}),d&&o.jsx("div",{className:Qy(d?"bg-gray-l2 dss-p-6 dss-br-4 border-gray-primary-1px dss-w-24 dss-h-24 color-primary":"color-primary "),children:o.jsx(gN,{Icon:L,onClick:G,className:Qy("hover-bg-gray-l2")})})]})]}):null,o.jsx("div",{className:"ref-tryout-root",children:o.jsxs("div",{className:Qy("ref-tryout-panel",d?"flex-col dss-p-12 dss-br-8 border-gray-primary-1px bg-try-out":""),children:[o.jsxs("div",{className:"ref-tryout-section flex-col dss-br-10 border-gray-primary-1px border-secondary-1px",children:[o.jsxs("div",{className:Qy("ref-tryout-section__header","flex-rows vt-center hz-space-between br-t-10px bg-try-out"),children:[o.jsx("p",{className:Qy("color-text-inverse fs-12px fw-600 dss-my-0 text-truncate-1"),title:a.api.operationId,children:"Endpoint"}),o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-4"),children:[o.jsx(hN,{options:J,btnClassName:"dss-br-8 dss-px-8 dss-py-4",ddPositionClassName:"bg-L1 overflow-y catalog-dd-max-h zIndex-12",optionClassName:"color-primary fs-11px fw-400 dss-p-8",styles:{minWidth:X(110)},caretClassName:"color-text-inverse",children:o.jsx("div",{className:Qy("color-text-inverse fs-12px fw-400"),children:v.label||"Select Language"})}),o.jsx(uN,{placement:"top",tooltipOffset:8,tooltipEl:o.jsx("div",{className:Qy("fs-11px fw-500"),children:P}),children:o.jsx("div",{"aria-hidden":!0,onClick:Z,className:Qy("dss-p-6 color-text-inverse cursor flex-center"),children:o.jsx(vw,{size:R.base})})}),o.jsx(uN,{placement:"top",tooltipOffset:8,tooltipEl:o.jsx("div",{className:Qy("fs-11px fw-500"),children:"Try it!"}),children:D?o.jsx(E_,{size:"md"}):o.jsx("div",{"aria-hidden":!0,onClick:ee,"aria-disabled":!!B,className:Qy("dss-p-6 dss-br-6 bg-brand flex-center cursor"),style:{border:"none"},children:o.jsx(Lw,{size:R.base,className:"color-text-inverse"})})})]})]}),o.jsx("div",{className:"ref-tryout-section__body br-b-8px",children:B?o.jsx("div",{className:Qy("br-b-8px flex-center fs-12px fw-400 dss-px-12 dss-py-20"),style:{color:"#FAFAFA",background:r?"#292724":"#373533"},children:c?c.error:""}):o.jsx(tJ,{code:x,lang:me[v.language],theme:"dark",tokens:{bg:r?"#292724":"#373533"},className:"bg-try-out",style:{height:"auto",width:"100%",boxSizing:"border-box"}})})]}),o.jsxs("div",{className:"ref-tryout-section flex-col dss-br-10 border-secondary-1px",children:[o.jsxs("div",{className:Qy("ref-tryout-section__header","flex-rows vt-center hz-space-between br-t-10px bg-try-out"),children:[o.jsx("p",{className:Qy("color-text-inverse fs-12px fw-600 dss-my-0 text-truncate-1"),children:"Response"}),o.jsx(hN,{options:K,ddPositionClassName:"bg-L1 overflow-y catalog-dd-max-h zIndex-12",optionClassName:"color-primary fs-11px fw-400 dss-p-8",caretClassName:"color-text-inverse",children:o.jsx("div",{className:Qy(""),children:N?o.jsxs("div",{className:Qy("flex-rows dss-gap-8 vt-center"),children:[h.statusCode!==Y&&o.jsx(pX,{name:h.statusCode,textProps:{className:"text-white",color:"text-white",fontSize:"fs-12px",fontWeight:"fw-400"}}),o.jsx("div",{className:Qy("bg-base border-00-0_5px dss-br-4 fs-13px dss-px-4 dss-py-2 color-03"),children:"Log"})]}):k?o.jsx("div",{className:Qy("flex-rows dss-gap-8 vt-center"),children:o.jsx(pX,{name:k.name,textProps:{className:"",color:"color-text-inverse",fontSize:"fs-12px",fontWeight:"fw-400"}})}):o.jsx(VK,{text:"Examples",textProps:{className:"",color:"color-text-inverse",fontSize:"fs-12px",fontWeight:"fw-400"}})})})]}),o.jsx("div",{className:Qy("br-b-8px",N||k?"ref-tryout-section__body":"ref-tryout-section__body ref-tryout-section__body--static"),children:N||k?N&&h.statusCode===Y?o.jsx("div",{className:Qy("flex-rows vt-center br-b-8px bg-L2",d?"w-100":""),children:o.jsxs("div",{className:"flex-col br-b-10px vt-center hz-center text-center w-100 dss-py-20 dss-gap-8 bg-try-out",children:[o.jsx(Ew,{size:R.xxl,className:"color-text-inverse"}),o.jsx("span",{className:"color-text-inverse fs-12px fw-400 lh-133",children:"Network Error"})]})}):o.jsx(tJ,{code:N?H.value:F.value,lang:"json",theme:"light",style:{height:"auto",width:"100%",boxSizing:"border-box",borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px"},tokens:{attr:"#5EAAF7",string:"#F0F0F0",punctuation:"#F0F0F0",bg:r?"#292724":"#373533"}}):o.jsx("div",{className:Qy("flex-rows vt-center br-b-10px bg-L2",d?"w-100":""),children:o.jsxs("div",{className:"flex-col vt-center hz-center text-center w-100 dss-py-20 dss-gap-8 bg-try-out br-b-10px",children:[o.jsx(Ew,{size:R.xxl,className:"color-disabled"}),o.jsx("span",{className:"color-text-inverse fs-12px fw-400 lh-133",children:"No Response To Show Yet"}),o.jsxs("div",{className:Qy("flex-rows vt-center hz-center dss-gap-4 dss-px-8 dss-py-4 dss-br-6 cursor"),onClick:ee,children:[o.jsx(Lw,{size:R.md,className:"color-brand"}),o.jsx("p",{className:Qy("fs-11px fw-500 color-brand dss-my-0"),children:"Try Now"})]})]})})})]})]})})]}):d?o.jsxs("div",{className:Qy("ref-tryout-modal-sm","dss-p-16","bg-base","position-relative","text-size-md"),children:[o.jsxs("div",{className:Qy("flex-rows vt-center hz-space-between dss-h-32","flex-shrink-0"),children:[o.jsx("p",{className:Qy("color-primary fs-21px fw-700 dss-my-0"),children:"Tryout"}),o.jsx("div",{className:Qy("flex-rows vt-center dss-gap-12"),children:o.jsx("div",{className:Qy("dss-br-4 border-gray-primary-1px bg-L2 dss-p-6 flex-center"),onClick:function(){n(sg())},children:o.jsx(tx,{size:R.xl,className:"color-primary"})})})]}),o.jsxs("div",{className:"ref-tryout-modal-sm__grid",children:[o.jsxs("div",{className:Qy("ref-tryout-modal-sm__section","flex-col dss-br-8 border-secondary-1px",r?"border-gray-primary-1px":""),children:[o.jsxs("div",{className:Qy("ref-tryout-section__header","flex-rows vt-center hz-space-between br-t-8px"),style:{background:"#434343"},children:[o.jsx("p",{className:Qy("color-text-inverse fs-14px fw-400 dss-my-0"),children:"Request"}),o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-6"),children:[o.jsx(hN,{options:J,btnClassName:"dss-br-8 dss-px-8 dss-py-6",ddPositionClassName:"bg-L1 overflow-y catalog-dd-max-h zIndex-12",btnStyles:{background:"#1F1F1F"},optionClassName:"color-primary fs-14px fw-400 dss-p-8",styles:{minWidth:X(110)},caretClassName:"color-text-inverse",children:o.jsx("div",{className:Qy("color-text-inverse fs-14px fw-400"),children:v.label||"Select Language"})}),o.jsx(uN,{placement:"top",tooltipOffset:8,tooltipEl:o.jsx("div",{className:Qy("fs-11px fw-500"),children:"Try it!"}),children:D?o.jsx(E_,{size:"md"}):o.jsx("div",{"aria-hidden":!0,onClick:ee,"aria-disabled":!!B,className:Qy("dss-p-6 dss-br-6 bg-brand flex-center cursor"),style:{border:"none"},children:o.jsx(Lw,{size:R.base,className:"color-text-inverse"})})})]})]}),o.jsx("div",{className:"ref-tryout-section__body br-b-8px",children:B?o.jsx("div",{className:Qy("flex-center fs-12px fw-400 dss-px-12 dss-py-20 h-100"),style:{color:"#FAFAFA",background:"#1F1F1F"},children:c?c.error:""}):o.jsx(tJ,{code:x,lang:me[v.language],theme:"dark",tokens:{bg:r?"#1F1F1F":"#434343"},style:{height:"100%",width:"100%",boxSizing:"border-box"}})})]}),o.jsx("div",{className:Qy("ref-tryout-modal-sm__section","dss-br-8 flex-col",r?"border-gray-primary-1px":"border-secondary-1px"),children:N||k?N&&h.statusCode===Y?o.jsxs("div",{className:Qy("w-100 h-100 flex-col"),style:{overflow:"hidden",background:r?"#F0F0F0":"#222325",minHeight:0},children:[o.jsxs("div",{className:Qy("ref-tryout-section__header","flex-rows vt-center hz-space-between br-t-8px"),style:{background:r?"#434343":"#F0F0F0"},children:[o.jsx("p",{className:Qy("color-text-inverse fs-14px fw-400 dss-my-0"),children:"Response"}),o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-8"),children:[o.jsx(hN,{options:K,ddPositionClassName:"bg-L1 overflow-y catalog-dd-max-h zIndex-12",optionClassName:"color-primary fs-11px fw-400 dss-p-8",caretClassName:"color-primary",children:o.jsx("div",{className:Qy(""),children:N?o.jsxs("div",{className:Qy("flex-rows dss-gap-8 vt-center"),children:[h.statusCode!==Y&&o.jsx(pX,{name:h.statusCode,textProps:{className:"",color:"color-primary",fontSize:"fs-12px",fontWeight:"fw-400"}}),o.jsx("div",{className:Qy("bg-base border-00-0_5px dss-br-4 fs-13px dss-px-4 dss-py-2 color-03"),children:"Log"})]}):k?o.jsx("div",{className:Qy("flex-rows dss-gap-8 vt-center"),children:o.jsx(pX,{name:k.name,textProps:{className:"",color:"color-primary",fontSize:"fs-12px",fontWeight:"fw-400"}})}):o.jsx(VK,{text:"Examples",textProps:{className:"",color:"color-primary",fontSize:"fs-12px",fontWeight:"fw-400"}})})}),o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-4"),children:[o.jsx("span",{className:Qy("br-circle"),style:{width:"8px",height:"8px",background:N?"#F24848":"#6B7280"}}),N&&h.statusCode!==Y?o.jsx("p",{className:Qy("color-text-inverse fs-11px fw-500 dss-my-0"),children:h.statusCode}):null]})]})]}),o.jsxs("div",{className:"ref-tryout-section__body flex-col vt-center hz-center text-center w-100 dss-py-20 dss-gap-8",children:[o.jsx(Ew,{size:R.xxl,className:"color-text-inverse"}),o.jsx("span",{className:"color-text-inverse fs-12px fw-400 lh-133",children:"Network Error"})]})]}):o.jsxs("div",{className:Qy("flex-col h-100 w-100"),style:{minHeight:0,overflow:"hidden"},children:[o.jsxs("div",{className:Qy("ref-tryout-section__header","flex-rows vt-center hz-space-between br-t-8px border-bottom-secondary-1px"),style:{background:r?"#434343":"#F0F0F0"},children:[o.jsx("p",{className:Qy("color-primary fs-14px fw-400 dss-my-0"),children:"Response"}),o.jsxs("div",{className:Qy("flex-rows vt-center dss-gap-8"),children:[o.jsx(hN,{options:K,ddPositionClassName:"bg-L1 overflow-y catalog-dd-max-h zIndex-12",optionClassName:"color-primary fs-11px fw-400 dss-p-8",caretClassName:"color-primary",children:o.jsx("div",{className:Qy(""),children:N?o.jsxs("div",{className:Qy("flex-rows dss-gap-8 vt-center"),children:[h.statusCode!==Y&&o.jsx(pX,{name:h.statusCode,textProps:{className:"",color:"color-primary",fontSize:"fs-12px",fontWeight:"fw-400"}}),o.jsx("div",{className:Qy("bg-base border-00-0_5px dss-br-4 fs-11px dss-px-4 dss-py-2 color-primary"),children:"Log"})]}):k?o.jsx("div",{className:Qy("flex-rows dss-gap-8 vt-center"),children:o.jsx(pX,{name:k.name,textProps:{className:"",color:"color-primary",fontSize:"fs-12px",fontWeight:"fw-400"}})}):o.jsx(VK,{text:"Examples",textProps:{className:"",color:"color-primary",fontSize:"fs-12px",fontWeight:"fw-400"}})})}),o.jsx("div",{className:Qy("flex-rows vt-center dss-gap-4"),children:N&&h.statusCode!==Y?o.jsx("p",{className:Qy("color-primary fs-11px fw-500 dss-my-0"),children:h.statusCode}):null})]})]}),o.jsx("div",{className:"ref-tryout-section__body",children:o.jsx(tJ,{code:N?H.value:F.value,lang:"json",style:{height:"100%",width:"100%",boxSizing:"border-box"},tokens:{attr:"#0265DC",string:r?"#FAFAFA":"#262626",punctuation:r?"#FAFAFA":"#262626",bg:r?"#1F1F1F":"#F5F5F5"}})})]}):o.jsxs("div",{className:Qy("flex-col h-100 w-100"),style:{minHeight:0,overflow:"hidden"},children:[o.jsxs("div",{className:Qy("ref-tryout-section__header","flex-rows vt-center hz-space-between br-t-8px border-bottom-secondary-1px"),style:{background:r?"#434343":"#F0F0F0"},children:[o.jsx("p",{className:Qy("color-primary fs-14px fw-400 dss-my-0"),children:"Response"}),o.jsx("div",{className:Qy("flex-rows vt-center dss-gap-8"),children:o.jsx(hN,{options:K,ddPositionClassName:"bg-L1 overflow-y catalog-dd-max-h zIndex-12",optionClassName:"color-primary fs-11px fw-400 dss-p-8",caretClassName:"color-primary",children:o.jsx("div",{className:Qy(""),children:N?o.jsxs("div",{className:Qy("flex-rows dss-gap-8 vt-center"),children:[h.statusCode!==Y&&o.jsx(pX,{name:h.statusCode,textProps:{className:"",color:"color-primary",fontSize:"fs-12px",fontWeight:"fw-400"}}),o.jsx("div",{className:Qy("bg-base border-00-0_5px dss-br-4 fs-13px dss-px-4 dss-py-2 color-03"),children:"Log"})]}):k?o.jsx("div",{className:Qy("flex-rows dss-gap-8 vt-center"),children:o.jsx(pX,{name:k.name,textProps:{className:"",color:"color-primary",fontSize:"fs-12px",fontWeight:"fw-400"}})}):o.jsx(VK,{text:"Examples",textProps:{className:"",color:"color-primary",fontSize:"fs-14px",fontWeight:"fw-400"}})})})})]}),o.jsxs("div",{className:"ref-tryout-section__body flex-col vt-center hz-center text-center dss-gap-8",style:{background:r?"#1F1F1F":"#F0F0F0"},children:[o.jsx(Ew,{size:R.xxl,className:"color-primary"}),o.jsx("span",{className:Qy("color-primary fs-12px fw-400 lh-133"),children:"No Response To Show Yet"}),o.jsxs("div",{className:Qy("flex-rows vt-center hz-center dss-gap-4 dss-px-8 dss-py-4 dss-br-6 cursor"),onClick:ee,children:[o.jsx(Lw,{size:R.md,className:"color-brand"}),o.jsx("p",{className:Qy("fs-12px fw-500 color-brand dss-my-0"),children:"Try Now"})]})]})]})})]}),o.jsxs("div",{className:Qy("ref-tryout-modal-sm__footer","flex-rows vt-center dss-gap-8 w-100"),children:[o.jsxs("div",{className:Qy("dss-br-6 border-secondary-1px bg-ground flex-center dss-gap-4 w-49 dss-h-40"),onClick:Z,children:[o.jsx(vw,{size:R.sm,className:Qy("color-primary")}),o.jsx("p",{className:Qy("color-secondary fs-11px fw-400 dss-my-0"),children:P})]}),o.jsx("div",{className:Qy("dss-br-6 bg-link flex-center dss-gap-4 w-49 dss-h-40"),onClick:ee,children:D?o.jsx(x_,{type:ne.BUTTON,color:"color-primary"}):o.jsxs(o.Fragment,{children:[o.jsx(Lw,{size:R.sm,className:Qy("color-button-00")}),o.jsx("p",{className:Qy("color-button-00 fs-11px fw-400 dss-my-0"),children:"Run"})]})})]})]}):null:d&&m===q.WORKFLOWS?null:o.jsx("div",{className:Qy("h-100 w-100 color-00 fs-14px flex-center"),children:o.jsx(JS,{message:"No Resource Selected"})})}var c7=p.default.memo(s7);function l7(){var n=t.useSelector(function(e){return e.guides.selectedDocument.tableOfContents},zy),r=t.useSelector(function(e){return e.guides.selectedAnchorId},zy),i=t.useSelector(function(e){return e.guides.selectedDocument.documentId},zy),a=t.useSelector(function(e){return e.guides.selectedDocument.content},zy),s=t.useSelector(function(e){return e.guides.selectedDocument.loading},zy),c=t.useDispatch();e.useEffect(function(){tf("")},[i]),e.useEffect(function(){var e=pd()?window.location.hash.substring(1):"",t=setInterval(function(){try{document.getElementById(e)?(l(e),clearInterval(t)):clearInterval(t)}catch(e){console.log("err",e)}},500)},[]);var l=e.useCallback(function(e){c(tf(e));var t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth",block:"start"})},[]);return s?o.jsx(E_,{message:"Loading Document"}):a?o.jsx("div",{className:Qy("dss-pl-24 dss-pt-60 dss-pr-80 flex-col dss-gap-16"),children:!(!n||!n.length)&&o.jsx(o.Fragment,{children:o.jsxs("div",{className:Qy("flex-col"),children:[o.jsx("div",{className:"dss-py-8",children:o.jsx("p",{className:"fw-700 fs-11px lh-16px color-primary",children:"TABLE OF CONTENTS"})}),o.jsx("div",{className:Qy("flex-col"),children:n.map(function(e){return o.jsxs("div",{children:[o.jsx("div",{"aria-hidden":!0,onClick:function(){return l(e.anchorId)},className:Qy("dss-px-12 dss-py-8 cursor","fs-13px fw-400",r===e.anchorId?"color-primary border-left-primary-1 fw-500":"hover-text-primary color-secondary hover-border-left-tertiary-1 border-left-gray-primary-1"),children:o.jsx("a",{href:"#".concat(e.anchorId),style:{textDecoration:"none",color:"inherit"},dangerouslySetInnerHTML:{__html:e.text}})},e.anchorId),e.h3s.map(function(e){return o.jsx("div",{"aria-hidden":!0,onClick:function(){return l(e.anchorId)},className:Qy("dss-px-28 dss-py-8 cursor text-truncate-1","fs-13px fw-400",r===e.anchorId?"color-primary border-left-tertiary-1 fw-500":"hover-text-primary color-secondary hover-border-left-tertiary-1 border-left-gray-primary-1"),dangerouslySetInnerHTML:{__html:e.text},title:e.text},e.anchorId)})]})})})]})})}):null}var u7=p.default.memo(l7);function p7(){var e=t.useSelector(function(e){return e.apiReference.view},zy),n=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy);return e===ae.INTRO?n?null:o.jsx(u7,{}):o.jsx(c7,{})}var d7=p.default.memo(p7),f7=function(){return _(function e(t){var n=t.swaggerData,r=t.swaggerId,o=t.revision,i=t.swaggerVersion,a=t.selectedMethod,s=t.selectedPath;v(this,e),this.swaggerData=n,this.swaggerId=r,this.revision=o,this.swaggerVersion=i,this.selectedMethod=a,this.selectedPath=s},[{key:"toObject",value:function(){return Object.freeze({swaggerData:this.swaggerData,swaggerId:this.swaggerId,revision:this.revision,swaggerVersion:this.swaggerVersion,selectedMethod:this.selectedMethod,selectedPath:this.selectedPath})}}])}(),h7={"modal-content":"style-module_modal-content__--LvD",sm:"style-module_sm__83wjc",md:"style-module_md__LmwBG",xl:"style-module_xl__fYj1a",full:"style-module_full__mLKLm"};function m7(t){var n=t.open,r=t.size,i=t.header,a=t.footer,s=t.children,l=t.onClickOutside,u=e.useRef(null),p=Ce(e.useState(null),2),d=p[0],f=p[1];return $_(u,function(){l&&l()}),e.useEffect(function(){var e=document.getElementById("app-root"),t=document.querySelector("#app-root .apiwiz-catalog-library")||document.querySelector(".apiwiz-catalog-library"),n=document.getElementById("modal-root");if(t){var r=t.querySelector("#modal-root")||document.createElement("div");return r.id="modal-root",r.parentElement||t.appendChild(r),void f(r)}if(e){if(n&&e.contains(n))return void f(n);var o=n||document.createElement("div");return o.id="modal-root",e.appendChild(o),void f(o)}n&&f(n)},[]),n&&d?c.createPortal(o.jsx("div",{className:Qy("modal","position-fixed ab-t-0px ab-l-0px","w-100 h-100vh bg-base-modalbg","zIndex-11","flex-rows hz-end"),children:o.jsxs("div",{ref:u,className:Qy(h7["modal-content"],h7[r],"modal-content","flex-col","bg-base"),children:[i?o.jsx("div",{className:Qy("dss-h-62"),children:i}):null,o.jsx("div",{className:Qy("modal-body",i&&a?"h--124px":a||i?"h--62px":"h-100"),children:s}),a?o.jsx("div",{className:Qy("dss-h-62"),children:a}):null]})}),d):null}m7.propTypes={open:tb.bool.isRequired,size:tb.string,children:tb.oneOfType([tb.element,tb.func,tb.object]),header:tb.element,footer:tb.element,onClickOutside:tb.func},m7.defaultProps={children:null,size:"xl",header:null,footer:null,onClickOutside:null};var g7,y7,v7=p.default.memo(m7);var b7=function(){if(y7)return g7;y7=1;var e=/^\s+|\s+$/g,t=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,r=/^0o[0-7]+$/i,o=parseInt,i="object"==typeof S&&S&&S.Object===Object&&S,a="object"==typeof self&&self&&self.Object===Object&&self,s=i||a||Function("return this")(),c=Object.prototype.toString,l=Math.max,u=Math.min,p=function(){return s.Date.now()};function d(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function f(i){if("number"==typeof i)return i;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==c.call(e)}(i))return NaN;if(d(i)){var a="function"==typeof i.valueOf?i.valueOf():i;i=d(a)?a+"":a}if("string"!=typeof i)return 0===i?i:+i;i=i.replace(e,"");var s=n.test(i);return s||r.test(i)?o(i.slice(2),s?2:8):t.test(i)?NaN:+i}return g7=function(e,t,n){var r,o,i,a,s,c,h=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=r,i=o;return r=o=void 0,h=t,a=e.apply(i,n)}function b(e){var n=e-c;return void 0===c||n>=t||n<0||g&&e-h>=i}function w(){var e=p();if(b(e))return x(e);s=setTimeout(w,function(e){var n=t-(e-c);return g?u(n,i-(e-h)):n}(e))}function x(e){return s=void 0,y&&r?v(e):(r=o=void 0,a)}function _(){var e=p(),n=b(e);if(r=arguments,o=this,c=e,n){if(void 0===s)return function(e){return h=e,s=setTimeout(w,t),m?v(e):a}(c);if(g)return s=setTimeout(w,t),v(c)}return void 0===s&&(s=setTimeout(w,t)),a}return t=f(t)||0,d(n)&&(m=!!n.leading,i=(g="maxWait"in n)?l(f(n.maxWait)||0,t):i,y="trailing"in n?!!n.trailing:y),_.cancel=function(){void 0!==s&&clearTimeout(s),h=0,r=c=o=s=void 0},_.flush=function(){return void 0===s?a:x(p())},_},g7}(),w7=N(b7);function x7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x7(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function E7(n){var r=n.moduleType,i=n.CenterContent,a=n.RightPanel,s=n.RightSidenav,c=n.LeftPanel,l=n.enableLeftPanel,u=n.appTheme,p=void 0===u?V.LIGHT:u,d=n.hideRightPanel,f=void 0!==d&&d,h=n.disableTryout,m=void 0!==h&&h,g=n.hideScroll,y=void 0!==g&&g,v=t.useDispatch(),b=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),w=t.useSelector(function(e){return e.libConfig.isLargeDevice},zy),x=t.useSelector(function(e){return e.libConfig.currentPKG},zy),_=t.useSelector(function(e){return e.workflows.view},zy),E=t.useSelector(function(e){return e.graphql.view},zy),k=t.useSelector(function(e){return e.apiReference.view},zy),O=t.useSelector(function(e){return e.apiReference.selected.operation},zy),A=t.useSelector(function(e){return e.apiReference.rightSidenavExpanded},zy),D=t.useSelector(function(e){return e.modal.smallDevice.curlModal}),M=Wy(),C=Ce(e.useState(!0),2),S=C[0],N=C[1],j=Ce(e.useState(!1),2),T=j[0],P=j[1],I=t.useSelector(function(e){return e.guides.guides}),R=t.useSelector(function(e){return e.guides.selectedDocument.content},zy),L=e.useRef(null),F=Ce(e.useState(!1),2),H=F[0],$=F[1],B=!f&&!m,U=function(e){var t=e.matches;v(qm(!!t))};e.useLayoutEffect(function(){!function(){class e extends Map{constructor(e,t){super(),this[cf]={type_:2,parent_:t,scope_:t?t.scope_:jf(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:e,draft_:this,isManual_:!1,revoked_:!1}}get size(){return Ef(this[cf]).size}has(e){return Ef(this[cf]).has(e)}set(e,n){const r=this[cf];return o(r),Ef(r).has(e)&&Ef(r).get(e)===n||(t(r),Wf(r),r.assigned_.set(e,!0),r.copy_.set(e,n),r.assigned_.set(e,!0)),this}delete(e){if(!this.has(e))return!1;const n=this[cf];return o(n),t(n),Wf(n),n.base_.has(e)?n.assigned_.set(e,!1):n.assigned_.delete(e),n.copy_.delete(e),!0}clear(){const e=this[cf];o(e),Ef(e).size&&(t(e),Wf(e),e.assigned_=new Map,gf(e.base_,t=>{e.assigned_.set(t,!1)}),e.copy_.clear())}forEach(e,t){Ef(this[cf]).forEach((n,r,o)=>{e.call(t,this.get(r),r,this)})}get(e){const n=this[cf];o(n);const r=Ef(n).get(e);if(n.finalized_||!ff(r))return r;if(r!==n.base_.get(e))return r;const i=Yf(r,n);return t(n),n.copy_.set(e,i),i}keys(){return Ef(this[cf]).keys()}values(){const e=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const t=e.next();return t.done?t:{done:!1,value:this.get(t.value)}}}}entries(){const e=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const t=e.next();if(t.done)return t;const n=this.get(t.value);return{done:!1,value:[t.value,n]}}}}[Symbol.iterator](){return this.entries()}}function t(e){e.copy_||(e.assigned_=new Map,e.copy_=new Map(e.base_))}class n extends Set{constructor(e,t){super(),this[cf]={type_:3,parent_:t,scope_:t?t.scope_:jf(),modified_:!1,finalized_:!1,copy_:void 0,base_:e,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return Ef(this[cf]).size}has(e){const t=this[cf];return o(t),t.copy_?!!t.copy_.has(e)||!(!t.drafts_.has(e)||!t.copy_.has(t.drafts_.get(e))):t.base_.has(e)}add(e){const t=this[cf];return o(t),this.has(e)||(r(t),Wf(t),t.copy_.add(e)),this}delete(e){if(!this.has(e))return!1;const t=this[cf];return o(t),r(t),Wf(t),t.copy_.delete(e)||!!t.drafts_.has(e)&&t.copy_.delete(t.drafts_.get(e))}clear(){const e=this[cf];o(e),Ef(e).size&&(r(e),Wf(e),e.copy_.clear())}values(){const e=this[cf];return o(e),r(e),e.copy_.values()}entries(){const e=this[cf];return o(e),r(e),e.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(e,t){const n=this.values();let r=n.next();for(;!r.done;)e.call(t,r.value,r.value,this),r=n.next()}}function r(e){e.copy_||(e.copy_=new Set,e.base_.forEach(t=>{if(ff(t)){const n=Yf(t,e);e.drafts_.set(t,n),e.copy_.add(n)}else e.copy_.add(t)}))}function o(e){e.revoked_&&uf(3,JSON.stringify(Ef(e)))}Nf("MapSet",{proxyMap_:function(t,n){return new e(t,n)},proxySet_:function(e,t){return new n(e,t)}})}(),v(Hm(r));var e=!1;return p&&(p===W.V2_APP.LIGHT?v(qm(!1)):v(qm(!0)),e=!0),pd()&&!e&&window.matchMedia&&(U(window.matchMedia("(prefers-color-scheme: dark)")),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",U)),e||v(qm(!1)),function(){pd()&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",U)}},[]);var z=w7(function(){v(Um())},500),Z=function(){z()};e.useEffect(function(){return pd()&&window.addEventListener("resize",Z),function(){pd()&&window.removeEventListener("resize",Z)}},[]),e.useEffect(function(){setTimeout(function(){return $(!0)},2e3)},[]),e.useEffect(function(){p&&p===V.DARK?v(qm(!0)):v(qm(!1))},[p]),e.useEffect(function(){N(!0),setTimeout(function(){N(!1)},1e3),x===q.API_ENDPOINTS&&k===ae.RESOURCE?P(!0):P(!1)},[x]),e.useEffect(function(){var e={};I.forEach(function(t){e[t.category]=t}),v(rf(e))},[I]),e.useEffect(function(){if(R&&x===q.GUIDES){if(!L.current)return;var e=function(){var e=null;R.blocks.forEach(function(t){"header"===t.type&&(document.getElementById(t.data.anchorId)&&document.getElementById(t.data.anchorId).getBoundingClientRect().top<=160&&(e=t.data.anchorId))}),e&&v(tf(e))};return L.current.addEventListener("scroll",e),function(){L&&L.current&&L.current.removeEventListener("scroll",e)}}},[R,H]),e.useEffect(function(){x===q.API_ENDPOINTS&&k===ae.RESOURCE?P(!0):P(!1)},[k]);var Y=e.useMemo(function(){return x===q.WORKFLOWS&&_===se.WORKFLOW_SELECTED||x===q.GRAPHQL&&E===ce.EXPLORER},[x,_]),G=function(){var e=document.getElementById(x===q.GUIDES?"":"center-title-bar");e&&e.scrollIntoView({behavior:"smooth"})},Q=e.useCallback(function(){b&&v(sg())},[]);e.useCallback(function(e){if(x===q.WORKFLOWS)return null;if(x===q.GRAPHQL&&E===ce.EXPLORER)return null;if(a){var t=x===q.GUIDES?o.jsx("div",{style:{width:"30%"},id:"right-panel-lg",className:Qy("overflow-y noscrollbar h-100"),children:o.jsx(a,_7({},e))}):o.jsx("div",{id:"right-panel-lg",className:Qy("ref-right-panel","h-100"),children:o.jsx(a,_7({},e))});return T?A?t:o.jsx("div",{className:Qy("right-sidenav"),children:o.jsx(s,_7({},e))}):t}return null},[a,s,x,E,T,A]);var K=e.useCallback(function(e){return x===q.WORKFLOWS?o.jsx("div",{id:"center-content-lg",className:Qy("center-content-fill h-100","border-right-00-1px",!Y&&"dss-px-56 dss-py-32","overflow-y noscrollbar w-75"),children:o.jsx(i,_7({},e))}):x===q.GRAPHQL&&E===ce.EXPLORER?o.jsx("div",{id:"center-content-lg",className:Qy("center-content-fill","border-right-00-1px","overflow-y noscrollbar"),children:o.jsx(i,_7({},e))}):o.jsx("div",{id:"center-content-lg",style:{flex:1,minWidth:0},className:Qy(T&&!A&&"center-content-expanded-right","flex-rows h-100 w-100"),ref:L,children:o.jsxs("div",{style:{height:"auto"},className:Qy("position-relative flex-col w-100",!Y&&""),children:[o.jsx(i,_7({},e)),x===q.API_ENDPOINTS&&!y&&o.jsx("div",{className:Qy("catalog-fab-stack catalog-fab-stack--desktop"),children:o.jsx("div",{id:"uparrow",className:Qy("catalog-fab-btn border-secondary-1px bg-gray-l2 color-primary hover-bg-L2"),children:o.jsx(ev,{size:M.xxl,onClick:G})})})]})})},[i,x,E,T,A,Y,y,M.xxl]);return b?o.jsx("div",{className:"flex-col w-100 h-100",children:o.jsx("div",{id:"body-layout-sm",className:Qy("page-pad-x page-pad-y","overflow-y noscrollbar"),children:S?o.jsx(E_,{message:"Loading...",size:"lg"}):o.jsxs("div",{className:Qy("flex-col position-relative h-100"),children:[o.jsx(i,_7({},n)),B&&(x===q.API_ENDPOINTS||x===q.GRAPHQL)&&o.jsx(v7,{open:D,onClickOutside:Q,size:"full",children:o.jsx("div",{className:Qy("right-panel h-100"),children:o.jsx(a,_7({},n))})}),o.jsxs("div",{className:Qy("catalog-fab-stack"),children:[(b&&x!==q.WORKFLOWS||w)&&o.jsx("div",{id:"uparrow",className:Qy("catalog-fab-btn border-secondary-1px bg-gray-l2 color-primary"),children:o.jsx(ev,{size:M.xxl,onClick:G})}),B&&(x===q.API_ENDPOINTS&&O&&Object.keys(O||{}).length>0||x===q.GRAPHQL)&&o.jsx("div",{className:Qy("catalog-fab-btn border-secondary-1px bg-gray-l2 color-primary"),children:o.jsx(lv,{size:M.xxl,onClick:function(){return v(sg())}})})]})]})})}):o.jsx("div",{className:"apiwiz-catalog-library",style:_7({height:"100%",width:"100%"},n.layoutStyles),children:o.jsx("div",{className:Qy("main-layout bg-ground text-size-md","w-100 h-100"),style:_7({},n.layoutStyles),children:o.jsx("div",{style:_7({display:"flex",alignItems:"center",overflowY:"hidden",width:"100%",height:"100%"},n.layoutStyles),children:S?o.jsx(E_,{message:"Loading...",size:"lg"}):o.jsxs(o.Fragment,{children:[l&&o.jsx("div",{className:Qy("left-panel left-panel-shell","h-100","border-right-00-1px"),children:c?o.jsx(c,{}):null}),x!==q.GUIDES||R&&R.blocks&&R.blocks.length?o.jsx("div",{className:Qy("main-content-shell flex-rows vt-stretch h-100 w-100 bg-L1"),children:o.jsx("div",{id:"panels-wrapper",className:Qy("flex-rows h-100 content-max"),children:K(n)})}):o.jsx(F_,{})]})})})})}var k7=p.default.memo(E7,zy);function O7(e){return e?(Ga({operations:Ya({swagger:e}).operations}).list||[]).map(function(e){var t,n;return{id:"".concat(e.apiMethod," ").concat(e.endpoint),method:e.apiMethod,path:e.endpoint,tag:((null===(t=e.api)||void 0===t?void 0:t.tags)||[])[0]||"default",summary:e.summary||(null===(n=e.api)||void 0===n?void 0:n.summary)||"",operation:e}}):[]}function A7(e){return ve(e)}function D7(e,t,n){return e.find(function(e){return e.method===t&&e.path===n})}function M7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function C7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M7(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var S7=[{id:"oas-2.0-enterprise",label:"OAS 2.0 — Enterprise Commerce",swaggerData:{swagger:"2.0",info:{title:"Swagger Petstore",version:"1.0.7",description:"The **Swagger Petstore** is a complete sample API that demonstrates how a real-world catalog is organized and documented. It models a small online pet store and is grouped into three domains:\n\n- **Pet** — create, update, search, and manage the animals available for adoption or sale.\n- **Store** — inspect inventory levels and place or track purchase orders.\n- **User** — register accounts and manage the full user lifecycle, including authentication.\n\nUse it as a reference for how endpoints, request/response models, authentication, and example values appear in the catalog. For testing the authorization filters you can use the API key `special-key`.\n\nLearn more at [swagger.io](http://swagger.io) or join the community on [irc.freenode.net, #swagger](http://swagger.io/irc/).",termsOfService:"http://swagger.io/terms/",contact:{name:"Petstore API Support",url:"http://swagger.io",email:"apiteam@swagger.io"},license:{name:"Apache 2.0",url:"http://www.apache.org/licenses/LICENSE-2.0.html"}},host:"petstore.swagger.io",basePath:"/v2",schemes:["https","http"],tags:[{name:"pet",description:"Everything about your Pets — add new animals to the catalog, update their details, search by status or tags, upload photos, and remove listings.",externalDocs:{description:"Find out more",url:"http://swagger.io"}},{name:"store",description:"Access to Petstore orders — check live inventory by status and place, retrieve, or cancel purchase orders.",externalDocs:{description:"Find out more about our store",url:"http://swagger.io"}},{name:"user",description:"Operations about users — register accounts, authenticate, and manage the user lifecycle from creation through deletion.",externalDocs:{description:"Find out more about our store",url:"http://swagger.io"}}],paths:{"/pet":{post:{tags:["pet"],summary:"Add a new pet to the store",description:"Creates a brand-new pet listing in the catalog. Provide the full Pet object in the request body — at minimum a `name` and one or more `photoUrls` are required. The store assigns and returns the generated `id`.",operationId:"addPet",consumes:["application/json","application/xml"],produces:["application/json","application/xml"],parameters:[{name:"Authorization",in:"header",description:"Authorization token for the request. Use `Bearer special-key` for testing.",required:!0,type:"string",default:"Bearer special-key"},{in:"body",name:"body",description:"The Pet object to add to the store. Include the pet's name, photo URLs, optional category, tags, and availability status.",required:!0,schema:{$ref:"#/definitions/Pet"}}],responses:{200:{description:"Pet created successfully.",schema:{$ref:"#/definitions/Pet"}},405:{description:"Invalid input — the request body failed validation."}},security:[{petstore_auth:["write:pets","read:pets"]}]},put:{tags:["pet"],summary:"Update an existing pet",description:"Updates an existing pet listing in place. Supply the complete Pet object, including the `id` of the pet you wish to modify. Fields omitted from the body may be cleared, so send the full representation.",operationId:"updatePet",consumes:["application/json","application/xml"],produces:["application/json","application/xml"],parameters:[{name:"Authorization",in:"header",description:"Authorization token for the request. Use `Bearer special-key` for testing.",required:!0,type:"string",default:"Bearer special-key"},{in:"body",name:"body",description:"The Pet object containing the updated details. The `id` field identifies which pet to update.",required:!0,schema:{$ref:"#/definitions/Pet"}}],responses:{200:{description:"Pet updated successfully.",schema:{$ref:"#/definitions/Pet"}},400:{description:"Invalid ID supplied."},404:{description:"Pet not found."},405:{description:"Validation exception — one or more fields failed validation."}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/pet/findByStatus":{get:{tags:["pet"],summary:"Find pets by status",description:"Returns all pets that match the supplied availability status. Multiple status values can be provided as a comma-separated list to widen the search — for example `available,pending`.",operationId:"findPetsByStatus",produces:["application/json","application/xml"],parameters:[{name:"Authorization",in:"header",description:"Authorization token for the request. Use `Bearer special-key` for testing.",required:!0,type:"string",default:"Bearer special-key"},{name:"status",in:"query",description:"The availability statuses to filter pets by. Accepts one or more of: `available`, `pending`, `sold`.",required:!0,type:"array",items:{type:"string",enum:["available","pending","sold"],default:"available"},default:["available"],collectionFormat:"multi"}],responses:{200:{description:"A list of pets matching the requested status(es).",schema:{type:"array",items:{$ref:"#/definitions/Pet"}}},400:{description:"Invalid status value — one of the supplied statuses is not recognized."}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/pet/findByTags":{get:{tags:["pet"],summary:"Find pets by tags",description:"Returns all pets that carry the supplied tags. Multiple tags can be provided as a comma-separated list. Use `tag1`, `tag2`, `tag3` for testing.\n\n> **Deprecated:** This endpoint is retained for backwards compatibility and may be removed in a future release.",operationId:"findPetsByTags",produces:["application/json","application/xml"],parameters:[{name:"Authorization",in:"header",description:"Authorization token for the request. Use `Bearer special-key` for testing.",required:!0,type:"string",default:"Bearer special-key"},{name:"tags",in:"query",description:"One or more tags to filter pets by.",required:!0,type:"array",items:{type:"string"},default:["tag1"],collectionFormat:"multi"}],responses:{200:{description:"A list of pets matching the requested tag(s).",schema:{type:"array",items:{$ref:"#/definitions/Pet"}}},400:{description:"Invalid tag value."}},security:[{petstore_auth:["write:pets","read:pets"]}],deprecated:!0}},"/pet/{petId}":{get:{tags:["pet"],summary:"Find pet by ID",description:"Returns a single pet by its unique identifier. Use this to retrieve the full details of one specific animal in the catalog.",operationId:"getPetById",produces:["application/json","application/xml"],parameters:[{name:"Authorization",in:"header",description:"Authorization token for the request. Use `Bearer special-key` for testing.",required:!0,type:"string",default:"Bearer special-key"},{name:"petId",in:"path",description:"The unique ID of the pet to fetch.",required:!0,type:"integer",format:"int64",default:10}],responses:{200:{description:"The requested pet.",schema:{$ref:"#/definitions/Pet"}},400:{description:"Invalid ID supplied."},404:{description:"Pet not found."}},security:[{api_key:[]}]},post:{tags:["pet"],summary:"Update a pet with form data",description:"Updates the name and/or status of an existing pet using URL-encoded form data. Handy for lightweight edits without sending the full Pet object.",operationId:"updatePetWithForm",consumes:["application/x-www-form-urlencoded"],produces:["application/json","application/xml"],parameters:[{name:"Authorization",in:"header",description:"Authorization token for the request. Use `Bearer special-key` for testing.",required:!0,type:"string",default:"Bearer special-key"},{name:"petId",in:"path",description:"The unique ID of the pet to update.",required:!0,type:"integer",format:"int64",default:10},{name:"name",in:"formData",description:"The new name for the pet.",required:!1,type:"string",default:"doggie"},{name:"status",in:"formData",description:"The new availability status for the pet (`available`, `pending`, or `sold`).",required:!1,type:"string",enum:["available","pending","sold"],default:"available"}],responses:{405:{description:"Invalid input."}},security:[{petstore_auth:["write:pets","read:pets"]}]},delete:{tags:["pet"],summary:"Delete a pet",description:"Permanently removes a pet listing from the catalog. This action cannot be undone.",operationId:"deletePet",produces:["application/json","application/xml"],parameters:[{name:"Authorization",in:"header",description:"Authorization token for the request. Use `Bearer special-key` for testing.",required:!0,type:"string",default:"Bearer special-key"},{name:"api_key",in:"header",description:"API key authorizing the deletion.",required:!1,type:"string",default:"special-key"},{name:"petId",in:"path",description:"The unique ID of the pet to delete.",required:!0,type:"integer",format:"int64",default:10}],responses:{400:{description:"Invalid ID supplied."},404:{description:"Pet not found."}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/pet/{petId}/uploadImage":{post:{tags:["pet"],summary:"Upload an image for a pet",description:"Uploads a photo and attaches it to the specified pet. The image is sent as multipart form data, with optional free-text metadata describing the upload.",operationId:"uploadFile",consumes:["multipart/form-data"],produces:["application/json"],parameters:[{name:"Authorization",in:"header",description:"Authorization token for the request. Use `Bearer special-key` for testing.",required:!0,type:"string",default:"Bearer special-key"},{name:"petId",in:"path",description:"The unique ID of the pet to attach the image to.",required:!0,type:"integer",format:"int64",default:10},{name:"additionalMetadata",in:"formData",description:"Optional free-text metadata to store alongside the image.",required:!1,type:"string",default:"Profile photo"},{name:"file",in:"formData",description:"The image file to upload.",required:!1,type:"file"}],responses:{200:{description:"Image uploaded successfully.",schema:{$ref:"#/definitions/ApiResponse"}}},security:[{petstore_auth:["write:pets","read:pets"]}]}},"/store/inventory":{get:{tags:["store"],summary:"Get pet inventory by status",description:"Returns a map of availability statuses to the number of pets currently in each. Useful for at-a-glance stock reporting.",operationId:"getInventory",produces:["application/json"],parameters:[{name:"Authorization",in:"header",description:"Authorization token for the request. Use `Bearer special-key` for testing.",required:!0,type:"string",default:"Bearer special-key"}],responses:{200:{description:"A map of status codes to the quantity of pets in each.",schema:{type:"object",additionalProperties:{type:"integer",format:"int32"}}}},security:[{api_key:[]}]}},"/store/order":{post:{tags:["store"],summary:"Place an order for a pet",description:"Submits a new purchase order for a pet. Provide the pet's ID, the desired quantity, and an optional ship date. The store returns the created order, including its generated `id` and current status.",operationId:"placeOrder",consumes:["application/json"],produces:["application/json","application/xml"],parameters:[{in:"body",name:"body",description:"The order to place, describing which pet to purchase and how many.",required:!0,schema:{$ref:"#/definitions/Order"}}],responses:{200:{description:"Order placed successfully.",schema:{$ref:"#/definitions/Order"}},400:{description:"Invalid order — the request body failed validation."}}}},"/store/order/{orderId}":{get:{tags:["store"],summary:"Find purchase order by ID",description:"Retrieves a single purchase order by its ID. For a valid response, use an integer ID between 1 and 10 (inclusive). Values outside this range will generate exceptions.",operationId:"getOrderById",produces:["application/json","application/xml"],parameters:[{name:"orderId",in:"path",description:"The ID of the order to fetch. Must be between 1 and 10.",required:!0,type:"integer",maximum:10,minimum:1,format:"int64",default:1}],responses:{200:{description:"The requested order.",schema:{$ref:"#/definitions/Order"}},400:{description:"Invalid ID supplied."},404:{description:"Order not found."}}},delete:{tags:["store"],summary:"Delete purchase order by ID",description:"Cancels and deletes a purchase order by its ID. For a valid response use a positive integer ID. Negative or non-integer values will generate API errors.",operationId:"deleteOrder",produces:["application/json","application/xml"],parameters:[{name:"orderId",in:"path",description:"The ID of the order to delete. Must be a positive integer.",required:!0,type:"integer",minimum:1,format:"int64",default:1}],responses:{400:{description:"Invalid ID supplied."},404:{description:"Order not found."}}}},"/user":{post:{tags:["user"],summary:"Create user",description:"Registers a single new user account. This operation can only be performed by a logged-in user.",operationId:"createUser",consumes:["application/json"],produces:["application/json","application/xml"],parameters:[{in:"body",name:"body",description:"The user account to create.",required:!0,schema:{$ref:"#/definitions/User"}}],responses:{default:{description:"Successful operation."}}}},"/user/createWithArray":{post:{tags:["user"],summary:"Create users from an array",description:"Registers multiple user accounts at once from a JSON array of User objects.",operationId:"createUsersWithArrayInput",consumes:["application/json"],produces:["application/json","application/xml"],parameters:[{in:"body",name:"body",description:"An array of user objects to create.",required:!0,schema:{type:"array",items:{$ref:"#/definitions/User"}}}],responses:{default:{description:"Successful operation."}}}},"/user/createWithList":{post:{tags:["user"],summary:"Create users from a list",description:"Registers multiple user accounts at once from a JSON list of User objects.",operationId:"createUsersWithListInput",consumes:["application/json"],produces:["application/json","application/xml"],parameters:[{in:"body",name:"body",description:"A list of user objects to create.",required:!0,schema:{type:"array",items:{$ref:"#/definitions/User"}}}],responses:{default:{description:"Successful operation."}}}},"/user/login":{get:{tags:["user"],summary:"Log user into the system",description:"Authenticates a user with their username and password and returns a session token. The response headers also report the rate limit and token expiry time.",operationId:"loginUser",produces:["application/json","application/xml"],parameters:[{name:"username",in:"query",description:"The username to log in with.",required:!0,type:"string",default:"user1"},{name:"password",in:"query",description:"The password for the account, in clear text.",required:!0,type:"string",default:"12345"}],responses:{200:{description:"Login successful — returns a session token.",headers:{"X-Rate-Limit":{type:"integer",format:"int32",description:"Number of API calls per hour allowed by the user."},"X-Expires-After":{type:"string",format:"date-time",description:"The UTC date and time at which the returned token expires."}},schema:{type:"string"}},400:{description:"Invalid username or password supplied."}}}},"/user/logout":{get:{tags:["user"],summary:"Log out the current user session",description:"Ends the session of the currently logged-in user, invalidating their token.",operationId:"logoutUser",produces:["application/json","application/xml"],parameters:[],responses:{default:{description:"Successful operation."}}}},"/user/{username}":{get:{tags:["user"],summary:"Get user by username",description:"Retrieves the profile details of a single user by their username. Use `user1` for testing.",operationId:"getUserByName",produces:["application/json","application/xml"],parameters:[{name:"username",in:"path",description:"The username of the account to fetch. Use `user1` for testing.",required:!0,type:"string",default:"user1"}],responses:{200:{description:"The requested user.",schema:{$ref:"#/definitions/User"}},400:{description:"Invalid username supplied."},404:{description:"User not found."}}},put:{tags:["user"],summary:"Update user",description:"Updates the profile of an existing user. This operation can only be performed by the logged-in user.",operationId:"updateUser",consumes:["application/json"],produces:["application/json","application/xml"],parameters:[{name:"username",in:"path",description:"The username of the account to update.",required:!0,type:"string",default:"user1"},{in:"body",name:"body",description:"The updated user object.",required:!0,schema:{$ref:"#/definitions/User"}}],responses:{400:{description:"Invalid user supplied."},404:{description:"User not found."}}},delete:{tags:["user"],summary:"Delete user",description:"Permanently deletes a user account. This operation can only be performed by the logged-in user.",operationId:"deleteUser",produces:["application/json","application/xml"],parameters:[{name:"username",in:"path",description:"The username of the account to delete.",required:!0,type:"string",default:"user1"}],responses:{400:{description:"Invalid username supplied."},404:{description:"User not found."}}}}},securityDefinitions:{api_key:{type:"apiKey",description:"API key authentication. Pass your key in the `api_key` request header.",name:"api_key",in:"header"},petstore_auth:{type:"oauth2",description:"OAuth2 authentication using the implicit flow. Grants scoped access to read and modify pets.",authorizationUrl:"https://petstore.swagger.io/oauth/authorize",flow:"implicit",scopes:{"read:pets":"Read access to your pets.","write:pets":"Create and modify pets in your account."}}},definitions:{Pet:{type:"object",description:"A pet available in the store, including its category, photos, tags, and availability status.",required:["name","photoUrls"],properties:{id:{type:"integer",format:"int64",description:"Unique identifier for the pet, assigned by the store.",example:10},category:{$ref:"#/definitions/Category"},name:{type:"string",description:"The pet's display name.",example:"doggie"},photoUrls:{type:"array",description:"One or more URLs pointing to photos of the pet.",xml:{wrapped:!0},items:{type:"string",xml:{name:"photoUrl"},example:"https://example.com/photos/doggie.jpg"},default:["https://example.com/photos/doggie.jpg"]},tags:{type:"array",description:"Tags used to categorize and search for the pet.",xml:{wrapped:!0},items:{xml:{name:"tag"},$ref:"#/definitions/Tag"}},status:{type:"string",description:"Availability status of the pet in the store.",enum:["available","pending","sold"],example:"available"}},xml:{name:"Pet"},example:{id:10,name:"doggie",category:{id:1,name:"Dogs"},photoUrls:["https://example.com/photos/doggie.jpg"],tags:[{id:1,name:"friendly"}],status:"available"}},Category:{type:"object",description:"A grouping that classifies pets, such as `Dogs` or `Cats`.",properties:{id:{type:"integer",format:"int64",description:"Unique identifier for the category.",example:1},name:{type:"string",description:"The display name of the category.",example:"Dogs"}},xml:{name:"Category"}},Tag:{type:"object",description:"A label that can be attached to a pet for searching and filtering.",properties:{id:{type:"integer",format:"int64",description:"Unique identifier for the tag.",example:1},name:{type:"string",description:"The display name of the tag.",example:"friendly"}},xml:{name:"Tag"}},Order:{type:"object",description:"A purchase order placed against the store for a specific pet.",properties:{id:{type:"integer",format:"int64",description:"Unique identifier for the order.",example:10},petId:{type:"integer",format:"int64",description:"The ID of the pet being purchased.",example:198772},quantity:{type:"integer",format:"int32",description:"Number of pets being ordered.",example:7},shipDate:{type:"string",format:"date-time",description:"The requested or scheduled shipment date and time, in UTC."},status:{type:"string",description:"Current status of the order.",enum:["placed","approved","delivered"],example:"approved"},complete:{type:"boolean",description:"Whether the order has been fully completed.",example:!1}},xml:{name:"Order"},example:{id:10,petId:198772,quantity:7,shipDate:"2026-06-26T10:00:00.000Z",status:"approved",complete:!1}},User:{type:"object",description:"A registered user account in the store.",properties:{id:{type:"integer",format:"int64",description:"Unique identifier for the user.",example:10},username:{type:"string",description:"The user's unique login name.",example:"theUser"},firstName:{type:"string",description:"The user's first name.",example:"John"},lastName:{type:"string",description:"The user's last name.",example:"James"},email:{type:"string",description:"The user's email address.",example:"john@email.com"},password:{type:"string",description:"The user's password (stored securely on the server).",example:"12345"},phone:{type:"string",description:"The user's contact phone number.",example:"12345"},userStatus:{type:"integer",format:"int32",description:"Account status flag (for example, active or suspended).",example:1}},xml:{name:"User"},example:{id:10,username:"theUser",firstName:"John",lastName:"James",email:"john@email.com",password:"12345",phone:"12345",userStatus:1}},ApiResponse:{type:"object",description:"A generic message returned by the API to describe the outcome of an operation.",properties:{code:{type:"integer",format:"int32",description:"A numeric status code for the operation.",example:200},type:{type:"string",description:"A short category for the response.",example:"success"},message:{type:"string",description:"A human-readable description of the outcome.",example:"Image uploaded successfully."}}}},externalDocs:{description:"Find out more about Swagger",url:"http://swagger.io"}},defaultMethod:"GET",defaultPath:"/products"},{id:"oas-3.0-extreme",label:"OAS 3.0 — Extreme Enterprise Platform",swaggerData:{openapi:"3.0.1",info:{title:"AppEnhancer Web Server",version:"v26.2.0"},paths:{"/api/v1/datasources/{dsn}/adhocqueryresults/{id}":{post:{tags:["AdhocQueryResults"],summary:"Run an adhoc query. This API supports the following OData query options: $Top, $Skip, $Count and $OrderBy.",description:'Example 1: The empty request body for querying all documents.\r\n```\r\n{}\r\n```\r\nExample 2: The request body for executing a document query.\r\n```\r\n{\r\n "QueryType": "DocumentQuery",\r\n "Indexes": [\r\n {\r\n "Name": "NAME",\r\n "Value": "pdf*",\r\n "IsODMAField": false,\r\n "Searchable": true,\r\n "Displayable": true\r\n }\r\n ]\r\n}\r\n```\r\nExample 3: The request body for executing a cross app query.\r\n```\r\n{\r\n "QueryType": "CrossAppQuery",\r\n "Indexes": [\r\n {\r\n "Name": "NAME",\r\n "Value": "pdf*",\r\n "IsODMAField": false,\r\n "Searchable": true,\r\n "Displayable": true\r\n }\r\n ],\r\n "Apps": [1,4]\r\n}\r\n```\r\nExample 4: The request body for executing a full-text query.\r\n```\r\n{\r\n "QueryType": "DocumentQuery",\r\n "FullText": {\r\n "QueryOperator": "And",\r\n "SearchType": "And",\r\n "Thesaurus": false,\r\n "Value": "software"\r\n }\r\n}\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32",default:0}},{name:"nativetype",in:"query",description:"Whether to return native index value type in the resultset",schema:{type:"boolean",default:!1}}],requestBody:{description:"QueryModel object",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryModel"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryResultCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryResultCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/appattributesdefinitions":{get:{tags:["AppAttributesDefinitions"],summary:"Get all application attributes definitions",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"object",additionalProperties:{type:"string"},description:"A list of all application attributes"}},'application/json; profile="urn:camelcase:upper"':{schema:{type:"object",additionalProperties:{type:"string"},description:"A list of all application attributes"}}}}}}},"/api/v1/datasources/{dsn}/appautoindexlookup/{id}":{post:{tags:["AppAutoIndexLookup"],summary:"Look up auto indexes that match provided query indexes",description:'Example 1: The request body for getting all auto index result collection.\r\n```\r\n[]\r\n```\r\nExample 2: The request body for getting the matched auto indexes.\r\n```\r\n[\r\n {\r\n "Name": "NAME",\r\n "Value": "PDF*"\r\n }\r\n]\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"nativetype",in:"query",description:"Whether to return native index value type in the result set",schema:{type:"boolean",default:!1}}],requestBody:{description:"Query index array",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryIndex"}}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryResultCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryResultCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["AppAutoIndexLookup"],summary:"Delete all auto indexes",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}}],responses:{204:{description:"No Content"},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/appautoindexlookup/{id}/{idx}":{delete:{tags:["AppAutoIndexLookup"],summary:"Delete a specific auto index",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"Auto index ID. Must be greater than 0.",required:!0,schema:{type:"integer",format:"int32"}}],responses:{204:{description:"No Content"},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/appfields/{id}":{get:{tags:["AppFields"],summary:"Get all application field resources for the specified data source. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.AppFields"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.AppFields"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/appfields/{id}/{idx}":{get:{tags:["AppFields"],summary:"Get a specific application field resource",description:"",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"Field ID",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.AppField"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.AppField"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/appkeyreflookup/{id}":{get:{tags:["AppKeyRefLookup"],summary:"Look up key reference index values that match provided field value",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"fieldvalue",in:"query",description:"KeyRef value to lookup for",required:!0,schema:{type:"string"}},{name:"nativetype",in:"query",description:"Whether to return native type index value",schema:{type:"boolean",default:!1}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.KeyRefIndexResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.KeyRefIndexResponse"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps":{get:{tags:["Apps"],summary:"Get all application resources for the specified data source. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Apps"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Apps"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{id}":{get:{tags:["Apps"],summary:"Get a specific application resource.",description:"",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID or application name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Apps"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Apps"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/appselectindexlookup/{id}":{post:{tags:["AppSelectIndexLookup"],summary:"Look up the selected indexes that match provided query indexes",description:'Example 1: The request body for getting all index result collection.\r\n```\r\n[]\r\n```\r\nExample 2: The request body for getting the matched indexes.\r\n```\r\n[\r\n {\r\n "Name": "NAME",\r\n "Value": "PDF*"\r\n }\r\n]\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"keyRefOuterJoin",in:"query",description:"Whether to get KeyRef OuterJoin",schema:{type:"boolean",default:!1}},{name:"nativetype",in:"query",description:"Whether to return native index value type in the resultset",schema:{type:"boolean",default:!1}}],requestBody:{description:"Query index array",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryIndex"}}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryResultCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryResultCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/auth/providers/oauth":{get:{tags:["Auth"],summary:"Get information about the available OAuth providers.",responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.OAuthProvidersResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.OAuthProvidersResponse"}}}}}}},"/api/v1/auth/providers/oauth/{providerName}":{get:{tags:["Auth"],summary:"Get information about the specified OAuth provider.",parameters:[{name:"providerName",in:"path",description:"",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.OAuthProvider"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.OAuthProvider"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/auth/login":{post:{tags:["Auth"],summary:"Authenticate the user based on the data source, user name and password",description:'Call this function to get an access token and a refresh token.\r\n\r\nExample 1: The request body for logging in with full-text search support option.\r\n```\r\n{\r\n "DataSource": "AEDEMO",\r\n "Username": "ADMIN",\r\n "Password":"password",\r\n "LicenseFlags":"FulltextSearchLicense"\r\n}\r\n```',requestBody:{description:"The authentication request data",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.LoginRequest"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.LoginResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.LoginResponse"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/auth/logout":{post:{tags:["Auth"],summary:"Invalidates the user's refresh token.",description:"Ends the user's access to the data source associated with the access token.",requestBody:{description:"Optional current access token and refresh token",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.LogoutRequest"}}}},responses:{200:{description:"OK"},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/auth/refreshaccesstoken":{post:{tags:["Auth"],summary:"Request another access token after the current one expires.",description:"Requesting another access token will reset the user's inactivity timeout.",requestBody:{description:"Optional current access token and refresh token",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.RefreshRequest"}}}},responses:{200:{description:"OK",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Unauthorized",content:{"text/plain":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/batches/{appid}":{get:{tags:["Batches"],summary:"Get the batch collection for the specified application. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},post:{tags:["Batches"],summary:"Create a batch by moving or copying pages from existing document when docid is set",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"docid",in:"query",description:"Source document id",schema:{type:"integer",format:"int32"}},{name:"pagerange",in:"query",description:'Page range such as "1, 3-5, 7-22"',schema:{type:"string"}},{name:"ismove",in:"query",description:"Whether move or copy action",schema:{type:"boolean",default:!1}},{name:"targetbatch",in:"query",description:"the name for target batch. Create a new batch if this is provided as null or empty",schema:{type:"string"}},{name:"access",in:"query",description:"Doc access request flag for HIPAA requirement",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests"}},{name:"comment",in:"query",description:"Doc access comment for HIPAA requirement",schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/batches/{appid}/{id}":{get:{tags:["Batches"],summary:"Get the batch resource for the specified batch.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},post:{tags:["Batches"],summary:"Create a new batch document or append to existing batch document from json data",description:' Example 1: Create a batch from a multipart/form-data request body which contains data and binfileref\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="data"\r\n \r\n{"Name":"batch name","Description":"a batch","ID":0}\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="binfileref"; filename="test.txt"\r\nContent-Type: text/plain\r\n \r\nC:\\test.PNG\r\n----------------------------394098244805491441835859--\r\n \r\n```\r\n Example 2: Create a batch from a multipart/form-data request body which contains data, bin, annotation and text\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="data"\r\n \r\n{"Name":"batch name","Description":"a batch","ID":0}\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="bin"; filename="test.JPG"\r\nContent-Type: image/jpeg\r\n \r\nbin file data\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="annotation"; filename="test.ano"\r\nContent-Type: application/octet-stream\r\n \r\nannotation file data\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="text"; filename="test.tx"\r\nContent-Type: application/octet-stream\r\n \r\ntext file data\r\n----------------------------394098244805491441835859--\r\n \r\n```\r\n Example 3: Create a batch by specifying the group owner from a multipart/form-data request body which contains data and binfileref\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="data"\r\n \r\n{"Name":"batch name","Description":"a batch","ID":0, "Group":"group_test"}\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="binfileref"; filename="test.txt"\r\nContent-Type: text/plain\r\n \r\nC:\\test.PNG\r\n----------------------------394098244805491441835859--\r\n \r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch id to append to existing batch document or 0 for new batch.",required:!0,schema:{type:"integer",format:"int32"}},{name:"COLDFormName",in:"query",description:"COLD form name",schema:{type:"string"}},{name:"importOption",in:"query",description:"Bin file import option",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.BinFileImportOptions"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},put:{tags:["Batches"],summary:"Modify an existing batch",description:'Only the name, description, private and group fields can be modified.\r\n\r\nExample 1: The request body for modifying the batch name, batch description and the group.\r\n```\r\n{\r\n "Name": "batch_modify",\r\n "Description": "description_modify",\r\n "Private":true,\r\n "Group":"G1"\r\n}\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}}],requestBody:{description:"Message Body. Updated batch information",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["Batches"],summary:"Delete a specific batch",description:"If a batch is currently not locked and forcedelete is false, an exception will be thrown if the batch can't be locked.\r\n If the batch is currently not locked and forcedelete is true, the user must have Administrator permission to force the deletion.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}},{name:"forcedelete",in:"query",description:"Force batch delete",schema:{type:"boolean",default:!1}}],responses:{204:{description:"No Content"},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/batches/{batchid}":{post:{tags:["Batches"],summary:"Create a batch by moving or copying pages from an existing batch",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application id",required:!0,schema:{type:"integer",format:"int32"}},{name:"batchid",in:"path",description:"Source batch name or id",required:!0,schema:{type:"string"}},{name:"pagerange",in:"query",description:'Page range, such as "1, 3-5, 7-22"',required:!0,schema:{type:"string"}},{name:"ismove",in:"query",description:"Whether to move or copy",schema:{type:"boolean",default:!1}},{name:"targetbatch",in:"query",description:"The name for the target batch. Create a new batch if this is provided as null or empty",schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/batches/{appid}/batchlock/{id}":{post:{tags:["Batches"],summary:"Lock a batch for access.",description:"If the batch is already locked in another mode, this will change to the designated mode.\r\nIf the batch is already locked with the same mode, this call with succeed without change anything.\r\nA locked batch can be unlocked by calling DELETE BatchLock with forceIdle = true.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}},{name:"isScan",in:"query",description:"Scan lock if true, index lock if false",schema:{type:"boolean",default:!0}}],responses:{204:{description:"No Content"},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["Batches"],summary:"Unlock a batch.",description:"",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}}],responses:{204:{description:"No Content"},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/batchpages/{id}":{get:{tags:["BatchPages"],summary:"Get batch pages collection. This API supports the following OData query options: $Top, $Skip and $Count. If $top is omitted, the default page size is 10.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchPagesCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchPagesCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},post:{tags:["BatchPages"],summary:"Add a new page into a batch with optional annotation and text file",description:' Example 1: Add a new batch page from a multipart/form-data request body which contains binfileref\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="binfileref"; filename="test.txt"\r\nContent-Type: text/plain\r\n \r\nC:\\test.PNG\r\n----------------------------394098244805491441835859--\r\n \r\n```\r\n Example 2: Add a new batch page from a multipart/form-data request body which contains data, bin, annotation and text\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="bin"; filename="test.JPG"\r\nContent-Type: image/jpeg\r\n \r\nbin file data\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="annotation"; filename="test.ano"\r\nContent-Type: application/octet-stream\r\n \r\nannotation file data\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="text"; filename="test.tx"\r\nContent-Type: application/octet-stream\r\n \r\ntext file data\r\n----------------------------394098244805491441835859--\r\n \r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}},{name:"COLDFormName",in:"query",description:"COLD form name",schema:{type:"string"}},{name:"importOption",in:"query",description:"Bin file import option",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.BinFileImportOptions"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchPage"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchPage"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/batchpages/{id}/{idx}":{get:{tags:["BatchPages"],summary:"Get batch page",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}},{name:"idx",in:"path",description:"1-based batch page index",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchPage"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchPage"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},put:{tags:["BatchPages"],summary:"Modify existing batch page",description:"Add or modify annotation file or text file from multipart form-data.\r\n\r\nBIN file can't be changed.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}},{name:"idx",in:"path",description:"1-based batch page index",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchPage"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchPage"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["BatchPages"],summary:"Delete batch page",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Batch ID or batch name",required:!0,schema:{type:"string"}},{name:"idx",in:"path",description:"1-based batch page index",required:!0,schema:{type:"integer",format:"int32"}}],responses:{204:{description:"No Content"},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/caqquery/{id}":{get:{tags:["CAQQuery"],summary:"Get a CAQ saved query.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Query ID or name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CAQConfig"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CAQConfig"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/usercollection":{get:{tags:["Collection"],summary:"Get the user collection for the specified data source. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserCollection"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/groupcollection":{get:{tags:["Collection"],summary:"Get the group collection for the specified data source. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.GroupCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.GroupCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserCollection"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/dataformats/{id}":{get:{tags:["DataFormats"],summary:"Get the data format collection for the specified data type. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Data type ID",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataFormatCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataFormatCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/dataformats/{id}/{idx}":{get:{tags:["DataFormats"],summary:"Get the specific data format.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Data type ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"Data format ID",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataFormat"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataFormat"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources":{get:{tags:["DataSources"],summary:"Get all data source resources. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataSources"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataSources"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}":{get:{tags:["DataSources"],summary:"Get a specific data source resource via data source name.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataSource"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataSource"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/datatypes":{get:{tags:["DataTypes"],summary:"Get the data type collection for the specified data source. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataTypeCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataTypeCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/datatypes/{id}":{get:{tags:["DataTypes"],summary:"Get a specific data type",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Data type ID",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataType"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataType"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/docindexes/{id}":{get:{tags:["DocIndexes"],summary:"Get all document indexes collection for the specific document. This API supports the following OData query options: $Top, $Skip and $Count. If $top is omitted, the default page size is 10.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"access",in:"query",description:"Doc access request flag for HIPAA requirement",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests"}},{name:"comment",in:"query",description:"Doc access comment for HIPAA requirement",schema:{type:"string"}},{name:"nativetype",in:"query",description:"Whether to return native type index value",schema:{type:"boolean",default:!1}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexesResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexesResponse"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},post:{tags:["DocIndexes"],summary:"Add a new document index.",description:'Example 1: The request body for adding a document index.\r\n```\r\n{\r\n "DocumentIndex": {\r\n "IndexID": 0,\r\n "IndexValues": [\r\n {\r\n "FieldID": "field1",\r\n "FieldValue": "5"\r\n },\r\n {\r\n "FieldID": "field2",\r\n "FieldValue": "Image1"\r\n }\r\n ]\r\n },\r\n "NativeDocumentIndex": null\r\n}\r\n```\r\nExample 2: The request body for adding a native document index.\r\n```\r\n{\r\n "DocumentIndex": null,\r\n "NativeDocumentIndex": {\r\n "IndexID": 0,\r\n "IndexValues": [\r\n {\r\n "FieldID": "field1",\r\n "NativeFieldValue": 5\r\n },\r\n {\r\n "FieldID": "field2",\r\n "NativeFieldValue": "Image1"\r\n }\r\n ]\r\n }\r\n}\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"nativetype",in:"query",description:"Whether to send the native document index object.",schema:{type:"boolean",default:!1}},{name:"failIfMatchIndex",in:"query",description:"Whether to perform match index validation",schema:{type:"boolean",default:!1}},{name:"failIfDLSViolation",in:"query",description:"Whether to perform Doc Level Security validation",schema:{type:"boolean",default:!1}}],requestBody:{description:"Document index request",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexRequest"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexResponse"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},409:{description:"Conflict",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/docindexes/{id}/{idx}":{get:{tags:["DocIndexes"],summary:"Get a specific document index for the specific document.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"Index ID. If the document has only one index, this value is ignored and the single index is returned.",required:!0,schema:{type:"integer",format:"int32"}},{name:"access",in:"query",description:"Doc access request flag for HIPAA requirement",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests"}},{name:"comment",in:"query",description:"Doc access comment for HIPAA requirement",schema:{type:"string"}},{name:"nativetype",in:"query",description:"Whether to return native type index value",schema:{type:"boolean",default:!1}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexResponse"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["DocIndexes"],summary:"Delete a specific doc index.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"Index ID. If the document has only one index, this value is ignored and the operation is not allowed.",required:!0,schema:{type:"integer",format:"int32"}}],responses:{204:{description:"No Content"},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},put:{tags:["DocIndexes"],summary:"Update an existing document index.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"Index ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"nativetype",in:"query",description:"Whether to send the native document index object.",schema:{type:"boolean",default:!1}},{name:"failIfMatchIndex",in:"query",description:"Whether to perform match index validation",schema:{type:"boolean",default:!1}},{name:"failIfDLSViolation",in:"query",description:"Whether to perform Doc Level Security validation",schema:{type:"boolean",default:!1}}],requestBody:{description:"Document index request",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexRequest"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexResponse"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},409:{description:"Conflict",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/docodma/{id}":{get:{tags:["DocODMA"],summary:"Get the ODMA resource for the specified document.",description:"The document properties in the response will be upper-cased to comply with ODMA specification.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"access",in:"query",description:"Doc access request flag for HIPAA requirement",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests"}},{name:"comment",in:"query",description:"Doc access comment for HIPAA requirement",schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocODMAResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocODMAResponse"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},put:{tags:["DocODMA"],summary:"Update the ODMA resource for the specified document.",description:'Only the following properties can be updated: Name, Author, Subject, Comment, and Keywords.\r\n\r\nExample: The request body for updating a document\'s properties.\r\n```\r\n{\r\n "Name": "TEST_NAME",\r\n "Author": "TEST_AUTHOR",\r\n "Subject": "TEST_SUBJECT",\r\n "Comment": "TEST_COMMENT",\r\n "Keywords": [\r\n "TEST_KEYWORD1",\r\n "TEST_KEYWORD2"\r\n ]\r\n}\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}}],requestBody:{description:"Updated odma properties",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocODMARequest"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocODMAResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocODMAResponse"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/docpages/{id}":{get:{tags:["DocPages"],summary:"Get document pages collection. This API supports the following OData query options: $Top, $Skip and $Count. If $top is omitted, the default page size is 10.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"access",in:"query",description:"Doc access request flag for HIPAA requirement (default: View)",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests"}},{name:"comment",in:"query",description:"Doc access comment for HIPAA requirement",schema:{type:"string"}}],responses:{200:{description:"Ok",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocPagesCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocPagesCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},post:{tags:["DocPages"],summary:"Add a new page.",description:' Two options to add a new page from multipart form data.\r\n \r\n 1. Upload a BIN file directly. The request may include annotation and/or text view files.\r\n \r\n 2. Provide a Data object where the ObjectResourceID string follows the format //{DSN}/DOC/{AppID}/{DocID}/{PageNum}/{VersionNum} \r\n (for example: //AEDEMO/DOC/176/131/1/1). In this case, the document’s ObjectID and SubPage will be shared. \r\n This option supports only documents that include subpages, and the object resource must reside in the same data source and the same application.\r\n \r\n Example 1: Add a new page from a multipart/form-data request body which contains binref\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="binref"\r\n \r\nC:\\test.PNG\r\n----------------------------394098244805491441835859--\r\n \r\n```\r\n Example 2: Add a new page from a multipart/form-data request body which contains binfileref\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="binfileref"; filename="test.txt"\r\nContent-Type: text/plain\r\n \r\nC:\\test.PNG\r\n----------------------------394098244805491441835859--\r\n \r\n```\r\n Example 3: Add a new page from a multipart/form-data request body which contains bin, annotaition and text\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="bin"; filename="test.JPG"\r\nContent-Type: image/jpeg\r\n \r\nbin file data\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="annotation"; filename="test.ano"\r\nContent-Type: application/octet-stream\r\n \r\nannotation file data\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="text"; filename="test.tx"\r\nContent-Type: application/octet-stream\r\n \r\ntext file data\r\n----------------------------394098244805491441835859--\r\n \r\n```\r\n Example 4: Add a new page by using data object from a multipart/form-data request body which contains data\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="data"\r\n \r\n{"ObjectResourceID": "//AEDEMO/DOC/176/131/1/1"}\r\n----------------------------394098244805491441835859\r\n \r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"query",description:"Document page location (1-based)",schema:{type:"integer",format:"int32"}},{name:"pageop",in:"query",description:"Page insert op code:0 - Insert before, 1 - insert after, 2 - append",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.PageInsertOP"}},{name:"COLDFormName",in:"query",description:"COLD form name",schema:{type:"string"}},{name:"importOption",in:"query",description:"Bin file import option",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.BinFileImportOptions"}}],responses:{201:{description:"Created",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocPage"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocPage"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["DocPages"],summary:"Delete a range of pages from a document",parameters:[{name:"dsn",in:"path",description:"Datasource name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"pagerange",in:"query",description:'Page range to be deleted, such as "1, 3-5, 7-22"',required:!0,schema:{type:"string"}},{name:"ifcheckpagecount",in:"query",description:"Set to false to bypass checking the page count before deleting pages",required:!0,schema:{type:"boolean",default:!0}},{name:"pagecount",in:"query",description:"If specified, the value must match the current document's page count. It is strongly recommended to use this parameter to prevent inadvertent data loss",schema:{type:"integer",format:"int32"}}],responses:{204:{description:"No Content"},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},409:{description:"Conflict",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/docpages/{id}/{idx}":{get:{tags:["DocPages"],summary:"Get document page information.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"1-based doc page number",required:!0,schema:{type:"integer",format:"int32"}},{name:"access",in:"query",description:"Doc access request flag for HIPAA requirement (default: View)",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests"}},{name:"comment",in:"query",description:"Doc access comment for HIPAA requirement",schema:{type:"string"}}],responses:{200:{description:"Ok",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocPage"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocPage"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},put:{tags:["DocPages"],summary:"Re-order a page to a new location",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"1-based doc page number",required:!0,schema:{type:"integer",format:"int32"}},{name:"newpageloc",in:"query",description:"New page location of this page",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"Ok",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocPage"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocPage"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["DocPages"],summary:"Delete a page from a document",parameters:[{name:"dsn",in:"path",description:"Datasource name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"1-based doc page number",required:!0,schema:{type:"integer",format:"int32"}},{name:"ifcheckpagecount",in:"query",description:"Set to false to bypass checking the page count before deleting pages",required:!0,schema:{type:"boolean",default:!0}},{name:"pagecount",in:"query",description:"If specified, the value must match the current document's page count. It is strongly recommended to use this parameter to prevent inadvertent data loss",schema:{type:"integer",format:"int32"}}],responses:{204:{description:"No Content"},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},409:{description:"Conflict",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/docs/{id}":{post:{tags:["Docs"],summary:"Create a new document from bin / binref / binfileref with annotation and text optional",description:' Example 1: Create a document from a multipart/form-data request body which contains data and binref\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="data"\r\n \r\n{"NewIndex":{"IndexID":0,"IndexValues":[{"FieldID":"field1","FieldValue":"Doc_from_binref"}]},"NativeNewIndex":null,"FromBatch":null,"BatchPageNum":0,"PageRange":null,"MergeDuplicateIndex":false,"IgnoreDuplicateIndex":false,"IgnoreDlsViolation":false}\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="binref"\r\n \r\nC:\\test.PNG\r\n----------------------------394098244805491441835859--\r\n \r\n```\r\n Example 2: Create a document from a multipart/form-data request body which contains data and binfileref\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="data"\r\n \r\n{"NewIndex":{"IndexID":0,"IndexValues":[{"FieldID":"field1","FieldValue":"Doc_from_binfileref"}]},"NativeNewIndex":null,"FromBatch":null,"BatchPageNum":0,"PageRange":null,"MergeDuplicateIndex":false,"IgnoreDuplicateIndex":false,"IgnoreDlsViolation":false}\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="binfileref"; filename="test.txt"\r\nContent-Type: text/plain\r\n \r\nC:\\test.PNG\r\n----------------------------394098244805491441835859--\r\n \r\n```\r\n Example 3: Create a document from a multipart/form-data request body which contains data, bin, annotaition and text\r\n ```\r\n Content-type: multipart/form-data; boundary="----------------------------394098244805491441835859"\r\n \r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="data"\r\n \r\n{"NewIndex":{"IndexID":0,"IndexValues":[{"FieldID":"field1","FieldValue":"Doc_from_bin"}]},"NativeNewIndex":null,"FromBatch":null,"BatchPageNum":0,"PageRange":null,"MergeDuplicateIndex":false,"IgnoreDuplicateIndex":false,"IgnoreDlsViolation":false}\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="bin"; filename="test.JPG"\r\nContent-Type: image/jpeg\r\n \r\nbin file data\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="annotation"; filename="test.ano"\r\nContent-Type: application/octet-stream\r\n \r\nannotation file data\r\n----------------------------394098244805491441835859\r\nContent-Disposition: form-data; name="text"; filename="test.tx"\r\nContent-Type: application/octet-stream\r\n \r\ntext file data\r\n----------------------------394098244805491441835859--\r\n \r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"nativetype",in:"query",description:"Native Type Support",schema:{type:"boolean",default:!1}},{name:"COLDFormName",in:"query",description:"COLD form name",schema:{type:"string"}},{name:"importOption",in:"query",description:"Bin file import option",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.BinFileImportOptions"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},409:{description:"Conflict",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/docs/{id}":{get:{tags:["Docs"],summary:"Get a specific document by document id",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"access",in:"query",description:"Doc access request flag for HIPAA requirement",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests"}},{name:"comment",in:"query",description:"Doc access comment for HIPAA requirement",schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["Docs"],summary:"Delete a specific document.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"deleteType",in:"query",description:"Specifies the document deletion type. Default is 'Active'.\r\n 'Active' - Delete an active document. If the application supports the Recycle Bin feature, the document is first moved to the Recycle Bin; otherwise, it is permanently deleted. \r\n 'Recycled' - Permanently deletes a document that is already in the Recycle Bin.",schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentDeletionType"}}],responses:{204:{description:"No Content"},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},put:{tags:["Docs"],summary:"Update an existing document by submitting a full-text/OCR job or by restoring it from Recycle Bin.",description:'Example 1: The request body for submitting a full-text job for a document which is not in Recycle Bin.\r\n```\r\n{\r\n "SubmitFulltext": true\r\n}\r\n```\r\nExample 2: The request body for submitting a OCR job for a document which is not in Recycle Bin.\r\n```\r\n{\r\n "SubmitOCR": true\r\n}\r\n```\r\nExample 3: The request body for restoring a document from Recycle Bin.\r\n```\r\n{\r\n "SubmitRestore": true\r\n}\r\n```\r\nExample 4: The request body for restoring a document from Recycle Bin first, then submitting a full-text job.\r\n```\r\n{\r\n "SubmitFulltext": true,\r\n "SubmitRestore": true\r\n}\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"ocrLanguage",in:"query",description:"OCR language for submitting the full-text/OCR job. Default is 'English'.",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.OCRLanguages"}}],requestBody:{description:"Updated doc value",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/documentsfrombatch/{id}":{post:{tags:["DocumentsFromBatch"],summary:"Create a new document from a batch or add pages to an existing document from a batch",description:'Example 1: The request body for creating a new document using pages 2 and 3 from the batch (ID = 4).\r\n```\r\n{\r\n "NewIndex": {\r\n "IndexID": 0,\r\n "IndexValues": [{\r\n "FieldID": "field1",\r\n "FieldValue": "DocFromBatch"\r\n }]\r\n },\r\n "FromBatch": {\r\n "ID": 4\r\n },\r\n "BatchPageNum": 0,\r\n "PageRange": "2-3",\r\n "SubmitFullText": false,\r\n "MergeDuplicateIndex": false,\r\n "IgnoreDuplicateIndex": false,\r\n "IgnoreDlsViolation": false\r\n}\r\n```\r\nExample 2: The request body for appending a new page to an existing document (ID = 5) using the second page from the batch (ID = 4).\r\n```\r\n{\r\n "TargetDoc": {\r\n "ID": 5\r\n },\r\n "FromBatch": {\r\n "ID": 4\r\n },\r\n "BatchPageNum": 2,\r\n "PageRange": "",\r\n "SubmitFullText": false,\r\n "MergeDuplicateIndex": false,\r\n "IgnoreDuplicateIndex": false,\r\n "IgnoreDlsViolation": false\r\n}\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"nativetype",in:"query",description:"Native Type Support",schema:{type:"boolean",default:!1}}],requestBody:{description:"New Document Object",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.NewDocumentRequest"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},409:{description:"Conflict",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},423:{description:"Locked",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/apps/{appid}/docworkingcopy/{id}":{post:{tags:["DocWorkingCopy"],summary:"Check out a document and get a working copy document.",description:"If the document has already been checked out by the current user, the operation will resume the checkout.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID. It must be the original document ID.",required:!0,schema:{type:"integer",format:"int32"}},{name:"comment",in:"query",description:"Check out comment",schema:{type:"string"}},{name:"access",in:"query",description:"Doc access request flag for HIPAA requirement",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests"}},{name:"hipaacomment",in:"query",description:"Doc access comment for HIPAA requirement",schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},get:{tags:["DocWorkingCopy"],summary:"Resume the document checkout and get the working copy",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID. It could be the original document ID or the working copy document ID.",required:!0,schema:{type:"integer",format:"int32"}},{name:"access",in:"query",description:"Doc access request flag for HIPAA requirement",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests"}},{name:"comment",in:"query",description:"Doc access comment for HIPAA requirement",schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["DocWorkingCopy"],summary:"Cancel the document checkout.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"id",in:"path",description:"Document ID. It could be the original document ID or the working copy document ID.",required:!0,schema:{type:"integer",format:"int32"}}],responses:{204:{description:"No Content"},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/errorcodes":{get:{tags:["ErrorCodes"],summary:"Get the error codes collection.",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"object",additionalProperties:{type:"integer",format:"int32"}}},'application/json; profile="urn:camelcase:upper"':{schema:{type:"object",additionalProperties:{type:"integer",format:"int32"}}}}}}}},"/api/v1/errorcodes/{code}":{get:{tags:["ErrorCodes"],summary:"Get a specific error code.",parameters:[{name:"code",in:"path",description:"Specific error code",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{type:"object",additionalProperties:{type:"integer",format:"int32"}}},'application/json; profile="urn:camelcase:upper"':{schema:{type:"object",additionalProperties:{type:"integer",format:"int32"}}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/fulltextadmin/requests/{appid}":{get:{tags:["FulltextAdmin"],summary:"Get a list of requests made to the fulltext server. This API supports the following OData query options: $Top, $Skip, $Filter and $OrderBy.",description:"This API returns the most recent requests.\r\n\r\nThe default number of requests returned is 100, \r\nthe maximum number of requests returned is 1000.\r\n\r\nThe user must have one or more of the following roles to call this API:\r\n<pre> GlobalAdministrator</pre>\r\n<pre> ServerManager</pre>\r\n<pre> DataSourceAdministrator</pre>",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.FulltextRequestItem"}}},'application/json; profile="urn:camelcase:upper"':{schema:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.FulltextRequestItem"}}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/fulltextadmin/content/{appid}/{docid}/{docpage}":{get:{tags:["FulltextAdmin"],summary:"Get the fulltext content of the requested document page.",description:"The user must have one or more of the following roles to call this API:\r\n<pre> GlobalAdministrator</pre>\r\n<pre> ServerManager</pre>\r\n<pre> DataSourceAdministrator</pre>",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"docid",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"docpage",in:"path",description:"Document page number",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{type:"string"}},'application/json; profile="urn:camelcase:upper"':{schema:{type:"string"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/fulltextadmin/contentpages/{appid}/{docid}":{get:{tags:["FulltextAdmin"],summary:"Get the fulltext content of the requested document pages in multipart/mixed format.",description:'The user must have one or more of the following roles to call this API:\r\n<pre> GlobalAdministrator</pre>\r\n<pre> ServerManager</pre>\r\n<pre> DataSourceAdministrator</pre>\r\n\r\nResponse format is multipart/mixed with the following structure:\r\n```\r\n-----Boundary\r\nContent-Type: application/json\r\n\r\n{"pages":n,"total":n}\r\n-----Boundary\r\nContent-Type: text/plain\r\n\r\n<page x content>\r\n-----Boundary\r\nContent-Type: text/plain\r\n\r\n<page y content>\r\n-----Boundary--\r\n```\r\nThe first multipart is a JSON part that contains the total page count and the number of pages returned in this response.\r\n\r\nThe following multiparts are the content of each requested page with content type text/plain.\r\n\r\nThe content of each page is what was sent to the fulltext server for that page.',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"docid",in:"path",description:"Document ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"pagerange",in:"query",description:'Document page range such as "1, 3-5, 7-22"',schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{type:"string"}},'application/json; profile="urn:camelcase:upper"':{schema:{type:"string"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/fulltextquery/{id}":{get:{tags:["FulltextQuery"],summary:"Get a full-text saved query.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Query ID or name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.FulltextQuery"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.FulltextQuery"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/health/live":{get:{tags:["Health"],summary:"Is the server running?",responses:{200:{description:"OK"}}}},"/api/v1/health/ready":{get:{tags:["Health"],summary:"Is the server ready?",description:"Also returns information about the server.",responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.ReadyResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.ReadyResponse"}}}},503:{description:"Service Unavailable",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/httpcryptointerface/credential":{post:{tags:["HTTPCryptoInterface"],summary:"Generate an encrypted credential string based on domain, user name and password",description:' Example: The request body for generating an encrypted credential.\r\n ```\r\n{\r\n "UserName": "ADMIN",\r\n "Password":"password",\r\n "Domain":"mydomain"\r\n}\r\n \r\n```',requestBody:{description:"The credential request data",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoCredentialRequest"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoCredentialResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoCredentialResponse"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},501:{description:"Not Implemented",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/httpcryptointerface/url/idocument":{post:{tags:["HTTPCryptoInterface"],summary:"Generate a target URL to open the document view page",description:' Example: The request body for generating a target URL to open the document view page.\r\n ```\r\n{\r\n "commonParameters": {\r\n "targetSite": "http://localhost/AppEnhancer",\r\n "dataSource": "AppEnhancerDEMO",\r\n "appName": "IMAGEAPP",\r\n "credential": "AE:5E2C660FE0419D4BA9E4DDB0532EC3AABF11F859A7EE4E886A93DE9E5025B49D",\r\n "encParam": true,\r\n "autoLogoutOnClose": true,\r\n "blockNavigation": false,\r\n "dispMode": "HideDocMenu_PageMenu_ToolBar_IndexPanel"\r\n },\r\n "iDocumentParameters": {\r\n "docId": 22,\r\n "pageNum": 2\r\n }\r\n}\r\n \r\n```',requestBody:{description:"IDocument request data",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoIDocumentRequest"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoTargetURLResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoTargetURLResponse"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/httpcryptointerface/url/idocimport":{post:{tags:["HTTPCryptoInterface"],summary:"Generate a target URL to open document import page",description:' Example: The request body for generating a target URL to open the document import page.\r\n ```\r\n{\r\n "commonParameters": {\r\n "targetSite": "http://localhost/AppEnhancer",\r\n "dataSource": "AppEnhancerDEMO",\r\n "appName": "CHECKS",\r\n "credential": "AE:5E2C660FE0419D4BA9E4DDB0532EC3AABF11F859A7EE4E886A93DE9E5025B49D",\r\n "encParam": true,\r\n "autoLogoutOnClose": true,\r\n "blockNavigation": false,\r\n "dispMode": "NotSet"\r\n },\r\n "iDocImportParameters": {\r\n "allowEditCDKIndex": false,\r\n "fieldValues": "MEMBER NUMBER=925348;CHECK NUMBER=172"\r\n }\r\n}\r\n \r\n```',requestBody:{description:"IDocImport request data",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoIDocImportRequest"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoTargetURLResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoTargetURLResponse"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/httpcryptointerface/url/isubmitquery":{post:{tags:["HTTPCryptoInterface"],summary:"Generate a target URL to open query criteria page or query result page",description:' Example 1: The request body for normal query to open the query result page.\r\n ```\r\n{\r\n "commonParameters": {\r\n "targetSite": "http://localhost/AppEnhancer",\r\n "dataSource": "AppEnhancerDEMO",\r\n "appName": "IMAGEAPP",\r\n "credential": "AE:5E2C660FE0419D4BA9E4DDB0532EC3AABF11F859A7EE4E886A93DE9E5025B49D",\r\n "encParam": true,\r\n "autoLogoutOnClose": true,\r\n "blockNavigation": true,\r\n "dispMode": "HideAppList"\r\n },\r\n "iSubmitQueryParameters": {\r\n "queryType": "NormalQuery",\r\n "viewMode": "ResultSet",\r\n "searchAllRevisions": true,\r\n "updateFields": true,\r\n "fieldValues": "OBJECT NUMBER=Expression: [\'5\',\'10\'];DOCUMENT TYPE=AVI",\r\n "fieldsVisibility": "1=on;2=off;3=off;4=on"\r\n }\r\n}\r\n \r\n```\r\n Example 2: The request body for saved query to open the query criteria page.\r\n ```\r\n{\r\n "commonParameters": {\r\n "targetSite": "http://localhost/AppEnhancer",\r\n "dataSource": "AppEnhancerDEMO",\r\n "appName": "IMAGEAPP",\r\n "credential": "AE:5E2C660FE0419D4BA9E4DDB0532EC3AABF11F859A7EE4E886A93DE9E5025B49D",\r\n "encParam": true,\r\n "autoLogoutOnClose": true,\r\n "blockNavigation": true,\r\n "dispMode": "HideAppList"\r\n },\r\n "iSubmitQueryParameters": {\r\n "queryType": "SavedQuery",\r\n "SavedQuery": "savedQuery2",\r\n "viewMode": "QueryCriteria",\r\n "searchAllRevisions": true,\r\n "updateFields": true\r\n }\r\n}\r\n \r\n```\r\n Example 3: The request body for updating a saved query.\r\n ```\r\n{\r\n "commonParameters": {\r\n "targetSite": "http://localhost/AppEnhancer",\r\n "dataSource": "AppEnhancerDEMO",\r\n "appName": "IMAGEAPP",\r\n "credential": "AE:5E2C660FE0419D4BA9E4DDB0532EC3AABF11F859A7EE4E886A93DE9E5025B49D",\r\n "encParam": true,\r\n "autoLogoutOnClose": true,\r\n "blockNavigation": true,\r\n "dispMode": "HideAppList"\r\n },\r\n "iSubmitQueryParameters": {\r\n "queryType": "SavedQuery",\r\n "SavedQuery": "savedQuery2",\r\n "SaveAndRun": true,\r\n "viewMode": "ResultSet",\r\n "IsPublic": true,\r\n "searchAllRevisions": true,\r\n "updateFields": true,\r\n "FieldValues": "OBJECT NUMBER=Expression: [\'15\',\'20\'];DOCUMENT TYPE=ZIP"\r\n }\r\n}\r\n \r\n```\r\n Example 4: The request body for full-text query to open the query result page.\r\n ```\r\n{\r\n "commonParameters": {\r\n "targetSite": "http://localhost/AppEnhancer",\r\n "dataSource": "AppEnhancerDEMO",\r\n "appName": "IMAGEAPP",\r\n "credential": "AE:5E2C660FE0419D4BA9E4DDB0532EC3AABF11F859A7EE4E886A93DE9E5025B49D",\r\n "encParam": true,\r\n "autoLogoutOnClose": true,\r\n "blockNavigation": true,\r\n "dispMode": "HideAppList"\r\n },\r\n "iSubmitQueryParameters": {\r\n "queryType": "NormalQuery",\r\n "viewMode": "ResultSet",\r\n "searchAllRevisions": true,\r\n "FulltextQuery": "account",\r\n "FulltextQueryType": "And",\r\n "FulltextOperation": "Or"\r\n }\r\n}\r\n \r\n```',requestBody:{description:"ISubmitQuery request data",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoISubmitQueryRequest"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoTargetURLResponse"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoTargetURLResponse"}}}},400:{description:"BadRequest"}}}},"/api/v1/datasources/{dsn}/odmaqueryfields/{id}":{get:{tags:["ODMAQueryFields"],summary:"Get ODMA query field collection for a specific saved query. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Query ID or name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryFields"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryFields"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/password":{put:{tags:["Password"],summary:"Change the password for the current user.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}}],requestBody:{description:"Change password form",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.ChangeUserForm"}}}},responses:{204:{description:"No Content"},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},417:{description:"Expectation Failed",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/permissiondefinitions":{get:{tags:["PermissionDefinitions"],summary:"Get all application permissions",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"object",additionalProperties:{type:"string"},description:"A list of all application permissions."}},'application/json; profile="urn:camelcase:upper"':{schema:{type:"object",additionalProperties:{type:"string"},description:"A list of all application permissions."}}}}}}},"/api/v1/datasources/{dsn}/queries":{get:{tags:["Queries"],summary:"Get saved query collection or collection for the specified application. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"query",description:"Application ID",schema:{type:"integer",format:"int32",default:0}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueriesCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueriesCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},post:{tags:["Queries"],summary:"Create a new saved query",description:'Example 1: The request body for creating a document saved query with full-text.\r\n```\r\n{\r\n "QueryType": "DocumentQuery",\r\n "Name": "Query_FT1",\r\n "IsPublic": true,\r\n "IsIncludingPreviousRevisions": true,\r\n "Indexes": [\r\n {\r\n "Name": "NAME",\r\n "Value": "pdf*",\r\n "IsODMAField": false,\r\n "Searchable": true,\r\n "Displayable": true\r\n }\r\n ],\r\n "FullText": {\r\n "QueryOperator": "And",\r\n "SearchType": "And",\r\n "Thesaurus": false,\r\n "Value": "software"\r\n }\r\n}\r\n```\r\nExample 2: The request body for creating a cross app saved query.\r\n```\r\n{\r\n "QueryType": "CrossAppQuery",\r\n "Name": "CAQ_1",\r\n "IsPublic": true,\r\n "IsIncludingPreviousRevisions": true,\r\n "Indexes": [\r\n {\r\n "Name": "NAME",\r\n "Value": "pdf*",\r\n "IsODMAField": false,\r\n "Searchable": true,\r\n "Displayable": true\r\n }\r\n ],\r\n "Apps": [1,4]\r\n}\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"query",description:"Application ID, required for DocumentQuery, ignored for CAQ",schema:{type:"integer",format:"int32",default:-1}}],requestBody:{description:"Query body",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryModel"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Query"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Query"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},406:{description:"Not Acceptable",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},409:{description:"Conflict",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/queries/{id}":{get:{tags:["Queries"],summary:"Get a specific saved query",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Query ID or name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Query"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Query"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},delete:{tags:["Queries"],summary:"Delete a specific saved query",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Query ID or name",required:!0,schema:{type:"string"}}],responses:{204:{description:"No Content"},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},422:{description:"Unprocessable Entity",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},put:{tags:["Queries"],summary:"Modify a specific saved query",description:'Example: The request body for modifying the Name, IsPublic and Index value field for the existing saved query.\r\n```\r\n{\r\n "Name": "Query_modify",\r\n "IsPublic": false,\r\n "Indexes": [\r\n {\r\n "Name": "NAME",\r\n "Value": "pdf_modify*",\r\n "IsODMAField": false,\r\n "Searchable": true,\r\n "Displayable": true\r\n }\r\n ]\r\n}\r\n```',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Query ID or name",required:!0,schema:{type:"string"}}],requestBody:{description:"Query body",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryModel"}}}},responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Query"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Query"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},406:{description:"Not Acceptable",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},409:{description:"Conflict",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/queryfields/{id}":{get:{tags:["QueryFields"],summary:"Get query field collection for a specific saved query. This API supports the following OData query options: $Top, $Skip, $Count, $Filter and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Query ID or name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryFields"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryFields"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/recentvieweddocs":{get:{tags:["RecentViewedDocs"],summary:"Retrieves a collection of recently viewed documents. \r\nNote: The audit trail event for page viewing must be enabled to use this API.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"lastDays",in:"query",description:"Number of past days to include. Default is 1.",schema:{type:"integer",format:"int32",default:1}},{name:"pageNum",in:"query",description:"The page number for pagination. Default is 1.",schema:{type:"integer",format:"int32",default:1}},{name:"pageSize",in:"query",description:"The number of items per page. Default is 10.",schema:{type:"integer",format:"int32",default:10}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.RecentViewedDocsCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.RecentViewedDocsCollection"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/savedqueryresults/{id}":{get:{tags:["SavedQueryResults"],summary:"Execute a saved query and return a result collection. This API supports the following OData query options: $Top, $Skip, $Count and $OrderBy.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Saved query ID or name",required:!0,schema:{type:"string"}},{name:"ftquery",in:"query",description:"Optional fulltext query string",schema:{type:"string"}},{name:"ftoperator",in:"query",description:"Optional fulltext query operator",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryOperator"}},{name:"ftexpression",in:"query",description:"Optional fulltext query expression",schema:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryExpression"}},{name:"allrevisions",in:"query",description:"Whether to include all revisions",schema:{type:"boolean"}},{name:"nativetype",in:"query",description:"Whether to return native index value type in the resultset",schema:{type:"boolean",default:!1}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryResultCollection"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryResultCollection"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/serversettings":{get:{tags:["ServerSettings"],summary:"Get server settings",responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.ServerSettings"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.ServerSettings"}}}}}}},"/api/v1/service":{get:{tags:["Service"],summary:"Main API entry. Returns the one and only top level service resource.",responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.HomeDocument"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.HomeDocument"}}}}}}},"/api/v1/datasources/{dsn}/storagepaths":{get:{tags:["StoragePaths"],summary:"Return a list of defined storage paths.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXStorageContent"}}},'application/json; profile="urn:camelcase:upper"':{schema:{type:"array",items:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXStorageContent"}}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},403:{description:"Forbidden",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},500:{description:"Internal Server Error",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/user":{get:{tags:["User"],summary:"Returns the current user resource.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.User"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.User"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/user/{id}":{get:{tags:["User"],summary:"Returns the specified user resource.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"User ID",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.User"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.User"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/userdefinedlist/{id}/{idx}":{get:{tags:["UserDefinedList"],summary:"Get the specified user defined list. This API supports the following OData query options: $Top, $Skip and $Count. If $top is omitted, the default page size is 200.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"id",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}},{name:"idx",in:"path",description:"Field ID",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserDefinedList"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserDefinedList"}}}},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}},"/api/v1/datasources/{dsn}/userprofile/{appid}":{get:{tags:["UserProfile"],summary:"Returns the specified profile for the current user.\r\nAppid 0 returns the user's global profile.",parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}}],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserProfiles"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserProfiles"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}},put:{tags:["UserProfile"],summary:"Updates the specified profile for the current user.",description:'To update the specified profile for the current user:\r\n\r\n1. Retrieve the current profile settings using: GET /api/v1/DataSources/{dsn}/UserProfile/{appid}.\r\n\r\n2. Modify the desired settings in the returned object by updating the value in the "profile" field. \r\nIf the modified value is not default, set "isDefault" to false; otherwise, set it to true.\r\n\r\n3. Send the updated object back using: PUT /api/v1/DataSources/{dsn}/UserProfile/{appid}.',parameters:[{name:"dsn",in:"path",description:"Data source name",required:!0,schema:{type:"string"}},{name:"appid",in:"path",description:"Application ID",required:!0,schema:{type:"integer",format:"int32"}}],requestBody:{description:"Updated user profile settings",content:{"application/json":{schema:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserProfiles"}}}},responses:{204:{description:"No Content"},400:{description:"Bad Request",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},401:{description:"Unauthorized",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}},404:{description:"Not Found",content:{"application/json":{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}},'application/json; profile="urn:camelcase:upper"':{schema:{$ref:"#/components/schemas/Microsoft.AspNetCore.Mvc.ProblemDetails"}}}}}}}},components:{schemas:{"AppEnhancer.WebApi.Models.AnnoGroupPermission":{type:"object",properties:{groupName:{type:"string",nullable:!0},viewAnnotations:{type:"boolean"},hideRedactions:{type:"boolean"},editAnnotations:{type:"boolean"},editRedactions:{type:"boolean"},globalEdit:{type:"boolean"},legacyPermission:{type:"boolean"},createAnnotations:{type:"boolean"},createRedactions:{type:"boolean"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.App":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"App name",nullable:!0},description:{type:"string",description:"App description",nullable:!0},id:{type:"integer",description:"App ID",format:"int32"},attributes:{type:"object",additionalProperties:{type:"boolean"},description:"App attributes",nullable:!0},permissions:{type:"object",additionalProperties:{type:"boolean"},description:"App specific user permissions",nullable:!0},workflowID:{type:"string",description:"Workflow ID",nullable:!0},ftServerType:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.FTServerType"}},additionalProperties:!1,description:"App resource"},"AppEnhancer.WebApi.Models.AppField":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"Field name",nullable:!0},id:{type:"string",description:"Field ID",nullable:!0},dataTypeID:{type:"integer",description:"Data type ID",format:"int32"},dataFormatID:{type:"integer",description:"Data format ID",format:"int32"},sampleFormat:{type:"string",description:"Sample format",nullable:!0},editMask:{type:"string",description:"Field edit mask (optional)",nullable:!0},validationRegex:{type:"string",description:"Validation regex for index field",nullable:!0},queryValidationRegex:{type:"string",description:"Validation regex for query field",nullable:!0},fieldLength:{type:"integer",description:"Field length (optional)",format:"int32"},attributes:{type:"object",additionalProperties:{type:"boolean"},description:"Field attributes",nullable:!0}},additionalProperties:!1,description:"AppField resource"},"AppEnhancer.WebApi.Models.AppFields":{type:"object",properties:{"@base":{type:"string",description:"Base URL for all the links",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.AppField"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initialization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"AppField collection"},"AppEnhancer.WebApi.Models.Apps":{type:"object",properties:{"@base":{type:"string",description:"Base URL for all the links",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.App"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initialization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"App collection"},"AppEnhancer.WebApi.Models.Batch":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},id:{type:"integer",description:"Batch ID",format:"int32"},name:{type:"string",description:"Batch name",nullable:!0},description:{type:"string",description:"Batch description",nullable:!0},state:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.BATCH_STATE"},creationTime:{type:"string",description:"Batch creation time",format:"date-time"},pageCount:{type:"integer",description:"Batch page count",format:"int32"},private:{type:"boolean",description:"Whether batch is private",nullable:!0},group:{type:"string",description:"The group that owns the batch",nullable:!0},objectResourceID:{type:"string",nullable:!0}},additionalProperties:!1,description:"Batch resource"},"AppEnhancer.WebApi.Models.BatchCollection":{type:"object",properties:{"@base":{type:"string",description:"Base URL for all the links",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initialization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"Batch collection"},"AppEnhancer.WebApi.Models.BatchPage":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},page:{type:"integer",description:"Page number",format:"int32"},objectResourceID:{type:"string",nullable:!0}},additionalProperties:!1,description:"AX Batch page resource"},"AppEnhancer.WebApi.Models.BatchPagesCollection":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},id:{type:"string",description:"Id",nullable:!0},updated:{type:"string",description:"Updated timestamp",format:"date-time"},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.BatchPage"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"AX Batch page collection"},"AppEnhancer.WebApi.Models.CAQConfig":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"Saved query name",nullable:!0},id:{type:"integer",description:"Saved query ID",format:"int32"},isPublic:{type:"boolean",description:"Public or private query"},owner:{type:"string",description:"Query owner (same as Creator)",nullable:!0},caqApps:{type:"array",items:{type:"integer",format:"int32"},description:"CAQ apps",nullable:!0},fields:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CAQField"},description:"CAQ fields",nullable:!0}},additionalProperties:!1,description:"CAQ saved query object"},"AppEnhancer.WebApi.Models.CAQField":{type:"object",properties:{name:{type:"string",nullable:!0},searchable:{type:"boolean"},displayable:{type:"boolean"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.ChangeUserForm":{type:"object",properties:{oldPassword:{type:"string",format:"password",nullable:!0},newPassword:{type:"string",format:"password",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoCommonParameters":{required:["appName","dataSource","targetSite"],type:"object",properties:{targetSite:{minLength:1,type:"string",description:"Specifies the target site URL for AppEnhancer Web Access. This field is required. e.g. http://10.20.30.40/AppEnhancer",format:"uri"},dataSource:{minLength:1,type:"string",description:"Specifies the data source name. This field is required. e.g. AppEnhancerDEMO"},appName:{minLength:1,type:"string",description:"Specifies the application name. This field is required. e.g. IMAGEAPP"},credential:{type:"string",description:"Specifies the encrypted credential for AppEnhancer Web Access silent login. This field is optional. If not provided, users need to input the credential manually when accessing the target URL.",nullable:!0},encParam:{type:"boolean",description:"Specifies whether to encrypt all the parameters in the target URL. This field is optional and the default value is true."},autoLogoutOnClose:{type:"boolean",description:"Specifies whether to automatically logout the user if they close the browser (or browse away). This field is optional and the default value is false."},blockNavigation:{type:"boolean",description:"Specifies whether to block certain navigation aspects of AppEnhancer Web Access document viewer. This field is optional and the default value is false. This field is valid for ISubmitQuery and IDocImport."},dispMode:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoDisplayMode"},customErrorPage:{type:"string",description:"Specifies the custom error redirect page. This field is optional.",nullable:!0},errorPassThru:{type:"boolean",description:"Specifies whether to pass error message through custom error page URL. This field is optional and the default value is false. This field is only valid when custom error page provided."}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoCredentialRequest":{required:["password","username"],type:"object",properties:{username:{minLength:1,type:"string",description:"Specifies the AppEnhancer username. This field is required."},password:{type:"string",description:"Specifies the AppEnhancer password. This field is required.",format:"password"},domain:{type:"string",description:"Specifies the domain. This field is optional.",nullable:!0},credentialType:{type:"string",description:'Specifies the credential type. This field is optional and the default value is "CM". Currently, only "CM" is supported.',nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoCredentialResponse":{type:"object",properties:{credential:{type:"string",description:"Encrypted credential",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoDisplayMode":{enum:["NotSet","HideAppList","HideLogout","HideAppList_Logout","HideDocMenu_PageMenu_ToolBar_IndexPanel","HideAppList_DocMenu_PageMenu_ToolBar_IndexPanel","HideLogout_DocMenu_PageMenu_ToolBar_IndexPanel","HideAppList_Logout_DocMenu_PageMenu_ToolBar_IndexPanel","HideDocMenu_IndexPanel","HideAppList_DocMenu_IndexPanel","HideLogout_DocMenu_IndexPanel","HideAppList_Logout_DocMenu_IndexPanel","HideIndexPanel","HideAppList_IndexPanel","HideLogout_IndexPanel","HideAppList_Logout_IndexPanel"],type:"string",description:"Specifies the display mode. This field is optional and the default value is NotSet.\r\n\r\nHiding application list and logout is not applicable for IDocument.\r\n\r\nHiding document menu, page menu, toolbar options and index panel is not applicable for IDocImport.\r\n\r\n0 – Not set.\r\n\r\n1 – Hide application list only.\r\n\r\n2 – Hide logout button only.\r\n\r\n3 – Hide application list and logout button.\r\n\r\n4 – Hide document menu, page menu, toolbar options and index panel.\r\n\r\n5 – Hide application list, document menu, page menu, toolbar options and index panel.\r\n\r\n6 – Hide logout button, document menu, page menu, toolbar options and index panel.\r\n\r\n7 – Hide application list, logout button, document menu, page menu, toolbar options and index panel.\r\n\r\n8 – Hide document menu and index panel.\r\n\r\n9 – Hide application list, document menu and index panel.\r\n\r\n10 – Hide logout button, document menu and index panel.\r\n\r\n11 – Hide application list, logout button, document menu and index panel.\r\n\r\n16 - Hide index panel only.\r\n\r\n17 – Hide application list and index panel.\r\n\r\n18 – Hide logout button and index panel.\r\n\r\n19 – Hide application list, logout button and index panel.\r\n"},"AppEnhancer.WebApi.Models.CryptoIDocImportParameters":{type:"object",properties:{allowEditCDKIndex:{type:"boolean",description:"Specifies whether users are allowed to edit index fields after the document import page opens. This field is optional and the default value is false."},fieldValues:{type:"string",description:'Specifies the index values. This field is optional. e.g. "MEMBER NUMBER=925348;CHECK NUMBER=172".',nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoIDocImportRequest":{required:["commonParameters"],type:"object",properties:{commonParameters:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoCommonParameters"},iDocImportParameters:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoIDocImportParameters"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoIDocumentParameters":{required:["docId"],type:"object",properties:{docId:{maximum:2147483647,minimum:1,type:"integer",description:"Specifies the documment id. This field is required and must start from 1.",format:"int32"},pageNum:{type:"integer",description:"Specifies the page number. This field is optional. The default value is 0, indicating that no specific page is specified.",format:"int32"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoIDocumentRequest":{required:["commonParameters","iDocumentParameters"],type:"object",properties:{commonParameters:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoCommonParameters"},iDocumentParameters:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoIDocumentParameters"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoISubmitQueryParameters":{type:"object",properties:{queryType:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoISubmitQueryQueryType"},viewMode:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoISubmitQueryViewMode"},savedQuery:{type:"string",description:"Specifies the saved query name. This field is optional and only valid when QueryType is set to SavedQuery.",nullable:!0},saveAndRun:{type:"boolean",description:"Specifies whether to save a query first before running it. This field is optional and the default value is false. This field is only valid when QueryType is set to SavedQuery, and it does not apply to Multi-Application search.\r\nIf this value is true, the saved query will be updated with the field values provided in the query string, saved, and then executed."},isPublic:{type:"boolean",description:"Specifies whether to save the query as a public query. This field is optional and the default value is false. \r\nThis field is only valid when SaveAndRun is set to true and it it controls the 'Available to all users' setting of the saved query."},searchAllRevisions:{type:"boolean",description:"Specifies whether to search all document revisions. This field is optional and the default value is false."},updateFields:{type:"boolean",description:"Specifies whether to use the supplied field values for the query. This field is optional and the default value is true. \r\nWhen using a saved query, only the existing fields will be overridden; all other fields will retain their original values (if any)."},fulltextQuery:{type:"string",description:"Specifies the full-text query string (case-insensitive). This field is optional. \r\nProviding a FulltextQuery value enables full-text query mode, which requires a full-text license",nullable:!0},fulltextQueryType:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryExpression"},fulltextOperation:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryOperator"},fieldValues:{type:"string",description:"Specifies the query field values. e.g. \"DOCUMENT TYPE=DWG;OBJECT NUMBER=Expression: ['5','10']\". This field is optional.",nullable:!0},fieldsVisibility:{type:"string",description:'Specifies the visibility settings for the list of fields.This field is optional.\r\ne.g. "1=off;2=on;3=on;4=off;", where "1=off" hides Field1 and "2=on" shows Field2.',nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoISubmitQueryQueryType":{enum:["NormalQuery","SavedQuery"],type:"string",description:"Specifies the query type (NormalQuery = 0; SavedQuery = 1). This field is optional and the default value is NormalQuery."},"AppEnhancer.WebApi.Models.CryptoISubmitQueryRequest":{required:["commonParameters"],type:"object",properties:{commonParameters:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoCommonParameters"},iSubmitQueryParameters:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.CryptoISubmitQueryParameters"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.CryptoISubmitQueryViewMode":{enum:["ResultSet","QueryCriteria"],type:"string",description:"Specifies the view mode (ResultSet = 0; QueryCriteria = 1). This field is optional and the default value is ResultSet. Result set view will switch to query criteria page if no documents found."},"AppEnhancer.WebApi.Models.CryptoTargetURLResponse":{type:"object",properties:{targetUrl:{type:"string",description:"Target URL",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.DataFormat":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"Data format name",nullable:!0},id:{type:"integer",description:"Data format ID",format:"int32"},isCustom:{type:"boolean",description:"Is this a custom data format"},formatWidth:{type:"integer",description:"Format width",format:"int32"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.DataFormatCollection":{type:"object",properties:{"@base":{type:"string",description:"Base URL for all the links",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataFormat"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initialization if needed",format:"int64",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.DataSource":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"datasource name",nullable:!0},description:{type:"string",description:"datasource description",nullable:!0},isDefault:{type:"boolean",description:"default datasource"},id:{type:"string",description:"datesource GUID string for unique identifier",format:"uuid",nullable:!0},dbVersion:{type:"string",description:"datasource DB version",nullable:!0},securityModel:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.DataSourceAuthenticationType"}},additionalProperties:!1,description:"DataSource resource"},"AppEnhancer.WebApi.Models.DataSources":{type:"object",properties:{"@base":{type:"string",description:"Base URL for all the links",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataSource"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initialization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"DataSource collection"},"AppEnhancer.WebApi.Models.DataType":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"Data type name",nullable:!0},id:{type:"integer",description:"Data type ID",format:"int32"},isCustom:{type:"boolean",description:"Is this a custom data type"},primitiveType:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXPrimitiveTypeKind"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.DataTypeCollection":{type:"object",properties:{"@base":{type:"string",description:"Base URL for all the links",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DataType"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initialization if needed",format:"int64",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.DocAttributesCollection":{type:"object",properties:{checkedout:{type:"boolean",description:"Doc is checked out by current user"},checkoutComment:{type:"string",description:"Doc check out comment",nullable:!0},previousRevision:{type:"boolean",description:"Doc is a previous revision"},hasVersions:{type:"boolean",description:"Doc has revisions"},finalRevision:{type:"boolean",description:"Doc is the final revision"},isCOLD:{type:"boolean",description:"Doc is a COLD document"},recycledBy:{type:"string",description:"User who puts document into RecycleBin",nullable:!0},isRecycled:{type:"boolean",description:"Doc is Recycled document"}},additionalProperties:!1,description:"Doc Attributes Collection"},"AppEnhancer.WebApi.Models.DocODMARequest":{type:"object",properties:{name:{type:"string",description:"Document name/title",nullable:!0},author:{type:"string",description:"Document author",nullable:!0},subject:{type:"string",description:"Document subject",nullable:!0},comment:{type:"string",description:"Document comment",nullable:!0},keywords:{type:"array",items:{type:"string"},description:"Document keywords",nullable:!0}},additionalProperties:!1,description:"Doc ODMA request"},"AppEnhancer.WebApi.Models.DocODMAResponse":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"Document name/title",nullable:!0},author:{type:"string",description:"Document author",nullable:!0},subject:{type:"string",description:"Document subject",nullable:!0},comment:{type:"string",description:"Document comment",nullable:!0},created:{type:"string",description:"Document creation time",format:"date-time",nullable:!0},creator:{type:"string",description:"Document creator",nullable:!0},modified:{type:"string",description:"Document modification time",format:"date-time",nullable:!0},modifier:{type:"string",description:"Document modifier",nullable:!0},keywords:{type:"array",items:{type:"string"},description:"Document keywords",nullable:!0}},additionalProperties:!1,description:"Doc ODMA resource"},"AppEnhancer.WebApi.Models.DocPage":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},page:{type:"integer",description:"Page number",format:"int32"},objectResourceID:{type:"string",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.DocPagesCollection":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},id:{type:"string",description:"Id",nullable:!0},updated:{type:"string",description:"Updated timestamp",format:"date-time"},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocPage"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"Doc page collection"},"AppEnhancer.WebApi.Models.Document":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},workingCopy:{type:"boolean",description:"Whether the document is a working copy"},id:{type:"integer",description:"Doc ID",format:"int32"},pageCount:{type:"integer",description:"Page Count",format:"int32"},attributes:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocAttributesCollection"},objectResourceID:{type:"string",nullable:!0},submitFulltext:{type:"boolean",description:"Submit fulltext job. Can not be used during checkout"},fulltextQueue:{type:"string",description:"Obsolete. Server will use its own logic to determine which queue it will use basing on the Application and User.",nullable:!0},submitOCR:{type:"boolean",description:"Submit OCR job. Can not be used during checkout"},ocrQueue:{type:"string",description:"Obsolete. Server will use its own logic to determine which queue it will use basing on the Application and User.",nullable:!0},submitRestore:{type:"boolean",description:"Submit restore job. Only used on recycled items"}},additionalProperties:!1,description:"Document resource"},"AppEnhancer.WebApi.Models.DocumentDeletionType":{enum:["Active","Recycled"],type:"string",description:"Specifies the document deletion type. Default is 'Active'.\r\n\r\n'Active' – Delete an active document. If the application supports the Recycle Bin feature, the document is first moved to the Recycle Bin; otherwise, it is permanently deleted.\r\n\r\n'Recycled' – Permanently deletes a document that is already in the Recycle Bin.\r\n"},"AppEnhancer.WebApi.Models.DocumentIndex":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},indexID:{type:"integer",description:"Index ID",format:"int32"},indexValues:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexValue"},description:"Index values for each field",nullable:!0}},additionalProperties:!1,description:"Document Index"},"AppEnhancer.WebApi.Models.DocumentIndexRequest":{type:"object",properties:{documentIndex:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndex"},nativeDocumentIndex:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.NativeDocumentIndex"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.DocumentIndexResponse":{type:"object",properties:{documentIndex:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndex"},nativeDocumentIndex:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.NativeDocumentIndex"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.DocumentIndexValue":{type:"object",properties:{fieldID:{type:"string",description:"App field ID",nullable:!0},fieldValue:{type:"string",description:"Index value",nullable:!0}},additionalProperties:!1,description:"Document index field value"},"AppEnhancer.WebApi.Models.DocumentIndexes":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},id:{type:"string",description:"Id",nullable:!0},updated:{type:"string",description:"Updated timestamp",format:"date-time"},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndex"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"Document Index collection with pagenation"},"AppEnhancer.WebApi.Models.DocumentIndexesResponse":{type:"object",properties:{documentIndexes:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexes"},nativeDocumentIndexes:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.NativeDocumentIndexes"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.EmbeddedResource":{type:"object",properties:{href:{type:"string",nullable:!0},hints:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Hints"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.FullTextSearchOptions":{type:"object",properties:{queryOperator:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryOperator"},searchType:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryExpression"},value:{type:"string",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.FulltextQuery":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},ftQueryOperator:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryOperator"},ftQueryExpression:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryExpression"},ftQueryValue:{type:"string",description:"Fulltext query criteria value",nullable:!0},ftQueryOptions:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryOptions"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.FulltextRequestItem":{type:"object",properties:{request:{type:"string",description:"Request string",nullable:!0},clientID:{type:"string",description:"Client IP",nullable:!0},timeStamp:{type:"string",description:"Time of request",nullable:!0},duration:{type:"string",description:"Duration of request",nullable:!0},status:{type:"string",description:"Status of request",nullable:!0}},additionalProperties:!1,description:"Parsed IDOL request item"},"AppEnhancer.WebApi.Models.GroupCollection":{type:"object",properties:{count:{type:"integer",format:"int64",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QuickGroup"},nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.Hints":{type:"object",properties:{allow:{type:"array",items:{type:"string"},nullable:!0},representations:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.HomeDocument":{type:"object",properties:{resources:{type:"object",additionalProperties:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.EmbeddedResource"},nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.KeyRefIndex":{type:"object",properties:{indexValues:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndexValue"},description:"Index values for each field",nullable:!0}},additionalProperties:!1,description:"Key Ref Index"},"AppEnhancer.WebApi.Models.KeyRefIndexResponse":{type:"object",properties:{keyRefIndex:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.KeyRefIndex"},nativeKeyRefIndex:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.NativeKeyRefIndex"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.Link":{type:"object",properties:{rel:{type:"string",description:"Relationship",nullable:!0},href:{type:"string",description:"Hyperlink",nullable:!0}},additionalProperties:!1,description:"Link class for supporting linked resources"},"AppEnhancer.WebApi.Models.LoginRequest":{required:["dataSource"],type:"object",properties:{dataSource:{minLength:1,type:"string"},username:{type:"string",nullable:!0},password:{type:"string",format:"password",nullable:!0},ssoTicket:{type:"string",nullable:!0},licenseFlags:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.ExtraLoginLicenseFlags"},clientCode:{type:"string",format:"uuid",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.LoginResponse":{type:"object",properties:{id:{type:"integer",format:"int32"},isSuperUser:{type:"boolean"},fullName:{type:"string",nullable:!0},username:{type:"string",nullable:!0},token:{type:"string",nullable:!0},refresh:{type:"string",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.LogoutRequest":{type:"object",properties:{refreshToken:{type:"string",nullable:!0},accessToken:{type:"string",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.NativeDocIndexValue":{type:"object",properties:{fieldID:{type:"string",description:"App field ID",nullable:!0},nativeFieldValue:{description:"Index value",nullable:!0}},additionalProperties:!1,description:"Document index field value"},"AppEnhancer.WebApi.Models.NativeDocumentIndex":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},indexID:{type:"integer",description:"Index ID",format:"int32"},indexValues:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.NativeDocIndexValue"},description:"Index values for each field",nullable:!0}},additionalProperties:!1,description:"Document Index"},"AppEnhancer.WebApi.Models.NativeDocumentIndexes":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},id:{type:"string",description:"Id",nullable:!0},updated:{type:"string",description:"Updated timestamp",format:"date-time"},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.NativeDocumentIndex"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"Native Document Index collection with pagenation"},"AppEnhancer.WebApi.Models.NativeKeyRefIndex":{type:"object",properties:{indexValues:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.NativeDocIndexValue"},description:"Index values for each field",nullable:!0}},additionalProperties:!1,description:"Native Key Ref Index"},"AppEnhancer.WebApi.Models.NewDocumentRequest":{type:"object",properties:{targetDoc:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Document"},newIndex:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.DocumentIndex"},nativeNewIndex:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.NativeDocumentIndex"},fromBatch:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Batch"},batchPageNum:{type:"integer",format:"int32"},pageRange:{type:"string",nullable:!0},submitFullText:{type:"boolean"},mergeDuplicateIndex:{type:"boolean"},ignoreDuplicateIndex:{type:"boolean"},ignoreDlsViolation:{type:"boolean"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.OAuthProvider":{type:"object",properties:{id:{type:"string",nullable:!0},name:{type:"string",nullable:!0},clientId:{type:"string",nullable:!0},scope:{type:"string",nullable:!0},userInfoEndpoint:{type:"string",nullable:!0},authEndpoint:{type:"string",nullable:!0},tokenEndpoint:{type:"string",nullable:!0},logoutEndpoint:{type:"string",nullable:!0},dataSources:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.OAuthProvidersResponse":{type:"object",properties:{providers:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.OAuthProvider"},nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.QueriesCollection":{type:"object",properties:{"@base":{type:"string",description:"Base URL for all the links",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Query"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initialization if needed",format:"int64",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.Query":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"Saved query name",nullable:!0},id:{type:"integer",description:"Saved query ID",format:"int32"},queryType:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXQueryTypes"},isPublic:{type:"boolean",description:"Public or private query"},isIncludingPreviousRevisions:{type:"boolean",description:"Whether to search all previous doc revisions"},owner:{type:"string",description:"Query owner (same as Creator)",nullable:!0},appID:{type:"integer",description:"Application ID. It is only valid when QueryType is DocumentQuery.",format:"int32"},caqApps:{type:"array",items:{type:"integer",format:"int32"},description:"CAQ apps. It is only valid when QueryType is CrossAppQuery.",nullable:!0}},additionalProperties:!1,description:"Saved query object"},"AppEnhancer.WebApi.Models.QueryField":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"Query Field Name for display",nullable:!0},searchName:{type:"string",description:"Query Field Name for search (used in OData query)",nullable:!0},fieldAttributes:{type:"object",additionalProperties:{type:"boolean"},description:"Query field attributes",nullable:!0},fieldLength:{type:"integer",description:"Optional field length",format:"int32"},queryValue:{type:"string",description:"Query criteria value",nullable:!0}},additionalProperties:!1,description:"Query field"},"AppEnhancer.WebApi.Models.QueryFields":{type:"object",properties:{"@base":{type:"string",description:"Base URL for all the links",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryField"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initialization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"Query field collection"},"AppEnhancer.WebApi.Models.QueryIndex":{type:"object",properties:{name:{type:"string",nullable:!0},value:{type:"string",nullable:!0},isODMAField:{type:"boolean"},searchable:{type:"boolean"},displayable:{type:"boolean"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.QueryModel":{type:"object",properties:{indexes:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryIndex"},nullable:!0},fullText:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.FullTextSearchOptions"},retentionOptions:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.RetentionQueryOptions"},name:{maxLength:132,minLength:0,type:"string",nullable:!0},id:{type:"integer",format:"int32"},isPublic:{type:"boolean"},isIncludingPreviousRevisions:{type:"boolean"},recBinSearch:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.SearchRecycleBinDocuments"},queryType:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXQueryTypes"},apps:{type:"array",items:{type:"integer",format:"int32"},nullable:!0}},additionalProperties:!1,description:"Represents a saved query"},"AppEnhancer.WebApi.Models.QueryResultCollection":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},id:{type:"string",description:"Id",nullable:!0},updated:{type:"string",description:"Updated timestamp",format:"date-time"},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QueryResultItem"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initization if needed",format:"int64",nullable:!0},columns:{type:"array",items:{type:"string"},nullable:!0}},additionalProperties:!1,description:"AX query resultset items collection with pagenation."},"AppEnhancer.WebApi.Models.QueryResultItem":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},indexValues:{type:"array",items:{type:"string"},description:"Resultset item column values",nullable:!0},nativeIndexValues:{type:"array",items:{},description:"Resultset item native column values",nullable:!0},id:{type:"integer",description:"Primary ID of the resultset item (could be doc or report ID)",format:"int32"},appID:{type:"integer",description:"AX Application ID this result item belongs to",format:"int32"},pageCount:{type:"integer",description:"Page count of the document or report",format:"int32"},attributes:{type:"object",additionalProperties:{type:"boolean"},description:"Attributes",nullable:!0},recycleUserId:{type:"integer",format:"int32"},fulltextHits:{type:"integer",description:"If full text search if performed, this contains number of full text hits on this item.\r\nOtherwise, it will be null.",format:"int32",nullable:!0}},additionalProperties:!1,description:"Represents a query resultset item"},"AppEnhancer.WebApi.Models.QuickGroup":{type:"object",properties:{name:{type:"string",nullable:!0},description:{type:"string",nullable:!0},id:{type:"integer",format:"int32"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.QuickUser":{type:"object",properties:{id:{type:"integer",format:"int32"},name:{type:"string",nullable:!0},fullName:{type:"string",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.ReadyResponse":{required:["dbSchemaVersion","productVersion"],type:"object",properties:{productVersion:{type:"string",nullable:!0},dbSchemaVersion:{type:"string",nullable:!0},dbResponseTimeMS:{type:"integer",format:"int64"},jwtEnabled:{type:"boolean"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.RecentViewedDoc":{type:"object",properties:{appId:{type:"integer",description:"Application ID",format:"int32"},appName:{type:"string",description:"Application Name",nullable:!0},appFieldName:{type:"string",description:"Application Field Name",nullable:!0},docId:{type:"integer",description:"Doc ID",format:"int32"},docTitle:{type:"string",description:"Doc title",nullable:!0},dateTime:{type:"string",description:"Viewed datetime",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.RecentViewedDocsCollection":{type:"object",properties:{totalCount:{type:"integer",format:"int32"},recentViewDocs:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.RecentViewedDoc"},nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.RefreshRequest":{type:"object",properties:{refreshToken:{type:"string",nullable:!0},accessToken:{type:"string",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.RetentionQueryOptions":{type:"object",properties:{type:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXRetentionQueryType"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.SearchRecycleBinDocuments":{type:"object",properties:{searchOnlyRecycleBinDocs:{type:"boolean"},searchWithRecycleBinDocs:{type:"boolean"}},additionalProperties:!1},"AppEnhancer.WebApi.Models.ServerSettings":{type:"object",properties:{isSingleDataSource:{type:"boolean"},autoLogoutOnClose:{type:"boolean"},productVersion:{type:"string",nullable:!0},isRenderForeignFileAsHTMLEnabled:{type:"boolean"},maxVisibleUDLItems:{type:"integer",format:"int32"},isClientEmail:{type:"boolean"},isPDFRedactionEnabled:{type:"boolean"},useHiddenFieldLegacyRules:{type:"boolean"},customSettings:{type:"object",additionalProperties:{},nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.User":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},name:{type:"string",description:"Gets or sets the user name.",nullable:!0},fullName:{type:"string",description:"Gets or sets the user full name.",nullable:!0},id:{type:"integer",description:"Gets or sets the user ID.",format:"int32"},permissions:{type:"object",additionalProperties:{type:"boolean"},description:"Gets or sets the user permissions.",nullable:!0},annoGroupPermissions:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.AnnoGroupPermission"},nullable:!0},isSingleSignOnSession:{type:"boolean",nullable:!0},authenticationType:{type:"string",nullable:!0},canChangePassword:{type:"boolean",nullable:!0,readOnly:!0},passwordState:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.PasswordStates"},passwordExpirationDate:{type:"string",format:"date-time",nullable:!0,readOnly:!0},licenseType:{$ref:"#/components/schemas/XtenderSolutions.AXEngineApi.Interfaces.AXLicenseTypes"},isLicensePending:{type:"boolean",nullable:!0,readOnly:!0},isFTLicensed:{type:"boolean",nullable:!0,readOnly:!0},evaluationDaysLeft:{type:"integer",format:"int32",nullable:!0,readOnly:!0},groups:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QuickGroup"},nullable:!0,readOnly:!0}},additionalProperties:!1,description:"Represents a user in the system."},"AppEnhancer.WebApi.Models.UserCollection":{type:"object",properties:{count:{type:"integer",format:"int64",nullable:!0},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.QuickUser"},nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.UserDefinedList":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},id:{type:"string",description:"Id",nullable:!0},updated:{type:"string",description:"Updated timestamp",format:"date-time"},entries:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.UserDefinedListItem"},description:"Collection entries",nullable:!0},count:{type:"integer",description:"Collection item count. Only set during initization if needed",format:"int64",nullable:!0}},additionalProperties:!1,description:"User Defined List"},"AppEnhancer.WebApi.Models.UserDefinedListItem":{type:"object",properties:{"@base":{type:"string",description:"Optional Base URL for all the links",nullable:!0},links:{type:"array",items:{$ref:"#/components/schemas/AppEnhancer.WebApi.Models.Link"},description:"This property is for use with JSON serialization only. All links including Self is included",nullable:!0},id:{type:"integer",description:"User Defined List item ID. This is typically used for sorting",format:"int32"},value:{type:"string",description:"User Defined List item value.",nullable:!0}},additionalProperties:!1},"AppEnhancer.WebApi.Models.UserProfiles":{type:"object",properties:{appId:{type:"integer",format:"int32",nullable:!0},userId:{type:"integer",format:"int32",nullable:!0},profiles:{type:"object",additionalProperties:{$ref:"#/components/schemas/XtenderSolutions.UserProfile.ProfileSet"},nullable:!0},profileGroupInfo:{type:"array",items:{$ref:"#/components/schemas/XtenderSolutions.UserProfile.ProfileGroupInfo"},nullable:!0}},additionalProperties:!1,description:"Represents a user profile in the system."},"Microsoft.AspNetCore.Mvc.ProblemDetails":{type:"object",properties:{type:{type:"string",nullable:!0},title:{type:"string",nullable:!0},status:{type:"integer",format:"int32",nullable:!0},detail:{type:"string",nullable:!0},instance:{type:"string",nullable:!0}},additionalProperties:{}},"XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryExpression":{enum:["And","OR","Exact","Expression"],type:"string",description:"Full text search expressions"},"XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryOperator":{enum:["And","Or"],type:"string",description:"Full text query operator"},"XtenderSolutions.AXEngineApi.Interfaces.AXFulltextQueryOptions":{enum:["None","Thesaurus"],type:"string",description:"Full text search options"},"XtenderSolutions.AXEngineApi.Interfaces.AXLicenseTypes":{enum:["Normal","Demo","Evaluation","Unknown"],type:"string",description:"AX license types enumeration"},"XtenderSolutions.AXEngineApi.Interfaces.AXPrimitiveTypeKind":{enum:["None","Boolean","Integer","LongInteger","Decimal","LongDecimal","String","DateTime","Guid"],type:"string",description:"List of all primitive types that can be mapped from AX data types"},"XtenderSolutions.AXEngineApi.Interfaces.AXQueryTypes":{enum:["DocumentQuery","CrossAppQuery","ReportQuery","RetentionQuery"],type:"string",description:"Supported AX query types"},"XtenderSolutions.AXEngineApi.Interfaces.AXRetentionQueryType":{enum:["AllIncludingRetention","AllExcludingRetention","OnlyUnderRetention","OnlyOnRetentionHold","OnlyUnderRetentionNotOnHold"],type:"string",description:"Retention Query Types"},"XtenderSolutions.AXEngineApi.Interfaces.AXStorageContent":{type:"object",properties:{storageType:{type:"string",nullable:!0,readOnly:!0},storageContent:{type:"string",nullable:!0}},additionalProperties:!1},"XtenderSolutions.AXEngineApi.Interfaces.BATCH_STATE":{enum:["Idle","Scan","Index"],type:"string",description:"Batch opertation state"},"XtenderSolutions.AXEngineApi.Interfaces.BinFileImportOptions":{enum:["None","InspectPDFFile","DecryptPDFFile","SaveAsCompressedTextWithFormName","SaveAsUncompressedText","ImportPDFPortfolioAsForeignFile","ImportPDFPortfolioExtractEmbeddedFiles"],type:"string",description:"Bin file import options enumeration"},"XtenderSolutions.AXEngineApi.Interfaces.DataSourceAuthenticationType":{enum:["CM","Windows","Directory","EAI","Custom","Unknown"],type:"string",description:"Datasource authentication type enumeration"},"XtenderSolutions.AXEngineApi.Interfaces.DocAccessRequests":{enum:["None","View","Print","Email","Export","ModifyOrDelete"],type:"string",description:"On App with HIPPAComment attributes, actions on documents must be pre-requested.\r\nThis is the enumeration of all allowed requests"},"XtenderSolutions.AXEngineApi.Interfaces.ExtraLoginLicenseFlags":{enum:["FulltextSearchLicense","ImageProcessing"],type:"string",description:"License flags during login"},"XtenderSolutions.AXEngineApi.Interfaces.FTServerType":{enum:["None","ProIndex","XPlore","IDOL"],type:"string",description:"Full text server type"},"XtenderSolutions.AXEngineApi.Interfaces.OCRLanguages":{enum:["Belarusian","Czech","Danish","Dutch","English","Estonian","Finnish","French","German","Greek","Hungarian","Italian","Latvian","Luthuanian","NorwegianBokmal","Polish","PortugueseBrazilian","PortugueseStandard","Romanian","Russian","Slovenian","Spanish","Swedish","Turkish","Ukrainian","ChineseSimplified","ChineseTraditional","Japanese","Korean"],type:"string",description:"Enuemration of supported OCR languages"},"XtenderSolutions.AXEngineApi.Interfaces.PageInsertOP":{enum:["InsertBefore","InsertAfter","Append"],type:"string"},"XtenderSolutions.AXEngineApi.Interfaces.PasswordStates":{enum:["Ok","PromptChange","MustChange"],type:"string",description:"Password states"},"XtenderSolutions.UserProfile.ProfileGroup":{enum:["FullText","QueryResultset","Display","Batch","Index","Import","Email","COLD","IRM","Print","Viewer","Export","Job","Share","Workflow","Others","CoreSignature"],type:"string"},"XtenderSolutions.UserProfile.ProfileGroupInfo":{type:"object",properties:{profileGroup:{$ref:"#/components/schemas/XtenderSolutions.UserProfile.ProfileGroup"},displayName:{type:"string",nullable:!0,readOnly:!0},description:{type:"string",nullable:!0,readOnly:!0}},additionalProperties:!1},"XtenderSolutions.UserProfile.ProfileSet":{type:"object",properties:{isDefault:{type:"boolean"},customizable:{type:"boolean"},profile:{nullable:!0},displayName:{type:"string",nullable:!0},errorMessage:{type:"string",nullable:!0},maxValue:{type:"number",format:"double"},minValue:{type:"number",format:"double"},pattern:{type:"string",nullable:!0},valueOptions:{type:"array",items:{$ref:"#/components/schemas/XtenderSolutions.UserProfile.ProfileValueOption"},nullable:!0}},additionalProperties:!1},"XtenderSolutions.UserProfile.ProfileValueOption":{type:"object",properties:{label:{type:"string",nullable:!0,readOnly:!0},value:{nullable:!0},name:{type:"string",nullable:!0}},additionalProperties:!1}},securitySchemes:{Bearer:{type:"http",description:"Please enter a valid token",scheme:"bearer",bearerFormat:"JWT"}}},security:[{Bearer:[]}],tags:[{name:"AdhocQueryResults"},{name:"AppAttributesDefinitions"},{name:"AppAutoIndexLookup"},{name:"AppFields"},{name:"AppKeyRefLookup"},{name:"Apps"},{name:"AppSelectIndexLookup"},{name:"Auth"},{name:"Batches"},{name:"BatchPages"},{name:"CAQQuery"},{name:"Collection"},{name:"DataFormats"},{name:"DataSources"},{name:"DataTypes"},{name:"DocIndexes"},{name:"DocODMA"},{name:"DocPages"},{name:"Docs"},{name:"DocumentsFromBatch"},{name:"DocWorkingCopy"},{name:"ErrorCodes"},{name:"FulltextAdmin"},{name:"FulltextQuery"},{name:"Health"},{name:"HTTPCryptoInterface"},{name:"ODMAQueryFields"},{name:"Password"},{name:"PermissionDefinitions"},{name:"Queries"},{name:"QueryFields"},{name:"RecentViewedDocs"},{name:"SavedQueryResults"},{name:"ServerSettings"},{name:"Service"},{name:"StoragePaths"},{name:"User"},{name:"UserDefinedList"},{name:"UserProfile"}]},defaultMethod:"GET",defaultPath:"/entities/1"},{id:"oas-3.1-extreme",label:"OAS 3.1 — Extreme Enterprise Platform",swaggerData:{openapi:"3.1.0",jsonSchemaDialect:"https://json-schema.org/draft/2020-12/schema",info:{title:"Enterprise Platform API",version:"1.0.0",description:"Production-grade OpenAPI 3.1 specification with multiple environments, polymorphism, webhooks, callbacks, security schemes and advanced schemas."},servers:[{url:"https://dev-api.company.com",description:"Development"},{url:"https://qa-api.company.com",description:"QA"},{url:"https://uat-api.company.com",description:"UAT"},{url:"https://staging-api.company.com",description:"Staging"},{url:"https://api.company.com",description:"Production"}],tags:[{name:"auth"},{name:"users"},{name:"organizations"},{name:"projects"},{name:"deployments"},{name:"billing"},{name:"files"},{name:"analytics"},{name:"admin"},{name:"webhooks"}],paths:{"/auth":{get:{tags:["auth"],operationId:"listAuth",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["auth"],operationId:"createAuth",responses:{202:{description:"Accepted"}}}},"/auth/{id}":{get:{tags:["auth"],operationId:"getAuth",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/users":{get:{tags:["users"],operationId:"listUsers",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["users"],operationId:"createUsers",responses:{202:{description:"Accepted"}}}},"/users/{id}":{get:{tags:["users"],operationId:"getUsers",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/organizations":{get:{tags:["organizations"],operationId:"listOrganizations",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["organizations"],operationId:"createOrganizations",responses:{202:{description:"Accepted"}}}},"/organizations/{id}":{get:{tags:["organizations"],operationId:"getOrganizations",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/projects":{get:{tags:["projects"],operationId:"listProjects",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["projects"],operationId:"createProjects",responses:{202:{description:"Accepted"}}}},"/projects/{id}":{get:{tags:["projects"],operationId:"getProjects",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/workspaces":{get:{tags:["workspaces"],operationId:"listWorkspaces",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["workspaces"],operationId:"createWorkspaces",responses:{202:{description:"Accepted"}}}},"/workspaces/{id}":{get:{tags:["workspaces"],operationId:"getWorkspaces",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/environments":{get:{tags:["environments"],operationId:"listEnvironments",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["environments"],operationId:"createEnvironments",responses:{202:{description:"Accepted"}}}},"/environments/{id}":{get:{tags:["environments"],operationId:"getEnvironments",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/apis":{get:{tags:["apis"],operationId:"listApis",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["apis"],operationId:"createApis",responses:{202:{description:"Accepted"}}}},"/apis/{id}":{get:{tags:["apis"],operationId:"getApis",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/deployments":{get:{tags:["deployments"],operationId:"listDeployments",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["deployments"],operationId:"createDeployments",responses:{202:{description:"Accepted"}}}},"/deployments/{id}":{get:{tags:["deployments"],operationId:"getDeployments",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/audit-logs":{get:{tags:["audit-logs"],operationId:"listAuditLogs",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["audit-logs"],operationId:"createAuditLogs",responses:{202:{description:"Accepted"}}}},"/audit-logs/{id}":{get:{tags:["audit-logs"],operationId:"getAuditLogs",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/notifications":{get:{tags:["notifications"],operationId:"listNotifications",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["notifications"],operationId:"createNotifications",responses:{202:{description:"Accepted"}}}},"/notifications/{id}":{get:{tags:["notifications"],operationId:"getNotifications",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/billing":{get:{tags:["billing"],operationId:"listBilling",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["billing"],operationId:"createBilling",responses:{202:{description:"Accepted"}}}},"/billing/{id}":{get:{tags:["billing"],operationId:"getBilling",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/subscriptions":{get:{tags:["subscriptions"],operationId:"listSubscriptions",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["subscriptions"],operationId:"createSubscriptions",responses:{202:{description:"Accepted"}}}},"/subscriptions/{id}":{get:{tags:["subscriptions"],operationId:"getSubscriptions",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/webhooks":{get:{tags:["webhooks"],operationId:"listWebhooks",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["webhooks"],operationId:"createWebhooks",responses:{202:{description:"Accepted"}}}},"/webhooks/{id}":{get:{tags:["webhooks"],operationId:"getWebhooks",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/files":{get:{tags:["files"],operationId:"listFiles",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["files"],operationId:"createFiles",responses:{202:{description:"Accepted"}}}},"/files/{id}":{get:{tags:["files"],operationId:"getFiles",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/search":{get:{tags:["search"],operationId:"listSearch",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["search"],operationId:"createSearch",responses:{202:{description:"Accepted"}}}},"/search/{id}":{get:{tags:["search"],operationId:"getSearch",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/analytics":{get:{tags:["analytics"],operationId:"listAnalytics",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["analytics"],operationId:"createAnalytics",responses:{202:{description:"Accepted"}}}},"/analytics/{id}":{get:{tags:["analytics"],operationId:"getAnalytics",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/reports":{get:{tags:["reports"],operationId:"listReports",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["reports"],operationId:"createReports",responses:{202:{description:"Accepted"}}}},"/reports/{id}":{get:{tags:["reports"],operationId:"getReports",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/admin":{get:{tags:["admin"],operationId:"listAdmin",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["admin"],operationId:"createAdmin",responses:{202:{description:"Accepted"}}}},"/admin/{id}":{get:{tags:["admin"],operationId:"getAdmin",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/feature-flags":{get:{tags:["feature-flags"],operationId:"listFeatureFlags",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["feature-flags"],operationId:"createFeatureFlags",responses:{202:{description:"Accepted"}}}},"/feature-flags/{id}":{get:{tags:["feature-flags"],operationId:"getFeatureFlags",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}},"/system":{get:{tags:["system"],operationId:"listSystem",responses:{200:{description:"OK",content:{"application/json":{schema:{type:"array",items:{$ref:"#/components/schemas/Resource"}}}}}}},post:{tags:["system"],operationId:"createSystem",responses:{202:{description:"Accepted"}}}},"/system/{id}":{get:{tags:["system"],operationId:"getSystem",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"OK"}}},patch:{responses:{200:{description:"Updated"}}},delete:{responses:{204:{description:"Deleted"}}}}},webhooks:{deploymentCompleted:{post:{requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/DeploymentEvent"}}}},responses:{200:{description:"Accepted"}}}}},components:{securitySchemes:{bearerAuth:{type:"http",scheme:"bearer",bearerFormat:"JWT"},apiKeyAuth:{type:"apiKey",in:"header",name:"X-API-Key"},oauth2:{type:"oauth2",flows:{authorizationCode:{authorizationUrl:"https://auth.company.com/authorize",tokenUrl:"https://auth.company.com/token",scopes:{read:"Read",write:"Write"}}}}},schemas:{ProblemDetails:{type:"object",required:["title","status"],properties:{type:{type:"string"},title:{type:"string"},status:{type:"integer"},detail:{type:"string"},instance:{type:"string"}}},BaseResource:{type:"object",required:["id","resourceType"],properties:{id:{type:"string",format:"uuid"},resourceType:{type:"string"}}},User:{allOf:[{$ref:"#/components/schemas/BaseResource"},{type:"object",properties:{email:{type:"string",format:"email"}}}]},Organization:{allOf:[{$ref:"#/components/schemas/BaseResource"},{type:"object",properties:{name:{type:"string"}}}]},Resource:{oneOf:[{$ref:"#/components/schemas/User"},{$ref:"#/components/schemas/Organization"}],discriminator:{propertyName:"resourceType"}},DeploymentEvent:{type:"object",properties:{deploymentId:{type:"string"},status:{enum:["SUCCESS","FAILED","PENDING"]}}},OAS31DatatypeReference:{type:"object",description:"Reference schema covering OpenAPI 3.1 datatypes and validation/modifier checks. Mirrors the 3.0 datatype reference but uses numeric exclusiveMinimum/exclusiveMaximum (3.1 semantics).",required:["stringConstrained","roomId","quantity","colorTags","userProfile"],minProperties:5,maxProperties:40,additionalProperties:!1,deprecated:!0,properties:{stringConstrained:{type:"string",description:"String with length, pattern, enum, default, example, and modifier checks (deprecated + writeOnly).",format:"email",minLength:5,maxLength:100,pattern:"^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,}$",enum:["admin@example.com","user@example.com"],default:"user@example.com",example:"admin@example.com",writeOnly:!0,deprecated:!0},nickname:{type:"string",description:"Nullable string (nullable modifier check).",minLength:1,maxLength:30,nullable:!0,example:"jdoe"},sessionId:{type:"string",description:"String uuid format example (read-only).",format:"uuid",readOnly:!0,example:"550e8400-e29b-41d4-a716-446655440000"},toggleDisplay:{type:"boolean",description:"Boolean datatype example.",example:!0},roomId:{type:"number",description:"Number with numeric exclusive bounds (3.1 style) and multipleOf.",exclusiveMinimum:2300,exclusiveMaximum:2500,multipleOf:.5,example:2400.5},quantity:{type:"integer",description:"Integer with inclusive bounds, multipleOf, enum, default, and example checks.",minimum:10,maximum:100,multipleOf:5,enum:[15,20,25,30],default:20,example:25},colorTags:{type:"array",description:"Array with items, minItems, maxItems, uniqueItems, defaults, examples, and modifier checks (nullable + deprecated).",minItems:1,maxItems:5,uniqueItems:!0,nullable:!0,default:["red"],example:["green"],deprecated:!0,items:{type:"string",minLength:3,maxLength:20,example:"green"}},userProfile:{type:"object",description:"Object with properties, required, additionalProperties, minProperties, maxProperties, and modifier checks (nullable + deprecated + readOnly).",minProperties:2,maxProperties:5,additionalProperties:!1,nullable:!0,readOnly:!0,deprecated:!0,required:["id","name"],properties:{id:{type:"integer",readOnly:!0,example:101},name:{type:"string",minLength:3,maxLength:50,writeOnly:!0,example:"John Doe"},email:{type:"string",format:"email",example:"john@example.com"}}}},example:{stringConstrained:"admin@example.com",nickname:"jdoe",sessionId:"550e8400-e29b-41d4-a716-446655440000",toggleDisplay:!0,roomId:2400.5,quantity:25,colorTags:["green"],userProfile:{id:101,name:"John Doe",email:"john@example.com"}}}}},security:[{bearerAuth:[]}]},defaultMethod:"GET",defaultPath:"/resources/1"}];function N7(){return S7.map(function(e){var t=O7(e.swaggerData),n=function(e){if(!e.length)return{selectedMethod:"",selectedPath:""};var t=e[0];return{selectedMethod:t.method,selectedPath:t.path}}(t),r=e.defaultMethod||n.selectedMethod,o=e.defaultPath||n.selectedPath;return C7(C7({},e),{},{version:A7(e.swaggerData),operations:t,defaultMethod:r,defaultPath:o})})}function j7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function T7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j7(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P7(t){var n,r=t.value,i=t.onChange,a=t.fixtures,s=Ce(e.useState(!1),2),c=s[0],l=s[1],u=e.useMemo(function(){return a||N7()},[a]),p=e.useMemo(function(){return O7(r.swaggerData)},[r.swaggerData]),d=e.useMemo(function(){return function(e){return e.reduce(function(e,t){var n=t.tag||"default";return e[n]||(e[n]=[]),e[n].push(t),e},{})}(p)},[p]),f=e.useMemo(function(){return A7(r.swaggerData)},[r.swaggerData]),h="".concat(r.selectedMethod," ").concat(r.selectedPath),m=e.useCallback(function(e){i(T7(T7({},r),e))},[i,r]),g=e.useCallback(function(e){var t,n=(t=e.target.value,N7().find(function(e){return e.id===t}));n&&m({fixtureId:n.id,swaggerData:n.swaggerData,selectedMethod:n.defaultMethod,selectedPath:n.defaultPath})},[m]),y=e.useCallback(function(e){var t=D7.apply(void 0,[p].concat(lt(e.target.value.split("::"))));t&&m({selectedMethod:t.method,selectedPath:t.path})},[p,m]),v=e.useCallback(function(e){m({appTheme:e})},[m]),b=e.useCallback(function(e){m({enableLeftPanel:e})},[m]),w=e.useCallback(function(e){m({showOAS:e})},[m]),x=e.useCallback(function(e){m({hideRightPanel:e})},[m]),_=e.useCallback(function(e){m({disableTryout:e})},[m]);return o.jsxs("div",{className:Qy("catalog-dev-tools","apiwiz-catalog-library"),children:[c&&o.jsxs("div",{className:Qy("catalog-dev-tools__panel","border-secondary-1px","bg-L3"),children:[o.jsxs("div",{className:Qy("flex-rows","vt-center","hz-space-between","mb-12px"),children:[o.jsx("div",{className:Qy("fs-14px","fw-600","color-primary"),children:"Catalog Dev Tools"}),o.jsxs("span",{className:"catalog-dev-tools__badge",children:["OAS ",f]})]}),o.jsxs("div",{className:"catalog-dev-tools__field",children:[o.jsx("label",{className:"catalog-dev-tools__label",htmlFor:"catalog-dev-tools-spec",children:"Spec preset"}),o.jsx("select",{id:"catalog-dev-tools-spec",className:"catalog-dev-tools__select",value:r.fixtureId||(null===(n=u[0])||void 0===n?void 0:n.id),onChange:g,children:u.map(function(e){return o.jsx("option",{value:e.id,children:e.label},e.id)})})]}),o.jsxs("div",{className:"catalog-dev-tools__field",children:[o.jsx("label",{className:"catalog-dev-tools__label",htmlFor:"catalog-dev-tools-operation",children:"Operation"}),o.jsx("select",{id:"catalog-dev-tools-operation",className:"catalog-dev-tools__select",value:p.find(function(e){return e.id===h})?"".concat(r.selectedMethod,"::").concat(r.selectedPath):"",onChange:y,children:Object.keys(d).sort().map(function(e){return o.jsx("optgroup",{label:e,children:d[e].map(function(e){return o.jsxs("option",{value:"".concat(e.method,"::").concat(e.path),children:[e.method," ",e.path,e.summary?" — ".concat(e.summary):""]},e.id)})},e)})})]}),o.jsx("div",{className:"catalog-dev-tools__field",children:o.jsxs("div",{className:"catalog-dev-tools__toggle-row",children:[o.jsx("span",{className:"catalog-dev-tools__label",children:"Theme"}),o.jsxs("div",{className:"catalog-dev-tools__toggle",children:[o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":r.appTheme===V.LIGHT}),onClick:function(){return v(V.LIGHT)},children:"Light"}),o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":r.appTheme===V.DARK}),onClick:function(){return v(V.DARK)},children:"Dark"})]})]})}),o.jsx("div",{className:"catalog-dev-tools__field",children:o.jsxs("div",{className:"catalog-dev-tools__toggle-row",children:[o.jsx("span",{className:"catalog-dev-tools__label",children:"Left panel"}),o.jsxs("div",{className:"catalog-dev-tools__toggle",children:[o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":r.enableLeftPanel}),onClick:function(){return b(!0)},children:"On"}),o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":!r.enableLeftPanel}),onClick:function(){return b(!1)},children:"Off"})]})]})}),o.jsx("div",{className:"catalog-dev-tools__field",children:o.jsxs("div",{className:"catalog-dev-tools__toggle-row",children:[o.jsx("span",{className:"catalog-dev-tools__label",children:"OAS mode"}),o.jsxs("div",{className:"catalog-dev-tools__toggle",children:[o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":r.showOAS}),onClick:function(){return w(!0)},children:"On"}),o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":!r.showOAS}),onClick:function(){return w(!1)},children:"Off"})]})]})}),o.jsx("div",{className:"catalog-dev-tools__field",children:o.jsxs("div",{className:"catalog-dev-tools__toggle-row",children:[o.jsx("span",{className:"catalog-dev-tools__label",children:"Hide right panel"}),o.jsxs("div",{className:"catalog-dev-tools__toggle",children:[o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":r.hideRightPanel}),onClick:function(){return x(!0)},children:"On"}),o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":!r.hideRightPanel}),onClick:function(){return x(!1)},children:"Off"})]})]})}),o.jsx("div",{className:"catalog-dev-tools__field",children:o.jsxs("div",{className:"catalog-dev-tools__toggle-row",children:[o.jsx("span",{className:"catalog-dev-tools__label",children:"Disable tryout"}),o.jsxs("div",{className:"catalog-dev-tools__toggle",children:[o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":r.disableTryout}),onClick:function(){return _(!0)},children:"On"}),o.jsx("button",{type:"button",className:Qy("catalog-dev-tools__toggle-btn",{"is-active":!r.disableTryout}),onClick:function(){return _(!1)},children:"Off"})]})]})})]}),o.jsx("button",{type:"button","aria-label":c?"Close catalog dev tools":"Open catalog dev tools","aria-expanded":c,className:Qy("catalog-fab-btn","border-secondary-1px","bg-gray-l2","color-primary","hover-bg-L2"),onClick:function(){return l(function(e){return!e})},children:o.jsx(Ev,{size:22})})]})}function I7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function R7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I7(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function L7(n){var r,a,s=n.pkgSwaggerPayload,c=n.moduleType,l=n.partnersList,u=n.enableLeftPanel,p=n.hideRightPanel,d=void 0!==p&&p,f=n.disableTryout,h=void 0!==f&&f,m=n.hideScroll,g=n.enableDevTools,y=void 0!==g&&g,v=n.swaggerData,b=n.selectedMethod,w=n.selectedPath,x=n.appTheme,_=n.showOAS,E=void 0!==_&&_,k=t.useDispatch(),O=i.useParams(),A=e.useRef(null),D=e.useRef(null),M=Ce(e.useState(null),2),C=M[0],S=M[1],N=y&&C?C.swaggerData:v,j=y&&C?C.selectedMethod:b,T=y&&C?C.selectedPath:w,P=y&&C?C.appTheme:x,I=y&&C?C.enableLeftPanel:u,R=y&&C?C.showOAS:E,L=y&&C&&null!==(r=C.hideRightPanel)&&void 0!==r?r:d,F=y&&C&&null!==(a=C.disableTryout)&&void 0!==a?a:h,H=Ce(xy(),2),$=H[0],B=H[1].isFetching,U=Ce(Fy(),1)[0],z=Ce(Hy(),1)[0],V=Ce(Ey(),1)[0],W=e.useCallback(Ae(ct.mark(function e(){var t,n,r,o,i;return ct.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c!==N6.OPEN_API){e.next=2;break}return t=dd("REACT_APP_API_REFERENCE_INTRO_SLUG"),O.guideSlug&&(t=O.guideSlug),e.next=1,U({pathArgs:{slug:t}});case 1:n=e.sent,(r=n.data)&&!O.resourcePayload&&(o=wd(r))&&(z({pathArgs:{id:o.document},otherArgs:{title:r.name,guideId:r.id}}),k(Gg(ae.INTRO)));case 2:if(i=ye(s||{}),!u){e.next=3;break}return e.next=3,$({queryArgs:{status:"Publish",partnerNames:l}});case 3:i&&Object.keys(i).length>0&&(V(i),k(Gg(ae.RESOURCE)),k(Xg({swaggerId:i.pathArgs.swaggerId,value:!0})));case 4:case"end":return e.stop()}},e)})),[]);return e.useEffect(function(){y&&c===N6.EXTERNAL&&S(function(e){return e||{swaggerData:v,selectedMethod:b,selectedPath:w,appTheme:x,enableLeftPanel:null!=u&&u,showOAS:null!=E&&E,hideRightPanel:null!=d&&d,disableTryout:null!=h&&h}})},[y,c,v,b,w,x,u,E,d,h]),e.useEffect(function(){k(Yg({prop:"listLoading",value:B}))},[B,k]),e.useEffect(function(){if(c===N6.EXTERNAL)try{if(!N)throw new Error("Please provide OAS data");if(!j||!T)throw new Error("Please provide selected method and path");var e=A.current===N&&D.current;A.current=N;var t={method:j,path:T};if(e&&D.current){var n=D.current.operationsFlatten.find(function(e){return fd(e,t)});if(n)return void k(ey({swagger:D.current,operation:R7(R7({},n),{},{keyId:Ee()})}))}D.current=new $g({swagger:N}).toObject();var r=new f7({swaggerData:N,selectedMethod:j,selectedPath:T});k(dy(R7(R7({},r.toObject()),{},{replace:!0})))}catch(e){console.error(e)}},[N,j,T,c,k]),e.useEffect(function(){return c!==N6.EXTERNAL&&W(),function(){k(ly()),k(Kd())}},[]),e.useLayoutEffect(function(){k($m(q.API_ENDPOINTS)),k(Jg(!0))},[]),o.jsxs(o.Fragment,{children:[o.jsx(k7,R7(R7({},n),{},{appTheme:P,enableLeftPanel:I,showOAS:R,hideRightPanel:L,disableTryout:F,swaggerData:N,selectedMethod:j,selectedPath:T,LeftPanel:L3,CenterContent:f3,RightPanel:L?null:d7,RightSidenav:Dv,hideScroll:m})),y&&c===N6.EXTERNAL&&C&&o.jsx(P7,{value:C,onChange:S})]})}function F7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H7(e){if(!e||e.constructor!==Object)return e;if(Array.isArray(e.allOf)){var t={type:e.type||"object",properties:{}};Object.keys(e).forEach(function(n){"allOf"!==n&&"properties"!==n&&(t[n]=e[n])}),e.properties&&e.properties.constructor===Object&&Object.assign(t.properties,e.properties),e.allOf.forEach(function(e){var n=H7(e),r=n&&n.properties;r&&r.constructor===Object&&Object.keys(r).forEach(function(e){e.startsWith("__")||(t.properties[e]=r[e])})}),e=t}return e.properties&&e.properties.constructor===Object&&Object.keys(e.properties).forEach(function(t){t.startsWith("__")||(e.properties[t]=H7(e.properties[t]))}),e.items&&(e.items=H7(e.items)),e}function $7(e,t){e&&(e.uiData&&(e.uiData.traversePath=t),Array.isArray(e.properties)&&e.properties.length&&e.properties.forEach(function(e,n){$7(e,"".concat(t).concat(G,"properties").concat(G).concat(n))}))}function B7(e){var t=e.selected,n=e.rootNode,r=e.breadcrumbFilterPath,o=[];if(!t||!n)return o;var i=n.uiData&&n.uiData.traversePath||"",a=t.uiData&&t.uiData.traversePath||"";if(!i||!a.startsWith("".concat(i).concat(G)))return o;for(var s=a.slice("".concat(i).concat(G).length).split(G),c=n,l=i,u=0;u+1<s.length;u+=2){var p=s[u],d=Number(s[u+1]);l="".concat(l).concat(G).concat(p).concat(G).concat(d),"properties"===p&&c.properties&&c.properties[d]&&(c=c.properties[d],r&&!l.startsWith("".concat(r).concat(G))||o.push({name:c.uiData&&c.uiData.name||"",traversePath:l}))}return o}P7.propTypes={value:tb.shape({fixtureId:tb.string,swaggerData:tb.object,selectedMethod:tb.string,selectedPath:tb.string,appTheme:tb.string,enableLeftPanel:tb.bool,showOAS:tb.bool,hideRightPanel:tb.bool,disableTryout:tb.bool}).isRequired,onChange:tb.func.isRequired,fixtures:tb.array};function q7(n){var r=n.rootNode,i=n.example,a=n.headerLeft,s=n.activeViewType,c=n.FROM,l=n.showEmptyFallback,u=n.emptyExampleMessage,p=n.breadcrumbFilterPath,d=n.isDarkMode,f=n.initialSidebarExpanded,h=n.className,m=n.onSelectionChange,g=n.defaultView,y=Wy(),v=t.useSelector(function(e){return e.libConfig.isDarkMode},zy),b=t.useSelector(function(e){return e.libConfig.isSmallDevice},zy),w=null!=d?d:v,x=Ce(e.useState(null),2),_=x[0],E=x[1],k=Ce(e.useState([]),2),O=k[0],A=k[1],D=Ce(e.useState(void 0!==f?f:!b),2),M=D[0],C=D[1],S=Ce(e.useState(g||fe),2),N=S[0],j=S[1],T=e.useCallback(function(e){if(e){var t=B7({selected:e,rootNode:r,breadcrumbFilterPath:p});A(t),E(e),null==m||m(e,t)}},[r,p,m]);e.useEffect(function(){r?T(r):(E(null),A([]))},[r,T]);var P,I,R=r?o.jsx(NN,{node:r,depth:0,selectedBodyObject:_,setSelectedBodyObject:T}):o.jsx("div",{className:"dss-p-8 ref-ui-12 color-secondary",children:"No schema"}),L=o.jsx(T6,{exampleScheme:N,onSelectExample:function(){j(de),C(!0)},onSelectSchema:function(){j(fe),C(!0)}}),F=o.jsx("div",{"aria-hidden":!0,onClick:function(){return C(function(e){return!e})},className:"ref-schema-toolbar-collapse",children:o.jsx("span",{className:"ref-schema-toolbar-collapse__icon",children:o.jsx(Bw,{size:y.md,className:"color-04"})})}),H=o.jsx("div",{className:"ref-schema-left-title-tab dss-p-8 border-right-secondary-1px",children:o.jsxs("span",{className:"ref-schema-sidebar-header__icon dss-gap-6 flex-rows vt-center",children:[o.jsx(Kw,{size:y.sm,className:"color-04"}),a]})});return o.jsx("div",{className:Qy("ref-schema-card bg-ground border-secondary-1px",h),children:o.jsxs("div",{className:"ref-schema-layout br-tr-8px br-tl-8px border-bottom-secondary-1px",children:[o.jsxs("div",{className:"ref-schema-top-toolbar border-bottom-secondary-1px w-100",children:[H,o.jsxs("div",{className:"ref-schema-top-toolbar__left",children:[F,L]})]}),N===fe?o.jsxs("div",{className:"ref-schema-body",children:[M&&o.jsx("div",{className:"ref-schema-sidebar ref-schema-sidebar--desktop border-right-secondary-1px",children:o.jsx("div",{className:"ref-schema-sidebar-tree noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:R})})}),o.jsxs("div",{className:Qy("ref-schema-main-panel",!M&&"ref-schema-main-panel--full"),children:[O.length>0&&o.jsx("div",{className:"ref-schema-breadcrumbs-row bg-ground border-bottom-secondary-1px",children:o.jsxs("div",{className:"ref-schema-breadcrumbs flex-rows vt-center noscrollbar",children:[o.jsx("div",{className:"flex-center flex-shrink-0",children:o.jsx(iw,{className:"color-04",size:y.md})}),O.map(function(e,t){return o.jsxs("div",{className:"flex-rows vt-center dss-gap-4 flex-shrink-0",children:[t>0&&o.jsx(lw,{size:y.xs,className:"color-04"}),o.jsx("div",{className:"ref-ui-12 fw-500 color-secondary",children:e.name})]},e.traversePath)})]})}),M&&o.jsx("div",{className:"ref-schema-sidebar-tree--drawer noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:R})}),o.jsx("div",{className:"ref-schema-detail bg-step-up",children:_&&o.jsx(iX,{activeViewType:s,FROM:c,showEmptyFallback:l,rootElement:!0,setSelectedBodyObject:T,traverse:null==_?void 0:_.uiData.traversePath,param:_,order:0},(null==_||null===(P=_.uiData)||void 0===P?void 0:P.keyId)||(null==_||null===(I=_.uiData)||void 0===I?void 0:I.traversePath)||"")})]})]}):o.jsxs("div",{className:"ref-schema-body",children:[M&&o.jsx("div",{className:"ref-schema-sidebar ref-schema-sidebar--desktop border-right-secondary-1px",children:o.jsx("div",{className:"ref-schema-sidebar-tree noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:R})})}),o.jsxs("div",{className:Qy("ref-schema-main-panel",!M&&"ref-schema-main-panel--full"),children:[M&&o.jsx("div",{className:"ref-schema-sidebar-tree--drawer noscrollbar",children:o.jsx("div",{className:"ref-schema-sidebar-tree-inner",children:R})}),o.jsx("div",{className:"ref-schema-example-body color-02 bg-L3 dss-p-20",children:o.jsx(P6,{example:i,isDarkMode:w,emptyMessage:u})})]})]})]})})}q7.propTypes={rootNode:tb.object,example:tb.any,headerLeft:tb.node,activeViewType:tb.string,FROM:tb.string,showEmptyFallback:tb.bool,emptyExampleMessage:tb.string,breadcrumbFilterPath:tb.string,isDarkMode:tb.bool,initialSidebarExpanded:tb.bool,className:tb.string,onSelectionChange:tb.func,defaultView:tb.string},q7.defaultProps={rootNode:null,example:null,headerLeft:null,activeViewType:"VIEW",FROM:void 0,showEmptyFallback:!0,emptyExampleMessage:"No example available",breadcrumbFilterPath:void 0,isDarkMode:void 0,initialSidebarExpanded:void 0,className:"",onSelectionChange:void 0,defaultView:fe},exports.APIReference=L7,exports.APP_THEME_OPTION=V,exports.ApiwizCatalog=function(e){return e.componentType===j6.CATALOG&&o.jsx(L7,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F7(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e))},exports.COMPONENT_TYPE=j6,exports.CatalogDevTools=P7,exports.ExamplePayload=P6,exports.MODULE_TYPE=N6,exports.RefExampleSchemaToggle=T6,exports.SchemaExplorer=q7,exports.SchemaTreeNode=NN,exports.SwaggerPayload=ke,exports.addTraversePaths=$7,exports.apiReferenceReducer=my,exports.appReducer=zm,exports.buildBreadcrumbs=B7,exports.buildSchemaFromOpenApi=function(e){var t=e.swagger,n=e.schema,r=e.name,o=void 0===r?"":r,i=e.rootPath,a=void 0===i?"schema":i,s=H7(Fa({swagger:t,value:ye(n)})),c=Cg.schemaConversionForUi(s,o);return c&&Sg(c),c&&$7(c,a),c},exports.extractSchemaExample=function(e){var t=e.swagger,n=e.schema;try{var r=Ua({swagger:t,value:Fa({swagger:t,value:ye(n)}),type:"json"});if(null==r){var o=n.examples;if(Array.isArray(o)&&o.length)r=Ce(o,1)[0];else void 0!==n.example&&(r=n.example)}return r}catch(e){return null}},exports.getSchemaDictionary=function(e){return e?e.components&&e.components.schemas&&Object.keys(e.components.schemas).length?e.components.schemas:e.definitions&&Object.keys(e.definitions).length?e.definitions:null:null},exports.getSchemaIcon=SN,exports.graphqlReducer=bg,exports.guidesReducer=of,exports.materializeArraysDeep=Sg,exports.modelReducer=cg,exports.transformation=Cg,exports.workflowReducer=ng;
|