@redocly/reference-docs 2.29.0 → 2.31.1
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/bin/cli/commands/redocly-docs-cli.min.js +9 -9
- package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +1 -1
- package/dist/console.redocly-reference-docs.min.js +125 -125
- package/dist/oauth2-redirect.js +1 -1
- package/dist/redocly-reference-docs.min.js +439 -439
- package/lib/components/console/AuthPanel.js +1 -1
- package/lib/components/console/OAuth2Flow.d.ts +1 -0
- package/lib/components/console/OAuth2Flow.js +1 -1
- package/lib/components/console/OAuth2TokenInput.d.ts +1 -0
- package/lib/components/console/OAuth2TokenInput.js +1 -1
- package/lib/components/console/OpenIDConnect.js +1 -1
- package/lib/components/console/utils.d.ts +6 -0
- package/lib/components/console/utils.js +1 -1
- package/lib/redoc-lib/src/components/Schema/DiscriminatorDropdown.js +1 -1
- package/lib/redoc-lib/src/components/SecuritySchemes/helpers.d.ts +4 -0
- package/lib/redoc-lib/src/services/models/Schema.js +1 -1
- package/lib/redoc-lib/src/types/open-api.d.ts +3 -0
- package/lib/redoc-lib/src/utils/openapi.d.ts +3 -2
- package/lib/redoc-lib/src/utils/openapi.js +1 -1
- package/lib/redoc-lib/src/utils/string.d.ts +1 -0
- package/lib/redoc-lib/src/utils/string.js +2 -0
- package/lib/services/OAuth2.d.ts +4 -2
- package/lib/services/OAuth2.js +1 -1
- package/lib/services/OpenIDConnect.d.ts +1 -1
- package/lib-esm/components/console/AuthPanel.js +1 -1
- package/lib-esm/components/console/OAuth2Flow.d.ts +1 -0
- package/lib-esm/components/console/OAuth2Flow.js +1 -1
- package/lib-esm/components/console/OAuth2TokenInput.d.ts +1 -0
- package/lib-esm/components/console/OAuth2TokenInput.js +1 -1
- package/lib-esm/components/console/OpenIDConnect.js +1 -1
- package/lib-esm/components/console/utils.d.ts +6 -0
- package/lib-esm/components/console/utils.js +1 -1
- package/lib-esm/redoc-lib/src/components/Schema/DiscriminatorDropdown.js +1 -1
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/helpers.d.ts +4 -0
- package/lib-esm/redoc-lib/src/services/models/Schema.js +1 -1
- package/lib-esm/redoc-lib/src/types/open-api.d.ts +3 -0
- package/lib-esm/redoc-lib/src/utils/openapi.d.ts +3 -2
- package/lib-esm/redoc-lib/src/utils/openapi.js +1 -1
- package/lib-esm/redoc-lib/src/utils/string.d.ts +1 -0
- package/lib-esm/redoc-lib/src/utils/string.js +2 -0
- package/lib-esm/services/OAuth2.d.ts +4 -2
- package/lib-esm/services/OAuth2.js +1 -1
- package/lib-esm/services/OpenIDConnect.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2,52 +2,52 @@ var xr=Math.pow;/*!
|
|
|
2
2
|
* Redocly Reference Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "2.
|
|
6
|
-
*/(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{66419:(h,I,
|
|
5
|
+
* Version: "2.31.1"
|
|
6
|
+
*/(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{66419:(h,I,o)=>{h.exports=o(27698)},77766:(h,I,o)=>{h.exports=o(8065)},72119:(h,I,o)=>{h.exports=o(57448)},20116:(h,I,o)=>{h.exports=o(11955)},94473:(h,I,o)=>{h.exports=o(61577)},78580:(h,I,o)=>{h.exports=o(33778)},2991:(h,I,o)=>{h.exports=o(61798)},3649:(h,I,o)=>{h.exports=o(82073)},92762:(h,I,o)=>{h.exports=o(2348)},59340:(h,I,o)=>{h.exports=o(8933)},51942:(h,I,o)=>{h.exports=o(63383)},26295:(h,I,o)=>{h.exports=o(86209)},86902:(h,I,o)=>{h.exports=o(23059)},93476:(h,I,o)=>{h.exports=o(27460)},52424:(h,I,o)=>{h.exports=o(72010)},53592:(h,I,o)=>{h.exports=o(27385)},78363:(h,I,o)=>{h.exports=o(81522)},19996:(h,I,o)=>{h.exports=o(32209)},30699:(h,I,o)=>{h.exports=o(44442)},28834:(h,I,o)=>{h.exports=o(57152)},95683:(h,I,o)=>{h.exports=o(69447)},95238:(h,I,o)=>{h.exports=o(81493)},189:(h,I,o)=>{h.exports=o(76094)},32752:(h,I,o)=>{h.exports=o(70573)},44341:(h,I,o)=>{h.exports=o(73685)},58377:(h,I,o)=>{h.exports=o(27533)},13038:(h,I,o)=>{h.exports=o(39057)},63263:(h,I,o)=>{h.exports=o(84710)},24889:(h,I,o)=>{h.exports=o(74303)},89356:(h,I,o)=>{h.exports=o(93799)},79542:(h,I,o)=>{h.exports=o(55122)},69798:(h,I,o)=>{h.exports=o(29531)},13535:(h,I,o)=>{h.exports=o(10856)},83863:(h,I,o)=>{h.exports=o(31524)},51446:(h,I,o)=>{h.exports=o(86600)},23882:(h,I,o)=>{h.exports=o(9759)},63109:(h,I,o)=>{h.exports=o(35666)},79742:(h,I)=>{"use strict";I.byteLength=g,I.toByteArray=D,I.fromByteArray=q;for(var o=[],c=[],v=typeof Uint8Array!="undefined"?Uint8Array:Array,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,b=x.length;d<b;++d)o[d]=x[d],c[x.charCodeAt(d)]=d;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63;function S(W){var M=W.length;if(M%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var X=W.indexOf("=");X===-1&&(X=M);var R=X===M?0:4-X%4;return[X,R]}function g(W){var M=S(W),X=M[0],R=M[1];return(X+R)*3/4-R}function L(W,M,X){return(M+X)*3/4-X}function D(W){var M,X=S(W),R=X[0],C=X[1],V=new v(L(W,R,C)),J=0,_=C>0?R-4:R,Q;for(Q=0;Q<_;Q+=4)M=c[W.charCodeAt(Q)]<<18|c[W.charCodeAt(Q+1)]<<12|c[W.charCodeAt(Q+2)]<<6|c[W.charCodeAt(Q+3)],V[J++]=M>>16&255,V[J++]=M>>8&255,V[J++]=M&255;return C===2&&(M=c[W.charCodeAt(Q)]<<2|c[W.charCodeAt(Q+1)]>>4,V[J++]=M&255),C===1&&(M=c[W.charCodeAt(Q)]<<10|c[W.charCodeAt(Q+1)]<<4|c[W.charCodeAt(Q+2)]>>2,V[J++]=M>>8&255,V[J++]=M&255),V}function B(W){return o[W>>18&63]+o[W>>12&63]+o[W>>6&63]+o[W&63]}function j(W,M,X){for(var R,C=[],V=M;V<X;V+=3)R=(W[V]<<16&16711680)+(W[V+1]<<8&65280)+(W[V+2]&255),C.push(B(R));return C.join("")}function q(W){for(var M,X=W.length,R=X%3,C=[],V=16383,J=0,_=X-R;J<_;J+=V)C.push(j(W,J,J+V>_?_:J+V));return R===1?(M=W[X-1],C.push(o[M>>2]+o[M<<4&63]+"==")):R===2&&(M=(W[X-2]<<8)+W[X-1],C.push(o[M>>10]+o[M>>4&63]+o[M<<2&63]+"=")),C.join("")}},50706:(h,I,o)=>{var c=o(48764).Buffer;(function(){"use strict";function v(x){var d;return x instanceof c?d=x:d=c.from(x.toString(),"binary"),d.toString("base64")}h.exports=v})()},48764:(h,I,o)=>{"use strict";/*!
|
|
7
7
|
* The buffer module from node.js, for the browser.
|
|
8
8
|
*
|
|
9
9
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
10
10
|
* @license MIT
|
|
11
|
-
*/var c=a(79742),v=a(80645),x=a(5826);I.Buffer=g,I.SlowBuffer=C,I.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=a.g.TYPED_ARRAY_SUPPORT!==void 0?a.g.TYPED_ARRAY_SUPPORT:d(),I.kMaxLength=b();function d(){try{var ve=new Uint8Array(1);return ve.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ve.foo()===42&&typeof ve.subarray=="function"&&ve.subarray(1,1).byteLength===0}catch(z){return!1}}function b(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function S(ve,z){if(b()<z)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(ve=new Uint8Array(z),ve.__proto__=g.prototype):(ve===null&&(ve=new g(z)),ve.length=z),ve}function g(ve,z,$){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(ve,z,$);if(typeof ve=="number"){if(typeof z=="string")throw new Error("If encoding is specified then the first argument must be a string");return j(this,ve)}return L(this,ve,z,$)}g.poolSize=8192,g._augment=function(ve){return ve.__proto__=g.prototype,ve};function L(ve,z,$,Se){if(typeof z=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&z instanceof ArrayBuffer?R(ve,z,$,Se):typeof z=="string"?q(ve,z,$):X(ve,z)}g.from=function(ve,z,$){return L(null,ve,z,$)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&g[Symbol.species]===g&&Object.defineProperty(g,Symbol.species,{value:null,configurable:!0}));function D(ve){if(typeof ve!="number")throw new TypeError('"size" argument must be a number');if(ve<0)throw new RangeError('"size" argument must not be negative')}function B(ve,z,$,Se){return D(z),z<=0?S(ve,z):$!==void 0?typeof Se=="string"?S(ve,z).fill($,Se):S(ve,z).fill($):S(ve,z)}g.alloc=function(ve,z,$){return B(null,ve,z,$)};function j(ve,z){if(D(z),ve=S(ve,z<0?0:M(z)|0),!g.TYPED_ARRAY_SUPPORT)for(var $=0;$<z;++$)ve[$]=0;return ve}g.allocUnsafe=function(ve){return j(null,ve)},g.allocUnsafeSlow=function(ve){return j(null,ve)};function q(ve,z,$){if((typeof $!="string"||$==="")&&($="utf8"),!g.isEncoding($))throw new TypeError('"encoding" must be a valid string encoding');var Se=V(z,$)|0;ve=S(ve,Se);var Ie=ve.write(z,$);return Ie!==Se&&(ve=ve.slice(0,Ie)),ve}function W(ve,z){var $=z.length<0?0:M(z.length)|0;ve=S(ve,$);for(var Se=0;Se<$;Se+=1)ve[Se]=z[Se]&255;return ve}function R(ve,z,$,Se){if(z.byteLength,$<0||z.byteLength<$)throw new RangeError("'offset' is out of bounds");if(z.byteLength<$+(Se||0))throw new RangeError("'length' is out of bounds");return $===void 0&&Se===void 0?z=new Uint8Array(z):Se===void 0?z=new Uint8Array(z,$):z=new Uint8Array(z,$,Se),g.TYPED_ARRAY_SUPPORT?(ve=z,ve.__proto__=g.prototype):ve=W(ve,z),ve}function X(ve,z){if(g.isBuffer(z)){var $=M(z.length)|0;return ve=S(ve,$),ve.length===0||z.copy(ve,0,0,$),ve}if(z){if(typeof ArrayBuffer!="undefined"&&z.buffer instanceof ArrayBuffer||"length"in z)return typeof z.length!="number"||Dt(z.length)?S(ve,0):W(ve,z);if(z.type==="Buffer"&&x(z.data))return W(ve,z.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function M(ve){if(ve>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return ve|0}function C(ve){return+ve!=ve&&(ve=0),g.alloc(+ve)}g.isBuffer=function(z){return!!(z!=null&&z._isBuffer)},g.compare=function(z,$){if(!g.isBuffer(z)||!g.isBuffer($))throw new TypeError("Arguments must be Buffers");if(z===$)return 0;for(var Se=z.length,Ie=$.length,Ge=0,Ke=Math.min(Se,Ie);Ge<Ke;++Ge)if(z[Ge]!==$[Ge]){Se=z[Ge],Ie=$[Ge];break}return Se<Ie?-1:Ie<Se?1:0},g.isEncoding=function(z){switch(String(z).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(z,$){if(!x(z))throw new TypeError('"list" argument must be an Array of Buffers');if(z.length===0)return g.alloc(0);var Se;if($===void 0)for($=0,Se=0;Se<z.length;++Se)$+=z[Se].length;var Ie=g.allocUnsafe($),Ge=0;for(Se=0;Se<z.length;++Se){var Ke=z[Se];if(!g.isBuffer(Ke))throw new TypeError('"list" argument must be an Array of Buffers');Ke.copy(Ie,Ge),Ge+=Ke.length}return Ie};function V(ve,z){if(g.isBuffer(ve))return ve.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ve)||ve instanceof ArrayBuffer))return ve.byteLength;typeof ve!="string"&&(ve=""+ve);var $=ve.length;if($===0)return 0;for(var Se=!1;;)switch(z){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":case void 0:return Ct(ve).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return Vt(ve).length;default:if(Se)return Ct(ve).length;z=(""+z).toLowerCase(),Se=!0}}g.byteLength=V;function J(ve,z,$){var Se=!1;if((z===void 0||z<0)&&(z=0),z>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,z>>>=0,$<=z))return"";for(ve||(ve="utf8");;)switch(ve){case"hex":return rt(this,z,$);case"utf8":case"utf-8":return oe(this,z,$);case"ascii":return Re(this,z,$);case"latin1":case"binary":return Pe(this,z,$);case"base64":return ue(this,z,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,z,$);default:if(Se)throw new TypeError("Unknown encoding: "+ve);ve=(ve+"").toLowerCase(),Se=!0}}g.prototype._isBuffer=!0;function _(ve,z,$){var Se=ve[z];ve[z]=ve[$],ve[$]=Se}g.prototype.swap16=function(){var z=this.length;if(z%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $=0;$<z;$+=2)_(this,$,$+1);return this},g.prototype.swap32=function(){var z=this.length;if(z%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var $=0;$<z;$+=4)_(this,$,$+3),_(this,$+1,$+2);return this},g.prototype.swap64=function(){var z=this.length;if(z%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var $=0;$<z;$+=8)_(this,$,$+7),_(this,$+1,$+6),_(this,$+2,$+5),_(this,$+3,$+4);return this},g.prototype.toString=function(){var z=this.length|0;return z===0?"":arguments.length===0?oe(this,0,z):J.apply(this,arguments)},g.prototype.equals=function(z){if(!g.isBuffer(z))throw new TypeError("Argument must be a Buffer");return this===z?!0:g.compare(this,z)===0},g.prototype.inspect=function(){var z="",$=I.INSPECT_MAX_BYTES;return this.length>0&&(z=this.toString("hex",0,$).match(/.{2}/g).join(" "),this.length>$&&(z+=" ... ")),"<Buffer "+z+">"},g.prototype.compare=function(z,$,Se,Ie,Ge){if(!g.isBuffer(z))throw new TypeError("Argument must be a Buffer");if($===void 0&&($=0),Se===void 0&&(Se=z?z.length:0),Ie===void 0&&(Ie=0),Ge===void 0&&(Ge=this.length),$<0||Se>z.length||Ie<0||Ge>this.length)throw new RangeError("out of range index");if(Ie>=Ge&&$>=Se)return 0;if(Ie>=Ge)return-1;if($>=Se)return 1;if($>>>=0,Se>>>=0,Ie>>>=0,Ge>>>=0,this===z)return 0;for(var Ke=Ge-Ie,P=Se-$,Me=Math.min(Ke,P),K=this.slice(Ie,Ge),T=z.slice($,Se),O=0;O<Me;++O)if(K[O]!==T[O]){Ke=K[O],P=T[O];break}return Ke<P?-1:P<Ke?1:0};function Q(ve,z,$,Se,Ie){if(ve.length===0)return-1;if(typeof $=="string"?(Se=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,isNaN($)&&($=Ie?0:ve.length-1),$<0&&($=ve.length+$),$>=ve.length){if(Ie)return-1;$=ve.length-1}else if($<0)if(Ie)$=0;else return-1;if(typeof z=="string"&&(z=g.from(z,Se)),g.isBuffer(z))return z.length===0?-1:Y(ve,z,$,Se,Ie);if(typeof z=="number")return z=z&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ie?Uint8Array.prototype.indexOf.call(ve,z,$):Uint8Array.prototype.lastIndexOf.call(ve,z,$):Y(ve,[z],$,Se,Ie);throw new TypeError("val must be string, number or Buffer")}function Y(ve,z,$,Se,Ie){var Ge=1,Ke=ve.length,P=z.length;if(Se!==void 0&&(Se=String(Se).toLowerCase(),Se==="ucs2"||Se==="ucs-2"||Se==="utf16le"||Se==="utf-16le")){if(ve.length<2||z.length<2)return-1;Ge=2,Ke/=2,P/=2,$/=2}function Me(N,re){return Ge===1?N[re]:N.readUInt16BE(re*Ge)}var K;if(Ie){var T=-1;for(K=$;K<Ke;K++)if(Me(ve,K)===Me(z,T===-1?0:K-T)){if(T===-1&&(T=K),K-T+1===P)return T*Ge}else T!==-1&&(K-=K-T),T=-1}else for($+P>Ke&&($=Ke-P),K=$;K>=0;K--){for(var O=!0,se=0;se<P;se++)if(Me(ve,K+se)!==Me(z,se)){O=!1;break}if(O)return K}return-1}g.prototype.includes=function(z,$,Se){return this.indexOf(z,$,Se)!==-1},g.prototype.indexOf=function(z,$,Se){return Q(this,z,$,Se,!0)},g.prototype.lastIndexOf=function(z,$,Se){return Q(this,z,$,Se,!1)};function ce(ve,z,$,Se){$=Number($)||0;var Ie=ve.length-$;Se?(Se=Number(Se),Se>Ie&&(Se=Ie)):Se=Ie;var Ge=z.length;if(Ge%2!=0)throw new TypeError("Invalid hex string");Se>Ge/2&&(Se=Ge/2);for(var Ke=0;Ke<Se;++Ke){var P=parseInt(z.substr(Ke*2,2),16);if(isNaN(P))return Ke;ve[$+Ke]=P}return Ke}function ee(ve,z,$,Se){return St(Ct(z,ve.length-$),ve,$,Se)}function ie(ve,z,$,Se){return St(Wt(z),ve,$,Se)}function me(ve,z,$,Se){return ie(ve,z,$,Se)}function be(ve,z,$,Se){return St(Vt(z),ve,$,Se)}function he(ve,z,$,Se){return St(jt(z,ve.length-$),ve,$,Se)}g.prototype.write=function(z,$,Se,Ie){if($===void 0)Ie="utf8",Se=this.length,$=0;else if(Se===void 0&&typeof $=="string")Ie=$,Se=this.length,$=0;else if(isFinite($))$=$|0,isFinite(Se)?(Se=Se|0,Ie===void 0&&(Ie="utf8")):(Ie=Se,Se=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ge=this.length-$;if((Se===void 0||Se>Ge)&&(Se=Ge),z.length>0&&(Se<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ie||(Ie="utf8");for(var Ke=!1;;)switch(Ie){case"hex":return ce(this,z,$,Se);case"utf8":case"utf-8":return ee(this,z,$,Se);case"ascii":return ie(this,z,$,Se);case"latin1":case"binary":return me(this,z,$,Se);case"base64":return be(this,z,$,Se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,z,$,Se);default:if(Ke)throw new TypeError("Unknown encoding: "+Ie);Ie=(""+Ie).toLowerCase(),Ke=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(ve,z,$){return z===0&&$===ve.length?c.fromByteArray(ve):c.fromByteArray(ve.slice(z,$))}function oe(ve,z,$){$=Math.min(ve.length,$);for(var Se=[],Ie=z;Ie<$;){var Ge=ve[Ie],Ke=null,P=Ge>239?4:Ge>223?3:Ge>191?2:1;if(Ie+P<=$){var Me,K,T,O;switch(P){case 1:Ge<128&&(Ke=Ge);break;case 2:Me=ve[Ie+1],(Me&192)==128&&(O=(Ge&31)<<6|Me&63,O>127&&(Ke=O));break;case 3:Me=ve[Ie+1],K=ve[Ie+2],(Me&192)==128&&(K&192)==128&&(O=(Ge&15)<<12|(Me&63)<<6|K&63,O>2047&&(O<55296||O>57343)&&(Ke=O));break;case 4:Me=ve[Ie+1],K=ve[Ie+2],T=ve[Ie+3],(Me&192)==128&&(K&192)==128&&(T&192)==128&&(O=(Ge&15)<<18|(Me&63)<<12|(K&63)<<6|T&63,O>65535&&O<1114112&&(Ke=O))}}Ke===null?(Ke=65533,P=1):Ke>65535&&(Ke-=65536,Se.push(Ke>>>10&1023|55296),Ke=56320|Ke&1023),Se.push(Ke),Ie+=P}return Le(Se)}var Fe=4096;function Le(ve){var z=ve.length;if(z<=Fe)return String.fromCharCode.apply(String,ve);for(var $="",Se=0;Se<z;)$+=String.fromCharCode.apply(String,ve.slice(Se,Se+=Fe));return $}function Re(ve,z,$){var Se="";$=Math.min(ve.length,$);for(var Ie=z;Ie<$;++Ie)Se+=String.fromCharCode(ve[Ie]&127);return Se}function Pe(ve,z,$){var Se="";$=Math.min(ve.length,$);for(var Ie=z;Ie<$;++Ie)Se+=String.fromCharCode(ve[Ie]);return Se}function rt(ve,z,$){var Se=ve.length;(!z||z<0)&&(z=0),(!$||$<0||$>Se)&&($=Se);for(var Ie="",Ge=z;Ge<$;++Ge)Ie+=kt(ve[Ge]);return Ie}function Ze(ve,z,$){for(var Se=ve.slice(z,$),Ie="",Ge=0;Ge<Se.length;Ge+=2)Ie+=String.fromCharCode(Se[Ge]+Se[Ge+1]*256);return Ie}g.prototype.slice=function(z,$){var Se=this.length;z=~~z,$=$===void 0?Se:~~$,z<0?(z+=Se,z<0&&(z=0)):z>Se&&(z=Se),$<0?($+=Se,$<0&&($=0)):$>Se&&($=Se),$<z&&($=z);var Ie;if(g.TYPED_ARRAY_SUPPORT)Ie=this.subarray(z,$),Ie.__proto__=g.prototype;else{var Ge=$-z;Ie=new g(Ge,void 0);for(var Ke=0;Ke<Ge;++Ke)Ie[Ke]=this[Ke+z]}return Ie};function Xe(ve,z,$){if(ve%1!=0||ve<0)throw new RangeError("offset is not uint");if(ve+z>$)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z],Ge=1,Ke=0;++Ke<$&&(Ge*=256);)Ie+=this[z+Ke]*Ge;return Ie},g.prototype.readUIntBE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z+--$],Ge=1;$>0&&(Ge*=256);)Ie+=this[z+--$]*Ge;return Ie},g.prototype.readUInt8=function(z,$){return $||Xe(z,1,this.length),this[z]},g.prototype.readUInt16LE=function(z,$){return $||Xe(z,2,this.length),this[z]|this[z+1]<<8},g.prototype.readUInt16BE=function(z,$){return $||Xe(z,2,this.length),this[z]<<8|this[z+1]},g.prototype.readUInt32LE=function(z,$){return $||Xe(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+this[z+3]*16777216},g.prototype.readUInt32BE=function(z,$){return $||Xe(z,4,this.length),this[z]*16777216+(this[z+1]<<16|this[z+2]<<8|this[z+3])},g.prototype.readIntLE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z],Ge=1,Ke=0;++Ke<$&&(Ge*=256);)Ie+=this[z+Ke]*Ge;return Ge*=128,Ie>=Ge&&(Ie-=Math.pow(2,8*$)),Ie},g.prototype.readIntBE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=$,Ge=1,Ke=this[z+--Ie];Ie>0&&(Ge*=256);)Ke+=this[z+--Ie]*Ge;return Ge*=128,Ke>=Ge&&(Ke-=Math.pow(2,8*$)),Ke},g.prototype.readInt8=function(z,$){return $||Xe(z,1,this.length),this[z]&128?(255-this[z]+1)*-1:this[z]},g.prototype.readInt16LE=function(z,$){$||Xe(z,2,this.length);var Se=this[z]|this[z+1]<<8;return Se&32768?Se|4294901760:Se},g.prototype.readInt16BE=function(z,$){$||Xe(z,2,this.length);var Se=this[z+1]|this[z]<<8;return Se&32768?Se|4294901760:Se},g.prototype.readInt32LE=function(z,$){return $||Xe(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},g.prototype.readInt32BE=function(z,$){return $||Xe(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},g.prototype.readFloatLE=function(z,$){return $||Xe(z,4,this.length),v.read(this,z,!0,23,4)},g.prototype.readFloatBE=function(z,$){return $||Xe(z,4,this.length),v.read(this,z,!1,23,4)},g.prototype.readDoubleLE=function(z,$){return $||Xe(z,8,this.length),v.read(this,z,!0,52,8)},g.prototype.readDoubleBE=function(z,$){return $||Xe(z,8,this.length),v.read(this,z,!1,52,8)};function ft(ve,z,$,Se,Ie,Ge){if(!g.isBuffer(ve))throw new TypeError('"buffer" argument must be a Buffer instance');if(z>Ie||z<Ge)throw new RangeError('"value" argument is out of bounds');if($+Se>ve.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(z,$,Se,Ie){if(z=+z,$=$|0,Se=Se|0,!Ie){var Ge=Math.pow(2,8*Se)-1;ft(this,z,$,Se,Ge,0)}var Ke=1,P=0;for(this[$]=z&255;++P<Se&&(Ke*=256);)this[$+P]=z/Ke&255;return $+Se},g.prototype.writeUIntBE=function(z,$,Se,Ie){if(z=+z,$=$|0,Se=Se|0,!Ie){var Ge=Math.pow(2,8*Se)-1;ft(this,z,$,Se,Ge,0)}var Ke=Se-1,P=1;for(this[$+Ke]=z&255;--Ke>=0&&(P*=256);)this[$+Ke]=z/P&255;return $+Se},g.prototype.writeUInt8=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,1,255,0),g.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),this[$]=z&255,$+1};function ht(ve,z,$,Se){z<0&&(z=65535+z+1);for(var Ie=0,Ge=Math.min(ve.length-$,2);Ie<Ge;++Ie)ve[$+Ie]=(z&255<<8*(Se?Ie:1-Ie))>>>(Se?Ie:1-Ie)*8}g.prototype.writeUInt16LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8):ht(this,z,$,!0),$+2},g.prototype.writeUInt16BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>8,this[$+1]=z&255):ht(this,z,$,!1),$+2};function bt(ve,z,$,Se){z<0&&(z=4294967295+z+1);for(var Ie=0,Ge=Math.min(ve.length-$,4);Ie<Ge;++Ie)ve[$+Ie]=z>>>(Se?Ie:3-Ie)*8&255}g.prototype.writeUInt32LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$+3]=z>>>24,this[$+2]=z>>>16,this[$+1]=z>>>8,this[$]=z&255):bt(this,z,$,!0),$+4},g.prototype.writeUInt32BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>24,this[$+1]=z>>>16,this[$+2]=z>>>8,this[$+3]=z&255):bt(this,z,$,!1),$+4},g.prototype.writeIntLE=function(z,$,Se,Ie){if(z=+z,$=$|0,!Ie){var Ge=Math.pow(2,8*Se-1);ft(this,z,$,Se,Ge-1,-Ge)}var Ke=0,P=1,Me=0;for(this[$]=z&255;++Ke<Se&&(P*=256);)z<0&&Me===0&&this[$+Ke-1]!==0&&(Me=1),this[$+Ke]=(z/P>>0)-Me&255;return $+Se},g.prototype.writeIntBE=function(z,$,Se,Ie){if(z=+z,$=$|0,!Ie){var Ge=Math.pow(2,8*Se-1);ft(this,z,$,Se,Ge-1,-Ge)}var Ke=Se-1,P=1,Me=0;for(this[$+Ke]=z&255;--Ke>=0&&(P*=256);)z<0&&Me===0&&this[$+Ke+1]!==0&&(Me=1),this[$+Ke]=(z/P>>0)-Me&255;return $+Se},g.prototype.writeInt8=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,1,127,-128),g.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),z<0&&(z=255+z+1),this[$]=z&255,$+1},g.prototype.writeInt16LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8):ht(this,z,$,!0),$+2},g.prototype.writeInt16BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>8,this[$+1]=z&255):ht(this,z,$,!1),$+2},g.prototype.writeInt32LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8,this[$+2]=z>>>16,this[$+3]=z>>>24):bt(this,z,$,!0),$+4},g.prototype.writeInt32BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>24,this[$+1]=z>>>16,this[$+2]=z>>>8,this[$+3]=z&255):bt(this,z,$,!1),$+4};function nt(ve,z,$,Se,Ie,Ge){if($+Se>ve.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function ut(ve,z,$,Se,Ie){return Ie||nt(ve,z,$,4,34028234663852886e22,-34028234663852886e22),v.write(ve,z,$,Se,23,4),$+4}g.prototype.writeFloatLE=function(z,$,Se){return ut(this,z,$,!0,Se)},g.prototype.writeFloatBE=function(z,$,Se){return ut(this,z,$,!1,Se)};function yt(ve,z,$,Se,Ie){return Ie||nt(ve,z,$,8,17976931348623157e292,-17976931348623157e292),v.write(ve,z,$,Se,52,8),$+8}g.prototype.writeDoubleLE=function(z,$,Se){return yt(this,z,$,!0,Se)},g.prototype.writeDoubleBE=function(z,$,Se){return yt(this,z,$,!1,Se)},g.prototype.copy=function(z,$,Se,Ie){if(Se||(Se=0),!Ie&&Ie!==0&&(Ie=this.length),$>=z.length&&($=z.length),$||($=0),Ie>0&&Ie<Se&&(Ie=Se),Ie===Se||z.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(Se<0||Se>=this.length)throw new RangeError("sourceStart out of bounds");if(Ie<0)throw new RangeError("sourceEnd out of bounds");Ie>this.length&&(Ie=this.length),z.length-$<Ie-Se&&(Ie=z.length-$+Se);var Ge=Ie-Se,Ke;if(this===z&&Se<$&&$<Ie)for(Ke=Ge-1;Ke>=0;--Ke)z[Ke+$]=this[Ke+Se];else if(Ge<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ke=0;Ke<Ge;++Ke)z[Ke+$]=this[Ke+Se];else Uint8Array.prototype.set.call(z,this.subarray(Se,Se+Ge),$);return Ge},g.prototype.fill=function(z,$,Se,Ie){if(typeof z=="string"){if(typeof $=="string"?(Ie=$,$=0,Se=this.length):typeof Se=="string"&&(Ie=Se,Se=this.length),z.length===1){var Ge=z.charCodeAt(0);Ge<256&&(z=Ge)}if(Ie!==void 0&&typeof Ie!="string")throw new TypeError("encoding must be a string");if(typeof Ie=="string"&&!g.isEncoding(Ie))throw new TypeError("Unknown encoding: "+Ie)}else typeof z=="number"&&(z=z&255);if($<0||this.length<$||this.length<Se)throw new RangeError("Out of range index");if(Se<=$)return this;$=$>>>0,Se=Se===void 0?this.length:Se>>>0,z||(z=0);var Ke;if(typeof z=="number")for(Ke=$;Ke<Se;++Ke)this[Ke]=z;else{var P=g.isBuffer(z)?z:Ct(new g(z,Ie).toString()),Me=P.length;for(Ke=0;Ke<Se-$;++Ke)this[Ke+$]=P[Ke%Me]}return this};var mt=/[^+\/0-9A-Za-z-_]/g;function pt(ve){if(ve=Rt(ve).replace(mt,""),ve.length<2)return"";for(;ve.length%4!=0;)ve=ve+"=";return ve}function Rt(ve){return ve.trim?ve.trim():ve.replace(/^\s+|\s+$/g,"")}function kt(ve){return ve<16?"0"+ve.toString(16):ve.toString(16)}function Ct(ve,z){z=z||1/0;for(var $,Se=ve.length,Ie=null,Ge=[],Ke=0;Ke<Se;++Ke){if($=ve.charCodeAt(Ke),$>55295&&$<57344){if(!Ie){if($>56319){(z-=3)>-1&&Ge.push(239,191,189);continue}else if(Ke+1===Se){(z-=3)>-1&&Ge.push(239,191,189);continue}Ie=$;continue}if($<56320){(z-=3)>-1&&Ge.push(239,191,189),Ie=$;continue}$=(Ie-55296<<10|$-56320)+65536}else Ie&&(z-=3)>-1&&Ge.push(239,191,189);if(Ie=null,$<128){if((z-=1)<0)break;Ge.push($)}else if($<2048){if((z-=2)<0)break;Ge.push($>>6|192,$&63|128)}else if($<65536){if((z-=3)<0)break;Ge.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((z-=4)<0)break;Ge.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return Ge}function Wt(ve){for(var z=[],$=0;$<ve.length;++$)z.push(ve.charCodeAt($)&255);return z}function jt(ve,z){for(var $,Se,Ie,Ge=[],Ke=0;Ke<ve.length&&!((z-=2)<0);++Ke)$=ve.charCodeAt(Ke),Se=$>>8,Ie=$%256,Ge.push(Ie),Ge.push(Se);return Ge}function Vt(ve){return c.toByteArray(pt(ve))}function St(ve,z,$,Se){for(var Ie=0;Ie<Se&&!(Ie+$>=z.length||Ie>=ve.length);++Ie)z[Ie+$]=ve[Ie];return Ie}function Dt(ve){return ve!==ve}},21924:(h,I,a)=>{"use strict";var c=a(40210),v=a(55559),x=v(c("String.prototype.indexOf"));h.exports=function(b,S){var g=c(b,!!S);return typeof g=="function"&&x(b,".prototype.")>-1?v(g):g}},55559:(h,I,a)=>{"use strict";var c=a(58612),v=a(40210),x=v("%Function.prototype.apply%"),d=v("%Function.prototype.call%"),b=v("%Reflect.apply%",!0)||c.call(d,x),S=v("%Object.getOwnPropertyDescriptor%",!0),g=v("%Object.defineProperty%",!0),L=v("%Math.max%");if(g)try{g({},"a",{value:1})}catch(B){g=null}h.exports=function(j){var q=b(c,d,arguments);if(S&&g){var W=S(q,"length");W.configurable&&g(q,"length",{value:1+L(0,j.length-(arguments.length-1))})}return q};var D=function(){return b(c,x,arguments)};g?g(h.exports,"apply",{value:D}):h.exports.apply=D},82801:(h,I,a)=>{(function(c){c(a(4631))})(function(c){var v={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=c.Pos;c.defineOption("autoCloseBrackets",!1,function(M,C,V){V&&V!=c.Init&&(M.removeKeyMap(b),M.state.closeBrackets=null),C&&(S(d(C,"pairs")),M.state.closeBrackets=C,M.addKeyMap(b))});function d(M,C){return C=="pairs"&&typeof M=="string"?M:typeof M=="object"&&M[C]!=null?M[C]:v[C]}var b={Backspace:D,Enter:B};function S(M){for(var C=0;C<M.length;C++){var V=M.charAt(C),J="'"+V+"'";b[J]||(b[J]=g(V))}}S(v.pairs+"`");function g(M){return function(C){return W(C,M)}}function L(M){var C=M.state.closeBrackets;if(!C||C.override)return C;var V=M.getModeAt(M.getCursor());return V.closeBrackets||C}function D(M){var C=L(M);if(!C||M.getOption("disableInput"))return c.Pass;for(var V=d(C,"pairs"),J=M.listSelections(),_=0;_<J.length;_++){if(!J[_].empty())return c.Pass;var Q=R(M,J[_].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}for(var _=J.length-1;_>=0;_--){var Y=J[_].head;M.replaceRange("",x(Y.line,Y.ch-1),x(Y.line,Y.ch+1),"+delete")}}function B(M){var C=L(M),V=C&&d(C,"explode");if(!V||M.getOption("disableInput"))return c.Pass;for(var J=M.listSelections(),_=0;_<J.length;_++){if(!J[_].empty())return c.Pass;var Q=R(M,J[_].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}M.operation(function(){var Y=M.lineSeparator()||`
|
|
12
|
-
`;M.replaceSelection(Y+Y,null),j(M,-1),J=M.listSelections();for(var ce=0;ce<J.length;ce++){var ee=J[ce].head.line;M.indentLine(ee,null,!0),M.indentLine(ee+1,null,!0)}})}function j(M,C){for(var V=[],J=M.listSelections(),_=0,Q=0;Q<J.length;Q++){var Y=J[Q];Y.head==M.getCursor()&&(_=Q);var ce=Y.head.ch||C>0?{line:Y.head.line,ch:Y.head.ch+C}:{line:Y.head.line-1};V.push({anchor:ce,head:ce})}M.setSelections(V,_)}function q(M){var C=c.cmpPos(M.anchor,M.head)>0;return{anchor:new x(M.anchor.line,M.anchor.ch+(C?-1:1)),head:new x(M.head.line,M.head.ch+(C?1:-1))}}function W(M,C){var V=L(M);if(!V||M.getOption("disableInput"))return c.Pass;var J=d(V,"pairs"),_=J.indexOf(C);if(_==-1)return c.Pass;for(var Q=d(V,"closeBefore"),Y=d(V,"triples"),ce=J.charAt(_+1)==C,ee=M.listSelections(),ie=_%2==0,me,be=0;be<ee.length;be++){var he=ee[be],ue=he.head,oe,Fe=M.getRange(ue,x(ue.line,ue.ch+1));if(ie&&!he.empty())oe="surround";else if((ce||!ie)&&Fe==C)ce&&X(M,ue)?oe="both":Y.indexOf(C)>=0&&M.getRange(ue,x(ue.line,ue.ch+3))==C+C+C?oe="skipThree":oe="skip";else if(ce&&ue.ch>1&&Y.indexOf(C)>=0&&M.getRange(x(ue.line,ue.ch-2),ue)==C+C){if(ue.ch>2&&/\bstring/.test(M.getTokenTypeAt(x(ue.line,ue.ch-2))))return c.Pass;oe="addFour"}else if(ce){var Le=ue.ch==0?" ":M.getRange(x(ue.line,ue.ch-1),ue);if(!c.isWordChar(Fe)&&Le!=C&&!c.isWordChar(Le))oe="both";else return c.Pass}else if(ie&&(Fe.length===0||/\s/.test(Fe)||Q.indexOf(Fe)>-1))oe="both";else return c.Pass;if(!me)me=oe;else if(me!=oe)return c.Pass}var Re=_%2?J.charAt(_-1):C,Pe=_%2?C:J.charAt(_+1);M.operation(function(){if(me=="skip")j(M,1);else if(me=="skipThree")j(M,3);else if(me=="surround"){for(var rt=M.getSelections(),Ze=0;Ze<rt.length;Ze++)rt[Ze]=Re+rt[Ze]+Pe;M.replaceSelections(rt,"around"),rt=M.listSelections().slice();for(var Ze=0;Ze<rt.length;Ze++)rt[Ze]=q(rt[Ze]);M.setSelections(rt)}else me=="both"?(M.replaceSelection(Re+Pe,null),M.triggerElectric(Re+Pe),j(M,-1)):me=="addFour"&&(M.replaceSelection(Re+Re+Re+Re,"before"),j(M,1))})}function R(M,C){var V=M.getRange(x(C.line,C.ch-1),x(C.line,C.ch+1));return V.length==2?V:null}function X(M,C){var V=M.getTokenAt(x(C.line,C.ch+1));return/\bstring/.test(V.type)&&V.start==C.ch&&(C.ch==0||!/\bstring/.test(M.getTokenTypeAt(C)))}})},4328:(h,I,a)=>{(function(c){c(a(4631))})(function(c){var v=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),x=c.Pos,d={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function b(j){return j&&j.bracketRegex||/[(){}[\]]/}function S(j,q,W){var R=j.getLineHandle(q.line),X=q.ch-1,M=W&&W.afterCursor;M==null&&(M=/(^| )cm-fat-cursor($| )/.test(j.getWrapperElement().className));var C=b(W),V=!M&&X>=0&&C.test(R.text.charAt(X))&&d[R.text.charAt(X)]||C.test(R.text.charAt(X+1))&&d[R.text.charAt(++X)];if(!V)return null;var J=V.charAt(1)==">"?1:-1;if(W&&W.strict&&J>0!=(X==q.ch))return null;var _=j.getTokenTypeAt(x(q.line,X+1)),Q=g(j,x(q.line,X+(J>0?1:0)),J,_,W);return Q==null?null:{from:x(q.line,X),to:Q&&Q.pos,match:Q&&Q.ch==V.charAt(0),forward:J>0}}function g(j,q,W,R,X){for(var M=X&&X.maxScanLineLength||1e4,C=X&&X.maxScanLines||1e3,V=[],J=b(X),_=W>0?Math.min(q.line+C,j.lastLine()+1):Math.max(j.firstLine()-1,q.line-C),Q=q.line;Q!=_;Q+=W){var Y=j.getLine(Q);if(!!Y){var ce=W>0?0:Y.length-1,ee=W>0?Y.length:-1;if(!(Y.length>M))for(Q==q.line&&(ce=q.ch-(W<0?1:0));ce!=ee;ce+=W){var ie=Y.charAt(ce);if(J.test(ie)&&(R===void 0||(j.getTokenTypeAt(x(Q,ce+1))||"")==(R||""))){var me=d[ie];if(me&&me.charAt(1)==">"==W>0)V.push(ie);else if(V.length)V.pop();else return{pos:x(Q,ce),ch:ie}}}}}return Q-W==(W>0?j.lastLine():j.firstLine())?!1:null}function L(j,q,W){for(var R=j.state.matchBrackets.maxHighlightLineLength||1e3,X=W&&W.highlightNonMatching,M=[],C=j.listSelections(),V=0;V<C.length;V++){var J=C[V].empty()&&S(j,C[V].head,W);if(J&&(J.match||X!==!1)&&j.getLine(J.from.line).length<=R){var _=J.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";M.push(j.markText(J.from,x(J.from.line,J.from.ch+1),{className:_})),J.to&&j.getLine(J.to.line).length<=R&&M.push(j.markText(J.to,x(J.to.line,J.to.ch+1),{className:_}))}}if(M.length){v&&j.state.focused&&j.focus();var Q=function(){j.operation(function(){for(var Y=0;Y<M.length;Y++)M[Y].clear()})};if(q)setTimeout(Q,800);else return Q}}function D(j){j.operation(function(){j.state.matchBrackets.currentlyHighlighted&&(j.state.matchBrackets.currentlyHighlighted(),j.state.matchBrackets.currentlyHighlighted=null),j.state.matchBrackets.currentlyHighlighted=L(j,!1,j.state.matchBrackets)})}function B(j){j.state.matchBrackets&&j.state.matchBrackets.currentlyHighlighted&&(j.state.matchBrackets.currentlyHighlighted(),j.state.matchBrackets.currentlyHighlighted=null)}c.defineOption("matchBrackets",!1,function(j,q,W){W&&W!=c.Init&&(j.off("cursorActivity",D),j.off("focus",D),j.off("blur",B),B(j)),q&&(j.state.matchBrackets=typeof q=="object"?q:{},j.on("cursorActivity",D),j.on("focus",D),j.on("blur",B))}),c.defineExtension("matchBrackets",function(){L(this,!0)}),c.defineExtension("findMatchingBracket",function(j,q,W){return(W||typeof q=="boolean")&&(W?(W.strict=q,q=W):q=q?{strict:!0}:null),S(this,j,q)}),c.defineExtension("scanForBracket",function(j,q,W,R){return g(this,j,q,W,R)})})},71707:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-hint",x="CodeMirror-hint-active";c.showHint=function(M,C,V){if(!C)return M.showHint(V);V&&V.async&&(C.async=!0);var J={hint:C};if(V)for(var _ in V)J[_]=V[_];return M.showHint(J)},c.defineExtension("showHint",function(M){M=g(this,this.getCursor("start"),M);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!M.hint.supportsSelection)return;for(var V=0;V<C.length;V++)if(C[V].head.line!=C[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var J=this.state.completionActive=new d(this,M);!J.options.hint||(c.signal(this,"startCompletion",this),J.update(!0))}}),c.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function d(M,C){if(this.cm=M,this.options=C,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var V=this;M.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var b=window.requestAnimationFrame||function(M){return setTimeout(M,1e3/60)},S=window.cancelAnimationFrame||clearTimeout;d.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&c.signal(this.data,"close"),this.widget&&this.widget.close(),c.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(M,C){var V=M.list[C],J=this;this.cm.operation(function(){V.hint?V.hint(J.cm,M,V):J.cm.replaceRange(L(V),V.from||M.from,V.to||M.to,"complete"),c.signal(M,"pick",V),J.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(S(this.debounce),this.debounce=0);var M=this.startPos;this.data&&(M=this.data.from);var C=this.cm.getCursor(),V=this.cm.getLine(C.line);if(C.line!=this.startPos.line||V.length-C.ch!=this.startLen-this.startPos.ch||C.ch<M.ch||this.cm.somethingSelected()||!C.ch||this.options.closeCharacters.test(V.charAt(C.ch-1)))this.close();else{var J=this;this.debounce=b(function(){J.update()}),this.widget&&this.widget.disable()}},update:function(M){if(this.tick!=null){var C=this,V=++this.tick;W(this.options.hint,this.cm,this.options,function(J){C.tick==V&&C.finishUpdate(J,M)})}},finishUpdate:function(M,C){this.data&&c.signal(this.data,"update");var V=this.widget&&this.widget.picked||C&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=M,M&&M.list.length&&(V&&M.list.length==1?this.pick(M,0):(this.widget=new j(this,M),c.signal(M,"shown")))}};function g(M,C,V){var J=M.options.hintOptions,_={};for(var Q in X)_[Q]=X[Q];if(J)for(var Q in J)J[Q]!==void 0&&(_[Q]=J[Q]);if(V)for(var Q in V)V[Q]!==void 0&&(_[Q]=V[Q]);return _.hint.resolve&&(_.hint=_.hint.resolve(M,C)),_}function L(M){return typeof M=="string"?M:M.text}function D(M,C){var V={Up:function(){C.moveFocus(-1)},Down:function(){C.moveFocus(1)},PageUp:function(){C.moveFocus(-C.menuSize()+1,!0)},PageDown:function(){C.moveFocus(C.menuSize()-1,!0)},Home:function(){C.setFocus(0)},End:function(){C.setFocus(C.length-1)},Enter:C.pick,Tab:C.pick,Esc:C.close},J=/Mac/.test(navigator.platform);J&&(V["Ctrl-P"]=function(){C.moveFocus(-1)},V["Ctrl-N"]=function(){C.moveFocus(1)});var _=M.options.customKeys,Q=_?{}:V;function Y(ie,me){var be;typeof me!="string"?be=function(he){return me(he,C)}:V.hasOwnProperty(me)?be=V[me]:be=me,Q[ie]=be}if(_)for(var ce in _)_.hasOwnProperty(ce)&&Y(ce,_[ce]);var ee=M.options.extraKeys;if(ee)for(var ce in ee)ee.hasOwnProperty(ce)&&Y(ce,ee[ce]);return Q}function B(M,C){for(;C&&C!=M;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==M)return C;C=C.parentNode}}function j(M,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=M,this.data=C,this.picked=!1;var V=this,J=M.cm,_=J.getInputField().ownerDocument,Q=_.defaultView||_.parentWindow,Y=this.hints=_.createElement("ul");Y.setAttribute("role","listbox"),Y.setAttribute("aria-expanded","true"),Y.id=this.id;var ce=M.cm.options.theme;Y.className="CodeMirror-hints "+ce,this.selectedHint=C.selectedHint||0;for(var ee=C.list,ie=0;ie<ee.length;++ie){var me=Y.appendChild(_.createElement("li")),be=ee[ie],he=v+(ie!=this.selectedHint?"":" "+x);be.className!=null&&(he=be.className+" "+he),me.className=he,ie==this.selectedHint&&me.setAttribute("aria-selected","true"),me.id=this.id+"-"+ie,me.setAttribute("role","option"),be.render?be.render(me,C,be):me.appendChild(_.createTextNode(be.displayText||L(be))),me.hintId=ie}var ue=M.options.container||_.body,oe=J.cursorCoords(M.options.alignWithWord?C.from:null),Fe=oe.left,Le=oe.bottom,Re=!0,Pe=0,rt=0;if(ue!==_.body){var Ze=["absolute","relative","fixed"].indexOf(Q.getComputedStyle(ue).position)!==-1,Xe=Ze?ue:ue.offsetParent,ft=Xe.getBoundingClientRect(),ht=_.body.getBoundingClientRect();Pe=ft.left-ht.left-Xe.scrollLeft,rt=ft.top-ht.top-Xe.scrollTop}Y.style.left=Fe-Pe+"px",Y.style.top=Le-rt+"px";var bt=Q.innerWidth||Math.max(_.body.offsetWidth,_.documentElement.offsetWidth),nt=Q.innerHeight||Math.max(_.body.offsetHeight,_.documentElement.offsetHeight);ue.appendChild(Y),J.getInputField().setAttribute("aria-autocomplete","list"),J.getInputField().setAttribute("aria-owns",this.id),J.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var ut=M.options.moveOnOverlap?Y.getBoundingClientRect():new DOMRect,yt=M.options.paddingForScrollbar?Y.scrollHeight>Y.clientHeight+1:!1,mt;setTimeout(function(){mt=J.getScrollInfo()});var pt=ut.bottom-nt;if(pt>0){var Rt=ut.bottom-ut.top,kt=oe.top-(oe.bottom-ut.top);if(kt-Rt>0)Y.style.top=(Le=oe.top-Rt-rt)+"px",Re=!1;else if(Rt>nt){Y.style.height=nt-5+"px",Y.style.top=(Le=oe.bottom-ut.top-rt)+"px";var Ct=J.getCursor();C.from.ch!=Ct.ch&&(oe=J.cursorCoords(Ct),Y.style.left=(Fe=oe.left-Pe)+"px",ut=Y.getBoundingClientRect())}}var Wt=ut.right-bt;if(yt&&(Wt+=J.display.nativeBarWidth),Wt>0&&(ut.right-ut.left>bt&&(Y.style.width=bt-5+"px",Wt-=ut.right-ut.left-bt),Y.style.left=(Fe=oe.left-Wt-Pe)+"px"),yt)for(var jt=Y.firstChild;jt;jt=jt.nextSibling)jt.style.paddingRight=J.display.nativeBarWidth+"px";if(J.addKeyMap(this.keyMap=D(M,{moveFocus:function(Dt,ve){V.changeActive(V.selectedHint+Dt,ve)},setFocus:function(Dt){V.changeActive(Dt)},menuSize:function(){return V.screenAmount()},length:ee.length,close:function(){M.close()},pick:function(){V.pick()},data:C})),M.options.closeOnUnfocus){var Vt;J.on("blur",this.onBlur=function(){Vt=setTimeout(function(){M.close()},100)}),J.on("focus",this.onFocus=function(){clearTimeout(Vt)})}J.on("scroll",this.onScroll=function(){var Dt=J.getScrollInfo(),ve=J.getWrapperElement().getBoundingClientRect();mt||(mt=J.getScrollInfo());var z=Le+mt.top-Dt.top,$=z-(Q.pageYOffset||(_.documentElement||_.body).scrollTop);if(Re||($+=Y.offsetHeight),$<=ve.top||$>=ve.bottom)return M.close();Y.style.top=z+"px",Y.style.left=Fe+mt.left-Dt.left+"px"}),c.on(Y,"dblclick",function(Dt){var ve=B(Y,Dt.target||Dt.srcElement);ve&&ve.hintId!=null&&(V.changeActive(ve.hintId),V.pick())}),c.on(Y,"click",function(Dt){var ve=B(Y,Dt.target||Dt.srcElement);ve&&ve.hintId!=null&&(V.changeActive(ve.hintId),M.options.completeOnSingleClick&&V.pick())}),c.on(Y,"mousedown",function(){setTimeout(function(){J.focus()},20)});var St=this.getSelectedHintRange();return(St.from!==0||St.to!==0)&&this.scrollToActive(),c.signal(C,"select",ee[this.selectedHint],Y.childNodes[this.selectedHint]),!0}j.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var M=this.completion.cm.getInputField();M.removeAttribute("aria-activedescendant"),M.removeAttribute("aria-owns");var C=this.completion.cm;this.completion.options.closeOnUnfocus&&(C.off("blur",this.onBlur),C.off("focus",this.onFocus)),C.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var M=this;this.keyMap={Enter:function(){M.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(M,C){if(M>=this.data.list.length?M=C?this.data.list.length-1:0:M<0&&(M=C?0:this.data.list.length-1),this.selectedHint!=M){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+x,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=M],V.className+=" "+x,V.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",V.id),this.scrollToActive(),c.signal(this.data,"select",this.data.list[this.selectedHint],V)}},scrollToActive:function(){var M=this.getSelectedHintRange(),C=this.hints.childNodes[M.from],V=this.hints.childNodes[M.to],J=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-J.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+J.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var M=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-M),to:Math.min(this.data.list.length-1,this.selectedHint+M)}}};function q(M,C){if(!M.somethingSelected())return C;for(var V=[],J=0;J<C.length;J++)C[J].supportsSelection&&V.push(C[J]);return V}function W(M,C,V,J){if(M.async)M(C,J,V);else{var _=M(C,V);_&&_.then?_.then(J):J(_)}}function R(M,C){var V=M.getHelpers(C,"hint"),J;if(V.length){var _=function(Q,Y,ce){var ee=q(Q,V);function ie(me){if(me==ee.length)return Y(null);W(ee[me],Q,ce,function(be){be&&be.list.length>0?Y(be):ie(me+1)})}ie(0)};return _.async=!0,_.supportsSelection=!0,_}else return(J=M.getHelper(M.getCursor(),"hintWords"))?function(Q){return c.hint.fromList(Q,{words:J})}:c.hint.anyword?function(Q,Y){return c.hint.anyword(Q,Y)}:function(){}}c.registerHelper("hint","auto",{resolve:R}),c.registerHelper("hint","fromList",function(M,C){var V=M.getCursor(),J=M.getTokenAt(V),_,Q=c.Pos(V.line,J.start),Y=V;J.start<V.ch&&/\w/.test(J.string.charAt(V.ch-J.start-1))?_=J.string.substr(0,V.ch-J.start):(_="",Q=V);for(var ce=[],ee=0;ee<C.words.length;ee++){var ie=C.words[ee];ie.slice(0,_.length)==_&&ce.push(ie)}if(ce.length)return{list:ce,from:Q,to:Y}}),c.commands.autocomplete=c.showHint;var X={hint:c.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};c.defineOption("hintOptions",null)})},3256:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers",x="CodeMirror-lint-line-";function d(Y,ce,ee){var ie=document.createElement("div");ie.className="CodeMirror-lint-tooltip cm-s-"+Y.options.theme,ie.appendChild(ee.cloneNode(!0)),Y.state.lint.options.selfContain?Y.getWrapperElement().appendChild(ie):document.body.appendChild(ie);function me(be){if(!ie.parentNode)return c.off(document,"mousemove",me);ie.style.top=Math.max(0,be.clientY-ie.offsetHeight-5)+"px",ie.style.left=be.clientX+5+"px"}return c.on(document,"mousemove",me),me(ce),ie.style.opacity!=null&&(ie.style.opacity=1),ie}function b(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}function S(Y){!Y.parentNode||(Y.style.opacity==null&&b(Y),Y.style.opacity=0,setTimeout(function(){b(Y)},600))}function g(Y,ce,ee,ie){var me=d(Y,ce,ee);function be(){c.off(ie,"mouseout",be),me&&(S(me),me=null)}var he=setInterval(function(){if(me)for(var ue=ie;;ue=ue.parentNode){if(ue&&ue.nodeType==11&&(ue=ue.host),ue==document.body)return;if(!ue){be();break}}if(!me)return clearInterval(he)},400);c.on(ie,"mouseout",be)}function L(Y,ce,ee){this.marked=[],ce instanceof Function&&(ce={getAnnotations:ce}),(!ce||ce===!0)&&(ce={}),this.options={},this.linterOptions=ce.options||{};for(var ie in D)this.options[ie]=D[ie];for(var ie in ce)D.hasOwnProperty(ie)?ce[ie]!=null&&(this.options[ie]=ce[ie]):ce.options||(this.linterOptions[ie]=ce[ie]);this.timeout=null,this.hasGutter=ee,this.onMouseOver=function(me){Q(Y,me)},this.waitingFor=0}var D={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function B(Y){var ce=Y.state.lint;ce.hasGutter&&Y.clearGutter(v),ce.options.highlightLines&&j(Y);for(var ee=0;ee<ce.marked.length;++ee)ce.marked[ee].clear();ce.marked.length=0}function j(Y){Y.eachLine(function(ce){var ee=ce.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(ce.wrapClass);ee&&Y.removeLineClass(ce,"wrap",ee[0])})}function q(Y,ce,ee,ie,me){var be=document.createElement("div"),he=be;return be.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+ee,ie&&(he=be.appendChild(document.createElement("div")),he.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),me!=!1&&c.on(he,"mouseover",function(ue){g(Y,ue,ce,he)}),be}function W(Y,ce){return Y=="error"?Y:ce}function R(Y){for(var ce=[],ee=0;ee<Y.length;++ee){var ie=Y[ee],me=ie.from.line;(ce[me]||(ce[me]=[])).push(ie)}return ce}function X(Y){var ce=Y.severity;ce||(ce="error");var ee=document.createElement("div");return ee.className="CodeMirror-lint-message CodeMirror-lint-message-"+ce,typeof Y.messageHTML!="undefined"?ee.innerHTML=Y.messageHTML:ee.appendChild(document.createTextNode(Y.message)),ee}function M(Y,ce){var ee=Y.state.lint,ie=++ee.waitingFor;function me(){ie=-1,Y.off("change",me)}Y.on("change",me),ce(Y.getValue(),function(be,he){Y.off("change",me),ee.waitingFor==ie&&(he&&be instanceof c&&(be=he),Y.operation(function(){V(Y,be)}))},ee.linterOptions,Y)}function C(Y){var ce=Y.state.lint;if(!!ce){var ee=ce.options,ie=ee.getAnnotations||Y.getHelper(c.Pos(0,0),"lint");if(!!ie)if(ee.async||ie.async)M(Y,ie);else{var me=ie(Y.getValue(),ce.linterOptions,Y);if(!me)return;me.then?me.then(function(be){Y.operation(function(){V(Y,be)})}):Y.operation(function(){V(Y,me)})}}}function V(Y,ce){var ee=Y.state.lint;if(!!ee){var ie=ee.options;B(Y);for(var me=R(ce),be=0;be<me.length;++be){var he=me[be];if(!!he){var ue=[];he=he.filter(function(rt){return ue.indexOf(rt.message)>-1?!1:ue.push(rt.message)});for(var oe=null,Fe=ee.hasGutter&&document.createDocumentFragment(),Le=0;Le<he.length;++Le){var Re=he[Le],Pe=Re.severity;Pe||(Pe="error"),oe=W(oe,Pe),ie.formatAnnotation&&(Re=ie.formatAnnotation(Re)),ee.hasGutter&&Fe.appendChild(X(Re)),Re.to&&ee.marked.push(Y.markText(Re.from,Re.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+Pe,__annotation:Re}))}ee.hasGutter&&Y.setGutterMarker(be,v,q(Y,Fe,oe,me[be].length>1,ie.tooltips)),ie.highlightLines&&Y.addLineClass(be,"wrap",x+oe)}}ie.onUpdateLinting&&ie.onUpdateLinting(ce,me,Y)}}function J(Y){var ce=Y.state.lint;!ce||(clearTimeout(ce.timeout),ce.timeout=setTimeout(function(){C(Y)},ce.options.delay))}function _(Y,ce,ee){for(var ie=ee.target||ee.srcElement,me=document.createDocumentFragment(),be=0;be<ce.length;be++){var he=ce[be];me.appendChild(X(he))}g(Y,ee,me,ie)}function Q(Y,ce){var ee=ce.target||ce.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(ee.className)){for(var ie=ee.getBoundingClientRect(),me=(ie.left+ie.right)/2,be=(ie.top+ie.bottom)/2,he=Y.findMarksAt(Y.coordsChar({left:me,top:be},"client")),ue=[],oe=0;oe<he.length;++oe){var Fe=he[oe].__annotation;Fe&&ue.push(Fe)}ue.length&&_(Y,ue,ce)}}c.defineOption("lint",!1,function(Y,ce,ee){if(ee&&ee!=c.Init&&(B(Y),Y.state.lint.options.lintOnChange!==!1&&Y.off("change",J),c.off(Y.getWrapperElement(),"mouseover",Y.state.lint.onMouseOver),clearTimeout(Y.state.lint.timeout),delete Y.state.lint),ce){for(var ie=Y.getOption("gutters"),me=!1,be=0;be<ie.length;++be)ie[be]==v&&(me=!0);var he=Y.state.lint=new L(Y,ce,me);he.options.lintOnChange&&Y.on("change",J),he.options.tooltips!=!1&&he.options.tooltips!="gutter"&&c.on(Y.getWrapperElement(),"mouseover",he.onMouseOver),C(Y)}}),c.defineExtension("performLint",function(){C(this)})})},32095:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v=c.Pos;function x(C){var V=C.flags;return V!=null?V:(C.ignoreCase?"i":"")+(C.global?"g":"")+(C.multiline?"m":"")}function d(C,V){for(var J=x(C),_=J,Q=0;Q<V.length;Q++)_.indexOf(V.charAt(Q))==-1&&(_+=V.charAt(Q));return J==_?C:new RegExp(C.source,_)}function b(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function S(C,V,J){V=d(V,"g");for(var _=J.line,Q=J.ch,Y=C.lastLine();_<=Y;_++,Q=0){V.lastIndex=Q;var ce=C.getLine(_),ee=V.exec(ce);if(ee)return{from:v(_,ee.index),to:v(_,ee.index+ee[0].length),match:ee}}}function g(C,V,J){if(!b(V))return S(C,V,J);V=d(V,"gm");for(var _,Q=1,Y=J.line,ce=C.lastLine();Y<=ce;){for(var ee=0;ee<Q&&!(Y>ce);ee++){var ie=C.getLine(Y++);_=_==null?ie:_+`
|
|
13
|
-
`+ie}Q=Q*2,V.lastIndex=J.ch;var
|
|
14
|
-
`),he=
|
|
15
|
-
`),
|
|
16
|
-
`+_}Q*=2;var
|
|
17
|
-
`),
|
|
18
|
-
`),oe=ce+he.length,Fe=he[he.length-1].length;return{from:v(oe,Fe),to:v(oe+ue.length-1,ue.length==1?Fe+ue[0].length:ue[ue.length-1].length),match:be}}}}var j,q;String.prototype.normalize?(j=function(C){return C.normalize("NFD").toLowerCase()},q=function(C){return C.normalize("NFD")}):(j=function(C){return C.toLowerCase()},q=function(C){return C});function W(C,V,J,_){if(C.length==V.length)return J;for(var Q=0,Y=J+Math.max(0,C.length-V.length);;){if(Q==Y)return Q;var ce=Q+Y>>1,ee=_(C.slice(0,ce)).length;if(ee==J)return ce;ee>J?Y=ce:Q=ce+1}}function R(C,V,J,_){if(!V.length)return null;var Q=_?j:q,Y=Q(V).split(/\r|\n\r?/);e:for(var ce=J.line,ee=J.ch,ie=C.lastLine()+1-Y.length;ce<=ie;ce++,ee=0){var me=C.getLine(ce).slice(ee),be=Q(me);if(Y.length==1){var he=be.indexOf(Y[0]);if(he==-1)continue e;var J=W(me,be,he,Q)+ee;return{from:v(ce,W(me,be,he,Q)+ee),to:v(ce,W(me,be,he+Y[0].length,Q)+ee)}}else{var ue=be.length-Y[0].length;if(be.slice(ue)!=Y[0])continue e;for(var oe=1;oe<Y.length-1;oe++)if(Q(C.getLine(ce+oe))!=Y[oe])continue e;var Fe=C.getLine(ce+Y.length-1),Le=Q(Fe),Re=Y[Y.length-1];if(Le.slice(0,Re.length)!=Re)continue e;return{from:v(ce,W(me,be,ue,Q)+ee),to:v(ce+Y.length-1,W(Fe,Le,Re.length,Q))}}}}function X(C,V,J,_){if(!V.length)return null;var Q=_?j:q,Y=Q(V).split(/\r|\n\r?/);e:for(var ce=J.line,ee=J.ch,ie=C.firstLine()-1+Y.length;ce>=ie;ce--,ee=-1){var me=C.getLine(ce);ee>-1&&(me=me.slice(0,ee));var be=Q(me);if(Y.length==1){var he=be.lastIndexOf(Y[0]);if(he==-1)continue e;return{from:v(ce,W(me,be,he,Q)),to:v(ce,W(me,be,he+Y[0].length,Q))}}else{var ue=Y[Y.length-1];if(be.slice(0,ue.length)!=ue)continue e;for(var oe=1,J=ce-Y.length+1;oe<Y.length-1;oe++)if(Q(C.getLine(J+oe))!=Y[oe])continue e;var Fe=C.getLine(ce+1-Y.length),Le=Q(Fe);if(Le.slice(Le.length-Y[0].length)!=Y[0])continue e;return{from:v(ce+1-Y.length,W(Fe,Le,Fe.length-Y[0].length,Q)),to:v(ce,W(me,be,ue.length,Q))}}}}function M(C,V,J,_){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,J=J?C.clipPos(J):v(0,0),this.pos={from:J,to:J};var Q;typeof _=="object"?Q=_.caseFold:(Q=_,_=null),typeof V=="string"?(Q==null&&(Q=!1),this.matches=function(Y,ce){return(Y?X:R)(C,V,ce,Q)}):(V=d(V,"gm"),!_||_.multiline!==!1?this.matches=function(Y,ce){return(Y?B:g)(C,V,ce)}:this.matches=function(Y,ce){return(Y?D:S)(C,V,ce)})}M.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(C){var V=this.doc.clipPos(C?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(V=v(V.line,V.ch),C?(V.ch--,V.ch<0&&(V.line--,V.ch=(this.doc.getLine(V.line)||"").length)):(V.ch++,V.ch>(this.doc.getLine(V.line)||"").length&&(V.ch=0,V.line++)),c.cmpPos(V,this.doc.clipPos(V))!=0))return this.atOccurrence=!1;var J=this.matches(C,V);if(this.afterEmptyMatch=J&&c.cmpPos(J.from,J.to)==0,J)return this.pos=J,this.atOccurrence=!0,this.pos.match||!0;var _=v(C?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:_,to:_},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(C,V){if(!!this.atOccurrence){var J=c.splitLines(C);this.doc.replaceRange(J,this.pos.from,this.pos.to,V),this.pos.to=v(this.pos.from.line+J.length-1,J[J.length-1].length+(J.length==1?this.pos.from.ch:0))}}},c.defineExtension("getSearchCursor",function(C,V,J){return new M(this.doc,C,V,J)}),c.defineDocExtension("getSearchCursor",function(C,V,J){return new M(this,C,V,J)}),c.defineExtension("selectMatches",function(C,V){for(var J=[],_=this.getSearchCursor(C,this.getCursor("from"),V);_.findNext()&&!(c.cmpPos(_.to(),this.getCursor("to"))>0);)J.push({anchor:_.from(),head:_.to()});J.length&&this.setSelections(J,0)})})},4631:function(h){(function(I,a){h.exports=a()})(this,function(){"use strict";var I=navigator.userAgent,a=navigator.platform,c=/gecko\/\d/i.test(I),v=/MSIE \d/.test(I),x=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),d=/Edge\/(\d+)/.exec(I),b=v||x||d,S=b&&(v?document.documentMode||6:+(d||x)[1]),g=!d&&/WebKit\//.test(I),L=g&&/Qt\/\d+\.\d+/.test(I),D=!d&&/Chrome\//.test(I),B=/Opera\//.test(I),j=/Apple Computer/.test(navigator.vendor),q=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),W=/PhantomJS/.test(I),R=j&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),X=/Android/.test(I),M=R||X||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),C=R||/Mac/.test(a),V=/\bCrOS\b/.test(I),J=/win/i.test(a),_=B&&I.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(B=!1,g=!0);var Q=C&&(L||B&&(_==null||_<12.11)),Y=c||b&&S>=9;function ce(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ee=function(e,n){var u=e.className,l=ce(n).exec(u);if(l){var f=u.slice(l.index+l[0].length);e.className=u.slice(0,l.index)+(f?l[1]+f:"")}};function ie(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function me(e,n){return ie(e).appendChild(n)}function be(e,n,u,l){var f=document.createElement(e);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof n=="string")f.appendChild(document.createTextNode(n));else if(n)for(var y=0;y<n.length;++y)f.appendChild(n[y]);return f}function he(e,n,u,l){var f=be(e,n,u,l);return f.setAttribute("role","presentation"),f}var ue;document.createRange?ue=function(e,n,u,l){var f=document.createRange();return f.setEnd(l||e,u),f.setStart(e,n),f}:ue=function(e,n,u){var l=document.body.createTextRange();try{l.moveToElementText(e.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",n),l};function oe(e,n){if(n.nodeType==3&&(n=n.parentNode),e.contains)return e.contains(n);do if(n.nodeType==11&&(n=n.host),n==e)return!0;while(n=n.parentNode)}function Fe(){var e;try{e=document.activeElement}catch(n){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Le(e,n){var u=e.className;ce(n).test(u)||(e.className+=(u?" ":"")+n)}function Re(e,n){for(var u=e.split(" "),l=0;l<u.length;l++)u[l]&&!ce(u[l]).test(n)&&(n+=" "+u[l]);return n}var Pe=function(e){e.select()};R?Pe=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(Pe=function(e){try{e.select()}catch(n){}});function rt(e){var n=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,n)}}function Ze(e,n,u){n||(n={});for(var l in e)e.hasOwnProperty(l)&&(u!==!1||!n.hasOwnProperty(l))&&(n[l]=e[l]);return n}function Xe(e,n,u,l,f){n==null&&(n=e.search(/[^\s\u00a0]/),n==-1&&(n=e.length));for(var y=l||0,F=f||0;;){var U=e.indexOf(" ",y);if(U<0||U>=n)return F+(n-y);F+=U-y,F+=u-F%u,y=U+1}}var ft=function(){this.id=null,this.f=null,this.time=0,this.handler=rt(this.onTimeout,this)};ft.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ft.prototype.set=function(e,n){this.f=n;var u=+new Date+e;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=u)};function ht(e,n){for(var u=0;u<e.length;++u)if(e[u]==n)return u;return-1}var bt=50,nt={toString:function(){return"CodeMirror.Pass"}},ut={scroll:!1},yt={origin:"*mouse"},mt={origin:"+move"};function pt(e,n,u){for(var l=0,f=0;;){var y=e.indexOf(" ",l);y==-1&&(y=e.length);var F=y-l;if(y==e.length||f+F>=n)return l+Math.min(F,n-f);if(f+=y-l,f+=u-f%u,l=y+1,f>=n)return l}}var Rt=[""];function kt(e){for(;Rt.length<=e;)Rt.push(Ct(Rt)+" ");return Rt[e]}function Ct(e){return e[e.length-1]}function Wt(e,n){for(var u=[],l=0;l<e.length;l++)u[l]=n(e[l],l);return u}function jt(e,n,u){for(var l=0,f=u(n);l<e.length&&u(e[l])<=f;)l++;e.splice(l,0,n)}function Vt(){}function St(e,n){var u;return Object.create?u=Object.create(e):(Vt.prototype=e,u=new Vt),n&&Ze(n,u),u}var Dt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ve(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Dt.test(e))}function z(e,n){return n?n.source.indexOf("\\w")>-1&&ve(e)?!0:n.test(e):ve(e)}function $(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var Se=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ie(e){return e.charCodeAt(0)>=768&&Se.test(e)}function Ge(e,n,u){for(;(u<0?n>0:n<e.length)&&Ie(e.charAt(n));)n+=u;return n}function Ke(e,n,u){for(var l=n>u?-1:1;;){if(n==u)return n;var f=(n+u)/2,y=l<0?Math.ceil(f):Math.floor(f);if(y==n)return e(y)?n:u;e(y)?u=y:n=y+l}}function P(e,n,u,l){if(!e)return l(n,u,"ltr",0);for(var f=!1,y=0;y<e.length;++y){var F=e[y];(F.from<u&&F.to>n||n==u&&F.to==n)&&(l(Math.max(F.from,n),Math.min(F.to,u),F.level==1?"rtl":"ltr",y),f=!0)}f||l(n,u,"ltr")}var Me=null;function K(e,n,u){var l;Me=null;for(var f=0;f<e.length;++f){var y=e[f];if(y.from<n&&y.to>n)return f;y.to==n&&(y.from!=y.to&&u=="before"?l=f:Me=f),y.from==n&&(y.from!=y.to&&u!="before"?l=f:Me=f)}return l!=null?l:Me}var T=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(Z){return Z<=247?e.charAt(Z):1424<=Z&&Z<=1524?"R":1536<=Z&&Z<=1785?n.charAt(Z-1536):1774<=Z&&Z<=2220?"r":8192<=Z&&Z<=8203?"w":Z==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,y=/[LRr]/,F=/[Lb1n]/,U=/[1n]/;function H(Z,xe,Ce){this.level=Z,this.from=xe,this.to=Ce}return function(Z,xe){var Ce=xe=="ltr"?"L":"R";if(Z.length==0||xe=="ltr"&&!l.test(Z))return!1;for(var De=Z.length,ke=[],Ye=0;Ye<De;++Ye)ke.push(u(Z.charCodeAt(Ye)));for(var tt=0,ot=Ce;tt<De;++tt){var ct=ke[tt];ct=="m"?ke[tt]=ot:ot=ct}for(var gt=0,dt=Ce;gt<De;++gt){var xt=ke[gt];xt=="1"&&dt=="r"?ke[gt]="n":y.test(xt)&&(dt=xt,xt=="r"&&(ke[gt]="R"))}for(var Ft=1,It=ke[0];Ft<De-1;++Ft){var it=ke[Ft];it=="+"&&It=="1"&&ke[Ft+1]=="1"?ke[Ft]="1":it==","&&It==ke[Ft+1]&&(It=="1"||It=="n")&&(ke[Ft]=It),It=it}for(var Gt=0;Gt<De;++Gt){var hr=ke[Gt];if(hr==",")ke[Gt]="N";else if(hr=="%"){var vr=void 0;for(vr=Gt+1;vr<De&&ke[vr]=="%";++vr);for(var bn=Gt&&ke[Gt-1]=="!"||vr<De&&ke[vr]=="1"?"1":"N",fn=Gt;fn<vr;++fn)ke[fn]=bn;Gt=vr-1}}for(var Ar=0,cn=Ce;Ar<De;++Ar){var $r=ke[Ar];cn=="L"&&$r=="1"?ke[Ar]="L":y.test($r)&&(cn=$r)}for(var Fr=0;Fr<De;++Fr)if(f.test(ke[Fr])){var gr=void 0;for(gr=Fr+1;gr<De&&f.test(ke[gr]);++gr);for(var yr=(Fr?ke[Fr-1]:Ce)=="L",nn=(gr<De?ke[gr]:Ce)=="L",na=yr==nn?yr?"L":"R":Ce,Ri=Fr;Ri<gr;++Ri)ke[Ri]=na;Fr=gr-1}for(var Xr=[],$n,jr=0;jr<De;)if(F.test(ke[jr])){var ia=jr;for(++jr;jr<De&&F.test(ke[jr]);++jr);Xr.push(new H(0,ia,jr))}else{var Er=jr,Aa=Xr.length,Kn=xe=="rtl"?1:0;for(++jr;jr<De&&ke[jr]!="L";++jr);for(var an=Er;an<jr;)if(U.test(ke[an])){Er<an&&(Xr.splice(Aa,0,new H(1,Er,an)),Aa+=Kn);var lo=an;for(++an;an<jr&&U.test(ke[an]);++an);Xr.splice(Aa,0,new H(2,lo,an)),Aa+=Kn,Er=an}else++an;Er<jr&&Xr.splice(Aa,0,new H(1,Er,jr))}return xe=="ltr"&&(Xr[0].level==1&&($n=Z.match(/^\s+/))&&(Xr[0].from=$n[0].length,Xr.unshift(new H(0,0,$n[0].length))),Ct(Xr).level==1&&($n=Z.match(/\s+$/))&&(Ct(Xr).to-=$n[0].length,Xr.push(new H(0,De-$n[0].length,De)))),xe=="rtl"?Xr.reverse():Xr}}();function O(e,n){var u=e.order;return u==null&&(u=e.order=T(e.text,n)),u}var se=[],N=function(e,n,u){if(e.addEventListener)e.addEventListener(n,u,!1);else if(e.attachEvent)e.attachEvent("on"+n,u);else{var l=e._handlers||(e._handlers={});l[n]=(l[n]||se).concat(u)}};function re(e,n){return e._handlers&&e._handlers[n]||se}function de(e,n,u){if(e.removeEventListener)e.removeEventListener(n,u,!1);else if(e.detachEvent)e.detachEvent("on"+n,u);else{var l=e._handlers,f=l&&l[n];if(f){var y=ht(f,u);y>-1&&(l[n]=f.slice(0,y).concat(f.slice(y+1)))}}}function ae(e,n){var u=re(e,n);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<u.length;++f)u[f].apply(null,l)}function pe(e,n,u){return typeof n=="string"&&(n={type:n,preventDefault:function(){this.defaultPrevented=!0}}),ae(e,u||n.type,e,n),Et(n)||n.codemirrorIgnore}function Ae(e){var n=e._handlers&&e._handlers.cursorActivity;if(!!n)for(var u=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),l=0;l<n.length;++l)ht(u,n[l])==-1&&u.push(n[l])}function Be(e,n){return re(e,n).length>0}function Ue(e){e.prototype.on=function(n,u){N(this,n,u)},e.prototype.off=function(n,u){de(this,n,u)}}function Qe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function vt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Et(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Bt(e){Qe(e),vt(e)}function Pt(e){return e.target||e.srcElement}function pn(e){var n=e.which;return n==null&&(e.button&1?n=1:e.button&2?n=3:e.button&4&&(n=2)),C&&e.ctrlKey&&n==1&&(n=3),n}var Dr=function(){if(b&&S<9)return!1;var e=be("div");return"draggable"in e||"dragDrop"in e}(),Or;function mi(e){if(Or==null){var n=be("span","\u200B");me(e,be("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Or=n.offsetWidth<=1&&n.offsetHeight>2&&!(b&&S<8))}var u=Or?be("span","\u200B"):be("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var Hr;function Bi(e){if(Hr!=null)return Hr;var n=me(e,document.createTextNode("A\u062EA")),u=ue(n,0,1).getBoundingClientRect(),l=ue(n,1,2).getBoundingClientRect();return ie(e),!u||u.left==u.right?!1:Hr=l.right-u.right<3}var Bn=`
|
|
11
|
+
*/var c=o(79742),v=o(80645),x=o(5826);I.Buffer=g,I.SlowBuffer=C,I.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=o.g.TYPED_ARRAY_SUPPORT!==void 0?o.g.TYPED_ARRAY_SUPPORT:d(),I.kMaxLength=b();function d(){try{var ve=new Uint8Array(1);return ve.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ve.foo()===42&&typeof ve.subarray=="function"&&ve.subarray(1,1).byteLength===0}catch(z){return!1}}function b(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function S(ve,z){if(b()<z)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(ve=new Uint8Array(z),ve.__proto__=g.prototype):(ve===null&&(ve=new g(z)),ve.length=z),ve}function g(ve,z,$){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(ve,z,$);if(typeof ve=="number"){if(typeof z=="string")throw new Error("If encoding is specified then the first argument must be a string");return j(this,ve)}return L(this,ve,z,$)}g.poolSize=8192,g._augment=function(ve){return ve.__proto__=g.prototype,ve};function L(ve,z,$,Se){if(typeof z=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&z instanceof ArrayBuffer?M(ve,z,$,Se):typeof z=="string"?q(ve,z,$):X(ve,z)}g.from=function(ve,z,$){return L(null,ve,z,$)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&g[Symbol.species]===g&&Object.defineProperty(g,Symbol.species,{value:null,configurable:!0}));function D(ve){if(typeof ve!="number")throw new TypeError('"size" argument must be a number');if(ve<0)throw new RangeError('"size" argument must not be negative')}function B(ve,z,$,Se){return D(z),z<=0?S(ve,z):$!==void 0?typeof Se=="string"?S(ve,z).fill($,Se):S(ve,z).fill($):S(ve,z)}g.alloc=function(ve,z,$){return B(null,ve,z,$)};function j(ve,z){if(D(z),ve=S(ve,z<0?0:R(z)|0),!g.TYPED_ARRAY_SUPPORT)for(var $=0;$<z;++$)ve[$]=0;return ve}g.allocUnsafe=function(ve){return j(null,ve)},g.allocUnsafeSlow=function(ve){return j(null,ve)};function q(ve,z,$){if((typeof $!="string"||$==="")&&($="utf8"),!g.isEncoding($))throw new TypeError('"encoding" must be a valid string encoding');var Se=V(z,$)|0;ve=S(ve,Se);var Ie=ve.write(z,$);return Ie!==Se&&(ve=ve.slice(0,Ie)),ve}function W(ve,z){var $=z.length<0?0:R(z.length)|0;ve=S(ve,$);for(var Se=0;Se<$;Se+=1)ve[Se]=z[Se]&255;return ve}function M(ve,z,$,Se){if(z.byteLength,$<0||z.byteLength<$)throw new RangeError("'offset' is out of bounds");if(z.byteLength<$+(Se||0))throw new RangeError("'length' is out of bounds");return $===void 0&&Se===void 0?z=new Uint8Array(z):Se===void 0?z=new Uint8Array(z,$):z=new Uint8Array(z,$,Se),g.TYPED_ARRAY_SUPPORT?(ve=z,ve.__proto__=g.prototype):ve=W(ve,z),ve}function X(ve,z){if(g.isBuffer(z)){var $=R(z.length)|0;return ve=S(ve,$),ve.length===0||z.copy(ve,0,0,$),ve}if(z){if(typeof ArrayBuffer!="undefined"&&z.buffer instanceof ArrayBuffer||"length"in z)return typeof z.length!="number"||Dt(z.length)?S(ve,0):W(ve,z);if(z.type==="Buffer"&&x(z.data))return W(ve,z.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function R(ve){if(ve>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return ve|0}function C(ve){return+ve!=ve&&(ve=0),g.alloc(+ve)}g.isBuffer=function(z){return!!(z!=null&&z._isBuffer)},g.compare=function(z,$){if(!g.isBuffer(z)||!g.isBuffer($))throw new TypeError("Arguments must be Buffers");if(z===$)return 0;for(var Se=z.length,Ie=$.length,$e=0,Ke=Math.min(Se,Ie);$e<Ke;++$e)if(z[$e]!==$[$e]){Se=z[$e],Ie=$[$e];break}return Se<Ie?-1:Ie<Se?1:0},g.isEncoding=function(z){switch(String(z).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(z,$){if(!x(z))throw new TypeError('"list" argument must be an Array of Buffers');if(z.length===0)return g.alloc(0);var Se;if($===void 0)for($=0,Se=0;Se<z.length;++Se)$+=z[Se].length;var Ie=g.allocUnsafe($),$e=0;for(Se=0;Se<z.length;++Se){var Ke=z[Se];if(!g.isBuffer(Ke))throw new TypeError('"list" argument must be an Array of Buffers');Ke.copy(Ie,$e),$e+=Ke.length}return Ie};function V(ve,z){if(g.isBuffer(ve))return ve.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ve)||ve instanceof ArrayBuffer))return ve.byteLength;typeof ve!="string"&&(ve=""+ve);var $=ve.length;if($===0)return 0;for(var Se=!1;;)switch(z){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":case void 0:return Ct(ve).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return Vt(ve).length;default:if(Se)return Ct(ve).length;z=(""+z).toLowerCase(),Se=!0}}g.byteLength=V;function J(ve,z,$){var Se=!1;if((z===void 0||z<0)&&(z=0),z>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,z>>>=0,$<=z))return"";for(ve||(ve="utf8");;)switch(ve){case"hex":return rt(this,z,$);case"utf8":case"utf-8":return ae(this,z,$);case"ascii":return Me(this,z,$);case"latin1":case"binary":return Te(this,z,$);case"base64":return fe(this,z,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,z,$);default:if(Se)throw new TypeError("Unknown encoding: "+ve);ve=(ve+"").toLowerCase(),Se=!0}}g.prototype._isBuffer=!0;function _(ve,z,$){var Se=ve[z];ve[z]=ve[$],ve[$]=Se}g.prototype.swap16=function(){var z=this.length;if(z%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $=0;$<z;$+=2)_(this,$,$+1);return this},g.prototype.swap32=function(){var z=this.length;if(z%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var $=0;$<z;$+=4)_(this,$,$+3),_(this,$+1,$+2);return this},g.prototype.swap64=function(){var z=this.length;if(z%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var $=0;$<z;$+=8)_(this,$,$+7),_(this,$+1,$+6),_(this,$+2,$+5),_(this,$+3,$+4);return this},g.prototype.toString=function(){var z=this.length|0;return z===0?"":arguments.length===0?ae(this,0,z):J.apply(this,arguments)},g.prototype.equals=function(z){if(!g.isBuffer(z))throw new TypeError("Argument must be a Buffer");return this===z?!0:g.compare(this,z)===0},g.prototype.inspect=function(){var z="",$=I.INSPECT_MAX_BYTES;return this.length>0&&(z=this.toString("hex",0,$).match(/.{2}/g).join(" "),this.length>$&&(z+=" ... ")),"<Buffer "+z+">"},g.prototype.compare=function(z,$,Se,Ie,$e){if(!g.isBuffer(z))throw new TypeError("Argument must be a Buffer");if($===void 0&&($=0),Se===void 0&&(Se=z?z.length:0),Ie===void 0&&(Ie=0),$e===void 0&&($e=this.length),$<0||Se>z.length||Ie<0||$e>this.length)throw new RangeError("out of range index");if(Ie>=$e&&$>=Se)return 0;if(Ie>=$e)return-1;if($>=Se)return 1;if($>>>=0,Se>>>=0,Ie>>>=0,$e>>>=0,this===z)return 0;for(var Ke=$e-Ie,P=Se-$,Re=Math.min(Ke,P),K=this.slice(Ie,$e),T=z.slice($,Se),O=0;O<Re;++O)if(K[O]!==T[O]){Ke=K[O],P=T[O];break}return Ke<P?-1:P<Ke?1:0};function Q(ve,z,$,Se,Ie){if(ve.length===0)return-1;if(typeof $=="string"?(Se=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,isNaN($)&&($=Ie?0:ve.length-1),$<0&&($=ve.length+$),$>=ve.length){if(Ie)return-1;$=ve.length-1}else if($<0)if(Ie)$=0;else return-1;if(typeof z=="string"&&(z=g.from(z,Se)),g.isBuffer(z))return z.length===0?-1:Y(ve,z,$,Se,Ie);if(typeof z=="number")return z=z&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ie?Uint8Array.prototype.indexOf.call(ve,z,$):Uint8Array.prototype.lastIndexOf.call(ve,z,$):Y(ve,[z],$,Se,Ie);throw new TypeError("val must be string, number or Buffer")}function Y(ve,z,$,Se,Ie){var $e=1,Ke=ve.length,P=z.length;if(Se!==void 0&&(Se=String(Se).toLowerCase(),Se==="ucs2"||Se==="ucs-2"||Se==="utf16le"||Se==="utf-16le")){if(ve.length<2||z.length<2)return-1;$e=2,Ke/=2,P/=2,$/=2}function Re(N,te){return $e===1?N[te]:N.readUInt16BE(te*$e)}var K;if(Ie){var T=-1;for(K=$;K<Ke;K++)if(Re(ve,K)===Re(z,T===-1?0:K-T)){if(T===-1&&(T=K),K-T+1===P)return T*$e}else T!==-1&&(K-=K-T),T=-1}else for($+P>Ke&&($=Ke-P),K=$;K>=0;K--){for(var O=!0,le=0;le<P;le++)if(Re(ve,K+le)!==Re(z,le)){O=!1;break}if(O)return K}return-1}g.prototype.includes=function(z,$,Se){return this.indexOf(z,$,Se)!==-1},g.prototype.indexOf=function(z,$,Se){return Q(this,z,$,Se,!0)},g.prototype.lastIndexOf=function(z,$,Se){return Q(this,z,$,Se,!1)};function ce(ve,z,$,Se){$=Number($)||0;var Ie=ve.length-$;Se?(Se=Number(Se),Se>Ie&&(Se=Ie)):Se=Ie;var $e=z.length;if($e%2!=0)throw new TypeError("Invalid hex string");Se>$e/2&&(Se=$e/2);for(var Ke=0;Ke<Se;++Ke){var P=parseInt(z.substr(Ke*2,2),16);if(isNaN(P))return Ke;ve[$+Ke]=P}return Ke}function ee(ve,z,$,Se){return St(Ct(z,ve.length-$),ve,$,Se)}function ie(ve,z,$,Se){return St(Wt(z),ve,$,Se)}function xe(ve,z,$,Se){return ie(ve,z,$,Se)}function we(ve,z,$,Se){return St(Vt(z),ve,$,Se)}function he(ve,z,$,Se){return St(jt(z,ve.length-$),ve,$,Se)}g.prototype.write=function(z,$,Se,Ie){if($===void 0)Ie="utf8",Se=this.length,$=0;else if(Se===void 0&&typeof $=="string")Ie=$,Se=this.length,$=0;else if(isFinite($))$=$|0,isFinite(Se)?(Se=Se|0,Ie===void 0&&(Ie="utf8")):(Ie=Se,Se=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var $e=this.length-$;if((Se===void 0||Se>$e)&&(Se=$e),z.length>0&&(Se<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ie||(Ie="utf8");for(var Ke=!1;;)switch(Ie){case"hex":return ce(this,z,$,Se);case"utf8":case"utf-8":return ee(this,z,$,Se);case"ascii":return ie(this,z,$,Se);case"latin1":case"binary":return xe(this,z,$,Se);case"base64":return we(this,z,$,Se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,z,$,Se);default:if(Ke)throw new TypeError("Unknown encoding: "+Ie);Ie=(""+Ie).toLowerCase(),Ke=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(ve,z,$){return z===0&&$===ve.length?c.fromByteArray(ve):c.fromByteArray(ve.slice(z,$))}function ae(ve,z,$){$=Math.min(ve.length,$);for(var Se=[],Ie=z;Ie<$;){var $e=ve[Ie],Ke=null,P=$e>239?4:$e>223?3:$e>191?2:1;if(Ie+P<=$){var Re,K,T,O;switch(P){case 1:$e<128&&(Ke=$e);break;case 2:Re=ve[Ie+1],(Re&192)==128&&(O=($e&31)<<6|Re&63,O>127&&(Ke=O));break;case 3:Re=ve[Ie+1],K=ve[Ie+2],(Re&192)==128&&(K&192)==128&&(O=($e&15)<<12|(Re&63)<<6|K&63,O>2047&&(O<55296||O>57343)&&(Ke=O));break;case 4:Re=ve[Ie+1],K=ve[Ie+2],T=ve[Ie+3],(Re&192)==128&&(K&192)==128&&(T&192)==128&&(O=($e&15)<<18|(Re&63)<<12|(K&63)<<6|T&63,O>65535&&O<1114112&&(Ke=O))}}Ke===null?(Ke=65533,P=1):Ke>65535&&(Ke-=65536,Se.push(Ke>>>10&1023|55296),Ke=56320|Ke&1023),Se.push(Ke),Ie+=P}return Le(Se)}var Fe=4096;function Le(ve){var z=ve.length;if(z<=Fe)return String.fromCharCode.apply(String,ve);for(var $="",Se=0;Se<z;)$+=String.fromCharCode.apply(String,ve.slice(Se,Se+=Fe));return $}function Me(ve,z,$){var Se="";$=Math.min(ve.length,$);for(var Ie=z;Ie<$;++Ie)Se+=String.fromCharCode(ve[Ie]&127);return Se}function Te(ve,z,$){var Se="";$=Math.min(ve.length,$);for(var Ie=z;Ie<$;++Ie)Se+=String.fromCharCode(ve[Ie]);return Se}function rt(ve,z,$){var Se=ve.length;(!z||z<0)&&(z=0),(!$||$<0||$>Se)&&($=Se);for(var Ie="",$e=z;$e<$;++$e)Ie+=kt(ve[$e]);return Ie}function Ze(ve,z,$){for(var Se=ve.slice(z,$),Ie="",$e=0;$e<Se.length;$e+=2)Ie+=String.fromCharCode(Se[$e]+Se[$e+1]*256);return Ie}g.prototype.slice=function(z,$){var Se=this.length;z=~~z,$=$===void 0?Se:~~$,z<0?(z+=Se,z<0&&(z=0)):z>Se&&(z=Se),$<0?($+=Se,$<0&&($=0)):$>Se&&($=Se),$<z&&($=z);var Ie;if(g.TYPED_ARRAY_SUPPORT)Ie=this.subarray(z,$),Ie.__proto__=g.prototype;else{var $e=$-z;Ie=new g($e,void 0);for(var Ke=0;Ke<$e;++Ke)Ie[Ke]=this[Ke+z]}return Ie};function Xe(ve,z,$){if(ve%1!=0||ve<0)throw new RangeError("offset is not uint");if(ve+z>$)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z],$e=1,Ke=0;++Ke<$&&($e*=256);)Ie+=this[z+Ke]*$e;return Ie},g.prototype.readUIntBE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z+--$],$e=1;$>0&&($e*=256);)Ie+=this[z+--$]*$e;return Ie},g.prototype.readUInt8=function(z,$){return $||Xe(z,1,this.length),this[z]},g.prototype.readUInt16LE=function(z,$){return $||Xe(z,2,this.length),this[z]|this[z+1]<<8},g.prototype.readUInt16BE=function(z,$){return $||Xe(z,2,this.length),this[z]<<8|this[z+1]},g.prototype.readUInt32LE=function(z,$){return $||Xe(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+this[z+3]*16777216},g.prototype.readUInt32BE=function(z,$){return $||Xe(z,4,this.length),this[z]*16777216+(this[z+1]<<16|this[z+2]<<8|this[z+3])},g.prototype.readIntLE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z],$e=1,Ke=0;++Ke<$&&($e*=256);)Ie+=this[z+Ke]*$e;return $e*=128,Ie>=$e&&(Ie-=Math.pow(2,8*$)),Ie},g.prototype.readIntBE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=$,$e=1,Ke=this[z+--Ie];Ie>0&&($e*=256);)Ke+=this[z+--Ie]*$e;return $e*=128,Ke>=$e&&(Ke-=Math.pow(2,8*$)),Ke},g.prototype.readInt8=function(z,$){return $||Xe(z,1,this.length),this[z]&128?(255-this[z]+1)*-1:this[z]},g.prototype.readInt16LE=function(z,$){$||Xe(z,2,this.length);var Se=this[z]|this[z+1]<<8;return Se&32768?Se|4294901760:Se},g.prototype.readInt16BE=function(z,$){$||Xe(z,2,this.length);var Se=this[z+1]|this[z]<<8;return Se&32768?Se|4294901760:Se},g.prototype.readInt32LE=function(z,$){return $||Xe(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},g.prototype.readInt32BE=function(z,$){return $||Xe(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},g.prototype.readFloatLE=function(z,$){return $||Xe(z,4,this.length),v.read(this,z,!0,23,4)},g.prototype.readFloatBE=function(z,$){return $||Xe(z,4,this.length),v.read(this,z,!1,23,4)},g.prototype.readDoubleLE=function(z,$){return $||Xe(z,8,this.length),v.read(this,z,!0,52,8)},g.prototype.readDoubleBE=function(z,$){return $||Xe(z,8,this.length),v.read(this,z,!1,52,8)};function ft(ve,z,$,Se,Ie,$e){if(!g.isBuffer(ve))throw new TypeError('"buffer" argument must be a Buffer instance');if(z>Ie||z<$e)throw new RangeError('"value" argument is out of bounds');if($+Se>ve.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(z,$,Se,Ie){if(z=+z,$=$|0,Se=Se|0,!Ie){var $e=Math.pow(2,8*Se)-1;ft(this,z,$,Se,$e,0)}var Ke=1,P=0;for(this[$]=z&255;++P<Se&&(Ke*=256);)this[$+P]=z/Ke&255;return $+Se},g.prototype.writeUIntBE=function(z,$,Se,Ie){if(z=+z,$=$|0,Se=Se|0,!Ie){var $e=Math.pow(2,8*Se)-1;ft(this,z,$,Se,$e,0)}var Ke=Se-1,P=1;for(this[$+Ke]=z&255;--Ke>=0&&(P*=256);)this[$+Ke]=z/P&255;return $+Se},g.prototype.writeUInt8=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,1,255,0),g.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),this[$]=z&255,$+1};function ht(ve,z,$,Se){z<0&&(z=65535+z+1);for(var Ie=0,$e=Math.min(ve.length-$,2);Ie<$e;++Ie)ve[$+Ie]=(z&255<<8*(Se?Ie:1-Ie))>>>(Se?Ie:1-Ie)*8}g.prototype.writeUInt16LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8):ht(this,z,$,!0),$+2},g.prototype.writeUInt16BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>8,this[$+1]=z&255):ht(this,z,$,!1),$+2};function bt(ve,z,$,Se){z<0&&(z=4294967295+z+1);for(var Ie=0,$e=Math.min(ve.length-$,4);Ie<$e;++Ie)ve[$+Ie]=z>>>(Se?Ie:3-Ie)*8&255}g.prototype.writeUInt32LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$+3]=z>>>24,this[$+2]=z>>>16,this[$+1]=z>>>8,this[$]=z&255):bt(this,z,$,!0),$+4},g.prototype.writeUInt32BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>24,this[$+1]=z>>>16,this[$+2]=z>>>8,this[$+3]=z&255):bt(this,z,$,!1),$+4},g.prototype.writeIntLE=function(z,$,Se,Ie){if(z=+z,$=$|0,!Ie){var $e=Math.pow(2,8*Se-1);ft(this,z,$,Se,$e-1,-$e)}var Ke=0,P=1,Re=0;for(this[$]=z&255;++Ke<Se&&(P*=256);)z<0&&Re===0&&this[$+Ke-1]!==0&&(Re=1),this[$+Ke]=(z/P>>0)-Re&255;return $+Se},g.prototype.writeIntBE=function(z,$,Se,Ie){if(z=+z,$=$|0,!Ie){var $e=Math.pow(2,8*Se-1);ft(this,z,$,Se,$e-1,-$e)}var Ke=Se-1,P=1,Re=0;for(this[$+Ke]=z&255;--Ke>=0&&(P*=256);)z<0&&Re===0&&this[$+Ke+1]!==0&&(Re=1),this[$+Ke]=(z/P>>0)-Re&255;return $+Se},g.prototype.writeInt8=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,1,127,-128),g.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),z<0&&(z=255+z+1),this[$]=z&255,$+1},g.prototype.writeInt16LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8):ht(this,z,$,!0),$+2},g.prototype.writeInt16BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>8,this[$+1]=z&255):ht(this,z,$,!1),$+2},g.prototype.writeInt32LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8,this[$+2]=z>>>16,this[$+3]=z>>>24):bt(this,z,$,!0),$+4},g.prototype.writeInt32BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>24,this[$+1]=z>>>16,this[$+2]=z>>>8,this[$+3]=z&255):bt(this,z,$,!1),$+4};function nt(ve,z,$,Se,Ie,$e){if($+Se>ve.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function ut(ve,z,$,Se,Ie){return Ie||nt(ve,z,$,4,34028234663852886e22,-34028234663852886e22),v.write(ve,z,$,Se,23,4),$+4}g.prototype.writeFloatLE=function(z,$,Se){return ut(this,z,$,!0,Se)},g.prototype.writeFloatBE=function(z,$,Se){return ut(this,z,$,!1,Se)};function yt(ve,z,$,Se,Ie){return Ie||nt(ve,z,$,8,17976931348623157e292,-17976931348623157e292),v.write(ve,z,$,Se,52,8),$+8}g.prototype.writeDoubleLE=function(z,$,Se){return yt(this,z,$,!0,Se)},g.prototype.writeDoubleBE=function(z,$,Se){return yt(this,z,$,!1,Se)},g.prototype.copy=function(z,$,Se,Ie){if(Se||(Se=0),!Ie&&Ie!==0&&(Ie=this.length),$>=z.length&&($=z.length),$||($=0),Ie>0&&Ie<Se&&(Ie=Se),Ie===Se||z.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(Se<0||Se>=this.length)throw new RangeError("sourceStart out of bounds");if(Ie<0)throw new RangeError("sourceEnd out of bounds");Ie>this.length&&(Ie=this.length),z.length-$<Ie-Se&&(Ie=z.length-$+Se);var $e=Ie-Se,Ke;if(this===z&&Se<$&&$<Ie)for(Ke=$e-1;Ke>=0;--Ke)z[Ke+$]=this[Ke+Se];else if($e<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ke=0;Ke<$e;++Ke)z[Ke+$]=this[Ke+Se];else Uint8Array.prototype.set.call(z,this.subarray(Se,Se+$e),$);return $e},g.prototype.fill=function(z,$,Se,Ie){if(typeof z=="string"){if(typeof $=="string"?(Ie=$,$=0,Se=this.length):typeof Se=="string"&&(Ie=Se,Se=this.length),z.length===1){var $e=z.charCodeAt(0);$e<256&&(z=$e)}if(Ie!==void 0&&typeof Ie!="string")throw new TypeError("encoding must be a string");if(typeof Ie=="string"&&!g.isEncoding(Ie))throw new TypeError("Unknown encoding: "+Ie)}else typeof z=="number"&&(z=z&255);if($<0||this.length<$||this.length<Se)throw new RangeError("Out of range index");if(Se<=$)return this;$=$>>>0,Se=Se===void 0?this.length:Se>>>0,z||(z=0);var Ke;if(typeof z=="number")for(Ke=$;Ke<Se;++Ke)this[Ke]=z;else{var P=g.isBuffer(z)?z:Ct(new g(z,Ie).toString()),Re=P.length;for(Ke=0;Ke<Se-$;++Ke)this[Ke+$]=P[Ke%Re]}return this};var mt=/[^+\/0-9A-Za-z-_]/g;function pt(ve){if(ve=Mt(ve).replace(mt,""),ve.length<2)return"";for(;ve.length%4!=0;)ve=ve+"=";return ve}function Mt(ve){return ve.trim?ve.trim():ve.replace(/^\s+|\s+$/g,"")}function kt(ve){return ve<16?"0"+ve.toString(16):ve.toString(16)}function Ct(ve,z){z=z||1/0;for(var $,Se=ve.length,Ie=null,$e=[],Ke=0;Ke<Se;++Ke){if($=ve.charCodeAt(Ke),$>55295&&$<57344){if(!Ie){if($>56319){(z-=3)>-1&&$e.push(239,191,189);continue}else if(Ke+1===Se){(z-=3)>-1&&$e.push(239,191,189);continue}Ie=$;continue}if($<56320){(z-=3)>-1&&$e.push(239,191,189),Ie=$;continue}$=(Ie-55296<<10|$-56320)+65536}else Ie&&(z-=3)>-1&&$e.push(239,191,189);if(Ie=null,$<128){if((z-=1)<0)break;$e.push($)}else if($<2048){if((z-=2)<0)break;$e.push($>>6|192,$&63|128)}else if($<65536){if((z-=3)<0)break;$e.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((z-=4)<0)break;$e.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return $e}function Wt(ve){for(var z=[],$=0;$<ve.length;++$)z.push(ve.charCodeAt($)&255);return z}function jt(ve,z){for(var $,Se,Ie,$e=[],Ke=0;Ke<ve.length&&!((z-=2)<0);++Ke)$=ve.charCodeAt(Ke),Se=$>>8,Ie=$%256,$e.push(Ie),$e.push(Se);return $e}function Vt(ve){return c.toByteArray(pt(ve))}function St(ve,z,$,Se){for(var Ie=0;Ie<Se&&!(Ie+$>=z.length||Ie>=ve.length);++Ie)z[Ie+$]=ve[Ie];return Ie}function Dt(ve){return ve!==ve}},21924:(h,I,o)=>{"use strict";var c=o(40210),v=o(55559),x=v(c("String.prototype.indexOf"));h.exports=function(b,S){var g=c(b,!!S);return typeof g=="function"&&x(b,".prototype.")>-1?v(g):g}},55559:(h,I,o)=>{"use strict";var c=o(58612),v=o(40210),x=v("%Function.prototype.apply%"),d=v("%Function.prototype.call%"),b=v("%Reflect.apply%",!0)||c.call(d,x),S=v("%Object.getOwnPropertyDescriptor%",!0),g=v("%Object.defineProperty%",!0),L=v("%Math.max%");if(g)try{g({},"a",{value:1})}catch(B){g=null}h.exports=function(j){var q=b(c,d,arguments);if(S&&g){var W=S(q,"length");W.configurable&&g(q,"length",{value:1+L(0,j.length-(arguments.length-1))})}return q};var D=function(){return b(c,x,arguments)};g?g(h.exports,"apply",{value:D}):h.exports.apply=D},82801:(h,I,o)=>{(function(c){c(o(4631))})(function(c){var v={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=c.Pos;c.defineOption("autoCloseBrackets",!1,function(R,C,V){V&&V!=c.Init&&(R.removeKeyMap(b),R.state.closeBrackets=null),C&&(S(d(C,"pairs")),R.state.closeBrackets=C,R.addKeyMap(b))});function d(R,C){return C=="pairs"&&typeof R=="string"?R:typeof R=="object"&&R[C]!=null?R[C]:v[C]}var b={Backspace:D,Enter:B};function S(R){for(var C=0;C<R.length;C++){var V=R.charAt(C),J="'"+V+"'";b[J]||(b[J]=g(V))}}S(v.pairs+"`");function g(R){return function(C){return W(C,R)}}function L(R){var C=R.state.closeBrackets;if(!C||C.override)return C;var V=R.getModeAt(R.getCursor());return V.closeBrackets||C}function D(R){var C=L(R);if(!C||R.getOption("disableInput"))return c.Pass;for(var V=d(C,"pairs"),J=R.listSelections(),_=0;_<J.length;_++){if(!J[_].empty())return c.Pass;var Q=M(R,J[_].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}for(var _=J.length-1;_>=0;_--){var Y=J[_].head;R.replaceRange("",x(Y.line,Y.ch-1),x(Y.line,Y.ch+1),"+delete")}}function B(R){var C=L(R),V=C&&d(C,"explode");if(!V||R.getOption("disableInput"))return c.Pass;for(var J=R.listSelections(),_=0;_<J.length;_++){if(!J[_].empty())return c.Pass;var Q=M(R,J[_].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}R.operation(function(){var Y=R.lineSeparator()||`
|
|
12
|
+
`;R.replaceSelection(Y+Y,null),j(R,-1),J=R.listSelections();for(var ce=0;ce<J.length;ce++){var ee=J[ce].head.line;R.indentLine(ee,null,!0),R.indentLine(ee+1,null,!0)}})}function j(R,C){for(var V=[],J=R.listSelections(),_=0,Q=0;Q<J.length;Q++){var Y=J[Q];Y.head==R.getCursor()&&(_=Q);var ce=Y.head.ch||C>0?{line:Y.head.line,ch:Y.head.ch+C}:{line:Y.head.line-1};V.push({anchor:ce,head:ce})}R.setSelections(V,_)}function q(R){var C=c.cmpPos(R.anchor,R.head)>0;return{anchor:new x(R.anchor.line,R.anchor.ch+(C?-1:1)),head:new x(R.head.line,R.head.ch+(C?1:-1))}}function W(R,C){var V=L(R);if(!V||R.getOption("disableInput"))return c.Pass;var J=d(V,"pairs"),_=J.indexOf(C);if(_==-1)return c.Pass;for(var Q=d(V,"closeBefore"),Y=d(V,"triples"),ce=J.charAt(_+1)==C,ee=R.listSelections(),ie=_%2==0,xe,we=0;we<ee.length;we++){var he=ee[we],fe=he.head,ae,Fe=R.getRange(fe,x(fe.line,fe.ch+1));if(ie&&!he.empty())ae="surround";else if((ce||!ie)&&Fe==C)ce&&X(R,fe)?ae="both":Y.indexOf(C)>=0&&R.getRange(fe,x(fe.line,fe.ch+3))==C+C+C?ae="skipThree":ae="skip";else if(ce&&fe.ch>1&&Y.indexOf(C)>=0&&R.getRange(x(fe.line,fe.ch-2),fe)==C+C){if(fe.ch>2&&/\bstring/.test(R.getTokenTypeAt(x(fe.line,fe.ch-2))))return c.Pass;ae="addFour"}else if(ce){var Le=fe.ch==0?" ":R.getRange(x(fe.line,fe.ch-1),fe);if(!c.isWordChar(Fe)&&Le!=C&&!c.isWordChar(Le))ae="both";else return c.Pass}else if(ie&&(Fe.length===0||/\s/.test(Fe)||Q.indexOf(Fe)>-1))ae="both";else return c.Pass;if(!xe)xe=ae;else if(xe!=ae)return c.Pass}var Me=_%2?J.charAt(_-1):C,Te=_%2?C:J.charAt(_+1);R.operation(function(){if(xe=="skip")j(R,1);else if(xe=="skipThree")j(R,3);else if(xe=="surround"){for(var rt=R.getSelections(),Ze=0;Ze<rt.length;Ze++)rt[Ze]=Me+rt[Ze]+Te;R.replaceSelections(rt,"around"),rt=R.listSelections().slice();for(var Ze=0;Ze<rt.length;Ze++)rt[Ze]=q(rt[Ze]);R.setSelections(rt)}else xe=="both"?(R.replaceSelection(Me+Te,null),R.triggerElectric(Me+Te),j(R,-1)):xe=="addFour"&&(R.replaceSelection(Me+Me+Me+Me,"before"),j(R,1))})}function M(R,C){var V=R.getRange(x(C.line,C.ch-1),x(C.line,C.ch+1));return V.length==2?V:null}function X(R,C){var V=R.getTokenAt(x(C.line,C.ch+1));return/\bstring/.test(V.type)&&V.start==C.ch&&(C.ch==0||!/\bstring/.test(R.getTokenTypeAt(C)))}})},4328:(h,I,o)=>{(function(c){c(o(4631))})(function(c){var v=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),x=c.Pos,d={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function b(j){return j&&j.bracketRegex||/[(){}[\]]/}function S(j,q,W){var M=j.getLineHandle(q.line),X=q.ch-1,R=W&&W.afterCursor;R==null&&(R=/(^| )cm-fat-cursor($| )/.test(j.getWrapperElement().className));var C=b(W),V=!R&&X>=0&&C.test(M.text.charAt(X))&&d[M.text.charAt(X)]||C.test(M.text.charAt(X+1))&&d[M.text.charAt(++X)];if(!V)return null;var J=V.charAt(1)==">"?1:-1;if(W&&W.strict&&J>0!=(X==q.ch))return null;var _=j.getTokenTypeAt(x(q.line,X+1)),Q=g(j,x(q.line,X+(J>0?1:0)),J,_,W);return Q==null?null:{from:x(q.line,X),to:Q&&Q.pos,match:Q&&Q.ch==V.charAt(0),forward:J>0}}function g(j,q,W,M,X){for(var R=X&&X.maxScanLineLength||1e4,C=X&&X.maxScanLines||1e3,V=[],J=b(X),_=W>0?Math.min(q.line+C,j.lastLine()+1):Math.max(j.firstLine()-1,q.line-C),Q=q.line;Q!=_;Q+=W){var Y=j.getLine(Q);if(!!Y){var ce=W>0?0:Y.length-1,ee=W>0?Y.length:-1;if(!(Y.length>R))for(Q==q.line&&(ce=q.ch-(W<0?1:0));ce!=ee;ce+=W){var ie=Y.charAt(ce);if(J.test(ie)&&(M===void 0||(j.getTokenTypeAt(x(Q,ce+1))||"")==(M||""))){var xe=d[ie];if(xe&&xe.charAt(1)==">"==W>0)V.push(ie);else if(V.length)V.pop();else return{pos:x(Q,ce),ch:ie}}}}}return Q-W==(W>0?j.lastLine():j.firstLine())?!1:null}function L(j,q,W){for(var M=j.state.matchBrackets.maxHighlightLineLength||1e3,X=W&&W.highlightNonMatching,R=[],C=j.listSelections(),V=0;V<C.length;V++){var J=C[V].empty()&&S(j,C[V].head,W);if(J&&(J.match||X!==!1)&&j.getLine(J.from.line).length<=M){var _=J.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";R.push(j.markText(J.from,x(J.from.line,J.from.ch+1),{className:_})),J.to&&j.getLine(J.to.line).length<=M&&R.push(j.markText(J.to,x(J.to.line,J.to.ch+1),{className:_}))}}if(R.length){v&&j.state.focused&&j.focus();var Q=function(){j.operation(function(){for(var Y=0;Y<R.length;Y++)R[Y].clear()})};if(q)setTimeout(Q,800);else return Q}}function D(j){j.operation(function(){j.state.matchBrackets.currentlyHighlighted&&(j.state.matchBrackets.currentlyHighlighted(),j.state.matchBrackets.currentlyHighlighted=null),j.state.matchBrackets.currentlyHighlighted=L(j,!1,j.state.matchBrackets)})}function B(j){j.state.matchBrackets&&j.state.matchBrackets.currentlyHighlighted&&(j.state.matchBrackets.currentlyHighlighted(),j.state.matchBrackets.currentlyHighlighted=null)}c.defineOption("matchBrackets",!1,function(j,q,W){W&&W!=c.Init&&(j.off("cursorActivity",D),j.off("focus",D),j.off("blur",B),B(j)),q&&(j.state.matchBrackets=typeof q=="object"?q:{},j.on("cursorActivity",D),j.on("focus",D),j.on("blur",B))}),c.defineExtension("matchBrackets",function(){L(this,!0)}),c.defineExtension("findMatchingBracket",function(j,q,W){return(W||typeof q=="boolean")&&(W?(W.strict=q,q=W):q=q?{strict:!0}:null),S(this,j,q)}),c.defineExtension("scanForBracket",function(j,q,W,M){return g(this,j,q,W,M)})})},71707:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v="CodeMirror-hint",x="CodeMirror-hint-active";c.showHint=function(R,C,V){if(!C)return R.showHint(V);V&&V.async&&(C.async=!0);var J={hint:C};if(V)for(var _ in V)J[_]=V[_];return R.showHint(J)},c.defineExtension("showHint",function(R){R=g(this,this.getCursor("start"),R);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!R.hint.supportsSelection)return;for(var V=0;V<C.length;V++)if(C[V].head.line!=C[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var J=this.state.completionActive=new d(this,R);!J.options.hint||(c.signal(this,"startCompletion",this),J.update(!0))}}),c.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function d(R,C){if(this.cm=R,this.options=C,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var V=this;R.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var b=window.requestAnimationFrame||function(R){return setTimeout(R,1e3/60)},S=window.cancelAnimationFrame||clearTimeout;d.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&c.signal(this.data,"close"),this.widget&&this.widget.close(),c.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(R,C){var V=R.list[C],J=this;this.cm.operation(function(){V.hint?V.hint(J.cm,R,V):J.cm.replaceRange(L(V),V.from||R.from,V.to||R.to,"complete"),c.signal(R,"pick",V),J.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(S(this.debounce),this.debounce=0);var R=this.startPos;this.data&&(R=this.data.from);var C=this.cm.getCursor(),V=this.cm.getLine(C.line);if(C.line!=this.startPos.line||V.length-C.ch!=this.startLen-this.startPos.ch||C.ch<R.ch||this.cm.somethingSelected()||!C.ch||this.options.closeCharacters.test(V.charAt(C.ch-1)))this.close();else{var J=this;this.debounce=b(function(){J.update()}),this.widget&&this.widget.disable()}},update:function(R){if(this.tick!=null){var C=this,V=++this.tick;W(this.options.hint,this.cm,this.options,function(J){C.tick==V&&C.finishUpdate(J,R)})}},finishUpdate:function(R,C){this.data&&c.signal(this.data,"update");var V=this.widget&&this.widget.picked||C&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=R,R&&R.list.length&&(V&&R.list.length==1?this.pick(R,0):(this.widget=new j(this,R),c.signal(R,"shown")))}};function g(R,C,V){var J=R.options.hintOptions,_={};for(var Q in X)_[Q]=X[Q];if(J)for(var Q in J)J[Q]!==void 0&&(_[Q]=J[Q]);if(V)for(var Q in V)V[Q]!==void 0&&(_[Q]=V[Q]);return _.hint.resolve&&(_.hint=_.hint.resolve(R,C)),_}function L(R){return typeof R=="string"?R:R.text}function D(R,C){var V={Up:function(){C.moveFocus(-1)},Down:function(){C.moveFocus(1)},PageUp:function(){C.moveFocus(-C.menuSize()+1,!0)},PageDown:function(){C.moveFocus(C.menuSize()-1,!0)},Home:function(){C.setFocus(0)},End:function(){C.setFocus(C.length-1)},Enter:C.pick,Tab:C.pick,Esc:C.close},J=/Mac/.test(navigator.platform);J&&(V["Ctrl-P"]=function(){C.moveFocus(-1)},V["Ctrl-N"]=function(){C.moveFocus(1)});var _=R.options.customKeys,Q=_?{}:V;function Y(ie,xe){var we;typeof xe!="string"?we=function(he){return xe(he,C)}:V.hasOwnProperty(xe)?we=V[xe]:we=xe,Q[ie]=we}if(_)for(var ce in _)_.hasOwnProperty(ce)&&Y(ce,_[ce]);var ee=R.options.extraKeys;if(ee)for(var ce in ee)ee.hasOwnProperty(ce)&&Y(ce,ee[ce]);return Q}function B(R,C){for(;C&&C!=R;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==R)return C;C=C.parentNode}}function j(R,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=R,this.data=C,this.picked=!1;var V=this,J=R.cm,_=J.getInputField().ownerDocument,Q=_.defaultView||_.parentWindow,Y=this.hints=_.createElement("ul");Y.setAttribute("role","listbox"),Y.setAttribute("aria-expanded","true"),Y.id=this.id;var ce=R.cm.options.theme;Y.className="CodeMirror-hints "+ce,this.selectedHint=C.selectedHint||0;for(var ee=C.list,ie=0;ie<ee.length;++ie){var xe=Y.appendChild(_.createElement("li")),we=ee[ie],he=v+(ie!=this.selectedHint?"":" "+x);we.className!=null&&(he=we.className+" "+he),xe.className=he,ie==this.selectedHint&&xe.setAttribute("aria-selected","true"),xe.id=this.id+"-"+ie,xe.setAttribute("role","option"),we.render?we.render(xe,C,we):xe.appendChild(_.createTextNode(we.displayText||L(we))),xe.hintId=ie}var fe=R.options.container||_.body,ae=J.cursorCoords(R.options.alignWithWord?C.from:null),Fe=ae.left,Le=ae.bottom,Me=!0,Te=0,rt=0;if(fe!==_.body){var Ze=["absolute","relative","fixed"].indexOf(Q.getComputedStyle(fe).position)!==-1,Xe=Ze?fe:fe.offsetParent,ft=Xe.getBoundingClientRect(),ht=_.body.getBoundingClientRect();Te=ft.left-ht.left-Xe.scrollLeft,rt=ft.top-ht.top-Xe.scrollTop}Y.style.left=Fe-Te+"px",Y.style.top=Le-rt+"px";var bt=Q.innerWidth||Math.max(_.body.offsetWidth,_.documentElement.offsetWidth),nt=Q.innerHeight||Math.max(_.body.offsetHeight,_.documentElement.offsetHeight);fe.appendChild(Y),J.getInputField().setAttribute("aria-autocomplete","list"),J.getInputField().setAttribute("aria-owns",this.id),J.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var ut=R.options.moveOnOverlap?Y.getBoundingClientRect():new DOMRect,yt=R.options.paddingForScrollbar?Y.scrollHeight>Y.clientHeight+1:!1,mt;setTimeout(function(){mt=J.getScrollInfo()});var pt=ut.bottom-nt;if(pt>0){var Mt=ut.bottom-ut.top,kt=ae.top-(ae.bottom-ut.top);if(kt-Mt>0)Y.style.top=(Le=ae.top-Mt-rt)+"px",Me=!1;else if(Mt>nt){Y.style.height=nt-5+"px",Y.style.top=(Le=ae.bottom-ut.top-rt)+"px";var Ct=J.getCursor();C.from.ch!=Ct.ch&&(ae=J.cursorCoords(Ct),Y.style.left=(Fe=ae.left-Te)+"px",ut=Y.getBoundingClientRect())}}var Wt=ut.right-bt;if(yt&&(Wt+=J.display.nativeBarWidth),Wt>0&&(ut.right-ut.left>bt&&(Y.style.width=bt-5+"px",Wt-=ut.right-ut.left-bt),Y.style.left=(Fe=ae.left-Wt-Te)+"px"),yt)for(var jt=Y.firstChild;jt;jt=jt.nextSibling)jt.style.paddingRight=J.display.nativeBarWidth+"px";if(J.addKeyMap(this.keyMap=D(R,{moveFocus:function(Dt,ve){V.changeActive(V.selectedHint+Dt,ve)},setFocus:function(Dt){V.changeActive(Dt)},menuSize:function(){return V.screenAmount()},length:ee.length,close:function(){R.close()},pick:function(){V.pick()},data:C})),R.options.closeOnUnfocus){var Vt;J.on("blur",this.onBlur=function(){Vt=setTimeout(function(){R.close()},100)}),J.on("focus",this.onFocus=function(){clearTimeout(Vt)})}J.on("scroll",this.onScroll=function(){var Dt=J.getScrollInfo(),ve=J.getWrapperElement().getBoundingClientRect();mt||(mt=J.getScrollInfo());var z=Le+mt.top-Dt.top,$=z-(Q.pageYOffset||(_.documentElement||_.body).scrollTop);if(Me||($+=Y.offsetHeight),$<=ve.top||$>=ve.bottom)return R.close();Y.style.top=z+"px",Y.style.left=Fe+mt.left-Dt.left+"px"}),c.on(Y,"dblclick",function(Dt){var ve=B(Y,Dt.target||Dt.srcElement);ve&&ve.hintId!=null&&(V.changeActive(ve.hintId),V.pick())}),c.on(Y,"click",function(Dt){var ve=B(Y,Dt.target||Dt.srcElement);ve&&ve.hintId!=null&&(V.changeActive(ve.hintId),R.options.completeOnSingleClick&&V.pick())}),c.on(Y,"mousedown",function(){setTimeout(function(){J.focus()},20)});var St=this.getSelectedHintRange();return(St.from!==0||St.to!==0)&&this.scrollToActive(),c.signal(C,"select",ee[this.selectedHint],Y.childNodes[this.selectedHint]),!0}j.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var R=this.completion.cm.getInputField();R.removeAttribute("aria-activedescendant"),R.removeAttribute("aria-owns");var C=this.completion.cm;this.completion.options.closeOnUnfocus&&(C.off("blur",this.onBlur),C.off("focus",this.onFocus)),C.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var R=this;this.keyMap={Enter:function(){R.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(R,C){if(R>=this.data.list.length?R=C?this.data.list.length-1:0:R<0&&(R=C?0:this.data.list.length-1),this.selectedHint!=R){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+x,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=R],V.className+=" "+x,V.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",V.id),this.scrollToActive(),c.signal(this.data,"select",this.data.list[this.selectedHint],V)}},scrollToActive:function(){var R=this.getSelectedHintRange(),C=this.hints.childNodes[R.from],V=this.hints.childNodes[R.to],J=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-J.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+J.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var R=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-R),to:Math.min(this.data.list.length-1,this.selectedHint+R)}}};function q(R,C){if(!R.somethingSelected())return C;for(var V=[],J=0;J<C.length;J++)C[J].supportsSelection&&V.push(C[J]);return V}function W(R,C,V,J){if(R.async)R(C,J,V);else{var _=R(C,V);_&&_.then?_.then(J):J(_)}}function M(R,C){var V=R.getHelpers(C,"hint"),J;if(V.length){var _=function(Q,Y,ce){var ee=q(Q,V);function ie(xe){if(xe==ee.length)return Y(null);W(ee[xe],Q,ce,function(we){we&&we.list.length>0?Y(we):ie(xe+1)})}ie(0)};return _.async=!0,_.supportsSelection=!0,_}else return(J=R.getHelper(R.getCursor(),"hintWords"))?function(Q){return c.hint.fromList(Q,{words:J})}:c.hint.anyword?function(Q,Y){return c.hint.anyword(Q,Y)}:function(){}}c.registerHelper("hint","auto",{resolve:M}),c.registerHelper("hint","fromList",function(R,C){var V=R.getCursor(),J=R.getTokenAt(V),_,Q=c.Pos(V.line,J.start),Y=V;J.start<V.ch&&/\w/.test(J.string.charAt(V.ch-J.start-1))?_=J.string.substr(0,V.ch-J.start):(_="",Q=V);for(var ce=[],ee=0;ee<C.words.length;ee++){var ie=C.words[ee];ie.slice(0,_.length)==_&&ce.push(ie)}if(ce.length)return{list:ce,from:Q,to:Y}}),c.commands.autocomplete=c.showHint;var X={hint:c.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};c.defineOption("hintOptions",null)})},3256:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers",x="CodeMirror-lint-line-";function d(Y,ce,ee){var ie=document.createElement("div");ie.className="CodeMirror-lint-tooltip cm-s-"+Y.options.theme,ie.appendChild(ee.cloneNode(!0)),Y.state.lint.options.selfContain?Y.getWrapperElement().appendChild(ie):document.body.appendChild(ie);function xe(we){if(!ie.parentNode)return c.off(document,"mousemove",xe);ie.style.top=Math.max(0,we.clientY-ie.offsetHeight-5)+"px",ie.style.left=we.clientX+5+"px"}return c.on(document,"mousemove",xe),xe(ce),ie.style.opacity!=null&&(ie.style.opacity=1),ie}function b(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}function S(Y){!Y.parentNode||(Y.style.opacity==null&&b(Y),Y.style.opacity=0,setTimeout(function(){b(Y)},600))}function g(Y,ce,ee,ie){var xe=d(Y,ce,ee);function we(){c.off(ie,"mouseout",we),xe&&(S(xe),xe=null)}var he=setInterval(function(){if(xe)for(var fe=ie;;fe=fe.parentNode){if(fe&&fe.nodeType==11&&(fe=fe.host),fe==document.body)return;if(!fe){we();break}}if(!xe)return clearInterval(he)},400);c.on(ie,"mouseout",we)}function L(Y,ce,ee){this.marked=[],ce instanceof Function&&(ce={getAnnotations:ce}),(!ce||ce===!0)&&(ce={}),this.options={},this.linterOptions=ce.options||{};for(var ie in D)this.options[ie]=D[ie];for(var ie in ce)D.hasOwnProperty(ie)?ce[ie]!=null&&(this.options[ie]=ce[ie]):ce.options||(this.linterOptions[ie]=ce[ie]);this.timeout=null,this.hasGutter=ee,this.onMouseOver=function(xe){Q(Y,xe)},this.waitingFor=0}var D={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function B(Y){var ce=Y.state.lint;ce.hasGutter&&Y.clearGutter(v),ce.options.highlightLines&&j(Y);for(var ee=0;ee<ce.marked.length;++ee)ce.marked[ee].clear();ce.marked.length=0}function j(Y){Y.eachLine(function(ce){var ee=ce.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(ce.wrapClass);ee&&Y.removeLineClass(ce,"wrap",ee[0])})}function q(Y,ce,ee,ie,xe){var we=document.createElement("div"),he=we;return we.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+ee,ie&&(he=we.appendChild(document.createElement("div")),he.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),xe!=!1&&c.on(he,"mouseover",function(fe){g(Y,fe,ce,he)}),we}function W(Y,ce){return Y=="error"?Y:ce}function M(Y){for(var ce=[],ee=0;ee<Y.length;++ee){var ie=Y[ee],xe=ie.from.line;(ce[xe]||(ce[xe]=[])).push(ie)}return ce}function X(Y){var ce=Y.severity;ce||(ce="error");var ee=document.createElement("div");return ee.className="CodeMirror-lint-message CodeMirror-lint-message-"+ce,typeof Y.messageHTML!="undefined"?ee.innerHTML=Y.messageHTML:ee.appendChild(document.createTextNode(Y.message)),ee}function R(Y,ce){var ee=Y.state.lint,ie=++ee.waitingFor;function xe(){ie=-1,Y.off("change",xe)}Y.on("change",xe),ce(Y.getValue(),function(we,he){Y.off("change",xe),ee.waitingFor==ie&&(he&&we instanceof c&&(we=he),Y.operation(function(){V(Y,we)}))},ee.linterOptions,Y)}function C(Y){var ce=Y.state.lint;if(!!ce){var ee=ce.options,ie=ee.getAnnotations||Y.getHelper(c.Pos(0,0),"lint");if(!!ie)if(ee.async||ie.async)R(Y,ie);else{var xe=ie(Y.getValue(),ce.linterOptions,Y);if(!xe)return;xe.then?xe.then(function(we){Y.operation(function(){V(Y,we)})}):Y.operation(function(){V(Y,xe)})}}}function V(Y,ce){var ee=Y.state.lint;if(!!ee){var ie=ee.options;B(Y);for(var xe=M(ce),we=0;we<xe.length;++we){var he=xe[we];if(!!he){var fe=[];he=he.filter(function(rt){return fe.indexOf(rt.message)>-1?!1:fe.push(rt.message)});for(var ae=null,Fe=ee.hasGutter&&document.createDocumentFragment(),Le=0;Le<he.length;++Le){var Me=he[Le],Te=Me.severity;Te||(Te="error"),ae=W(ae,Te),ie.formatAnnotation&&(Me=ie.formatAnnotation(Me)),ee.hasGutter&&Fe.appendChild(X(Me)),Me.to&&ee.marked.push(Y.markText(Me.from,Me.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+Te,__annotation:Me}))}ee.hasGutter&&Y.setGutterMarker(we,v,q(Y,Fe,ae,xe[we].length>1,ie.tooltips)),ie.highlightLines&&Y.addLineClass(we,"wrap",x+ae)}}ie.onUpdateLinting&&ie.onUpdateLinting(ce,xe,Y)}}function J(Y){var ce=Y.state.lint;!ce||(clearTimeout(ce.timeout),ce.timeout=setTimeout(function(){C(Y)},ce.options.delay))}function _(Y,ce,ee){for(var ie=ee.target||ee.srcElement,xe=document.createDocumentFragment(),we=0;we<ce.length;we++){var he=ce[we];xe.appendChild(X(he))}g(Y,ee,xe,ie)}function Q(Y,ce){var ee=ce.target||ce.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(ee.className)){for(var ie=ee.getBoundingClientRect(),xe=(ie.left+ie.right)/2,we=(ie.top+ie.bottom)/2,he=Y.findMarksAt(Y.coordsChar({left:xe,top:we},"client")),fe=[],ae=0;ae<he.length;++ae){var Fe=he[ae].__annotation;Fe&&fe.push(Fe)}fe.length&&_(Y,fe,ce)}}c.defineOption("lint",!1,function(Y,ce,ee){if(ee&&ee!=c.Init&&(B(Y),Y.state.lint.options.lintOnChange!==!1&&Y.off("change",J),c.off(Y.getWrapperElement(),"mouseover",Y.state.lint.onMouseOver),clearTimeout(Y.state.lint.timeout),delete Y.state.lint),ce){for(var ie=Y.getOption("gutters"),xe=!1,we=0;we<ie.length;++we)ie[we]==v&&(xe=!0);var he=Y.state.lint=new L(Y,ce,xe);he.options.lintOnChange&&Y.on("change",J),he.options.tooltips!=!1&&he.options.tooltips!="gutter"&&c.on(Y.getWrapperElement(),"mouseover",he.onMouseOver),C(Y)}}),c.defineExtension("performLint",function(){C(this)})})},32095:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";var v=c.Pos;function x(C){var V=C.flags;return V!=null?V:(C.ignoreCase?"i":"")+(C.global?"g":"")+(C.multiline?"m":"")}function d(C,V){for(var J=x(C),_=J,Q=0;Q<V.length;Q++)_.indexOf(V.charAt(Q))==-1&&(_+=V.charAt(Q));return J==_?C:new RegExp(C.source,_)}function b(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function S(C,V,J){V=d(V,"g");for(var _=J.line,Q=J.ch,Y=C.lastLine();_<=Y;_++,Q=0){V.lastIndex=Q;var ce=C.getLine(_),ee=V.exec(ce);if(ee)return{from:v(_,ee.index),to:v(_,ee.index+ee[0].length),match:ee}}}function g(C,V,J){if(!b(V))return S(C,V,J);V=d(V,"gm");for(var _,Q=1,Y=J.line,ce=C.lastLine();Y<=ce;){for(var ee=0;ee<Q&&!(Y>ce);ee++){var ie=C.getLine(Y++);_=_==null?ie:_+`
|
|
13
|
+
`+ie}Q=Q*2,V.lastIndex=J.ch;var xe=V.exec(_);if(xe){var we=_.slice(0,xe.index).split(`
|
|
14
|
+
`),he=xe[0].split(`
|
|
15
|
+
`),fe=J.line+we.length-1,ae=we[we.length-1].length;return{from:v(fe,ae),to:v(fe+he.length-1,he.length==1?ae+he[0].length:he[he.length-1].length),match:xe}}}}function L(C,V,J){for(var _,Q=0;Q<=C.length;){V.lastIndex=Q;var Y=V.exec(C);if(!Y)break;var ce=Y.index+Y[0].length;if(ce>C.length-J)break;(!_||ce>_.index+_[0].length)&&(_=Y),Q=Y.index+1}return _}function D(C,V,J){V=d(V,"g");for(var _=J.line,Q=J.ch,Y=C.firstLine();_>=Y;_--,Q=-1){var ce=C.getLine(_),ee=L(ce,V,Q<0?0:ce.length-Q);if(ee)return{from:v(_,ee.index),to:v(_,ee.index+ee[0].length),match:ee}}}function B(C,V,J){if(!b(V))return D(C,V,J);V=d(V,"gm");for(var _,Q=1,Y=C.getLine(J.line).length-J.ch,ce=J.line,ee=C.firstLine();ce>=ee;){for(var ie=0;ie<Q&&ce>=ee;ie++){var xe=C.getLine(ce--);_=_==null?xe:xe+`
|
|
16
|
+
`+_}Q*=2;var we=L(_,V,Y);if(we){var he=_.slice(0,we.index).split(`
|
|
17
|
+
`),fe=we[0].split(`
|
|
18
|
+
`),ae=ce+he.length,Fe=he[he.length-1].length;return{from:v(ae,Fe),to:v(ae+fe.length-1,fe.length==1?Fe+fe[0].length:fe[fe.length-1].length),match:we}}}}var j,q;String.prototype.normalize?(j=function(C){return C.normalize("NFD").toLowerCase()},q=function(C){return C.normalize("NFD")}):(j=function(C){return C.toLowerCase()},q=function(C){return C});function W(C,V,J,_){if(C.length==V.length)return J;for(var Q=0,Y=J+Math.max(0,C.length-V.length);;){if(Q==Y)return Q;var ce=Q+Y>>1,ee=_(C.slice(0,ce)).length;if(ee==J)return ce;ee>J?Y=ce:Q=ce+1}}function M(C,V,J,_){if(!V.length)return null;var Q=_?j:q,Y=Q(V).split(/\r|\n\r?/);e:for(var ce=J.line,ee=J.ch,ie=C.lastLine()+1-Y.length;ce<=ie;ce++,ee=0){var xe=C.getLine(ce).slice(ee),we=Q(xe);if(Y.length==1){var he=we.indexOf(Y[0]);if(he==-1)continue e;var J=W(xe,we,he,Q)+ee;return{from:v(ce,W(xe,we,he,Q)+ee),to:v(ce,W(xe,we,he+Y[0].length,Q)+ee)}}else{var fe=we.length-Y[0].length;if(we.slice(fe)!=Y[0])continue e;for(var ae=1;ae<Y.length-1;ae++)if(Q(C.getLine(ce+ae))!=Y[ae])continue e;var Fe=C.getLine(ce+Y.length-1),Le=Q(Fe),Me=Y[Y.length-1];if(Le.slice(0,Me.length)!=Me)continue e;return{from:v(ce,W(xe,we,fe,Q)+ee),to:v(ce+Y.length-1,W(Fe,Le,Me.length,Q))}}}}function X(C,V,J,_){if(!V.length)return null;var Q=_?j:q,Y=Q(V).split(/\r|\n\r?/);e:for(var ce=J.line,ee=J.ch,ie=C.firstLine()-1+Y.length;ce>=ie;ce--,ee=-1){var xe=C.getLine(ce);ee>-1&&(xe=xe.slice(0,ee));var we=Q(xe);if(Y.length==1){var he=we.lastIndexOf(Y[0]);if(he==-1)continue e;return{from:v(ce,W(xe,we,he,Q)),to:v(ce,W(xe,we,he+Y[0].length,Q))}}else{var fe=Y[Y.length-1];if(we.slice(0,fe.length)!=fe)continue e;for(var ae=1,J=ce-Y.length+1;ae<Y.length-1;ae++)if(Q(C.getLine(J+ae))!=Y[ae])continue e;var Fe=C.getLine(ce+1-Y.length),Le=Q(Fe);if(Le.slice(Le.length-Y[0].length)!=Y[0])continue e;return{from:v(ce+1-Y.length,W(Fe,Le,Fe.length-Y[0].length,Q)),to:v(ce,W(xe,we,fe.length,Q))}}}}function R(C,V,J,_){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,J=J?C.clipPos(J):v(0,0),this.pos={from:J,to:J};var Q;typeof _=="object"?Q=_.caseFold:(Q=_,_=null),typeof V=="string"?(Q==null&&(Q=!1),this.matches=function(Y,ce){return(Y?X:M)(C,V,ce,Q)}):(V=d(V,"gm"),!_||_.multiline!==!1?this.matches=function(Y,ce){return(Y?B:g)(C,V,ce)}:this.matches=function(Y,ce){return(Y?D:S)(C,V,ce)})}R.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(C){var V=this.doc.clipPos(C?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(V=v(V.line,V.ch),C?(V.ch--,V.ch<0&&(V.line--,V.ch=(this.doc.getLine(V.line)||"").length)):(V.ch++,V.ch>(this.doc.getLine(V.line)||"").length&&(V.ch=0,V.line++)),c.cmpPos(V,this.doc.clipPos(V))!=0))return this.atOccurrence=!1;var J=this.matches(C,V);if(this.afterEmptyMatch=J&&c.cmpPos(J.from,J.to)==0,J)return this.pos=J,this.atOccurrence=!0,this.pos.match||!0;var _=v(C?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:_,to:_},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(C,V){if(!!this.atOccurrence){var J=c.splitLines(C);this.doc.replaceRange(J,this.pos.from,this.pos.to,V),this.pos.to=v(this.pos.from.line+J.length-1,J[J.length-1].length+(J.length==1?this.pos.from.ch:0))}}},c.defineExtension("getSearchCursor",function(C,V,J){return new R(this.doc,C,V,J)}),c.defineDocExtension("getSearchCursor",function(C,V,J){return new R(this,C,V,J)}),c.defineExtension("selectMatches",function(C,V){for(var J=[],_=this.getSearchCursor(C,this.getCursor("from"),V);_.findNext()&&!(c.cmpPos(_.to(),this.getCursor("to"))>0);)J.push({anchor:_.from(),head:_.to()});J.length&&this.setSelections(J,0)})})},4631:function(h){(function(I,o){h.exports=o()})(this,function(){"use strict";var I=navigator.userAgent,o=navigator.platform,c=/gecko\/\d/i.test(I),v=/MSIE \d/.test(I),x=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),d=/Edge\/(\d+)/.exec(I),b=v||x||d,S=b&&(v?document.documentMode||6:+(d||x)[1]),g=!d&&/WebKit\//.test(I),L=g&&/Qt\/\d+\.\d+/.test(I),D=!d&&/Chrome\//.test(I),B=/Opera\//.test(I),j=/Apple Computer/.test(navigator.vendor),q=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),W=/PhantomJS/.test(I),M=j&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),X=/Android/.test(I),R=M||X||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),C=M||/Mac/.test(o),V=/\bCrOS\b/.test(I),J=/win/i.test(o),_=B&&I.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(B=!1,g=!0);var Q=C&&(L||B&&(_==null||_<12.11)),Y=c||b&&S>=9;function ce(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ee=function(e,n){var u=e.className,l=ce(n).exec(u);if(l){var f=u.slice(l.index+l[0].length);e.className=u.slice(0,l.index)+(f?l[1]+f:"")}};function ie(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function xe(e,n){return ie(e).appendChild(n)}function we(e,n,u,l){var f=document.createElement(e);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof n=="string")f.appendChild(document.createTextNode(n));else if(n)for(var m=0;m<n.length;++m)f.appendChild(n[m]);return f}function he(e,n,u,l){var f=we(e,n,u,l);return f.setAttribute("role","presentation"),f}var fe;document.createRange?fe=function(e,n,u,l){var f=document.createRange();return f.setEnd(l||e,u),f.setStart(e,n),f}:fe=function(e,n,u){var l=document.body.createTextRange();try{l.moveToElementText(e.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",n),l};function ae(e,n){if(n.nodeType==3&&(n=n.parentNode),e.contains)return e.contains(n);do if(n.nodeType==11&&(n=n.host),n==e)return!0;while(n=n.parentNode)}function Fe(){var e;try{e=document.activeElement}catch(n){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Le(e,n){var u=e.className;ce(n).test(u)||(e.className+=(u?" ":"")+n)}function Me(e,n){for(var u=e.split(" "),l=0;l<u.length;l++)u[l]&&!ce(u[l]).test(n)&&(n+=" "+u[l]);return n}var Te=function(e){e.select()};M?Te=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(Te=function(e){try{e.select()}catch(n){}});function rt(e){var n=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,n)}}function Ze(e,n,u){n||(n={});for(var l in e)e.hasOwnProperty(l)&&(u!==!1||!n.hasOwnProperty(l))&&(n[l]=e[l]);return n}function Xe(e,n,u,l,f){n==null&&(n=e.search(/[^\s\u00a0]/),n==-1&&(n=e.length));for(var m=l||0,F=f||0;;){var U=e.indexOf(" ",m);if(U<0||U>=n)return F+(n-m);F+=U-m,F+=u-F%u,m=U+1}}var ft=function(){this.id=null,this.f=null,this.time=0,this.handler=rt(this.onTimeout,this)};ft.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ft.prototype.set=function(e,n){this.f=n;var u=+new Date+e;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=u)};function ht(e,n){for(var u=0;u<e.length;++u)if(e[u]==n)return u;return-1}var bt=50,nt={toString:function(){return"CodeMirror.Pass"}},ut={scroll:!1},yt={origin:"*mouse"},mt={origin:"+move"};function pt(e,n,u){for(var l=0,f=0;;){var m=e.indexOf(" ",l);m==-1&&(m=e.length);var F=m-l;if(m==e.length||f+F>=n)return l+Math.min(F,n-f);if(f+=m-l,f+=u-f%u,l=m+1,f>=n)return l}}var Mt=[""];function kt(e){for(;Mt.length<=e;)Mt.push(Ct(Mt)+" ");return Mt[e]}function Ct(e){return e[e.length-1]}function Wt(e,n){for(var u=[],l=0;l<e.length;l++)u[l]=n(e[l],l);return u}function jt(e,n,u){for(var l=0,f=u(n);l<e.length&&u(e[l])<=f;)l++;e.splice(l,0,n)}function Vt(){}function St(e,n){var u;return Object.create?u=Object.create(e):(Vt.prototype=e,u=new Vt),n&&Ze(n,u),u}var Dt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ve(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Dt.test(e))}function z(e,n){return n?n.source.indexOf("\\w")>-1&&ve(e)?!0:n.test(e):ve(e)}function $(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var Se=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ie(e){return e.charCodeAt(0)>=768&&Se.test(e)}function $e(e,n,u){for(;(u<0?n>0:n<e.length)&&Ie(e.charAt(n));)n+=u;return n}function Ke(e,n,u){for(var l=n>u?-1:1;;){if(n==u)return n;var f=(n+u)/2,m=l<0?Math.ceil(f):Math.floor(f);if(m==n)return e(m)?n:u;e(m)?u=m:n=m+l}}function P(e,n,u,l){if(!e)return l(n,u,"ltr",0);for(var f=!1,m=0;m<e.length;++m){var F=e[m];(F.from<u&&F.to>n||n==u&&F.to==n)&&(l(Math.max(F.from,n),Math.min(F.to,u),F.level==1?"rtl":"ltr",m),f=!0)}f||l(n,u,"ltr")}var Re=null;function K(e,n,u){var l;Re=null;for(var f=0;f<e.length;++f){var m=e[f];if(m.from<n&&m.to>n)return f;m.to==n&&(m.from!=m.to&&u=="before"?l=f:Re=f),m.from==n&&(m.from!=m.to&&u!="before"?l=f:Re=f)}return l!=null?l:Re}var T=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(Z){return Z<=247?e.charAt(Z):1424<=Z&&Z<=1524?"R":1536<=Z&&Z<=1785?n.charAt(Z-1536):1774<=Z&&Z<=2220?"r":8192<=Z&&Z<=8203?"w":Z==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,m=/[LRr]/,F=/[Lb1n]/,U=/[1n]/;function H(Z,be,Ce){this.level=Z,this.from=be,this.to=Ce}return function(Z,be){var Ce=be=="ltr"?"L":"R";if(Z.length==0||be=="ltr"&&!l.test(Z))return!1;for(var De=Z.length,ke=[],Ye=0;Ye<De;++Ye)ke.push(u(Z.charCodeAt(Ye)));for(var tt=0,at=Ce;tt<De;++tt){var ct=ke[tt];ct=="m"?ke[tt]=at:at=ct}for(var gt=0,dt=Ce;gt<De;++gt){var xt=ke[gt];xt=="1"&&dt=="r"?ke[gt]="n":m.test(xt)&&(dt=xt,xt=="r"&&(ke[gt]="R"))}for(var Ft=1,It=ke[0];Ft<De-1;++Ft){var it=ke[Ft];it=="+"&&It=="1"&&ke[Ft+1]=="1"?ke[Ft]="1":it==","&&It==ke[Ft+1]&&(It=="1"||It=="n")&&(ke[Ft]=It),It=it}for(var Gt=0;Gt<De;++Gt){var hr=ke[Gt];if(hr==",")ke[Gt]="N";else if(hr=="%"){var vr=void 0;for(vr=Gt+1;vr<De&&ke[vr]=="%";++vr);for(var bn=Gt&&ke[Gt-1]=="!"||vr<De&&ke[vr]=="1"?"1":"N",fn=Gt;fn<vr;++fn)ke[fn]=bn;Gt=vr-1}}for(var Ar=0,cn=Ce;Ar<De;++Ar){var Kr=ke[Ar];cn=="L"&&Kr=="1"?ke[Ar]="L":m.test(Kr)&&(cn=Kr)}for(var Fr=0;Fr<De;++Fr)if(f.test(ke[Fr])){var gr=void 0;for(gr=Fr+1;gr<De&&f.test(ke[gr]);++gr);for(var yr=(Fr?ke[Fr-1]:Ce)=="L",nn=(gr<De?ke[gr]:Ce)=="L",no=yr==nn?yr?"L":"R":Ce,Mi=Fr;Mi<gr;++Mi)ke[Mi]=no;Fr=gr-1}for(var Qr=[],$n,Vr=0;Vr<De;)if(F.test(ke[Vr])){var io=Vr;for(++Vr;Vr<De&&F.test(ke[Vr]);++Vr);Qr.push(new H(0,io,Vr))}else{var Er=Vr,Eo=Qr.length,Kn=be=="rtl"?1:0;for(++Vr;Vr<De&&ke[Vr]!="L";++Vr);for(var on=Er;on<Vr;)if(U.test(ke[on])){Er<on&&(Qr.splice(Eo,0,new H(1,Er,on)),Eo+=Kn);var ua=on;for(++on;on<Vr&&U.test(ke[on]);++on);Qr.splice(Eo,0,new H(2,ua,on)),Eo+=Kn,Er=on}else++on;Er<Vr&&Qr.splice(Eo,0,new H(1,Er,Vr))}return be=="ltr"&&(Qr[0].level==1&&($n=Z.match(/^\s+/))&&(Qr[0].from=$n[0].length,Qr.unshift(new H(0,0,$n[0].length))),Ct(Qr).level==1&&($n=Z.match(/\s+$/))&&(Ct(Qr).to-=$n[0].length,Qr.push(new H(0,De-$n[0].length,De)))),be=="rtl"?Qr.reverse():Qr}}();function O(e,n){var u=e.order;return u==null&&(u=e.order=T(e.text,n)),u}var le=[],N=function(e,n,u){if(e.addEventListener)e.addEventListener(n,u,!1);else if(e.attachEvent)e.attachEvent("on"+n,u);else{var l=e._handlers||(e._handlers={});l[n]=(l[n]||le).concat(u)}};function te(e,n){return e._handlers&&e._handlers[n]||le}function de(e,n,u){if(e.removeEventListener)e.removeEventListener(n,u,!1);else if(e.detachEvent)e.detachEvent("on"+n,u);else{var l=e._handlers,f=l&&l[n];if(f){var m=ht(f,u);m>-1&&(l[n]=f.slice(0,m).concat(f.slice(m+1)))}}}function oe(e,n){var u=te(e,n);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<u.length;++f)u[f].apply(null,l)}function pe(e,n,u){return typeof n=="string"&&(n={type:n,preventDefault:function(){this.defaultPrevented=!0}}),oe(e,u||n.type,e,n),Et(n)||n.codemirrorIgnore}function Ae(e){var n=e._handlers&&e._handlers.cursorActivity;if(!!n)for(var u=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),l=0;l<n.length;++l)ht(u,n[l])==-1&&u.push(n[l])}function Be(e,n){return te(e,n).length>0}function Ue(e){e.prototype.on=function(n,u){N(this,n,u)},e.prototype.off=function(n,u){de(this,n,u)}}function Qe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function vt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Et(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Bt(e){Qe(e),vt(e)}function Pt(e){return e.target||e.srcElement}function pn(e){var n=e.which;return n==null&&(e.button&1?n=1:e.button&2?n=3:e.button&4&&(n=2)),C&&e.ctrlKey&&n==1&&(n=3),n}var Nr=function(){if(b&&S<9)return!1;var e=we("div");return"draggable"in e||"dragDrop"in e}(),Or;function mi(e){if(Or==null){var n=we("span","\u200B");xe(e,we("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Or=n.offsetWidth<=1&&n.offsetHeight>2&&!(b&&S<8))}var u=Or?we("span","\u200B"):we("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var zr;function Bi(e){if(zr!=null)return zr;var n=xe(e,document.createTextNode("A\u062EA")),u=fe(n,0,1).getBoundingClientRect(),l=fe(n,1,2).getBoundingClientRect();return ie(e),!u||u.left==u.right?!1:zr=l.right-u.right<3}var Bn=`
|
|
19
19
|
|
|
20
20
|
b`.split(/\n/).length!=3?function(e){for(var n=0,u=[],l=e.length;n<=l;){var f=e.indexOf(`
|
|
21
|
-
`,n);f==-1&&(f=e.length);var y=e.slice(n,e.charAt(f-1)=="\r"?f-1:f),F=y.indexOf("\r");F!=-1?(u.push(y.slice(0,F)),n+=F+1):(u.push(y),n=f+1)}return u}:function(e){return e.split(/\r\n?|\n/)},hn=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(n){return!1}}:function(e){var n;try{n=e.ownerDocument.selection.createRange()}catch(u){}return!n||n.parentElement()!=e?!1:n.compareEndPoints("StartToEnd",n)!=0},Tn=function(){var e=be("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),zr=null;function xi(e){if(zr!=null)return zr;var n=me(e,be("span","x")),u=n.getBoundingClientRect(),l=ue(n,0,1).getBoundingClientRect();return zr=Math.abs(u.left-l.left)>1}var bi={},qr={};function vn(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),bi[e]=n}function Un(e,n){qr[e]=n}function jn(e){if(typeof e=="string"&&qr.hasOwnProperty(e))e=qr[e];else if(e&&typeof e.name=="string"&&qr.hasOwnProperty(e.name)){var n=qr[e.name];typeof n=="string"&&(n={name:n}),e=St(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return jn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return jn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function gn(e,n){n=jn(n);var u=bi[n.name];if(!u)return gn(e,"text/plain");var l=u(e,n);if(Xn.hasOwnProperty(n.name)){var f=Xn[n.name];for(var y in f)!f.hasOwnProperty(y)||(l.hasOwnProperty(y)&&(l["_"+y]=l[y]),l[y]=f[y])}if(l.name=n.name,n.helperType&&(l.helperType=n.helperType),n.modeProps)for(var F in n.modeProps)l[F]=n.modeProps[F];return l}var Xn={};function wi(e,n){var u=Xn.hasOwnProperty(e)?Xn[e]:Xn[e]={};Ze(n,u)}function Nr(e,n){if(n===!0)return n;if(e.copyState)return e.copyState(n);var u={};for(var l in n){var f=n[l];f instanceof Array&&(f=f.concat([])),u[l]=f}return u}function Gr(e,n){for(var u;e.innerMode&&(u=e.innerMode(n),!(!u||u.mode==e));)n=u.state,e=u.mode;return u||{mode:e,state:n}}function Qn(e,n,u){return e.startState?e.startState(n,u):!0}var ur=function(e,n,u){this.pos=this.start=0,this.string=e,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};ur.prototype.eol=function(){return this.pos>=this.string.length},ur.prototype.sol=function(){return this.pos==this.lineStart},ur.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ur.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ur.prototype.eat=function(e){var n=this.string.charAt(this.pos),u;if(typeof e=="string"?u=n==e:u=n&&(e.test?e.test(n):e(n)),u)return++this.pos,n},ur.prototype.eatWhile=function(e){for(var n=this.pos;this.eat(e););return this.pos>n},ur.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ur.prototype.skipToEnd=function(){this.pos=this.string.length},ur.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},ur.prototype.backUp=function(e){this.pos-=e},ur.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},ur.prototype.indentation=function(){return Xe(this.string,null,this.tabSize)-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},ur.prototype.match=function(e,n,u){if(typeof e=="string"){var l=function(F){return u?F.toLowerCase():F},f=this.string.substr(this.pos,e.length);if(l(f)==l(e))return n!==!1&&(this.pos+=e.length),!0}else{var y=this.string.slice(this.pos).match(e);return y&&y.index>0?null:(y&&n!==!1&&(this.pos+=y[0].length),y)}},ur.prototype.current=function(){return this.string.slice(this.start,this.pos)},ur.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},ur.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},ur.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Tt(e,n){if(n-=e.first,n<0||n>=e.size)throw new Error("There is no line "+(n+e.first)+" in the document.");for(var u=e;!u.lines;)for(var l=0;;++l){var f=u.children[l],y=f.chunkSize();if(n<y){u=f;break}n-=y}return u.lines[n]}function ii(e,n,u){var l=[],f=n.line;return e.iter(n.line,u.line+1,function(y){var F=y.text;f==u.line&&(F=F.slice(0,u.ch)),f==n.line&&(F=F.slice(n.ch)),l.push(F),++f}),l}function Si(e,n,u){var l=[];return e.iter(n,u,function(f){l.push(f.text)}),l}function An(e,n){var u=n-e.height;if(u)for(var l=e;l;l=l.parent)l.height+=u}function Zt(e){if(e.parent==null)return null;for(var n=e.parent,u=ht(n.lines,e),l=n.parent;l;n=l,l=l.parent)for(var f=0;l.children[f]!=n;++f)u+=l.children[f].chunkSize();return u+n.first}function Vn(e,n){var u=e.first;e:do{for(var l=0;l<e.children.length;++l){var f=e.children[l],y=f.height;if(n<y){e=f;continue e}n-=y,u+=f.chunkSize()}return u}while(!e.lines);for(var F=0;F<e.lines.length;++F){var U=e.lines[F],H=U.height;if(n<H)break;n-=H}return u+F}function Zn(e,n){return n>=e.first&&n<e.first+e.size}function la(e,n){return String(e.lineNumberFormatter(n+e.firstLineNumber))}function at(e,n,u){if(u===void 0&&(u=null),!(this instanceof at))return new at(e,n,u);this.line=e,this.ch=n,this.sticky=u}function Lt(e,n){return e.line-n.line||e.ch-n.ch}function ai(e,n){return e.sticky==n.sticky&&Lt(e,n)==0}function le(e){return at(e.line,e.ch)}function Oe(e,n){return Lt(e,n)<0?n:e}function qe(e,n){return Lt(e,n)<0?e:n}function st(e,n){return Math.max(e.first,Math.min(n,e.first+e.size-1))}function lt(e,n){if(n.line<e.first)return at(e.first,0);var u=e.first+e.size-1;return n.line>u?at(u,Tt(e,u).text.length):Kt(n,Tt(e,n.line).text.length)}function Kt(e,n){var u=e.ch;return u==null||u>n?at(e.line,n):u<0?at(e.line,0):e}function Xt(e,n){for(var u=[],l=0;l<n.length;l++)u[l]=lt(e,n[l]);return u}var Tr=function(e,n){this.state=e,this.lookAhead=n},Pr=function(e,n,u,l){this.state=n,this.doc=e,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Pr.prototype.lookAhead=function(e){var n=this.doc.getLine(this.line+e);return n!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),n},Pr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Pr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Pr.fromSaved=function(e,n,u){return n instanceof Tr?new Pr(e,Nr(e.mode,n.state),u,n.lookAhead):new Pr(e,Nr(e.mode,n),u)},Pr.prototype.save=function(e){var n=e!==!1?Nr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Tr(n,this.maxLookAhead):n};function _t(e,n,u,l){var f=[e.state.modeGen],y={};zl(e,n.text,e.doc.mode,u,function(Z,xe){return f.push(Z,xe)},y,l);for(var F=u.state,U=function(Z){u.baseTokens=f;var xe=e.state.overlays[Z],Ce=1,De=0;u.state=!0,zl(e,n.text,xe.mode,u,function(ke,Ye){for(var tt=Ce;De<ke;){var ot=f[Ce];ot>ke&&f.splice(Ce,1,ke,f[Ce+1],ot),Ce+=2,De=Math.min(ke,ot)}if(!!Ye)if(xe.opaque)f.splice(tt,Ce-tt,ke,"overlay "+Ye),Ce=tt+2;else for(;tt<Ce;tt+=2){var ct=f[tt+1];f[tt+1]=(ct?ct+" ":"")+"overlay "+Ye}},y),u.state=F,u.baseTokens=null,u.baseTokenPos=1},H=0;H<e.state.overlays.length;++H)U(H);return{styles:f,classes:y.bgClass||y.textClass?y:null}}function Wl(e,n,u){if(!n.styles||n.styles[0]!=e.state.modeGen){var l=en(e,Zt(n)),f=n.text.length>e.options.maxHighlightLength&&Nr(e.doc.mode,l.state),y=_t(e,n,l);f&&(l.state=f),n.stateAfter=l.save(!f),n.styles=y.styles,y.classes?n.styleClasses=y.classes:n.styleClasses&&(n.styleClasses=null),u===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return n.styles}function en(e,n,u){var l=e.doc,f=e.display;if(!l.mode.startState)return new Pr(l,!0,n);var y=Lf(e,n,u),F=y>l.first&&Tt(l,y-1).stateAfter,U=F?Pr.fromSaved(l,F,y):new Pr(l,Qn(l.mode),y);return l.iter(y,n,function(H){vs(e,H.text,U);var Z=U.line;H.stateAfter=Z==n-1||Z%5==0||Z>=f.viewFrom&&Z<f.viewTo?U.save():null,U.nextLine()}),u&&(l.modeFrontier=U.line),U}function vs(e,n,u,l){var f=e.doc.mode,y=new ur(n,e.options.tabSize,u);for(y.start=y.pos=l||0,n==""&&yo(f,u.state);!y.eol();)gs(f,y,u.state),y.start=y.pos}function yo(e,n){if(e.blankLine)return e.blankLine(n);if(!!e.innerMode){var u=Gr(e,n);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function gs(e,n,u,l){for(var f=0;f<10;f++){l&&(l[0]=Gr(e,u).mode);var y=e.token(n,u);if(n.pos>n.start)return y}throw new Error("Mode "+e.name+" failed to advance stream.")}var ys=function(e,n,u){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=u};function ms(e,n,u,l){var f=e.doc,y=f.mode,F;n=lt(f,n);var U=Tt(f,n.line),H=en(e,n.line,u),Z=new ur(U.text,e.options.tabSize,H),xe;for(l&&(xe=[]);(l||Z.pos<n.ch)&&!Z.eol();)Z.start=Z.pos,F=gs(y,Z,H.state),l&&xe.push(new ys(Z,F,Nr(f.mode,H.state)));return l?xe:new ys(Z,F,H.state)}function Hl(e,n){if(e)for(;;){var u=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;e=e.slice(0,u.index)+e.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";n[l]==null?n[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(n[l])||(n[l]+=" "+u[2])}return e}function zl(e,n,u,l,f,y,F){var U=u.flattenSpans;U==null&&(U=e.options.flattenSpans);var H=0,Z=null,xe=new ur(n,e.options.tabSize,l),Ce,De=e.options.addModeClass&&[null];for(n==""&&Hl(yo(u,l.state),y);!xe.eol();){if(xe.pos>e.options.maxHighlightLength?(U=!1,F&&vs(e,n,l,xe.pos),xe.pos=n.length,Ce=null):Ce=Hl(gs(u,xe,l.state,De),y),De){var ke=De[0].name;ke&&(Ce="m-"+(Ce?ke+" "+Ce:ke))}if(!U||Z!=Ce){for(;H<xe.start;)H=Math.min(xe.start,H+5e3),f(H,Z);Z=Ce}xe.start=xe.pos}for(;H<xe.pos;){var Ye=Math.min(xe.pos,H+5e3);f(Ye,Z),H=Ye}}function Lf(e,n,u){for(var l,f,y=e.doc,F=u?-1:n-(e.doc.mode.innerMode?1e3:100),U=n;U>F;--U){if(U<=y.first)return y.first;var H=Tt(y,U-1),Z=H.stateAfter;if(Z&&(!u||U+(Z instanceof Tr?Z.lookAhead:0)<=y.modeFrontier))return U;var xe=Xe(H.text,null,e.options.tabSize);(f==null||l>xe)&&(f=U-1,l=xe)}return f}function Df(e,n){if(e.modeFrontier=Math.min(e.modeFrontier,n),!(e.highlightFrontier<n-10)){for(var u=e.first,l=n-1;l>u;l--){var f=Tt(e,l).stateAfter;if(f&&(!(f instanceof Tr)||l+f.lookAhead<n)){u=l+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,u)}}var Nf=!1,Ai=!1;function Bf(){Nf=!0}function Uf(){Ai=!0}function mo(e,n,u){this.marker=e,this.from=n,this.to=u}function Ta(e,n){if(e)for(var u=0;u<e.length;++u){var l=e[u];if(l.marker==n)return l}}function jf(e,n){for(var u,l=0;l<e.length;++l)e[l]!=n&&(u||(u=[])).push(e[l]);return u}function Id(e,n,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&l.has(e.markedSpans)?e.markedSpans.push(n):(e.markedSpans=e.markedSpans?e.markedSpans.concat([n]):[n],l&&l.add(e.markedSpans)),n.marker.attachLine(e)}function Fd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var y=e[f],F=y.marker,U=y.from==null||(F.inclusiveLeft?y.from<=n:y.from<n);if(U||y.from==n&&F.type=="bookmark"&&(!u||!y.marker.insertLeft)){var H=y.to==null||(F.inclusiveRight?y.to>=n:y.to>n);(l||(l=[])).push(new mo(F,y.from,H?null:y.to))}}return l}function kd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var y=e[f],F=y.marker,U=y.to==null||(F.inclusiveRight?y.to>=n:y.to>n);if(U||y.from==n&&F.type=="bookmark"&&(!u||y.marker.insertLeft)){var H=y.from==null||(F.inclusiveLeft?y.from<=n:y.from<n);(l||(l=[])).push(new mo(F,H?null:y.from-n,y.to==null?null:y.to-n))}}return l}function Gl(e,n){if(n.full)return null;var u=Zn(e,n.from.line)&&Tt(e,n.from.line).markedSpans,l=Zn(e,n.to.line)&&Tt(e,n.to.line).markedSpans;if(!u&&!l)return null;var f=n.from.ch,y=n.to.ch,F=Lt(n.from,n.to)==0,U=Fd(u,f,F),H=kd(l,y,F),Z=n.text.length==1,xe=Ct(n.text).length+(Z?f:0);if(U)for(var Ce=0;Ce<U.length;++Ce){var De=U[Ce];if(De.to==null){var ke=Ta(H,De.marker);ke?Z&&(De.to=ke.to==null?null:ke.to+xe):De.to=f}}if(H)for(var Ye=0;Ye<H.length;++Ye){var tt=H[Ye];if(tt.to!=null&&(tt.to+=xe),tt.from==null){var ot=Ta(U,tt.marker);ot||(tt.from=xe,Z&&(U||(U=[])).push(tt))}else tt.from+=xe,Z&&(U||(U=[])).push(tt)}U&&(U=$l(U)),H&&H!=U&&(H=$l(H));var ct=[U];if(!Z){var gt=n.text.length-2,dt;if(gt>0&&U)for(var xt=0;xt<U.length;++xt)U[xt].to==null&&(dt||(dt=[])).push(new mo(U[xt].marker,null,null));for(var Ft=0;Ft<gt;++Ft)ct.push(dt);ct.push(H)}return ct}function $l(e){for(var n=0;n<e.length;++n){var u=e[n];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&e.splice(n--,1)}return e.length?e:null}function Kl(e,n,u){var l=null;if(e.iter(n.line,u.line+1,function(ke){if(ke.markedSpans)for(var Ye=0;Ye<ke.markedSpans.length;++Ye){var tt=ke.markedSpans[Ye].marker;tt.readOnly&&(!l||ht(l,tt)==-1)&&(l||(l=[])).push(tt)}}),!l)return null;for(var f=[{from:n,to:u}],y=0;y<l.length;++y)for(var F=l[y],U=F.find(0),H=0;H<f.length;++H){var Z=f[H];if(!(Lt(Z.to,U.from)<0||Lt(Z.from,U.to)>0)){var xe=[H,1],Ce=Lt(Z.from,U.from),De=Lt(Z.to,U.to);(Ce<0||!F.inclusiveLeft&&!Ce)&&xe.push({from:Z.from,to:U.from}),(De>0||!F.inclusiveRight&&!De)&&xe.push({from:U.to,to:Z.to}),f.splice.apply(f,xe),H+=xe.length-3}}return f}function Yl(e){var n=e.markedSpans;if(!!n){for(var u=0;u<n.length;++u)n[u].marker.detachLine(e);e.markedSpans=null}}function Vf(e,n){if(!!n){for(var u=0;u<n.length;++u)n[u].marker.attachLine(e);e.markedSpans=n}}function xs(e){return e.inclusiveLeft?-1:0}function bs(e){return e.inclusiveRight?1:0}function Jl(e,n){var u=e.lines.length-n.lines.length;if(u!=0)return u;var l=e.find(),f=n.find(),y=Lt(l.from,f.from)||xs(e)-xs(n);if(y)return-y;var F=Lt(l.to,f.to)||bs(e)-bs(n);return F||n.id-e.id}function Pa(e,n){var u=Ai&&e.markedSpans,l;if(u)for(var f=void 0,y=0;y<u.length;++y)f=u[y],f.marker.collapsed&&(n?f.from:f.to)==null&&(!l||Jl(l,f.marker)<0)&&(l=f.marker);return l}function ws(e){return Pa(e,!0)}function Ui(e){return Pa(e,!1)}function Wf(e,n){var u=Ai&&e.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var y=u[f];y.marker.collapsed&&(y.from==null||y.from<n)&&(y.to==null||y.to>n)&&(!l||Jl(l,y.marker)<0)&&(l=y.marker)}return l}function xo(e,n,u,l,f){var y=Tt(e,n),F=Ai&&y.markedSpans;if(F)for(var U=0;U<F.length;++U){var H=F[U];if(!!H.marker.collapsed){var Z=H.marker.find(0),xe=Lt(Z.from,u)||xs(H.marker)-xs(f),Ce=Lt(Z.to,l)||bs(H.marker)-bs(f);if(!(xe>=0&&Ce<=0||xe<=0&&Ce>=0)&&(xe<=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.to,u)>=0:Lt(Z.to,u)>0)||xe>=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.from,l)<=0:Lt(Z.from,l)<0)))return!0}}}function Wn(e){for(var n;n=ws(e);)e=n.find(-1,!0).line;return e}function Xl(e){for(var n;n=Ui(e);)e=n.find(1,!0).line;return e}function Hf(e){for(var n,u;n=Ui(e);)e=n.find(1,!0).line,(u||(u=[])).push(e);return u}function Ia(e,n){var u=Tt(e,n),l=Wn(u);return u==l?n:Zt(l)}function Ss(e,n){if(n>e.lastLine())return n;var u=Tt(e,n),l;if(!oi(e,u))return n;for(;l=Ui(u);)u=l.find(1,!0).line;return Zt(u)+1}function oi(e,n){var u=Ai&&n.markedSpans;if(u){for(var l=void 0,f=0;f<u.length;++f)if(l=u[f],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&fr(e,n,l))return!0}}}function fr(e,n,u){if(u.to==null){var l=u.marker.find(1,!0);return fr(e,l.line,Ta(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==n.text.length)return!0;for(var f=void 0,y=0;y<n.markedSpans.length;++y)if(f=n.markedSpans[y],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&fr(e,n,f))return!0}function si(e){e=Wn(e);for(var n=0,u=e.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==e)break;n+=f.height}for(var y=u.parent;y;u=y,y=u.parent)for(var F=0;F<y.children.length;++F){var U=y.children[F];if(U==u)break;n+=U.height}return n}function ji(e){if(e.height==0)return 0;for(var n=e.text.length,u,l=e;u=ws(l);){var f=u.find(0,!0);l=f.from.line,n+=f.from.ch-f.to.ch}for(l=e;u=Ui(l);){var y=u.find(0,!0);n-=l.text.length-y.from.ch,l=y.to.line,n+=l.text.length-y.to.ch}return n}function As(e){var n=e.display,u=e.doc;n.maxLine=Tt(u,u.first),n.maxLineLength=ji(n.maxLine),n.maxLineChanged=!0,u.iter(function(l){var f=ji(l);f>n.maxLineLength&&(n.maxLineLength=f,n.maxLine=l)})}var Vi=function(e,n,u){this.text=e,Vf(this,n),this.height=u?u(this):1};Vi.prototype.lineNo=function(){return Zt(this)},Ue(Vi);function Ei(e,n,u,l){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Yl(e),Vf(e,u);var f=l?l(e):1;f!=e.height&&An(e,f)}function Wi(e){e.parent=null,Yl(e)}var Es={},Cs={};function Ql(e,n){if(!e||/^\s*$/.test(e))return null;var u=n.addModeClass?Cs:Es;return u[e]||(u[e]=e.replace(/\S+/g,"cm-$&"))}function Os(e,n){var u=he("span",null,null,g?"padding-right: .1px":null),l={pre:he("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};n.measure={};for(var f=0;f<=(n.rest?n.rest.length:0);f++){var y=f?n.rest[f-1]:n.line,F=void 0;l.pos=0,l.addToken=Ps,Bi(e.display.measure)&&(F=O(y,e.doc.direction))&&(l.addToken=zf(l.addToken,F)),l.map=[];var U=n!=e.display.externalMeasured&&Zt(y);Gf(y,l,Wl(e,y,U)),y.styleClasses&&(y.styleClasses.bgClass&&(l.bgClass=Re(y.styleClasses.bgClass,l.bgClass||"")),y.styleClasses.textClass&&(l.textClass=Re(y.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(mi(e.display.measure))),f==0?(n.measure.map=l.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(l.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(g){var H=l.content.lastChild;(/\bcm-tab\b/.test(H.className)||H.querySelector&&H.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return ae(e,"renderLine",e,n.line,l.pre),l.pre.className&&(l.textClass=Re(l.pre.className,l.textClass||"")),l}function Ts(e){var n=be("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function Ps(e,n,u,l,f,y,F){if(!!n){var U=e.splitSpaces?Hi(n,e.trailingSpace):n,H=e.cm.state.specialChars,Z=!1,xe;if(!H.test(n))e.col+=n.length,xe=document.createTextNode(U),e.map.push(e.pos,e.pos+n.length,xe),b&&S<9&&(Z=!0),e.pos+=n.length;else{xe=document.createDocumentFragment();for(var Ce=0;;){H.lastIndex=Ce;var De=H.exec(n),ke=De?De.index-Ce:n.length-Ce;if(ke){var Ye=document.createTextNode(U.slice(Ce,Ce+ke));b&&S<9?xe.appendChild(be("span",[Ye])):xe.appendChild(Ye),e.map.push(e.pos,e.pos+ke,Ye),e.col+=ke,e.pos+=ke}if(!De)break;Ce+=ke+1;var tt=void 0;if(De[0]==" "){var ot=e.cm.options.tabSize,ct=ot-e.col%ot;tt=xe.appendChild(be("span",kt(ct),"cm-tab")),tt.setAttribute("role","presentation"),tt.setAttribute("cm-text"," "),e.col+=ct}else De[0]=="\r"||De[0]==`
|
|
22
|
-
`?(tt=xe.appendChild(be("span",De[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),tt.setAttribute("cm-text",De[0]),e.col+=1):(tt=e.cm.options.specialCharPlaceholder(De[0]),tt.setAttribute("cm-text",De[0]),b&&S<9?xe.appendChild(be("span",[tt])):xe.appendChild(tt),e.col+=1);e.map.push(e.pos,e.pos+1,tt),e.pos++}}if(e.trailingSpace=U.charCodeAt(n.length-1)==32,u||l||f||Z||y||F){var gt=u||"";l&&(gt+=l),f&&(gt+=f);var dt=be("span",[xe],gt,y);if(F)for(var xt in F)F.hasOwnProperty(xt)&&xt!="style"&&xt!="class"&&dt.setAttribute(xt,F[xt]);return e.content.appendChild(dt)}e.content.appendChild(xe)}}function Hi(e,n){if(e.length>1&&!/ /.test(e))return e;for(var u=n,l="",f=0;f<e.length;f++){var y=e.charAt(f);y==" "&&u&&(f==e.length-1||e.charCodeAt(f+1)==32)&&(y="\xA0"),l+=y,u=y==" "}return l}function zf(e,n){return function(u,l,f,y,F,U,H){f=f?f+" cm-force-border":"cm-force-border";for(var Z=u.pos,xe=Z+l.length;;){for(var Ce=void 0,De=0;De<n.length&&(Ce=n[De],!(Ce.to>Z&&Ce.from<=Z));De++);if(Ce.to>=xe)return e(u,l,f,y,F,U,H);e(u,l.slice(0,Ce.to-Z),f,y,null,U,H),y=null,l=l.slice(Ce.to-Z),Z=Ce.to}}}function nr(e,n,u,l){var f=!l&&u.widgetNode;f&&e.map.push(e.pos,e.pos+n,f),!l&&e.cm.display.input.needsContentAttribute&&(f||(f=e.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(e.cm.display.input.setUneditable(f),e.content.appendChild(f)),e.pos+=n,e.trailingSpace=!1}function Gf(e,n,u){var l=e.markedSpans,f=e.text,y=0;if(!l){for(var F=1;F<u.length;F+=2)n.addToken(n,f.slice(y,y=u[F]),Ql(u[F+1],n.cm.options));return}for(var U=f.length,H=0,Z=1,xe="",Ce,De,ke=0,Ye,tt,ot,ct,gt;;){if(ke==H){Ye=tt=ot=De="",gt=null,ct=null,ke=1/0;for(var dt=[],xt=void 0,Ft=0;Ft<l.length;++Ft){var It=l[Ft],it=It.marker;if(it.type=="bookmark"&&It.from==H&&it.widgetNode)dt.push(it);else if(It.from<=H&&(It.to==null||It.to>H||it.collapsed&&It.to==H&&It.from==H)){if(It.to!=null&&It.to!=H&&ke>It.to&&(ke=It.to,tt=""),it.className&&(Ye+=" "+it.className),it.css&&(De=(De?De+";":"")+it.css),it.startStyle&&It.from==H&&(ot+=" "+it.startStyle),it.endStyle&&It.to==ke&&(xt||(xt=[])).push(it.endStyle,It.to),it.title&&((gt||(gt={})).title=it.title),it.attributes)for(var Gt in it.attributes)(gt||(gt={}))[Gt]=it.attributes[Gt];it.collapsed&&(!ct||Jl(ct.marker,it)<0)&&(ct=It)}else It.from>H&&ke>It.from&&(ke=It.from)}if(xt)for(var hr=0;hr<xt.length;hr+=2)xt[hr+1]==ke&&(tt+=" "+xt[hr]);if(!ct||ct.from==H)for(var vr=0;vr<dt.length;++vr)nr(n,0,dt[vr]);if(ct&&(ct.from||0)==H){if(nr(n,(ct.to==null?U+1:ct.to)-H,ct.marker,ct.from==null),ct.to==null)return;ct.to==H&&(ct=!1)}}if(H>=U)break;for(var bn=Math.min(U,ke);;){if(xe){var fn=H+xe.length;if(!ct){var Ar=fn>bn?xe.slice(0,bn-H):xe;n.addToken(n,Ar,Ce?Ce+Ye:Ye,ot,H+Ar.length==ke?tt:"",De,gt)}if(fn>=bn){xe=xe.slice(bn-H),H=bn;break}H=fn,ot=""}xe=f.slice(y,y=u[Z++]),Ce=Ql(u[Z++],n.cm.options)}}}function Zl(e,n,u){this.line=n,this.rest=Hf(n),this.size=this.rest?Zt(Ct(this.rest))-u+1:1,this.node=this.text=null,this.hidden=oi(e,n)}function bo(e,n,u){for(var l=[],f,y=n;y<u;y=f){var F=new Zl(e.doc,Tt(e.doc,y),y);f=y+F.size,l.push(F)}return l}var tn=null;function _l(e){tn?tn.ops.push(e):e.ownsGroup=tn={ops:[e],delayedCallbacks:[]}}function ql(e){var n=e.delayedCallbacks,u=0;do{for(;u<n.length;u++)n[u].call(null);for(var l=0;l<e.ops.length;l++){var f=e.ops[l];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(u<n.length)}function Is(e,n){var u=e.ownsGroup;if(!!u)try{ql(u)}finally{tn=null,n(u)}}var Fa=null;function ir(e,n){var u=re(e,n);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;tn?f=tn.delayedCallbacks:Fa?f=Fa:(f=Fa=[],setTimeout($f,0));for(var y=function(U){f.push(function(){return u[U].apply(null,l)})},F=0;F<u.length;++F)y(F)}}function $f(){var e=Fa;Fa=null;for(var n=0;n<e.length;++n)e[n]()}function wo(e,n,u,l){for(var f=0;f<n.changes.length;f++){var y=n.changes[f];y=="text"?Kf(e,n):y=="gutter"?Ra(e,n,u,l):y=="class"?Fs(e,n):y=="widget"&&Yf(e,n,l)}n.changes=null}function ka(e){return e.node==e.text&&(e.node=be("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),b&&S<8&&(e.node.style.zIndex=2)),e.node}function eu(e,n){var u=n.bgClass?n.bgClass+" "+(n.line.bgClass||""):n.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),n.background)u?n.background.className=u:(n.background.parentNode.removeChild(n.background),n.background=null);else if(u){var l=ka(n);n.background=l.insertBefore(be("div",null,u),l.firstChild),e.display.input.setUneditable(n.background)}}function tu(e,n){var u=e.display.externalMeasured;return u&&u.line==n.line?(e.display.externalMeasured=null,n.measure=u.measure,u.built):Os(e,n)}function Kf(e,n){var u=n.text.className,l=tu(e,n);n.text==n.node&&(n.node=l.pre),n.text.parentNode.replaceChild(l.pre,n.text),n.text=l.pre,l.bgClass!=n.bgClass||l.textClass!=n.textClass?(n.bgClass=l.bgClass,n.textClass=l.textClass,Fs(e,n)):u&&(n.text.className=u)}function Fs(e,n){eu(e,n),n.line.wrapClass?ka(n).className=n.line.wrapClass:n.node!=n.text&&(n.node.className="");var u=n.textClass?n.textClass+" "+(n.line.textClass||""):n.line.textClass;n.text.className=u||""}function Ra(e,n,u,l){if(n.gutter&&(n.node.removeChild(n.gutter),n.gutter=null),n.gutterBackground&&(n.node.removeChild(n.gutterBackground),n.gutterBackground=null),n.line.gutterClass){var f=ka(n);n.gutterBackground=be("div",null,"CodeMirror-gutter-background "+n.line.gutterClass,"left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),e.display.input.setUneditable(n.gutterBackground),f.insertBefore(n.gutterBackground,n.text)}var y=n.line.gutterMarkers;if(e.options.lineNumbers||y){var F=ka(n),U=n.gutter=be("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(U.setAttribute("aria-hidden","true"),e.display.input.setUneditable(U),F.insertBefore(U,n.text),n.line.gutterClass&&(U.className+=" "+n.line.gutterClass),e.options.lineNumbers&&(!y||!y["CodeMirror-linenumbers"])&&(n.lineNumber=U.appendChild(be("div",la(e.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),y)for(var H=0;H<e.display.gutterSpecs.length;++H){var Z=e.display.gutterSpecs[H].className,xe=y.hasOwnProperty(Z)&&y[Z];xe&&U.appendChild(be("div",[xe],"CodeMirror-gutter-elt","left: "+l.gutterLeft[Z]+"px; width: "+l.gutterWidth[Z]+"px"))}}}function Yf(e,n,u){n.alignable&&(n.alignable=null);for(var l=ce("CodeMirror-linewidget"),f=n.node.firstChild,y=void 0;f;f=y)y=f.nextSibling,l.test(f.className)&&n.node.removeChild(f);ru(e,n,u)}function qt(e,n,u,l){var f=tu(e,n);return n.text=n.node=f.pre,f.bgClass&&(n.bgClass=f.bgClass),f.textClass&&(n.textClass=f.textClass),Fs(e,n),Ra(e,n,u,l),ru(e,n,l),n.node}function ru(e,n,u){if(Qt(e,n.line,n,u,!0),n.rest)for(var l=0;l<n.rest.length;l++)Qt(e,n.rest[l],n,u,!1)}function Qt(e,n,u,l,f){if(!!n.widgets)for(var y=ka(u),F=0,U=n.widgets;F<U.length;++F){var H=U[F],Z=be("div",[H.node],"CodeMirror-linewidget"+(H.className?" "+H.className:""));H.handleMouseEvents||Z.setAttribute("cm-ignore-events","true"),Jf(H,Z,u,l),e.display.input.setUneditable(Z),f&&H.above?y.insertBefore(Z,u.gutter||u.text):y.appendChild(Z),ir(H,"redraw")}}function Jf(e,n,u,l){if(e.noHScroll){(u.alignable||(u.alignable=[])).push(n);var f=l.wrapperWidth;n.style.left=l.fixedPos+"px",e.coverGutter||(f-=l.gutterTotalWidth,n.style.paddingLeft=l.gutterTotalWidth+"px"),n.style.width=f+"px"}e.coverGutter&&(n.style.zIndex=5,n.style.position="relative",e.noHScroll||(n.style.marginLeft=-l.gutterTotalWidth+"px"))}function Ot(e){if(e.height!=null)return e.height;var n=e.doc.cm;if(!n)return 0;if(!oe(document.body,e.node)){var u="position: relative;";e.coverGutter&&(u+="margin-left: -"+n.display.gutters.offsetWidth+"px;"),e.noHScroll&&(u+="width: "+n.display.wrapper.clientWidth+"px;"),me(n.display.measure,be("div",[e.node],null,u))}return e.height=e.node.parentNode.offsetHeight}function li(e,n){for(var u=Pt(n);u!=e.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==e.sizer&&u!=e.mover)return!0}function Ma(e){return e.lineSpace.offsetTop}function ks(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function ln(e){if(e.cachedPaddingH)return e.cachedPaddingH;var n=me(e.measure,be("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(n):n.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(e.cachedPaddingH=l),l}function ui(e){return bt-e.display.nativeBarWidth}function zi(e){return e.display.scroller.clientWidth-ui(e)-e.display.barWidth}function La(e){return e.display.scroller.clientHeight-ui(e)-e.display.barHeight}function Xf(e,n,u){var l=e.options.lineWrapping,f=l&&zi(e);if(!n.measure.heights||l&&n.measure.width!=f){var y=n.measure.heights=[];if(l){n.measure.width=f;for(var F=n.text.firstChild.getClientRects(),U=0;U<F.length-1;U++){var H=F[U],Z=F[U+1];Math.abs(H.bottom-Z.bottom)>2&&y.push((H.bottom+Z.top)/2-u.top)}}y.push(u.bottom-u.top)}}function Rs(e,n,u){if(e.line==n)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var l=0;l<e.rest.length;l++)if(e.rest[l]==n)return{map:e.measure.maps[l],cache:e.measure.caches[l]};for(var f=0;f<e.rest.length;f++)if(Zt(e.rest[f])>u)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}}function Qf(e,n){n=Wn(n);var u=Zt(n),l=e.display.externalMeasured=new Zl(e.doc,n,u);l.lineN=u;var f=l.built=Os(e,l);return l.text=f.pre,me(e.display.lineMeasure,f.pre),l}function So(e,n,u,l){return Hn(e,_n(e,n),u,l)}function Ms(e,n){if(n>=e.display.viewFrom&&n<e.display.viewTo)return e.display.view[Yi(e,n)];var u=e.display.externalMeasured;if(u&&n>=u.lineN&&n<u.lineN+u.size)return u}function _n(e,n){var u=Zt(n),l=Ms(e,u);l&&!l.text?l=null:l&&l.changes&&(wo(e,l,u,Vs(e)),e.curOp.forceUpdate=!0),l||(l=Qf(e,n));var f=Rs(l,n,u);return{line:n,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Hn(e,n,u,l,f){n.before&&(u=-1);var y=u+(l||""),F;return n.cache.hasOwnProperty(y)?F=n.cache[y]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(Xf(e,n.view,n.rect),n.hasHeights=!0),F=nu(e,n,u,l),F.bogus||(n.cache[y]=F)),{left:F.left,right:F.right,top:f?F.rtop:F.top,bottom:f?F.rbottom:F.bottom}}var Ao={left:0,right:0,top:0,bottom:0};function Ls(e,n,u){for(var l,f,y,F,U,H,Z=0;Z<e.length;Z+=3)if(U=e[Z],H=e[Z+1],n<U?(f=0,y=1,F="left"):n<H?(f=n-U,y=f+1):(Z==e.length-3||n==H&&e[Z+3]>n)&&(y=H-U,f=y-1,n>=H&&(F="right")),f!=null){if(l=e[Z+2],U==H&&u==(l.insertLeft?"left":"right")&&(F=u),u=="left"&&f==0)for(;Z&&e[Z-2]==e[Z-3]&&e[Z-1].insertLeft;)l=e[(Z-=3)+2],F="left";if(u=="right"&&f==H-U)for(;Z<e.length-3&&e[Z+3]==e[Z+4]&&!e[Z+5].insertLeft;)l=e[(Z+=3)+2],F="right";break}return{node:l,start:f,end:y,collapse:F,coverStart:U,coverEnd:H}}function Ds(e,n){var u=Ao;if(n=="left")for(var l=0;l<e.length&&(u=e[l]).left==u.right;l++);else for(var f=e.length-1;f>=0&&(u=e[f]).left==u.right;f--);return u}function nu(e,n,u,l){var f=Ls(n.map,u,l),y=f.node,F=f.start,U=f.end,H=f.collapse,Z;if(y.nodeType==3){for(var xe=0;xe<4;xe++){for(;F&&Ie(n.line.text.charAt(f.coverStart+F));)--F;for(;f.coverStart+U<f.coverEnd&&Ie(n.line.text.charAt(f.coverStart+U));)++U;if(b&&S<9&&F==0&&U==f.coverEnd-f.coverStart?Z=y.parentNode.getBoundingClientRect():Z=Ds(ue(y,F,U).getClientRects(),l),Z.left||Z.right||F==0)break;U=F,F=F-1,H="right"}b&&S<11&&(Z=iu(e.display.measure,Z))}else{F>0&&(H=l="right");var Ce;e.options.lineWrapping&&(Ce=y.getClientRects()).length>1?Z=Ce[l=="right"?Ce.length-1:0]:Z=y.getBoundingClientRect()}if(b&&S<9&&!F&&(!Z||!Z.left&&!Z.right)){var De=y.parentNode.getClientRects()[0];De?Z={left:De.left,right:De.left+Pn(e.display),top:De.top,bottom:De.bottom}:Z=Ao}for(var ke=Z.top-n.rect.top,Ye=Z.bottom-n.rect.top,tt=(ke+Ye)/2,ot=n.view.measure.heights,ct=0;ct<ot.length-1&&!(tt<ot[ct]);ct++);var gt=ct?ot[ct-1]:0,dt=ot[ct],xt={left:(H=="right"?Z.right:Z.left)-n.rect.left,right:(H=="left"?Z.left:Z.right)-n.rect.left,top:gt,bottom:dt};return!Z.left&&!Z.right&&(xt.bogus=!0),e.options.singleCursorHeightPerLine||(xt.rtop=ke,xt.rbottom=Ye),xt}function iu(e,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!xi(e))return n;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:n.left*u,right:n.right*u,top:n.top*l,bottom:n.bottom*l}}function Ns(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var n=0;n<e.rest.length;n++)e.measure.caches[n]={}}function Gi(e){e.display.externalMeasure=null,ie(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)Ns(e.display.view[n])}function Da(e){Gi(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Na(){return D&&X?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function au(){return D&&X?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ba(e){var n=0;if(e.widgets)for(var u=0;u<e.widgets.length;++u)e.widgets[u].above&&(n+=Ot(e.widgets[u]));return n}function Eo(e,n,u,l,f){if(!f){var y=Ba(n);u.top+=y,u.bottom+=y}if(l=="line")return u;l||(l="local");var F=si(n);if(l=="local"?F+=Ma(e.display):F-=e.display.viewOffset,l=="page"||l=="window"){var U=e.display.lineSpace.getBoundingClientRect();F+=U.top+(l=="window"?0:au());var H=U.left+(l=="window"?0:Na());u.left+=H,u.right+=H}return u.top+=F,u.bottom+=F,u}function Ua(e,n,u){if(u=="div")return n;var l=n.left,f=n.top;if(u=="page")l-=Na(),f-=au();else if(u=="local"||!u){var y=e.display.sizer.getBoundingClientRect();l+=y.left,f+=y.top}var F=e.display.lineSpace.getBoundingClientRect();return{left:l-F.left,top:f-F.top}}function Co(e,n,u,l,f){return l||(l=Tt(e.doc,n.line)),Eo(e,l,So(e,l,n.ch,f),u)}function zn(e,n,u,l,f,y){l=l||Tt(e.doc,n.line),f||(f=_n(e,l));function F(Ye,tt){var ot=Hn(e,f,Ye,tt?"right":"left",y);return tt?ot.left=ot.right:ot.right=ot.left,Eo(e,l,ot,u)}var U=O(l,e.doc.direction),H=n.ch,Z=n.sticky;if(H>=l.text.length?(H=l.text.length,Z="before"):H<=0&&(H=0,Z="after"),!U)return F(Z=="before"?H-1:H,Z=="before");function xe(Ye,tt,ot){var ct=U[tt],gt=ct.level==1;return F(ot?Ye-1:Ye,gt!=ot)}var Ce=K(U,H,Z),De=Me,ke=xe(H,Ce,Z=="before");return De!=null&&(ke.other=xe(H,De,Z!="before")),ke}function ou(e,n){var u=0;n=lt(e.doc,n),e.options.lineWrapping||(u=Pn(e.display)*n.ch);var l=Tt(e.doc,n.line),f=si(l)+Ma(e.display);return{left:u,right:u,top:f,bottom:f+l.height}}function Bs(e,n,u,l,f){var y=at(e,n,u);return y.xRel=f,l&&(y.outside=l),y}function Us(e,n,u){var l=e.doc;if(u+=e.display.viewOffset,u<0)return Bs(l.first,0,null,-1,-1);var f=Vn(l,u),y=l.first+l.size-1;if(f>y)return Bs(l.first+l.size-1,Tt(l,y).text.length,null,1,1);n<0&&(n=0);for(var F=Tt(l,f);;){var U=Zf(e,F,f,n,u),H=Wf(F,U.ch+(U.xRel>0||U.outside>0?1:0));if(!H)return U;var Z=H.find(1);if(Z.line==f)return Z;F=Tt(l,f=Z.line)}}function su(e,n,u,l){l-=Ba(n);var f=n.text.length,y=Ke(function(F){return Hn(e,u,F-1).bottom<=l},f,0);return f=Ke(function(F){return Hn(e,u,F).top>l},y,f),{begin:y,end:f}}function lu(e,n,u,l){u||(u=_n(e,n));var f=Eo(e,n,Hn(e,u,l),"line").top;return su(e,n,u,f)}function js(e,n,u,l){return e.bottom<=u?!1:e.top>u?!0:(l?e.left:e.right)>n}function Zf(e,n,u,l,f){f-=si(n);var y=_n(e,n),F=Ba(n),U=0,H=n.text.length,Z=!0,xe=O(n,e.doc.direction);if(xe){var Ce=(e.options.lineWrapping?qf:_f)(e,n,u,y,xe,l,f);Z=Ce.level!=1,U=Z?Ce.from:Ce.to-1,H=Z?Ce.to:Ce.from-1}var De=null,ke=null,Ye=Ke(function(Ft){var It=Hn(e,y,Ft);return It.top+=F,It.bottom+=F,js(It,l,f,!1)?(It.top<=f&&It.left<=l&&(De=Ft,ke=It),!0):!1},U,H),tt,ot,ct=!1;if(ke){var gt=l-ke.left<ke.right-l,dt=gt==Z;Ye=De+(dt?0:1),ot=dt?"after":"before",tt=gt?ke.left:ke.right}else{!Z&&(Ye==H||Ye==U)&&Ye++,ot=Ye==0?"after":Ye==n.text.length?"before":Hn(e,y,Ye-(Z?1:0)).bottom+F<=f==Z?"after":"before";var xt=zn(e,at(u,Ye,ot),"line",n,y);tt=xt.left,ct=f<xt.top?-1:f>=xt.bottom?1:0}return Ye=Ge(n.text,Ye,1),Bs(u,Ye,ot,ct,l-tt)}function _f(e,n,u,l,f,y,F){var U=Ke(function(Ce){var De=f[Ce],ke=De.level!=1;return js(zn(e,at(u,ke?De.to:De.from,ke?"before":"after"),"line",n,l),y,F,!0)},0,f.length-1),H=f[U];if(U>0){var Z=H.level!=1,xe=zn(e,at(u,Z?H.from:H.to,Z?"after":"before"),"line",n,l);js(xe,y,F,!0)&&xe.top>F&&(H=f[U-1])}return H}function qf(e,n,u,l,f,y,F){var U=su(e,n,l,F),H=U.begin,Z=U.end;/\s/.test(n.text.charAt(Z-1))&&Z--;for(var xe=null,Ce=null,De=0;De<f.length;De++){var ke=f[De];if(!(ke.from>=Z||ke.to<=H)){var Ye=ke.level!=1,tt=Hn(e,l,Ye?Math.min(Z,ke.to)-1:Math.max(H,ke.from)).right,ot=tt<y?y-tt+1e9:tt-y;(!xe||Ce>ot)&&(xe=ke,Ce=ot)}}return xe||(xe=f[f.length-1]),xe.from<H&&(xe={from:H,to:xe.to,level:xe.level}),xe.to>Z&&(xe={from:xe.from,to:Z,level:xe.level}),xe}var $i;function ua(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if($i==null){$i=be("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)$i.appendChild(document.createTextNode("x")),$i.appendChild(be("br"));$i.appendChild(document.createTextNode("x"))}me(e.measure,$i);var u=$i.offsetHeight/50;return u>3&&(e.cachedTextHeight=u),ie(e.measure),u||1}function Pn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=be("span","xxxxxxxxxx"),u=be("pre",[n],"CodeMirror-line-like");me(e.measure,u);var l=n.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(e.cachedCharWidth=f),f||10}function Vs(e){for(var n=e.display,u={},l={},f=n.gutters.clientLeft,y=n.gutters.firstChild,F=0;y;y=y.nextSibling,++F){var U=e.display.gutterSpecs[F].className;u[U]=y.offsetLeft+y.clientLeft+f,l[U]=y.clientWidth}return{fixedPos:In(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:n.wrapper.clientWidth}}function In(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function uu(e){var n=ua(e.display),u=e.options.lineWrapping,l=u&&Math.max(5,e.display.scroller.clientWidth/Pn(e.display)-3);return function(f){if(oi(e.doc,f))return 0;var y=0;if(f.widgets)for(var F=0;F<f.widgets.length;F++)f.widgets[F].height&&(y+=f.widgets[F].height);return u?y+(Math.ceil(f.text.length/l)||1)*n:y+n}}function Ws(e){var n=e.doc,u=uu(e);n.iter(function(l){var f=u(l);f!=l.height&&An(l,f)})}function Ki(e,n,u,l){var f=e.display;if(!u&&Pt(n).getAttribute("cm-not-content")=="true")return null;var y,F,U=f.lineSpace.getBoundingClientRect();try{y=n.clientX-U.left,F=n.clientY-U.top}catch(Ce){return null}var H=Us(e,y,F),Z;if(l&&H.xRel>0&&(Z=Tt(e.doc,H.line).text).length==H.ch){var xe=Xe(Z,Z.length,e.options.tabSize)-Z.length;H=at(H.line,Math.max(0,Math.round((y-ln(e.display).left)/Pn(e.display))-xe))}return H}function Yi(e,n){if(n>=e.display.viewTo||(n-=e.display.viewFrom,n<0))return null;for(var u=e.display.view,l=0;l<u.length;l++)if(n-=u[l].size,n<0)return l}function Rr(e,n,u,l){n==null&&(n=e.doc.first),u==null&&(u=e.doc.first+e.doc.size),l||(l=0);var f=e.display;if(l&&u<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>n)&&(f.updateLineNumbers=n),e.curOp.viewChanged=!0,n>=f.viewTo)Ai&&Ia(e.doc,n)<f.viewTo&&Ci(e);else if(u<=f.viewFrom)Ai&&Ss(e.doc,u+l)>f.viewFrom?Ci(e):(f.viewFrom+=l,f.viewTo+=l);else if(n<=f.viewFrom&&u>=f.viewTo)Ci(e);else if(n<=f.viewFrom){var y=Oo(e,u,u+l,1);y?(f.view=f.view.slice(y.index),f.viewFrom=y.lineN,f.viewTo+=l):Ci(e)}else if(u>=f.viewTo){var F=Oo(e,n,n,-1);F?(f.view=f.view.slice(0,F.index),f.viewTo=F.lineN):Ci(e)}else{var U=Oo(e,n,n,-1),H=Oo(e,u,u+l,1);U&&H?(f.view=f.view.slice(0,U.index).concat(bo(e,U.lineN,H.lineN)).concat(f.view.slice(H.index)),f.viewTo+=l):Ci(e)}var Z=f.externalMeasured;Z&&(u<Z.lineN?Z.lineN+=l:n<Z.lineN+Z.size&&(f.externalMeasured=null))}function qn(e,n,u){e.curOp.viewChanged=!0;var l=e.display,f=e.display.externalMeasured;if(f&&n>=f.lineN&&n<f.lineN+f.size&&(l.externalMeasured=null),!(n<l.viewFrom||n>=l.viewTo)){var y=l.view[Yi(e,n)];if(y.node!=null){var F=y.changes||(y.changes=[]);ht(F,u)==-1&&F.push(u)}}}function Ci(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Oo(e,n,u,l){var f=Yi(e,n),y,F=e.display.view;if(!Ai||u==e.doc.first+e.doc.size)return{index:f,lineN:u};for(var U=e.display.viewFrom,H=0;H<f;H++)U+=F[H].size;if(U!=n){if(l>0){if(f==F.length-1)return null;y=U+F[f].size-n,f++}else y=U-n;n+=y,u+=y}for(;Ia(e.doc,u)!=u;){if(f==(l<0?0:F.length-1))return null;u+=l*F[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function ec(e,n,u){var l=e.display,f=l.view;f.length==0||n>=l.viewTo||u<=l.viewFrom?(l.view=bo(e,n,u),l.viewFrom=n):(l.viewFrom>n?l.view=bo(e,n,l.viewFrom).concat(l.view):l.viewFrom<n&&(l.view=l.view.slice(Yi(e,n))),l.viewFrom=n,l.viewTo<u?l.view=l.view.concat(bo(e,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Yi(e,u)))),l.viewTo=u}function To(e){for(var n=e.display.view,u=0,l=0;l<n.length;l++){var f=n[l];!f.hidden&&(!f.node||f.changes)&&++u}return u}function Oi(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Po(e,n){n===void 0&&(n=!0);var u=e.doc,l={},f=l.cursors=document.createDocumentFragment(),y=l.selection=document.createDocumentFragment(),F=e.options.$customCursor;F&&(n=!0);for(var U=0;U<u.sel.ranges.length;U++)if(!(!n&&U==u.sel.primIndex)){var H=u.sel.ranges[U];if(!(H.from().line>=e.display.viewTo||H.to().line<e.display.viewFrom)){var Z=H.empty();if(F){var xe=F(e,H);xe&&Hs(e,xe,f)}else(Z||e.options.showCursorWhenSelecting)&&Hs(e,H.head,f);Z||fu(e,H,y)}}return l}function Hs(e,n,u){var l=zn(e,n,"div",null,null,!e.options.singleCursorHeightPerLine),f=u.appendChild(be("div","\xA0","CodeMirror-cursor"));if(f.style.left=l.left+"px",f.style.top=l.top+"px",f.style.height=Math.max(0,l.bottom-l.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var y=Co(e,n,"div",null,null),F=y.right-y.left;f.style.width=(F>0?F:e.defaultCharWidth())+"px"}if(l.other){var U=u.appendChild(be("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));U.style.display="",U.style.left=l.other.left+"px",U.style.top=l.other.top+"px",U.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Io(e,n){return e.top-n.top||e.left-n.left}function fu(e,n,u){var l=e.display,f=e.doc,y=document.createDocumentFragment(),F=ln(e.display),U=F.left,H=Math.max(l.sizerWidth,zi(e)-l.sizer.offsetLeft)-F.right,Z=f.direction=="ltr";function xe(dt,xt,Ft,It){xt<0&&(xt=0),xt=Math.round(xt),It=Math.round(It),y.appendChild(be("div",null,"CodeMirror-selected","position: absolute; left: "+dt+`px;
|
|
21
|
+
`,n);f==-1&&(f=e.length);var m=e.slice(n,e.charAt(f-1)=="\r"?f-1:f),F=m.indexOf("\r");F!=-1?(u.push(m.slice(0,F)),n+=F+1):(u.push(m),n=f+1)}return u}:function(e){return e.split(/\r\n?|\n/)},hn=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(n){return!1}}:function(e){var n;try{n=e.ownerDocument.selection.createRange()}catch(u){}return!n||n.parentElement()!=e?!1:n.compareEndPoints("StartToEnd",n)!=0},Tn=function(){var e=we("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Gr=null;function xi(e){if(Gr!=null)return Gr;var n=xe(e,we("span","x")),u=n.getBoundingClientRect(),l=fe(n,0,1).getBoundingClientRect();return Gr=Math.abs(u.left-l.left)>1}var bi={},qr={};function vn(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),bi[e]=n}function Un(e,n){qr[e]=n}function jn(e){if(typeof e=="string"&&qr.hasOwnProperty(e))e=qr[e];else if(e&&typeof e.name=="string"&&qr.hasOwnProperty(e.name)){var n=qr[e.name];typeof n=="string"&&(n={name:n}),e=St(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return jn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return jn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function gn(e,n){n=jn(n);var u=bi[n.name];if(!u)return gn(e,"text/plain");var l=u(e,n);if(Xn.hasOwnProperty(n.name)){var f=Xn[n.name];for(var m in f)!f.hasOwnProperty(m)||(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=f[m])}if(l.name=n.name,n.helperType&&(l.helperType=n.helperType),n.modeProps)for(var F in n.modeProps)l[F]=n.modeProps[F];return l}var Xn={};function wi(e,n){var u=Xn.hasOwnProperty(e)?Xn[e]:Xn[e]={};Ze(n,u)}function Br(e,n){if(n===!0)return n;if(e.copyState)return e.copyState(n);var u={};for(var l in n){var f=n[l];f instanceof Array&&(f=f.concat([])),u[l]=f}return u}function $r(e,n){for(var u;e.innerMode&&(u=e.innerMode(n),!(!u||u.mode==e));)n=u.state,e=u.mode;return u||{mode:e,state:n}}function Qn(e,n,u){return e.startState?e.startState(n,u):!0}var ur=function(e,n,u){this.pos=this.start=0,this.string=e,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};ur.prototype.eol=function(){return this.pos>=this.string.length},ur.prototype.sol=function(){return this.pos==this.lineStart},ur.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ur.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ur.prototype.eat=function(e){var n=this.string.charAt(this.pos),u;if(typeof e=="string"?u=n==e:u=n&&(e.test?e.test(n):e(n)),u)return++this.pos,n},ur.prototype.eatWhile=function(e){for(var n=this.pos;this.eat(e););return this.pos>n},ur.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ur.prototype.skipToEnd=function(){this.pos=this.string.length},ur.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},ur.prototype.backUp=function(e){this.pos-=e},ur.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},ur.prototype.indentation=function(){return Xe(this.string,null,this.tabSize)-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},ur.prototype.match=function(e,n,u){if(typeof e=="string"){var l=function(F){return u?F.toLowerCase():F},f=this.string.substr(this.pos,e.length);if(l(f)==l(e))return n!==!1&&(this.pos+=e.length),!0}else{var m=this.string.slice(this.pos).match(e);return m&&m.index>0?null:(m&&n!==!1&&(this.pos+=m[0].length),m)}},ur.prototype.current=function(){return this.string.slice(this.start,this.pos)},ur.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},ur.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},ur.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Tt(e,n){if(n-=e.first,n<0||n>=e.size)throw new Error("There is no line "+(n+e.first)+" in the document.");for(var u=e;!u.lines;)for(var l=0;;++l){var f=u.children[l],m=f.chunkSize();if(n<m){u=f;break}n-=m}return u.lines[n]}function ii(e,n,u){var l=[],f=n.line;return e.iter(n.line,u.line+1,function(m){var F=m.text;f==u.line&&(F=F.slice(0,u.ch)),f==n.line&&(F=F.slice(n.ch)),l.push(F),++f}),l}function Si(e,n,u){var l=[];return e.iter(n,u,function(f){l.push(f.text)}),l}function An(e,n){var u=n-e.height;if(u)for(var l=e;l;l=l.parent)l.height+=u}function Zt(e){if(e.parent==null)return null;for(var n=e.parent,u=ht(n.lines,e),l=n.parent;l;n=l,l=l.parent)for(var f=0;l.children[f]!=n;++f)u+=l.children[f].chunkSize();return u+n.first}function Vn(e,n){var u=e.first;e:do{for(var l=0;l<e.children.length;++l){var f=e.children[l],m=f.height;if(n<m){e=f;continue e}n-=m,u+=f.chunkSize()}return u}while(!e.lines);for(var F=0;F<e.lines.length;++F){var U=e.lines[F],H=U.height;if(n<H)break;n-=H}return u+F}function Zn(e,n){return n>=e.first&&n<e.first+e.size}function lo(e,n){return String(e.lineNumberFormatter(n+e.firstLineNumber))}function ot(e,n,u){if(u===void 0&&(u=null),!(this instanceof ot))return new ot(e,n,u);this.line=e,this.ch=n,this.sticky=u}function Lt(e,n){return e.line-n.line||e.ch-n.ch}function oi(e,n){return e.sticky==n.sticky&&Lt(e,n)==0}function ue(e){return ot(e.line,e.ch)}function Oe(e,n){return Lt(e,n)<0?n:e}function qe(e,n){return Lt(e,n)<0?e:n}function st(e,n){return Math.max(e.first,Math.min(n,e.first+e.size-1))}function lt(e,n){if(n.line<e.first)return ot(e.first,0);var u=e.first+e.size-1;return n.line>u?ot(u,Tt(e,u).text.length):Kt(n,Tt(e,n.line).text.length)}function Kt(e,n){var u=e.ch;return u==null||u>n?ot(e.line,n):u<0?ot(e.line,0):e}function Xt(e,n){for(var u=[],l=0;l<n.length;l++)u[l]=lt(e,n[l]);return u}var Tr=function(e,n){this.state=e,this.lookAhead=n},Pr=function(e,n,u,l){this.state=n,this.doc=e,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Pr.prototype.lookAhead=function(e){var n=this.doc.getLine(this.line+e);return n!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),n},Pr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Pr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Pr.fromSaved=function(e,n,u){return n instanceof Tr?new Pr(e,Br(e.mode,n.state),u,n.lookAhead):new Pr(e,Br(e.mode,n),u)},Pr.prototype.save=function(e){var n=e!==!1?Br(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Tr(n,this.maxLookAhead):n};function _t(e,n,u,l){var f=[e.state.modeGen],m={};Gl(e,n.text,e.doc.mode,u,function(Z,be){return f.push(Z,be)},m,l);for(var F=u.state,U=function(Z){u.baseTokens=f;var be=e.state.overlays[Z],Ce=1,De=0;u.state=!0,Gl(e,n.text,be.mode,u,function(ke,Ye){for(var tt=Ce;De<ke;){var at=f[Ce];at>ke&&f.splice(Ce,1,ke,f[Ce+1],at),Ce+=2,De=Math.min(ke,at)}if(!!Ye)if(be.opaque)f.splice(tt,Ce-tt,ke,"overlay "+Ye),Ce=tt+2;else for(;tt<Ce;tt+=2){var ct=f[tt+1];f[tt+1]=(ct?ct+" ":"")+"overlay "+Ye}},m),u.state=F,u.baseTokens=null,u.baseTokenPos=1},H=0;H<e.state.overlays.length;++H)U(H);return{styles:f,classes:m.bgClass||m.textClass?m:null}}function Hl(e,n,u){if(!n.styles||n.styles[0]!=e.state.modeGen){var l=en(e,Zt(n)),f=n.text.length>e.options.maxHighlightLength&&Br(e.doc.mode,l.state),m=_t(e,n,l);f&&(l.state=f),n.stateAfter=l.save(!f),n.styles=m.styles,m.classes?n.styleClasses=m.classes:n.styleClasses&&(n.styleClasses=null),u===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return n.styles}function en(e,n,u){var l=e.doc,f=e.display;if(!l.mode.startState)return new Pr(l,!0,n);var m=Lf(e,n,u),F=m>l.first&&Tt(l,m-1).stateAfter,U=F?Pr.fromSaved(l,F,m):new Pr(l,Qn(l.mode),m);return l.iter(m,n,function(H){vs(e,H.text,U);var Z=U.line;H.stateAfter=Z==n-1||Z%5==0||Z>=f.viewFrom&&Z<f.viewTo?U.save():null,U.nextLine()}),u&&(l.modeFrontier=U.line),U}function vs(e,n,u,l){var f=e.doc.mode,m=new ur(n,e.options.tabSize,u);for(m.start=m.pos=l||0,n==""&&ya(f,u.state);!m.eol();)gs(f,m,u.state),m.start=m.pos}function ya(e,n){if(e.blankLine)return e.blankLine(n);if(!!e.innerMode){var u=$r(e,n);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function gs(e,n,u,l){for(var f=0;f<10;f++){l&&(l[0]=$r(e,u).mode);var m=e.token(n,u);if(n.pos>n.start)return m}throw new Error("Mode "+e.name+" failed to advance stream.")}var ys=function(e,n,u){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=u};function ms(e,n,u,l){var f=e.doc,m=f.mode,F;n=lt(f,n);var U=Tt(f,n.line),H=en(e,n.line,u),Z=new ur(U.text,e.options.tabSize,H),be;for(l&&(be=[]);(l||Z.pos<n.ch)&&!Z.eol();)Z.start=Z.pos,F=gs(m,Z,H.state),l&&be.push(new ys(Z,F,Br(f.mode,H.state)));return l?be:new ys(Z,F,H.state)}function zl(e,n){if(e)for(;;){var u=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;e=e.slice(0,u.index)+e.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";n[l]==null?n[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(n[l])||(n[l]+=" "+u[2])}return e}function Gl(e,n,u,l,f,m,F){var U=u.flattenSpans;U==null&&(U=e.options.flattenSpans);var H=0,Z=null,be=new ur(n,e.options.tabSize,l),Ce,De=e.options.addModeClass&&[null];for(n==""&&zl(ya(u,l.state),m);!be.eol();){if(be.pos>e.options.maxHighlightLength?(U=!1,F&&vs(e,n,l,be.pos),be.pos=n.length,Ce=null):Ce=zl(gs(u,be,l.state,De),m),De){var ke=De[0].name;ke&&(Ce="m-"+(Ce?ke+" "+Ce:ke))}if(!U||Z!=Ce){for(;H<be.start;)H=Math.min(be.start,H+5e3),f(H,Z);Z=Ce}be.start=be.pos}for(;H<be.pos;){var Ye=Math.min(be.pos,H+5e3);f(Ye,Z),H=Ye}}function Lf(e,n,u){for(var l,f,m=e.doc,F=u?-1:n-(e.doc.mode.innerMode?1e3:100),U=n;U>F;--U){if(U<=m.first)return m.first;var H=Tt(m,U-1),Z=H.stateAfter;if(Z&&(!u||U+(Z instanceof Tr?Z.lookAhead:0)<=m.modeFrontier))return U;var be=Xe(H.text,null,e.options.tabSize);(f==null||l>be)&&(f=U-1,l=be)}return f}function Df(e,n){if(e.modeFrontier=Math.min(e.modeFrontier,n),!(e.highlightFrontier<n-10)){for(var u=e.first,l=n-1;l>u;l--){var f=Tt(e,l).stateAfter;if(f&&(!(f instanceof Tr)||l+f.lookAhead<n)){u=l+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,u)}}var Nf=!1,Ai=!1;function Bf(){Nf=!0}function Uf(){Ai=!0}function ma(e,n,u){this.marker=e,this.from=n,this.to=u}function Po(e,n){if(e)for(var u=0;u<e.length;++u){var l=e[u];if(l.marker==n)return l}}function jf(e,n){for(var u,l=0;l<e.length;++l)e[l]!=n&&(u||(u=[])).push(e[l]);return u}function Id(e,n,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&l.has(e.markedSpans)?e.markedSpans.push(n):(e.markedSpans=e.markedSpans?e.markedSpans.concat([n]):[n],l&&l.add(e.markedSpans)),n.marker.attachLine(e)}function Fd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],F=m.marker,U=m.from==null||(F.inclusiveLeft?m.from<=n:m.from<n);if(U||m.from==n&&F.type=="bookmark"&&(!u||!m.marker.insertLeft)){var H=m.to==null||(F.inclusiveRight?m.to>=n:m.to>n);(l||(l=[])).push(new ma(F,m.from,H?null:m.to))}}return l}function kd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],F=m.marker,U=m.to==null||(F.inclusiveRight?m.to>=n:m.to>n);if(U||m.from==n&&F.type=="bookmark"&&(!u||m.marker.insertLeft)){var H=m.from==null||(F.inclusiveLeft?m.from<=n:m.from<n);(l||(l=[])).push(new ma(F,H?null:m.from-n,m.to==null?null:m.to-n))}}return l}function $l(e,n){if(n.full)return null;var u=Zn(e,n.from.line)&&Tt(e,n.from.line).markedSpans,l=Zn(e,n.to.line)&&Tt(e,n.to.line).markedSpans;if(!u&&!l)return null;var f=n.from.ch,m=n.to.ch,F=Lt(n.from,n.to)==0,U=Fd(u,f,F),H=kd(l,m,F),Z=n.text.length==1,be=Ct(n.text).length+(Z?f:0);if(U)for(var Ce=0;Ce<U.length;++Ce){var De=U[Ce];if(De.to==null){var ke=Po(H,De.marker);ke?Z&&(De.to=ke.to==null?null:ke.to+be):De.to=f}}if(H)for(var Ye=0;Ye<H.length;++Ye){var tt=H[Ye];if(tt.to!=null&&(tt.to+=be),tt.from==null){var at=Po(U,tt.marker);at||(tt.from=be,Z&&(U||(U=[])).push(tt))}else tt.from+=be,Z&&(U||(U=[])).push(tt)}U&&(U=Kl(U)),H&&H!=U&&(H=Kl(H));var ct=[U];if(!Z){var gt=n.text.length-2,dt;if(gt>0&&U)for(var xt=0;xt<U.length;++xt)U[xt].to==null&&(dt||(dt=[])).push(new ma(U[xt].marker,null,null));for(var Ft=0;Ft<gt;++Ft)ct.push(dt);ct.push(H)}return ct}function Kl(e){for(var n=0;n<e.length;++n){var u=e[n];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&e.splice(n--,1)}return e.length?e:null}function Yl(e,n,u){var l=null;if(e.iter(n.line,u.line+1,function(ke){if(ke.markedSpans)for(var Ye=0;Ye<ke.markedSpans.length;++Ye){var tt=ke.markedSpans[Ye].marker;tt.readOnly&&(!l||ht(l,tt)==-1)&&(l||(l=[])).push(tt)}}),!l)return null;for(var f=[{from:n,to:u}],m=0;m<l.length;++m)for(var F=l[m],U=F.find(0),H=0;H<f.length;++H){var Z=f[H];if(!(Lt(Z.to,U.from)<0||Lt(Z.from,U.to)>0)){var be=[H,1],Ce=Lt(Z.from,U.from),De=Lt(Z.to,U.to);(Ce<0||!F.inclusiveLeft&&!Ce)&&be.push({from:Z.from,to:U.from}),(De>0||!F.inclusiveRight&&!De)&&be.push({from:U.to,to:Z.to}),f.splice.apply(f,be),H+=be.length-3}}return f}function Jl(e){var n=e.markedSpans;if(!!n){for(var u=0;u<n.length;++u)n[u].marker.detachLine(e);e.markedSpans=null}}function Vf(e,n){if(!!n){for(var u=0;u<n.length;++u)n[u].marker.attachLine(e);e.markedSpans=n}}function xs(e){return e.inclusiveLeft?-1:0}function bs(e){return e.inclusiveRight?1:0}function Xl(e,n){var u=e.lines.length-n.lines.length;if(u!=0)return u;var l=e.find(),f=n.find(),m=Lt(l.from,f.from)||xs(e)-xs(n);if(m)return-m;var F=Lt(l.to,f.to)||bs(e)-bs(n);return F||n.id-e.id}function Io(e,n){var u=Ai&&e.markedSpans,l;if(u)for(var f=void 0,m=0;m<u.length;++m)f=u[m],f.marker.collapsed&&(n?f.from:f.to)==null&&(!l||Xl(l,f.marker)<0)&&(l=f.marker);return l}function ws(e){return Io(e,!0)}function Ui(e){return Io(e,!1)}function Wf(e,n){var u=Ai&&e.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var m=u[f];m.marker.collapsed&&(m.from==null||m.from<n)&&(m.to==null||m.to>n)&&(!l||Xl(l,m.marker)<0)&&(l=m.marker)}return l}function xa(e,n,u,l,f){var m=Tt(e,n),F=Ai&&m.markedSpans;if(F)for(var U=0;U<F.length;++U){var H=F[U];if(!!H.marker.collapsed){var Z=H.marker.find(0),be=Lt(Z.from,u)||xs(H.marker)-xs(f),Ce=Lt(Z.to,l)||bs(H.marker)-bs(f);if(!(be>=0&&Ce<=0||be<=0&&Ce>=0)&&(be<=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.to,u)>=0:Lt(Z.to,u)>0)||be>=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.from,l)<=0:Lt(Z.from,l)<0)))return!0}}}function Wn(e){for(var n;n=ws(e);)e=n.find(-1,!0).line;return e}function Ql(e){for(var n;n=Ui(e);)e=n.find(1,!0).line;return e}function Hf(e){for(var n,u;n=Ui(e);)e=n.find(1,!0).line,(u||(u=[])).push(e);return u}function Fo(e,n){var u=Tt(e,n),l=Wn(u);return u==l?n:Zt(l)}function Ss(e,n){if(n>e.lastLine())return n;var u=Tt(e,n),l;if(!ai(e,u))return n;for(;l=Ui(u);)u=l.find(1,!0).line;return Zt(u)+1}function ai(e,n){var u=Ai&&n.markedSpans;if(u){for(var l=void 0,f=0;f<u.length;++f)if(l=u[f],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&fr(e,n,l))return!0}}}function fr(e,n,u){if(u.to==null){var l=u.marker.find(1,!0);return fr(e,l.line,Po(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==n.text.length)return!0;for(var f=void 0,m=0;m<n.markedSpans.length;++m)if(f=n.markedSpans[m],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&fr(e,n,f))return!0}function si(e){e=Wn(e);for(var n=0,u=e.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==e)break;n+=f.height}for(var m=u.parent;m;u=m,m=u.parent)for(var F=0;F<m.children.length;++F){var U=m.children[F];if(U==u)break;n+=U.height}return n}function ji(e){if(e.height==0)return 0;for(var n=e.text.length,u,l=e;u=ws(l);){var f=u.find(0,!0);l=f.from.line,n+=f.from.ch-f.to.ch}for(l=e;u=Ui(l);){var m=u.find(0,!0);n-=l.text.length-m.from.ch,l=m.to.line,n+=l.text.length-m.to.ch}return n}function As(e){var n=e.display,u=e.doc;n.maxLine=Tt(u,u.first),n.maxLineLength=ji(n.maxLine),n.maxLineChanged=!0,u.iter(function(l){var f=ji(l);f>n.maxLineLength&&(n.maxLineLength=f,n.maxLine=l)})}var Vi=function(e,n,u){this.text=e,Vf(this,n),this.height=u?u(this):1};Vi.prototype.lineNo=function(){return Zt(this)},Ue(Vi);function Ei(e,n,u,l){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Jl(e),Vf(e,u);var f=l?l(e):1;f!=e.height&&An(e,f)}function Wi(e){e.parent=null,Jl(e)}var Es={},Cs={};function Zl(e,n){if(!e||/^\s*$/.test(e))return null;var u=n.addModeClass?Cs:Es;return u[e]||(u[e]=e.replace(/\S+/g,"cm-$&"))}function Os(e,n){var u=he("span",null,null,g?"padding-right: .1px":null),l={pre:he("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};n.measure={};for(var f=0;f<=(n.rest?n.rest.length:0);f++){var m=f?n.rest[f-1]:n.line,F=void 0;l.pos=0,l.addToken=Ps,Bi(e.display.measure)&&(F=O(m,e.doc.direction))&&(l.addToken=zf(l.addToken,F)),l.map=[];var U=n!=e.display.externalMeasured&&Zt(m);Gf(m,l,Hl(e,m,U)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=Me(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=Me(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(mi(e.display.measure))),f==0?(n.measure.map=l.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(l.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(g){var H=l.content.lastChild;(/\bcm-tab\b/.test(H.className)||H.querySelector&&H.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return oe(e,"renderLine",e,n.line,l.pre),l.pre.className&&(l.textClass=Me(l.pre.className,l.textClass||"")),l}function Ts(e){var n=we("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function Ps(e,n,u,l,f,m,F){if(!!n){var U=e.splitSpaces?Hi(n,e.trailingSpace):n,H=e.cm.state.specialChars,Z=!1,be;if(!H.test(n))e.col+=n.length,be=document.createTextNode(U),e.map.push(e.pos,e.pos+n.length,be),b&&S<9&&(Z=!0),e.pos+=n.length;else{be=document.createDocumentFragment();for(var Ce=0;;){H.lastIndex=Ce;var De=H.exec(n),ke=De?De.index-Ce:n.length-Ce;if(ke){var Ye=document.createTextNode(U.slice(Ce,Ce+ke));b&&S<9?be.appendChild(we("span",[Ye])):be.appendChild(Ye),e.map.push(e.pos,e.pos+ke,Ye),e.col+=ke,e.pos+=ke}if(!De)break;Ce+=ke+1;var tt=void 0;if(De[0]==" "){var at=e.cm.options.tabSize,ct=at-e.col%at;tt=be.appendChild(we("span",kt(ct),"cm-tab")),tt.setAttribute("role","presentation"),tt.setAttribute("cm-text"," "),e.col+=ct}else De[0]=="\r"||De[0]==`
|
|
22
|
+
`?(tt=be.appendChild(we("span",De[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),tt.setAttribute("cm-text",De[0]),e.col+=1):(tt=e.cm.options.specialCharPlaceholder(De[0]),tt.setAttribute("cm-text",De[0]),b&&S<9?be.appendChild(we("span",[tt])):be.appendChild(tt),e.col+=1);e.map.push(e.pos,e.pos+1,tt),e.pos++}}if(e.trailingSpace=U.charCodeAt(n.length-1)==32,u||l||f||Z||m||F){var gt=u||"";l&&(gt+=l),f&&(gt+=f);var dt=we("span",[be],gt,m);if(F)for(var xt in F)F.hasOwnProperty(xt)&&xt!="style"&&xt!="class"&&dt.setAttribute(xt,F[xt]);return e.content.appendChild(dt)}e.content.appendChild(be)}}function Hi(e,n){if(e.length>1&&!/ /.test(e))return e;for(var u=n,l="",f=0;f<e.length;f++){var m=e.charAt(f);m==" "&&u&&(f==e.length-1||e.charCodeAt(f+1)==32)&&(m="\xA0"),l+=m,u=m==" "}return l}function zf(e,n){return function(u,l,f,m,F,U,H){f=f?f+" cm-force-border":"cm-force-border";for(var Z=u.pos,be=Z+l.length;;){for(var Ce=void 0,De=0;De<n.length&&(Ce=n[De],!(Ce.to>Z&&Ce.from<=Z));De++);if(Ce.to>=be)return e(u,l,f,m,F,U,H);e(u,l.slice(0,Ce.to-Z),f,m,null,U,H),m=null,l=l.slice(Ce.to-Z),Z=Ce.to}}}function nr(e,n,u,l){var f=!l&&u.widgetNode;f&&e.map.push(e.pos,e.pos+n,f),!l&&e.cm.display.input.needsContentAttribute&&(f||(f=e.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(e.cm.display.input.setUneditable(f),e.content.appendChild(f)),e.pos+=n,e.trailingSpace=!1}function Gf(e,n,u){var l=e.markedSpans,f=e.text,m=0;if(!l){for(var F=1;F<u.length;F+=2)n.addToken(n,f.slice(m,m=u[F]),Zl(u[F+1],n.cm.options));return}for(var U=f.length,H=0,Z=1,be="",Ce,De,ke=0,Ye,tt,at,ct,gt;;){if(ke==H){Ye=tt=at=De="",gt=null,ct=null,ke=1/0;for(var dt=[],xt=void 0,Ft=0;Ft<l.length;++Ft){var It=l[Ft],it=It.marker;if(it.type=="bookmark"&&It.from==H&&it.widgetNode)dt.push(it);else if(It.from<=H&&(It.to==null||It.to>H||it.collapsed&&It.to==H&&It.from==H)){if(It.to!=null&&It.to!=H&&ke>It.to&&(ke=It.to,tt=""),it.className&&(Ye+=" "+it.className),it.css&&(De=(De?De+";":"")+it.css),it.startStyle&&It.from==H&&(at+=" "+it.startStyle),it.endStyle&&It.to==ke&&(xt||(xt=[])).push(it.endStyle,It.to),it.title&&((gt||(gt={})).title=it.title),it.attributes)for(var Gt in it.attributes)(gt||(gt={}))[Gt]=it.attributes[Gt];it.collapsed&&(!ct||Xl(ct.marker,it)<0)&&(ct=It)}else It.from>H&&ke>It.from&&(ke=It.from)}if(xt)for(var hr=0;hr<xt.length;hr+=2)xt[hr+1]==ke&&(tt+=" "+xt[hr]);if(!ct||ct.from==H)for(var vr=0;vr<dt.length;++vr)nr(n,0,dt[vr]);if(ct&&(ct.from||0)==H){if(nr(n,(ct.to==null?U+1:ct.to)-H,ct.marker,ct.from==null),ct.to==null)return;ct.to==H&&(ct=!1)}}if(H>=U)break;for(var bn=Math.min(U,ke);;){if(be){var fn=H+be.length;if(!ct){var Ar=fn>bn?be.slice(0,bn-H):be;n.addToken(n,Ar,Ce?Ce+Ye:Ye,at,H+Ar.length==ke?tt:"",De,gt)}if(fn>=bn){be=be.slice(bn-H),H=bn;break}H=fn,at=""}be=f.slice(m,m=u[Z++]),Ce=Zl(u[Z++],n.cm.options)}}}function _l(e,n,u){this.line=n,this.rest=Hf(n),this.size=this.rest?Zt(Ct(this.rest))-u+1:1,this.node=this.text=null,this.hidden=ai(e,n)}function ba(e,n,u){for(var l=[],f,m=n;m<u;m=f){var F=new _l(e.doc,Tt(e.doc,m),m);f=m+F.size,l.push(F)}return l}var tn=null;function ql(e){tn?tn.ops.push(e):e.ownsGroup=tn={ops:[e],delayedCallbacks:[]}}function eu(e){var n=e.delayedCallbacks,u=0;do{for(;u<n.length;u++)n[u].call(null);for(var l=0;l<e.ops.length;l++){var f=e.ops[l];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(u<n.length)}function Is(e,n){var u=e.ownsGroup;if(!!u)try{eu(u)}finally{tn=null,n(u)}}var ko=null;function ir(e,n){var u=te(e,n);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;tn?f=tn.delayedCallbacks:ko?f=ko:(f=ko=[],setTimeout($f,0));for(var m=function(U){f.push(function(){return u[U].apply(null,l)})},F=0;F<u.length;++F)m(F)}}function $f(){var e=ko;ko=null;for(var n=0;n<e.length;++n)e[n]()}function wa(e,n,u,l){for(var f=0;f<n.changes.length;f++){var m=n.changes[f];m=="text"?Kf(e,n):m=="gutter"?Ro(e,n,u,l):m=="class"?Fs(e,n):m=="widget"&&Yf(e,n,l)}n.changes=null}function Mo(e){return e.node==e.text&&(e.node=we("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),b&&S<8&&(e.node.style.zIndex=2)),e.node}function tu(e,n){var u=n.bgClass?n.bgClass+" "+(n.line.bgClass||""):n.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),n.background)u?n.background.className=u:(n.background.parentNode.removeChild(n.background),n.background=null);else if(u){var l=Mo(n);n.background=l.insertBefore(we("div",null,u),l.firstChild),e.display.input.setUneditable(n.background)}}function ru(e,n){var u=e.display.externalMeasured;return u&&u.line==n.line?(e.display.externalMeasured=null,n.measure=u.measure,u.built):Os(e,n)}function Kf(e,n){var u=n.text.className,l=ru(e,n);n.text==n.node&&(n.node=l.pre),n.text.parentNode.replaceChild(l.pre,n.text),n.text=l.pre,l.bgClass!=n.bgClass||l.textClass!=n.textClass?(n.bgClass=l.bgClass,n.textClass=l.textClass,Fs(e,n)):u&&(n.text.className=u)}function Fs(e,n){tu(e,n),n.line.wrapClass?Mo(n).className=n.line.wrapClass:n.node!=n.text&&(n.node.className="");var u=n.textClass?n.textClass+" "+(n.line.textClass||""):n.line.textClass;n.text.className=u||""}function Ro(e,n,u,l){if(n.gutter&&(n.node.removeChild(n.gutter),n.gutter=null),n.gutterBackground&&(n.node.removeChild(n.gutterBackground),n.gutterBackground=null),n.line.gutterClass){var f=Mo(n);n.gutterBackground=we("div",null,"CodeMirror-gutter-background "+n.line.gutterClass,"left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),e.display.input.setUneditable(n.gutterBackground),f.insertBefore(n.gutterBackground,n.text)}var m=n.line.gutterMarkers;if(e.options.lineNumbers||m){var F=Mo(n),U=n.gutter=we("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(U.setAttribute("aria-hidden","true"),e.display.input.setUneditable(U),F.insertBefore(U,n.text),n.line.gutterClass&&(U.className+=" "+n.line.gutterClass),e.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(n.lineNumber=U.appendChild(we("div",lo(e.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),m)for(var H=0;H<e.display.gutterSpecs.length;++H){var Z=e.display.gutterSpecs[H].className,be=m.hasOwnProperty(Z)&&m[Z];be&&U.appendChild(we("div",[be],"CodeMirror-gutter-elt","left: "+l.gutterLeft[Z]+"px; width: "+l.gutterWidth[Z]+"px"))}}}function Yf(e,n,u){n.alignable&&(n.alignable=null);for(var l=ce("CodeMirror-linewidget"),f=n.node.firstChild,m=void 0;f;f=m)m=f.nextSibling,l.test(f.className)&&n.node.removeChild(f);nu(e,n,u)}function qt(e,n,u,l){var f=ru(e,n);return n.text=n.node=f.pre,f.bgClass&&(n.bgClass=f.bgClass),f.textClass&&(n.textClass=f.textClass),Fs(e,n),Ro(e,n,u,l),nu(e,n,l),n.node}function nu(e,n,u){if(Qt(e,n.line,n,u,!0),n.rest)for(var l=0;l<n.rest.length;l++)Qt(e,n.rest[l],n,u,!1)}function Qt(e,n,u,l,f){if(!!n.widgets)for(var m=Mo(u),F=0,U=n.widgets;F<U.length;++F){var H=U[F],Z=we("div",[H.node],"CodeMirror-linewidget"+(H.className?" "+H.className:""));H.handleMouseEvents||Z.setAttribute("cm-ignore-events","true"),Jf(H,Z,u,l),e.display.input.setUneditable(Z),f&&H.above?m.insertBefore(Z,u.gutter||u.text):m.appendChild(Z),ir(H,"redraw")}}function Jf(e,n,u,l){if(e.noHScroll){(u.alignable||(u.alignable=[])).push(n);var f=l.wrapperWidth;n.style.left=l.fixedPos+"px",e.coverGutter||(f-=l.gutterTotalWidth,n.style.paddingLeft=l.gutterTotalWidth+"px"),n.style.width=f+"px"}e.coverGutter&&(n.style.zIndex=5,n.style.position="relative",e.noHScroll||(n.style.marginLeft=-l.gutterTotalWidth+"px"))}function Ot(e){if(e.height!=null)return e.height;var n=e.doc.cm;if(!n)return 0;if(!ae(document.body,e.node)){var u="position: relative;";e.coverGutter&&(u+="margin-left: -"+n.display.gutters.offsetWidth+"px;"),e.noHScroll&&(u+="width: "+n.display.wrapper.clientWidth+"px;"),xe(n.display.measure,we("div",[e.node],null,u))}return e.height=e.node.parentNode.offsetHeight}function li(e,n){for(var u=Pt(n);u!=e.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==e.sizer&&u!=e.mover)return!0}function Lo(e){return e.lineSpace.offsetTop}function ks(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function ln(e){if(e.cachedPaddingH)return e.cachedPaddingH;var n=xe(e.measure,we("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(n):n.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(e.cachedPaddingH=l),l}function ui(e){return bt-e.display.nativeBarWidth}function zi(e){return e.display.scroller.clientWidth-ui(e)-e.display.barWidth}function Do(e){return e.display.scroller.clientHeight-ui(e)-e.display.barHeight}function Xf(e,n,u){var l=e.options.lineWrapping,f=l&&zi(e);if(!n.measure.heights||l&&n.measure.width!=f){var m=n.measure.heights=[];if(l){n.measure.width=f;for(var F=n.text.firstChild.getClientRects(),U=0;U<F.length-1;U++){var H=F[U],Z=F[U+1];Math.abs(H.bottom-Z.bottom)>2&&m.push((H.bottom+Z.top)/2-u.top)}}m.push(u.bottom-u.top)}}function Ms(e,n,u){if(e.line==n)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var l=0;l<e.rest.length;l++)if(e.rest[l]==n)return{map:e.measure.maps[l],cache:e.measure.caches[l]};for(var f=0;f<e.rest.length;f++)if(Zt(e.rest[f])>u)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}}function Qf(e,n){n=Wn(n);var u=Zt(n),l=e.display.externalMeasured=new _l(e.doc,n,u);l.lineN=u;var f=l.built=Os(e,l);return l.text=f.pre,xe(e.display.lineMeasure,f.pre),l}function Sa(e,n,u,l){return Hn(e,_n(e,n),u,l)}function Rs(e,n){if(n>=e.display.viewFrom&&n<e.display.viewTo)return e.display.view[Yi(e,n)];var u=e.display.externalMeasured;if(u&&n>=u.lineN&&n<u.lineN+u.size)return u}function _n(e,n){var u=Zt(n),l=Rs(e,u);l&&!l.text?l=null:l&&l.changes&&(wa(e,l,u,Vs(e)),e.curOp.forceUpdate=!0),l||(l=Qf(e,n));var f=Ms(l,n,u);return{line:n,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Hn(e,n,u,l,f){n.before&&(u=-1);var m=u+(l||""),F;return n.cache.hasOwnProperty(m)?F=n.cache[m]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(Xf(e,n.view,n.rect),n.hasHeights=!0),F=iu(e,n,u,l),F.bogus||(n.cache[m]=F)),{left:F.left,right:F.right,top:f?F.rtop:F.top,bottom:f?F.rbottom:F.bottom}}var Aa={left:0,right:0,top:0,bottom:0};function Ls(e,n,u){for(var l,f,m,F,U,H,Z=0;Z<e.length;Z+=3)if(U=e[Z],H=e[Z+1],n<U?(f=0,m=1,F="left"):n<H?(f=n-U,m=f+1):(Z==e.length-3||n==H&&e[Z+3]>n)&&(m=H-U,f=m-1,n>=H&&(F="right")),f!=null){if(l=e[Z+2],U==H&&u==(l.insertLeft?"left":"right")&&(F=u),u=="left"&&f==0)for(;Z&&e[Z-2]==e[Z-3]&&e[Z-1].insertLeft;)l=e[(Z-=3)+2],F="left";if(u=="right"&&f==H-U)for(;Z<e.length-3&&e[Z+3]==e[Z+4]&&!e[Z+5].insertLeft;)l=e[(Z+=3)+2],F="right";break}return{node:l,start:f,end:m,collapse:F,coverStart:U,coverEnd:H}}function Ds(e,n){var u=Aa;if(n=="left")for(var l=0;l<e.length&&(u=e[l]).left==u.right;l++);else for(var f=e.length-1;f>=0&&(u=e[f]).left==u.right;f--);return u}function iu(e,n,u,l){var f=Ls(n.map,u,l),m=f.node,F=f.start,U=f.end,H=f.collapse,Z;if(m.nodeType==3){for(var be=0;be<4;be++){for(;F&&Ie(n.line.text.charAt(f.coverStart+F));)--F;for(;f.coverStart+U<f.coverEnd&&Ie(n.line.text.charAt(f.coverStart+U));)++U;if(b&&S<9&&F==0&&U==f.coverEnd-f.coverStart?Z=m.parentNode.getBoundingClientRect():Z=Ds(fe(m,F,U).getClientRects(),l),Z.left||Z.right||F==0)break;U=F,F=F-1,H="right"}b&&S<11&&(Z=ou(e.display.measure,Z))}else{F>0&&(H=l="right");var Ce;e.options.lineWrapping&&(Ce=m.getClientRects()).length>1?Z=Ce[l=="right"?Ce.length-1:0]:Z=m.getBoundingClientRect()}if(b&&S<9&&!F&&(!Z||!Z.left&&!Z.right)){var De=m.parentNode.getClientRects()[0];De?Z={left:De.left,right:De.left+Pn(e.display),top:De.top,bottom:De.bottom}:Z=Aa}for(var ke=Z.top-n.rect.top,Ye=Z.bottom-n.rect.top,tt=(ke+Ye)/2,at=n.view.measure.heights,ct=0;ct<at.length-1&&!(tt<at[ct]);ct++);var gt=ct?at[ct-1]:0,dt=at[ct],xt={left:(H=="right"?Z.right:Z.left)-n.rect.left,right:(H=="left"?Z.left:Z.right)-n.rect.left,top:gt,bottom:dt};return!Z.left&&!Z.right&&(xt.bogus=!0),e.options.singleCursorHeightPerLine||(xt.rtop=ke,xt.rbottom=Ye),xt}function ou(e,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!xi(e))return n;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:n.left*u,right:n.right*u,top:n.top*l,bottom:n.bottom*l}}function Ns(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var n=0;n<e.rest.length;n++)e.measure.caches[n]={}}function Gi(e){e.display.externalMeasure=null,ie(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)Ns(e.display.view[n])}function No(e){Gi(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Bo(){return D&&X?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function au(){return D&&X?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Uo(e){var n=0;if(e.widgets)for(var u=0;u<e.widgets.length;++u)e.widgets[u].above&&(n+=Ot(e.widgets[u]));return n}function Ea(e,n,u,l,f){if(!f){var m=Uo(n);u.top+=m,u.bottom+=m}if(l=="line")return u;l||(l="local");var F=si(n);if(l=="local"?F+=Lo(e.display):F-=e.display.viewOffset,l=="page"||l=="window"){var U=e.display.lineSpace.getBoundingClientRect();F+=U.top+(l=="window"?0:au());var H=U.left+(l=="window"?0:Bo());u.left+=H,u.right+=H}return u.top+=F,u.bottom+=F,u}function jo(e,n,u){if(u=="div")return n;var l=n.left,f=n.top;if(u=="page")l-=Bo(),f-=au();else if(u=="local"||!u){var m=e.display.sizer.getBoundingClientRect();l+=m.left,f+=m.top}var F=e.display.lineSpace.getBoundingClientRect();return{left:l-F.left,top:f-F.top}}function Ca(e,n,u,l,f){return l||(l=Tt(e.doc,n.line)),Ea(e,l,Sa(e,l,n.ch,f),u)}function zn(e,n,u,l,f,m){l=l||Tt(e.doc,n.line),f||(f=_n(e,l));function F(Ye,tt){var at=Hn(e,f,Ye,tt?"right":"left",m);return tt?at.left=at.right:at.right=at.left,Ea(e,l,at,u)}var U=O(l,e.doc.direction),H=n.ch,Z=n.sticky;if(H>=l.text.length?(H=l.text.length,Z="before"):H<=0&&(H=0,Z="after"),!U)return F(Z=="before"?H-1:H,Z=="before");function be(Ye,tt,at){var ct=U[tt],gt=ct.level==1;return F(at?Ye-1:Ye,gt!=at)}var Ce=K(U,H,Z),De=Re,ke=be(H,Ce,Z=="before");return De!=null&&(ke.other=be(H,De,Z!="before")),ke}function su(e,n){var u=0;n=lt(e.doc,n),e.options.lineWrapping||(u=Pn(e.display)*n.ch);var l=Tt(e.doc,n.line),f=si(l)+Lo(e.display);return{left:u,right:u,top:f,bottom:f+l.height}}function Bs(e,n,u,l,f){var m=ot(e,n,u);return m.xRel=f,l&&(m.outside=l),m}function Us(e,n,u){var l=e.doc;if(u+=e.display.viewOffset,u<0)return Bs(l.first,0,null,-1,-1);var f=Vn(l,u),m=l.first+l.size-1;if(f>m)return Bs(l.first+l.size-1,Tt(l,m).text.length,null,1,1);n<0&&(n=0);for(var F=Tt(l,f);;){var U=Zf(e,F,f,n,u),H=Wf(F,U.ch+(U.xRel>0||U.outside>0?1:0));if(!H)return U;var Z=H.find(1);if(Z.line==f)return Z;F=Tt(l,f=Z.line)}}function lu(e,n,u,l){l-=Uo(n);var f=n.text.length,m=Ke(function(F){return Hn(e,u,F-1).bottom<=l},f,0);return f=Ke(function(F){return Hn(e,u,F).top>l},m,f),{begin:m,end:f}}function uu(e,n,u,l){u||(u=_n(e,n));var f=Ea(e,n,Hn(e,u,l),"line").top;return lu(e,n,u,f)}function js(e,n,u,l){return e.bottom<=u?!1:e.top>u?!0:(l?e.left:e.right)>n}function Zf(e,n,u,l,f){f-=si(n);var m=_n(e,n),F=Uo(n),U=0,H=n.text.length,Z=!0,be=O(n,e.doc.direction);if(be){var Ce=(e.options.lineWrapping?qf:_f)(e,n,u,m,be,l,f);Z=Ce.level!=1,U=Z?Ce.from:Ce.to-1,H=Z?Ce.to:Ce.from-1}var De=null,ke=null,Ye=Ke(function(Ft){var It=Hn(e,m,Ft);return It.top+=F,It.bottom+=F,js(It,l,f,!1)?(It.top<=f&&It.left<=l&&(De=Ft,ke=It),!0):!1},U,H),tt,at,ct=!1;if(ke){var gt=l-ke.left<ke.right-l,dt=gt==Z;Ye=De+(dt?0:1),at=dt?"after":"before",tt=gt?ke.left:ke.right}else{!Z&&(Ye==H||Ye==U)&&Ye++,at=Ye==0?"after":Ye==n.text.length?"before":Hn(e,m,Ye-(Z?1:0)).bottom+F<=f==Z?"after":"before";var xt=zn(e,ot(u,Ye,at),"line",n,m);tt=xt.left,ct=f<xt.top?-1:f>=xt.bottom?1:0}return Ye=$e(n.text,Ye,1),Bs(u,Ye,at,ct,l-tt)}function _f(e,n,u,l,f,m,F){var U=Ke(function(Ce){var De=f[Ce],ke=De.level!=1;return js(zn(e,ot(u,ke?De.to:De.from,ke?"before":"after"),"line",n,l),m,F,!0)},0,f.length-1),H=f[U];if(U>0){var Z=H.level!=1,be=zn(e,ot(u,Z?H.from:H.to,Z?"after":"before"),"line",n,l);js(be,m,F,!0)&&be.top>F&&(H=f[U-1])}return H}function qf(e,n,u,l,f,m,F){var U=lu(e,n,l,F),H=U.begin,Z=U.end;/\s/.test(n.text.charAt(Z-1))&&Z--;for(var be=null,Ce=null,De=0;De<f.length;De++){var ke=f[De];if(!(ke.from>=Z||ke.to<=H)){var Ye=ke.level!=1,tt=Hn(e,l,Ye?Math.min(Z,ke.to)-1:Math.max(H,ke.from)).right,at=tt<m?m-tt+1e9:tt-m;(!be||Ce>at)&&(be=ke,Ce=at)}}return be||(be=f[f.length-1]),be.from<H&&(be={from:H,to:be.to,level:be.level}),be.to>Z&&(be={from:be.from,to:Z,level:be.level}),be}var $i;function uo(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if($i==null){$i=we("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)$i.appendChild(document.createTextNode("x")),$i.appendChild(we("br"));$i.appendChild(document.createTextNode("x"))}xe(e.measure,$i);var u=$i.offsetHeight/50;return u>3&&(e.cachedTextHeight=u),ie(e.measure),u||1}function Pn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=we("span","xxxxxxxxxx"),u=we("pre",[n],"CodeMirror-line-like");xe(e.measure,u);var l=n.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(e.cachedCharWidth=f),f||10}function Vs(e){for(var n=e.display,u={},l={},f=n.gutters.clientLeft,m=n.gutters.firstChild,F=0;m;m=m.nextSibling,++F){var U=e.display.gutterSpecs[F].className;u[U]=m.offsetLeft+m.clientLeft+f,l[U]=m.clientWidth}return{fixedPos:In(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:n.wrapper.clientWidth}}function In(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function fu(e){var n=uo(e.display),u=e.options.lineWrapping,l=u&&Math.max(5,e.display.scroller.clientWidth/Pn(e.display)-3);return function(f){if(ai(e.doc,f))return 0;var m=0;if(f.widgets)for(var F=0;F<f.widgets.length;F++)f.widgets[F].height&&(m+=f.widgets[F].height);return u?m+(Math.ceil(f.text.length/l)||1)*n:m+n}}function Ws(e){var n=e.doc,u=fu(e);n.iter(function(l){var f=u(l);f!=l.height&&An(l,f)})}function Ki(e,n,u,l){var f=e.display;if(!u&&Pt(n).getAttribute("cm-not-content")=="true")return null;var m,F,U=f.lineSpace.getBoundingClientRect();try{m=n.clientX-U.left,F=n.clientY-U.top}catch(Ce){return null}var H=Us(e,m,F),Z;if(l&&H.xRel>0&&(Z=Tt(e.doc,H.line).text).length==H.ch){var be=Xe(Z,Z.length,e.options.tabSize)-Z.length;H=ot(H.line,Math.max(0,Math.round((m-ln(e.display).left)/Pn(e.display))-be))}return H}function Yi(e,n){if(n>=e.display.viewTo||(n-=e.display.viewFrom,n<0))return null;for(var u=e.display.view,l=0;l<u.length;l++)if(n-=u[l].size,n<0)return l}function Rr(e,n,u,l){n==null&&(n=e.doc.first),u==null&&(u=e.doc.first+e.doc.size),l||(l=0);var f=e.display;if(l&&u<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>n)&&(f.updateLineNumbers=n),e.curOp.viewChanged=!0,n>=f.viewTo)Ai&&Fo(e.doc,n)<f.viewTo&&Ci(e);else if(u<=f.viewFrom)Ai&&Ss(e.doc,u+l)>f.viewFrom?Ci(e):(f.viewFrom+=l,f.viewTo+=l);else if(n<=f.viewFrom&&u>=f.viewTo)Ci(e);else if(n<=f.viewFrom){var m=Oa(e,u,u+l,1);m?(f.view=f.view.slice(m.index),f.viewFrom=m.lineN,f.viewTo+=l):Ci(e)}else if(u>=f.viewTo){var F=Oa(e,n,n,-1);F?(f.view=f.view.slice(0,F.index),f.viewTo=F.lineN):Ci(e)}else{var U=Oa(e,n,n,-1),H=Oa(e,u,u+l,1);U&&H?(f.view=f.view.slice(0,U.index).concat(ba(e,U.lineN,H.lineN)).concat(f.view.slice(H.index)),f.viewTo+=l):Ci(e)}var Z=f.externalMeasured;Z&&(u<Z.lineN?Z.lineN+=l:n<Z.lineN+Z.size&&(f.externalMeasured=null))}function qn(e,n,u){e.curOp.viewChanged=!0;var l=e.display,f=e.display.externalMeasured;if(f&&n>=f.lineN&&n<f.lineN+f.size&&(l.externalMeasured=null),!(n<l.viewFrom||n>=l.viewTo)){var m=l.view[Yi(e,n)];if(m.node!=null){var F=m.changes||(m.changes=[]);ht(F,u)==-1&&F.push(u)}}}function Ci(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Oa(e,n,u,l){var f=Yi(e,n),m,F=e.display.view;if(!Ai||u==e.doc.first+e.doc.size)return{index:f,lineN:u};for(var U=e.display.viewFrom,H=0;H<f;H++)U+=F[H].size;if(U!=n){if(l>0){if(f==F.length-1)return null;m=U+F[f].size-n,f++}else m=U-n;n+=m,u+=m}for(;Fo(e.doc,u)!=u;){if(f==(l<0?0:F.length-1))return null;u+=l*F[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function ec(e,n,u){var l=e.display,f=l.view;f.length==0||n>=l.viewTo||u<=l.viewFrom?(l.view=ba(e,n,u),l.viewFrom=n):(l.viewFrom>n?l.view=ba(e,n,l.viewFrom).concat(l.view):l.viewFrom<n&&(l.view=l.view.slice(Yi(e,n))),l.viewFrom=n,l.viewTo<u?l.view=l.view.concat(ba(e,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Yi(e,u)))),l.viewTo=u}function Ta(e){for(var n=e.display.view,u=0,l=0;l<n.length;l++){var f=n[l];!f.hidden&&(!f.node||f.changes)&&++u}return u}function Oi(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Pa(e,n){n===void 0&&(n=!0);var u=e.doc,l={},f=l.cursors=document.createDocumentFragment(),m=l.selection=document.createDocumentFragment(),F=e.options.$customCursor;F&&(n=!0);for(var U=0;U<u.sel.ranges.length;U++)if(!(!n&&U==u.sel.primIndex)){var H=u.sel.ranges[U];if(!(H.from().line>=e.display.viewTo||H.to().line<e.display.viewFrom)){var Z=H.empty();if(F){var be=F(e,H);be&&Hs(e,be,f)}else(Z||e.options.showCursorWhenSelecting)&&Hs(e,H.head,f);Z||cu(e,H,m)}}return l}function Hs(e,n,u){var l=zn(e,n,"div",null,null,!e.options.singleCursorHeightPerLine),f=u.appendChild(we("div","\xA0","CodeMirror-cursor"));if(f.style.left=l.left+"px",f.style.top=l.top+"px",f.style.height=Math.max(0,l.bottom-l.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var m=Ca(e,n,"div",null,null),F=m.right-m.left;f.style.width=(F>0?F:e.defaultCharWidth())+"px"}if(l.other){var U=u.appendChild(we("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));U.style.display="",U.style.left=l.other.left+"px",U.style.top=l.other.top+"px",U.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Ia(e,n){return e.top-n.top||e.left-n.left}function cu(e,n,u){var l=e.display,f=e.doc,m=document.createDocumentFragment(),F=ln(e.display),U=F.left,H=Math.max(l.sizerWidth,zi(e)-l.sizer.offsetLeft)-F.right,Z=f.direction=="ltr";function be(dt,xt,Ft,It){xt<0&&(xt=0),xt=Math.round(xt),It=Math.round(It),m.appendChild(we("div",null,"CodeMirror-selected","position: absolute; left: "+dt+`px;
|
|
23
23
|
top: `+xt+"px; width: "+(Ft==null?H-dt:Ft)+`px;
|
|
24
|
-
height: `+(It-xt)+"px"))}function Ce(dt,xt,Ft){var It=Tt(f,dt),it=It.text.length,Gt,hr;function vr(Ar,cn){return
|
|
25
|
-
top: `+(n.top-u.viewOffset-
|
|
24
|
+
height: `+(It-xt)+"px"))}function Ce(dt,xt,Ft){var It=Tt(f,dt),it=It.text.length,Gt,hr;function vr(Ar,cn){return Ca(e,ot(dt,Ar),"div",It,cn)}function bn(Ar,cn,Kr){var Fr=uu(e,It,null,Ar),gr=cn=="ltr"==(Kr=="after")?"left":"right",yr=Kr=="after"?Fr.begin:Fr.end-(/\s/.test(It.text.charAt(Fr.end-1))?2:1);return vr(yr,gr)[gr]}var fn=O(It,f.direction);return P(fn,xt||0,Ft==null?it:Ft,function(Ar,cn,Kr,Fr){var gr=Kr=="ltr",yr=vr(Ar,gr?"left":"right"),nn=vr(cn-1,gr?"right":"left"),no=xt==null&&Ar==0,Mi=Ft==null&&cn==it,Qr=Fr==0,$n=!fn||Fr==fn.length-1;if(nn.top-yr.top<=3){var Vr=(Z?no:Mi)&&Qr,io=(Z?Mi:no)&&$n,Er=Vr?U:(gr?yr:nn).left,Eo=io?H:(gr?nn:yr).right;be(Er,yr.top,Eo-Er,yr.bottom)}else{var Kn,on,ua,ff;gr?(Kn=Z&&no&&Qr?U:yr.left,on=Z?H:bn(Ar,Kr,"before"),ua=Z?U:bn(cn,Kr,"after"),ff=Z&&Mi&&$n?H:nn.right):(Kn=Z?bn(Ar,Kr,"before"):U,on=!Z&&no&&Qr?H:yr.right,ua=!Z&&Mi&&$n?U:nn.left,ff=Z?bn(cn,Kr,"after"):H),be(Kn,yr.top,on-Kn,yr.bottom),yr.bottom<nn.top&&be(U,yr.bottom,null,nn.top),be(ua,nn.top,ff-ua,nn.bottom)}(!Gt||Ia(yr,Gt)<0)&&(Gt=yr),Ia(nn,Gt)<0&&(Gt=nn),(!hr||Ia(yr,hr)<0)&&(hr=yr),Ia(nn,hr)<0&&(hr=nn)}),{start:Gt,end:hr}}var De=n.from(),ke=n.to();if(De.line==ke.line)Ce(De.line,De.ch,ke.ch);else{var Ye=Tt(f,De.line),tt=Tt(f,ke.line),at=Wn(Ye)==Wn(tt),ct=Ce(De.line,De.ch,at?Ye.text.length+1:null).end,gt=Ce(ke.line,at?0:null,ke.ch).start;at&&(ct.top<gt.top-2?(be(ct.right,ct.top,null,ct.bottom),be(U,gt.top,gt.left,gt.bottom)):be(ct.right,ct.top,gt.left-ct.right,ct.bottom)),ct.bottom<gt.top&&be(U,ct.bottom,null,gt.top)}u.appendChild(m)}function zs(e){if(!!e.state.focused){var n=e.display;clearInterval(n.blinker);var u=!0;n.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?n.blinker=setInterval(function(){e.hasFocus()||fo(e),n.cursorDiv.style.visibility=(u=!u)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}function Gs(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Fa(e))}function Vo(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&fo(e))},100)}function Fa(e,n){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(oe(e,"focus",e,n),e.state.focused=!0,Le(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),g&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),zs(e))}function fo(e,n){e.state.delayingBlurEvent||(e.state.focused&&(oe(e,"blur",e,n),e.state.focused=!1,ee(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function ka(e){for(var n=e.display,u=n.lineDiv.offsetTop,l=Math.max(0,n.scroller.getBoundingClientRect().top),f=n.lineDiv.getBoundingClientRect().top,m=0,F=0;F<n.view.length;F++){var U=n.view[F],H=e.options.lineWrapping,Z=void 0,be=0;if(!U.hidden){if(f+=U.line.height,b&&S<8){var Ce=U.node.offsetTop+U.node.offsetHeight;Z=Ce-u,u=Ce}else{var De=U.node.getBoundingClientRect();Z=De.bottom-De.top,!H&&U.text.firstChild&&(be=U.text.firstChild.getBoundingClientRect().right-De.left-1)}var ke=U.line.height-Z;if((ke>.005||ke<-.005)&&(f<l&&(m-=ke),An(U.line,Z),$s(U.line),U.rest))for(var Ye=0;Ye<U.rest.length;Ye++)$s(U.rest[Ye]);if(be>e.display.sizerWidth){var tt=Math.ceil(be/Pn(e.display));tt>e.display.maxLineLength&&(e.display.maxLineLength=tt,e.display.maxLine=U.line,e.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(n.scroller.scrollTop+=m)}function $s(e){if(e.widgets)for(var n=0;n<e.widgets.length;++n){var u=e.widgets[n],l=u.node.parentNode;l&&(u.height=l.offsetHeight)}}function Wo(e,n,u){var l=u&&u.top!=null?Math.max(0,u.top):e.scroller.scrollTop;l=Math.floor(l-Lo(e));var f=u&&u.bottom!=null?u.bottom:l+e.wrapper.clientHeight,m=Vn(n,l),F=Vn(n,f);if(u&&u.ensure){var U=u.ensure.from.line,H=u.ensure.to.line;U<m?(m=U,F=Vn(n,si(Tt(n,U))+e.wrapper.clientHeight)):Math.min(H,n.lastLine())>=F&&(m=Vn(n,si(Tt(n,H))-e.wrapper.clientHeight),F=H)}return{from:m,to:Math.max(F,m+1)}}function tc(e,n){if(!pe(e,"scrollCursorIntoView")){var u=e.display,l=u.sizer.getBoundingClientRect(),f=null;if(n.top+l.top<0?f=!0:n.bottom+l.top>(window.innerHeight||document.documentElement.clientHeight)&&(f=!1),f!=null&&!W){var m=we("div","\u200B",null,`position: absolute;
|
|
25
|
+
top: `+(n.top-u.viewOffset-Lo(e.display))+`px;
|
|
26
26
|
height: `+(n.bottom-n.top+ui(e)+u.barHeight)+`px;
|
|
27
|
-
left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(y),y.scrollIntoView(f),e.display.lineSpace.removeChild(y)}}}function cu(e,n,u,l){l==null&&(l=0);var f;!e.options.lineWrapping&&n==u&&(u=n.sticky=="before"?at(n.line,n.ch+1,"before"):n,n=n.ch?at(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var y=0;y<5;y++){var F=!1,U=zn(e,n),H=!u||u==n?U:zn(e,u);f={left:Math.min(U.left,H.left),top:Math.min(U.top,H.top)-l,right:Math.max(U.left,H.left),bottom:Math.max(U.bottom,H.bottom)+l};var Z=Ks(e,f),xe=e.doc.scrollTop,Ce=e.doc.scrollLeft;if(Z.scrollTop!=null&&(Ha(e,Z.scrollTop),Math.abs(e.doc.scrollTop-xe)>1&&(F=!0)),Z.scrollLeft!=null&&(Xi(e,Z.scrollLeft),Math.abs(e.doc.scrollLeft-Ce)>1&&(F=!0)),!F)break}return f}function du(e,n){var u=Ks(e,n);u.scrollTop!=null&&Ha(e,u.scrollTop),u.scrollLeft!=null&&Xi(e,u.scrollLeft)}function Ks(e,n){var u=e.display,l=ua(e.display);n.top<0&&(n.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:u.scroller.scrollTop,y=La(e),F={};n.bottom-n.top>y&&(n.bottom=n.top+y);var U=e.doc.height+ks(u),H=n.top<l,Z=n.bottom>U-l;if(n.top<f)F.scrollTop=H?0:n.top;else if(n.bottom>f+y){var xe=Math.min(n.top,(Z?U:n.bottom)-y);xe!=f&&(F.scrollTop=xe)}var Ce=e.options.fixedGutter?0:u.gutters.offsetWidth,De=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:u.scroller.scrollLeft-Ce,ke=zi(e)-u.gutters.offsetWidth,Ye=n.right-n.left>ke;return Ye&&(n.right=n.left+ke),n.left<10?F.scrollLeft=0:n.left<De?F.scrollLeft=Math.max(0,n.left+Ce-(Ye?0:10)):n.right>ke+De-3&&(F.scrollLeft=n.right+(Ye?0:10)-ke),F}function Ys(e,n){n!=null&&(Ro(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n)}function rn(e){Ro(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function Wa(e,n,u){(n!=null||u!=null)&&Ro(e),n!=null&&(e.curOp.scrollLeft=n),u!=null&&(e.curOp.scrollTop=u)}function Ji(e,n){Ro(e),e.curOp.scrollToPos=n}function Ro(e){var n=e.curOp.scrollToPos;if(n){e.curOp.scrollToPos=null;var u=ou(e,n.from),l=ou(e,n.to);pu(e,u,l,n.margin)}}function pu(e,n,u,l){var f=Ks(e,{left:Math.min(n.left,u.left),top:Math.min(n.top,u.top)-l,right:Math.max(n.right,u.right),bottom:Math.max(n.bottom,u.bottom)+l});Wa(e,f.scrollLeft,f.scrollTop)}function Ha(e,n){Math.abs(e.doc.scrollTop-n)<2||(c||Zs(e,{top:n}),hu(e,n,!0),c&&Zs(e),Gn(e,100))}function hu(e,n,u){n=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,n)),!(e.display.scroller.scrollTop==n&&!u)&&(e.doc.scrollTop=n,e.display.scrollbars.setScrollTop(n),e.display.scroller.scrollTop!=n&&(e.display.scroller.scrollTop=n))}function Xi(e,n,u,l){n=Math.max(0,Math.min(n,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((u?n==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-n)<2)&&!l)&&(e.doc.scrollLeft=n,xu(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n))}function ca(e){var n=e.display,u=n.gutters.offsetWidth,l=Math.round(e.doc.height+ks(e.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:e.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+ui(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:u}}var Qi=function(e,n,u){this.cm=u;var l=this.vert=be("div",[be("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=be("div",[be("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,e(l),e(f),N(l,"scroll",function(){l.clientHeight&&n(l.scrollTop,"vertical")}),N(f,"scroll",function(){f.clientWidth&&n(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&S<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Qi.prototype.update=function(e){var n=e.scrollWidth>e.clientWidth+1,u=e.scrollHeight>e.clientHeight+1,l=e.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=n?l+"px":"0";var f=e.viewHeight-(n?l:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=e.barLeft+"px";var y=e.viewWidth-e.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+y)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:n?l:0}},Qi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Qi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Qi.prototype.zeroWidthHack=function(){var e=C&&!q?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ft,this.disableVert=new ft},Qi.prototype.enableZeroWidthBar=function(e,n,u){e.style.pointerEvents="auto";function l(){var f=e.getBoundingClientRect(),y=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);y!=e?e.style.pointerEvents="none":n.set(1e3,l)}n.set(1e3,l)},Qi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var za=function(){};za.prototype.update=function(){return{bottom:0,right:0}},za.prototype.setScrollLeft=function(){},za.prototype.setScrollTop=function(){},za.prototype.clear=function(){};function fi(e,n){n||(n=ca(e));var u=e.display.barWidth,l=e.display.barHeight;Mo(e,n);for(var f=0;f<4&&u!=e.display.barWidth||l!=e.display.barHeight;f++)u!=e.display.barWidth&&e.options.lineWrapping&&ko(e),Mo(e,ca(e)),u=e.display.barWidth,l=e.display.barHeight}function Mo(e,n){var u=e.display,l=u.scrollbars.update(n);u.sizer.style.paddingRight=(u.barWidth=l.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=l.bottom)+"px",u.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=l.bottom+"px",u.scrollbarFiller.style.width=l.right+"px"):u.scrollbarFiller.style.display="",l.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=n.gutterWidth+"px"):u.gutterFiller.style.display=""}var yn={native:Qi,null:za};function Lo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ee(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new yn[e.options.scrollbarStyle](function(n){e.display.wrapper.insertBefore(n,e.display.scrollbarFiller),N(n,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,u){u=="horizontal"?Xi(e,n):Ha(e,n)},e),e.display.scrollbars.addClass&&Le(e.display.wrapper,e.display.scrollbars.addClass)}var ci=0;function Ti(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ci,markArrays:null},_l(e.curOp)}function Pi(e){var n=e.curOp;n&&Is(n,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;Rd(u)})}function Rd(e){for(var n=e.ops,u=0;u<n.length;u++)Js(n[u]);for(var l=0;l<n.length;l++)vu(n[l]);for(var f=0;f<n.length;f++)gu(n[f]);for(var y=0;y<n.length;y++)Ir(n[y]);for(var F=0;F<n.length;F++)rc(n[F])}function Js(e){var n=e.cm,u=n.display;yu(n),e.updateMaxLine&&As(n),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<u.viewFrom||e.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new Zi(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function vu(e){e.updatedDisplay=e.mustUpdate&&Qs(e.cm,e.update)}function gu(e){var n=e.cm,u=n.display;e.updatedDisplay&&ko(n),e.barMeasure=ca(n),u.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=So(n,u.maxLine,u.maxLine.text.length).left+3,n.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+e.adjustWidthTo+ui(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+e.adjustWidthTo-zi(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=u.input.prepareSelection())}function Ir(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<n.doc.scrollLeft&&Xi(n,Math.min(n.display.scroller.scrollLeft,e.maxScrollLeft),!0),n.display.maxLineChanged=!1);var u=e.focus&&e.focus==Fe();e.preparedSelection&&n.display.input.showSelection(e.preparedSelection,u),(e.updatedDisplay||e.startHeight!=n.doc.height)&&fi(n,e.barMeasure),e.updatedDisplay&&qs(n,e.barMeasure),e.selectionChanged&&zs(n),n.state.focused&&e.updateInput&&n.display.input.reset(e.typing),u&&Gs(e.cm)}function rc(e){var n=e.cm,u=n.display,l=n.doc;if(e.updatedDisplay&&mu(n,e.update),u.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),e.scrollTop!=null&&hu(n,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Xi(n,e.scrollLeft,!0,!0),e.scrollToPos){var f=cu(n,lt(l,e.scrollToPos.from),lt(l,e.scrollToPos.to),e.scrollToPos.margin);tc(n,f)}var y=e.maybeHiddenMarkers,F=e.maybeUnhiddenMarkers;if(y)for(var U=0;U<y.length;++U)y[U].lines.length||ae(y[U],"hide");if(F)for(var H=0;H<F.length;++H)F[H].lines.length&&ae(F[H],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=n.display.scroller.scrollTop),e.changeObjs&&ae(n,"changes",n,e.changeObjs),e.update&&e.update.finish()}function Br(e,n){if(e.curOp)return n();Ti(e);try{return n()}finally{Pi(e)}}function Ur(e,n){return function(){if(e.curOp)return n.apply(e,arguments);Ti(e);try{return n.apply(e,arguments)}finally{Pi(e)}}}function Mr(e){return function(){if(this.curOp)return e.apply(this,arguments);Ti(this);try{return e.apply(this,arguments)}finally{Pi(this)}}}function cr(e){return function(){var n=this.cm;if(!n||n.curOp)return e.apply(this,arguments);Ti(n);try{return e.apply(this,arguments)}finally{Pi(n)}}}function Gn(e,n){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(n,rt(nc,e))}function nc(e){var n=e.doc;if(!(n.highlightFrontier>=e.display.viewTo)){var u=+new Date+e.options.workTime,l=en(e,n.highlightFrontier),f=[];n.iter(l.line,Math.min(n.first+n.size,e.display.viewTo+500),function(y){if(l.line>=e.display.viewFrom){var F=y.styles,U=y.text.length>e.options.maxHighlightLength?Nr(n.mode,l.state):null,H=_t(e,y,l,!0);U&&(l.state=U),y.styles=H.styles;var Z=y.styleClasses,xe=H.classes;xe?y.styleClasses=xe:Z&&(y.styleClasses=null);for(var Ce=!F||F.length!=y.styles.length||Z!=xe&&(!Z||!xe||Z.bgClass!=xe.bgClass||Z.textClass!=xe.textClass),De=0;!Ce&&De<F.length;++De)Ce=F[De]!=y.styles[De];Ce&&f.push(l.line),y.stateAfter=l.save(),l.nextLine()}else y.text.length<=e.options.maxHighlightLength&&vs(e,y.text,l),y.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return Gn(e,e.options.workDelay),!0}),n.highlightFrontier=l.line,n.modeFrontier=Math.max(n.modeFrontier,l.line),f.length&&Br(e,function(){for(var y=0;y<f.length;y++)qn(e,f[y],"text")})}}var Zi=function(e,n,u){var l=e.display;this.viewport=n,this.visible=Va(l,e.doc,n),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=zi(e),this.force=u,this.dims=Vs(e),this.events=[]};Zi.prototype.signal=function(e,n){Be(e,n)&&this.events.push(arguments)},Zi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ae.apply(null,this.events[e])};function yu(e){var n=e.display;!n.scrollbarsClipped&&n.scroller.offsetWidth&&(n.nativeBarWidth=n.scroller.offsetWidth-n.scroller.clientWidth,n.heightForcer.style.height=ui(e)+"px",n.sizer.style.marginBottom=-n.nativeBarWidth+"px",n.sizer.style.borderRightWidth=ui(e)+"px",n.scrollbarsClipped=!0)}function Ga(e){if(e.hasFocus())return null;var n=Fe();if(!n||!oe(e.display.lineDiv,n))return null;var u={activeElt:n};if(window.getSelection){var l=window.getSelection();l.anchorNode&&l.extend&&oe(e.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function Xs(e){if(!(!e||!e.activeElt||e.activeElt==Fe())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&oe(document.body,e.anchorNode)&&oe(document.body,e.focusNode))){var n=window.getSelection(),u=document.createRange();u.setEnd(e.anchorNode,e.anchorOffset),u.collapse(!1),n.removeAllRanges(),n.addRange(u),n.extend(e.focusNode,e.focusOffset)}}function Qs(e,n){var u=e.display,l=e.doc;if(n.editorIsHidden)return Ci(e),!1;if(!n.force&&n.visible.from>=u.viewFrom&&n.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&To(e)==0)return!1;Do(e)&&(Ci(e),n.dims=Vs(e));var f=l.first+l.size,y=Math.max(n.visible.from-e.options.viewportMargin,l.first),F=Math.min(f,n.visible.to+e.options.viewportMargin);u.viewFrom<y&&y-u.viewFrom<20&&(y=Math.max(l.first,u.viewFrom)),u.viewTo>F&&u.viewTo-F<20&&(F=Math.min(f,u.viewTo)),Ai&&(y=Ia(e.doc,y),F=Ss(e.doc,F));var U=y!=u.viewFrom||F!=u.viewTo||u.lastWrapHeight!=n.wrapperHeight||u.lastWrapWidth!=n.wrapperWidth;ec(e,y,F),u.viewOffset=si(Tt(e.doc,u.viewFrom)),e.display.mover.style.top=u.viewOffset+"px";var H=To(e);if(!U&&H==0&&!n.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var Z=Ga(e);return H>4&&(u.lineDiv.style.display="none"),ic(e,u.updateLineNumbers,n.dims),H>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Xs(Z),ie(u.cursorDiv),ie(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,U&&(u.lastWrapHeight=n.wrapperHeight,u.lastWrapWidth=n.wrapperWidth,Gn(e,400)),u.updateLineNumbers=null,!0}function mu(e,n){for(var u=n.viewport,l=!0;;l=!1){if(!l||!e.options.lineWrapping||n.oldDisplayWidth==zi(e)){if(u&&u.top!=null&&(u={top:Math.min(e.doc.height+ks(e.display)-La(e),u.top)}),n.visible=Va(e.display,e.doc,u),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else l&&(n.visible=Va(e.display,e.doc,u));if(!Qs(e,n))break;ko(e);var f=ca(e);Oi(e),fi(e,f),qs(e,f),n.force=!1}n.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(n.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Zs(e,n){var u=new Zi(e,n);if(Qs(e,u)){ko(e),mu(e,u);var l=ca(e);Oi(e),fi(e,l),qs(e,l),u.finish()}}function ic(e,n,u){var l=e.display,f=e.options.lineNumbers,y=l.lineDiv,F=y.firstChild;function U(Ye){var tt=Ye.nextSibling;return g&&C&&e.display.currentWheelTarget==Ye?Ye.style.display="none":Ye.parentNode.removeChild(Ye),tt}for(var H=l.view,Z=l.viewFrom,xe=0;xe<H.length;xe++){var Ce=H[xe];if(!Ce.hidden)if(!Ce.node||Ce.node.parentNode!=y){var De=qt(e,Ce,Z,u);y.insertBefore(De,F)}else{for(;F!=Ce.node;)F=U(F);var ke=f&&n!=null&&n<=Z&&Ce.lineNumber;Ce.changes&&(ht(Ce.changes,"gutter")>-1&&(ke=!1),wo(e,Ce,Z,u)),ke&&(ie(Ce.lineNumber),Ce.lineNumber.appendChild(document.createTextNode(la(e.options,Z)))),F=Ce.node.nextSibling}Z+=Ce.size}for(;F;)F=U(F)}function _s(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px",ir(e,"gutterChanged",e)}function qs(e,n){e.display.sizer.style.minHeight=n.docHeight+"px",e.display.heightForcer.style.top=n.docHeight+"px",e.display.gutters.style.height=n.docHeight+e.display.barHeight+ui(e)+"px"}function xu(e){var n=e.display,u=n.view;if(!(!n.alignWidgets&&(!n.gutters.firstChild||!e.options.fixedGutter))){for(var l=In(n)-n.scroller.scrollLeft+e.doc.scrollLeft,f=n.gutters.offsetWidth,y=l+"px",F=0;F<u.length;F++)if(!u[F].hidden){e.options.fixedGutter&&(u[F].gutter&&(u[F].gutter.style.left=y),u[F].gutterBackground&&(u[F].gutterBackground.style.left=y));var U=u[F].alignable;if(U)for(var H=0;H<U.length;H++)U[H].style.left=y}e.options.fixedGutter&&(n.gutters.style.left=l+f+"px")}}function Do(e){if(!e.options.lineNumbers)return!1;var n=e.doc,u=la(e.options,n.first+n.size-1),l=e.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(be("div",[be("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),y=f.firstChild.offsetWidth,F=f.offsetWidth-y;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(y,l.lineGutter.offsetWidth-F)+1,l.lineNumWidth=l.lineNumInnerWidth+F,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",_s(e.display),!0}return!1}function $a(e,n){for(var u=[],l=!1,f=0;f<e.length;f++){var y=e[f],F=null;if(typeof y!="string"&&(F=y.style,y=y.className),y=="CodeMirror-linenumbers")if(n)l=!0;else continue;u.push({className:y,style:F})}return n&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function bu(e){var n=e.gutters,u=e.gutterSpecs;ie(n),e.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],y=f.className,F=f.style,U=n.appendChild(be("div",null,"CodeMirror-gutter "+y));F&&(U.style.cssText=F),y=="CodeMirror-linenumbers"&&(e.lineGutter=U,U.style.width=(e.lineNumWidth||1)+"px")}n.style.display=u.length?"":"none",_s(e)}function No(e){bu(e.display),Rr(e),xu(e)}function ac(e,n,u,l){var f=this;this.input=u,f.scrollbarFiller=be("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=be("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=he("div",null,"CodeMirror-code"),f.selectionDiv=be("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=be("div",null,"CodeMirror-cursors"),f.measure=be("div",null,"CodeMirror-measure"),f.lineMeasure=be("div",null,"CodeMirror-measure"),f.lineSpace=he("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var y=he("div",[f.lineSpace],"CodeMirror-lines");f.mover=be("div",[y],null,"position: relative"),f.sizer=be("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=be("div",null,null,"position: absolute; height: "+bt+"px; width: 1px;"),f.gutters=be("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=be("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=be("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),f.wrapper.setAttribute("translate","no"),b&&S<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!g&&!(c&&M)&&(f.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(f.wrapper):e(f.wrapper)),f.viewFrom=f.viewTo=n.first,f.reportedViewFrom=f.reportedViewTo=n.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=$a(l.gutters,l.lineNumbers),bu(f),u.init(f)}var Bo=0,di=null;b?di=-.53:c?di=15:D?di=-.7:j&&(di=-1/3);function wu(e){var n=e.wheelDeltaX,u=e.wheelDeltaY;return n==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(n=e.detail),u==null&&e.detail&&e.axis==e.VERTICAL_AXIS?u=e.detail:u==null&&(u=e.wheelDelta),{x:n,y:u}}function rr(e){var n=wu(e);return n.x*=di,n.y*=di,n}function Su(e,n){var u=wu(n),l=u.x,f=u.y,y=di;n.deltaMode===0&&(l=n.deltaX,f=n.deltaY,y=1);var F=e.display,U=F.scroller,H=U.scrollWidth>U.clientWidth,Z=U.scrollHeight>U.clientHeight;if(!!(l&&H||f&&Z)){if(f&&C&&g){e:for(var xe=n.target,Ce=F.view;xe!=U;xe=xe.parentNode)for(var De=0;De<Ce.length;De++)if(Ce[De].node==xe){e.display.currentWheelTarget=xe;break e}}if(l&&!c&&!B&&y!=null){f&&Z&&Ha(e,Math.max(0,U.scrollTop+f*y)),Xi(e,Math.max(0,U.scrollLeft+l*y)),(!f||f&&Z)&&Qe(n),F.wheelStartX=null;return}if(f&&y!=null){var ke=f*y,Ye=e.doc.scrollTop,tt=Ye+F.wrapper.clientHeight;ke<0?Ye=Math.max(0,Ye+ke-50):tt=Math.min(e.doc.height,tt+ke+50),Zs(e,{top:Ye,bottom:tt})}Bo<20&&n.deltaMode!==0&&(F.wheelStartX==null?(F.wheelStartX=U.scrollLeft,F.wheelStartY=U.scrollTop,F.wheelDX=l,F.wheelDY=f,setTimeout(function(){if(F.wheelStartX!=null){var ot=U.scrollLeft-F.wheelStartX,ct=U.scrollTop-F.wheelStartY,gt=ct&&F.wheelDY&&ct/F.wheelDY||ot&&F.wheelDX&&ot/F.wheelDX;F.wheelStartX=F.wheelStartY=null,!!gt&&(di=(di*Bo+gt)/(Bo+1),++Bo)}},200)):(F.wheelDX+=l,F.wheelDY+=f))}}var mn=function(e,n){this.ranges=e,this.primIndex=n};mn.prototype.primary=function(){return this.ranges[this.primIndex]},mn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var u=this.ranges[n],l=e.ranges[n];if(!ai(u.anchor,l.anchor)||!ai(u.head,l.head))return!1}return!0},mn.prototype.deepCopy=function(){for(var e=[],n=0;n<this.ranges.length;n++)e[n]=new er(le(this.ranges[n].anchor),le(this.ranges[n].head));return new mn(e,this.primIndex)},mn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},mn.prototype.contains=function(e,n){n||(n=e);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(Lt(n,l.from())>=0&&Lt(e,l.to())<=0)return u}return-1};var er=function(e,n){this.anchor=e,this.head=n};er.prototype.from=function(){return qe(this.anchor,this.head)},er.prototype.to=function(){return Oe(this.anchor,this.head)},er.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function En(e,n,u){var l=e&&e.options.selectionsMayTouch,f=n[u];n.sort(function(De,ke){return Lt(De.from(),ke.from())}),u=ht(n,f);for(var y=1;y<n.length;y++){var F=n[y],U=n[y-1],H=Lt(U.to(),F.from());if(l&&!F.empty()?H>0:H>=0){var Z=qe(U.from(),F.from()),xe=Oe(U.to(),F.to()),Ce=U.empty()?F.from()==F.head:U.from()==U.head;y<=u&&--u,n.splice(--y,2,new er(Ce?xe:Z,Ce?Z:xe))}}return new mn(n,u)}function Ii(e,n){return new mn([new er(e,n||e)],0)}function Fi(e){return e.text?at(e.from.line+e.text.length-1,Ct(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Au(e,n){if(Lt(e,n.from)<0)return e;if(Lt(e,n.to)<=0)return Fi(n);var u=e.line+n.text.length-(n.to.line-n.from.line)-1,l=e.ch;return e.line==n.to.line&&(l+=Fi(n).ch-n.to.ch),at(u,l)}function el(e,n){for(var u=[],l=0;l<e.sel.ranges.length;l++){var f=e.sel.ranges[l];u.push(new er(Au(f.anchor,n),Au(f.head,n)))}return En(e.cm,u,e.sel.primIndex)}function Eu(e,n,u){return e.line==n.line?at(u.line,e.ch-n.ch+u.ch):at(u.line+(e.line-n.line),e.ch)}function oc(e,n,u){for(var l=[],f=at(e.first,0),y=f,F=0;F<n.length;F++){var U=n[F],H=Eu(U.from,f,y),Z=Eu(Fi(U),f,y);if(f=U.to,y=Z,u=="around"){var xe=e.sel.ranges[F],Ce=Lt(xe.head,xe.anchor)<0;l[F]=new er(Ce?Z:H,Ce?H:Z)}else l[F]=new er(H,H)}return new mn(l,e.sel.primIndex)}function Uo(e){e.doc.mode=gn(e.options,e.doc.modeOption),_i(e)}function _i(e){e.doc.iter(function(n){n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Gn(e,100),e.state.modeGen++,e.curOp&&Rr(e)}function jo(e,n){return n.from.ch==0&&n.to.ch==0&&Ct(n.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function tl(e,n,u,l){function f(gt){return u?u[gt]:null}function y(gt,dt,xt){Ei(gt,dt,xt,l),ir(gt,"change",gt,n)}function F(gt,dt){for(var xt=[],Ft=gt;Ft<dt;++Ft)xt.push(new Vi(Z[Ft],f(Ft),l));return xt}var U=n.from,H=n.to,Z=n.text,xe=Tt(e,U.line),Ce=Tt(e,H.line),De=Ct(Z),ke=f(Z.length-1),Ye=H.line-U.line;if(n.full)e.insert(0,F(0,Z.length)),e.remove(Z.length,e.size-Z.length);else if(jo(e,n)){var tt=F(0,Z.length-1);y(Ce,Ce.text,ke),Ye&&e.remove(U.line,Ye),tt.length&&e.insert(U.line,tt)}else if(xe==Ce)if(Z.length==1)y(xe,xe.text.slice(0,U.ch)+De+xe.text.slice(H.ch),ke);else{var ot=F(1,Z.length-1);ot.push(new Vi(De+xe.text.slice(H.ch),ke,l)),y(xe,xe.text.slice(0,U.ch)+Z[0],f(0)),e.insert(U.line+1,ot)}else if(Z.length==1)y(xe,xe.text.slice(0,U.ch)+Z[0]+Ce.text.slice(H.ch),f(0)),e.remove(U.line+1,Ye);else{y(xe,xe.text.slice(0,U.ch)+Z[0],f(0)),y(Ce,De+Ce.text.slice(H.ch),ke);var ct=F(1,Z.length-1);Ye>1&&e.remove(U.line+1,Ye-1),e.insert(U.line+1,ct)}ir(e,"change",e,n)}function ki(e,n,u){function l(f,y,F){if(f.linked)for(var U=0;U<f.linked.length;++U){var H=f.linked[U];if(H.doc!=y){var Z=F&&H.sharedHist;u&&!Z||(n(H.doc,Z),l(H.doc,f,Z))}}}l(e,null,!0)}function Cu(e,n){if(n.cm)throw new Error("This document is already in use.");e.doc=n,n.cm=e,Ws(e),Uo(e),rl(e),e.options.direction=n.direction,e.options.lineWrapping||As(e),e.options.mode=n.modeOption,Rr(e)}function rl(e){(e.doc.direction=="rtl"?Le:ee)(e.display.lineDiv,"CodeMirror-rtl")}function Ka(e){Br(e,function(){rl(e),Rr(e)})}function Ya(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function ei(e,n){var u={from:le(n.from),to:Fi(n),text:ii(e,n.from,n.to)};return Xa(e,u,n.from.line,n.to.line+1),ki(e,function(l){return Xa(l,u,n.from.line,n.to.line+1)},!0),u}function Ou(e){for(;e.length;){var n=Ct(e);if(n.ranges)e.pop();else break}}function Tu(e,n){if(n)return Ou(e.done),Ct(e.done);if(e.done.length&&!Ct(e.done).ranges)return Ct(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Ct(e.done)}function Pu(e,n,u,l){var f=e.history;f.undone.length=0;var y=+new Date,F,U;if((f.lastOp==l||f.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&f.lastModTime>y-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(F=Tu(f,f.lastOp==l)))U=Ct(F.changes),Lt(n.from,n.to)==0&&Lt(n.from,U.to)==0?U.to=Fi(n):F.changes.push(ei(e,n));else{var H=Ct(f.done);for((!H||!H.ranges)&&Ja(e.sel,f.done),F={changes:[ei(e,n)],generation:f.generation},f.done.push(F);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=y,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=n.origin,U||ae(e,"historyAdded")}function Iu(e,n,u,l){var f=n.charAt(0);return f=="*"||f=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function sc(e,n,u,l){var f=e.history,y=l&&l.origin;u==f.lastSelOp||y&&f.lastSelOrigin==y&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==y||Iu(e,y,Ct(f.done),n))?f.done[f.done.length-1]=n:Ja(n,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=y,f.lastSelOp=u,l&&l.clearRedo!==!1&&Ou(f.undone)}function Ja(e,n){var u=Ct(n);u&&u.ranges&&u.equals(e)||n.push(e)}function Xa(e,n,u,l){var f=n["spans_"+e.id],y=0;e.iter(Math.max(e.first,u),Math.min(e.first+e.size,l),function(F){F.markedSpans&&((f||(f=n["spans_"+e.id]={}))[y]=F.markedSpans),++y})}function lc(e){if(!e)return null;for(var n,u=0;u<e.length;++u)e[u].marker.explicitlyCleared?n||(n=e.slice(0,u)):n&&n.push(e[u]);return n?n.length?n:null:e}function Vo(e,n){var u=n["spans_"+e.id];if(!u)return null;for(var l=[],f=0;f<n.text.length;++f)l.push(lc(u[f]));return l}function Wo(e,n){var u=Vo(e,n),l=Gl(e,n);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var y=u[f],F=l[f];if(y&&F){e:for(var U=0;U<F.length;++U){for(var H=F[U],Z=0;Z<y.length;++Z)if(y[Z].marker==H.marker)continue e;y.push(H)}}else F&&(u[f]=F)}return u}function da(e,n,u){for(var l=[],f=0;f<e.length;++f){var y=e[f];if(y.ranges){l.push(u?mn.prototype.deepCopy.call(y):y);continue}var F=y.changes,U=[];l.push({changes:U});for(var H=0;H<F.length;++H){var Z=F[H],xe=void 0;if(U.push({from:Z.from,to:Z.to,text:Z.text}),n)for(var Ce in Z)(xe=Ce.match(/^spans_(\d+)$/))&&ht(n,Number(xe[1]))>-1&&(Ct(U)[Ce]=Z[Ce],delete Z[Ce])}}return l}function nl(e,n,u,l){if(l){var f=e.anchor;if(u){var y=Lt(n,f)<0;y!=Lt(u,f)<0?(f=n,n=u):y!=Lt(n,u)<0&&(n=u)}return new er(f,n)}else return new er(u||n,n)}function Ho(e,n,u,l,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),Jr(e,new mn([nl(e.sel.primary(),n,u,f)],0),l)}function Fu(e,n,u){for(var l=[],f=e.cm&&(e.cm.display.shift||e.extend),y=0;y<e.sel.ranges.length;y++)l[y]=nl(e.sel.ranges[y],n[y],null,f);var F=En(e.cm,l,e.sel.primIndex);Jr(e,F,u)}function zo(e,n,u,l){var f=e.sel.ranges.slice(0);f[n]=u,Jr(e,En(e.cm,f,e.sel.primIndex),l)}function il(e,n,u,l){Jr(e,Ii(n,u),l)}function uc(e,n,u){var l={ranges:n.ranges,update:function(f){this.ranges=[];for(var y=0;y<f.length;y++)this.ranges[y]=new er(lt(e,f[y].anchor),lt(e,f[y].head))},origin:u&&u.origin};return ae(e,"beforeSelectionChange",e,l),e.cm&&ae(e.cm,"beforeSelectionChange",e.cm,l),l.ranges!=n.ranges?En(e.cm,l.ranges,l.ranges.length-1):n}function ku(e,n,u){var l=e.history.done,f=Ct(l);f&&f.ranges?(l[l.length-1]=n,Go(e,n,u)):Jr(e,n,u)}function Jr(e,n,u){Go(e,n,u),sc(e,e.sel,e.cm?e.cm.curOp.id:NaN,u)}function Go(e,n,u){(Be(e,"beforeSelectionChange")||e.cm&&Be(e.cm,"beforeSelectionChange"))&&(n=uc(e,n,u));var l=u&&u.bias||(Lt(n.primary().head,e.sel.primary().head)<0?-1:1);Ru(e,Lu(e,n,l,!0)),!(u&&u.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&rn(e.cm)}function Ru(e,n){n.equals(e.sel)||(e.sel=n,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ae(e.cm)),ir(e,"cursorActivity",e))}function Mu(e){Ru(e,Lu(e,e.sel,null,!1))}function Lu(e,n,u,l){for(var f,y=0;y<n.ranges.length;y++){var F=n.ranges[y],U=n.ranges.length==e.sel.ranges.length&&e.sel.ranges[y],H=Qa(e,F.anchor,U&&U.anchor,u,l),Z=Qa(e,F.head,U&&U.head,u,l);(f||H!=F.anchor||Z!=F.head)&&(f||(f=n.ranges.slice(0,y)),f[y]=new er(H,Z))}return f?En(e.cm,f,n.primIndex):n}function pa(e,n,u,l,f){var y=Tt(e,n.line);if(y.markedSpans)for(var F=0;F<y.markedSpans.length;++F){var U=y.markedSpans[F],H=U.marker,Z="selectLeft"in H?!H.selectLeft:H.inclusiveLeft,xe="selectRight"in H?!H.selectRight:H.inclusiveRight;if((U.from==null||(Z?U.from<=n.ch:U.from<n.ch))&&(U.to==null||(xe?U.to>=n.ch:U.to>n.ch))){if(f&&(ae(H,"beforeCursorEnter"),H.explicitlyCleared))if(y.markedSpans){--F;continue}else break;if(!H.atomic)continue;if(u){var Ce=H.find(l<0?1:-1),De=void 0;if((l<0?xe:Z)&&(Ce=Du(e,Ce,-l,Ce&&Ce.line==n.line?y:null)),Ce&&Ce.line==n.line&&(De=Lt(Ce,u))&&(l<0?De<0:De>0))return pa(e,Ce,n,l,f)}var ke=H.find(l<0?-1:1);return(l<0?Z:xe)&&(ke=Du(e,ke,l,ke.line==n.line?y:null)),ke?pa(e,ke,n,l,f):null}}return n}function Qa(e,n,u,l,f){var y=l||1,F=pa(e,n,u,y,f)||!f&&pa(e,n,u,y,!0)||pa(e,n,u,-y,f)||!f&&pa(e,n,u,-y,!0);return F||(e.cantEdit=!0,at(e.first,0))}function Du(e,n,u,l){return u<0&&n.ch==0?n.line>e.first?lt(e,at(n.line-1)):null:u>0&&n.ch==(l||Tt(e,n.line)).text.length?n.line<e.first+e.size-1?at(n.line+1,0):null:new at(n.line,n.ch+u)}function $o(e){e.setSelection(at(e.firstLine(),0),at(e.lastLine()),ut)}function al(e,n,u){var l={canceled:!1,from:n.from,to:n.to,text:n.text,origin:n.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,y,F,U){f&&(l.from=lt(e,f)),y&&(l.to=lt(e,y)),F&&(l.text=F),U!==void 0&&(l.origin=U)}),ae(e,"beforeChange",e,l),e.cm&&ae(e.cm,"beforeChange",e.cm,l),l.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function ha(e,n,u){if(e.cm){if(!e.cm.curOp)return Ur(e.cm,ha)(e,n,u);if(e.cm.state.suppressEdits)return}if(!((Be(e,"beforeChange")||e.cm&&Be(e.cm,"beforeChange"))&&(n=al(e,n,!0),!n))){var l=Nf&&!u&&Kl(e,n.from,n.to);if(l)for(var f=l.length-1;f>=0;--f)qi(e,{from:l[f].from,to:l[f].to,text:f?[""]:n.text,origin:n.origin});else qi(e,n)}}function qi(e,n){if(!(n.text.length==1&&n.text[0]==""&&Lt(n.from,n.to)==0)){var u=el(e,n);Pu(e,n,u,e.cm?e.cm.curOp.id:NaN),Za(e,n,u,Gl(e,n));var l=[];ki(e,function(f,y){!y&&ht(l,f.history)==-1&&(ll(f.history,n),l.push(f.history)),Za(f,n,null,Gl(f,n))})}}function Fn(e,n,u){var l=e.cm&&e.cm.state.suppressEdits;if(!(l&&!u)){for(var f=e.history,y,F=e.sel,U=n=="undo"?f.done:f.undone,H=n=="undo"?f.undone:f.done,Z=0;Z<U.length&&(y=U[Z],!(u?y.ranges&&!y.equals(e.sel):!y.ranges));Z++);if(Z!=U.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(y=U.pop(),y.ranges){if(Ja(y,H),u&&!y.equals(e.sel)){Jr(e,y,{clearRedo:!1});return}F=y}else if(l){U.push(y);return}else break;var xe=[];Ja(F,H),H.push({changes:xe,generation:f.generation}),f.generation=y.generation||++f.maxGeneration;for(var Ce=Be(e,"beforeChange")||e.cm&&Be(e.cm,"beforeChange"),De=function(tt){var ot=y.changes[tt];if(ot.origin=n,Ce&&!al(e,ot,!1))return U.length=0,{};xe.push(ei(e,ot));var ct=tt?el(e,ot):Ct(U);Za(e,ot,ct,Wo(e,ot)),!tt&&e.cm&&e.cm.scrollIntoView({from:ot.from,to:Fi(ot)});var gt=[];ki(e,function(dt,xt){!xt&&ht(gt,dt.history)==-1&&(ll(dt.history,ot),gt.push(dt.history)),Za(dt,ot,null,Wo(dt,ot))})},ke=y.changes.length-1;ke>=0;--ke){var Ye=De(ke);if(Ye)return Ye.v}}}}function ol(e,n){if(n!=0&&(e.first+=n,e.sel=new mn(Wt(e.sel.ranges,function(f){return new er(at(f.anchor.line+n,f.anchor.ch),at(f.head.line+n,f.head.ch))}),e.sel.primIndex),e.cm)){Rr(e.cm,e.first,e.first-n,n);for(var u=e.cm.display,l=u.viewFrom;l<u.viewTo;l++)qn(e.cm,l,"gutter")}}function Za(e,n,u,l){if(e.cm&&!e.cm.curOp)return Ur(e.cm,Za)(e,n,u,l);if(n.to.line<e.first){ol(e,n.text.length-1-(n.to.line-n.from.line));return}if(!(n.from.line>e.lastLine())){if(n.from.line<e.first){var f=n.text.length-1-(e.first-n.from.line);ol(e,f),n={from:at(e.first,0),to:at(n.to.line+f,n.to.ch),text:[Ct(n.text)],origin:n.origin}}var y=e.lastLine();n.to.line>y&&(n={from:n.from,to:at(y,Tt(e,y).text.length),text:[n.text[0]],origin:n.origin}),n.removed=ii(e,n.from,n.to),u||(u=el(e,n)),e.cm?fc(e.cm,n,l):tl(e,n,l),Go(e,u,ut),e.cantEdit&&Qa(e,at(e.firstLine(),0))&&(e.cantEdit=!1)}}function fc(e,n,u){var l=e.doc,f=e.display,y=n.from,F=n.to,U=!1,H=y.line;e.options.lineWrapping||(H=Zt(Wn(Tt(l,y.line))),l.iter(H,F.line+1,function(ke){if(ke==f.maxLine)return U=!0,!0})),l.sel.contains(n.from,n.to)>-1&&Ae(e),tl(l,n,u,uu(e)),e.options.lineWrapping||(l.iter(H,y.line+n.text.length,function(ke){var Ye=ji(ke);Ye>f.maxLineLength&&(f.maxLine=ke,f.maxLineLength=Ye,f.maxLineChanged=!0,U=!1)}),U&&(e.curOp.updateMaxLine=!0)),Df(l,y.line),Gn(e,400);var Z=n.text.length-(F.line-y.line)-1;n.full?Rr(e):y.line==F.line&&n.text.length==1&&!jo(e.doc,n)?qn(e,y.line,"text"):Rr(e,y.line,F.line+1,Z);var xe=Be(e,"changes"),Ce=Be(e,"change");if(Ce||xe){var De={from:y,to:F,text:n.text,removed:n.removed,origin:n.origin};Ce&&ir(e,"change",e,De),xe&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(De)}e.display.selForContextMenu=null}function va(e,n,u,l,f){var y;l||(l=u),Lt(l,u)<0&&(y=[l,u],u=y[0],l=y[1]),typeof n=="string"&&(n=e.splitLines(n)),ha(e,{from:u,to:l,text:n,origin:f})}function sl(e,n,u,l){u<e.line?e.line+=l:n<e.line&&(e.line=n,e.ch=0)}function Nu(e,n,u,l){for(var f=0;f<e.length;++f){var y=e[f],F=!0;if(y.ranges){y.copied||(y=e[f]=y.deepCopy(),y.copied=!0);for(var U=0;U<y.ranges.length;U++)sl(y.ranges[U].anchor,n,u,l),sl(y.ranges[U].head,n,u,l);continue}for(var H=0;H<y.changes.length;++H){var Z=y.changes[H];if(u<Z.from.line)Z.from=at(Z.from.line+l,Z.from.ch),Z.to=at(Z.to.line+l,Z.to.ch);else if(n<=Z.to.line){F=!1;break}}F||(e.splice(0,f+1),f=0)}}function ll(e,n){var u=n.from.line,l=n.to.line,f=n.text.length-(l-u)-1;Nu(e.done,u,l,f),Nu(e.undone,u,l,f)}function ea(e,n,u,l){var f=n,y=n;return typeof n=="number"?y=Tt(e,st(e,n)):f=Zt(n),f==null?null:(l(y,f)&&e.cm&&qn(e.cm,f,u),y)}function ga(e){this.lines=e,this.parent=null;for(var n=0,u=0;u<e.length;++u)e[u].parent=this,n+=e[u].height;this.height=n}ga.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,n){for(var u=e,l=e+n;u<l;++u){var f=this.lines[u];this.height-=f.height,Wi(f),ir(f,"delete")}this.lines.splice(e,n)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,n,u){this.height+=u,this.lines=this.lines.slice(0,e).concat(n).concat(this.lines.slice(e));for(var l=0;l<n.length;++l)n[l].parent=this},iterN:function(e,n,u){for(var l=e+n;e<l;++e)if(u(this.lines[e]))return!0}};function ya(e){this.children=e;for(var n=0,u=0,l=0;l<e.length;++l){var f=e[l];n+=f.chunkSize(),u+=f.height,f.parent=this}this.size=n,this.height=u,this.parent=null}ya.prototype={chunkSize:function(){return this.size},removeInner:function(e,n){this.size-=n;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(e<f){var y=Math.min(n,f-e),F=l.height;if(l.removeInner(e,y),this.height-=F-l.height,f==y&&(this.children.splice(u--,1),l.parent=null),(n-=y)==0)break;e=0}else e-=f}if(this.size-n<25&&(this.children.length>1||!(this.children[0]instanceof ga))){var U=[];this.collapse(U),this.children=[new ga(U)],this.children[0].parent=this}},collapse:function(e){for(var n=0;n<this.children.length;++n)this.children[n].collapse(e)},insertInner:function(e,n,u){this.size+=n.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],y=f.chunkSize();if(e<=y){if(f.insertInner(e,n,u),f.lines&&f.lines.length>50){for(var F=f.lines.length%25+25,U=F;U<f.lines.length;){var H=new ga(f.lines.slice(U,U+=25));f.height-=H.height,this.children.splice(++l,0,H),H.parent=this}f.lines=f.lines.slice(0,F),this.maybeSpill()}break}e-=y}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var n=e.children.splice(e.children.length-5,5),u=new ya(n);if(e.parent){e.size-=u.size,e.height-=u.height;var f=ht(e.parent.children,e);e.parent.children.splice(f+1,0,u)}else{var l=new ya(e.children);l.parent=e,e.children=[l,u],e=l}u.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,n,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],y=f.chunkSize();if(e<y){var F=Math.min(n,y-e);if(f.iterN(e,F,u))return!0;if((n-=F)==0)break;e=0}else e-=y}}};var _a=function(e,n,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=e,this.node=n};_a.prototype.clear=function(){var e=this.doc.cm,n=this.line.widgets,u=this.line,l=Zt(u);if(!(l==null||!n)){for(var f=0;f<n.length;++f)n[f]==this&&n.splice(f--,1);n.length||(u.widgets=null);var y=Ot(this);An(u,Math.max(0,u.height-y)),e&&(Br(e,function(){ul(e,u,-y),qn(e,l,"widget")}),ir(e,"lineWidgetCleared",e,this,l))}},_a.prototype.changed=function(){var e=this,n=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Ot(this)-n;!f||(oi(this.doc,l)||An(l,l.height+f),u&&Br(u,function(){u.curOp.forceUpdate=!0,ul(u,l,f),ir(u,"lineWidgetChanged",u,e,Zt(l))}))},Ue(_a);function ul(e,n,u){si(n)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Ys(e,u)}function cc(e,n,u,l){var f=new _a(e,u,l),y=e.cm;return y&&f.noHScroll&&(y.display.alignWidgets=!0),ea(e,n,"widget",function(F){var U=F.widgets||(F.widgets=[]);if(f.insertAt==null?U.push(f):U.splice(Math.min(U.length,Math.max(0,f.insertAt)),0,f),f.line=F,y&&!oi(e,F)){var H=si(F)<e.scrollTop;An(F,F.height+Ot(f)),H&&Ys(y,f.height),y.curOp.forceUpdate=!0}return!0}),y&&ir(y,"lineWidgetAdded",y,f,typeof n=="number"?n:Zt(n)),f}var Ko=0,ti=function(e,n){this.lines=[],this.type=n,this.doc=e,this.id=++Ko};ti.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&Ti(e),Be(this,"clear")){var u=this.find();u&&ir(this,"clear",u.from,u.to)}for(var l=null,f=null,y=0;y<this.lines.length;++y){var F=this.lines[y],U=Ta(F.markedSpans,this);e&&!this.collapsed?qn(e,Zt(F),"text"):e&&(U.to!=null&&(f=Zt(F)),U.from!=null&&(l=Zt(F))),F.markedSpans=jf(F.markedSpans,U),U.from==null&&this.collapsed&&!oi(this.doc,F)&&e&&An(F,ua(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var H=0;H<this.lines.length;++H){var Z=Wn(this.lines[H]),xe=ji(Z);xe>e.display.maxLineLength&&(e.display.maxLine=Z,e.display.maxLineLength=xe,e.display.maxLineChanged=!0)}l!=null&&e&&this.collapsed&&Rr(e,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Mu(e.doc)),e&&ir(e,"markerCleared",e,this,l,f),n&&Pi(e),this.parent&&this.parent.clear()}},ti.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var u,l,f=0;f<this.lines.length;++f){var y=this.lines[f],F=Ta(y.markedSpans,this);if(F.from!=null&&(u=at(n?y:Zt(y),F.from),e==-1))return u;if(F.to!=null&&(l=at(n?y:Zt(y),F.to),e==1))return l}return u&&{from:u,to:l}},ti.prototype.changed=function(){var e=this,n=this.find(-1,!0),u=this,l=this.doc.cm;!n||!l||Br(l,function(){var f=n.line,y=Zt(n.line),F=Ms(l,y);if(F&&(Ns(F),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!oi(u.doc,f)&&u.height!=null){var U=u.height;u.height=null;var H=Ot(u)-U;H&&An(f,f.height+H)}ir(l,"markerChanged",l,e)})},ti.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(!n.maybeHiddenMarkers||ht(n.maybeHiddenMarkers,this)==-1)&&(n.maybeUnhiddenMarkers||(n.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ti.prototype.detachLine=function(e){if(this.lines.splice(ht(this.lines,e),1),!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(n.maybeHiddenMarkers||(n.maybeHiddenMarkers=[])).push(this)}},Ue(ti);function ta(e,n,u,l,f){if(l&&l.shared)return dc(e,n,u,l,f);if(e.cm&&!e.cm.curOp)return Ur(e.cm,ta)(e,n,u,l,f);var y=new ti(e,f),F=Lt(n,u);if(l&&Ze(l,y,!1),F>0||F==0&&y.clearWhenEmpty!==!1)return y;if(y.replacedWith&&(y.collapsed=!0,y.widgetNode=he("span",[y.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||y.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(y.widgetNode.insertLeft=!0)),y.collapsed){if(xo(e,n.line,n,u,y)||n.line!=u.line&&xo(e,u.line,n,u,y))throw new Error("Inserting collapsed marker partially overlapping an existing one");Uf()}y.addToHistory&&Pu(e,{from:n,to:u,origin:"markText"},e.sel,NaN);var U=n.line,H=e.cm,Z;if(e.iter(U,u.line+1,function(Ce){H&&y.collapsed&&!H.options.lineWrapping&&Wn(Ce)==H.display.maxLine&&(Z=!0),y.collapsed&&U!=n.line&&An(Ce,0),Id(Ce,new mo(y,U==n.line?n.ch:null,U==u.line?u.ch:null),e.cm&&e.cm.curOp),++U}),y.collapsed&&e.iter(n.line,u.line+1,function(Ce){oi(e,Ce)&&An(Ce,0)}),y.clearOnEnter&&N(y,"beforeCursorEnter",function(){return y.clear()}),y.readOnly&&(Bf(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),y.collapsed&&(y.id=++Ko,y.atomic=!0),H){if(Z&&(H.curOp.updateMaxLine=!0),y.collapsed)Rr(H,n.line,u.line+1);else if(y.className||y.startStyle||y.endStyle||y.css||y.attributes||y.title)for(var xe=n.line;xe<=u.line;xe++)qn(H,xe,"text");y.atomic&&Mu(H.doc),ir(H,"markerAdded",H,y)}return y}var ma=function(e,n){this.markers=e,this.primary=n;for(var u=0;u<e.length;++u)e[u].parent=this};ma.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();ir(this,"clear")}},ma.prototype.find=function(e,n){return this.primary.find(e,n)},Ue(ma);function dc(e,n,u,l,f){l=Ze(l),l.shared=!1;var y=[ta(e,n,u,l,f)],F=y[0],U=l.widgetNode;return ki(e,function(H){U&&(l.widgetNode=U.cloneNode(!0)),y.push(ta(H,lt(H,n),lt(H,u),l,f));for(var Z=0;Z<H.linked.length;++Z)if(H.linked[Z].isParent)return;F=Ct(y)}),new ma(y,F)}function Bu(e){return e.findMarks(at(e.first,0),e.clipPos(at(e.lastLine())),function(n){return n.parent})}function fl(e,n){for(var u=0;u<n.length;u++){var l=n[u],f=l.find(),y=e.clipPos(f.from),F=e.clipPos(f.to);if(Lt(y,F)){var U=ta(e,y,F,l.primary,l.primary.type);l.markers.push(U),U.parent=l}}}function pc(e){for(var n=function(l){var f=e[l],y=[f.primary.doc];ki(f.primary.doc,function(H){return y.push(H)});for(var F=0;F<f.markers.length;F++){var U=f.markers[F];ht(y,U.doc)==-1&&(U.parent=null,f.markers.splice(F--,1))}},u=0;u<e.length;u++)n(u)}var hc=0,un=function(e,n,u,l,f){if(!(this instanceof un))return new un(e,n,u,l,f);u==null&&(u=0),ya.call(this,[new ga([new Vi("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var y=at(u,0);this.sel=Ii(y),this.history=new Ya(null),this.id=++hc,this.modeOption=n,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),tl(this,{from:y,to:y,text:e}),Jr(this,Ii(y),ut)};un.prototype=St(ya.prototype,{constructor:un,iter:function(e,n,u){u?this.iterN(e-this.first,n-e,u):this.iterN(this.first,this.first+this.size,e)},insert:function(e,n){for(var u=0,l=0;l<n.length;++l)u+=n[l].height;this.insertInner(e-this.first,n,u)},remove:function(e,n){this.removeInner(e-this.first,n)},getValue:function(e){var n=Si(this,this.first,this.first+this.size);return e===!1?n:n.join(e||this.lineSeparator())},setValue:cr(function(e){var n=at(this.first,0),u=this.first+this.size-1;ha(this,{from:n,to:at(u,Tt(this,u).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Wa(this.cm,0,0),Jr(this,Ii(n),ut)}),replaceRange:function(e,n,u,l){n=lt(this,n),u=u?lt(this,u):n,va(this,e,n,u,l)},getRange:function(e,n,u){var l=ii(this,lt(this,e),lt(this,n));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(e){var n=this.getLineHandle(e);return n&&n.text},getLineHandle:function(e){if(Zn(this,e))return Tt(this,e)},getLineNumber:function(e){return Zt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Tt(this,e)),Wn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return lt(this,e)},getCursor:function(e){var n=this.sel.primary(),u;return e==null||e=="head"?u=n.head:e=="anchor"?u=n.anchor:e=="end"||e=="to"||e===!1?u=n.to():u=n.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:cr(function(e,n,u){il(this,lt(this,typeof e=="number"?at(e,n||0):e),null,u)}),setSelection:cr(function(e,n,u){il(this,lt(this,e),lt(this,n||e),u)}),extendSelection:cr(function(e,n,u){Ho(this,lt(this,e),n&<(this,n),u)}),extendSelections:cr(function(e,n){Fu(this,Xt(this,e),n)}),extendSelectionsBy:cr(function(e,n){var u=Wt(this.sel.ranges,e);Fu(this,Xt(this,u),n)}),setSelections:cr(function(e,n,u){if(!!e.length){for(var l=[],f=0;f<e.length;f++)l[f]=new er(lt(this,e[f].anchor),lt(this,e[f].head||e[f].anchor));n==null&&(n=Math.min(e.length-1,this.sel.primIndex)),Jr(this,En(this.cm,l,n),u)}}),addSelection:cr(function(e,n,u){var l=this.sel.ranges.slice(0);l.push(new er(lt(this,e),lt(this,n||e))),Jr(this,En(this.cm,l,l.length-1),u)}),getSelection:function(e){for(var n=this.sel.ranges,u,l=0;l<n.length;l++){var f=ii(this,n[l].from(),n[l].to());u=u?u.concat(f):f}return e===!1?u:u.join(e||this.lineSeparator())},getSelections:function(e){for(var n=[],u=this.sel.ranges,l=0;l<u.length;l++){var f=ii(this,u[l].from(),u[l].to());e!==!1&&(f=f.join(e||this.lineSeparator())),n[l]=f}return n},replaceSelection:function(e,n,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=e;this.replaceSelections(l,n,u||"+input")},replaceSelections:cr(function(e,n,u){for(var l=[],f=this.sel,y=0;y<f.ranges.length;y++){var F=f.ranges[y];l[y]={from:F.from(),to:F.to(),text:this.splitLines(e[y]),origin:u}}for(var U=n&&n!="end"&&oc(this,l,n),H=l.length-1;H>=0;H--)ha(this,l[H]);U?ku(this,U):this.cm&&rn(this.cm)}),undo:cr(function(){Fn(this,"undo")}),redo:cr(function(){Fn(this,"redo")}),undoSelection:cr(function(){Fn(this,"undo",!0)}),redoSelection:cr(function(){Fn(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,n=0,u=0,l=0;l<e.done.length;l++)e.done[l].ranges||++n;for(var f=0;f<e.undone.length;f++)e.undone[f].ranges||++u;return{undo:n,redo:u}},clearHistory:function(){var e=this;this.history=new Ya(this.history),ki(this,function(n){return n.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:da(this.history.done),undone:da(this.history.undone)}},setHistory:function(e){var n=this.history=new Ya(this.history);n.done=da(e.done.slice(0),null,!0),n.undone=da(e.undone.slice(0),null,!0)},setGutterMarker:cr(function(e,n,u){return ea(this,e,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[n]=u,!u&&$(f)&&(l.gutterMarkers=null),!0})}),clearGutter:cr(function(e){var n=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[e]&&ea(n,u,"gutter",function(){return u.gutterMarkers[e]=null,$(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(e){var n;if(typeof e=="number"){if(!Zn(this,e)||(n=e,e=Tt(this,e),!e))return null}else if(n=Zt(e),n==null)return null;return{line:n,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:cr(function(e,n,u){return ea(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass";if(!l[f])l[f]=u;else{if(ce(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:cr(function(e,n,u){return ea(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass",y=l[f];if(y)if(u==null)l[f]=null;else{var F=y.match(ce(u));if(!F)return!1;var U=F.index+F[0].length;l[f]=y.slice(0,F.index)+(!F.index||U==y.length?"":" ")+y.slice(U)||null}else return!1;return!0})}),addLineWidget:cr(function(e,n,u){return cc(this,e,n,u)}),removeLineWidget:function(e){e.clear()},markText:function(e,n,u){return ta(this,lt(this,e),lt(this,n),u,u&&u.type||"range")},setBookmark:function(e,n){var u={replacedWith:n&&(n.nodeType==null?n.widget:n),insertLeft:n&&n.insertLeft,clearWhenEmpty:!1,shared:n&&n.shared,handleMouseEvents:n&&n.handleMouseEvents};return e=lt(this,e),ta(this,e,e,u,"bookmark")},findMarksAt:function(e){e=lt(this,e);var n=[],u=Tt(this,e.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var f=u[l];(f.from==null||f.from<=e.ch)&&(f.to==null||f.to>=e.ch)&&n.push(f.marker.parent||f.marker)}return n},findMarks:function(e,n,u){e=lt(this,e),n=lt(this,n);var l=[],f=e.line;return this.iter(e.line,n.line+1,function(y){var F=y.markedSpans;if(F)for(var U=0;U<F.length;U++){var H=F[U];!(H.to!=null&&f==e.line&&e.ch>=H.to||H.from==null&&f!=e.line||H.from!=null&&f==n.line&&H.from>=n.ch)&&(!u||u(H.marker))&&l.push(H.marker.parent||H.marker)}++f}),l},getAllMarks:function(){var e=[];return this.iter(function(n){var u=n.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&e.push(u[l].marker)}),e},posFromIndex:function(e){var n,u=this.first,l=this.lineSeparator().length;return this.iter(function(f){var y=f.text.length+l;if(y>e)return n=e,!0;e-=y,++u}),lt(this,at(u,n))},indexFromPos:function(e){e=lt(this,e);var n=e.ch;if(e.line<this.first||e.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,e.line,function(l){n+=l.text.length+u}),n},copy:function(e){var n=new un(Si(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return n.scrollTop=this.scrollTop,n.scrollLeft=this.scrollLeft,n.sel=this.sel,n.extend=!1,e&&(n.history.undoDepth=this.history.undoDepth,n.setHistory(this.getHistory())),n},linkedDoc:function(e){e||(e={});var n=this.first,u=this.first+this.size;e.from!=null&&e.from>n&&(n=e.from),e.to!=null&&e.to<u&&(u=e.to);var l=new un(Si(this,n,u),e.mode||this.modeOption,n,this.lineSep,this.direction);return e.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:e.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],fl(l,Bu(this)),l},unlinkDoc:function(e){if(e instanceof dr&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n){var u=this.linked[n];if(u.doc==e){this.linked.splice(n,1),e.unlinkDoc(this),pc(Bu(this));break}}if(e.history==this.history){var l=[e.id];ki(e,function(f){return l.push(f.id)},!0),e.history=new Ya(null),e.history.done=da(this.history.done,l),e.history.undone=da(this.history.undone,l)}},iterLinkedDocs:function(e){ki(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Bn(e)},lineSeparator:function(){return this.lineSep||`
|
|
28
|
-
`},setDirection:cr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(n){return n.order=null}),this.cm&&Ka(this.cm))})}),un.prototype.eachLine=un.prototype.iter;var Uu=0;function vc(e){var n=this;if(ju(n),!(pe(n,e)||li(n.display,e))){Qe(e),b&&(Uu=+new Date);var u=Ki(n,e,!0),l=e.dataTransfer.files;if(!(!u||n.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,y=Array(f),F=0,U=function(){++F==f&&Ur(n,function(){u=lt(n.doc,u);var ke={from:u,to:u,text:n.doc.splitLines(y.filter(function(Ye){return Ye!=null}).join(n.doc.lineSeparator())),origin:"paste"};ha(n.doc,ke),ku(n.doc,Ii(lt(n.doc,u),lt(n.doc,Fi(ke))))})()},H=function(ke,Ye){if(n.options.allowDropFileTypes&&ht(n.options.allowDropFileTypes,ke.type)==-1){U();return}var tt=new FileReader;tt.onerror=function(){return U()},tt.onload=function(){var ot=tt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ot)){U();return}y[Ye]=ot,U()},tt.readAsText(ke)},Z=0;Z<l.length;Z++)H(l[Z],Z);else{if(n.state.draggingText&&n.doc.sel.contains(u)>-1){n.state.draggingText(e),setTimeout(function(){return n.display.input.focus()},20);return}try{var xe=e.dataTransfer.getData("Text");if(xe){var Ce;if(n.state.draggingText&&!n.state.draggingText.copy&&(Ce=n.listSelections()),Go(n.doc,Ii(u,u)),Ce)for(var De=0;De<Ce.length;++De)va(n.doc,"",Ce[De].anchor,Ce[De].head,"drag");n.replaceSelection(xe,"around","paste"),n.display.input.focus()}}catch(ke){}}}}function gc(e,n){if(b&&(!e.state.draggingText||+new Date-Uu<100)){Bt(n);return}if(!(pe(e,n)||li(e.display,n))&&(n.dataTransfer.setData("Text",e.getSelection()),n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setDragImage&&!j)){var u=be("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",B&&(u.width=u.height=1,e.display.wrapper.appendChild(u),u._top=u.offsetTop),n.dataTransfer.setDragImage(u,0,0),B&&u.parentNode.removeChild(u)}}function yc(e,n){var u=Ki(e,n);if(!!u){var l=document.createDocumentFragment();Hs(e,u,l),e.display.dragCursor||(e.display.dragCursor=be("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),me(e.display.dragCursor,l)}}function ju(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Yo(e){if(!!document.getElementsByClassName){for(var n=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<n.length;l++){var f=n[l].CodeMirror;f&&u.push(f)}u.length&&u[0].operation(function(){for(var y=0;y<u.length;y++)e(u[y])})}}var qa=!1;function Vu(){qa||(mc(),qa=!0)}function mc(){var e;N(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Yo(xc)},100))}),N(window,"blur",function(){return Yo(fa)})}function xc(e){var n=e.display;n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.scrollbarsClipped=!1,e.setSize()}for(var xn={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},eo=0;eo<10;eo++)xn[eo+48]=xn[eo+96]=String(eo);for(var to=65;to<=90;to++)xn[to]=String.fromCharCode(to);for(var xa=1;xa<=12;xa++)xn[xa+111]=xn[xa+63235]="F"+xa;var ri={};ri.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ri.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ri.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ri.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ri.default=C?ri.macDefault:ri.pcDefault;function Wu(e){var n=e.split(/-(?!$)/);e=n[n.length-1];for(var u,l,f,y,F=0;F<n.length-1;F++){var U=n[F];if(/^(cmd|meta|m)$/i.test(U))y=!0;else if(/^a(lt)?$/i.test(U))u=!0;else if(/^(c|ctrl|control)$/i.test(U))l=!0;else if(/^s(hift)?$/i.test(U))f=!0;else throw new Error("Unrecognized modifier name: "+U)}return u&&(e="Alt-"+e),l&&(e="Ctrl-"+e),y&&(e="Cmd-"+e),f&&(e="Shift-"+e),e}function Md(e){var n={};for(var u in e)if(e.hasOwnProperty(u)){var l=e[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete e[u];continue}for(var f=Wt(u.split(" "),Wu),y=0;y<f.length;y++){var F=void 0,U=void 0;y==f.length-1?(U=f.join(" "),F=l):(U=f.slice(0,y+1).join(" "),F="...");var H=n[U];if(!H)n[U]=F;else if(H!=F)throw new Error("Inconsistent bindings for "+U)}delete e[u]}for(var Z in n)e[Z]=n[Z];return e}function pi(e,n,u,l){n=Jo(n);var f=n.call?n.call(e,l):n[e];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&u(f))return"handled";if(n.fallthrough){if(Object.prototype.toString.call(n.fallthrough)!="[object Array]")return pi(e,n.fallthrough,u,l);for(var y=0;y<n.fallthrough.length;y++){var F=pi(e,n.fallthrough[y],u,l);if(F)return F}}}function Hu(e){var n=typeof e=="string"?e:xn[e.keyCode];return n=="Ctrl"||n=="Alt"||n=="Shift"||n=="Mod"}function cl(e,n,u){var l=e;return n.altKey&&l!="Alt"&&(e="Alt-"+e),(Q?n.metaKey:n.ctrlKey)&&l!="Ctrl"&&(e="Ctrl-"+e),(Q?n.ctrlKey:n.metaKey)&&l!="Mod"&&(e="Cmd-"+e),!u&&n.shiftKey&&l!="Shift"&&(e="Shift-"+e),e}function zu(e,n){if(B&&e.keyCode==34&&e.char)return!1;var u=xn[e.keyCode];return u==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(u=e.code),cl(u,e,n))}function Jo(e){return typeof e=="string"?ri[e]:e}function ra(e,n){for(var u=e.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var y=n(u[f]);l.length&&Lt(y.from,Ct(l).to)<=0;){var F=l.pop();if(Lt(F.from,y.from)<0){y.from=F.from;break}}l.push(y)}Br(e,function(){for(var U=l.length-1;U>=0;U--)va(e.doc,"",l[U].from,l[U].to,"+delete");rn(e)})}function Xo(e,n,u){var l=Ge(e.text,n+u,u);return l<0||l>e.text.length?null:l}function Qo(e,n,u){var l=Xo(e,n.ch,u);return l==null?null:new at(n.line,l,u<0?"after":"before")}function dl(e,n,u,l,f){if(e){n.doc.direction=="rtl"&&(f=-f);var y=O(u,n.doc.direction);if(y){var F=f<0?Ct(y):y[0],U=f<0==(F.level==1),H=U?"after":"before",Z;if(F.level>0||n.doc.direction=="rtl"){var xe=_n(n,u);Z=f<0?u.text.length-1:0;var Ce=Hn(n,xe,Z).top;Z=Ke(function(De){return Hn(n,xe,De).top==Ce},f<0==(F.level==1)?F.from:F.to-1,Z),H=="before"&&(Z=Xo(u,Z,1))}else Z=f<0?F.to:F.from;return new at(l,Z,H)}}return new at(l,f<0?u.text.length:0,f<0?"before":"after")}function Gu(e,n,u,l){var f=O(n,e.doc.direction);if(!f)return Qo(n,u,l);u.ch>=n.text.length?(u.ch=n.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var y=K(f,u.ch,u.sticky),F=f[y];if(e.doc.direction=="ltr"&&F.level%2==0&&(l>0?F.to>u.ch:F.from<u.ch))return Qo(n,u,l);var U=function(ct,gt){return Xo(n,ct instanceof at?ct.ch:ct,gt)},H,Z=function(ct){return e.options.lineWrapping?(H=H||_n(e,n),lu(e,n,H,ct)):{begin:0,end:n.text.length}},xe=Z(u.sticky=="before"?U(u,-1):u.ch);if(e.doc.direction=="rtl"||F.level==1){var Ce=F.level==1==l<0,De=U(u,Ce?1:-1);if(De!=null&&(Ce?De<=F.to&&De<=xe.end:De>=F.from&&De>=xe.begin)){var ke=Ce?"before":"after";return new at(u.line,De,ke)}}var Ye=function(ct,gt,dt){for(var xt=function(Gt,hr){return hr?new at(u.line,U(Gt,1),"before"):new at(u.line,Gt,"after")};ct>=0&&ct<f.length;ct+=gt){var Ft=f[ct],It=gt>0==(Ft.level!=1),it=It?dt.begin:U(dt.end,-1);if(Ft.from<=it&&it<Ft.to||(it=It?Ft.from:U(Ft.to,-1),dt.begin<=it&&it<dt.end))return xt(it,It)}},tt=Ye(y+l,l,xe);if(tt)return tt;var ot=l>0?xe.end:U(xe.begin,-1);return ot!=null&&!(l>0&&ot==n.text.length)&&(tt=Ye(l>0?0:f.length-1,l,Z(ot)),tt)?tt:null}var ro={selectAll:$o,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ut)},killLine:function(e){return ra(e,function(n){if(n.empty()){var u=Tt(e.doc,n.head.line).text.length;return n.head.ch==u&&n.head.line<e.lastLine()?{from:n.head,to:at(n.head.line+1,0)}:{from:n.head,to:at(n.head.line,u)}}else return{from:n.from(),to:n.to()}})},deleteLine:function(e){return ra(e,function(n){return{from:at(n.from().line,0),to:lt(e.doc,at(n.to().line+1,0))}})},delLineLeft:function(e){return ra(e,function(n){return{from:at(n.from().line,0),to:n.from()}})},delWrappedLineLeft:function(e){return ra(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return{from:l,to:n.from()}})},delWrappedLineRight:function(e){return ra(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div");return{from:n.from(),to:l}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(at(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(at(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(n){return ba(e,n.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(n){return Zo(e,n.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(n){return bc(e,n.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div")},mt)},goLineLeft:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:0,top:u},"div")},mt)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return l.ch<e.getLine(l.line).search(/\S/)?Zo(e,n.head):l},mt)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var n=[],u=e.listSelections(),l=e.options.tabSize,f=0;f<u.length;f++){var y=u[f].from(),F=Xe(e.getLine(y.line),y.ch,l);n.push(kt(l-F%l))}e.replaceSelections(n)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Br(e,function(){for(var n=e.listSelections(),u=[],l=0;l<n.length;l++)if(!!n[l].empty()){var f=n[l].head,y=Tt(e.doc,f.line).text;if(y){if(f.ch==y.length&&(f=new at(f.line,f.ch-1)),f.ch>0)f=new at(f.line,f.ch+1),e.replaceRange(y.charAt(f.ch-1)+y.charAt(f.ch-2),at(f.line,f.ch-2),f,"+transpose");else if(f.line>e.doc.first){var F=Tt(e.doc,f.line-1).text;F&&(f=new at(f.line,1),e.replaceRange(y.charAt(0)+e.doc.lineSeparator()+F.charAt(F.length-1),at(f.line-1,F.length-1),f,"+transpose"))}}u.push(new er(f,f))}e.setSelections(u)})},newlineAndIndent:function(e){return Br(e,function(){for(var n=e.listSelections(),u=n.length-1;u>=0;u--)e.replaceRange(e.doc.lineSeparator(),n[u].anchor,n[u].head,"+input");n=e.listSelections();for(var l=0;l<n.length;l++)e.indentLine(n[l].from().line,null,!0);rn(e)})},openLine:function(e){return e.replaceSelection(`
|
|
29
|
-
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ba(e,n){var u=Tt(e.doc,n),l=Wn(u);return l!=u&&(n=Zt(l)),dl(!0,e,l,n,1)}function bc(e,n){var u=Tt(e.doc,n),l=Xl(u);return l!=u&&(n=Zt(l)),dl(!0,e,u,n,-1)}function Zo(e,n){var u=ba(e,n.line),l=Tt(e.doc,u.line),f=O(l,e.doc.direction);if(!f||f[0].level==0){var y=Math.max(u.ch,l.text.search(/\S/)),F=n.line==u.line&&n.ch<=y&&n.ch;return at(u.line,F?0:y,u.sticky)}return u}function _o(e,n,u){if(typeof n=="string"&&(n=ro[n],!n))return!1;e.display.input.ensurePolled();var l=e.display.shift,f=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),u&&(e.display.shift=!1),f=n(e)!=nt}finally{e.display.shift=l,e.state.suppressEdits=!1}return f}function wc(e,n,u){for(var l=0;l<e.state.keyMaps.length;l++){var f=pi(n,e.state.keyMaps[l],u,e);if(f)return f}return e.options.extraKeys&&pi(n,e.options.extraKeys,u,e)||pi(n,e.options.keyMap,u,e)}var qo=new ft;function no(e,n,u,l){var f=e.state.keySeq;if(f){if(Hu(n))return"handled";if(/\'$/.test(n)?e.state.keySeq=null:qo.set(50,function(){e.state.keySeq==f&&(e.state.keySeq=null,e.display.input.reset())}),Sc(e,f+" "+n,u,l))return!0}return Sc(e,n,u,l)}function Sc(e,n,u,l){var f=wc(e,n,l);return f=="multi"&&(e.state.keySeq=n),f=="handled"&&ir(e,"keyHandled",e,n,u),(f=="handled"||f=="multi")&&(Qe(u),zs(e)),!!f}function $u(e,n){var u=zu(n,!0);return u?n.shiftKey&&!e.state.keySeq?no(e,"Shift-"+u,n,function(l){return _o(e,l,!0)})||no(e,u,n,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return _o(e,l)}):no(e,u,n,function(l){return _o(e,l)}):!1}function Ac(e,n,u){return no(e,"'"+u+"'",n,function(l){return _o(e,l,!0)})}var es=null;function Ku(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&(n.curOp.focus=Fe(),!pe(n,e))){b&&S<11&&e.keyCode==27&&(e.returnValue=!1);var u=e.keyCode;n.display.shift=u==16||e.shiftKey;var l=$u(n,e);B&&(es=l?u:null,!l&&u==88&&!Tn&&(C?e.metaKey:e.ctrlKey)&&n.replaceSelection("",null,"cut")),c&&!C&&!l&&u==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(n.display.lineDiv.className)&&Ec(n)}}function Ec(e){var n=e.display.lineDiv;Le(n,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(ee(n,"CodeMirror-crosshair"),de(document,"keyup",u),de(document,"mouseover",u))}N(document,"keyup",u),N(document,"mouseover",u)}function Yu(e){e.keyCode==16&&(this.doc.sel.shift=!1),pe(this,e)}function pl(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&!(li(n.display,e)||pe(n,e)||e.ctrlKey&&!e.altKey||C&&e.metaKey)){var u=e.keyCode,l=e.charCode;if(B&&u==es){es=null,Qe(e);return}if(!(B&&(!e.which||e.which<10)&&$u(n,e))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(Ac(n,e,f)||n.display.input.onKeyPress(e))}}}var Cc=400,hl=function(e,n,u){this.time=e,this.pos=n,this.button=u};hl.prototype.compare=function(e,n,u){return this.time+Cc>e&&Lt(n,this.pos)==0&&u==this.button};var io,ao;function Oc(e,n){var u=+new Date;return ao&&ao.compare(u,e,n)?(io=ao=null,"triple"):io&&io.compare(u,e,n)?(ao=new hl(u,e,n),io=null,"double"):(io=new hl(u,e,n),ao=null,"single")}function Ju(e){var n=this,u=n.display;if(!(pe(n,e)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=e.shiftKey,li(u,e)){g||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!vl(n,e)){var l=Ki(n,e),f=pn(e),y=l?Oc(l,f):"single";window.focus(),f==1&&n.state.selectingText&&n.state.selectingText(e),!(l&&Tc(n,f,l,y,e))&&(f==1?l?Ic(n,l,y,e):Pt(e)==u.scroller&&Qe(e):f==2?(l&&Ho(n.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(Y?n.display.input.onContextMenu(e):ja(n)))}}}function Tc(e,n,u,l,f){var y="Click";return l=="double"?y="Double"+y:l=="triple"&&(y="Triple"+y),y=(n==1?"Left":n==2?"Middle":"Right")+y,no(e,cl(y,f),f,function(F){if(typeof F=="string"&&(F=ro[F]),!F)return!1;var U=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),U=F(e,u)!=nt}finally{e.state.suppressEdits=!1}return U})}function Pc(e,n,u){var l=e.getOption("configureMouse"),f=l?l(e,n,u):{};if(f.unit==null){var y=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=y?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(f.extend==null||e.doc.extend)&&(f.extend=e.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=C?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(C?u.altKey:u.ctrlKey)),f}function Ic(e,n,u,l){b?setTimeout(rt(Gs,e),0):e.curOp.focus=Fe();var f=Pc(e,u,l),y=e.doc.sel,F;e.options.dragDrop&&Dr&&!e.isReadOnly()&&u=="single"&&(F=y.contains(n))>-1&&(Lt((F=y.ranges[F]).from(),n)<0||n.xRel>0)&&(Lt(F.to(),n)>0||n.xRel<0)?ts(e,l,n,f):Fc(e,l,n,f)}function ts(e,n,u,l){var f=e.display,y=!1,F=Ur(e,function(Z){g&&(f.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:ja(e)),de(f.wrapper.ownerDocument,"mouseup",F),de(f.wrapper.ownerDocument,"mousemove",U),de(f.scroller,"dragstart",H),de(f.scroller,"drop",F),y||(Qe(Z),l.addNew||Ho(e.doc,u,null,null,l.extend),g&&!j||b&&S==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),U=function(Z){y=y||Math.abs(n.clientX-Z.clientX)+Math.abs(n.clientY-Z.clientY)>=10},H=function(){return y=!0};g&&(f.scroller.draggable=!0),e.state.draggingText=F,F.copy=!l.moveOnDrag,N(f.wrapper.ownerDocument,"mouseup",F),N(f.wrapper.ownerDocument,"mousemove",U),N(f.scroller,"dragstart",H),N(f.scroller,"drop",F),e.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function Xu(e,n,u){if(u=="char")return new er(n,n);if(u=="word")return e.findWordAt(n);if(u=="line")return new er(at(n.line,0),lt(e.doc,at(n.line+1,0)));var l=u(e,n);return new er(l.from,l.to)}function Fc(e,n,u,l){b&&ja(e);var f=e.display,y=e.doc;Qe(n);var F,U,H=y.sel,Z=H.ranges;if(l.addNew&&!l.extend?(U=y.sel.contains(u),U>-1?F=Z[U]:F=new er(u,u)):(F=y.sel.primary(),U=y.sel.primIndex),l.unit=="rectangle")l.addNew||(F=new er(u,u)),u=Ki(e,n,!0,!0),U=-1;else{var xe=Xu(e,u,l.unit);l.extend?F=nl(F,xe.anchor,xe.head,l.extend):F=xe}l.addNew?U==-1?(U=Z.length,Jr(y,En(e,Z.concat([F]),U),{scroll:!1,origin:"*mouse"})):Z.length>1&&Z[U].empty()&&l.unit=="char"&&!l.extend?(Jr(y,En(e,Z.slice(0,U).concat(Z.slice(U+1)),0),{scroll:!1,origin:"*mouse"}),H=y.sel):zo(y,U,F,yt):(U=0,Jr(y,new mn([F],0),yt),H=y.sel);var Ce=u;function De(dt){if(Lt(Ce,dt)!=0)if(Ce=dt,l.unit=="rectangle"){for(var xt=[],Ft=e.options.tabSize,It=Xe(Tt(y,u.line).text,u.ch,Ft),it=Xe(Tt(y,dt.line).text,dt.ch,Ft),Gt=Math.min(It,it),hr=Math.max(It,it),vr=Math.min(u.line,dt.line),bn=Math.min(e.lastLine(),Math.max(u.line,dt.line));vr<=bn;vr++){var fn=Tt(y,vr).text,Ar=pt(fn,Gt,Ft);Gt==hr?xt.push(new er(at(vr,Ar),at(vr,Ar))):fn.length>Ar&&xt.push(new er(at(vr,Ar),at(vr,pt(fn,hr,Ft))))}xt.length||xt.push(new er(u,u)),Jr(y,En(e,H.ranges.slice(0,U).concat(xt),U),{origin:"*mouse",scroll:!1}),e.scrollIntoView(dt)}else{var cn=F,$r=Xu(e,dt,l.unit),Fr=cn.anchor,gr;Lt($r.anchor,Fr)>0?(gr=$r.head,Fr=qe(cn.from(),$r.anchor)):(gr=$r.anchor,Fr=Oe(cn.to(),$r.head));var yr=H.ranges.slice(0);yr[U]=kc(e,new er(lt(y,Fr),gr)),Jr(y,En(e,yr,U),yt)}}var ke=f.wrapper.getBoundingClientRect(),Ye=0;function tt(dt){var xt=++Ye,Ft=Ki(e,dt,!0,l.unit=="rectangle");if(!!Ft)if(Lt(Ft,Ce)!=0){e.curOp.focus=Fe(),De(Ft);var It=Va(f,y);(Ft.line>=It.to||Ft.line<It.from)&&setTimeout(Ur(e,function(){Ye==xt&&tt(dt)}),150)}else{var it=dt.clientY<ke.top?-20:dt.clientY>ke.bottom?20:0;it&&setTimeout(Ur(e,function(){Ye==xt&&(f.scroller.scrollTop+=it,tt(dt))}),50)}}function ot(dt){e.state.selectingText=!1,Ye=1/0,dt&&(Qe(dt),f.input.focus()),de(f.wrapper.ownerDocument,"mousemove",ct),de(f.wrapper.ownerDocument,"mouseup",gt),y.history.lastSelOrigin=null}var ct=Ur(e,function(dt){dt.buttons===0||!pn(dt)?ot(dt):tt(dt)}),gt=Ur(e,ot);e.state.selectingText=gt,N(f.wrapper.ownerDocument,"mousemove",ct),N(f.wrapper.ownerDocument,"mouseup",gt)}function kc(e,n){var u=n.anchor,l=n.head,f=Tt(e.doc,u.line);if(Lt(u,l)==0&&u.sticky==l.sticky)return n;var y=O(f);if(!y)return n;var F=K(y,u.ch,u.sticky),U=y[F];if(U.from!=u.ch&&U.to!=u.ch)return n;var H=F+(U.from==u.ch==(U.level!=1)?0:1);if(H==0||H==y.length)return n;var Z;if(l.line!=u.line)Z=(l.line-u.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var xe=K(y,l.ch,l.sticky),Ce=xe-F||(l.ch-u.ch)*(U.level==1?-1:1);xe==H-1||xe==H?Z=Ce<0:Z=Ce>0}var De=y[H+(Z?-1:0)],ke=Z==(De.level==1),Ye=ke?De.from:De.to,tt=ke?"after":"before";return u.ch==Ye&&u.sticky==tt?n:new er(new at(u.line,Ye,tt),l)}function Qu(e,n,u,l){var f,y;if(n.touches)f=n.touches[0].clientX,y=n.touches[0].clientY;else try{f=n.clientX,y=n.clientY}catch(De){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;l&&Qe(n);var F=e.display,U=F.lineDiv.getBoundingClientRect();if(y>U.bottom||!Be(e,u))return Et(n);y-=U.top-F.viewOffset;for(var H=0;H<e.display.gutterSpecs.length;++H){var Z=F.gutters.childNodes[H];if(Z&&Z.getBoundingClientRect().right>=f){var xe=Vn(e.doc,y),Ce=e.display.gutterSpecs[H];return ae(e,u,e,xe,Ce.className,n),Et(n)}}}function vl(e,n){return Qu(e,n,"gutterClick",!0)}function Zu(e,n){li(e.display,n)||_u(e,n)||pe(e,n,"contextmenu")||Y||e.display.input.onContextMenu(n)}function _u(e,n){return Be(e,"gutterContextMenu")?Qu(e,n,"gutterContextMenu",!1):!1}function qu(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Da(e)}var wa={toString:function(){return"CodeMirror.Init"}},ef={},rs={};function tf(e){var n=e.optionHandlers;function u(l,f,y,F){e.defaults[l]=f,y&&(n[l]=F?function(U,H,Z){Z!=wa&&y(U,H,Z)}:y)}e.defineOption=u,e.Init=wa,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Uo(l)},!0),u("indentUnit",2,Uo,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){_i(l),Da(l),Rr(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var y=[],F=l.doc.first;l.doc.iter(function(H){for(var Z=0;;){var xe=H.text.indexOf(f,Z);if(xe==-1)break;Z=xe+f.length,y.push(at(F,xe))}F++});for(var U=y.length-1;U>=0;U--)va(l.doc,f,y[U],at(y[U].line,y[U].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,f,y){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),y!=wa&&l.refresh()}),u("specialCharPlaceholder",Ts,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",M?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,f){return l.getInputField().spellcheck=f},!0),u("autocorrect",!1,function(l,f){return l.getInputField().autocorrect=f},!0),u("autocapitalize",!1,function(l,f){return l.getInputField().autocapitalize=f},!0),u("rtlMoveVisually",!J),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){qu(l),No(l)},!0),u("keyMap","default",function(l,f,y){var F=Jo(f),U=y!=wa&&Jo(y);U&&U.detach&&U.detach(l,F),F.attach&&F.attach(l,U||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Mc,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=$a(f,l.options.lineNumbers),No(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?In(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return fi(l)},!0),u("scrollbarStyle","native",function(l){Lo(l),fi(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,f){l.display.gutterSpecs=$a(l.options.gutters,f),No(l)},!0),u("firstLineNumber",1,No,!0),u("lineNumberFormatter",function(l){return l},No,!0),u("showCursorWhenSelecting",!1,Oi,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(fa(l),l.display.input.blur()),l.display.input.readOnlyChanged(f)}),u("screenReaderLabel",null,function(l,f){f=f===""?null:f,l.display.input.screenReaderLabelChanged(f)}),u("disableInput",!1,function(l,f){f||l.display.input.reset()},!0),u("dragDrop",!0,Rc),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Oi,!0),u("singleCursorHeightPerLine",!0,Oi,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,_i,!0),u("addModeClass",!1,_i,!0),u("pollInterval",100),u("undoDepth",200,function(l,f){return l.doc.history.undoDepth=f}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,_i,!0),u("moveInputWithCursor",!0,function(l,f){f||l.display.input.resetPosition()}),u("tabindex",null,function(l,f){return l.display.input.getField().tabIndex=f||""}),u("autofocus",null),u("direction","ltr",function(l,f){return l.doc.setDirection(f)},!0),u("phrases",null)}function Rc(e,n,u){var l=u&&u!=wa;if(!n!=!l){var f=e.display.dragFunctions,y=n?N:de;y(e.display.scroller,"dragstart",f.start),y(e.display.scroller,"dragenter",f.enter),y(e.display.scroller,"dragover",f.over),y(e.display.scroller,"dragleave",f.leave),y(e.display.scroller,"drop",f.drop)}}function Mc(e){e.options.lineWrapping?(Le(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ee(e.display.wrapper,"CodeMirror-wrap"),As(e)),Ws(e),Rr(e),Da(e),setTimeout(function(){return fi(e)},100)}function dr(e,n){var u=this;if(!(this instanceof dr))return new dr(e,n);this.options=n=n?Ze(n):{},Ze(ef,n,!1);var l=n.value;typeof l=="string"?l=new un(l,n.mode,null,n.lineSeparator,n.direction):n.mode&&(l.modeOption=n.mode),this.doc=l;var f=new dr.inputStyles[n.inputStyle](this),y=this.display=new ac(e,l,f,n);y.wrapper.CodeMirror=this,qu(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Lo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ft,keySeq:null,specialChars:null},n.autofocus&&!M&&y.input.focus(),b&&S<11&&setTimeout(function(){return u.display.input.reset(!0)},20),Lc(this),Vu(),Ti(this),this.curOp.forceUpdate=!0,Cu(this,l),n.autofocus&&!M||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&Fo(u)},20):fa(this);for(var F in rs)rs.hasOwnProperty(F)&&rs[F](this,n[F],wa);Do(this),n.finishInit&&n.finishInit(this);for(var U=0;U<gl.length;++U)gl[U](this);Pi(this),g&&n.lineWrapping&&getComputedStyle(y.lineDiv).textRendering=="optimizelegibility"&&(y.lineDiv.style.textRendering="auto")}dr.defaults=ef,dr.optionHandlers=rs;function Lc(e){var n=e.display;N(n.scroller,"mousedown",Ur(e,Ju)),b&&S<11?N(n.scroller,"dblclick",Ur(e,function(H){if(!pe(e,H)){var Z=Ki(e,H);if(!(!Z||vl(e,H)||li(e.display,H))){Qe(H);var xe=e.findWordAt(Z);Ho(e.doc,xe.anchor,xe.head)}}})):N(n.scroller,"dblclick",function(H){return pe(e,H)||Qe(H)}),N(n.scroller,"contextmenu",function(H){return Zu(e,H)}),N(n.input.getField(),"contextmenu",function(H){n.scroller.contains(H.target)||Zu(e,H)});var u,l={end:0};function f(){n.activeTouch&&(u=setTimeout(function(){return n.activeTouch=null},1e3),l=n.activeTouch,l.end=+new Date)}function y(H){if(H.touches.length!=1)return!1;var Z=H.touches[0];return Z.radiusX<=1&&Z.radiusY<=1}function F(H,Z){if(Z.left==null)return!0;var xe=Z.left-H.left,Ce=Z.top-H.top;return xe*xe+Ce*Ce>20*20}N(n.scroller,"touchstart",function(H){if(!pe(e,H)&&!y(H)&&!vl(e,H)){n.input.ensurePolled(),clearTimeout(u);var Z=+new Date;n.activeTouch={start:Z,moved:!1,prev:Z-l.end<=300?l:null},H.touches.length==1&&(n.activeTouch.left=H.touches[0].pageX,n.activeTouch.top=H.touches[0].pageY)}}),N(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),N(n.scroller,"touchend",function(H){var Z=n.activeTouch;if(Z&&!li(n,H)&&Z.left!=null&&!Z.moved&&new Date-Z.start<300){var xe=e.coordsChar(n.activeTouch,"page"),Ce;!Z.prev||F(Z,Z.prev)?Ce=new er(xe,xe):!Z.prev.prev||F(Z,Z.prev.prev)?Ce=e.findWordAt(xe):Ce=new er(at(xe.line,0),lt(e.doc,at(xe.line+1,0))),e.setSelection(Ce.anchor,Ce.head),e.focus(),Qe(H)}f()}),N(n.scroller,"touchcancel",f),N(n.scroller,"scroll",function(){n.scroller.clientHeight&&(Ha(e,n.scroller.scrollTop),Xi(e,n.scroller.scrollLeft,!0),ae(e,"scroll",e))}),N(n.scroller,"mousewheel",function(H){return Su(e,H)}),N(n.scroller,"DOMMouseScroll",function(H){return Su(e,H)}),N(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(H){pe(e,H)||Bt(H)},over:function(H){pe(e,H)||(yc(e,H),Bt(H))},start:function(H){return gc(e,H)},drop:Ur(e,vc),leave:function(H){pe(e,H)||ju(e)}};var U=n.input.getField();N(U,"keyup",function(H){return Yu.call(e,H)}),N(U,"keydown",Ur(e,Ku)),N(U,"keypress",Ur(e,pl)),N(U,"focus",function(H){return Fo(e,H)}),N(U,"blur",function(H){return fa(e,H)})}var gl=[];dr.defineInitHook=function(e){return gl.push(e)};function Sa(e,n,u,l){var f=e.doc,y;u==null&&(u="add"),u=="smart"&&(f.mode.indent?y=en(e,n).state:u="prev");var F=e.options.tabSize,U=Tt(f,n),H=Xe(U.text,null,F);U.stateAfter&&(U.stateAfter=null);var Z=U.text.match(/^\s*/)[0],xe;if(!l&&!/\S/.test(U.text))xe=0,u="not";else if(u=="smart"&&(xe=f.mode.indent(y,U.text.slice(Z.length),U.text),xe==nt||xe>150)){if(!l)return;u="prev"}u=="prev"?n>f.first?xe=Xe(Tt(f,n-1).text,null,F):xe=0:u=="add"?xe=H+e.options.indentUnit:u=="subtract"?xe=H-e.options.indentUnit:typeof u=="number"&&(xe=H+u),xe=Math.max(0,xe);var Ce="",De=0;if(e.options.indentWithTabs)for(var ke=Math.floor(xe/F);ke;--ke)De+=F,Ce+=" ";if(De<xe&&(Ce+=kt(xe-De)),Ce!=Z)return va(f,Ce,at(n,0),at(n,Z.length),"+input"),U.stateAfter=null,!0;for(var Ye=0;Ye<f.sel.ranges.length;Ye++){var tt=f.sel.ranges[Ye];if(tt.head.line==n&&tt.head.ch<Z.length){var ot=at(n,Z.length);zo(f,Ye,new er(ot,ot));break}}}var Cn=null;function oo(e){Cn=e}function yl(e,n,u,l,f){var y=e.doc;e.display.shift=!1,l||(l=y.sel);var F=+new Date-200,U=f=="paste"||e.state.pasteIncoming>F,H=Bn(n),Z=null;if(U&&l.ranges.length>1)if(Cn&&Cn.text.join(`
|
|
30
|
-
`)==n){if(l.ranges.length%Cn.text.length==0){Z=[];for(var
|
|
27
|
+
left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(m),m.scrollIntoView(f),e.display.lineSpace.removeChild(m)}}}function du(e,n,u,l){l==null&&(l=0);var f;!e.options.lineWrapping&&n==u&&(u=n.sticky=="before"?ot(n.line,n.ch+1,"before"):n,n=n.ch?ot(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var m=0;m<5;m++){var F=!1,U=zn(e,n),H=!u||u==n?U:zn(e,u);f={left:Math.min(U.left,H.left),top:Math.min(U.top,H.top)-l,right:Math.max(U.left,H.left),bottom:Math.max(U.bottom,H.bottom)+l};var Z=Ks(e,f),be=e.doc.scrollTop,Ce=e.doc.scrollLeft;if(Z.scrollTop!=null&&(zo(e,Z.scrollTop),Math.abs(e.doc.scrollTop-be)>1&&(F=!0)),Z.scrollLeft!=null&&(Xi(e,Z.scrollLeft),Math.abs(e.doc.scrollLeft-Ce)>1&&(F=!0)),!F)break}return f}function pu(e,n){var u=Ks(e,n);u.scrollTop!=null&&zo(e,u.scrollTop),u.scrollLeft!=null&&Xi(e,u.scrollLeft)}function Ks(e,n){var u=e.display,l=uo(e.display);n.top<0&&(n.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:u.scroller.scrollTop,m=Do(e),F={};n.bottom-n.top>m&&(n.bottom=n.top+m);var U=e.doc.height+ks(u),H=n.top<l,Z=n.bottom>U-l;if(n.top<f)F.scrollTop=H?0:n.top;else if(n.bottom>f+m){var be=Math.min(n.top,(Z?U:n.bottom)-m);be!=f&&(F.scrollTop=be)}var Ce=e.options.fixedGutter?0:u.gutters.offsetWidth,De=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:u.scroller.scrollLeft-Ce,ke=zi(e)-u.gutters.offsetWidth,Ye=n.right-n.left>ke;return Ye&&(n.right=n.left+ke),n.left<10?F.scrollLeft=0:n.left<De?F.scrollLeft=Math.max(0,n.left+Ce-(Ye?0:10)):n.right>ke+De-3&&(F.scrollLeft=n.right+(Ye?0:10)-ke),F}function Ys(e,n){n!=null&&(Ma(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n)}function rn(e){Ma(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function Ho(e,n,u){(n!=null||u!=null)&&Ma(e),n!=null&&(e.curOp.scrollLeft=n),u!=null&&(e.curOp.scrollTop=u)}function Ji(e,n){Ma(e),e.curOp.scrollToPos=n}function Ma(e){var n=e.curOp.scrollToPos;if(n){e.curOp.scrollToPos=null;var u=su(e,n.from),l=su(e,n.to);hu(e,u,l,n.margin)}}function hu(e,n,u,l){var f=Ks(e,{left:Math.min(n.left,u.left),top:Math.min(n.top,u.top)-l,right:Math.max(n.right,u.right),bottom:Math.max(n.bottom,u.bottom)+l});Ho(e,f.scrollLeft,f.scrollTop)}function zo(e,n){Math.abs(e.doc.scrollTop-n)<2||(c||Zs(e,{top:n}),vu(e,n,!0),c&&Zs(e),Gn(e,100))}function vu(e,n,u){n=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,n)),!(e.display.scroller.scrollTop==n&&!u)&&(e.doc.scrollTop=n,e.display.scrollbars.setScrollTop(n),e.display.scroller.scrollTop!=n&&(e.display.scroller.scrollTop=n))}function Xi(e,n,u,l){n=Math.max(0,Math.min(n,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((u?n==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-n)<2)&&!l)&&(e.doc.scrollLeft=n,bu(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n))}function co(e){var n=e.display,u=n.gutters.offsetWidth,l=Math.round(e.doc.height+ks(e.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:e.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+ui(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:u}}var Qi=function(e,n,u){this.cm=u;var l=this.vert=we("div",[we("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=we("div",[we("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,e(l),e(f),N(l,"scroll",function(){l.clientHeight&&n(l.scrollTop,"vertical")}),N(f,"scroll",function(){f.clientWidth&&n(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&S<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Qi.prototype.update=function(e){var n=e.scrollWidth>e.clientWidth+1,u=e.scrollHeight>e.clientHeight+1,l=e.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=n?l+"px":"0";var f=e.viewHeight-(n?l:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=e.barLeft+"px";var m=e.viewWidth-e.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:n?l:0}},Qi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Qi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Qi.prototype.zeroWidthHack=function(){var e=C&&!q?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ft,this.disableVert=new ft},Qi.prototype.enableZeroWidthBar=function(e,n,u){e.style.pointerEvents="auto";function l(){var f=e.getBoundingClientRect(),m=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);m!=e?e.style.pointerEvents="none":n.set(1e3,l)}n.set(1e3,l)},Qi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Go=function(){};Go.prototype.update=function(){return{bottom:0,right:0}},Go.prototype.setScrollLeft=function(){},Go.prototype.setScrollTop=function(){},Go.prototype.clear=function(){};function fi(e,n){n||(n=co(e));var u=e.display.barWidth,l=e.display.barHeight;Ra(e,n);for(var f=0;f<4&&u!=e.display.barWidth||l!=e.display.barHeight;f++)u!=e.display.barWidth&&e.options.lineWrapping&&ka(e),Ra(e,co(e)),u=e.display.barWidth,l=e.display.barHeight}function Ra(e,n){var u=e.display,l=u.scrollbars.update(n);u.sizer.style.paddingRight=(u.barWidth=l.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=l.bottom)+"px",u.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=l.bottom+"px",u.scrollbarFiller.style.width=l.right+"px"):u.scrollbarFiller.style.display="",l.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=n.gutterWidth+"px"):u.gutterFiller.style.display=""}var yn={native:Qi,null:Go};function La(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ee(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new yn[e.options.scrollbarStyle](function(n){e.display.wrapper.insertBefore(n,e.display.scrollbarFiller),N(n,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,u){u=="horizontal"?Xi(e,n):zo(e,n)},e),e.display.scrollbars.addClass&&Le(e.display.wrapper,e.display.scrollbars.addClass)}var ci=0;function Ti(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ci,markArrays:null},ql(e.curOp)}function Pi(e){var n=e.curOp;n&&Is(n,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;Md(u)})}function Md(e){for(var n=e.ops,u=0;u<n.length;u++)Js(n[u]);for(var l=0;l<n.length;l++)gu(n[l]);for(var f=0;f<n.length;f++)yu(n[f]);for(var m=0;m<n.length;m++)Ir(n[m]);for(var F=0;F<n.length;F++)rc(n[F])}function Js(e){var n=e.cm,u=n.display;mu(n),e.updateMaxLine&&As(n),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<u.viewFrom||e.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new Zi(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function gu(e){e.updatedDisplay=e.mustUpdate&&Qs(e.cm,e.update)}function yu(e){var n=e.cm,u=n.display;e.updatedDisplay&&ka(n),e.barMeasure=co(n),u.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=Sa(n,u.maxLine,u.maxLine.text.length).left+3,n.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+e.adjustWidthTo+ui(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+e.adjustWidthTo-zi(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=u.input.prepareSelection())}function Ir(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<n.doc.scrollLeft&&Xi(n,Math.min(n.display.scroller.scrollLeft,e.maxScrollLeft),!0),n.display.maxLineChanged=!1);var u=e.focus&&e.focus==Fe();e.preparedSelection&&n.display.input.showSelection(e.preparedSelection,u),(e.updatedDisplay||e.startHeight!=n.doc.height)&&fi(n,e.barMeasure),e.updatedDisplay&&qs(n,e.barMeasure),e.selectionChanged&&zs(n),n.state.focused&&e.updateInput&&n.display.input.reset(e.typing),u&&Gs(e.cm)}function rc(e){var n=e.cm,u=n.display,l=n.doc;if(e.updatedDisplay&&xu(n,e.update),u.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),e.scrollTop!=null&&vu(n,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Xi(n,e.scrollLeft,!0,!0),e.scrollToPos){var f=du(n,lt(l,e.scrollToPos.from),lt(l,e.scrollToPos.to),e.scrollToPos.margin);tc(n,f)}var m=e.maybeHiddenMarkers,F=e.maybeUnhiddenMarkers;if(m)for(var U=0;U<m.length;++U)m[U].lines.length||oe(m[U],"hide");if(F)for(var H=0;H<F.length;++H)F[H].lines.length&&oe(F[H],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=n.display.scroller.scrollTop),e.changeObjs&&oe(n,"changes",n,e.changeObjs),e.update&&e.update.finish()}function Ur(e,n){if(e.curOp)return n();Ti(e);try{return n()}finally{Pi(e)}}function jr(e,n){return function(){if(e.curOp)return n.apply(e,arguments);Ti(e);try{return n.apply(e,arguments)}finally{Pi(e)}}}function Lr(e){return function(){if(this.curOp)return e.apply(this,arguments);Ti(this);try{return e.apply(this,arguments)}finally{Pi(this)}}}function cr(e){return function(){var n=this.cm;if(!n||n.curOp)return e.apply(this,arguments);Ti(n);try{return e.apply(this,arguments)}finally{Pi(n)}}}function Gn(e,n){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(n,rt(nc,e))}function nc(e){var n=e.doc;if(!(n.highlightFrontier>=e.display.viewTo)){var u=+new Date+e.options.workTime,l=en(e,n.highlightFrontier),f=[];n.iter(l.line,Math.min(n.first+n.size,e.display.viewTo+500),function(m){if(l.line>=e.display.viewFrom){var F=m.styles,U=m.text.length>e.options.maxHighlightLength?Br(n.mode,l.state):null,H=_t(e,m,l,!0);U&&(l.state=U),m.styles=H.styles;var Z=m.styleClasses,be=H.classes;be?m.styleClasses=be:Z&&(m.styleClasses=null);for(var Ce=!F||F.length!=m.styles.length||Z!=be&&(!Z||!be||Z.bgClass!=be.bgClass||Z.textClass!=be.textClass),De=0;!Ce&&De<F.length;++De)Ce=F[De]!=m.styles[De];Ce&&f.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=e.options.maxHighlightLength&&vs(e,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return Gn(e,e.options.workDelay),!0}),n.highlightFrontier=l.line,n.modeFrontier=Math.max(n.modeFrontier,l.line),f.length&&Ur(e,function(){for(var m=0;m<f.length;m++)qn(e,f[m],"text")})}}var Zi=function(e,n,u){var l=e.display;this.viewport=n,this.visible=Wo(l,e.doc,n),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=zi(e),this.force=u,this.dims=Vs(e),this.events=[]};Zi.prototype.signal=function(e,n){Be(e,n)&&this.events.push(arguments)},Zi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)oe.apply(null,this.events[e])};function mu(e){var n=e.display;!n.scrollbarsClipped&&n.scroller.offsetWidth&&(n.nativeBarWidth=n.scroller.offsetWidth-n.scroller.clientWidth,n.heightForcer.style.height=ui(e)+"px",n.sizer.style.marginBottom=-n.nativeBarWidth+"px",n.sizer.style.borderRightWidth=ui(e)+"px",n.scrollbarsClipped=!0)}function $o(e){if(e.hasFocus())return null;var n=Fe();if(!n||!ae(e.display.lineDiv,n))return null;var u={activeElt:n};if(window.getSelection){var l=window.getSelection();l.anchorNode&&l.extend&&ae(e.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function Xs(e){if(!(!e||!e.activeElt||e.activeElt==Fe())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&ae(document.body,e.anchorNode)&&ae(document.body,e.focusNode))){var n=window.getSelection(),u=document.createRange();u.setEnd(e.anchorNode,e.anchorOffset),u.collapse(!1),n.removeAllRanges(),n.addRange(u),n.extend(e.focusNode,e.focusOffset)}}function Qs(e,n){var u=e.display,l=e.doc;if(n.editorIsHidden)return Ci(e),!1;if(!n.force&&n.visible.from>=u.viewFrom&&n.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Ta(e)==0)return!1;Da(e)&&(Ci(e),n.dims=Vs(e));var f=l.first+l.size,m=Math.max(n.visible.from-e.options.viewportMargin,l.first),F=Math.min(f,n.visible.to+e.options.viewportMargin);u.viewFrom<m&&m-u.viewFrom<20&&(m=Math.max(l.first,u.viewFrom)),u.viewTo>F&&u.viewTo-F<20&&(F=Math.min(f,u.viewTo)),Ai&&(m=Fo(e.doc,m),F=Ss(e.doc,F));var U=m!=u.viewFrom||F!=u.viewTo||u.lastWrapHeight!=n.wrapperHeight||u.lastWrapWidth!=n.wrapperWidth;ec(e,m,F),u.viewOffset=si(Tt(e.doc,u.viewFrom)),e.display.mover.style.top=u.viewOffset+"px";var H=Ta(e);if(!U&&H==0&&!n.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var Z=$o(e);return H>4&&(u.lineDiv.style.display="none"),ic(e,u.updateLineNumbers,n.dims),H>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Xs(Z),ie(u.cursorDiv),ie(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,U&&(u.lastWrapHeight=n.wrapperHeight,u.lastWrapWidth=n.wrapperWidth,Gn(e,400)),u.updateLineNumbers=null,!0}function xu(e,n){for(var u=n.viewport,l=!0;;l=!1){if(!l||!e.options.lineWrapping||n.oldDisplayWidth==zi(e)){if(u&&u.top!=null&&(u={top:Math.min(e.doc.height+ks(e.display)-Do(e),u.top)}),n.visible=Wo(e.display,e.doc,u),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else l&&(n.visible=Wo(e.display,e.doc,u));if(!Qs(e,n))break;ka(e);var f=co(e);Oi(e),fi(e,f),qs(e,f),n.force=!1}n.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(n.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Zs(e,n){var u=new Zi(e,n);if(Qs(e,u)){ka(e),xu(e,u);var l=co(e);Oi(e),fi(e,l),qs(e,l),u.finish()}}function ic(e,n,u){var l=e.display,f=e.options.lineNumbers,m=l.lineDiv,F=m.firstChild;function U(Ye){var tt=Ye.nextSibling;return g&&C&&e.display.currentWheelTarget==Ye?Ye.style.display="none":Ye.parentNode.removeChild(Ye),tt}for(var H=l.view,Z=l.viewFrom,be=0;be<H.length;be++){var Ce=H[be];if(!Ce.hidden)if(!Ce.node||Ce.node.parentNode!=m){var De=qt(e,Ce,Z,u);m.insertBefore(De,F)}else{for(;F!=Ce.node;)F=U(F);var ke=f&&n!=null&&n<=Z&&Ce.lineNumber;Ce.changes&&(ht(Ce.changes,"gutter")>-1&&(ke=!1),wa(e,Ce,Z,u)),ke&&(ie(Ce.lineNumber),Ce.lineNumber.appendChild(document.createTextNode(lo(e.options,Z)))),F=Ce.node.nextSibling}Z+=Ce.size}for(;F;)F=U(F)}function _s(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px",ir(e,"gutterChanged",e)}function qs(e,n){e.display.sizer.style.minHeight=n.docHeight+"px",e.display.heightForcer.style.top=n.docHeight+"px",e.display.gutters.style.height=n.docHeight+e.display.barHeight+ui(e)+"px"}function bu(e){var n=e.display,u=n.view;if(!(!n.alignWidgets&&(!n.gutters.firstChild||!e.options.fixedGutter))){for(var l=In(n)-n.scroller.scrollLeft+e.doc.scrollLeft,f=n.gutters.offsetWidth,m=l+"px",F=0;F<u.length;F++)if(!u[F].hidden){e.options.fixedGutter&&(u[F].gutter&&(u[F].gutter.style.left=m),u[F].gutterBackground&&(u[F].gutterBackground.style.left=m));var U=u[F].alignable;if(U)for(var H=0;H<U.length;H++)U[H].style.left=m}e.options.fixedGutter&&(n.gutters.style.left=l+f+"px")}}function Da(e){if(!e.options.lineNumbers)return!1;var n=e.doc,u=lo(e.options,n.first+n.size-1),l=e.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(we("div",[we("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=f.firstChild.offsetWidth,F=f.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-F)+1,l.lineNumWidth=l.lineNumInnerWidth+F,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",_s(e.display),!0}return!1}function Ko(e,n){for(var u=[],l=!1,f=0;f<e.length;f++){var m=e[f],F=null;if(typeof m!="string"&&(F=m.style,m=m.className),m=="CodeMirror-linenumbers")if(n)l=!0;else continue;u.push({className:m,style:F})}return n&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function wu(e){var n=e.gutters,u=e.gutterSpecs;ie(n),e.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],m=f.className,F=f.style,U=n.appendChild(we("div",null,"CodeMirror-gutter "+m));F&&(U.style.cssText=F),m=="CodeMirror-linenumbers"&&(e.lineGutter=U,U.style.width=(e.lineNumWidth||1)+"px")}n.style.display=u.length?"":"none",_s(e)}function Na(e){wu(e.display),Rr(e),bu(e)}function oc(e,n,u,l){var f=this;this.input=u,f.scrollbarFiller=we("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=we("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=he("div",null,"CodeMirror-code"),f.selectionDiv=we("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=we("div",null,"CodeMirror-cursors"),f.measure=we("div",null,"CodeMirror-measure"),f.lineMeasure=we("div",null,"CodeMirror-measure"),f.lineSpace=he("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var m=he("div",[f.lineSpace],"CodeMirror-lines");f.mover=we("div",[m],null,"position: relative"),f.sizer=we("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=we("div",null,null,"position: absolute; height: "+bt+"px; width: 1px;"),f.gutters=we("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=we("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=we("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),f.wrapper.setAttribute("translate","no"),b&&S<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!g&&!(c&&R)&&(f.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(f.wrapper):e(f.wrapper)),f.viewFrom=f.viewTo=n.first,f.reportedViewFrom=f.reportedViewTo=n.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=Ko(l.gutters,l.lineNumbers),wu(f),u.init(f)}var Ba=0,di=null;b?di=-.53:c?di=15:D?di=-.7:j&&(di=-1/3);function Su(e){var n=e.wheelDeltaX,u=e.wheelDeltaY;return n==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(n=e.detail),u==null&&e.detail&&e.axis==e.VERTICAL_AXIS?u=e.detail:u==null&&(u=e.wheelDelta),{x:n,y:u}}function rr(e){var n=Su(e);return n.x*=di,n.y*=di,n}function Au(e,n){var u=Su(n),l=u.x,f=u.y,m=di;n.deltaMode===0&&(l=n.deltaX,f=n.deltaY,m=1);var F=e.display,U=F.scroller,H=U.scrollWidth>U.clientWidth,Z=U.scrollHeight>U.clientHeight;if(!!(l&&H||f&&Z)){if(f&&C&&g){e:for(var be=n.target,Ce=F.view;be!=U;be=be.parentNode)for(var De=0;De<Ce.length;De++)if(Ce[De].node==be){e.display.currentWheelTarget=be;break e}}if(l&&!c&&!B&&m!=null){f&&Z&&zo(e,Math.max(0,U.scrollTop+f*m)),Xi(e,Math.max(0,U.scrollLeft+l*m)),(!f||f&&Z)&&Qe(n),F.wheelStartX=null;return}if(f&&m!=null){var ke=f*m,Ye=e.doc.scrollTop,tt=Ye+F.wrapper.clientHeight;ke<0?Ye=Math.max(0,Ye+ke-50):tt=Math.min(e.doc.height,tt+ke+50),Zs(e,{top:Ye,bottom:tt})}Ba<20&&n.deltaMode!==0&&(F.wheelStartX==null?(F.wheelStartX=U.scrollLeft,F.wheelStartY=U.scrollTop,F.wheelDX=l,F.wheelDY=f,setTimeout(function(){if(F.wheelStartX!=null){var at=U.scrollLeft-F.wheelStartX,ct=U.scrollTop-F.wheelStartY,gt=ct&&F.wheelDY&&ct/F.wheelDY||at&&F.wheelDX&&at/F.wheelDX;F.wheelStartX=F.wheelStartY=null,!!gt&&(di=(di*Ba+gt)/(Ba+1),++Ba)}},200)):(F.wheelDX+=l,F.wheelDY+=f))}}var mn=function(e,n){this.ranges=e,this.primIndex=n};mn.prototype.primary=function(){return this.ranges[this.primIndex]},mn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var u=this.ranges[n],l=e.ranges[n];if(!oi(u.anchor,l.anchor)||!oi(u.head,l.head))return!1}return!0},mn.prototype.deepCopy=function(){for(var e=[],n=0;n<this.ranges.length;n++)e[n]=new er(ue(this.ranges[n].anchor),ue(this.ranges[n].head));return new mn(e,this.primIndex)},mn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},mn.prototype.contains=function(e,n){n||(n=e);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(Lt(n,l.from())>=0&&Lt(e,l.to())<=0)return u}return-1};var er=function(e,n){this.anchor=e,this.head=n};er.prototype.from=function(){return qe(this.anchor,this.head)},er.prototype.to=function(){return Oe(this.anchor,this.head)},er.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function En(e,n,u){var l=e&&e.options.selectionsMayTouch,f=n[u];n.sort(function(De,ke){return Lt(De.from(),ke.from())}),u=ht(n,f);for(var m=1;m<n.length;m++){var F=n[m],U=n[m-1],H=Lt(U.to(),F.from());if(l&&!F.empty()?H>0:H>=0){var Z=qe(U.from(),F.from()),be=Oe(U.to(),F.to()),Ce=U.empty()?F.from()==F.head:U.from()==U.head;m<=u&&--u,n.splice(--m,2,new er(Ce?be:Z,Ce?Z:be))}}return new mn(n,u)}function Ii(e,n){return new mn([new er(e,n||e)],0)}function Fi(e){return e.text?ot(e.from.line+e.text.length-1,Ct(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Eu(e,n){if(Lt(e,n.from)<0)return e;if(Lt(e,n.to)<=0)return Fi(n);var u=e.line+n.text.length-(n.to.line-n.from.line)-1,l=e.ch;return e.line==n.to.line&&(l+=Fi(n).ch-n.to.ch),ot(u,l)}function el(e,n){for(var u=[],l=0;l<e.sel.ranges.length;l++){var f=e.sel.ranges[l];u.push(new er(Eu(f.anchor,n),Eu(f.head,n)))}return En(e.cm,u,e.sel.primIndex)}function Cu(e,n,u){return e.line==n.line?ot(u.line,e.ch-n.ch+u.ch):ot(u.line+(e.line-n.line),e.ch)}function ac(e,n,u){for(var l=[],f=ot(e.first,0),m=f,F=0;F<n.length;F++){var U=n[F],H=Cu(U.from,f,m),Z=Cu(Fi(U),f,m);if(f=U.to,m=Z,u=="around"){var be=e.sel.ranges[F],Ce=Lt(be.head,be.anchor)<0;l[F]=new er(Ce?Z:H,Ce?H:Z)}else l[F]=new er(H,H)}return new mn(l,e.sel.primIndex)}function Ua(e){e.doc.mode=gn(e.options,e.doc.modeOption),_i(e)}function _i(e){e.doc.iter(function(n){n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Gn(e,100),e.state.modeGen++,e.curOp&&Rr(e)}function ja(e,n){return n.from.ch==0&&n.to.ch==0&&Ct(n.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function tl(e,n,u,l){function f(gt){return u?u[gt]:null}function m(gt,dt,xt){Ei(gt,dt,xt,l),ir(gt,"change",gt,n)}function F(gt,dt){for(var xt=[],Ft=gt;Ft<dt;++Ft)xt.push(new Vi(Z[Ft],f(Ft),l));return xt}var U=n.from,H=n.to,Z=n.text,be=Tt(e,U.line),Ce=Tt(e,H.line),De=Ct(Z),ke=f(Z.length-1),Ye=H.line-U.line;if(n.full)e.insert(0,F(0,Z.length)),e.remove(Z.length,e.size-Z.length);else if(ja(e,n)){var tt=F(0,Z.length-1);m(Ce,Ce.text,ke),Ye&&e.remove(U.line,Ye),tt.length&&e.insert(U.line,tt)}else if(be==Ce)if(Z.length==1)m(be,be.text.slice(0,U.ch)+De+be.text.slice(H.ch),ke);else{var at=F(1,Z.length-1);at.push(new Vi(De+be.text.slice(H.ch),ke,l)),m(be,be.text.slice(0,U.ch)+Z[0],f(0)),e.insert(U.line+1,at)}else if(Z.length==1)m(be,be.text.slice(0,U.ch)+Z[0]+Ce.text.slice(H.ch),f(0)),e.remove(U.line+1,Ye);else{m(be,be.text.slice(0,U.ch)+Z[0],f(0)),m(Ce,De+Ce.text.slice(H.ch),ke);var ct=F(1,Z.length-1);Ye>1&&e.remove(U.line+1,Ye-1),e.insert(U.line+1,ct)}ir(e,"change",e,n)}function ki(e,n,u){function l(f,m,F){if(f.linked)for(var U=0;U<f.linked.length;++U){var H=f.linked[U];if(H.doc!=m){var Z=F&&H.sharedHist;u&&!Z||(n(H.doc,Z),l(H.doc,f,Z))}}}l(e,null,!0)}function Ou(e,n){if(n.cm)throw new Error("This document is already in use.");e.doc=n,n.cm=e,Ws(e),Ua(e),rl(e),e.options.direction=n.direction,e.options.lineWrapping||As(e),e.options.mode=n.modeOption,Rr(e)}function rl(e){(e.doc.direction=="rtl"?Le:ee)(e.display.lineDiv,"CodeMirror-rtl")}function Yo(e){Ur(e,function(){rl(e),Rr(e)})}function Jo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function ei(e,n){var u={from:ue(n.from),to:Fi(n),text:ii(e,n.from,n.to)};return Qo(e,u,n.from.line,n.to.line+1),ki(e,function(l){return Qo(l,u,n.from.line,n.to.line+1)},!0),u}function Tu(e){for(;e.length;){var n=Ct(e);if(n.ranges)e.pop();else break}}function Pu(e,n){if(n)return Tu(e.done),Ct(e.done);if(e.done.length&&!Ct(e.done).ranges)return Ct(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Ct(e.done)}function Iu(e,n,u,l){var f=e.history;f.undone.length=0;var m=+new Date,F,U;if((f.lastOp==l||f.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&f.lastModTime>m-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(F=Pu(f,f.lastOp==l)))U=Ct(F.changes),Lt(n.from,n.to)==0&&Lt(n.from,U.to)==0?U.to=Fi(n):F.changes.push(ei(e,n));else{var H=Ct(f.done);for((!H||!H.ranges)&&Xo(e.sel,f.done),F={changes:[ei(e,n)],generation:f.generation},f.done.push(F);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=m,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=n.origin,U||oe(e,"historyAdded")}function Fu(e,n,u,l){var f=n.charAt(0);return f=="*"||f=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function sc(e,n,u,l){var f=e.history,m=l&&l.origin;u==f.lastSelOp||m&&f.lastSelOrigin==m&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==m||Fu(e,m,Ct(f.done),n))?f.done[f.done.length-1]=n:Xo(n,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=m,f.lastSelOp=u,l&&l.clearRedo!==!1&&Tu(f.undone)}function Xo(e,n){var u=Ct(n);u&&u.ranges&&u.equals(e)||n.push(e)}function Qo(e,n,u,l){var f=n["spans_"+e.id],m=0;e.iter(Math.max(e.first,u),Math.min(e.first+e.size,l),function(F){F.markedSpans&&((f||(f=n["spans_"+e.id]={}))[m]=F.markedSpans),++m})}function lc(e){if(!e)return null;for(var n,u=0;u<e.length;++u)e[u].marker.explicitlyCleared?n||(n=e.slice(0,u)):n&&n.push(e[u]);return n?n.length?n:null:e}function Va(e,n){var u=n["spans_"+e.id];if(!u)return null;for(var l=[],f=0;f<n.text.length;++f)l.push(lc(u[f]));return l}function Wa(e,n){var u=Va(e,n),l=$l(e,n);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var m=u[f],F=l[f];if(m&&F){e:for(var U=0;U<F.length;++U){for(var H=F[U],Z=0;Z<m.length;++Z)if(m[Z].marker==H.marker)continue e;m.push(H)}}else F&&(u[f]=F)}return u}function po(e,n,u){for(var l=[],f=0;f<e.length;++f){var m=e[f];if(m.ranges){l.push(u?mn.prototype.deepCopy.call(m):m);continue}var F=m.changes,U=[];l.push({changes:U});for(var H=0;H<F.length;++H){var Z=F[H],be=void 0;if(U.push({from:Z.from,to:Z.to,text:Z.text}),n)for(var Ce in Z)(be=Ce.match(/^spans_(\d+)$/))&&ht(n,Number(be[1]))>-1&&(Ct(U)[Ce]=Z[Ce],delete Z[Ce])}}return l}function nl(e,n,u,l){if(l){var f=e.anchor;if(u){var m=Lt(n,f)<0;m!=Lt(u,f)<0?(f=n,n=u):m!=Lt(n,u)<0&&(n=u)}return new er(f,n)}else return new er(u||n,n)}function Ha(e,n,u,l,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),Xr(e,new mn([nl(e.sel.primary(),n,u,f)],0),l)}function ku(e,n,u){for(var l=[],f=e.cm&&(e.cm.display.shift||e.extend),m=0;m<e.sel.ranges.length;m++)l[m]=nl(e.sel.ranges[m],n[m],null,f);var F=En(e.cm,l,e.sel.primIndex);Xr(e,F,u)}function za(e,n,u,l){var f=e.sel.ranges.slice(0);f[n]=u,Xr(e,En(e.cm,f,e.sel.primIndex),l)}function il(e,n,u,l){Xr(e,Ii(n,u),l)}function uc(e,n,u){var l={ranges:n.ranges,update:function(f){this.ranges=[];for(var m=0;m<f.length;m++)this.ranges[m]=new er(lt(e,f[m].anchor),lt(e,f[m].head))},origin:u&&u.origin};return oe(e,"beforeSelectionChange",e,l),e.cm&&oe(e.cm,"beforeSelectionChange",e.cm,l),l.ranges!=n.ranges?En(e.cm,l.ranges,l.ranges.length-1):n}function Mu(e,n,u){var l=e.history.done,f=Ct(l);f&&f.ranges?(l[l.length-1]=n,Ga(e,n,u)):Xr(e,n,u)}function Xr(e,n,u){Ga(e,n,u),sc(e,e.sel,e.cm?e.cm.curOp.id:NaN,u)}function Ga(e,n,u){(Be(e,"beforeSelectionChange")||e.cm&&Be(e.cm,"beforeSelectionChange"))&&(n=uc(e,n,u));var l=u&&u.bias||(Lt(n.primary().head,e.sel.primary().head)<0?-1:1);Ru(e,Du(e,n,l,!0)),!(u&&u.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&rn(e.cm)}function Ru(e,n){n.equals(e.sel)||(e.sel=n,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ae(e.cm)),ir(e,"cursorActivity",e))}function Lu(e){Ru(e,Du(e,e.sel,null,!1))}function Du(e,n,u,l){for(var f,m=0;m<n.ranges.length;m++){var F=n.ranges[m],U=n.ranges.length==e.sel.ranges.length&&e.sel.ranges[m],H=Zo(e,F.anchor,U&&U.anchor,u,l),Z=Zo(e,F.head,U&&U.head,u,l);(f||H!=F.anchor||Z!=F.head)&&(f||(f=n.ranges.slice(0,m)),f[m]=new er(H,Z))}return f?En(e.cm,f,n.primIndex):n}function ho(e,n,u,l,f){var m=Tt(e,n.line);if(m.markedSpans)for(var F=0;F<m.markedSpans.length;++F){var U=m.markedSpans[F],H=U.marker,Z="selectLeft"in H?!H.selectLeft:H.inclusiveLeft,be="selectRight"in H?!H.selectRight:H.inclusiveRight;if((U.from==null||(Z?U.from<=n.ch:U.from<n.ch))&&(U.to==null||(be?U.to>=n.ch:U.to>n.ch))){if(f&&(oe(H,"beforeCursorEnter"),H.explicitlyCleared))if(m.markedSpans){--F;continue}else break;if(!H.atomic)continue;if(u){var Ce=H.find(l<0?1:-1),De=void 0;if((l<0?be:Z)&&(Ce=Nu(e,Ce,-l,Ce&&Ce.line==n.line?m:null)),Ce&&Ce.line==n.line&&(De=Lt(Ce,u))&&(l<0?De<0:De>0))return ho(e,Ce,n,l,f)}var ke=H.find(l<0?-1:1);return(l<0?Z:be)&&(ke=Nu(e,ke,l,ke.line==n.line?m:null)),ke?ho(e,ke,n,l,f):null}}return n}function Zo(e,n,u,l,f){var m=l||1,F=ho(e,n,u,m,f)||!f&&ho(e,n,u,m,!0)||ho(e,n,u,-m,f)||!f&&ho(e,n,u,-m,!0);return F||(e.cantEdit=!0,ot(e.first,0))}function Nu(e,n,u,l){return u<0&&n.ch==0?n.line>e.first?lt(e,ot(n.line-1)):null:u>0&&n.ch==(l||Tt(e,n.line)).text.length?n.line<e.first+e.size-1?ot(n.line+1,0):null:new ot(n.line,n.ch+u)}function $a(e){e.setSelection(ot(e.firstLine(),0),ot(e.lastLine()),ut)}function ol(e,n,u){var l={canceled:!1,from:n.from,to:n.to,text:n.text,origin:n.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,m,F,U){f&&(l.from=lt(e,f)),m&&(l.to=lt(e,m)),F&&(l.text=F),U!==void 0&&(l.origin=U)}),oe(e,"beforeChange",e,l),e.cm&&oe(e.cm,"beforeChange",e.cm,l),l.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function vo(e,n,u){if(e.cm){if(!e.cm.curOp)return jr(e.cm,vo)(e,n,u);if(e.cm.state.suppressEdits)return}if(!((Be(e,"beforeChange")||e.cm&&Be(e.cm,"beforeChange"))&&(n=ol(e,n,!0),!n))){var l=Nf&&!u&&Yl(e,n.from,n.to);if(l)for(var f=l.length-1;f>=0;--f)qi(e,{from:l[f].from,to:l[f].to,text:f?[""]:n.text,origin:n.origin});else qi(e,n)}}function qi(e,n){if(!(n.text.length==1&&n.text[0]==""&&Lt(n.from,n.to)==0)){var u=el(e,n);Iu(e,n,u,e.cm?e.cm.curOp.id:NaN),_o(e,n,u,$l(e,n));var l=[];ki(e,function(f,m){!m&&ht(l,f.history)==-1&&(ll(f.history,n),l.push(f.history)),_o(f,n,null,$l(f,n))})}}function Fn(e,n,u){var l=e.cm&&e.cm.state.suppressEdits;if(!(l&&!u)){for(var f=e.history,m,F=e.sel,U=n=="undo"?f.done:f.undone,H=n=="undo"?f.undone:f.done,Z=0;Z<U.length&&(m=U[Z],!(u?m.ranges&&!m.equals(e.sel):!m.ranges));Z++);if(Z!=U.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(m=U.pop(),m.ranges){if(Xo(m,H),u&&!m.equals(e.sel)){Xr(e,m,{clearRedo:!1});return}F=m}else if(l){U.push(m);return}else break;var be=[];Xo(F,H),H.push({changes:be,generation:f.generation}),f.generation=m.generation||++f.maxGeneration;for(var Ce=Be(e,"beforeChange")||e.cm&&Be(e.cm,"beforeChange"),De=function(tt){var at=m.changes[tt];if(at.origin=n,Ce&&!ol(e,at,!1))return U.length=0,{};be.push(ei(e,at));var ct=tt?el(e,at):Ct(U);_o(e,at,ct,Wa(e,at)),!tt&&e.cm&&e.cm.scrollIntoView({from:at.from,to:Fi(at)});var gt=[];ki(e,function(dt,xt){!xt&&ht(gt,dt.history)==-1&&(ll(dt.history,at),gt.push(dt.history)),_o(dt,at,null,Wa(dt,at))})},ke=m.changes.length-1;ke>=0;--ke){var Ye=De(ke);if(Ye)return Ye.v}}}}function al(e,n){if(n!=0&&(e.first+=n,e.sel=new mn(Wt(e.sel.ranges,function(f){return new er(ot(f.anchor.line+n,f.anchor.ch),ot(f.head.line+n,f.head.ch))}),e.sel.primIndex),e.cm)){Rr(e.cm,e.first,e.first-n,n);for(var u=e.cm.display,l=u.viewFrom;l<u.viewTo;l++)qn(e.cm,l,"gutter")}}function _o(e,n,u,l){if(e.cm&&!e.cm.curOp)return jr(e.cm,_o)(e,n,u,l);if(n.to.line<e.first){al(e,n.text.length-1-(n.to.line-n.from.line));return}if(!(n.from.line>e.lastLine())){if(n.from.line<e.first){var f=n.text.length-1-(e.first-n.from.line);al(e,f),n={from:ot(e.first,0),to:ot(n.to.line+f,n.to.ch),text:[Ct(n.text)],origin:n.origin}}var m=e.lastLine();n.to.line>m&&(n={from:n.from,to:ot(m,Tt(e,m).text.length),text:[n.text[0]],origin:n.origin}),n.removed=ii(e,n.from,n.to),u||(u=el(e,n)),e.cm?fc(e.cm,n,l):tl(e,n,l),Ga(e,u,ut),e.cantEdit&&Zo(e,ot(e.firstLine(),0))&&(e.cantEdit=!1)}}function fc(e,n,u){var l=e.doc,f=e.display,m=n.from,F=n.to,U=!1,H=m.line;e.options.lineWrapping||(H=Zt(Wn(Tt(l,m.line))),l.iter(H,F.line+1,function(ke){if(ke==f.maxLine)return U=!0,!0})),l.sel.contains(n.from,n.to)>-1&&Ae(e),tl(l,n,u,fu(e)),e.options.lineWrapping||(l.iter(H,m.line+n.text.length,function(ke){var Ye=ji(ke);Ye>f.maxLineLength&&(f.maxLine=ke,f.maxLineLength=Ye,f.maxLineChanged=!0,U=!1)}),U&&(e.curOp.updateMaxLine=!0)),Df(l,m.line),Gn(e,400);var Z=n.text.length-(F.line-m.line)-1;n.full?Rr(e):m.line==F.line&&n.text.length==1&&!ja(e.doc,n)?qn(e,m.line,"text"):Rr(e,m.line,F.line+1,Z);var be=Be(e,"changes"),Ce=Be(e,"change");if(Ce||be){var De={from:m,to:F,text:n.text,removed:n.removed,origin:n.origin};Ce&&ir(e,"change",e,De),be&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(De)}e.display.selForContextMenu=null}function go(e,n,u,l,f){var m;l||(l=u),Lt(l,u)<0&&(m=[l,u],u=m[0],l=m[1]),typeof n=="string"&&(n=e.splitLines(n)),vo(e,{from:u,to:l,text:n,origin:f})}function sl(e,n,u,l){u<e.line?e.line+=l:n<e.line&&(e.line=n,e.ch=0)}function Bu(e,n,u,l){for(var f=0;f<e.length;++f){var m=e[f],F=!0;if(m.ranges){m.copied||(m=e[f]=m.deepCopy(),m.copied=!0);for(var U=0;U<m.ranges.length;U++)sl(m.ranges[U].anchor,n,u,l),sl(m.ranges[U].head,n,u,l);continue}for(var H=0;H<m.changes.length;++H){var Z=m.changes[H];if(u<Z.from.line)Z.from=ot(Z.from.line+l,Z.from.ch),Z.to=ot(Z.to.line+l,Z.to.ch);else if(n<=Z.to.line){F=!1;break}}F||(e.splice(0,f+1),f=0)}}function ll(e,n){var u=n.from.line,l=n.to.line,f=n.text.length-(l-u)-1;Bu(e.done,u,l,f),Bu(e.undone,u,l,f)}function eo(e,n,u,l){var f=n,m=n;return typeof n=="number"?m=Tt(e,st(e,n)):f=Zt(n),f==null?null:(l(m,f)&&e.cm&&qn(e.cm,f,u),m)}function yo(e){this.lines=e,this.parent=null;for(var n=0,u=0;u<e.length;++u)e[u].parent=this,n+=e[u].height;this.height=n}yo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,n){for(var u=e,l=e+n;u<l;++u){var f=this.lines[u];this.height-=f.height,Wi(f),ir(f,"delete")}this.lines.splice(e,n)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,n,u){this.height+=u,this.lines=this.lines.slice(0,e).concat(n).concat(this.lines.slice(e));for(var l=0;l<n.length;++l)n[l].parent=this},iterN:function(e,n,u){for(var l=e+n;e<l;++e)if(u(this.lines[e]))return!0}};function mo(e){this.children=e;for(var n=0,u=0,l=0;l<e.length;++l){var f=e[l];n+=f.chunkSize(),u+=f.height,f.parent=this}this.size=n,this.height=u,this.parent=null}mo.prototype={chunkSize:function(){return this.size},removeInner:function(e,n){this.size-=n;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(e<f){var m=Math.min(n,f-e),F=l.height;if(l.removeInner(e,m),this.height-=F-l.height,f==m&&(this.children.splice(u--,1),l.parent=null),(n-=m)==0)break;e=0}else e-=f}if(this.size-n<25&&(this.children.length>1||!(this.children[0]instanceof yo))){var U=[];this.collapse(U),this.children=[new yo(U)],this.children[0].parent=this}},collapse:function(e){for(var n=0;n<this.children.length;++n)this.children[n].collapse(e)},insertInner:function(e,n,u){this.size+=n.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(e<=m){if(f.insertInner(e,n,u),f.lines&&f.lines.length>50){for(var F=f.lines.length%25+25,U=F;U<f.lines.length;){var H=new yo(f.lines.slice(U,U+=25));f.height-=H.height,this.children.splice(++l,0,H),H.parent=this}f.lines=f.lines.slice(0,F),this.maybeSpill()}break}e-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var n=e.children.splice(e.children.length-5,5),u=new mo(n);if(e.parent){e.size-=u.size,e.height-=u.height;var f=ht(e.parent.children,e);e.parent.children.splice(f+1,0,u)}else{var l=new mo(e.children);l.parent=e,e.children=[l,u],e=l}u.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,n,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(e<m){var F=Math.min(n,m-e);if(f.iterN(e,F,u))return!0;if((n-=F)==0)break;e=0}else e-=m}}};var qo=function(e,n,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=e,this.node=n};qo.prototype.clear=function(){var e=this.doc.cm,n=this.line.widgets,u=this.line,l=Zt(u);if(!(l==null||!n)){for(var f=0;f<n.length;++f)n[f]==this&&n.splice(f--,1);n.length||(u.widgets=null);var m=Ot(this);An(u,Math.max(0,u.height-m)),e&&(Ur(e,function(){ul(e,u,-m),qn(e,l,"widget")}),ir(e,"lineWidgetCleared",e,this,l))}},qo.prototype.changed=function(){var e=this,n=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Ot(this)-n;!f||(ai(this.doc,l)||An(l,l.height+f),u&&Ur(u,function(){u.curOp.forceUpdate=!0,ul(u,l,f),ir(u,"lineWidgetChanged",u,e,Zt(l))}))},Ue(qo);function ul(e,n,u){si(n)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Ys(e,u)}function cc(e,n,u,l){var f=new qo(e,u,l),m=e.cm;return m&&f.noHScroll&&(m.display.alignWidgets=!0),eo(e,n,"widget",function(F){var U=F.widgets||(F.widgets=[]);if(f.insertAt==null?U.push(f):U.splice(Math.min(U.length,Math.max(0,f.insertAt)),0,f),f.line=F,m&&!ai(e,F)){var H=si(F)<e.scrollTop;An(F,F.height+Ot(f)),H&&Ys(m,f.height),m.curOp.forceUpdate=!0}return!0}),m&&ir(m,"lineWidgetAdded",m,f,typeof n=="number"?n:Zt(n)),f}var Ka=0,ti=function(e,n){this.lines=[],this.type=n,this.doc=e,this.id=++Ka};ti.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&Ti(e),Be(this,"clear")){var u=this.find();u&&ir(this,"clear",u.from,u.to)}for(var l=null,f=null,m=0;m<this.lines.length;++m){var F=this.lines[m],U=Po(F.markedSpans,this);e&&!this.collapsed?qn(e,Zt(F),"text"):e&&(U.to!=null&&(f=Zt(F)),U.from!=null&&(l=Zt(F))),F.markedSpans=jf(F.markedSpans,U),U.from==null&&this.collapsed&&!ai(this.doc,F)&&e&&An(F,uo(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var H=0;H<this.lines.length;++H){var Z=Wn(this.lines[H]),be=ji(Z);be>e.display.maxLineLength&&(e.display.maxLine=Z,e.display.maxLineLength=be,e.display.maxLineChanged=!0)}l!=null&&e&&this.collapsed&&Rr(e,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Lu(e.doc)),e&&ir(e,"markerCleared",e,this,l,f),n&&Pi(e),this.parent&&this.parent.clear()}},ti.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var u,l,f=0;f<this.lines.length;++f){var m=this.lines[f],F=Po(m.markedSpans,this);if(F.from!=null&&(u=ot(n?m:Zt(m),F.from),e==-1))return u;if(F.to!=null&&(l=ot(n?m:Zt(m),F.to),e==1))return l}return u&&{from:u,to:l}},ti.prototype.changed=function(){var e=this,n=this.find(-1,!0),u=this,l=this.doc.cm;!n||!l||Ur(l,function(){var f=n.line,m=Zt(n.line),F=Rs(l,m);if(F&&(Ns(F),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!ai(u.doc,f)&&u.height!=null){var U=u.height;u.height=null;var H=Ot(u)-U;H&&An(f,f.height+H)}ir(l,"markerChanged",l,e)})},ti.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(!n.maybeHiddenMarkers||ht(n.maybeHiddenMarkers,this)==-1)&&(n.maybeUnhiddenMarkers||(n.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ti.prototype.detachLine=function(e){if(this.lines.splice(ht(this.lines,e),1),!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(n.maybeHiddenMarkers||(n.maybeHiddenMarkers=[])).push(this)}},Ue(ti);function to(e,n,u,l,f){if(l&&l.shared)return dc(e,n,u,l,f);if(e.cm&&!e.cm.curOp)return jr(e.cm,to)(e,n,u,l,f);var m=new ti(e,f),F=Lt(n,u);if(l&&Ze(l,m,!1),F>0||F==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=he("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(xa(e,n.line,n,u,m)||n.line!=u.line&&xa(e,u.line,n,u,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");Uf()}m.addToHistory&&Iu(e,{from:n,to:u,origin:"markText"},e.sel,NaN);var U=n.line,H=e.cm,Z;if(e.iter(U,u.line+1,function(Ce){H&&m.collapsed&&!H.options.lineWrapping&&Wn(Ce)==H.display.maxLine&&(Z=!0),m.collapsed&&U!=n.line&&An(Ce,0),Id(Ce,new ma(m,U==n.line?n.ch:null,U==u.line?u.ch:null),e.cm&&e.cm.curOp),++U}),m.collapsed&&e.iter(n.line,u.line+1,function(Ce){ai(e,Ce)&&An(Ce,0)}),m.clearOnEnter&&N(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(Bf(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),m.collapsed&&(m.id=++Ka,m.atomic=!0),H){if(Z&&(H.curOp.updateMaxLine=!0),m.collapsed)Rr(H,n.line,u.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var be=n.line;be<=u.line;be++)qn(H,be,"text");m.atomic&&Lu(H.doc),ir(H,"markerAdded",H,m)}return m}var xo=function(e,n){this.markers=e,this.primary=n;for(var u=0;u<e.length;++u)e[u].parent=this};xo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();ir(this,"clear")}},xo.prototype.find=function(e,n){return this.primary.find(e,n)},Ue(xo);function dc(e,n,u,l,f){l=Ze(l),l.shared=!1;var m=[to(e,n,u,l,f)],F=m[0],U=l.widgetNode;return ki(e,function(H){U&&(l.widgetNode=U.cloneNode(!0)),m.push(to(H,lt(H,n),lt(H,u),l,f));for(var Z=0;Z<H.linked.length;++Z)if(H.linked[Z].isParent)return;F=Ct(m)}),new xo(m,F)}function Uu(e){return e.findMarks(ot(e.first,0),e.clipPos(ot(e.lastLine())),function(n){return n.parent})}function fl(e,n){for(var u=0;u<n.length;u++){var l=n[u],f=l.find(),m=e.clipPos(f.from),F=e.clipPos(f.to);if(Lt(m,F)){var U=to(e,m,F,l.primary,l.primary.type);l.markers.push(U),U.parent=l}}}function pc(e){for(var n=function(l){var f=e[l],m=[f.primary.doc];ki(f.primary.doc,function(H){return m.push(H)});for(var F=0;F<f.markers.length;F++){var U=f.markers[F];ht(m,U.doc)==-1&&(U.parent=null,f.markers.splice(F--,1))}},u=0;u<e.length;u++)n(u)}var hc=0,un=function(e,n,u,l,f){if(!(this instanceof un))return new un(e,n,u,l,f);u==null&&(u=0),mo.call(this,[new yo([new Vi("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var m=ot(u,0);this.sel=Ii(m),this.history=new Jo(null),this.id=++hc,this.modeOption=n,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),tl(this,{from:m,to:m,text:e}),Xr(this,Ii(m),ut)};un.prototype=St(mo.prototype,{constructor:un,iter:function(e,n,u){u?this.iterN(e-this.first,n-e,u):this.iterN(this.first,this.first+this.size,e)},insert:function(e,n){for(var u=0,l=0;l<n.length;++l)u+=n[l].height;this.insertInner(e-this.first,n,u)},remove:function(e,n){this.removeInner(e-this.first,n)},getValue:function(e){var n=Si(this,this.first,this.first+this.size);return e===!1?n:n.join(e||this.lineSeparator())},setValue:cr(function(e){var n=ot(this.first,0),u=this.first+this.size-1;vo(this,{from:n,to:ot(u,Tt(this,u).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Ho(this.cm,0,0),Xr(this,Ii(n),ut)}),replaceRange:function(e,n,u,l){n=lt(this,n),u=u?lt(this,u):n,go(this,e,n,u,l)},getRange:function(e,n,u){var l=ii(this,lt(this,e),lt(this,n));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(e){var n=this.getLineHandle(e);return n&&n.text},getLineHandle:function(e){if(Zn(this,e))return Tt(this,e)},getLineNumber:function(e){return Zt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Tt(this,e)),Wn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return lt(this,e)},getCursor:function(e){var n=this.sel.primary(),u;return e==null||e=="head"?u=n.head:e=="anchor"?u=n.anchor:e=="end"||e=="to"||e===!1?u=n.to():u=n.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:cr(function(e,n,u){il(this,lt(this,typeof e=="number"?ot(e,n||0):e),null,u)}),setSelection:cr(function(e,n,u){il(this,lt(this,e),lt(this,n||e),u)}),extendSelection:cr(function(e,n,u){Ha(this,lt(this,e),n&<(this,n),u)}),extendSelections:cr(function(e,n){ku(this,Xt(this,e),n)}),extendSelectionsBy:cr(function(e,n){var u=Wt(this.sel.ranges,e);ku(this,Xt(this,u),n)}),setSelections:cr(function(e,n,u){if(!!e.length){for(var l=[],f=0;f<e.length;f++)l[f]=new er(lt(this,e[f].anchor),lt(this,e[f].head||e[f].anchor));n==null&&(n=Math.min(e.length-1,this.sel.primIndex)),Xr(this,En(this.cm,l,n),u)}}),addSelection:cr(function(e,n,u){var l=this.sel.ranges.slice(0);l.push(new er(lt(this,e),lt(this,n||e))),Xr(this,En(this.cm,l,l.length-1),u)}),getSelection:function(e){for(var n=this.sel.ranges,u,l=0;l<n.length;l++){var f=ii(this,n[l].from(),n[l].to());u=u?u.concat(f):f}return e===!1?u:u.join(e||this.lineSeparator())},getSelections:function(e){for(var n=[],u=this.sel.ranges,l=0;l<u.length;l++){var f=ii(this,u[l].from(),u[l].to());e!==!1&&(f=f.join(e||this.lineSeparator())),n[l]=f}return n},replaceSelection:function(e,n,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=e;this.replaceSelections(l,n,u||"+input")},replaceSelections:cr(function(e,n,u){for(var l=[],f=this.sel,m=0;m<f.ranges.length;m++){var F=f.ranges[m];l[m]={from:F.from(),to:F.to(),text:this.splitLines(e[m]),origin:u}}for(var U=n&&n!="end"&&ac(this,l,n),H=l.length-1;H>=0;H--)vo(this,l[H]);U?Mu(this,U):this.cm&&rn(this.cm)}),undo:cr(function(){Fn(this,"undo")}),redo:cr(function(){Fn(this,"redo")}),undoSelection:cr(function(){Fn(this,"undo",!0)}),redoSelection:cr(function(){Fn(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,n=0,u=0,l=0;l<e.done.length;l++)e.done[l].ranges||++n;for(var f=0;f<e.undone.length;f++)e.undone[f].ranges||++u;return{undo:n,redo:u}},clearHistory:function(){var e=this;this.history=new Jo(this.history),ki(this,function(n){return n.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:po(this.history.done),undone:po(this.history.undone)}},setHistory:function(e){var n=this.history=new Jo(this.history);n.done=po(e.done.slice(0),null,!0),n.undone=po(e.undone.slice(0),null,!0)},setGutterMarker:cr(function(e,n,u){return eo(this,e,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[n]=u,!u&&$(f)&&(l.gutterMarkers=null),!0})}),clearGutter:cr(function(e){var n=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[e]&&eo(n,u,"gutter",function(){return u.gutterMarkers[e]=null,$(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(e){var n;if(typeof e=="number"){if(!Zn(this,e)||(n=e,e=Tt(this,e),!e))return null}else if(n=Zt(e),n==null)return null;return{line:n,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:cr(function(e,n,u){return eo(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass";if(!l[f])l[f]=u;else{if(ce(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:cr(function(e,n,u){return eo(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass",m=l[f];if(m)if(u==null)l[f]=null;else{var F=m.match(ce(u));if(!F)return!1;var U=F.index+F[0].length;l[f]=m.slice(0,F.index)+(!F.index||U==m.length?"":" ")+m.slice(U)||null}else return!1;return!0})}),addLineWidget:cr(function(e,n,u){return cc(this,e,n,u)}),removeLineWidget:function(e){e.clear()},markText:function(e,n,u){return to(this,lt(this,e),lt(this,n),u,u&&u.type||"range")},setBookmark:function(e,n){var u={replacedWith:n&&(n.nodeType==null?n.widget:n),insertLeft:n&&n.insertLeft,clearWhenEmpty:!1,shared:n&&n.shared,handleMouseEvents:n&&n.handleMouseEvents};return e=lt(this,e),to(this,e,e,u,"bookmark")},findMarksAt:function(e){e=lt(this,e);var n=[],u=Tt(this,e.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var f=u[l];(f.from==null||f.from<=e.ch)&&(f.to==null||f.to>=e.ch)&&n.push(f.marker.parent||f.marker)}return n},findMarks:function(e,n,u){e=lt(this,e),n=lt(this,n);var l=[],f=e.line;return this.iter(e.line,n.line+1,function(m){var F=m.markedSpans;if(F)for(var U=0;U<F.length;U++){var H=F[U];!(H.to!=null&&f==e.line&&e.ch>=H.to||H.from==null&&f!=e.line||H.from!=null&&f==n.line&&H.from>=n.ch)&&(!u||u(H.marker))&&l.push(H.marker.parent||H.marker)}++f}),l},getAllMarks:function(){var e=[];return this.iter(function(n){var u=n.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&e.push(u[l].marker)}),e},posFromIndex:function(e){var n,u=this.first,l=this.lineSeparator().length;return this.iter(function(f){var m=f.text.length+l;if(m>e)return n=e,!0;e-=m,++u}),lt(this,ot(u,n))},indexFromPos:function(e){e=lt(this,e);var n=e.ch;if(e.line<this.first||e.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,e.line,function(l){n+=l.text.length+u}),n},copy:function(e){var n=new un(Si(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return n.scrollTop=this.scrollTop,n.scrollLeft=this.scrollLeft,n.sel=this.sel,n.extend=!1,e&&(n.history.undoDepth=this.history.undoDepth,n.setHistory(this.getHistory())),n},linkedDoc:function(e){e||(e={});var n=this.first,u=this.first+this.size;e.from!=null&&e.from>n&&(n=e.from),e.to!=null&&e.to<u&&(u=e.to);var l=new un(Si(this,n,u),e.mode||this.modeOption,n,this.lineSep,this.direction);return e.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:e.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],fl(l,Uu(this)),l},unlinkDoc:function(e){if(e instanceof dr&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n){var u=this.linked[n];if(u.doc==e){this.linked.splice(n,1),e.unlinkDoc(this),pc(Uu(this));break}}if(e.history==this.history){var l=[e.id];ki(e,function(f){return l.push(f.id)},!0),e.history=new Jo(null),e.history.done=po(this.history.done,l),e.history.undone=po(this.history.undone,l)}},iterLinkedDocs:function(e){ki(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Bn(e)},lineSeparator:function(){return this.lineSep||`
|
|
28
|
+
`},setDirection:cr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(n){return n.order=null}),this.cm&&Yo(this.cm))})}),un.prototype.eachLine=un.prototype.iter;var ju=0;function vc(e){var n=this;if(Vu(n),!(pe(n,e)||li(n.display,e))){Qe(e),b&&(ju=+new Date);var u=Ki(n,e,!0),l=e.dataTransfer.files;if(!(!u||n.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,m=Array(f),F=0,U=function(){++F==f&&jr(n,function(){u=lt(n.doc,u);var ke={from:u,to:u,text:n.doc.splitLines(m.filter(function(Ye){return Ye!=null}).join(n.doc.lineSeparator())),origin:"paste"};vo(n.doc,ke),Mu(n.doc,Ii(lt(n.doc,u),lt(n.doc,Fi(ke))))})()},H=function(ke,Ye){if(n.options.allowDropFileTypes&&ht(n.options.allowDropFileTypes,ke.type)==-1){U();return}var tt=new FileReader;tt.onerror=function(){return U()},tt.onload=function(){var at=tt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(at)){U();return}m[Ye]=at,U()},tt.readAsText(ke)},Z=0;Z<l.length;Z++)H(l[Z],Z);else{if(n.state.draggingText&&n.doc.sel.contains(u)>-1){n.state.draggingText(e),setTimeout(function(){return n.display.input.focus()},20);return}try{var be=e.dataTransfer.getData("Text");if(be){var Ce;if(n.state.draggingText&&!n.state.draggingText.copy&&(Ce=n.listSelections()),Ga(n.doc,Ii(u,u)),Ce)for(var De=0;De<Ce.length;++De)go(n.doc,"",Ce[De].anchor,Ce[De].head,"drag");n.replaceSelection(be,"around","paste"),n.display.input.focus()}}catch(ke){}}}}function gc(e,n){if(b&&(!e.state.draggingText||+new Date-ju<100)){Bt(n);return}if(!(pe(e,n)||li(e.display,n))&&(n.dataTransfer.setData("Text",e.getSelection()),n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setDragImage&&!j)){var u=we("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",B&&(u.width=u.height=1,e.display.wrapper.appendChild(u),u._top=u.offsetTop),n.dataTransfer.setDragImage(u,0,0),B&&u.parentNode.removeChild(u)}}function yc(e,n){var u=Ki(e,n);if(!!u){var l=document.createDocumentFragment();Hs(e,u,l),e.display.dragCursor||(e.display.dragCursor=we("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),xe(e.display.dragCursor,l)}}function Vu(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ya(e){if(!!document.getElementsByClassName){for(var n=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<n.length;l++){var f=n[l].CodeMirror;f&&u.push(f)}u.length&&u[0].operation(function(){for(var m=0;m<u.length;m++)e(u[m])})}}var ea=!1;function Wu(){ea||(mc(),ea=!0)}function mc(){var e;N(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Ya(xc)},100))}),N(window,"blur",function(){return Ya(fo)})}function xc(e){var n=e.display;n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.scrollbarsClipped=!1,e.setSize()}for(var xn={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ta=0;ta<10;ta++)xn[ta+48]=xn[ta+96]=String(ta);for(var ra=65;ra<=90;ra++)xn[ra]=String.fromCharCode(ra);for(var bo=1;bo<=12;bo++)xn[bo+111]=xn[bo+63235]="F"+bo;var ri={};ri.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ri.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ri.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ri.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ri.default=C?ri.macDefault:ri.pcDefault;function Hu(e){var n=e.split(/-(?!$)/);e=n[n.length-1];for(var u,l,f,m,F=0;F<n.length-1;F++){var U=n[F];if(/^(cmd|meta|m)$/i.test(U))m=!0;else if(/^a(lt)?$/i.test(U))u=!0;else if(/^(c|ctrl|control)$/i.test(U))l=!0;else if(/^s(hift)?$/i.test(U))f=!0;else throw new Error("Unrecognized modifier name: "+U)}return u&&(e="Alt-"+e),l&&(e="Ctrl-"+e),m&&(e="Cmd-"+e),f&&(e="Shift-"+e),e}function Rd(e){var n={};for(var u in e)if(e.hasOwnProperty(u)){var l=e[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete e[u];continue}for(var f=Wt(u.split(" "),Hu),m=0;m<f.length;m++){var F=void 0,U=void 0;m==f.length-1?(U=f.join(" "),F=l):(U=f.slice(0,m+1).join(" "),F="...");var H=n[U];if(!H)n[U]=F;else if(H!=F)throw new Error("Inconsistent bindings for "+U)}delete e[u]}for(var Z in n)e[Z]=n[Z];return e}function pi(e,n,u,l){n=Ja(n);var f=n.call?n.call(e,l):n[e];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&u(f))return"handled";if(n.fallthrough){if(Object.prototype.toString.call(n.fallthrough)!="[object Array]")return pi(e,n.fallthrough,u,l);for(var m=0;m<n.fallthrough.length;m++){var F=pi(e,n.fallthrough[m],u,l);if(F)return F}}}function zu(e){var n=typeof e=="string"?e:xn[e.keyCode];return n=="Ctrl"||n=="Alt"||n=="Shift"||n=="Mod"}function cl(e,n,u){var l=e;return n.altKey&&l!="Alt"&&(e="Alt-"+e),(Q?n.metaKey:n.ctrlKey)&&l!="Ctrl"&&(e="Ctrl-"+e),(Q?n.ctrlKey:n.metaKey)&&l!="Mod"&&(e="Cmd-"+e),!u&&n.shiftKey&&l!="Shift"&&(e="Shift-"+e),e}function Gu(e,n){if(B&&e.keyCode==34&&e.char)return!1;var u=xn[e.keyCode];return u==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(u=e.code),cl(u,e,n))}function Ja(e){return typeof e=="string"?ri[e]:e}function ro(e,n){for(var u=e.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var m=n(u[f]);l.length&&Lt(m.from,Ct(l).to)<=0;){var F=l.pop();if(Lt(F.from,m.from)<0){m.from=F.from;break}}l.push(m)}Ur(e,function(){for(var U=l.length-1;U>=0;U--)go(e.doc,"",l[U].from,l[U].to,"+delete");rn(e)})}function Xa(e,n,u){var l=$e(e.text,n+u,u);return l<0||l>e.text.length?null:l}function Qa(e,n,u){var l=Xa(e,n.ch,u);return l==null?null:new ot(n.line,l,u<0?"after":"before")}function dl(e,n,u,l,f){if(e){n.doc.direction=="rtl"&&(f=-f);var m=O(u,n.doc.direction);if(m){var F=f<0?Ct(m):m[0],U=f<0==(F.level==1),H=U?"after":"before",Z;if(F.level>0||n.doc.direction=="rtl"){var be=_n(n,u);Z=f<0?u.text.length-1:0;var Ce=Hn(n,be,Z).top;Z=Ke(function(De){return Hn(n,be,De).top==Ce},f<0==(F.level==1)?F.from:F.to-1,Z),H=="before"&&(Z=Xa(u,Z,1))}else Z=f<0?F.to:F.from;return new ot(l,Z,H)}}return new ot(l,f<0?u.text.length:0,f<0?"before":"after")}function $u(e,n,u,l){var f=O(n,e.doc.direction);if(!f)return Qa(n,u,l);u.ch>=n.text.length?(u.ch=n.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var m=K(f,u.ch,u.sticky),F=f[m];if(e.doc.direction=="ltr"&&F.level%2==0&&(l>0?F.to>u.ch:F.from<u.ch))return Qa(n,u,l);var U=function(ct,gt){return Xa(n,ct instanceof ot?ct.ch:ct,gt)},H,Z=function(ct){return e.options.lineWrapping?(H=H||_n(e,n),uu(e,n,H,ct)):{begin:0,end:n.text.length}},be=Z(u.sticky=="before"?U(u,-1):u.ch);if(e.doc.direction=="rtl"||F.level==1){var Ce=F.level==1==l<0,De=U(u,Ce?1:-1);if(De!=null&&(Ce?De<=F.to&&De<=be.end:De>=F.from&&De>=be.begin)){var ke=Ce?"before":"after";return new ot(u.line,De,ke)}}var Ye=function(ct,gt,dt){for(var xt=function(Gt,hr){return hr?new ot(u.line,U(Gt,1),"before"):new ot(u.line,Gt,"after")};ct>=0&&ct<f.length;ct+=gt){var Ft=f[ct],It=gt>0==(Ft.level!=1),it=It?dt.begin:U(dt.end,-1);if(Ft.from<=it&&it<Ft.to||(it=It?Ft.from:U(Ft.to,-1),dt.begin<=it&&it<dt.end))return xt(it,It)}},tt=Ye(m+l,l,be);if(tt)return tt;var at=l>0?be.end:U(be.begin,-1);return at!=null&&!(l>0&&at==n.text.length)&&(tt=Ye(l>0?0:f.length-1,l,Z(at)),tt)?tt:null}var na={selectAll:$a,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ut)},killLine:function(e){return ro(e,function(n){if(n.empty()){var u=Tt(e.doc,n.head.line).text.length;return n.head.ch==u&&n.head.line<e.lastLine()?{from:n.head,to:ot(n.head.line+1,0)}:{from:n.head,to:ot(n.head.line,u)}}else return{from:n.from(),to:n.to()}})},deleteLine:function(e){return ro(e,function(n){return{from:ot(n.from().line,0),to:lt(e.doc,ot(n.to().line+1,0))}})},delLineLeft:function(e){return ro(e,function(n){return{from:ot(n.from().line,0),to:n.from()}})},delWrappedLineLeft:function(e){return ro(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return{from:l,to:n.from()}})},delWrappedLineRight:function(e){return ro(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div");return{from:n.from(),to:l}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ot(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ot(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(n){return wo(e,n.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(n){return Za(e,n.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(n){return bc(e,n.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div")},mt)},goLineLeft:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:0,top:u},"div")},mt)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return l.ch<e.getLine(l.line).search(/\S/)?Za(e,n.head):l},mt)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var n=[],u=e.listSelections(),l=e.options.tabSize,f=0;f<u.length;f++){var m=u[f].from(),F=Xe(e.getLine(m.line),m.ch,l);n.push(kt(l-F%l))}e.replaceSelections(n)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ur(e,function(){for(var n=e.listSelections(),u=[],l=0;l<n.length;l++)if(!!n[l].empty()){var f=n[l].head,m=Tt(e.doc,f.line).text;if(m){if(f.ch==m.length&&(f=new ot(f.line,f.ch-1)),f.ch>0)f=new ot(f.line,f.ch+1),e.replaceRange(m.charAt(f.ch-1)+m.charAt(f.ch-2),ot(f.line,f.ch-2),f,"+transpose");else if(f.line>e.doc.first){var F=Tt(e.doc,f.line-1).text;F&&(f=new ot(f.line,1),e.replaceRange(m.charAt(0)+e.doc.lineSeparator()+F.charAt(F.length-1),ot(f.line-1,F.length-1),f,"+transpose"))}}u.push(new er(f,f))}e.setSelections(u)})},newlineAndIndent:function(e){return Ur(e,function(){for(var n=e.listSelections(),u=n.length-1;u>=0;u--)e.replaceRange(e.doc.lineSeparator(),n[u].anchor,n[u].head,"+input");n=e.listSelections();for(var l=0;l<n.length;l++)e.indentLine(n[l].from().line,null,!0);rn(e)})},openLine:function(e){return e.replaceSelection(`
|
|
29
|
+
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function wo(e,n){var u=Tt(e.doc,n),l=Wn(u);return l!=u&&(n=Zt(l)),dl(!0,e,l,n,1)}function bc(e,n){var u=Tt(e.doc,n),l=Ql(u);return l!=u&&(n=Zt(l)),dl(!0,e,u,n,-1)}function Za(e,n){var u=wo(e,n.line),l=Tt(e.doc,u.line),f=O(l,e.doc.direction);if(!f||f[0].level==0){var m=Math.max(u.ch,l.text.search(/\S/)),F=n.line==u.line&&n.ch<=m&&n.ch;return ot(u.line,F?0:m,u.sticky)}return u}function _a(e,n,u){if(typeof n=="string"&&(n=na[n],!n))return!1;e.display.input.ensurePolled();var l=e.display.shift,f=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),u&&(e.display.shift=!1),f=n(e)!=nt}finally{e.display.shift=l,e.state.suppressEdits=!1}return f}function wc(e,n,u){for(var l=0;l<e.state.keyMaps.length;l++){var f=pi(n,e.state.keyMaps[l],u,e);if(f)return f}return e.options.extraKeys&&pi(n,e.options.extraKeys,u,e)||pi(n,e.options.keyMap,u,e)}var qa=new ft;function ia(e,n,u,l){var f=e.state.keySeq;if(f){if(zu(n))return"handled";if(/\'$/.test(n)?e.state.keySeq=null:qa.set(50,function(){e.state.keySeq==f&&(e.state.keySeq=null,e.display.input.reset())}),Sc(e,f+" "+n,u,l))return!0}return Sc(e,n,u,l)}function Sc(e,n,u,l){var f=wc(e,n,l);return f=="multi"&&(e.state.keySeq=n),f=="handled"&&ir(e,"keyHandled",e,n,u),(f=="handled"||f=="multi")&&(Qe(u),zs(e)),!!f}function Ku(e,n){var u=Gu(n,!0);return u?n.shiftKey&&!e.state.keySeq?ia(e,"Shift-"+u,n,function(l){return _a(e,l,!0)})||ia(e,u,n,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return _a(e,l)}):ia(e,u,n,function(l){return _a(e,l)}):!1}function Ac(e,n,u){return ia(e,"'"+u+"'",n,function(l){return _a(e,l,!0)})}var es=null;function Yu(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&(n.curOp.focus=Fe(),!pe(n,e))){b&&S<11&&e.keyCode==27&&(e.returnValue=!1);var u=e.keyCode;n.display.shift=u==16||e.shiftKey;var l=Ku(n,e);B&&(es=l?u:null,!l&&u==88&&!Tn&&(C?e.metaKey:e.ctrlKey)&&n.replaceSelection("",null,"cut")),c&&!C&&!l&&u==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(n.display.lineDiv.className)&&Ec(n)}}function Ec(e){var n=e.display.lineDiv;Le(n,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(ee(n,"CodeMirror-crosshair"),de(document,"keyup",u),de(document,"mouseover",u))}N(document,"keyup",u),N(document,"mouseover",u)}function Ju(e){e.keyCode==16&&(this.doc.sel.shift=!1),pe(this,e)}function pl(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&!(li(n.display,e)||pe(n,e)||e.ctrlKey&&!e.altKey||C&&e.metaKey)){var u=e.keyCode,l=e.charCode;if(B&&u==es){es=null,Qe(e);return}if(!(B&&(!e.which||e.which<10)&&Ku(n,e))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(Ac(n,e,f)||n.display.input.onKeyPress(e))}}}var Cc=400,hl=function(e,n,u){this.time=e,this.pos=n,this.button=u};hl.prototype.compare=function(e,n,u){return this.time+Cc>e&&Lt(n,this.pos)==0&&u==this.button};var oa,aa;function Oc(e,n){var u=+new Date;return aa&&aa.compare(u,e,n)?(oa=aa=null,"triple"):oa&&oa.compare(u,e,n)?(aa=new hl(u,e,n),oa=null,"double"):(oa=new hl(u,e,n),aa=null,"single")}function Xu(e){var n=this,u=n.display;if(!(pe(n,e)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=e.shiftKey,li(u,e)){g||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!vl(n,e)){var l=Ki(n,e),f=pn(e),m=l?Oc(l,f):"single";window.focus(),f==1&&n.state.selectingText&&n.state.selectingText(e),!(l&&Tc(n,f,l,m,e))&&(f==1?l?Ic(n,l,m,e):Pt(e)==u.scroller&&Qe(e):f==2?(l&&Ha(n.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(Y?n.display.input.onContextMenu(e):Vo(n)))}}}function Tc(e,n,u,l,f){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(n==1?"Left":n==2?"Middle":"Right")+m,ia(e,cl(m,f),f,function(F){if(typeof F=="string"&&(F=na[F]),!F)return!1;var U=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),U=F(e,u)!=nt}finally{e.state.suppressEdits=!1}return U})}function Pc(e,n,u){var l=e.getOption("configureMouse"),f=l?l(e,n,u):{};if(f.unit==null){var m=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=m?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(f.extend==null||e.doc.extend)&&(f.extend=e.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=C?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(C?u.altKey:u.ctrlKey)),f}function Ic(e,n,u,l){b?setTimeout(rt(Gs,e),0):e.curOp.focus=Fe();var f=Pc(e,u,l),m=e.doc.sel,F;e.options.dragDrop&&Nr&&!e.isReadOnly()&&u=="single"&&(F=m.contains(n))>-1&&(Lt((F=m.ranges[F]).from(),n)<0||n.xRel>0)&&(Lt(F.to(),n)>0||n.xRel<0)?ts(e,l,n,f):Fc(e,l,n,f)}function ts(e,n,u,l){var f=e.display,m=!1,F=jr(e,function(Z){g&&(f.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Vo(e)),de(f.wrapper.ownerDocument,"mouseup",F),de(f.wrapper.ownerDocument,"mousemove",U),de(f.scroller,"dragstart",H),de(f.scroller,"drop",F),m||(Qe(Z),l.addNew||Ha(e.doc,u,null,null,l.extend),g&&!j||b&&S==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),U=function(Z){m=m||Math.abs(n.clientX-Z.clientX)+Math.abs(n.clientY-Z.clientY)>=10},H=function(){return m=!0};g&&(f.scroller.draggable=!0),e.state.draggingText=F,F.copy=!l.moveOnDrag,N(f.wrapper.ownerDocument,"mouseup",F),N(f.wrapper.ownerDocument,"mousemove",U),N(f.scroller,"dragstart",H),N(f.scroller,"drop",F),e.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function Qu(e,n,u){if(u=="char")return new er(n,n);if(u=="word")return e.findWordAt(n);if(u=="line")return new er(ot(n.line,0),lt(e.doc,ot(n.line+1,0)));var l=u(e,n);return new er(l.from,l.to)}function Fc(e,n,u,l){b&&Vo(e);var f=e.display,m=e.doc;Qe(n);var F,U,H=m.sel,Z=H.ranges;if(l.addNew&&!l.extend?(U=m.sel.contains(u),U>-1?F=Z[U]:F=new er(u,u)):(F=m.sel.primary(),U=m.sel.primIndex),l.unit=="rectangle")l.addNew||(F=new er(u,u)),u=Ki(e,n,!0,!0),U=-1;else{var be=Qu(e,u,l.unit);l.extend?F=nl(F,be.anchor,be.head,l.extend):F=be}l.addNew?U==-1?(U=Z.length,Xr(m,En(e,Z.concat([F]),U),{scroll:!1,origin:"*mouse"})):Z.length>1&&Z[U].empty()&&l.unit=="char"&&!l.extend?(Xr(m,En(e,Z.slice(0,U).concat(Z.slice(U+1)),0),{scroll:!1,origin:"*mouse"}),H=m.sel):za(m,U,F,yt):(U=0,Xr(m,new mn([F],0),yt),H=m.sel);var Ce=u;function De(dt){if(Lt(Ce,dt)!=0)if(Ce=dt,l.unit=="rectangle"){for(var xt=[],Ft=e.options.tabSize,It=Xe(Tt(m,u.line).text,u.ch,Ft),it=Xe(Tt(m,dt.line).text,dt.ch,Ft),Gt=Math.min(It,it),hr=Math.max(It,it),vr=Math.min(u.line,dt.line),bn=Math.min(e.lastLine(),Math.max(u.line,dt.line));vr<=bn;vr++){var fn=Tt(m,vr).text,Ar=pt(fn,Gt,Ft);Gt==hr?xt.push(new er(ot(vr,Ar),ot(vr,Ar))):fn.length>Ar&&xt.push(new er(ot(vr,Ar),ot(vr,pt(fn,hr,Ft))))}xt.length||xt.push(new er(u,u)),Xr(m,En(e,H.ranges.slice(0,U).concat(xt),U),{origin:"*mouse",scroll:!1}),e.scrollIntoView(dt)}else{var cn=F,Kr=Qu(e,dt,l.unit),Fr=cn.anchor,gr;Lt(Kr.anchor,Fr)>0?(gr=Kr.head,Fr=qe(cn.from(),Kr.anchor)):(gr=Kr.anchor,Fr=Oe(cn.to(),Kr.head));var yr=H.ranges.slice(0);yr[U]=kc(e,new er(lt(m,Fr),gr)),Xr(m,En(e,yr,U),yt)}}var ke=f.wrapper.getBoundingClientRect(),Ye=0;function tt(dt){var xt=++Ye,Ft=Ki(e,dt,!0,l.unit=="rectangle");if(!!Ft)if(Lt(Ft,Ce)!=0){e.curOp.focus=Fe(),De(Ft);var It=Wo(f,m);(Ft.line>=It.to||Ft.line<It.from)&&setTimeout(jr(e,function(){Ye==xt&&tt(dt)}),150)}else{var it=dt.clientY<ke.top?-20:dt.clientY>ke.bottom?20:0;it&&setTimeout(jr(e,function(){Ye==xt&&(f.scroller.scrollTop+=it,tt(dt))}),50)}}function at(dt){e.state.selectingText=!1,Ye=1/0,dt&&(Qe(dt),f.input.focus()),de(f.wrapper.ownerDocument,"mousemove",ct),de(f.wrapper.ownerDocument,"mouseup",gt),m.history.lastSelOrigin=null}var ct=jr(e,function(dt){dt.buttons===0||!pn(dt)?at(dt):tt(dt)}),gt=jr(e,at);e.state.selectingText=gt,N(f.wrapper.ownerDocument,"mousemove",ct),N(f.wrapper.ownerDocument,"mouseup",gt)}function kc(e,n){var u=n.anchor,l=n.head,f=Tt(e.doc,u.line);if(Lt(u,l)==0&&u.sticky==l.sticky)return n;var m=O(f);if(!m)return n;var F=K(m,u.ch,u.sticky),U=m[F];if(U.from!=u.ch&&U.to!=u.ch)return n;var H=F+(U.from==u.ch==(U.level!=1)?0:1);if(H==0||H==m.length)return n;var Z;if(l.line!=u.line)Z=(l.line-u.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var be=K(m,l.ch,l.sticky),Ce=be-F||(l.ch-u.ch)*(U.level==1?-1:1);be==H-1||be==H?Z=Ce<0:Z=Ce>0}var De=m[H+(Z?-1:0)],ke=Z==(De.level==1),Ye=ke?De.from:De.to,tt=ke?"after":"before";return u.ch==Ye&&u.sticky==tt?n:new er(new ot(u.line,Ye,tt),l)}function Zu(e,n,u,l){var f,m;if(n.touches)f=n.touches[0].clientX,m=n.touches[0].clientY;else try{f=n.clientX,m=n.clientY}catch(De){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;l&&Qe(n);var F=e.display,U=F.lineDiv.getBoundingClientRect();if(m>U.bottom||!Be(e,u))return Et(n);m-=U.top-F.viewOffset;for(var H=0;H<e.display.gutterSpecs.length;++H){var Z=F.gutters.childNodes[H];if(Z&&Z.getBoundingClientRect().right>=f){var be=Vn(e.doc,m),Ce=e.display.gutterSpecs[H];return oe(e,u,e,be,Ce.className,n),Et(n)}}}function vl(e,n){return Zu(e,n,"gutterClick",!0)}function _u(e,n){li(e.display,n)||qu(e,n)||pe(e,n,"contextmenu")||Y||e.display.input.onContextMenu(n)}function qu(e,n){return Be(e,"gutterContextMenu")?Zu(e,n,"gutterContextMenu",!1):!1}function ef(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),No(e)}var So={toString:function(){return"CodeMirror.Init"}},tf={},rs={};function rf(e){var n=e.optionHandlers;function u(l,f,m,F){e.defaults[l]=f,m&&(n[l]=F?function(U,H,Z){Z!=So&&m(U,H,Z)}:m)}e.defineOption=u,e.Init=So,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Ua(l)},!0),u("indentUnit",2,Ua,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){_i(l),No(l),Rr(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var m=[],F=l.doc.first;l.doc.iter(function(H){for(var Z=0;;){var be=H.text.indexOf(f,Z);if(be==-1)break;Z=be+f.length,m.push(ot(F,be))}F++});for(var U=m.length-1;U>=0;U--)go(l.doc,f,m[U],ot(m[U].line,m[U].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,f,m){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),m!=So&&l.refresh()}),u("specialCharPlaceholder",Ts,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",R?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,f){return l.getInputField().spellcheck=f},!0),u("autocorrect",!1,function(l,f){return l.getInputField().autocorrect=f},!0),u("autocapitalize",!1,function(l,f){return l.getInputField().autocapitalize=f},!0),u("rtlMoveVisually",!J),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){ef(l),Na(l)},!0),u("keyMap","default",function(l,f,m){var F=Ja(f),U=m!=So&&Ja(m);U&&U.detach&&U.detach(l,F),F.attach&&F.attach(l,U||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Rc,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=Ko(f,l.options.lineNumbers),Na(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?In(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return fi(l)},!0),u("scrollbarStyle","native",function(l){La(l),fi(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,f){l.display.gutterSpecs=Ko(l.options.gutters,f),Na(l)},!0),u("firstLineNumber",1,Na,!0),u("lineNumberFormatter",function(l){return l},Na,!0),u("showCursorWhenSelecting",!1,Oi,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(fo(l),l.display.input.blur()),l.display.input.readOnlyChanged(f)}),u("screenReaderLabel",null,function(l,f){f=f===""?null:f,l.display.input.screenReaderLabelChanged(f)}),u("disableInput",!1,function(l,f){f||l.display.input.reset()},!0),u("dragDrop",!0,Mc),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Oi,!0),u("singleCursorHeightPerLine",!0,Oi,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,_i,!0),u("addModeClass",!1,_i,!0),u("pollInterval",100),u("undoDepth",200,function(l,f){return l.doc.history.undoDepth=f}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,_i,!0),u("moveInputWithCursor",!0,function(l,f){f||l.display.input.resetPosition()}),u("tabindex",null,function(l,f){return l.display.input.getField().tabIndex=f||""}),u("autofocus",null),u("direction","ltr",function(l,f){return l.doc.setDirection(f)},!0),u("phrases",null)}function Mc(e,n,u){var l=u&&u!=So;if(!n!=!l){var f=e.display.dragFunctions,m=n?N:de;m(e.display.scroller,"dragstart",f.start),m(e.display.scroller,"dragenter",f.enter),m(e.display.scroller,"dragover",f.over),m(e.display.scroller,"dragleave",f.leave),m(e.display.scroller,"drop",f.drop)}}function Rc(e){e.options.lineWrapping?(Le(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ee(e.display.wrapper,"CodeMirror-wrap"),As(e)),Ws(e),Rr(e),No(e),setTimeout(function(){return fi(e)},100)}function dr(e,n){var u=this;if(!(this instanceof dr))return new dr(e,n);this.options=n=n?Ze(n):{},Ze(tf,n,!1);var l=n.value;typeof l=="string"?l=new un(l,n.mode,null,n.lineSeparator,n.direction):n.mode&&(l.modeOption=n.mode),this.doc=l;var f=new dr.inputStyles[n.inputStyle](this),m=this.display=new oc(e,l,f,n);m.wrapper.CodeMirror=this,ef(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),La(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ft,keySeq:null,specialChars:null},n.autofocus&&!R&&m.input.focus(),b&&S<11&&setTimeout(function(){return u.display.input.reset(!0)},20),Lc(this),Wu(),Ti(this),this.curOp.forceUpdate=!0,Ou(this,l),n.autofocus&&!R||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&Fa(u)},20):fo(this);for(var F in rs)rs.hasOwnProperty(F)&&rs[F](this,n[F],So);Da(this),n.finishInit&&n.finishInit(this);for(var U=0;U<gl.length;++U)gl[U](this);Pi(this),g&&n.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}dr.defaults=tf,dr.optionHandlers=rs;function Lc(e){var n=e.display;N(n.scroller,"mousedown",jr(e,Xu)),b&&S<11?N(n.scroller,"dblclick",jr(e,function(H){if(!pe(e,H)){var Z=Ki(e,H);if(!(!Z||vl(e,H)||li(e.display,H))){Qe(H);var be=e.findWordAt(Z);Ha(e.doc,be.anchor,be.head)}}})):N(n.scroller,"dblclick",function(H){return pe(e,H)||Qe(H)}),N(n.scroller,"contextmenu",function(H){return _u(e,H)}),N(n.input.getField(),"contextmenu",function(H){n.scroller.contains(H.target)||_u(e,H)});var u,l={end:0};function f(){n.activeTouch&&(u=setTimeout(function(){return n.activeTouch=null},1e3),l=n.activeTouch,l.end=+new Date)}function m(H){if(H.touches.length!=1)return!1;var Z=H.touches[0];return Z.radiusX<=1&&Z.radiusY<=1}function F(H,Z){if(Z.left==null)return!0;var be=Z.left-H.left,Ce=Z.top-H.top;return be*be+Ce*Ce>20*20}N(n.scroller,"touchstart",function(H){if(!pe(e,H)&&!m(H)&&!vl(e,H)){n.input.ensurePolled(),clearTimeout(u);var Z=+new Date;n.activeTouch={start:Z,moved:!1,prev:Z-l.end<=300?l:null},H.touches.length==1&&(n.activeTouch.left=H.touches[0].pageX,n.activeTouch.top=H.touches[0].pageY)}}),N(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),N(n.scroller,"touchend",function(H){var Z=n.activeTouch;if(Z&&!li(n,H)&&Z.left!=null&&!Z.moved&&new Date-Z.start<300){var be=e.coordsChar(n.activeTouch,"page"),Ce;!Z.prev||F(Z,Z.prev)?Ce=new er(be,be):!Z.prev.prev||F(Z,Z.prev.prev)?Ce=e.findWordAt(be):Ce=new er(ot(be.line,0),lt(e.doc,ot(be.line+1,0))),e.setSelection(Ce.anchor,Ce.head),e.focus(),Qe(H)}f()}),N(n.scroller,"touchcancel",f),N(n.scroller,"scroll",function(){n.scroller.clientHeight&&(zo(e,n.scroller.scrollTop),Xi(e,n.scroller.scrollLeft,!0),oe(e,"scroll",e))}),N(n.scroller,"mousewheel",function(H){return Au(e,H)}),N(n.scroller,"DOMMouseScroll",function(H){return Au(e,H)}),N(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(H){pe(e,H)||Bt(H)},over:function(H){pe(e,H)||(yc(e,H),Bt(H))},start:function(H){return gc(e,H)},drop:jr(e,vc),leave:function(H){pe(e,H)||Vu(e)}};var U=n.input.getField();N(U,"keyup",function(H){return Ju.call(e,H)}),N(U,"keydown",jr(e,Yu)),N(U,"keypress",jr(e,pl)),N(U,"focus",function(H){return Fa(e,H)}),N(U,"blur",function(H){return fo(e,H)})}var gl=[];dr.defineInitHook=function(e){return gl.push(e)};function Ao(e,n,u,l){var f=e.doc,m;u==null&&(u="add"),u=="smart"&&(f.mode.indent?m=en(e,n).state:u="prev");var F=e.options.tabSize,U=Tt(f,n),H=Xe(U.text,null,F);U.stateAfter&&(U.stateAfter=null);var Z=U.text.match(/^\s*/)[0],be;if(!l&&!/\S/.test(U.text))be=0,u="not";else if(u=="smart"&&(be=f.mode.indent(m,U.text.slice(Z.length),U.text),be==nt||be>150)){if(!l)return;u="prev"}u=="prev"?n>f.first?be=Xe(Tt(f,n-1).text,null,F):be=0:u=="add"?be=H+e.options.indentUnit:u=="subtract"?be=H-e.options.indentUnit:typeof u=="number"&&(be=H+u),be=Math.max(0,be);var Ce="",De=0;if(e.options.indentWithTabs)for(var ke=Math.floor(be/F);ke;--ke)De+=F,Ce+=" ";if(De<be&&(Ce+=kt(be-De)),Ce!=Z)return go(f,Ce,ot(n,0),ot(n,Z.length),"+input"),U.stateAfter=null,!0;for(var Ye=0;Ye<f.sel.ranges.length;Ye++){var tt=f.sel.ranges[Ye];if(tt.head.line==n&&tt.head.ch<Z.length){var at=ot(n,Z.length);za(f,Ye,new er(at,at));break}}}var Cn=null;function sa(e){Cn=e}function yl(e,n,u,l,f){var m=e.doc;e.display.shift=!1,l||(l=m.sel);var F=+new Date-200,U=f=="paste"||e.state.pasteIncoming>F,H=Bn(n),Z=null;if(U&&l.ranges.length>1)if(Cn&&Cn.text.join(`
|
|
30
|
+
`)==n){if(l.ranges.length%Cn.text.length==0){Z=[];for(var be=0;be<Cn.text.length;be++)Z.push(m.splitLines(Cn.text[be]))}}else H.length==l.ranges.length&&e.options.pasteLinesPerSelection&&(Z=Wt(H,function(ct){return[ct]}));for(var Ce=e.curOp.updateInput,De=l.ranges.length-1;De>=0;De--){var ke=l.ranges[De],Ye=ke.from(),tt=ke.to();ke.empty()&&(u&&u>0?Ye=ot(Ye.line,Ye.ch-u):e.state.overwrite&&!U?tt=ot(tt.line,Math.min(Tt(m,tt.line).text.length,tt.ch+Ct(H).length)):U&&Cn&&Cn.lineWise&&Cn.text.join(`
|
|
31
31
|
`)==H.join(`
|
|
32
|
-
`)&&(Ye=tt=at(Ye.line,0)));var ot={from:Ye,to:tt,text:Z?Z[De%Z.length]:H,origin:f||(U?"paste":e.state.cutIncoming>F?"cut":"+input")};ha(e.doc,ot),ir(e,"inputRead",e,ot)}n&&!U&&nf(e,n),rn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ce),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function rf(e,n){var u=e.clipboardData&&e.clipboardData.getData("Text");if(u)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&Br(n,function(){return yl(n,u,0,null,"paste")}),!0}function nf(e,n){if(!(!e.options.electricChars||!e.options.smartIndent))for(var u=e.doc.sel,l=u.ranges.length-1;l>=0;l--){var f=u.ranges[l];if(!(f.head.ch>100||l&&u.ranges[l-1].head.line==f.head.line)){var y=e.getModeAt(f.head),F=!1;if(y.electricChars){for(var U=0;U<y.electricChars.length;U++)if(n.indexOf(y.electricChars.charAt(U))>-1){F=Sa(e,f.head.line,"smart");break}}else y.electricInput&&y.electricInput.test(Tt(e.doc,f.head.line).text.slice(0,f.head.ch))&&(F=Sa(e,f.head.line,"smart"));F&&ir(e,"electricInput",e,f.head.line)}}}function af(e){for(var n=[],u=[],l=0;l<e.doc.sel.ranges.length;l++){var f=e.doc.sel.ranges[l].head.line,y={anchor:at(f,0),head:at(f+1,0)};u.push(y),n.push(e.getRange(y.anchor,y.head))}return{text:n,ranges:u}}function br(e,n,u,l){e.setAttribute("autocorrect",u?"":"off"),e.setAttribute("autocapitalize",l?"":"off"),e.setAttribute("spellcheck",!!n)}function Dc(){var e=be("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),n=be("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?e.style.width="1000px":e.setAttribute("wrap","off"),R&&(e.style.border="1px solid black"),br(e),n}function Nc(e){var n=e.optionHandlers,u=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(l,f){var y=this.options,F=y[l];y[l]==f&&l!="mode"||(y[l]=f,n.hasOwnProperty(l)&&Ur(this,n[l])(this,f,F),ae(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,f){this.state.keyMaps[f?"push":"unshift"](Jo(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,y=0;y<f.length;++y)if(f[y]==l||f[y].name==l)return f.splice(y,1),!0},addOverlay:Mr(function(l,f){var y=l.token?l:e.getMode(this.options,l);if(y.startState)throw new Error("Overlays may not be stateful.");jt(this.state.overlays,{mode:y,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(F){return F.priority}),this.state.modeGen++,Rr(this)}),removeOverlay:Mr(function(l){for(var f=this.state.overlays,y=0;y<f.length;++y){var F=f[y].modeSpec;if(F==l||typeof l=="string"&&F.name==l){f.splice(y,1),this.state.modeGen++,Rr(this);return}}}),indentLine:Mr(function(l,f,y){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),Zn(this.doc,l)&&Sa(this,l,f,y)}),indentSelection:Mr(function(l){for(var f=this.doc.sel.ranges,y=-1,F=0;F<f.length;F++){var U=f[F];if(U.empty())U.head.line>y&&(Sa(this,U.head.line,l,!0),y=U.head.line,F==this.doc.sel.primIndex&&rn(this));else{var H=U.from(),Z=U.to(),xe=Math.max(y,H.line);y=Math.min(this.lastLine(),Z.line-(Z.ch?0:1))+1;for(var Ce=xe;Ce<y;++Ce)Sa(this,Ce,l);var De=this.doc.sel.ranges;H.ch==0&&f.length==De.length&&De[F].from().ch>0&&zo(this.doc,F,new er(H,De[F].to()),ut)}}}),getTokenAt:function(l,f){return ms(this,l,f)},getLineTokens:function(l,f){return ms(this,at(l),f,!0)},getTokenTypeAt:function(l){l=lt(this.doc,l);var f=Wl(this,Tt(this.doc,l.line)),y=0,F=(f.length-1)/2,U=l.ch,H;if(U==0)H=f[2];else for(;;){var Z=y+F>>1;if((Z?f[Z*2-1]:0)>=U)F=Z;else if(f[Z*2+1]<U)y=Z+1;else{H=f[Z*2+2];break}}var xe=H?H.indexOf("overlay "):-1;return xe<0?H:xe==0?null:H.slice(0,xe-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?e.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var y=[];if(!u.hasOwnProperty(f))return y;var F=u[f],U=this.getModeAt(l);if(typeof U[f]=="string")F[U[f]]&&y.push(F[U[f]]);else if(U[f])for(var H=0;H<U[f].length;H++){var Z=F[U[f][H]];Z&&y.push(Z)}else U.helperType&&F[U.helperType]?y.push(F[U.helperType]):F[U.name]&&y.push(F[U.name]);for(var xe=0;xe<F._global.length;xe++){var Ce=F._global[xe];Ce.pred(U,this)&&ht(y,Ce.val)==-1&&y.push(Ce.val)}return y},getStateAfter:function(l,f){var y=this.doc;return l=st(y,l==null?y.first+y.size-1:l),en(this,l+1,f).state},cursorCoords:function(l,f){var y,F=this.doc.sel.primary();return l==null?y=F.head:typeof l=="object"?y=lt(this.doc,l):y=l?F.from():F.to(),zn(this,y,f||"page")},charCoords:function(l,f){return Co(this,lt(this.doc,l),f||"page")},coordsChar:function(l,f){return l=Ua(this,l,f||"page"),Us(this,l.left,l.top)},lineAtHeight:function(l,f){return l=Ua(this,{top:l,left:0},f||"page").top,Vn(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,y){var F=!1,U;if(typeof l=="number"){var H=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>H&&(l=H,F=!0),U=Tt(this.doc,l)}else U=l;return Eo(this,U,{top:0,left:0},f||"page",y||F).top+(F?this.doc.height-si(U):0)},defaultTextHeight:function(){return ua(this.display)},defaultCharWidth:function(){return Pn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,y,F,U){var H=this.display;l=zn(this,lt(this.doc,l));var Z=l.bottom,xe=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),H.sizer.appendChild(f),F=="over")Z=l.top;else if(F=="above"||F=="near"){var Ce=Math.max(H.wrapper.clientHeight,this.doc.height),De=Math.max(H.sizer.clientWidth,H.lineSpace.clientWidth);(F=="above"||l.bottom+f.offsetHeight>Ce)&&l.top>f.offsetHeight?Z=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=Ce&&(Z=l.bottom),xe+f.offsetWidth>De&&(xe=De-f.offsetWidth)}f.style.top=Z+"px",f.style.left=f.style.right="",U=="right"?(xe=H.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(U=="left"?xe=0:U=="middle"&&(xe=(H.sizer.clientWidth-f.offsetWidth)/2),f.style.left=xe+"px"),y&&du(this,{left:xe,top:Z,right:xe+f.offsetWidth,bottom:Z+f.offsetHeight})},triggerOnKeyDown:Mr(Ku),triggerOnKeyPress:Mr(pl),triggerOnKeyUp:Yu,triggerOnMouseDown:Mr(Ju),execCommand:function(l){if(ro.hasOwnProperty(l))return ro[l].call(null,this)},triggerElectric:Mr(function(l){nf(this,l)}),findPosH:function(l,f,y,F){var U=1;f<0&&(U=-1,f=-f);for(var H=lt(this.doc,l),Z=0;Z<f&&(H=zt(this.doc,H,U,y,F),!H.hitSide);++Z);return H},moveH:Mr(function(l,f){var y=this;this.extendSelectionsBy(function(F){return y.display.shift||y.doc.extend||F.empty()?zt(y.doc,F.head,l,f,y.options.rtlMoveVisually):l<0?F.from():F.to()},mt)}),deleteH:Mr(function(l,f){var y=this.doc.sel,F=this.doc;y.somethingSelected()?F.replaceSelection("",null,"+delete"):ra(this,function(U){var H=zt(F,U.head,l,f,!1);return l<0?{from:H,to:U.head}:{from:U.head,to:H}})}),findPosV:function(l,f,y,F){var U=1,H=F;f<0&&(U=-1,f=-f);for(var Z=lt(this.doc,l),xe=0;xe<f;++xe){var Ce=zn(this,Z,"div");if(H==null?H=Ce.left:Ce.left=H,Z=ml(this,Ce,U,y),Z.hitSide)break}return Z},moveV:Mr(function(l,f){var y=this,F=this.doc,U=[],H=!this.display.shift&&!F.extend&&F.sel.somethingSelected();if(F.extendSelectionsBy(function(xe){if(H)return l<0?xe.from():xe.to();var Ce=zn(y,xe.head,"div");xe.goalColumn!=null&&(Ce.left=xe.goalColumn),U.push(Ce.left);var De=ml(y,Ce,l,f);return f=="page"&&xe==F.sel.primary()&&Ys(y,Co(y,De,"div").top-Ce.top),De},mt),U.length)for(var Z=0;Z<F.sel.ranges.length;Z++)F.sel.ranges[Z].goalColumn=U[Z]}),findWordAt:function(l){var f=this.doc,y=Tt(f,l.line).text,F=l.ch,U=l.ch;if(y){var H=this.getHelper(l,"wordChars");(l.sticky=="before"||U==y.length)&&F?--F:++U;for(var Z=y.charAt(F),xe=z(Z,H)?function(Ce){return z(Ce,H)}:/\s/.test(Z)?function(Ce){return/\s/.test(Ce)}:function(Ce){return!/\s/.test(Ce)&&!z(Ce)};F>0&&xe(y.charAt(F-1));)--F;for(;U<y.length&&xe(y.charAt(U));)++U}return new er(at(l.line,F),at(l.line,U))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Le(this.display.cursorDiv,"CodeMirror-overwrite"):ee(this.display.cursorDiv,"CodeMirror-overwrite"),ae(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Fe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Mr(function(l,f){Wa(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-ui(this)-this.display.barHeight,width:l.scrollWidth-ui(this)-this.display.barWidth,clientHeight:La(this),clientWidth:zi(this)}},scrollIntoView:Mr(function(l,f){l==null?(l={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof l=="number"?l={from:at(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=f||0,l.from.line!=null?Ji(this,l):pu(this,l.from,l.to,l.margin)}),setSize:Mr(function(l,f){var y=this,F=function(H){return typeof H=="number"||/^\d+$/.test(String(H))?H+"px":H};l!=null&&(this.display.wrapper.style.width=F(l)),f!=null&&(this.display.wrapper.style.height=F(f)),this.options.lineWrapping&&Gi(this);var U=this.display.viewFrom;this.doc.iter(U,this.display.viewTo,function(H){if(H.widgets){for(var Z=0;Z<H.widgets.length;Z++)if(H.widgets[Z].noHScroll){qn(y,U,"widget");break}}++U}),this.curOp.forceUpdate=!0,ae(this,"refresh",this)}),operation:function(l){return Br(this,l)},startOperation:function(){return Ti(this)},endOperation:function(){return Pi(this)},refresh:Mr(function(){var l=this.display.cachedTextHeight;Rr(this),this.curOp.forceUpdate=!0,Da(this),Wa(this,this.doc.scrollLeft,this.doc.scrollTop),_s(this.display),(l==null||Math.abs(l-ua(this.display))>.5||this.options.lineWrapping)&&Ws(this),ae(this,"refresh",this)}),swapDoc:Mr(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Cu(this,l),Da(this),this.display.input.reset(),Wa(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,ir(this,"swapDoc",this,f),f}),phrase:function(l){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,l)?f[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ue(e),e.registerHelper=function(l,f,y){u.hasOwnProperty(l)||(u[l]=e[l]={_global:[]}),u[l][f]=y},e.registerGlobalHelper=function(l,f,y,F){e.registerHelper(l,f,F),u[l]._global.push({pred:y,val:F})}}function zt(e,n,u,l,f){var y=n,F=u,U=Tt(e,n.line),H=f&&e.direction=="rtl"?-u:u;function Z(){var gt=n.line+H;return gt<e.first||gt>=e.first+e.size?!1:(n=new at(gt,n.ch,n.sticky),U=Tt(e,gt))}function xe(gt){var dt;if(l=="codepoint"){var xt=U.text.charCodeAt(n.ch+(u>0?0:-1));if(isNaN(xt))dt=null;else{var Ft=u>0?xt>=55296&&xt<56320:xt>=56320&&xt<57343;dt=new at(n.line,Math.max(0,Math.min(U.text.length,n.ch+u*(Ft?2:1))),-u)}}else f?dt=Gu(e.cm,U,n,u):dt=Qo(U,n,u);if(dt==null)if(!gt&&Z())n=dl(f,e.cm,U,n.line,H);else return!1;else n=dt;return!0}if(l=="char"||l=="codepoint")xe();else if(l=="column")xe(!0);else if(l=="word"||l=="group")for(var Ce=null,De=l=="group",ke=e.cm&&e.cm.getHelper(n,"wordChars"),Ye=!0;!(u<0&&!xe(!Ye));Ye=!1){var tt=U.text.charAt(n.ch)||`
|
|
33
|
-
`,
|
|
34
|
-
`?"n":!De||/\s/.test(tt)?null:"p";if(De&&!Ye&&!
|
|
35
|
-
`);if(U.clipboardData.setData("Text",Z),U.clipboardData.getData("Text")==Z){U.preventDefault();return}}var
|
|
36
|
-
`);var De=Fe();
|
|
37
|
-
`),
|
|
38
|
-
`)>-1?u.value=e.prevInput="":e.prevInput=f,e.composing&&(e.composing.range.clear(),e.composing.range=n.markText(e.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Sr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Sr.prototype.onKeyPress=function(){b&&S>=9&&(this.hasSelection=null),this.fastPoll()},Sr.prototype.onContextMenu=function(e){var n=this,u=n.cm,l=u.display,f=n.textarea;n.contextMenuPending&&n.contextMenuPending();var
|
|
39
|
-
top: `+(e.clientY-
|
|
32
|
+
`)&&(Ye=tt=ot(Ye.line,0)));var at={from:Ye,to:tt,text:Z?Z[De%Z.length]:H,origin:f||(U?"paste":e.state.cutIncoming>F?"cut":"+input")};vo(e.doc,at),ir(e,"inputRead",e,at)}n&&!U&&of(e,n),rn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ce),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function nf(e,n){var u=e.clipboardData&&e.clipboardData.getData("Text");if(u)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&Ur(n,function(){return yl(n,u,0,null,"paste")}),!0}function of(e,n){if(!(!e.options.electricChars||!e.options.smartIndent))for(var u=e.doc.sel,l=u.ranges.length-1;l>=0;l--){var f=u.ranges[l];if(!(f.head.ch>100||l&&u.ranges[l-1].head.line==f.head.line)){var m=e.getModeAt(f.head),F=!1;if(m.electricChars){for(var U=0;U<m.electricChars.length;U++)if(n.indexOf(m.electricChars.charAt(U))>-1){F=Ao(e,f.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(Tt(e.doc,f.head.line).text.slice(0,f.head.ch))&&(F=Ao(e,f.head.line,"smart"));F&&ir(e,"electricInput",e,f.head.line)}}}function af(e){for(var n=[],u=[],l=0;l<e.doc.sel.ranges.length;l++){var f=e.doc.sel.ranges[l].head.line,m={anchor:ot(f,0),head:ot(f+1,0)};u.push(m),n.push(e.getRange(m.anchor,m.head))}return{text:n,ranges:u}}function br(e,n,u,l){e.setAttribute("autocorrect",u?"":"off"),e.setAttribute("autocapitalize",l?"":"off"),e.setAttribute("spellcheck",!!n)}function Dc(){var e=we("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),n=we("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?e.style.width="1000px":e.setAttribute("wrap","off"),M&&(e.style.border="1px solid black"),br(e),n}function Nc(e){var n=e.optionHandlers,u=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(l,f){var m=this.options,F=m[l];m[l]==f&&l!="mode"||(m[l]=f,n.hasOwnProperty(l)&&jr(this,n[l])(this,f,F),oe(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,f){this.state.keyMaps[f?"push":"unshift"](Ja(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,m=0;m<f.length;++m)if(f[m]==l||f[m].name==l)return f.splice(m,1),!0},addOverlay:Lr(function(l,f){var m=l.token?l:e.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");jt(this.state.overlays,{mode:m,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(F){return F.priority}),this.state.modeGen++,Rr(this)}),removeOverlay:Lr(function(l){for(var f=this.state.overlays,m=0;m<f.length;++m){var F=f[m].modeSpec;if(F==l||typeof l=="string"&&F.name==l){f.splice(m,1),this.state.modeGen++,Rr(this);return}}}),indentLine:Lr(function(l,f,m){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),Zn(this.doc,l)&&Ao(this,l,f,m)}),indentSelection:Lr(function(l){for(var f=this.doc.sel.ranges,m=-1,F=0;F<f.length;F++){var U=f[F];if(U.empty())U.head.line>m&&(Ao(this,U.head.line,l,!0),m=U.head.line,F==this.doc.sel.primIndex&&rn(this));else{var H=U.from(),Z=U.to(),be=Math.max(m,H.line);m=Math.min(this.lastLine(),Z.line-(Z.ch?0:1))+1;for(var Ce=be;Ce<m;++Ce)Ao(this,Ce,l);var De=this.doc.sel.ranges;H.ch==0&&f.length==De.length&&De[F].from().ch>0&&za(this.doc,F,new er(H,De[F].to()),ut)}}}),getTokenAt:function(l,f){return ms(this,l,f)},getLineTokens:function(l,f){return ms(this,ot(l),f,!0)},getTokenTypeAt:function(l){l=lt(this.doc,l);var f=Hl(this,Tt(this.doc,l.line)),m=0,F=(f.length-1)/2,U=l.ch,H;if(U==0)H=f[2];else for(;;){var Z=m+F>>1;if((Z?f[Z*2-1]:0)>=U)F=Z;else if(f[Z*2+1]<U)m=Z+1;else{H=f[Z*2+2];break}}var be=H?H.indexOf("overlay "):-1;return be<0?H:be==0?null:H.slice(0,be-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?e.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var m=[];if(!u.hasOwnProperty(f))return m;var F=u[f],U=this.getModeAt(l);if(typeof U[f]=="string")F[U[f]]&&m.push(F[U[f]]);else if(U[f])for(var H=0;H<U[f].length;H++){var Z=F[U[f][H]];Z&&m.push(Z)}else U.helperType&&F[U.helperType]?m.push(F[U.helperType]):F[U.name]&&m.push(F[U.name]);for(var be=0;be<F._global.length;be++){var Ce=F._global[be];Ce.pred(U,this)&&ht(m,Ce.val)==-1&&m.push(Ce.val)}return m},getStateAfter:function(l,f){var m=this.doc;return l=st(m,l==null?m.first+m.size-1:l),en(this,l+1,f).state},cursorCoords:function(l,f){var m,F=this.doc.sel.primary();return l==null?m=F.head:typeof l=="object"?m=lt(this.doc,l):m=l?F.from():F.to(),zn(this,m,f||"page")},charCoords:function(l,f){return Ca(this,lt(this.doc,l),f||"page")},coordsChar:function(l,f){return l=jo(this,l,f||"page"),Us(this,l.left,l.top)},lineAtHeight:function(l,f){return l=jo(this,{top:l,left:0},f||"page").top,Vn(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,m){var F=!1,U;if(typeof l=="number"){var H=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>H&&(l=H,F=!0),U=Tt(this.doc,l)}else U=l;return Ea(this,U,{top:0,left:0},f||"page",m||F).top+(F?this.doc.height-si(U):0)},defaultTextHeight:function(){return uo(this.display)},defaultCharWidth:function(){return Pn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,m,F,U){var H=this.display;l=zn(this,lt(this.doc,l));var Z=l.bottom,be=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),H.sizer.appendChild(f),F=="over")Z=l.top;else if(F=="above"||F=="near"){var Ce=Math.max(H.wrapper.clientHeight,this.doc.height),De=Math.max(H.sizer.clientWidth,H.lineSpace.clientWidth);(F=="above"||l.bottom+f.offsetHeight>Ce)&&l.top>f.offsetHeight?Z=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=Ce&&(Z=l.bottom),be+f.offsetWidth>De&&(be=De-f.offsetWidth)}f.style.top=Z+"px",f.style.left=f.style.right="",U=="right"?(be=H.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(U=="left"?be=0:U=="middle"&&(be=(H.sizer.clientWidth-f.offsetWidth)/2),f.style.left=be+"px"),m&&pu(this,{left:be,top:Z,right:be+f.offsetWidth,bottom:Z+f.offsetHeight})},triggerOnKeyDown:Lr(Yu),triggerOnKeyPress:Lr(pl),triggerOnKeyUp:Ju,triggerOnMouseDown:Lr(Xu),execCommand:function(l){if(na.hasOwnProperty(l))return na[l].call(null,this)},triggerElectric:Lr(function(l){of(this,l)}),findPosH:function(l,f,m,F){var U=1;f<0&&(U=-1,f=-f);for(var H=lt(this.doc,l),Z=0;Z<f&&(H=zt(this.doc,H,U,m,F),!H.hitSide);++Z);return H},moveH:Lr(function(l,f){var m=this;this.extendSelectionsBy(function(F){return m.display.shift||m.doc.extend||F.empty()?zt(m.doc,F.head,l,f,m.options.rtlMoveVisually):l<0?F.from():F.to()},mt)}),deleteH:Lr(function(l,f){var m=this.doc.sel,F=this.doc;m.somethingSelected()?F.replaceSelection("",null,"+delete"):ro(this,function(U){var H=zt(F,U.head,l,f,!1);return l<0?{from:H,to:U.head}:{from:U.head,to:H}})}),findPosV:function(l,f,m,F){var U=1,H=F;f<0&&(U=-1,f=-f);for(var Z=lt(this.doc,l),be=0;be<f;++be){var Ce=zn(this,Z,"div");if(H==null?H=Ce.left:Ce.left=H,Z=ml(this,Ce,U,m),Z.hitSide)break}return Z},moveV:Lr(function(l,f){var m=this,F=this.doc,U=[],H=!this.display.shift&&!F.extend&&F.sel.somethingSelected();if(F.extendSelectionsBy(function(be){if(H)return l<0?be.from():be.to();var Ce=zn(m,be.head,"div");be.goalColumn!=null&&(Ce.left=be.goalColumn),U.push(Ce.left);var De=ml(m,Ce,l,f);return f=="page"&&be==F.sel.primary()&&Ys(m,Ca(m,De,"div").top-Ce.top),De},mt),U.length)for(var Z=0;Z<F.sel.ranges.length;Z++)F.sel.ranges[Z].goalColumn=U[Z]}),findWordAt:function(l){var f=this.doc,m=Tt(f,l.line).text,F=l.ch,U=l.ch;if(m){var H=this.getHelper(l,"wordChars");(l.sticky=="before"||U==m.length)&&F?--F:++U;for(var Z=m.charAt(F),be=z(Z,H)?function(Ce){return z(Ce,H)}:/\s/.test(Z)?function(Ce){return/\s/.test(Ce)}:function(Ce){return!/\s/.test(Ce)&&!z(Ce)};F>0&&be(m.charAt(F-1));)--F;for(;U<m.length&&be(m.charAt(U));)++U}return new er(ot(l.line,F),ot(l.line,U))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Le(this.display.cursorDiv,"CodeMirror-overwrite"):ee(this.display.cursorDiv,"CodeMirror-overwrite"),oe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Fe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Lr(function(l,f){Ho(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-ui(this)-this.display.barHeight,width:l.scrollWidth-ui(this)-this.display.barWidth,clientHeight:Do(this),clientWidth:zi(this)}},scrollIntoView:Lr(function(l,f){l==null?(l={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof l=="number"?l={from:ot(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=f||0,l.from.line!=null?Ji(this,l):hu(this,l.from,l.to,l.margin)}),setSize:Lr(function(l,f){var m=this,F=function(H){return typeof H=="number"||/^\d+$/.test(String(H))?H+"px":H};l!=null&&(this.display.wrapper.style.width=F(l)),f!=null&&(this.display.wrapper.style.height=F(f)),this.options.lineWrapping&&Gi(this);var U=this.display.viewFrom;this.doc.iter(U,this.display.viewTo,function(H){if(H.widgets){for(var Z=0;Z<H.widgets.length;Z++)if(H.widgets[Z].noHScroll){qn(m,U,"widget");break}}++U}),this.curOp.forceUpdate=!0,oe(this,"refresh",this)}),operation:function(l){return Ur(this,l)},startOperation:function(){return Ti(this)},endOperation:function(){return Pi(this)},refresh:Lr(function(){var l=this.display.cachedTextHeight;Rr(this),this.curOp.forceUpdate=!0,No(this),Ho(this,this.doc.scrollLeft,this.doc.scrollTop),_s(this.display),(l==null||Math.abs(l-uo(this.display))>.5||this.options.lineWrapping)&&Ws(this),oe(this,"refresh",this)}),swapDoc:Lr(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Ou(this,l),No(this),this.display.input.reset(),Ho(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,ir(this,"swapDoc",this,f),f}),phrase:function(l){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,l)?f[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ue(e),e.registerHelper=function(l,f,m){u.hasOwnProperty(l)||(u[l]=e[l]={_global:[]}),u[l][f]=m},e.registerGlobalHelper=function(l,f,m,F){e.registerHelper(l,f,F),u[l]._global.push({pred:m,val:F})}}function zt(e,n,u,l,f){var m=n,F=u,U=Tt(e,n.line),H=f&&e.direction=="rtl"?-u:u;function Z(){var gt=n.line+H;return gt<e.first||gt>=e.first+e.size?!1:(n=new ot(gt,n.ch,n.sticky),U=Tt(e,gt))}function be(gt){var dt;if(l=="codepoint"){var xt=U.text.charCodeAt(n.ch+(u>0?0:-1));if(isNaN(xt))dt=null;else{var Ft=u>0?xt>=55296&&xt<56320:xt>=56320&&xt<57343;dt=new ot(n.line,Math.max(0,Math.min(U.text.length,n.ch+u*(Ft?2:1))),-u)}}else f?dt=$u(e.cm,U,n,u):dt=Qa(U,n,u);if(dt==null)if(!gt&&Z())n=dl(f,e.cm,U,n.line,H);else return!1;else n=dt;return!0}if(l=="char"||l=="codepoint")be();else if(l=="column")be(!0);else if(l=="word"||l=="group")for(var Ce=null,De=l=="group",ke=e.cm&&e.cm.getHelper(n,"wordChars"),Ye=!0;!(u<0&&!be(!Ye));Ye=!1){var tt=U.text.charAt(n.ch)||`
|
|
33
|
+
`,at=z(tt,ke)?"w":De&&tt==`
|
|
34
|
+
`?"n":!De||/\s/.test(tt)?null:"p";if(De&&!Ye&&!at&&(at="s"),Ce&&Ce!=at){u<0&&(u=1,be(),n.sticky="after");break}if(at&&(Ce=at),u>0&&!be(!Ye))break}var ct=Zo(e,n,m,F,!0);return oi(m,ct)&&(ct.hitSide=!0),ct}function ml(e,n,u,l){var f=e.doc,m=n.left,F;if(l=="page"){var U=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),H=Math.max(U-.5*uo(e.display),3);F=(u>0?n.bottom:n.top)+u*H}else l=="line"&&(F=u>0?n.bottom+3:n.top-3);for(var Z;Z=Us(e,m,F),!!Z.outside;){if(u<0?F<=0:F>=f.height){Z.hitSide=!0;break}F+=u*5}return Z}var wt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ft,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};wt.prototype.init=function(e){var n=this,u=this,l=u.cm,f=u.div=e.lineDiv;f.contentEditable=!0,br(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(U){for(var H=U.target;H;H=H.parentNode){if(H==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(H.className))break}return!1}N(f,"paste",function(U){!m(U)||pe(l,U)||nf(U,l)||S<=11&&setTimeout(jr(l,function(){return n.updateFromDOM()}),20)}),N(f,"compositionstart",function(U){n.composing={data:U.data,done:!1}}),N(f,"compositionupdate",function(U){n.composing||(n.composing={data:U.data,done:!1})}),N(f,"compositionend",function(U){n.composing&&(U.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),N(f,"touchstart",function(){return u.forceCompositionEnd()}),N(f,"input",function(){n.composing||n.readFromDOMSoon()});function F(U){if(!(!m(U)||pe(l,U))){if(l.somethingSelected())sa({lineWise:!1,text:l.getSelections()}),U.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var H=af(l);sa({lineWise:!0,text:H.text}),U.type=="cut"&&l.operation(function(){l.setSelections(H.ranges,0,ut),l.replaceSelection("",null,"cut")})}else return;if(U.clipboardData){U.clipboardData.clearData();var Z=Cn.text.join(`
|
|
35
|
+
`);if(U.clipboardData.setData("Text",Z),U.clipboardData.getData("Text")==Z){U.preventDefault();return}}var be=Dc(),Ce=be.firstChild;l.display.lineSpace.insertBefore(be,l.display.lineSpace.firstChild),Ce.value=Cn.text.join(`
|
|
36
|
+
`);var De=Fe();Te(Ce),setTimeout(function(){l.display.lineSpace.removeChild(be),De.focus(),De==f&&u.showPrimarySelection()},50)}}N(f,"copy",F),N(f,"cut",F)},wt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},wt.prototype.prepareSelection=function(){var e=Pa(this.cm,!1);return e.focus=Fe()==this.div,e},wt.prototype.showSelection=function(e,n){!e||!this.cm.display.view.length||((e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e))},wt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},wt.prototype.showPrimarySelection=function(){var e=this.getSelection(),n=this.cm,u=n.doc.sel.primary(),l=u.from(),f=u.to();if(n.display.viewTo==n.display.viewFrom||l.line>=n.display.viewTo||f.line<n.display.viewFrom){e.removeAllRanges();return}var m=kn(n,e.anchorNode,e.anchorOffset),F=kn(n,e.focusNode,e.focusOffset);if(!(m&&!m.bad&&F&&!F.bad&&Lt(qe(m,F),l)==0&&Lt(Oe(m,F),f)==0)){var U=n.display.view,H=l.line>=n.display.viewFrom&&sf(n,l)||{node:U[0].measure.map[2],offset:0},Z=f.line<n.display.viewTo&&sf(n,f);if(!Z){var be=U[U.length-1].measure,Ce=be.maps?be.maps[be.maps.length-1]:be.map;Z={node:Ce[Ce.length-1],offset:Ce[Ce.length-2]-Ce[Ce.length-3]}}if(!H||!Z){e.removeAllRanges();return}var De=e.rangeCount&&e.getRangeAt(0),ke;try{ke=fe(H.node,H.offset,Z.offset,Z.node)}catch(Ye){}ke&&(!c&&n.state.focused?(e.collapse(H.node,H.offset),ke.collapsed||(e.removeAllRanges(),e.addRange(ke))):(e.removeAllRanges(),e.addRange(ke)),De&&e.anchorNode==null?e.addRange(De):c&&this.startGracePeriod()),this.rememberSelection()}},wt.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},wt.prototype.showMultipleSelections=function(e){xe(this.cm.display.cursorDiv,e.cursors),xe(this.cm.display.selectionDiv,e.selection)},wt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},wt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var n=e.getRangeAt(0).commonAncestorContainer;return ae(this.div,n)},wt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Fe()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},wt.prototype.blur=function(){this.div.blur()},wt.prototype.getField=function(){return this.div},wt.prototype.supportsTouch=function(){return!0},wt.prototype.receivedFocus=function(){var e=this,n=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Ur(this.cm,function(){return n.cm.curOp.selectionChanged=!0});function u(){n.cm.state.focused&&(n.pollSelection(),n.polling.set(n.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},wt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},wt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),n=this.cm;if(X&&D&&this.cm.display.gutterSpecs.length&&la(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=kn(n,e.anchorNode,e.anchorOffset),l=kn(n,e.focusNode,e.focusOffset);u&&l&&Ur(n,function(){Xr(n.doc,Ii(u,l),ut),(u.bad||l.bad)&&(n.curOp.selectionChanged=!0)})}}},wt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,n=e.display,u=e.doc.sel.primary(),l=u.from(),f=u.to();if(l.ch==0&&l.line>e.firstLine()&&(l=ot(l.line-1,Tt(e.doc,l.line-1).length)),f.ch==Tt(e.doc,f.line).text.length&&f.line<e.lastLine()&&(f=ot(f.line+1,0)),l.line<n.viewFrom||f.line>n.viewTo-1)return!1;var m,F,U;l.line==n.viewFrom||(m=Yi(e,l.line))==0?(F=Zt(n.view[0].line),U=n.view[0].node):(F=Zt(n.view[m].line),U=n.view[m-1].node.nextSibling);var H=Yi(e,f.line),Z,be;if(H==n.view.length-1?(Z=n.viewTo-1,be=n.lineDiv.lastChild):(Z=Zt(n.view[H+1].line)-1,be=n.view[H+1].node.previousSibling),!U)return!1;for(var Ce=e.doc.splitLines(lf(e,U,be,F,Z)),De=ii(e.doc,ot(F,0),ot(Z,Tt(e.doc,Z).text.length));Ce.length>1&&De.length>1;)if(Ct(Ce)==Ct(De))Ce.pop(),De.pop(),Z--;else if(Ce[0]==De[0])Ce.shift(),De.shift(),F++;else break;for(var ke=0,Ye=0,tt=Ce[0],at=De[0],ct=Math.min(tt.length,at.length);ke<ct&&tt.charCodeAt(ke)==at.charCodeAt(ke);)++ke;for(var gt=Ct(Ce),dt=Ct(De),xt=Math.min(gt.length-(Ce.length==1?ke:0),dt.length-(De.length==1?ke:0));Ye<xt&>.charCodeAt(gt.length-Ye-1)==dt.charCodeAt(dt.length-Ye-1);)++Ye;if(Ce.length==1&&De.length==1&&F==l.line)for(;ke&&ke>l.ch&>.charCodeAt(gt.length-Ye-1)==dt.charCodeAt(dt.length-Ye-1);)ke--,Ye++;Ce[Ce.length-1]=gt.slice(0,gt.length-Ye).replace(/^\u200b+/,""),Ce[0]=Ce[0].slice(ke).replace(/\u200b+$/,"");var Ft=ot(F,ke),It=ot(Z,De.length?Ct(De).length-Ye:0);if(Ce.length>1||Ce[0]||Lt(Ft,It))return go(e.doc,Ce,Ft,It,"+input"),!0},wt.prototype.ensurePolled=function(){this.forceCompositionEnd()},wt.prototype.reset=function(){this.forceCompositionEnd()},wt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},wt.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},wt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ur(this.cm,function(){return Rr(e.cm)})},wt.prototype.setUneditable=function(e){e.contentEditable="false"},wt.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||jr(this.cm,yl)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},wt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},wt.prototype.onContextMenu=function(){},wt.prototype.resetPosition=function(){},wt.prototype.needsContentAttribute=!0;function sf(e,n){var u=Rs(e,n.line);if(!u||u.hidden)return null;var l=Tt(e.doc,n.line),f=Ms(u,l,n.line),m=O(l,e.doc.direction),F="left";if(m){var U=K(m,n.ch);F=U%2?"right":"left"}var H=Ls(f.map,n.ch,F);return H.offset=H.collapse=="right"?H.end:H.start,H}function la(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function On(e,n){return n&&(e.bad=!0),e}function lf(e,n,u,l,f){var m="",F=!1,U=e.doc.lineSeparator(),H=!1;function Z(ke){return function(Ye){return Ye.id==ke}}function be(){F&&(m+=U,H&&(m+=U),F=H=!1)}function Ce(ke){ke&&(be(),m+=ke)}function De(ke){if(ke.nodeType==1){var Ye=ke.getAttribute("cm-text");if(Ye){Ce(Ye);return}var tt=ke.getAttribute("cm-marker"),at;if(tt){var ct=e.findMarks(ot(l,0),ot(f+1,0),Z(+tt));ct.length&&(at=ct[0].find(0))&&Ce(ii(e.doc,at.from,at.to).join(U));return}if(ke.getAttribute("contenteditable")=="false")return;var gt=/^(pre|div|p|li|table|br)$/i.test(ke.nodeName);if(!/^br$/i.test(ke.nodeName)&&ke.textContent.length==0)return;gt&&be();for(var dt=0;dt<ke.childNodes.length;dt++)De(ke.childNodes[dt]);/^(pre|p)$/i.test(ke.nodeName)&&(H=!0),gt&&(F=!0)}else ke.nodeType==3&&Ce(ke.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;De(n),n!=u;)n=n.nextSibling,H=!1;return m}function kn(e,n,u){var l;if(n==e.display.lineDiv){if(l=e.display.lineDiv.childNodes[u],!l)return On(e.clipPos(ot(e.display.viewTo-1)),!0);n=null,u=0}else for(l=n;;l=l.parentNode){if(!l||l==e.display.lineDiv)return null;if(l.parentNode&&l.parentNode==e.display.lineDiv)break}for(var f=0;f<e.display.view.length;f++){var m=e.display.view[f];if(m.node==l)return Bc(m,n,u)}}function Bc(e,n,u){var l=e.text.firstChild,f=!1;if(!n||!ae(l,n))return On(ot(Zt(e.line),0),!0);if(n==l&&(f=!0,n=l.childNodes[u],u=0,!n)){var m=e.rest?Ct(e.rest):e.line;return On(ot(Zt(m),m.text.length),f)}var F=n.nodeType==3?n:null,U=n;for(!F&&n.childNodes.length==1&&n.firstChild.nodeType==3&&(F=n.firstChild,u&&(u=F.nodeValue.length));U.parentNode!=l;)U=U.parentNode;var H=e.measure,Z=H.maps;function be(at,ct,gt){for(var dt=-1;dt<(Z?Z.length:0);dt++)for(var xt=dt<0?H.map:Z[dt],Ft=0;Ft<xt.length;Ft+=3){var It=xt[Ft+2];if(It==at||It==ct){var it=Zt(dt<0?e.line:e.rest[dt]),Gt=xt[Ft]+gt;return(gt<0||It!=at)&&(Gt=xt[Ft+(gt?1:0)]),ot(it,Gt)}}}var Ce=be(F,U,u);if(Ce)return On(Ce,f);for(var De=U.nextSibling,ke=F?F.nodeValue.length-u:0;De;De=De.nextSibling){if(Ce=be(De,De.firstChild,0),Ce)return On(ot(Ce.line,Ce.ch-ke),f);ke+=De.textContent.length}for(var Ye=U.previousSibling,tt=u;Ye;Ye=Ye.previousSibling){if(Ce=be(Ye,Ye.firstChild,-1),Ce)return On(ot(Ce.line,Ce.ch+tt),f);tt+=Ye.textContent.length}}var Sr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ft,this.hasSelection=!1,this.composing=null};Sr.prototype.init=function(e){var n=this,u=this,l=this.cm;this.createField(e);var f=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),M&&(f.style.width="0px"),N(f,"input",function(){b&&S>=9&&n.hasSelection&&(n.hasSelection=null),u.poll()}),N(f,"paste",function(F){pe(l,F)||nf(F,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function m(F){if(!pe(l,F)){if(l.somethingSelected())sa({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var U=af(l);sa({lineWise:!0,text:U.text}),F.type=="cut"?l.setSelections(U.ranges,null,ut):(u.prevInput="",f.value=U.text.join(`
|
|
37
|
+
`),Te(f))}else return;F.type=="cut"&&(l.state.cutIncoming=+new Date)}}N(f,"cut",m),N(f,"copy",m),N(e.scroller,"paste",function(F){if(!(li(e,F)||pe(l,F))){if(!f.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var U=new Event("paste");U.clipboardData=F.clipboardData,f.dispatchEvent(U)}}),N(e.lineSpace,"selectstart",function(F){li(e,F)||Qe(F)}),N(f,"compositionstart",function(){var F=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:F,range:l.markText(F,l.getCursor("to"),{className:"CodeMirror-composing"})}}),N(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},Sr.prototype.createField=function(e){this.wrapper=Dc(),this.textarea=this.wrapper.firstChild},Sr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Sr.prototype.prepareSelection=function(){var e=this.cm,n=e.display,u=e.doc,l=Pa(e);if(e.options.moveInputWithCursor){var f=zn(e,u.sel.primary().head,"div"),m=n.wrapper.getBoundingClientRect(),F=n.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,f.top+F.top-m.top)),l.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,f.left+F.left-m.left))}return l},Sr.prototype.showSelection=function(e){var n=this.cm,u=n.display;xe(u.cursorDiv,e.cursors),xe(u.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Sr.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var n=this.cm;if(n.somethingSelected()){this.prevInput="";var u=n.getSelection();this.textarea.value=u,n.state.focused&&Te(this.textarea),b&&S>=9&&(this.hasSelection=u)}else e||(this.prevInput=this.textarea.value="",b&&S>=9&&(this.hasSelection=null))}},Sr.prototype.getField=function(){return this.textarea},Sr.prototype.supportsTouch=function(){return!1},Sr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!R||Fe()!=this.textarea))try{this.textarea.focus()}catch(e){}},Sr.prototype.blur=function(){this.textarea.blur()},Sr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Sr.prototype.receivedFocus=function(){this.slowPoll()},Sr.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Sr.prototype.fastPoll=function(){var e=!1,n=this;n.pollingFast=!0;function u(){var l=n.poll();!l&&!e?(e=!0,n.polling.set(60,u)):(n.pollingFast=!1,n.slowPoll())}n.polling.set(20,u)},Sr.prototype.poll=function(){var e=this,n=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||!n.state.focused||hn(u)&&!l&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;var f=u.value;if(f==l&&!n.somethingSelected())return!1;if(b&&S>=9&&this.hasSelection===f||C&&/[\uf700-\uf7ff]/.test(f))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){var m=f.charCodeAt(0);if(m==8203&&!l&&(l="\u200B"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var F=0,U=Math.min(l.length,f.length);F<U&&l.charCodeAt(F)==f.charCodeAt(F);)++F;return Ur(n,function(){yl(n,f.slice(F),l.length-F,null,e.composing?"*compose":null),f.length>1e3||f.indexOf(`
|
|
38
|
+
`)>-1?u.value=e.prevInput="":e.prevInput=f,e.composing&&(e.composing.range.clear(),e.composing.range=n.markText(e.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Sr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Sr.prototype.onKeyPress=function(){b&&S>=9&&(this.hasSelection=null),this.fastPoll()},Sr.prototype.onContextMenu=function(e){var n=this,u=n.cm,l=u.display,f=n.textarea;n.contextMenuPending&&n.contextMenuPending();var m=Ki(u,e),F=l.scroller.scrollTop;if(!m||B)return;var U=u.options.resetSelectionOnContextMenu;U&&u.doc.sel.contains(m)==-1&&jr(u,Xr)(u.doc,Ii(m),ut);var H=f.style.cssText,Z=n.wrapper.style.cssText,be=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
39
|
+
top: `+(e.clientY-be.top-5)+"px; left: "+(e.clientX-be.left-5)+`px;
|
|
40
40
|
z-index: 1000; background: `+(b?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
41
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ce;g&&(Ce=window.scrollY),l.input.focus(),g&&window.scrollTo(null,Ce),l.input.reset(),u.somethingSelected()||(f.value=n.prevInput=" "),n.contextMenuPending=ke,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function De(){if(f.selectionStart!=null){var tt=u.somethingSelected(),ot="\u200B"+(tt?f.value:"");f.value="\u21DA",f.value=ot,n.prevInput=tt?"":"\u200B",f.selectionStart=1,f.selectionEnd=ot.length,l.selForContextMenu=u.doc.sel}}function ke(){if(n.contextMenuPending==ke&&(n.contextMenuPending=!1,n.wrapper.style.cssText=Z,f.style.cssText=H,b&&S<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=F),f.selectionStart!=null)){(!b||b&&S<9)&&De();var tt=0,ot=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&n.prevInput=="\u200B"?Ur(u,$o)(u):tt++<10?l.detectingSelectAll=setTimeout(ot,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ot,200)}}if(b&&S>=9&&De(),Y){Bt(e);var Ye=function(){de(window,"mouseup",Ye),setTimeout(ke,20)};N(window,"mouseup",Ye)}else setTimeout(ke,50)},Sr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Sr.prototype.setUneditable=function(){},Sr.prototype.needsContentAttribute=!1;function Uc(e,n){if(n=n?Ze(n):{},n.value=e.value,!n.tabindex&&e.tabIndex&&(n.tabindex=e.tabIndex),!n.placeholder&&e.placeholder&&(n.placeholder=e.placeholder),n.autofocus==null){var u=Fe();n.autofocus=u==e||e.getAttribute("autofocus")!=null&&u==document.body}function l(){e.value=U.getValue()}var f;if(e.form&&(N(e.form,"submit",l),!n.leaveSubmitMethodAlone)){var y=e.form;f=y.submit;try{var F=y.submit=function(){l(),y.submit=f,y.submit(),y.submit=F}}catch(H){}}n.finishInit=function(H){H.save=l,H.getTextArea=function(){return e},H.toTextArea=function(){H.toTextArea=isNaN,l(),e.parentNode.removeChild(H.getWrapperElement()),e.style.display="",e.form&&(de(e.form,"submit",l),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=f))}},e.style.display="none";var U=dr(function(H){return e.parentNode.insertBefore(H,e.nextSibling)},n);return U}function lf(e){e.off=de,e.on=N,e.wheelEventPixels=rr,e.Doc=un,e.splitLines=Bn,e.countColumn=Xe,e.findColumn=pt,e.isWordChar=ve,e.Pass=nt,e.signal=ae,e.Line=Vi,e.changeEnd=Fi,e.scrollbarModel=yn,e.Pos=at,e.cmpPos=Lt,e.modes=bi,e.mimeModes=qr,e.resolveMode=jn,e.getMode=gn,e.modeExtensions=Xn,e.extendMode=wi,e.copyState=Nr,e.startState=Qn,e.innerMode=Gr,e.commands=ro,e.keyMap=ri,e.keyName=zu,e.isModifierKey=Hu,e.lookupKey=pi,e.normalizeKeyMap=Md,e.StringStream=ur,e.SharedTextMarker=ma,e.TextMarker=ti,e.LineWidget=_a,e.e_preventDefault=Qe,e.e_stopPropagation=vt,e.e_stop=Bt,e.addClass=Le,e.contains=oe,e.rmClass=ee,e.keyNames=xn}tf(dr),Nc(dr);var jc="iter insert remove copy getEditor constructor".split(" ");for(var ns in un.prototype)un.prototype.hasOwnProperty(ns)&&ht(jc,ns)<0&&(dr.prototype[ns]=function(e){return function(){return e.apply(this.doc,arguments)}}(un.prototype[ns]));return Ue(un),dr.inputStyles={textarea:Sr,contenteditable:wt},dr.defineMode=function(e){!dr.defaults.mode&&e!="null"&&(dr.defaults.mode=e),vn.apply(this,arguments)},dr.defineMIME=Un,dr.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),dr.defineMIME("text/plain","null"),dr.defineExtension=function(e,n){dr.prototype[e]=n},dr.defineDocExtension=function(e,n){un.prototype[e]=n},dr.fromTextArea=Uc,lf(dr),dr.version="5.65.0",dr})},96876:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";c.defineMode("javascript",function(v,x){var d=v.indentUnit,b=x.statementIndent,S=x.jsonld,g=x.json||S,L=x.trackScope!==!1,D=x.typescript,B=x.wordCharacters||/[\w$\xa1-\uffff]/,j=function(){function le(Tr){return{type:Tr,style:"keyword"}}var Oe=le("keyword a"),qe=le("keyword b"),st=le("keyword c"),lt=le("keyword d"),Kt=le("operator"),Xt={type:"atom",style:"atom"};return{if:le("if"),while:Oe,with:Oe,else:qe,do:qe,try:qe,finally:qe,return:lt,break:lt,continue:lt,new:le("new"),delete:st,void:st,throw:st,debugger:le("debugger"),var:le("var"),const:le("var"),let:le("var"),function:le("function"),catch:le("catch"),for:le("for"),switch:le("switch"),case:le("case"),default:le("default"),in:Kt,typeof:Kt,instanceof:Kt,true:Xt,false:Xt,null:Xt,undefined:Xt,NaN:Xt,Infinity:Xt,this:le("this"),class:le("class"),super:le("atom"),yield:st,export:le("export"),import:le("import"),extends:st,await:st}}(),q=/[+\-*&%=<>!?|~^@]/,W=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function R(le){for(var Oe=!1,qe,st=!1;(qe=le.next())!=null;){if(!Oe){if(qe=="/"&&!st)return;qe=="["?st=!0:st&&qe=="]"&&(st=!1)}Oe=!Oe&&qe=="\\"}}var X,M;function C(le,Oe,qe){return X=le,M=qe,Oe}function V(le,Oe){var qe=le.next();if(qe=='"'||qe=="'")return Oe.tokenize=J(qe),Oe.tokenize(le,Oe);if(qe=="."&&le.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(qe=="."&&le.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(qe))return C(qe);if(qe=="="&&le.eat(">"))return C("=>","operator");if(qe=="0"&&le.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(qe))return le.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(qe=="/")return le.eat("*")?(Oe.tokenize=_,_(le,Oe)):le.eat("/")?(le.skipToEnd(),C("comment","comment")):ai(le,Oe,1)?(R(le),le.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(le.eat("="),C("operator","operator",le.current()));if(qe=="`")return Oe.tokenize=Q,Q(le,Oe);if(qe=="#"&&le.peek()=="!")return le.skipToEnd(),C("meta","meta");if(qe=="#"&&le.eatWhile(B))return C("variable","property");if(qe=="<"&&le.match("!--")||qe=="-"&&le.match("->")&&!/\S/.test(le.string.slice(0,le.start)))return le.skipToEnd(),C("comment","comment");if(q.test(qe))return(qe!=">"||!Oe.lexical||Oe.lexical.type!=">")&&(le.eat("=")?(qe=="!"||qe=="=")&&le.eat("="):/[<>*+\-|&?]/.test(qe)&&(le.eat(qe),qe==">"&&le.eat(qe))),qe=="?"&&le.eat(".")?C("."):C("operator","operator",le.current());if(B.test(qe)){le.eatWhile(B);var st=le.current();if(Oe.lastType!="."){if(j.propertyIsEnumerable(st)){var lt=j[st];return C(lt.type,lt.style,st)}if(st=="async"&&le.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",st)}return C("variable","variable",st)}}function J(le){return function(Oe,qe){var st=!1,lt;if(S&&Oe.peek()=="@"&&Oe.match(W))return qe.tokenize=V,C("jsonld-keyword","meta");for(;(lt=Oe.next())!=null&&!(lt==le&&!st);)st=!st&<=="\\";return st||(qe.tokenize=V),C("string","string")}}function _(le,Oe){for(var qe=!1,st;st=le.next();){if(st=="/"&&qe){Oe.tokenize=V;break}qe=st=="*"}return C("comment","comment")}function Q(le,Oe){for(var qe=!1,st;(st=le.next())!=null;){if(!qe&&(st=="`"||st=="$"&&le.eat("{"))){Oe.tokenize=V;break}qe=!qe&&st=="\\"}return C("quasi","string-2",le.current())}var Y="([{}])";function ce(le,Oe){Oe.fatArrowAt&&(Oe.fatArrowAt=null);var qe=le.string.indexOf("=>",le.start);if(!(qe<0)){if(D){var st=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(le.string.slice(le.start,qe));st&&(qe=st.index)}for(var lt=0,Kt=!1,Xt=qe-1;Xt>=0;--Xt){var Tr=le.string.charAt(Xt),Pr=Y.indexOf(Tr);if(Pr>=0&&Pr<3){if(!lt){++Xt;break}if(--lt==0){Tr=="("&&(Kt=!0);break}}else if(Pr>=3&&Pr<6)++lt;else if(B.test(Tr))Kt=!0;else if(/["'\/`]/.test(Tr))for(;;--Xt){if(Xt==0)return;var _t=le.string.charAt(Xt-1);if(_t==Tr&&le.string.charAt(Xt-2)!="\\"){Xt--;break}}else if(Kt&&!lt){++Xt;break}}Kt&&!lt&&(Oe.fatArrowAt=Xt)}}var ee={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ie(le,Oe,qe,st,lt,Kt){this.indented=le,this.column=Oe,this.type=qe,this.prev=lt,this.info=Kt,st!=null&&(this.align=st)}function me(le,Oe){if(!L)return!1;for(var qe=le.localVars;qe;qe=qe.next)if(qe.name==Oe)return!0;for(var st=le.context;st;st=st.prev)for(var qe=st.vars;qe;qe=qe.next)if(qe.name==Oe)return!0}function be(le,Oe,qe,st,lt){var Kt=le.cc;for(he.state=le,he.stream=lt,he.marked=null,he.cc=Kt,he.style=Oe,le.lexical.hasOwnProperty("align")||(le.lexical.align=!0);;){var Xt=Kt.length?Kt.pop():g?Rt:mt;if(Xt(qe,st)){for(;Kt.length&&Kt[Kt.length-1].lex;)Kt.pop()();return he.marked?he.marked:qe=="variable"&&me(le,st)?"variable-2":Oe}}}var he={state:null,column:null,marked:null,cc:null};function ue(){for(var le=arguments.length-1;le>=0;le--)he.cc.push(arguments[le])}function oe(){return ue.apply(null,arguments),!0}function Fe(le,Oe){for(var qe=Oe;qe;qe=qe.next)if(qe.name==le)return!0;return!1}function Le(le){var Oe=he.state;if(he.marked="def",!!L){if(Oe.context){if(Oe.lexical.info=="var"&&Oe.context&&Oe.context.block){var qe=Re(le,Oe.context);if(qe!=null){Oe.context=qe;return}}else if(!Fe(le,Oe.localVars)){Oe.localVars=new Ze(le,Oe.localVars);return}}x.globalVars&&!Fe(le,Oe.globalVars)&&(Oe.globalVars=new Ze(le,Oe.globalVars))}}function Re(le,Oe){if(Oe)if(Oe.block){var qe=Re(le,Oe.prev);return qe?qe==Oe.prev?Oe:new rt(qe,Oe.vars,!0):null}else return Fe(le,Oe.vars)?Oe:new rt(Oe.prev,new Ze(le,Oe.vars),!1);else return null}function Pe(le){return le=="public"||le=="private"||le=="protected"||le=="abstract"||le=="readonly"}function rt(le,Oe,qe){this.prev=le,this.vars=Oe,this.block=qe}function Ze(le,Oe){this.name=le,this.next=Oe}var Xe=new Ze("this",new Ze("arguments",null));function ft(){he.state.context=new rt(he.state.context,he.state.localVars,!1),he.state.localVars=Xe}function ht(){he.state.context=new rt(he.state.context,he.state.localVars,!0),he.state.localVars=null}function bt(){he.state.localVars=he.state.context.vars,he.state.context=he.state.context.prev}bt.lex=!0;function nt(le,Oe){var qe=function(){var st=he.state,lt=st.indented;if(st.lexical.type=="stat")lt=st.lexical.indented;else for(var Kt=st.lexical;Kt&&Kt.type==")"&&Kt.align;Kt=Kt.prev)lt=Kt.indented;st.lexical=new ie(lt,he.stream.column(),le,null,st.lexical,Oe)};return qe.lex=!0,qe}function ut(){var le=he.state;le.lexical.prev&&(le.lexical.type==")"&&(le.indented=le.lexical.indented),le.lexical=le.lexical.prev)}ut.lex=!0;function yt(le){function Oe(qe){return qe==le?oe():le==";"||qe=="}"||qe==")"||qe=="]"?ue():oe(Oe)}return Oe}function mt(le,Oe){return le=="var"?oe(nt("vardef",Oe),mi,yt(";"),ut):le=="keyword a"?oe(nt("form"),Ct,mt,ut):le=="keyword b"?oe(nt("form"),mt,ut):le=="keyword d"?he.stream.match(/^\s*$/,!1)?oe():oe(nt("stat"),jt,yt(";"),ut):le=="debugger"?oe(yt(";")):le=="{"?oe(nt("}"),ht,N,ut,bt):le==";"?oe():le=="if"?(he.state.lexical.info=="else"&&he.state.cc[he.state.cc.length-1]==ut&&he.state.cc.pop()(),oe(nt("form"),Ct,mt,ut,zr)):le=="function"?oe(vn):le=="for"?oe(nt("form"),ht,xi,mt,bt,ut):le=="class"||D&&Oe=="interface"?(he.marked="keyword",oe(nt("form",le=="class"?le:Oe),wi,ut)):le=="variable"?D&&Oe=="declare"?(he.marked="keyword",oe(mt)):D&&(Oe=="module"||Oe=="enum"||Oe=="type")&&he.stream.match(/^\s*\w/,!1)?(he.marked="keyword",Oe=="enum"?oe(la):Oe=="type"?oe(jn,yt("operator"),Ae,yt(";")):oe(nt("form"),Hr,yt("{"),nt("}"),N,ut,ut)):D&&Oe=="namespace"?(he.marked="keyword",oe(nt("form"),Rt,mt,ut)):D&&Oe=="abstract"?(he.marked="keyword",oe(mt)):oe(nt("stat"),Ke):le=="switch"?oe(nt("form"),Ct,yt("{"),nt("}","switch"),ht,N,ut,ut,bt):le=="case"?oe(Rt,yt(":")):le=="default"?oe(yt(":")):le=="catch"?oe(nt("form"),ft,pt,mt,ut,bt):le=="export"?oe(nt("stat"),ur,ut):le=="import"?oe(nt("stat"),ii,ut):le=="async"?oe(mt):Oe=="@"?oe(Rt,mt):ue(nt("stat"),Rt,yt(";"),ut)}function pt(le){if(le=="(")return oe(gn,yt(")"))}function Rt(le,Oe){return Wt(le,Oe,!1)}function kt(le,Oe){return Wt(le,Oe,!0)}function Ct(le){return le!="("?ue():oe(nt(")"),jt,yt(")"),ut)}function Wt(le,Oe,qe){if(he.state.fatArrowAt==he.stream.start){var st=qe?$:z;if(le=="(")return oe(ft,nt(")"),O(gn,")"),ut,yt("=>"),st,bt);if(le=="variable")return ue(ft,Hr,yt("=>"),st,bt)}var lt=qe?St:Vt;return ee.hasOwnProperty(le)?oe(lt):le=="function"?oe(vn,lt):le=="class"||D&&Oe=="interface"?(he.marked="keyword",oe(nt("form"),Xn,ut)):le=="keyword c"||le=="async"?oe(qe?kt:Rt):le=="("?oe(nt(")"),jt,yt(")"),ut,lt):le=="operator"||le=="spread"?oe(qe?kt:Rt):le=="["?oe(nt("]"),Zn,ut,lt):le=="{"?se(Me,"}",null,lt):le=="quasi"?ue(Dt,lt):le=="new"?oe(Se(qe)):oe()}function jt(le){return le.match(/[;\}\)\],]/)?ue():ue(Rt)}function Vt(le,Oe){return le==","?oe(jt):St(le,Oe,!1)}function St(le,Oe,qe){var st=qe==!1?Vt:St,lt=qe==!1?Rt:kt;if(le=="=>")return oe(ft,qe?$:z,bt);if(le=="operator")return/\+\+|--/.test(Oe)||D&&Oe=="!"?oe(st):D&&Oe=="<"&&he.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?oe(nt(">"),O(Ae,">"),ut,st):Oe=="?"?oe(Rt,yt(":"),lt):oe(lt);if(le=="quasi")return ue(Dt,st);if(le!=";"){if(le=="(")return se(kt,")","call",st);if(le==".")return oe(P,st);if(le=="[")return oe(nt("]"),jt,yt("]"),ut,st);if(D&&Oe=="as")return he.marked="keyword",oe(Ae,st);if(le=="regexp")return he.state.lastType=he.marked="operator",he.stream.backUp(he.stream.pos-he.stream.start-1),oe(lt)}}function Dt(le,Oe){return le!="quasi"?ue():Oe.slice(Oe.length-2)!="${"?oe(Dt):oe(jt,ve)}function ve(le){if(le=="}")return he.marked="string-2",he.state.tokenize=Q,oe(Dt)}function z(le){return ce(he.stream,he.state),ue(le=="{"?mt:Rt)}function $(le){return ce(he.stream,he.state),ue(le=="{"?mt:kt)}function Se(le){return function(Oe){return Oe=="."?oe(le?Ge:Ie):Oe=="variable"&&D?oe(pn,le?St:Vt):ue(le?kt:Rt)}}function Ie(le,Oe){if(Oe=="target")return he.marked="keyword",oe(Vt)}function Ge(le,Oe){if(Oe=="target")return he.marked="keyword",oe(St)}function Ke(le){return le==":"?oe(ut,mt):ue(Vt,yt(";"),ut)}function P(le){if(le=="variable")return he.marked="property",oe()}function Me(le,Oe){if(le=="async")return he.marked="property",oe(Me);if(le=="variable"||he.style=="keyword"){if(he.marked="property",Oe=="get"||Oe=="set")return oe(K);var qe;return D&&he.state.fatArrowAt==he.stream.start&&(qe=he.stream.match(/^\s*:\s*/,!1))&&(he.state.fatArrowAt=he.stream.pos+qe[0].length),oe(T)}else{if(le=="number"||le=="string")return he.marked=S?"property":he.style+" property",oe(T);if(le=="jsonld-keyword")return oe(T);if(D&&Pe(Oe))return he.marked="keyword",oe(Me);if(le=="[")return oe(Rt,re,yt("]"),T);if(le=="spread")return oe(kt,T);if(Oe=="*")return he.marked="keyword",oe(Me);if(le==":")return ue(T)}}function K(le){return le!="variable"?ue(T):(he.marked="property",oe(vn))}function T(le){if(le==":")return oe(kt);if(le=="(")return ue(vn)}function O(le,Oe,qe){function st(lt,Kt){if(qe?qe.indexOf(lt)>-1:lt==","){var Xt=he.state.lexical;return Xt.info=="call"&&(Xt.pos=(Xt.pos||0)+1),oe(function(Tr,Pr){return Tr==Oe||Pr==Oe?ue():ue(le)},st)}return lt==Oe||Kt==Oe?oe():qe&&qe.indexOf(";")>-1?ue(le):oe(yt(Oe))}return function(lt,Kt){return lt==Oe||Kt==Oe?oe():ue(le,st)}}function se(le,Oe,qe){for(var st=3;st<arguments.length;st++)he.cc.push(arguments[st]);return oe(nt(Oe,qe),O(le,Oe),ut)}function N(le){return le=="}"?oe():ue(mt,N)}function re(le,Oe){if(D){if(le==":")return oe(Ae);if(Oe=="?")return oe(re)}}function de(le,Oe){if(D&&(le==":"||Oe=="in"))return oe(Ae)}function ae(le){if(D&&le==":")return he.stream.match(/^\s*\w+\s+is\b/,!1)?oe(Rt,pe,Ae):oe(Ae)}function pe(le,Oe){if(Oe=="is")return he.marked="keyword",oe()}function Ae(le,Oe){if(Oe=="keyof"||Oe=="typeof"||Oe=="infer"||Oe=="readonly")return he.marked="keyword",oe(Oe=="typeof"?kt:Ae);if(le=="variable"||Oe=="void")return he.marked="type",oe(Pt);if(Oe=="|"||Oe=="&")return oe(Ae);if(le=="string"||le=="number"||le=="atom")return oe(Pt);if(le=="[")return oe(nt("]"),O(Ae,"]",","),ut,Pt);if(le=="{")return oe(nt("}"),Ue,ut,Pt);if(le=="(")return oe(O(Bt,")"),Be,Pt);if(le=="<")return oe(O(Ae,">"),Ae);if(le=="quasi")return ue(vt,Pt)}function Be(le){if(le=="=>")return oe(Ae)}function Ue(le){return le.match(/[\}\)\]]/)?oe():le==","||le==";"?oe(Ue):ue(Qe,Ue)}function Qe(le,Oe){if(le=="variable"||he.style=="keyword")return he.marked="property",oe(Qe);if(Oe=="?"||le=="number"||le=="string")return oe(Qe);if(le==":")return oe(Ae);if(le=="[")return oe(yt("variable"),de,yt("]"),Qe);if(le=="(")return ue(Un,Qe);if(!le.match(/[;\}\)\],]/))return oe()}function vt(le,Oe){return le!="quasi"?ue():Oe.slice(Oe.length-2)!="${"?oe(vt):oe(Ae,Et)}function Et(le){if(le=="}")return he.marked="string-2",he.state.tokenize=Q,oe(vt)}function Bt(le,Oe){return le=="variable"&&he.stream.match(/^\s*[?:]/,!1)||Oe=="?"?oe(Bt):le==":"?oe(Ae):le=="spread"?oe(Bt):ue(Ae)}function Pt(le,Oe){if(Oe=="<")return oe(nt(">"),O(Ae,">"),ut,Pt);if(Oe=="|"||le=="."||Oe=="&")return oe(Ae);if(le=="[")return oe(Ae,yt("]"),Pt);if(Oe=="extends"||Oe=="implements")return he.marked="keyword",oe(Ae);if(Oe=="?")return oe(Ae,yt(":"),Ae)}function pn(le,Oe){if(Oe=="<")return oe(nt(">"),O(Ae,">"),ut,Pt)}function Dr(){return ue(Ae,Or)}function Or(le,Oe){if(Oe=="=")return oe(Ae)}function mi(le,Oe){return Oe=="enum"?(he.marked="keyword",oe(la)):ue(Hr,re,hn,Tn)}function Hr(le,Oe){if(D&&Pe(Oe))return he.marked="keyword",oe(Hr);if(le=="variable")return Le(Oe),oe();if(le=="spread")return oe(Hr);if(le=="[")return se(Bn,"]");if(le=="{")return se(Bi,"}")}function Bi(le,Oe){return le=="variable"&&!he.stream.match(/^\s*:/,!1)?(Le(Oe),oe(hn)):(le=="variable"&&(he.marked="property"),le=="spread"?oe(Hr):le=="}"?ue():le=="["?oe(Rt,yt("]"),yt(":"),Bi):oe(yt(":"),Hr,hn))}function Bn(){return ue(Hr,hn)}function hn(le,Oe){if(Oe=="=")return oe(kt)}function Tn(le){if(le==",")return oe(mi)}function zr(le,Oe){if(le=="keyword b"&&Oe=="else")return oe(nt("form","else"),mt,ut)}function xi(le,Oe){if(Oe=="await")return oe(xi);if(le=="(")return oe(nt(")"),bi,ut)}function bi(le){return le=="var"?oe(mi,qr):le=="variable"?oe(qr):ue(qr)}function qr(le,Oe){return le==")"?oe():le==";"?oe(qr):Oe=="in"||Oe=="of"?(he.marked="keyword",oe(Rt,qr)):ue(Rt,qr)}function vn(le,Oe){if(Oe=="*")return he.marked="keyword",oe(vn);if(le=="variable")return Le(Oe),oe(vn);if(le=="(")return oe(ft,nt(")"),O(gn,")"),ut,ae,mt,bt);if(D&&Oe=="<")return oe(nt(">"),O(Dr,">"),ut,vn)}function Un(le,Oe){if(Oe=="*")return he.marked="keyword",oe(Un);if(le=="variable")return Le(Oe),oe(Un);if(le=="(")return oe(ft,nt(")"),O(gn,")"),ut,ae,bt);if(D&&Oe=="<")return oe(nt(">"),O(Dr,">"),ut,Un)}function jn(le,Oe){if(le=="keyword"||le=="variable")return he.marked="type",oe(jn);if(Oe=="<")return oe(nt(">"),O(Dr,">"),ut)}function gn(le,Oe){return Oe=="@"&&oe(Rt,gn),le=="spread"?oe(gn):D&&Pe(Oe)?(he.marked="keyword",oe(gn)):D&&le=="this"?oe(re,hn):ue(Hr,re,hn)}function Xn(le,Oe){return le=="variable"?wi(le,Oe):Nr(le,Oe)}function wi(le,Oe){if(le=="variable")return Le(Oe),oe(Nr)}function Nr(le,Oe){if(Oe=="<")return oe(nt(">"),O(Dr,">"),ut,Nr);if(Oe=="extends"||Oe=="implements"||D&&le==",")return Oe=="implements"&&(he.marked="keyword"),oe(D?Ae:Rt,Nr);if(le=="{")return oe(nt("}"),Gr,ut)}function Gr(le,Oe){if(le=="async"||le=="variable"&&(Oe=="static"||Oe=="get"||Oe=="set"||D&&Pe(Oe))&&he.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return he.marked="keyword",oe(Gr);if(le=="variable"||he.style=="keyword")return he.marked="property",oe(Qn,Gr);if(le=="number"||le=="string")return oe(Qn,Gr);if(le=="[")return oe(Rt,re,yt("]"),Qn,Gr);if(Oe=="*")return he.marked="keyword",oe(Gr);if(D&&le=="(")return ue(Un,Gr);if(le==";"||le==",")return oe(Gr);if(le=="}")return oe();if(Oe=="@")return oe(Rt,Gr)}function Qn(le,Oe){if(Oe=="!"||Oe=="?")return oe(Qn);if(le==":")return oe(Ae,hn);if(Oe=="=")return oe(kt);var qe=he.state.lexical.prev,st=qe&&qe.info=="interface";return ue(st?Un:vn)}function ur(le,Oe){return Oe=="*"?(he.marked="keyword",oe(Vn,yt(";"))):Oe=="default"?(he.marked="keyword",oe(Rt,yt(";"))):le=="{"?oe(O(Tt,"}"),Vn,yt(";")):ue(mt)}function Tt(le,Oe){if(Oe=="as")return he.marked="keyword",oe(yt("variable"));if(le=="variable")return ue(kt,Tt)}function ii(le){return le=="string"?oe():le=="("?ue(Rt):le=="."?ue(Vt):ue(Si,An,Vn)}function Si(le,Oe){return le=="{"?se(Si,"}"):(le=="variable"&&Le(Oe),Oe=="*"&&(he.marked="keyword"),oe(Zt))}function An(le){if(le==",")return oe(Si,An)}function Zt(le,Oe){if(Oe=="as")return he.marked="keyword",oe(Si)}function Vn(le,Oe){if(Oe=="from")return he.marked="keyword",oe(Rt)}function Zn(le){return le=="]"?oe():ue(O(kt,"]"))}function la(){return ue(nt("form"),Hr,yt("{"),nt("}"),O(at,"}"),ut,ut)}function at(){return ue(Hr,hn)}function Lt(le,Oe){return le.lastType=="operator"||le.lastType==","||q.test(Oe.charAt(0))||/[,.]/.test(Oe.charAt(0))}function ai(le,Oe,qe){return Oe.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Oe.lastType)||Oe.lastType=="quasi"&&/\{\s*$/.test(le.string.slice(0,le.pos-(qe||0)))}return{startState:function(le){var Oe={tokenize:V,lastType:"sof",cc:[],lexical:new ie((le||0)-d,0,"block",!1),localVars:x.localVars,context:x.localVars&&new rt(null,null,!1),indented:le||0};return x.globalVars&&typeof x.globalVars=="object"&&(Oe.globalVars=x.globalVars),Oe},token:function(le,Oe){if(le.sol()&&(Oe.lexical.hasOwnProperty("align")||(Oe.lexical.align=!1),Oe.indented=le.indentation(),ce(le,Oe)),Oe.tokenize!=_&&le.eatSpace())return null;var qe=Oe.tokenize(le,Oe);return X=="comment"?qe:(Oe.lastType=X=="operator"&&(M=="++"||M=="--")?"incdec":X,be(Oe,qe,X,M,le))},indent:function(le,Oe){if(le.tokenize==_||le.tokenize==Q)return c.Pass;if(le.tokenize!=V)return 0;var qe=Oe&&Oe.charAt(0),st=le.lexical,lt;if(!/^\s*else\b/.test(Oe))for(var Kt=le.cc.length-1;Kt>=0;--Kt){var Xt=le.cc[Kt];if(Xt==ut)st=st.prev;else if(Xt!=zr&&Xt!=bt)break}for(;(st.type=="stat"||st.type=="form")&&(qe=="}"||(lt=le.cc[le.cc.length-1])&&(lt==Vt||lt==St)&&!/^[,\.=+\-*:?[\(]/.test(Oe));)st=st.prev;b&&st.type==")"&&st.prev.type=="stat"&&(st=st.prev);var Tr=st.type,Pr=qe==Tr;return Tr=="vardef"?st.indented+(le.lastType=="operator"||le.lastType==","?st.info.length+1:0):Tr=="form"&&qe=="{"?st.indented:Tr=="form"?st.indented+d:Tr=="stat"?st.indented+(Lt(le,Oe)?b||d:0):st.info=="switch"&&!Pr&&x.doubleIndentSwitch!=!1?st.indented+(/^(?:case|default)\b/.test(Oe)?d:2*d):st.align?st.column+(Pr?0:1):st.indented+(Pr?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:g?null:"/*",blockCommentEnd:g?null:"*/",blockCommentContinue:g?null:" * ",lineComment:g?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:g?"json":"javascript",jsonldMode:S,jsonMode:g,expressionAllowed:ai,skipExpression:function(le){be(le,"atom","atom","true",new c.StringStream("",2,null))}}}),c.registerHelper("wordChars","javascript",/[\w$]/),c.defineMIME("text/javascript","javascript"),c.defineMIME("text/ecmascript","javascript"),c.defineMIME("application/javascript","javascript"),c.defineMIME("application/x-javascript","javascript"),c.defineMIME("application/ecmascript","javascript"),c.defineMIME("application/json",{name:"javascript",json:!0}),c.defineMIME("application/x-json",{name:"javascript",json:!0}),c.defineMIME("application/manifest+json",{name:"javascript",json:!0}),c.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),c.defineMIME("text/typescript",{name:"javascript",typescript:!0}),c.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},76489:(h,I)=>{"use strict";/*!
|
|
41
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ce;g&&(Ce=window.scrollY),l.input.focus(),g&&window.scrollTo(null,Ce),l.input.reset(),u.somethingSelected()||(f.value=n.prevInput=" "),n.contextMenuPending=ke,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function De(){if(f.selectionStart!=null){var tt=u.somethingSelected(),at="\u200B"+(tt?f.value:"");f.value="\u21DA",f.value=at,n.prevInput=tt?"":"\u200B",f.selectionStart=1,f.selectionEnd=at.length,l.selForContextMenu=u.doc.sel}}function ke(){if(n.contextMenuPending==ke&&(n.contextMenuPending=!1,n.wrapper.style.cssText=Z,f.style.cssText=H,b&&S<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=F),f.selectionStart!=null)){(!b||b&&S<9)&&De();var tt=0,at=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&n.prevInput=="\u200B"?jr(u,$a)(u):tt++<10?l.detectingSelectAll=setTimeout(at,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(at,200)}}if(b&&S>=9&&De(),Y){Bt(e);var Ye=function(){de(window,"mouseup",Ye),setTimeout(ke,20)};N(window,"mouseup",Ye)}else setTimeout(ke,50)},Sr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Sr.prototype.setUneditable=function(){},Sr.prototype.needsContentAttribute=!1;function Uc(e,n){if(n=n?Ze(n):{},n.value=e.value,!n.tabindex&&e.tabIndex&&(n.tabindex=e.tabIndex),!n.placeholder&&e.placeholder&&(n.placeholder=e.placeholder),n.autofocus==null){var u=Fe();n.autofocus=u==e||e.getAttribute("autofocus")!=null&&u==document.body}function l(){e.value=U.getValue()}var f;if(e.form&&(N(e.form,"submit",l),!n.leaveSubmitMethodAlone)){var m=e.form;f=m.submit;try{var F=m.submit=function(){l(),m.submit=f,m.submit(),m.submit=F}}catch(H){}}n.finishInit=function(H){H.save=l,H.getTextArea=function(){return e},H.toTextArea=function(){H.toTextArea=isNaN,l(),e.parentNode.removeChild(H.getWrapperElement()),e.style.display="",e.form&&(de(e.form,"submit",l),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=f))}},e.style.display="none";var U=dr(function(H){return e.parentNode.insertBefore(H,e.nextSibling)},n);return U}function uf(e){e.off=de,e.on=N,e.wheelEventPixels=rr,e.Doc=un,e.splitLines=Bn,e.countColumn=Xe,e.findColumn=pt,e.isWordChar=ve,e.Pass=nt,e.signal=oe,e.Line=Vi,e.changeEnd=Fi,e.scrollbarModel=yn,e.Pos=ot,e.cmpPos=Lt,e.modes=bi,e.mimeModes=qr,e.resolveMode=jn,e.getMode=gn,e.modeExtensions=Xn,e.extendMode=wi,e.copyState=Br,e.startState=Qn,e.innerMode=$r,e.commands=na,e.keyMap=ri,e.keyName=Gu,e.isModifierKey=zu,e.lookupKey=pi,e.normalizeKeyMap=Rd,e.StringStream=ur,e.SharedTextMarker=xo,e.TextMarker=ti,e.LineWidget=qo,e.e_preventDefault=Qe,e.e_stopPropagation=vt,e.e_stop=Bt,e.addClass=Le,e.contains=ae,e.rmClass=ee,e.keyNames=xn}rf(dr),Nc(dr);var jc="iter insert remove copy getEditor constructor".split(" ");for(var ns in un.prototype)un.prototype.hasOwnProperty(ns)&&ht(jc,ns)<0&&(dr.prototype[ns]=function(e){return function(){return e.apply(this.doc,arguments)}}(un.prototype[ns]));return Ue(un),dr.inputStyles={textarea:Sr,contenteditable:wt},dr.defineMode=function(e){!dr.defaults.mode&&e!="null"&&(dr.defaults.mode=e),vn.apply(this,arguments)},dr.defineMIME=Un,dr.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),dr.defineMIME("text/plain","null"),dr.defineExtension=function(e,n){dr.prototype[e]=n},dr.defineDocExtension=function(e,n){un.prototype[e]=n},dr.fromTextArea=Uc,uf(dr),dr.version="5.65.0",dr})},96876:(h,I,o)=>{(function(c){c(o(4631))})(function(c){"use strict";c.defineMode("javascript",function(v,x){var d=v.indentUnit,b=x.statementIndent,S=x.jsonld,g=x.json||S,L=x.trackScope!==!1,D=x.typescript,B=x.wordCharacters||/[\w$\xa1-\uffff]/,j=function(){function ue(Tr){return{type:Tr,style:"keyword"}}var Oe=ue("keyword a"),qe=ue("keyword b"),st=ue("keyword c"),lt=ue("keyword d"),Kt=ue("operator"),Xt={type:"atom",style:"atom"};return{if:ue("if"),while:Oe,with:Oe,else:qe,do:qe,try:qe,finally:qe,return:lt,break:lt,continue:lt,new:ue("new"),delete:st,void:st,throw:st,debugger:ue("debugger"),var:ue("var"),const:ue("var"),let:ue("var"),function:ue("function"),catch:ue("catch"),for:ue("for"),switch:ue("switch"),case:ue("case"),default:ue("default"),in:Kt,typeof:Kt,instanceof:Kt,true:Xt,false:Xt,null:Xt,undefined:Xt,NaN:Xt,Infinity:Xt,this:ue("this"),class:ue("class"),super:ue("atom"),yield:st,export:ue("export"),import:ue("import"),extends:st,await:st}}(),q=/[+\-*&%=<>!?|~^@]/,W=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function M(ue){for(var Oe=!1,qe,st=!1;(qe=ue.next())!=null;){if(!Oe){if(qe=="/"&&!st)return;qe=="["?st=!0:st&&qe=="]"&&(st=!1)}Oe=!Oe&&qe=="\\"}}var X,R;function C(ue,Oe,qe){return X=ue,R=qe,Oe}function V(ue,Oe){var qe=ue.next();if(qe=='"'||qe=="'")return Oe.tokenize=J(qe),Oe.tokenize(ue,Oe);if(qe=="."&&ue.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(qe=="."&&ue.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(qe))return C(qe);if(qe=="="&&ue.eat(">"))return C("=>","operator");if(qe=="0"&&ue.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(qe))return ue.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(qe=="/")return ue.eat("*")?(Oe.tokenize=_,_(ue,Oe)):ue.eat("/")?(ue.skipToEnd(),C("comment","comment")):oi(ue,Oe,1)?(M(ue),ue.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(ue.eat("="),C("operator","operator",ue.current()));if(qe=="`")return Oe.tokenize=Q,Q(ue,Oe);if(qe=="#"&&ue.peek()=="!")return ue.skipToEnd(),C("meta","meta");if(qe=="#"&&ue.eatWhile(B))return C("variable","property");if(qe=="<"&&ue.match("!--")||qe=="-"&&ue.match("->")&&!/\S/.test(ue.string.slice(0,ue.start)))return ue.skipToEnd(),C("comment","comment");if(q.test(qe))return(qe!=">"||!Oe.lexical||Oe.lexical.type!=">")&&(ue.eat("=")?(qe=="!"||qe=="=")&&ue.eat("="):/[<>*+\-|&?]/.test(qe)&&(ue.eat(qe),qe==">"&&ue.eat(qe))),qe=="?"&&ue.eat(".")?C("."):C("operator","operator",ue.current());if(B.test(qe)){ue.eatWhile(B);var st=ue.current();if(Oe.lastType!="."){if(j.propertyIsEnumerable(st)){var lt=j[st];return C(lt.type,lt.style,st)}if(st=="async"&&ue.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",st)}return C("variable","variable",st)}}function J(ue){return function(Oe,qe){var st=!1,lt;if(S&&Oe.peek()=="@"&&Oe.match(W))return qe.tokenize=V,C("jsonld-keyword","meta");for(;(lt=Oe.next())!=null&&!(lt==ue&&!st);)st=!st&<=="\\";return st||(qe.tokenize=V),C("string","string")}}function _(ue,Oe){for(var qe=!1,st;st=ue.next();){if(st=="/"&&qe){Oe.tokenize=V;break}qe=st=="*"}return C("comment","comment")}function Q(ue,Oe){for(var qe=!1,st;(st=ue.next())!=null;){if(!qe&&(st=="`"||st=="$"&&ue.eat("{"))){Oe.tokenize=V;break}qe=!qe&&st=="\\"}return C("quasi","string-2",ue.current())}var Y="([{}])";function ce(ue,Oe){Oe.fatArrowAt&&(Oe.fatArrowAt=null);var qe=ue.string.indexOf("=>",ue.start);if(!(qe<0)){if(D){var st=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(ue.string.slice(ue.start,qe));st&&(qe=st.index)}for(var lt=0,Kt=!1,Xt=qe-1;Xt>=0;--Xt){var Tr=ue.string.charAt(Xt),Pr=Y.indexOf(Tr);if(Pr>=0&&Pr<3){if(!lt){++Xt;break}if(--lt==0){Tr=="("&&(Kt=!0);break}}else if(Pr>=3&&Pr<6)++lt;else if(B.test(Tr))Kt=!0;else if(/["'\/`]/.test(Tr))for(;;--Xt){if(Xt==0)return;var _t=ue.string.charAt(Xt-1);if(_t==Tr&&ue.string.charAt(Xt-2)!="\\"){Xt--;break}}else if(Kt&&!lt){++Xt;break}}Kt&&!lt&&(Oe.fatArrowAt=Xt)}}var ee={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ie(ue,Oe,qe,st,lt,Kt){this.indented=ue,this.column=Oe,this.type=qe,this.prev=lt,this.info=Kt,st!=null&&(this.align=st)}function xe(ue,Oe){if(!L)return!1;for(var qe=ue.localVars;qe;qe=qe.next)if(qe.name==Oe)return!0;for(var st=ue.context;st;st=st.prev)for(var qe=st.vars;qe;qe=qe.next)if(qe.name==Oe)return!0}function we(ue,Oe,qe,st,lt){var Kt=ue.cc;for(he.state=ue,he.stream=lt,he.marked=null,he.cc=Kt,he.style=Oe,ue.lexical.hasOwnProperty("align")||(ue.lexical.align=!0);;){var Xt=Kt.length?Kt.pop():g?Mt:mt;if(Xt(qe,st)){for(;Kt.length&&Kt[Kt.length-1].lex;)Kt.pop()();return he.marked?he.marked:qe=="variable"&&xe(ue,st)?"variable-2":Oe}}}var he={state:null,column:null,marked:null,cc:null};function fe(){for(var ue=arguments.length-1;ue>=0;ue--)he.cc.push(arguments[ue])}function ae(){return fe.apply(null,arguments),!0}function Fe(ue,Oe){for(var qe=Oe;qe;qe=qe.next)if(qe.name==ue)return!0;return!1}function Le(ue){var Oe=he.state;if(he.marked="def",!!L){if(Oe.context){if(Oe.lexical.info=="var"&&Oe.context&&Oe.context.block){var qe=Me(ue,Oe.context);if(qe!=null){Oe.context=qe;return}}else if(!Fe(ue,Oe.localVars)){Oe.localVars=new Ze(ue,Oe.localVars);return}}x.globalVars&&!Fe(ue,Oe.globalVars)&&(Oe.globalVars=new Ze(ue,Oe.globalVars))}}function Me(ue,Oe){if(Oe)if(Oe.block){var qe=Me(ue,Oe.prev);return qe?qe==Oe.prev?Oe:new rt(qe,Oe.vars,!0):null}else return Fe(ue,Oe.vars)?Oe:new rt(Oe.prev,new Ze(ue,Oe.vars),!1);else return null}function Te(ue){return ue=="public"||ue=="private"||ue=="protected"||ue=="abstract"||ue=="readonly"}function rt(ue,Oe,qe){this.prev=ue,this.vars=Oe,this.block=qe}function Ze(ue,Oe){this.name=ue,this.next=Oe}var Xe=new Ze("this",new Ze("arguments",null));function ft(){he.state.context=new rt(he.state.context,he.state.localVars,!1),he.state.localVars=Xe}function ht(){he.state.context=new rt(he.state.context,he.state.localVars,!0),he.state.localVars=null}function bt(){he.state.localVars=he.state.context.vars,he.state.context=he.state.context.prev}bt.lex=!0;function nt(ue,Oe){var qe=function(){var st=he.state,lt=st.indented;if(st.lexical.type=="stat")lt=st.lexical.indented;else for(var Kt=st.lexical;Kt&&Kt.type==")"&&Kt.align;Kt=Kt.prev)lt=Kt.indented;st.lexical=new ie(lt,he.stream.column(),ue,null,st.lexical,Oe)};return qe.lex=!0,qe}function ut(){var ue=he.state;ue.lexical.prev&&(ue.lexical.type==")"&&(ue.indented=ue.lexical.indented),ue.lexical=ue.lexical.prev)}ut.lex=!0;function yt(ue){function Oe(qe){return qe==ue?ae():ue==";"||qe=="}"||qe==")"||qe=="]"?fe():ae(Oe)}return Oe}function mt(ue,Oe){return ue=="var"?ae(nt("vardef",Oe),mi,yt(";"),ut):ue=="keyword a"?ae(nt("form"),Ct,mt,ut):ue=="keyword b"?ae(nt("form"),mt,ut):ue=="keyword d"?he.stream.match(/^\s*$/,!1)?ae():ae(nt("stat"),jt,yt(";"),ut):ue=="debugger"?ae(yt(";")):ue=="{"?ae(nt("}"),ht,N,ut,bt):ue==";"?ae():ue=="if"?(he.state.lexical.info=="else"&&he.state.cc[he.state.cc.length-1]==ut&&he.state.cc.pop()(),ae(nt("form"),Ct,mt,ut,Gr)):ue=="function"?ae(vn):ue=="for"?ae(nt("form"),ht,xi,mt,bt,ut):ue=="class"||D&&Oe=="interface"?(he.marked="keyword",ae(nt("form",ue=="class"?ue:Oe),wi,ut)):ue=="variable"?D&&Oe=="declare"?(he.marked="keyword",ae(mt)):D&&(Oe=="module"||Oe=="enum"||Oe=="type")&&he.stream.match(/^\s*\w/,!1)?(he.marked="keyword",Oe=="enum"?ae(lo):Oe=="type"?ae(jn,yt("operator"),Ae,yt(";")):ae(nt("form"),zr,yt("{"),nt("}"),N,ut,ut)):D&&Oe=="namespace"?(he.marked="keyword",ae(nt("form"),Mt,mt,ut)):D&&Oe=="abstract"?(he.marked="keyword",ae(mt)):ae(nt("stat"),Ke):ue=="switch"?ae(nt("form"),Ct,yt("{"),nt("}","switch"),ht,N,ut,ut,bt):ue=="case"?ae(Mt,yt(":")):ue=="default"?ae(yt(":")):ue=="catch"?ae(nt("form"),ft,pt,mt,ut,bt):ue=="export"?ae(nt("stat"),ur,ut):ue=="import"?ae(nt("stat"),ii,ut):ue=="async"?ae(mt):Oe=="@"?ae(Mt,mt):fe(nt("stat"),Mt,yt(";"),ut)}function pt(ue){if(ue=="(")return ae(gn,yt(")"))}function Mt(ue,Oe){return Wt(ue,Oe,!1)}function kt(ue,Oe){return Wt(ue,Oe,!0)}function Ct(ue){return ue!="("?fe():ae(nt(")"),jt,yt(")"),ut)}function Wt(ue,Oe,qe){if(he.state.fatArrowAt==he.stream.start){var st=qe?$:z;if(ue=="(")return ae(ft,nt(")"),O(gn,")"),ut,yt("=>"),st,bt);if(ue=="variable")return fe(ft,zr,yt("=>"),st,bt)}var lt=qe?St:Vt;return ee.hasOwnProperty(ue)?ae(lt):ue=="function"?ae(vn,lt):ue=="class"||D&&Oe=="interface"?(he.marked="keyword",ae(nt("form"),Xn,ut)):ue=="keyword c"||ue=="async"?ae(qe?kt:Mt):ue=="("?ae(nt(")"),jt,yt(")"),ut,lt):ue=="operator"||ue=="spread"?ae(qe?kt:Mt):ue=="["?ae(nt("]"),Zn,ut,lt):ue=="{"?le(Re,"}",null,lt):ue=="quasi"?fe(Dt,lt):ue=="new"?ae(Se(qe)):ae()}function jt(ue){return ue.match(/[;\}\)\],]/)?fe():fe(Mt)}function Vt(ue,Oe){return ue==","?ae(jt):St(ue,Oe,!1)}function St(ue,Oe,qe){var st=qe==!1?Vt:St,lt=qe==!1?Mt:kt;if(ue=="=>")return ae(ft,qe?$:z,bt);if(ue=="operator")return/\+\+|--/.test(Oe)||D&&Oe=="!"?ae(st):D&&Oe=="<"&&he.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?ae(nt(">"),O(Ae,">"),ut,st):Oe=="?"?ae(Mt,yt(":"),lt):ae(lt);if(ue=="quasi")return fe(Dt,st);if(ue!=";"){if(ue=="(")return le(kt,")","call",st);if(ue==".")return ae(P,st);if(ue=="[")return ae(nt("]"),jt,yt("]"),ut,st);if(D&&Oe=="as")return he.marked="keyword",ae(Ae,st);if(ue=="regexp")return he.state.lastType=he.marked="operator",he.stream.backUp(he.stream.pos-he.stream.start-1),ae(lt)}}function Dt(ue,Oe){return ue!="quasi"?fe():Oe.slice(Oe.length-2)!="${"?ae(Dt):ae(jt,ve)}function ve(ue){if(ue=="}")return he.marked="string-2",he.state.tokenize=Q,ae(Dt)}function z(ue){return ce(he.stream,he.state),fe(ue=="{"?mt:Mt)}function $(ue){return ce(he.stream,he.state),fe(ue=="{"?mt:kt)}function Se(ue){return function(Oe){return Oe=="."?ae(ue?$e:Ie):Oe=="variable"&&D?ae(pn,ue?St:Vt):fe(ue?kt:Mt)}}function Ie(ue,Oe){if(Oe=="target")return he.marked="keyword",ae(Vt)}function $e(ue,Oe){if(Oe=="target")return he.marked="keyword",ae(St)}function Ke(ue){return ue==":"?ae(ut,mt):fe(Vt,yt(";"),ut)}function P(ue){if(ue=="variable")return he.marked="property",ae()}function Re(ue,Oe){if(ue=="async")return he.marked="property",ae(Re);if(ue=="variable"||he.style=="keyword"){if(he.marked="property",Oe=="get"||Oe=="set")return ae(K);var qe;return D&&he.state.fatArrowAt==he.stream.start&&(qe=he.stream.match(/^\s*:\s*/,!1))&&(he.state.fatArrowAt=he.stream.pos+qe[0].length),ae(T)}else{if(ue=="number"||ue=="string")return he.marked=S?"property":he.style+" property",ae(T);if(ue=="jsonld-keyword")return ae(T);if(D&&Te(Oe))return he.marked="keyword",ae(Re);if(ue=="[")return ae(Mt,te,yt("]"),T);if(ue=="spread")return ae(kt,T);if(Oe=="*")return he.marked="keyword",ae(Re);if(ue==":")return fe(T)}}function K(ue){return ue!="variable"?fe(T):(he.marked="property",ae(vn))}function T(ue){if(ue==":")return ae(kt);if(ue=="(")return fe(vn)}function O(ue,Oe,qe){function st(lt,Kt){if(qe?qe.indexOf(lt)>-1:lt==","){var Xt=he.state.lexical;return Xt.info=="call"&&(Xt.pos=(Xt.pos||0)+1),ae(function(Tr,Pr){return Tr==Oe||Pr==Oe?fe():fe(ue)},st)}return lt==Oe||Kt==Oe?ae():qe&&qe.indexOf(";")>-1?fe(ue):ae(yt(Oe))}return function(lt,Kt){return lt==Oe||Kt==Oe?ae():fe(ue,st)}}function le(ue,Oe,qe){for(var st=3;st<arguments.length;st++)he.cc.push(arguments[st]);return ae(nt(Oe,qe),O(ue,Oe),ut)}function N(ue){return ue=="}"?ae():fe(mt,N)}function te(ue,Oe){if(D){if(ue==":")return ae(Ae);if(Oe=="?")return ae(te)}}function de(ue,Oe){if(D&&(ue==":"||Oe=="in"))return ae(Ae)}function oe(ue){if(D&&ue==":")return he.stream.match(/^\s*\w+\s+is\b/,!1)?ae(Mt,pe,Ae):ae(Ae)}function pe(ue,Oe){if(Oe=="is")return he.marked="keyword",ae()}function Ae(ue,Oe){if(Oe=="keyof"||Oe=="typeof"||Oe=="infer"||Oe=="readonly")return he.marked="keyword",ae(Oe=="typeof"?kt:Ae);if(ue=="variable"||Oe=="void")return he.marked="type",ae(Pt);if(Oe=="|"||Oe=="&")return ae(Ae);if(ue=="string"||ue=="number"||ue=="atom")return ae(Pt);if(ue=="[")return ae(nt("]"),O(Ae,"]",","),ut,Pt);if(ue=="{")return ae(nt("}"),Ue,ut,Pt);if(ue=="(")return ae(O(Bt,")"),Be,Pt);if(ue=="<")return ae(O(Ae,">"),Ae);if(ue=="quasi")return fe(vt,Pt)}function Be(ue){if(ue=="=>")return ae(Ae)}function Ue(ue){return ue.match(/[\}\)\]]/)?ae():ue==","||ue==";"?ae(Ue):fe(Qe,Ue)}function Qe(ue,Oe){if(ue=="variable"||he.style=="keyword")return he.marked="property",ae(Qe);if(Oe=="?"||ue=="number"||ue=="string")return ae(Qe);if(ue==":")return ae(Ae);if(ue=="[")return ae(yt("variable"),de,yt("]"),Qe);if(ue=="(")return fe(Un,Qe);if(!ue.match(/[;\}\)\],]/))return ae()}function vt(ue,Oe){return ue!="quasi"?fe():Oe.slice(Oe.length-2)!="${"?ae(vt):ae(Ae,Et)}function Et(ue){if(ue=="}")return he.marked="string-2",he.state.tokenize=Q,ae(vt)}function Bt(ue,Oe){return ue=="variable"&&he.stream.match(/^\s*[?:]/,!1)||Oe=="?"?ae(Bt):ue==":"?ae(Ae):ue=="spread"?ae(Bt):fe(Ae)}function Pt(ue,Oe){if(Oe=="<")return ae(nt(">"),O(Ae,">"),ut,Pt);if(Oe=="|"||ue=="."||Oe=="&")return ae(Ae);if(ue=="[")return ae(Ae,yt("]"),Pt);if(Oe=="extends"||Oe=="implements")return he.marked="keyword",ae(Ae);if(Oe=="?")return ae(Ae,yt(":"),Ae)}function pn(ue,Oe){if(Oe=="<")return ae(nt(">"),O(Ae,">"),ut,Pt)}function Nr(){return fe(Ae,Or)}function Or(ue,Oe){if(Oe=="=")return ae(Ae)}function mi(ue,Oe){return Oe=="enum"?(he.marked="keyword",ae(lo)):fe(zr,te,hn,Tn)}function zr(ue,Oe){if(D&&Te(Oe))return he.marked="keyword",ae(zr);if(ue=="variable")return Le(Oe),ae();if(ue=="spread")return ae(zr);if(ue=="[")return le(Bn,"]");if(ue=="{")return le(Bi,"}")}function Bi(ue,Oe){return ue=="variable"&&!he.stream.match(/^\s*:/,!1)?(Le(Oe),ae(hn)):(ue=="variable"&&(he.marked="property"),ue=="spread"?ae(zr):ue=="}"?fe():ue=="["?ae(Mt,yt("]"),yt(":"),Bi):ae(yt(":"),zr,hn))}function Bn(){return fe(zr,hn)}function hn(ue,Oe){if(Oe=="=")return ae(kt)}function Tn(ue){if(ue==",")return ae(mi)}function Gr(ue,Oe){if(ue=="keyword b"&&Oe=="else")return ae(nt("form","else"),mt,ut)}function xi(ue,Oe){if(Oe=="await")return ae(xi);if(ue=="(")return ae(nt(")"),bi,ut)}function bi(ue){return ue=="var"?ae(mi,qr):ue=="variable"?ae(qr):fe(qr)}function qr(ue,Oe){return ue==")"?ae():ue==";"?ae(qr):Oe=="in"||Oe=="of"?(he.marked="keyword",ae(Mt,qr)):fe(Mt,qr)}function vn(ue,Oe){if(Oe=="*")return he.marked="keyword",ae(vn);if(ue=="variable")return Le(Oe),ae(vn);if(ue=="(")return ae(ft,nt(")"),O(gn,")"),ut,oe,mt,bt);if(D&&Oe=="<")return ae(nt(">"),O(Nr,">"),ut,vn)}function Un(ue,Oe){if(Oe=="*")return he.marked="keyword",ae(Un);if(ue=="variable")return Le(Oe),ae(Un);if(ue=="(")return ae(ft,nt(")"),O(gn,")"),ut,oe,bt);if(D&&Oe=="<")return ae(nt(">"),O(Nr,">"),ut,Un)}function jn(ue,Oe){if(ue=="keyword"||ue=="variable")return he.marked="type",ae(jn);if(Oe=="<")return ae(nt(">"),O(Nr,">"),ut)}function gn(ue,Oe){return Oe=="@"&&ae(Mt,gn),ue=="spread"?ae(gn):D&&Te(Oe)?(he.marked="keyword",ae(gn)):D&&ue=="this"?ae(te,hn):fe(zr,te,hn)}function Xn(ue,Oe){return ue=="variable"?wi(ue,Oe):Br(ue,Oe)}function wi(ue,Oe){if(ue=="variable")return Le(Oe),ae(Br)}function Br(ue,Oe){if(Oe=="<")return ae(nt(">"),O(Nr,">"),ut,Br);if(Oe=="extends"||Oe=="implements"||D&&ue==",")return Oe=="implements"&&(he.marked="keyword"),ae(D?Ae:Mt,Br);if(ue=="{")return ae(nt("}"),$r,ut)}function $r(ue,Oe){if(ue=="async"||ue=="variable"&&(Oe=="static"||Oe=="get"||Oe=="set"||D&&Te(Oe))&&he.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return he.marked="keyword",ae($r);if(ue=="variable"||he.style=="keyword")return he.marked="property",ae(Qn,$r);if(ue=="number"||ue=="string")return ae(Qn,$r);if(ue=="[")return ae(Mt,te,yt("]"),Qn,$r);if(Oe=="*")return he.marked="keyword",ae($r);if(D&&ue=="(")return fe(Un,$r);if(ue==";"||ue==",")return ae($r);if(ue=="}")return ae();if(Oe=="@")return ae(Mt,$r)}function Qn(ue,Oe){if(Oe=="!"||Oe=="?")return ae(Qn);if(ue==":")return ae(Ae,hn);if(Oe=="=")return ae(kt);var qe=he.state.lexical.prev,st=qe&&qe.info=="interface";return fe(st?Un:vn)}function ur(ue,Oe){return Oe=="*"?(he.marked="keyword",ae(Vn,yt(";"))):Oe=="default"?(he.marked="keyword",ae(Mt,yt(";"))):ue=="{"?ae(O(Tt,"}"),Vn,yt(";")):fe(mt)}function Tt(ue,Oe){if(Oe=="as")return he.marked="keyword",ae(yt("variable"));if(ue=="variable")return fe(kt,Tt)}function ii(ue){return ue=="string"?ae():ue=="("?fe(Mt):ue=="."?fe(Vt):fe(Si,An,Vn)}function Si(ue,Oe){return ue=="{"?le(Si,"}"):(ue=="variable"&&Le(Oe),Oe=="*"&&(he.marked="keyword"),ae(Zt))}function An(ue){if(ue==",")return ae(Si,An)}function Zt(ue,Oe){if(Oe=="as")return he.marked="keyword",ae(Si)}function Vn(ue,Oe){if(Oe=="from")return he.marked="keyword",ae(Mt)}function Zn(ue){return ue=="]"?ae():fe(O(kt,"]"))}function lo(){return fe(nt("form"),zr,yt("{"),nt("}"),O(ot,"}"),ut,ut)}function ot(){return fe(zr,hn)}function Lt(ue,Oe){return ue.lastType=="operator"||ue.lastType==","||q.test(Oe.charAt(0))||/[,.]/.test(Oe.charAt(0))}function oi(ue,Oe,qe){return Oe.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Oe.lastType)||Oe.lastType=="quasi"&&/\{\s*$/.test(ue.string.slice(0,ue.pos-(qe||0)))}return{startState:function(ue){var Oe={tokenize:V,lastType:"sof",cc:[],lexical:new ie((ue||0)-d,0,"block",!1),localVars:x.localVars,context:x.localVars&&new rt(null,null,!1),indented:ue||0};return x.globalVars&&typeof x.globalVars=="object"&&(Oe.globalVars=x.globalVars),Oe},token:function(ue,Oe){if(ue.sol()&&(Oe.lexical.hasOwnProperty("align")||(Oe.lexical.align=!1),Oe.indented=ue.indentation(),ce(ue,Oe)),Oe.tokenize!=_&&ue.eatSpace())return null;var qe=Oe.tokenize(ue,Oe);return X=="comment"?qe:(Oe.lastType=X=="operator"&&(R=="++"||R=="--")?"incdec":X,we(Oe,qe,X,R,ue))},indent:function(ue,Oe){if(ue.tokenize==_||ue.tokenize==Q)return c.Pass;if(ue.tokenize!=V)return 0;var qe=Oe&&Oe.charAt(0),st=ue.lexical,lt;if(!/^\s*else\b/.test(Oe))for(var Kt=ue.cc.length-1;Kt>=0;--Kt){var Xt=ue.cc[Kt];if(Xt==ut)st=st.prev;else if(Xt!=Gr&&Xt!=bt)break}for(;(st.type=="stat"||st.type=="form")&&(qe=="}"||(lt=ue.cc[ue.cc.length-1])&&(lt==Vt||lt==St)&&!/^[,\.=+\-*:?[\(]/.test(Oe));)st=st.prev;b&&st.type==")"&&st.prev.type=="stat"&&(st=st.prev);var Tr=st.type,Pr=qe==Tr;return Tr=="vardef"?st.indented+(ue.lastType=="operator"||ue.lastType==","?st.info.length+1:0):Tr=="form"&&qe=="{"?st.indented:Tr=="form"?st.indented+d:Tr=="stat"?st.indented+(Lt(ue,Oe)?b||d:0):st.info=="switch"&&!Pr&&x.doubleIndentSwitch!=!1?st.indented+(/^(?:case|default)\b/.test(Oe)?d:2*d):st.align?st.column+(Pr?0:1):st.indented+(Pr?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:g?null:"/*",blockCommentEnd:g?null:"*/",blockCommentContinue:g?null:" * ",lineComment:g?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:g?"json":"javascript",jsonldMode:S,jsonMode:g,expressionAllowed:oi,skipExpression:function(ue){we(ue,"atom","atom","true",new c.StringStream("",2,null))}}}),c.registerHelper("wordChars","javascript",/[\w$]/),c.defineMIME("text/javascript","javascript"),c.defineMIME("text/ecmascript","javascript"),c.defineMIME("application/javascript","javascript"),c.defineMIME("application/x-javascript","javascript"),c.defineMIME("application/ecmascript","javascript"),c.defineMIME("application/json",{name:"javascript",json:!0}),c.defineMIME("application/x-json",{name:"javascript",json:!0}),c.defineMIME("application/manifest+json",{name:"javascript",json:!0}),c.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),c.defineMIME("text/typescript",{name:"javascript",typescript:!0}),c.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},76489:(h,I)=>{"use strict";/*!
|
|
42
42
|
* cookie
|
|
43
43
|
* Copyright(c) 2012-2014 Roman Shtylman
|
|
44
44
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
45
45
|
* MIT Licensed
|
|
46
|
-
*/I.parse=d,I.serialize=b;var a=decodeURIComponent,c=encodeURIComponent,v=/; */,x=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function d(g,L){if(typeof g!="string")throw new TypeError("argument str must be a string");for(var D={},B=L||{},j=g.split(v),q=B.decode||a,W=0;W<j.length;W++){var R=j[W],X=R.indexOf("=");if(!(X<0)){var M=R.substr(0,X).trim(),C=R.substr(++X,R.length).trim();C[0]=='"'&&(C=C.slice(1,-1)),D[M]==null&&(D[M]=S(C,q))}}return D}function b(g,L,D){var B=D||{},j=B.encode||c;if(typeof j!="function")throw new TypeError("option encode is invalid");if(!x.test(g))throw new TypeError("argument name is invalid");var q=j(L);if(q&&!x.test(q))throw new TypeError("argument val is invalid");var W=g+"="+q;if(B.maxAge!=null){var R=B.maxAge-0;if(isNaN(R)||!isFinite(R))throw new TypeError("option maxAge is invalid");W+="; Max-Age="+Math.floor(R)}if(B.domain){if(!x.test(B.domain))throw new TypeError("option domain is invalid");W+="; Domain="+B.domain}if(B.path){if(!x.test(B.path))throw new TypeError("option path is invalid");W+="; Path="+B.path}if(B.expires){if(typeof B.expires.toUTCString!="function")throw new TypeError("option expires is invalid");W+="; Expires="+B.expires.toUTCString()}if(B.httpOnly&&(W+="; HttpOnly"),B.secure&&(W+="; Secure"),B.sameSite){var X=typeof B.sameSite=="string"?B.sameSite.toLowerCase():B.sameSite;switch(X){case!0:W+="; SameSite=Strict";break;case"lax":W+="; SameSite=Lax";break;case"strict":W+="; SameSite=Strict";break;case"none":W+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return W}function S(g,L){try{return L(g)}catch(D){return g}}},54493:(h,I,a)=>{a(77971),a(53242);var c=a(54058);h.exports=c.Array.from},24034:(h,I,a)=>{a(92737);var c=a(54058);h.exports=c.Array.isArray},15367:(h,I,a)=>{a(85906);var c=a(35703);h.exports=c("Array").concat},12710:(h,I,a)=>{a(66274);var c=a(35703);h.exports=c("Array").entries},62383:(h,I,a)=>{a(21501);var c=a(35703);h.exports=c("Array").filter},17671:(h,I,a)=>{a(80833);var c=a(35703);h.exports=c("Array").find},99324:(h,I,a)=>{a(2437);var c=a(35703);h.exports=c("Array").forEach},80991:(h,I,a)=>{a(97690);var c=a(35703);h.exports=c("Array").includes},8700:(h,I,a)=>{a(99076);var c=a(35703);h.exports=c("Array").indexOf},23866:(h,I,a)=>{a(68787);var c=a(35703);h.exports=c("Array").map},24900:(h,I,a)=>{a(60186);var c=a(35703);h.exports=c("Array").slice},78209:(h,I,a)=>{a(98611);var c=a(35703);h.exports=c("Array").splice},56043:(h,I,a)=>{var c=a(15367),v=Array.prototype;h.exports=function(x){var d=x.concat;return x===v||x instanceof Array&&d===v.concat?c:d}},2480:(h,I,a)=>{var c=a(62383),v=Array.prototype;h.exports=function(x){var d=x.filter;return x===v||x instanceof Array&&d===v.filter?c:d}},32236:(h,I,a)=>{var c=a(17671),v=Array.prototype;h.exports=function(x){var d=x.find;return x===v||x instanceof Array&&d===v.find?c:d}},58557:(h,I,a)=>{var c=a(80991),v=a(21631),x=Array.prototype,d=String.prototype;h.exports=function(b){var S=b.includes;return b===x||b instanceof Array&&S===x.includes?c:typeof b=="string"||b===d||b instanceof String&&S===d.includes?v:S}},34570:(h,I,a)=>{var c=a(8700),v=Array.prototype;h.exports=function(x){var d=x.indexOf;return x===v||x instanceof Array&&d===v.indexOf?c:d}},88287:(h,I,a)=>{var c=a(23866),v=Array.prototype;h.exports=function(x){var d=x.map;return x===v||x instanceof Array&&d===v.map?c:d}},69601:(h,I,a)=>{var c=a(24900),v=Array.prototype;h.exports=function(x){var d=x.slice;return x===v||x instanceof Array&&d===v.slice?c:d}},18339:(h,I,a)=>{var c=a(78209),v=Array.prototype;h.exports=function(x){var d=x.splice;return x===v||x instanceof Array&&d===v.splice?c:d}},84426:(h,I,a)=>{a(32619);var c=a(54058);c.JSON||(c.JSON={stringify:JSON.stringify}),h.exports=function(x,d,b){return c.JSON.stringify.apply(null,arguments)}},45999:(h,I,a)=>{a(49221);var c=a(54058);h.exports=c.Object.assign},35254:(h,I,a)=>{a(53882);var c=a(54058),v=c.Object;h.exports=function(d,b){return v.create(d,b)}},7702:(h,I,a)=>{a(74979);var c=a(54058),v=c.Object,x=h.exports=function(b,S){return v.defineProperties(b,S)};v.defineProperties.sham&&(x.sham=!0)},48171:(h,I,a)=>{a(86450);var c=a(54058),v=c.Object,x=h.exports=function(b,S,g){return v.defineProperty(b,S,g)};v.defineProperty.sham&&(x.sham=!0)},73081:(h,I,a)=>{a(21078);var c=a(54058);h.exports=c.Object.entries},286:(h,I,a)=>{a(46924);var c=a(54058),v=c.Object,x=h.exports=function(b,S){return v.getOwnPropertyDescriptor(b,S)};v.getOwnPropertyDescriptor.sham&&(x.sham=!0)},92766:(h,I,a)=>{a(88482);var c=a(54058);h.exports=c.Object.getOwnPropertyDescriptors},30498:(h,I,a)=>{a(35824);var c=a(54058);h.exports=c.Object.getOwnPropertySymbols},13966:(h,I,a)=>{a(17405);var c=a(54058);h.exports=c.Object.getPrototypeOf},48494:(h,I,a)=>{a(21724);var c=a(54058);h.exports=c.Object.keys},3065:(h,I,a)=>{a(90108);var c=a(54058);h.exports=c.Object.setPrototypeOf},52956:(h,I,a)=>{a(47627),a(55967),a(98881),a(4560),a(91302),a(44349),a(77971),a(7634);var c=a(54058);h.exports=c.Promise},14983:(h,I,a)=>{a(7453);var c=a(54058);h.exports=c.Reflect.construct},37095:(h,I,a)=>{a(42355);var c=a(54058);h.exports=c.Reflect.get},21631:(h,I,a)=>{a(11035);var c=a(35703);h.exports=c("String").includes},57473:(h,I,a)=>{a(85906),a(55967),a(35824),a(8555),a(52615),a(21732),a(35903),a(1825),a(28394),a(45915),a(61766),a(62737),a(89911),a(74315),a(63131),a(64714),a(70659),a(69120),a(79413),a(1502);var c=a(54058);h.exports=c.Symbol},24227:(h,I,a)=>{a(1825),a(77971),a(7634);var c=a(11477);h.exports=c.f("iterator")},32304:(h,I,a)=>{a(55967),a(54334),a(7634);var c=a(54058);h.exports=c.WeakMap},27385:(h,I,a)=>{var c=a(54493);h.exports=c},81522:(h,I,a)=>{var c=a(24034);h.exports=c},32209:(h,I,a)=>{a(7634),a(77971);var c=a(22902);h.exports=c},44442:(h,I,a)=>{var c=a(2480);h.exports=c},57152:(h,I,a)=>{var c=a(46279);h.exports=c},69447:(h,I,a)=>{var c=a(34570);h.exports=c},81493:(h,I,a)=>{var c=a(69601);h.exports=c},76094:(h,I,a)=>{var c=a(35254);h.exports=c},70573:(h,I,a)=>{var c=a(7702);h.exports=c},73685:(h,I,a)=>{var c=a(48171);h.exports=c},27533:(h,I,a)=>{var c=a(286);h.exports=c},39057:(h,I,a)=>{var c=a(92766);h.exports=c},84710:(h,I,a)=>{var c=a(30498);h.exports=c},74303:(h,I,a)=>{var c=a(13966);h.exports=c},93799:(h,I,a)=>{var c=a(48494);h.exports=c},55122:(h,I,a)=>{var c=a(3065);h.exports=c},29531:(h,I,a)=>{var c=a(52956);a(89731),a(55708),a(30014),a(88731),h.exports=c},10856:(h,I,a)=>{var c=a(14983);h.exports=c},31524:(h,I,a)=>{var c=a(37095);h.exports=c},86600:(h,I,a)=>{var c=a(57473);a(28783),a(43975),a(65799),a(45414),a(46774),a(80620),a(36172),h.exports=c},9759:(h,I,a)=>{var c=a(24227);h.exports=c},33916:h=>{h.exports=function(I){if(typeof I!="function")throw TypeError(String(I)+" is not a function");return I}},42488:(h,I,a)=>{var c=a(10941);h.exports=function(v){if(!c(v)&&v!==null)throw TypeError("Can't set "+String(v)+" as a prototype");return v}},18479:h=>{h.exports=function(){}},5743:h=>{h.exports=function(I,a,c){if(!(I instanceof a))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return I}},96059:(h,I,a)=>{var c=a(10941);h.exports=function(v){if(!c(v))throw TypeError(String(v)+" is not an object");return v}},56837:(h,I,a)=>{"use strict";var c=a(3610).forEach,v=a(34194),x=v("forEach");h.exports=x?[].forEach:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}},11354:(h,I,a)=>{"use strict";var c=a(86843),v=a(89678),x=a(75196),d=a(6782),b=a(43057),S=a(55449),g=a(22902);h.exports=function(D){var B=v(D),j=typeof this=="function"?this:Array,q=arguments.length,W=q>1?arguments[1]:void 0,R=W!==void 0,X=g(B),M=0,C,V,J,_,Q,Y;if(R&&(W=c(W,q>2?arguments[2]:void 0,2)),X!=null&&!(j==Array&&d(X)))for(_=X.call(B),Q=_.next,V=new j;!(J=Q.call(_)).done;M++)Y=R?x(_,W,[J.value,M],!0):J.value,S(V,M,Y);else for(C=b(B.length),V=new j(C);C>M;M++)Y=R?W(B[M],M):B[M],S(V,M,Y);return V.length=M,V}},31692:(h,I,a)=>{var c=a(74529),v=a(43057),x=a(59413),d=function(b){return function(S,g,L){var D=c(S),B=v(D.length),j=x(L,B),q;if(b&&g!=g){for(;B>j;)if(q=D[j++],q!=q)return!0}else for(;B>j;j++)if((b||j in D)&&D[j]===g)return b||j||0;return!b&&-1}};h.exports={includes:d(!0),indexOf:d(!1)}},3610:(h,I,a)=>{var c=a(86843),v=a(37026),x=a(89678),d=a(43057),b=a(64692),S=[].push,g=function(L){var D=L==1,B=L==2,j=L==3,q=L==4,W=L==6,R=L==7,X=L==5||W;return function(M,C,V,J){for(var _=x(M),Q=v(_),Y=c(C,V,3),ce=d(Q.length),ee=0,ie=J||b,me=D?ie(M,ce):B||R?ie(M,0):void 0,be,he;ce>ee;ee++)if((X||ee in Q)&&(be=Q[ee],he=Y(be,ee,_),L))if(D)me[ee]=he;else if(he)switch(L){case 3:return!0;case 5:return be;case 6:return ee;case 2:S.call(me,be)}else switch(L){case 4:return!1;case 7:S.call(me,be)}return W?-1:j||q?q:me}};h.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}},50568:(h,I,a)=>{var c=a(95981),v=a(99813),x=a(53385),d=v("species");h.exports=function(b){return x>=51||!c(function(){var S=[],g=S.constructor={};return g[d]=function(){return{foo:1}},S[b](Boolean).foo!==1})}},34194:(h,I,a)=>{"use strict";var c=a(95981);h.exports=function(v,x){var d=[][v];return!!d&&c(function(){d.call(null,x||function(){throw 1},1)})}},64692:(h,I,a)=>{var c=a(10941),v=a(1052),x=a(99813),d=x("species");h.exports=function(b,S){var g;return v(b)&&(g=b.constructor,typeof g=="function"&&(g===Array||v(g.prototype))?g=void 0:c(g)&&(g=g[d],g===null&&(g=void 0))),new(g===void 0?Array:g)(S===0?0:S)}},75196:(h,I,a)=>{var c=a(96059),v=a(7609);h.exports=function(x,d,b,S){try{return S?d(c(b)[0],b[1]):d(b)}catch(g){throw v(x),g}}},21385:(h,I,a)=>{var c=a(99813),v=c("iterator"),x=!1;try{var d=0,b={next:function(){return{done:!!d++}},return:function(){x=!0}};b[v]=function(){return this},Array.from(b,function(){throw 2})}catch(S){}h.exports=function(S,g){if(!g&&!x)return!1;var L=!1;try{var D={};D[v]=function(){return{next:function(){return{done:L=!0}}}},S(D)}catch(B){}return L}},82532:h=>{var I={}.toString;h.exports=function(a){return I.call(a).slice(8,-1)}},9697:(h,I,a)=>{var c=a(22885),v=a(82532),x=a(99813),d=x("toStringTag"),b=v(function(){return arguments}())=="Arguments",S=function(g,L){try{return g[L]}catch(D){}};h.exports=c?v:function(g){var L,D,B;return g===void 0?"Undefined":g===null?"Null":typeof(D=S(L=Object(g),d))=="string"?D:b?v(L):(B=v(L))=="Object"&&typeof L.callee=="function"?"Arguments":B}},8850:(h,I,a)=>{"use strict";var c=a(87524),v=a(21647).getWeakData,x=a(96059),d=a(10941),b=a(5743),S=a(93091),g=a(3610),L=a(47457),D=a(45402),B=D.set,j=D.getterFor,q=g.find,W=g.findIndex,R=0,X=function(V){return V.frozen||(V.frozen=new M)},M=function(){this.entries=[]},C=function(V,J){return q(V.entries,function(_){return _[0]===J})};M.prototype={get:function(V){var J=C(this,V);if(J)return J[1]},has:function(V){return!!C(this,V)},set:function(V,J){var _=C(this,V);_?_[1]=J:this.entries.push([V,J])},delete:function(V){var J=W(this.entries,function(_){return _[0]===V});return~J&&this.entries.splice(J,1),!!~J}},h.exports={getConstructor:function(V,J,_,Q){var Y=V(function(ie,me){b(ie,Y,J),B(ie,{type:J,id:R++,frozen:void 0}),me!=null&&S(me,ie[Q],{that:ie,AS_ENTRIES:_})}),ce=j(J),ee=function(ie,me,be){var he=ce(ie),ue=v(x(me),!0);return ue===!0?X(he).set(me,be):ue[he.id]=be,ie};return c(Y.prototype,{delete:function(ie){var me=ce(this);if(!d(ie))return!1;var be=v(ie);return be===!0?X(me).delete(ie):be&&L(be,me.id)&&delete be[me.id]},has:function(me){var be=ce(this);if(!d(me))return!1;var he=v(me);return he===!0?X(be).has(me):he&&L(he,be.id)}}),c(Y.prototype,_?{get:function(me){var be=ce(this);if(d(me)){var he=v(me);return he===!0?X(be).get(me):he?he[be.id]:void 0}},set:function(me,be){return ee(this,me,be)}}:{add:function(me){return ee(this,me,!0)}}),Y}}},24683:(h,I,a)=>{"use strict";var c=a(76887),v=a(21899),x=a(21647),d=a(95981),b=a(32029),S=a(93091),g=a(5743),L=a(10941),D=a(90904),B=a(65988).f,j=a(3610).forEach,q=a(55746),W=a(45402),R=W.set,X=W.getterFor;h.exports=function(M,C,V){var J=M.indexOf("Map")!==-1,_=M.indexOf("Weak")!==-1,Q=J?"set":"add",Y=v[M],ce=Y&&Y.prototype,ee={},ie;if(!q||typeof Y!="function"||!(_||ce.forEach&&!d(function(){new Y().entries().next()})))ie=V.getConstructor(C,M,J,Q),x.REQUIRED=!0;else{ie=C(function(be,he){R(g(be,ie,M),{type:M,collection:new Y}),he!=null&&S(he,be[Q],{that:be,AS_ENTRIES:J})});var me=X(M);j(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(be){var he=be=="add"||be=="set";be in ce&&!(_&&be=="clear")&&b(ie.prototype,be,function(ue,oe){var Fe=me(this).collection;if(!he&&_&&!L(ue))return be=="get"?void 0:!1;var Le=Fe[be](ue===0?0:ue,oe);return he?this:Le})}),_||B(ie.prototype,"size",{configurable:!0,get:function(){return me(this).collection.size}})}return D(ie,M,!1,!0),ee[M]=ie,c({global:!0,forced:!0},ee),_||V.setStrong(ie,M,J),ie}},67772:(h,I,a)=>{var c=a(99813),v=c("match");h.exports=function(x){var d=/./;try{"/./"[x](d)}catch(b){try{return d[v]=!1,"/./"[x](d)}catch(S){}}return!1}},64160:(h,I,a)=>{var c=a(95981);h.exports=!c(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},31046:(h,I,a)=>{"use strict";var c=a(35143).IteratorPrototype,v=a(29290),x=a(31887),d=a(90904),b=a(12077),S=function(){return this};h.exports=function(g,L,D){var B=L+" Iterator";return g.prototype=v(c,{next:x(1,D)}),d(g,B,!1,!0),b[B]=S,g}},32029:(h,I,a)=>{var c=a(55746),v=a(65988),x=a(31887);h.exports=c?function(d,b,S){return v.f(d,b,x(1,S))}:function(d,b,S){return d[b]=S,d}},31887:h=>{h.exports=function(I,a){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:a}}},55449:(h,I,a)=>{"use strict";var c=a(46935),v=a(65988),x=a(31887);h.exports=function(d,b,S){var g=c(b);g in d?v.f(d,g,x(0,S)):d[g]=S}},47771:(h,I,a)=>{"use strict";var c=a(76887),v=a(31046),x=a(249),d=a(88929),b=a(90904),S=a(32029),g=a(99754),L=a(99813),D=a(82529),B=a(12077),j=a(35143),q=j.IteratorPrototype,W=j.BUGGY_SAFARI_ITERATORS,R=L("iterator"),X="keys",M="values",C="entries",V=function(){return this};h.exports=function(J,_,Q,Y,ce,ee,ie){v(Q,_,Y);var me=function(Ze){if(Ze===ce&&Fe)return Fe;if(!W&&Ze in ue)return ue[Ze];switch(Ze){case X:return function(){return new Q(this,Ze)};case M:return function(){return new Q(this,Ze)};case C:return function(){return new Q(this,Ze)}}return function(){return new Q(this)}},be=_+" Iterator",he=!1,ue=J.prototype,oe=ue[R]||ue["@@iterator"]||ce&&ue[ce],Fe=!W&&oe||me(ce),Le=_=="Array"&&ue.entries||oe,Re,Pe,rt;if(Le&&(Re=x(Le.call(new J)),q!==Object.prototype&&Re.next&&(!D&&x(Re)!==q&&(d?d(Re,q):typeof Re[R]!="function"&&S(Re,R,V)),b(Re,be,!0,!0),D&&(B[be]=V))),ce==M&&oe&&oe.name!==M&&(he=!0,Fe=function(){return oe.call(this)}),(!D||ie)&&ue[R]!==Fe&&S(ue,R,Fe),B[_]=Fe,ce)if(Pe={values:me(M),keys:ee?Fe:me(X),entries:me(C)},ie)for(rt in Pe)(W||he||!(rt in ue))&&g(ue,rt,Pe[rt]);else c({target:_,proto:!0,forced:W||he},Pe);return Pe}},66349:(h,I,a)=>{var c=a(54058),v=a(47457),x=a(11477),d=a(65988).f;h.exports=function(b){var S=c.Symbol||(c.Symbol={});v(S,b)||d(S,b,{value:x.f(b)})}},55746:(h,I,a)=>{var c=a(95981);h.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},61333:(h,I,a)=>{var c=a(21899),v=a(10941),x=c.document,d=v(x)&&v(x.createElement);h.exports=function(b){return d?x.createElement(b):{}}},63281:h=>{h.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},23321:h=>{h.exports=typeof window=="object"},22749:(h,I,a)=>{var c=a(2861);h.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(c)},6049:(h,I,a)=>{var c=a(82532),v=a(21899);h.exports=c(v.process)=="process"},58045:(h,I,a)=>{var c=a(2861);h.exports=/web0s(?!.*chrome)/i.test(c)},2861:(h,I,a)=>{var c=a(626);h.exports=c("navigator","userAgent")||""},53385:(h,I,a)=>{var c=a(21899),v=a(2861),x=c.process,d=x&&x.versions,b=d&&d.v8,S,g;b?(S=b.split("."),g=S[0]<4?1:S[0]+S[1]):v&&(S=v.match(/Edge\/(\d+)/),(!S||S[1]>=74)&&(S=v.match(/Chrome\/(\d+)/),S&&(g=S[1]))),h.exports=g&&+g},35703:(h,I,a)=>{var c=a(54058);h.exports=function(v){return c[v+"Prototype"]}},56759:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76887:(h,I,a)=>{"use strict";var c=a(21899),v=a(49677).f,x=a(37252),d=a(54058),b=a(86843),S=a(32029),g=a(47457),L=function(D){var B=function(j,q,W){if(this instanceof D){switch(arguments.length){case 0:return new D;case 1:return new D(j);case 2:return new D(j,q)}return new D(j,q,W)}return D.apply(this,arguments)};return B.prototype=D.prototype,B};h.exports=function(D,B){var j=D.target,q=D.global,W=D.stat,R=D.proto,X=q?c:W?c[j]:(c[j]||{}).prototype,M=q?d:d[j]||(d[j]={}),C=M.prototype,V,J,_,Q,Y,ce,ee,ie,me;for(Q in B)V=x(q?Q:j+(W?".":"#")+Q,D.forced),J=!V&&X&&g(X,Q),ce=M[Q],J&&(D.noTargetGet?(me=v(X,Q),ee=me&&me.value):ee=X[Q]),Y=J&&ee?ee:B[Q],!(J&&typeof ce==typeof Y)&&(D.bind&&J?ie=b(Y,c):D.wrap&&J?ie=L(Y):R&&typeof Y=="function"?ie=b(Function.call,Y):ie=Y,(D.sham||Y&&Y.sham||ce&&ce.sham)&&S(ie,"sham",!0),M[Q]=ie,R&&(_=j+"Prototype",g(d,_)||S(d,_,{}),d[_][Q]=Y,D.real&&C&&!C[Q]&&S(C,Q,Y)))}},95981:h=>{h.exports=function(I){try{return!!I()}catch(a){return!0}}},45602:(h,I,a)=>{var c=a(95981);h.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},86843:(h,I,a)=>{var c=a(33916);h.exports=function(v,x,d){if(c(v),x===void 0)return v;switch(d){case 0:return function(){return v.call(x)};case 1:return function(b){return v.call(x,b)};case 2:return function(b,S){return v.call(x,b,S)};case 3:return function(b,S,g){return v.call(x,b,S,g)}}return function(){return v.apply(x,arguments)}}},98308:(h,I,a)=>{"use strict";var c=a(33916),v=a(10941),x=[].slice,d={},b=function(S,g,L){if(!(g in d)){for(var D=[],B=0;B<g;B++)D[B]="a["+B+"]";d[g]=Function("C,a","return new C("+D.join(",")+")")}return d[g](S,L)};h.exports=Function.bind||function(g){var L=c(this),D=x.call(arguments,1),B=function(){var q=D.concat(x.call(arguments));return this instanceof B?b(L,q.length,q):L.apply(g,q)};return v(L.prototype)&&(B.prototype=L.prototype),B}},626:(h,I,a)=>{var c=a(54058),v=a(21899),x=function(d){return typeof d=="function"?d:void 0};h.exports=function(d,b){return arguments.length<2?x(c[d])||x(v[d]):c[d]&&c[d][b]||v[d]&&v[d][b]}},22902:(h,I,a)=>{var c=a(9697),v=a(12077),x=a(99813),d=x("iterator");h.exports=function(b){if(b!=null)return b[d]||b["@@iterator"]||v[c(b)]}},21899:(h,I,a)=>{var c=function(v){return v&&v.Math==Math&&v};h.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof a.g=="object"&&a.g)||function(){return this}()||Function("return this")()},47457:(h,I,a)=>{var c=a(89678),v={}.hasOwnProperty;h.exports=Object.hasOwn||function(d,b){return v.call(c(d),b)}},27748:h=>{h.exports={}},34845:(h,I,a)=>{var c=a(21899);h.exports=function(v,x){var d=c.console;d&&d.error&&(arguments.length===1?d.error(v):d.error(v,x))}},15463:(h,I,a)=>{var c=a(626);h.exports=c("document","documentElement")},2840:(h,I,a)=>{var c=a(55746),v=a(95981),x=a(61333);h.exports=!c&&!v(function(){return Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a!=7})},37026:(h,I,a)=>{var c=a(95981),v=a(82532),x="".split;h.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return v(d)=="String"?x.call(d,""):Object(d)}:Object},81302:(h,I,a)=>{var c=a(63030),v=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(x){return v.call(x)}),h.exports=c.inspectSource},21647:(h,I,a)=>{var c=a(27748),v=a(10941),x=a(47457),d=a(65988).f,b=a(99418),S=a(45602),g=b("meta"),L=0,D=Object.isExtensible||function(){return!0},B=function(X){d(X,g,{value:{objectID:"O"+ ++L,weakData:{}}})},j=function(X,M){if(!v(X))return typeof X=="symbol"?X:(typeof X=="string"?"S":"P")+X;if(!x(X,g)){if(!D(X))return"F";if(!M)return"E";B(X)}return X[g].objectID},q=function(X,M){if(!x(X,g)){if(!D(X))return!0;if(!M)return!1;B(X)}return X[g].weakData},W=function(X){return S&&R.REQUIRED&&D(X)&&!x(X,g)&&B(X),X},R=h.exports={REQUIRED:!1,fastKey:j,getWeakData:q,onFreeze:W};c[g]=!0},45402:(h,I,a)=>{var c=a(38019),v=a(21899),x=a(10941),d=a(32029),b=a(47457),S=a(63030),g=a(44262),L=a(27748),D="Object already initialized",B=v.WeakMap,j,q,W,R=function(Q){return W(Q)?q(Q):j(Q,{})},X=function(Q){return function(Y){var ce;if(!x(Y)||(ce=q(Y)).type!==Q)throw TypeError("Incompatible receiver, "+Q+" required");return ce}};if(c||S.state){var M=S.state||(S.state=new B),C=M.get,V=M.has,J=M.set;j=function(Q,Y){if(V.call(M,Q))throw new TypeError(D);return Y.facade=Q,J.call(M,Q,Y),Y},q=function(Q){return C.call(M,Q)||{}},W=function(Q){return V.call(M,Q)}}else{var _=g("state");L[_]=!0,j=function(Q,Y){if(b(Q,_))throw new TypeError(D);return Y.facade=Q,d(Q,_,Y),Y},q=function(Q){return b(Q,_)?Q[_]:{}},W=function(Q){return b(Q,_)}}h.exports={set:j,get:q,has:W,enforce:R,getterFor:X}},6782:(h,I,a)=>{var c=a(99813),v=a(12077),x=c("iterator"),d=Array.prototype;h.exports=function(b){return b!==void 0&&(v.Array===b||d[x]===b)}},1052:(h,I,a)=>{var c=a(82532);h.exports=Array.isArray||function(x){return c(x)=="Array"}},37252:(h,I,a)=>{var c=a(95981),v=/#|\.prototype\./,x=function(L,D){var B=b[d(L)];return B==g?!0:B==S?!1:typeof D=="function"?c(D):!!D},d=x.normalize=function(L){return String(L).replace(v,".").toLowerCase()},b=x.data={},S=x.NATIVE="N",g=x.POLYFILL="P";h.exports=x},10941:h=>{h.exports=function(I){return typeof I=="object"?I!==null:typeof I=="function"}},82529:h=>{h.exports=!0},60685:(h,I,a)=>{var c=a(10941),v=a(82532),x=a(99813),d=x("match");h.exports=function(b){var S;return c(b)&&((S=b[d])!==void 0?!!S:v(b)=="RegExp")}},93091:(h,I,a)=>{var c=a(96059),v=a(6782),x=a(43057),d=a(86843),b=a(22902),S=a(7609),g=function(L,D){this.stopped=L,this.result=D};h.exports=function(L,D,B){var j=B&&B.that,q=!!(B&&B.AS_ENTRIES),W=!!(B&&B.IS_ITERATOR),R=!!(B&&B.INTERRUPTED),X=d(D,j,1+q+R),M,C,V,J,_,Q,Y,ce=function(ie){return M&&S(M),new g(!0,ie)},ee=function(ie){return q?(c(ie),R?X(ie[0],ie[1],ce):X(ie[0],ie[1])):R?X(ie,ce):X(ie)};if(W)M=L;else{if(C=b(L),typeof C!="function")throw TypeError("Target is not iterable");if(v(C)){for(V=0,J=x(L.length);J>V;V++)if(_=ee(L[V]),_&&_ instanceof g)return _;return new g(!1)}M=C.call(L)}for(Q=M.next;!(Y=Q.call(M)).done;){try{_=ee(Y.value)}catch(ie){throw S(M),ie}if(typeof _=="object"&&_&&_ instanceof g)return _}return new g(!1)}},7609:(h,I,a)=>{var c=a(96059);h.exports=function(v){var x=v.return;if(x!==void 0)return c(x.call(v)).value}},35143:(h,I,a)=>{"use strict";var c=a(95981),v=a(249),x=a(32029),d=a(47457),b=a(99813),S=a(82529),g=b("iterator"),L=!1,D=function(){return this},B,j,q;[].keys&&(q=[].keys(),"next"in q?(j=v(v(q)),j!==Object.prototype&&(B=j)):L=!0);var W=B==null||c(function(){var R={};return B[g].call(R)!==R});W&&(B={}),(!S||W)&&!d(B,g)&&x(B,g,D),h.exports={IteratorPrototype:B,BUGGY_SAFARI_ITERATORS:L}},12077:h=>{h.exports={}},66132:(h,I,a)=>{var c=a(21899),v=a(49677).f,x=a(42941).set,d=a(22749),b=a(58045),S=a(6049),g=c.MutationObserver||c.WebKitMutationObserver,L=c.document,D=c.process,B=c.Promise,j=v(c,"queueMicrotask"),q=j&&j.value,W,R,X,M,C,V,J,_;q||(W=function(){var Q,Y;for(S&&(Q=D.domain)&&Q.exit();R;){Y=R.fn,R=R.next;try{Y()}catch(ce){throw R?M():X=void 0,ce}}X=void 0,Q&&Q.enter()},!d&&!S&&!b&&g&&L?(C=!0,V=L.createTextNode(""),new g(W).observe(V,{characterData:!0}),M=function(){V.data=C=!C}):B&&B.resolve?(J=B.resolve(void 0),J.constructor=B,_=J.then,M=function(){_.call(J,W)}):S?M=function(){D.nextTick(W)}:M=function(){x.call(c,W)}),h.exports=q||function(Q){var Y={fn:Q,next:void 0};X&&(X.next=Y),R||(R=Y,M()),X=Y}},19297:(h,I,a)=>{var c=a(21899);h.exports=c.Promise},72497:(h,I,a)=>{var c=a(53385),v=a(95981);h.exports=!!Object.getOwnPropertySymbols&&!v(function(){var x=Symbol();return!String(x)||!(Object(x)instanceof Symbol)||!Symbol.sham&&c&&c<41})},38019:(h,I,a)=>{var c=a(21899),v=a(81302),x=c.WeakMap;h.exports=typeof x=="function"&&/native code/.test(v(x))},69520:(h,I,a)=>{"use strict";var c=a(33916),v=function(x){var d,b;this.promise=new x(function(S,g){if(d!==void 0||b!==void 0)throw TypeError("Bad Promise constructor");d=S,b=g}),this.resolve=c(d),this.reject=c(b)};h.exports.f=function(x){return new v(x)}},70344:(h,I,a)=>{var c=a(60685);h.exports=function(v){if(c(v))throw TypeError("The method doesn't accept regular expressions");return v}},24420:(h,I,a)=>{"use strict";var c=a(55746),v=a(95981),x=a(14771),d=a(87857),b=a(36760),S=a(89678),g=a(37026),L=Object.assign,D=Object.defineProperty;h.exports=!L||v(function(){if(c&&L({b:1},L(D({},"a",{enumerable:!0,get:function(){D(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var B={},j={},q=Symbol(),W="abcdefghijklmnopqrst";return B[q]=7,W.split("").forEach(function(R){j[R]=R}),L({},B)[q]!=7||x(L({},j)).join("")!=W})?function(j,q){for(var W=S(j),R=arguments.length,X=1,M=d.f,C=b.f;R>X;)for(var V=g(arguments[X++]),J=M?x(V).concat(M(V)):x(V),_=J.length,Q=0,Y;_>Q;)Y=J[Q++],(!c||C.call(V,Y))&&(W[Y]=V[Y]);return W}:L},29290:(h,I,a)=>{var c=a(96059),v=a(59938),x=a(56759),d=a(27748),b=a(15463),S=a(61333),g=a(44262),L=">",D="<",B="prototype",j="script",q=g("IE_PROTO"),W=function(){},R=function(J){return D+j+L+J+D+"/"+j+L},X=function(J){J.write(R("")),J.close();var _=J.parentWindow.Object;return J=null,_},M=function(){var J=S("iframe"),_="java"+j+":",Q;return J.style.display="none",b.appendChild(J),J.src=String(_),Q=J.contentWindow.document,Q.open(),Q.write(R("document.F=Object")),Q.close(),Q.F},C,V=function(){try{C=document.domain&&new ActiveXObject("htmlfile")}catch(_){}V=C?X(C):M();for(var J=x.length;J--;)delete V[B][x[J]];return V()};d[q]=!0,h.exports=Object.create||function(_,Q){var Y;return _!==null?(W[B]=c(_),Y=new W,W[B]=null,Y[q]=_):Y=V(),Q===void 0?Y:v(Y,Q)}},59938:(h,I,a)=>{var c=a(55746),v=a(65988),x=a(96059),d=a(14771);h.exports=c?Object.defineProperties:function(S,g){x(S);for(var L=d(g),D=L.length,B=0,j;D>B;)v.f(S,j=L[B++],g[j]);return S}},65988:(h,I,a)=>{var c=a(55746),v=a(2840),x=a(96059),d=a(46935),b=Object.defineProperty;I.f=c?b:function(g,L,D){if(x(g),L=d(L,!0),x(D),v)try{return b(g,L,D)}catch(B){}if("get"in D||"set"in D)throw TypeError("Accessors not supported");return"value"in D&&(g[L]=D.value),g}},49677:(h,I,a)=>{var c=a(55746),v=a(36760),x=a(31887),d=a(74529),b=a(46935),S=a(47457),g=a(2840),L=Object.getOwnPropertyDescriptor;I.f=c?L:function(B,j){if(B=d(B),j=b(j,!0),g)try{return L(B,j)}catch(q){}if(S(B,j))return x(!v.f.call(B,j),B[j])}},684:(h,I,a)=>{var c=a(74529),v=a(10946).f,x={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(S){try{return v(S)}catch(g){return d.slice()}};h.exports.f=function(g){return d&&x.call(g)=="[object Window]"?b(g):v(c(g))}},10946:(h,I,a)=>{var c=a(55629),v=a(56759),x=v.concat("length","prototype");I.f=Object.getOwnPropertyNames||function(b){return c(b,x)}},87857:(h,I)=>{I.f=Object.getOwnPropertySymbols},249:(h,I,a)=>{var c=a(47457),v=a(89678),x=a(44262),d=a(64160),b=x("IE_PROTO"),S=Object.prototype;h.exports=d?Object.getPrototypeOf:function(g){return g=v(g),c(g,b)?g[b]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?S:null}},55629:(h,I,a)=>{var c=a(47457),v=a(74529),x=a(31692).indexOf,d=a(27748);h.exports=function(b,S){var g=v(b),L=0,D=[],B;for(B in g)!c(d,B)&&c(g,B)&&D.push(B);for(;S.length>L;)c(g,B=S[L++])&&(~x(D,B)||D.push(B));return D}},14771:(h,I,a)=>{var c=a(55629),v=a(56759);h.exports=Object.keys||function(d){return c(d,v)}},36760:(h,I)=>{"use strict";var a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,v=c&&!a.call({1:2},1);I.f=v?function(d){var b=c(this,d);return!!b&&b.enumerable}:a},88929:(h,I,a)=>{var c=a(96059),v=a(42488);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var x=!1,d={},b;try{b=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,b.call(d,[]),x=d instanceof Array}catch(S){}return function(g,L){return c(g),v(L),x?b.call(g,L):g.__proto__=L,g}}():void 0)},88810:(h,I,a)=>{var c=a(55746),v=a(14771),x=a(74529),d=a(36760).f,b=function(S){return function(g){for(var L=x(g),D=v(L),B=D.length,j=0,q=[],W;B>j;)W=D[j++],(!c||d.call(L,W))&&q.push(S?[W,L[W]]:L[W]);return q}};h.exports={entries:b(!0),values:b(!1)}},95623:(h,I,a)=>{"use strict";var c=a(22885),v=a(9697);h.exports=c?{}.toString:function(){return"[object "+v(this)+"]"}},31136:(h,I,a)=>{var c=a(626),v=a(10946),x=a(87857),d=a(96059);h.exports=c("Reflect","ownKeys")||function(S){var g=v.f(d(S)),L=x.f;return L?g.concat(L(S)):g}},54058:h=>{h.exports={}},40002:h=>{h.exports=function(I){try{return{error:!1,value:I()}}catch(a){return{error:!0,value:a}}}},56584:(h,I,a)=>{var c=a(96059),v=a(10941),x=a(69520);h.exports=function(d,b){if(c(d),v(b)&&b.constructor===d)return b;var S=x.f(d),g=S.resolve;return g(b),S.promise}},87524:(h,I,a)=>{var c=a(99754);h.exports=function(v,x,d){for(var b in x)d&&d.unsafe&&v[b]?v[b]=x[b]:c(v,b,x[b],d);return v}},99754:(h,I,a)=>{var c=a(32029);h.exports=function(v,x,d,b){b&&b.enumerable?v[x]=d:c(v,x,d)}},48219:h=>{h.exports=function(I){if(I==null)throw TypeError("Can't call method on "+I);return I}},4911:(h,I,a)=>{var c=a(21899),v=a(32029);h.exports=function(x,d){try{v(c,x,d)}catch(b){c[x]=d}return d}},94431:(h,I,a)=>{"use strict";var c=a(626),v=a(65988),x=a(99813),d=a(55746),b=x("species");h.exports=function(S){var g=c(S),L=v.f;d&&g&&!g[b]&&L(g,b,{configurable:!0,get:function(){return this}})}},90904:(h,I,a)=>{var c=a(22885),v=a(65988).f,x=a(32029),d=a(47457),b=a(95623),S=a(99813),g=S("toStringTag");h.exports=function(L,D,B,j){if(L){var q=B?L:L.prototype;d(q,g)||v(q,g,{configurable:!0,value:D}),j&&!c&&x(q,"toString",b)}}},44262:(h,I,a)=>{var c=a(68726),v=a(99418),x=c("keys");h.exports=function(d){return x[d]||(x[d]=v(d))}},63030:(h,I,a)=>{var c=a(21899),v=a(4911),x="__core-js_shared__",d=c[x]||v(x,{});h.exports=d},68726:(h,I,a)=>{var c=a(82529),v=a(63030);(h.exports=function(x,d){return v[x]||(v[x]=d!==void 0?d:{})})("versions",[]).push({version:"3.14.0",mode:c?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},70487:(h,I,a)=>{var c=a(96059),v=a(33916),x=a(99813),d=x("species");h.exports=function(b,S){var g=c(b).constructor,L;return g===void 0||(L=c(g)[d])==null?S:v(L)}},64620:(h,I,a)=>{var c=a(68459),v=a(48219),x=function(d){return function(b,S){var g=String(v(b)),L=c(S),D=g.length,B,j;return L<0||L>=D?d?"":void 0:(B=g.charCodeAt(L),B<55296||B>56319||L+1===D||(j=g.charCodeAt(L+1))<56320||j>57343?d?g.charAt(L):B:d?g.slice(L,L+2):(B-55296<<10)+(j-56320)+65536)}};h.exports={codeAt:x(!1),charAt:x(!0)}},42941:(h,I,a)=>{var c=a(21899),v=a(95981),x=a(86843),d=a(15463),b=a(61333),S=a(22749),g=a(6049),L=c.location,D=c.setImmediate,B=c.clearImmediate,j=c.process,q=c.MessageChannel,W=c.Dispatch,R=0,X={},M="onreadystatechange",C,V,J,_=function(ee){if(X.hasOwnProperty(ee)){var ie=X[ee];delete X[ee],ie()}},Q=function(ee){return function(){_(ee)}},Y=function(ee){_(ee.data)},ce=function(ee){c.postMessage(ee+"",L.protocol+"//"+L.host)};(!D||!B)&&(D=function(ie){for(var me=[],be=1;arguments.length>be;)me.push(arguments[be++]);return X[++R]=function(){(typeof ie=="function"?ie:Function(ie)).apply(void 0,me)},C(R),R},B=function(ie){delete X[ie]},g?C=function(ee){j.nextTick(Q(ee))}:W&&W.now?C=function(ee){W.now(Q(ee))}:q&&!S?(V=new q,J=V.port2,V.port1.onmessage=Y,C=x(J.postMessage,J,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts&&L&&L.protocol!=="file:"&&!v(ce)?(C=ce,c.addEventListener("message",Y,!1)):M in b("script")?C=function(ee){d.appendChild(b("script"))[M]=function(){d.removeChild(this),_(ee)}}:C=function(ee){setTimeout(Q(ee),0)}),h.exports={set:D,clear:B}},59413:(h,I,a)=>{var c=a(68459),v=Math.max,x=Math.min;h.exports=function(d,b){var S=c(d);return S<0?v(S+b,0):x(S,b)}},74529:(h,I,a)=>{var c=a(37026),v=a(48219);h.exports=function(x){return c(v(x))}},68459:h=>{var I=Math.ceil,a=Math.floor;h.exports=function(c){return isNaN(c=+c)?0:(c>0?a:I)(c)}},43057:(h,I,a)=>{var c=a(68459),v=Math.min;h.exports=function(x){return x>0?v(c(x),9007199254740991):0}},89678:(h,I,a)=>{var c=a(48219);h.exports=function(v){return Object(c(v))}},46935:(h,I,a)=>{var c=a(10941);h.exports=function(v,x){if(!c(v))return v;var d,b;if(x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v))||typeof(d=v.valueOf)=="function"&&!c(b=d.call(v))||!x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v)))return b;throw TypeError("Can't convert object to primitive value")}},22885:(h,I,a)=>{var c=a(99813),v=c("toStringTag"),x={};x[v]="z",h.exports=String(x)==="[object z]"},99418:h=>{var I=0,a=Math.random();h.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++I+a).toString(36)}},32302:(h,I,a)=>{var c=a(72497);h.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},11477:(h,I,a)=>{var c=a(99813);I.f=c},99813:(h,I,a)=>{var c=a(21899),v=a(68726),x=a(47457),d=a(99418),b=a(72497),S=a(32302),g=v("wks"),L=c.Symbol,D=S?L:L&&L.withoutSetter||d;h.exports=function(B){return(!x(g,B)||!(b||typeof g[B]=="string"))&&(b&&x(L,B)?g[B]=L[B]:g[B]=D("Symbol."+B)),g[B]}},47627:(h,I,a)=>{"use strict";var c=a(76887),v=a(249),x=a(88929),d=a(29290),b=a(32029),S=a(31887),g=a(93091),L=function(B,j){var q=this;if(!(q instanceof L))return new L(B,j);x&&(q=x(new Error(void 0),v(q))),j!==void 0&&b(q,"message",String(j));var W=[];return g(B,W.push,{that:W}),b(q,"errors",W),q};L.prototype=d(Error.prototype,{constructor:S(5,L),message:S(5,""),name:S(5,"AggregateError")}),c({global:!0},{AggregateError:L})},85906:(h,I,a)=>{"use strict";var c=a(76887),v=a(95981),x=a(1052),d=a(10941),b=a(89678),S=a(43057),g=a(55449),L=a(64692),D=a(50568),B=a(99813),j=a(53385),q=B("isConcatSpreadable"),W=9007199254740991,R="Maximum allowed index exceeded",X=j>=51||!v(function(){var J=[];return J[q]=!1,J.concat()[0]!==J}),M=D("concat"),C=function(J){if(!d(J))return!1;var _=J[q];return _!==void 0?!!_:x(J)},V=!X||!M;c({target:"Array",proto:!0,forced:V},{concat:function(_){var Q=b(this),Y=L(Q,0),ce=0,ee,ie,me,be,he;for(ee=-1,me=arguments.length;ee<me;ee++)if(he=ee===-1?Q:arguments[ee],C(he)){if(be=S(he.length),ce+be>W)throw TypeError(R);for(ie=0;ie<be;ie++,ce++)ie in he&&g(Y,ce,he[ie])}else{if(ce>=W)throw TypeError(R);g(Y,ce++,he)}return Y.length=ce,Y}})},21501:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).filter,x=a(50568),d=x("filter");c({target:"Array",proto:!0,forced:!d},{filter:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}})},80833:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).find,x=a(18479),d="find",b=!0;d in[]&&Array(1)[d](function(){b=!1}),c({target:"Array",proto:!0,forced:b},{find:function(g){return v(this,g,arguments.length>1?arguments[1]:void 0)}}),x(d)},2437:(h,I,a)=>{"use strict";var c=a(76887),v=a(56837);c({target:"Array",proto:!0,forced:[].forEach!=v},{forEach:v})},53242:(h,I,a)=>{var c=a(76887),v=a(11354),x=a(21385),d=!x(function(b){Array.from(b)});c({target:"Array",stat:!0,forced:d},{from:v})},97690:(h,I,a)=>{"use strict";var c=a(76887),v=a(31692).includes,x=a(18479);c({target:"Array",proto:!0},{includes:function(b){return v(this,b,arguments.length>1?arguments[1]:void 0)}}),x("includes")},99076:(h,I,a)=>{"use strict";var c=a(76887),v=a(31692).indexOf,x=a(34194),d=[].indexOf,b=!!d&&1/[1].indexOf(1,-0)<0,S=x("indexOf");c({target:"Array",proto:!0,forced:b||!S},{indexOf:function(L){return b?d.apply(this,arguments)||0:v(this,L,arguments.length>1?arguments[1]:void 0)}})},92737:(h,I,a)=>{var c=a(76887),v=a(1052);c({target:"Array",stat:!0},{isArray:v})},66274:(h,I,a)=>{"use strict";var c=a(74529),v=a(18479),x=a(12077),d=a(45402),b=a(47771),S="Array Iterator",g=d.set,L=d.getterFor(S);h.exports=b(Array,"Array",function(D,B){g(this,{type:S,target:c(D),index:0,kind:B})},function(){var D=L(this),B=D.target,j=D.kind,q=D.index++;return!B||q>=B.length?(D.target=void 0,{value:void 0,done:!0}):j=="keys"?{value:q,done:!1}:j=="values"?{value:B[q],done:!1}:{value:[q,B[q]],done:!1}},"values"),x.Arguments=x.Array,v("keys"),v("values"),v("entries")},68787:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).map,x=a(50568),d=x("map");c({target:"Array",proto:!0,forced:!d},{map:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}})},60186:(h,I,a)=>{"use strict";var c=a(76887),v=a(10941),x=a(1052),d=a(59413),b=a(43057),S=a(74529),g=a(55449),L=a(99813),D=a(50568),B=D("slice"),j=L("species"),q=[].slice,W=Math.max;c({target:"Array",proto:!0,forced:!B},{slice:function(X,M){var C=S(this),V=b(C.length),J=d(X,V),_=d(M===void 0?V:M,V),Q,Y,ce;if(x(C)&&(Q=C.constructor,typeof Q=="function"&&(Q===Array||x(Q.prototype))?Q=void 0:v(Q)&&(Q=Q[j],Q===null&&(Q=void 0)),Q===Array||Q===void 0))return q.call(C,J,_);for(Y=new(Q===void 0?Array:Q)(W(_-J,0)),ce=0;J<_;J++,ce++)J in C&&g(Y,ce,C[J]);return Y.length=ce,Y}})},98611:(h,I,a)=>{"use strict";var c=a(76887),v=a(59413),x=a(68459),d=a(43057),b=a(89678),S=a(64692),g=a(55449),L=a(50568),D=L("splice"),B=Math.max,j=Math.min,q=9007199254740991,W="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!D},{splice:function(X,M){var C=b(this),V=d(C.length),J=v(X,V),_=arguments.length,Q,Y,ce,ee,ie,me;if(_===0?Q=Y=0:_===1?(Q=0,Y=V-J):(Q=_-2,Y=j(B(x(M),0),V-J)),V+Q-Y>q)throw TypeError(W);for(ce=S(C,Y),ee=0;ee<Y;ee++)ie=J+ee,ie in C&&g(ce,ee,C[ie]);if(ce.length=Y,Q<Y){for(ee=J;ee<V-Y;ee++)ie=ee+Y,me=ee+Q,ie in C?C[me]=C[ie]:delete C[me];for(ee=V;ee>V-Y+Q;ee--)delete C[ee-1]}else if(Q>Y)for(ee=V-Y;ee>J;ee--)ie=ee+Y-1,me=ee+Q-1,ie in C?C[me]=C[ie]:delete C[me];for(ee=0;ee<Q;ee++)C[ee+J]=arguments[ee+2];return C.length=V-Y+Q,ce}})},32619:(h,I,a)=>{var c=a(76887),v=a(626),x=a(95981),d=v("JSON","stringify"),b=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,g=/^[\uDC00-\uDFFF]$/,L=function(B,j,q){var W=q.charAt(j-1),R=q.charAt(j+1);return S.test(B)&&!g.test(R)||g.test(B)&&!S.test(W)?"\\u"+B.charCodeAt(0).toString(16):B},D=x(function(){return d("\uDF06\uD834")!=='"\\udf06\\ud834"'||d("\uDEAD")!=='"\\udead"'});d&&c({target:"JSON",stat:!0,forced:D},{stringify:function(j,q,W){var R=d.apply(null,arguments);return typeof R=="string"?R.replace(b,L):R}})},69120:(h,I,a)=>{var c=a(21899),v=a(90904);v(c.JSON,"JSON",!0)},79413:()=>{},49221:(h,I,a)=>{var c=a(76887),v=a(24420);c({target:"Object",stat:!0,forced:Object.assign!==v},{assign:v})},53882:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(29290);c({target:"Object",stat:!0,sham:!v},{create:x})},74979:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(59938);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperties:x})},86450:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(65988);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperty:x.f})},21078:(h,I,a)=>{var c=a(76887),v=a(88810).entries;c({target:"Object",stat:!0},{entries:function(d){return v(d)}})},46924:(h,I,a)=>{var c=a(76887),v=a(95981),x=a(74529),d=a(49677).f,b=a(55746),S=v(function(){d(1)}),g=!b||S;c({target:"Object",stat:!0,forced:g,sham:!b},{getOwnPropertyDescriptor:function(D,B){return d(x(D),B)}})},88482:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(31136),d=a(74529),b=a(49677),S=a(55449);c({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(L){for(var D=d(L),B=b.f,j=x(D),q={},W=0,R,X;j.length>W;)X=B(D,R=j[W++]),X!==void 0&&S(q,R,X);return q}})},17405:(h,I,a)=>{var c=a(76887),v=a(95981),x=a(89678),d=a(249),b=a(64160),S=v(function(){d(1)});c({target:"Object",stat:!0,forced:S,sham:!b},{getPrototypeOf:function(L){return d(x(L))}})},21724:(h,I,a)=>{var c=a(76887),v=a(89678),x=a(14771),d=a(95981),b=d(function(){x(1)});c({target:"Object",stat:!0,forced:b},{keys:function(g){return x(v(g))}})},90108:(h,I,a)=>{var c=a(76887),v=a(88929);c({target:"Object",stat:!0},{setPrototypeOf:v})},55967:()=>{},4560:(h,I,a)=>{"use strict";var c=a(76887),v=a(33916),x=a(69520),d=a(40002),b=a(93091);c({target:"Promise",stat:!0},{allSettled:function(g){var L=this,D=x.f(L),B=D.resolve,j=D.reject,q=d(function(){var W=v(L.resolve),R=[],X=0,M=1;b(g,function(C){var V=X++,J=!1;R.push(void 0),M++,W.call(L,C).then(function(_){J||(J=!0,R[V]={status:"fulfilled",value:_},--M||B(R))},function(_){J||(J=!0,R[V]={status:"rejected",reason:_},--M||B(R))})}),--M||B(R)});return q.error&&j(q.value),D.promise}})},91302:(h,I,a)=>{"use strict";var c=a(76887),v=a(33916),x=a(626),d=a(69520),b=a(40002),S=a(93091),g="No one promise resolved";c({target:"Promise",stat:!0},{any:function(D){var B=this,j=d.f(B),q=j.resolve,W=j.reject,R=b(function(){var X=v(B.resolve),M=[],C=0,V=1,J=!1;S(D,function(_){var Q=C++,Y=!1;M.push(void 0),V++,X.call(B,_).then(function(ce){Y||J||(J=!0,q(ce))},function(ce){Y||J||(Y=!0,M[Q]=ce,--V||W(new(x("AggregateError"))(M,g)))})}),--V||W(new(x("AggregateError"))(M,g))});return R.error&&W(R.value),j.promise}})},44349:(h,I,a)=>{"use strict";var c=a(76887),v=a(82529),x=a(19297),d=a(95981),b=a(626),S=a(70487),g=a(56584),L=a(99754),D=!!x&&d(function(){x.prototype.finally.call({then:function(){}},function(){})});if(c({target:"Promise",proto:!0,real:!0,forced:D},{finally:function(j){var q=S(this,b("Promise")),W=typeof j=="function";return this.then(W?function(R){return g(q,j()).then(function(){return R})}:j,W?function(R){return g(q,j()).then(function(){throw R})}:j)}}),!v&&typeof x=="function"){var B=b("Promise").prototype.finally;x.prototype.finally!==B&&L(x.prototype,"finally",B,{unsafe:!0})}},98881:(h,I,a)=>{"use strict";var c=a(76887),v=a(82529),x=a(21899),d=a(626),b=a(19297),S=a(99754),g=a(87524),L=a(88929),D=a(90904),B=a(94431),j=a(10941),q=a(33916),W=a(5743),R=a(81302),X=a(93091),M=a(21385),C=a(70487),V=a(42941).set,J=a(66132),_=a(56584),Q=a(34845),Y=a(69520),ce=a(40002),ee=a(45402),ie=a(37252),me=a(99813),be=a(23321),he=a(6049),ue=a(53385),oe=me("species"),Fe="Promise",Le=ee.get,Re=ee.set,Pe=ee.getterFor(Fe),rt=b&&b.prototype,Ze=b,Xe=rt,ft=x.TypeError,ht=x.document,bt=x.process,nt=Y.f,ut=nt,yt=!!(ht&&ht.createEvent&&x.dispatchEvent),mt=typeof PromiseRejectionEvent=="function",pt="unhandledrejection",Rt="rejectionhandled",kt=0,Ct=1,Wt=2,jt=1,Vt=2,St=!1,Dt,ve,z,$,Se=ie(Fe,function(){var re=R(Ze)!==String(Ze);if(!re&&ue===66||v&&!Xe.finally)return!0;if(ue>=51&&/native code/.test(Ze))return!1;var de=new Ze(function(Ae){Ae(1)}),ae=function(Ae){Ae(function(){},function(){})},pe=de.constructor={};return pe[oe]=ae,St=de.then(function(){})instanceof ae,St?!re&&be&&!mt:!0}),Ie=Se||!M(function(re){Ze.all(re).catch(function(){})}),Ge=function(re){var de;return j(re)&&typeof(de=re.then)=="function"?de:!1},Ke=function(re,de){if(!re.notified){re.notified=!0;var ae=re.reactions;J(function(){for(var pe=re.value,Ae=re.state==Ct,Be=0;ae.length>Be;){var Ue=ae[Be++],Qe=Ae?Ue.ok:Ue.fail,vt=Ue.resolve,Et=Ue.reject,Bt=Ue.domain,Pt,pn,Dr;try{Qe?(Ae||(re.rejection===Vt&&T(re),re.rejection=jt),Qe===!0?Pt=pe:(Bt&&Bt.enter(),Pt=Qe(pe),Bt&&(Bt.exit(),Dr=!0)),Pt===Ue.promise?Et(ft("Promise-chain cycle")):(pn=Ge(Pt))?pn.call(Pt,vt,Et):vt(Pt)):Et(pe)}catch(Or){Bt&&!Dr&&Bt.exit(),Et(Or)}}re.reactions=[],re.notified=!1,de&&!re.rejection&&Me(re)})}},P=function(re,de,ae){var pe,Ae;yt?(pe=ht.createEvent("Event"),pe.promise=de,pe.reason=ae,pe.initEvent(re,!1,!0),x.dispatchEvent(pe)):pe={promise:de,reason:ae},!mt&&(Ae=x["on"+re])?Ae(pe):re===pt&&Q("Unhandled promise rejection",ae)},Me=function(re){V.call(x,function(){var de=re.facade,ae=re.value,pe=K(re),Ae;if(pe&&(Ae=ce(function(){he?bt.emit("unhandledRejection",ae,de):P(pt,de,ae)}),re.rejection=he||K(re)?Vt:jt,Ae.error))throw Ae.value})},K=function(re){return re.rejection!==jt&&!re.parent},T=function(re){V.call(x,function(){var de=re.facade;he?bt.emit("rejectionHandled",de):P(Rt,de,re.value)})},O=function(re,de,ae){return function(pe){re(de,pe,ae)}},se=function(re,de,ae){re.done||(re.done=!0,ae&&(re=ae),re.value=de,re.state=Wt,Ke(re,!0))},N=function(re,de,ae){if(!re.done){re.done=!0,ae&&(re=ae);try{if(re.facade===de)throw ft("Promise can't be resolved itself");var pe=Ge(de);pe?J(function(){var Ae={done:!1};try{pe.call(de,O(N,Ae,re),O(se,Ae,re))}catch(Be){se(Ae,Be,re)}}):(re.value=de,re.state=Ct,Ke(re,!1))}catch(Ae){se({done:!1},Ae,re)}}};if(Se&&(Ze=function(de){W(this,Ze,Fe),q(de),Dt.call(this);var ae=Le(this);try{de(O(N,ae),O(se,ae))}catch(pe){se(ae,pe)}},Xe=Ze.prototype,Dt=function(de){Re(this,{type:Fe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:kt,value:void 0})},Dt.prototype=g(Xe,{then:function(de,ae){var pe=Pe(this),Ae=nt(C(this,Ze));return Ae.ok=typeof de=="function"?de:!0,Ae.fail=typeof ae=="function"&&ae,Ae.domain=he?bt.domain:void 0,pe.parent=!0,pe.reactions.push(Ae),pe.state!=kt&&Ke(pe,!1),Ae.promise},catch:function(re){return this.then(void 0,re)}}),ve=function(){var re=new Dt,de=Le(re);this.promise=re,this.resolve=O(N,de),this.reject=O(se,de)},Y.f=nt=function(re){return re===Ze||re===z?new ve(re):ut(re)},!v&&typeof b=="function"&&rt!==Object.prototype)){$=rt.then,St||(S(rt,"then",function(de,ae){var pe=this;return new Ze(function(Ae,Be){$.call(pe,Ae,Be)}).then(de,ae)},{unsafe:!0}),S(rt,"catch",Xe.catch,{unsafe:!0}));try{delete rt.constructor}catch(re){}L&&L(rt,Xe)}c({global:!0,wrap:!0,forced:Se},{Promise:Ze}),D(Ze,Fe,!1,!0),B(Fe),z=d(Fe),c({target:Fe,stat:!0,forced:Se},{reject:function(de){var ae=nt(this);return ae.reject.call(void 0,de),ae.promise}}),c({target:Fe,stat:!0,forced:v||Se},{resolve:function(de){return _(v&&this===z?Ze:this,de)}}),c({target:Fe,stat:!0,forced:Ie},{all:function(de){var ae=this,pe=nt(ae),Ae=pe.resolve,Be=pe.reject,Ue=ce(function(){var Qe=q(ae.resolve),vt=[],Et=0,Bt=1;X(de,function(Pt){var pn=Et++,Dr=!1;vt.push(void 0),Bt++,Qe.call(ae,Pt).then(function(Or){Dr||(Dr=!0,vt[pn]=Or,--Bt||Ae(vt))},Be)}),--Bt||Ae(vt)});return Ue.error&&Be(Ue.value),pe.promise},race:function(de){var ae=this,pe=nt(ae),Ae=pe.reject,Be=ce(function(){var Ue=q(ae.resolve);X(de,function(Qe){Ue.call(ae,Qe).then(pe.resolve,Ae)})});return Be.error&&Ae(Be.value),pe.promise}})},7453:(h,I,a)=>{var c=a(76887),v=a(626),x=a(33916),d=a(96059),b=a(10941),S=a(29290),g=a(98308),L=a(95981),D=v("Reflect","construct"),B=L(function(){function W(){}return!(D(function(){},[],W)instanceof W)}),j=!L(function(){D(function(){})}),q=B||j;c({target:"Reflect",stat:!0,forced:q,sham:q},{construct:function(R,X){x(R),d(X);var M=arguments.length<3?R:x(arguments[2]);if(j&&!B)return D(R,X,M);if(R==M){switch(X.length){case 0:return new R;case 1:return new R(X[0]);case 2:return new R(X[0],X[1]);case 3:return new R(X[0],X[1],X[2]);case 4:return new R(X[0],X[1],X[2],X[3])}var C=[null];return C.push.apply(C,X),new(g.apply(R,C))}var V=M.prototype,J=S(b(V)?V:Object.prototype),_=Function.apply.call(R,J,X);return b(_)?_:J}})},42355:(h,I,a)=>{var c=a(76887),v=a(10941),x=a(96059),d=a(47457),b=a(49677),S=a(249);function g(L,D){var B=arguments.length<3?L:arguments[2],j,q;if(x(L)===B)return L[D];if(j=b.f(L,D))return d(j,"value")?j.value:j.get===void 0?void 0:j.get.call(B);if(v(q=S(L)))return g(q,D,B)}c({target:"Reflect",stat:!0},{get:g})},1502:()=>{},11035:(h,I,a)=>{"use strict";var c=a(76887),v=a(70344),x=a(48219),d=a(67772);c({target:"String",proto:!0,forced:!d("includes")},{includes:function(S){return!!~String(x(this)).indexOf(v(S),arguments.length>1?arguments[1]:void 0)}})},77971:(h,I,a)=>{"use strict";var c=a(64620).charAt,v=a(45402),x=a(47771),d="String Iterator",b=v.set,S=v.getterFor(d);x(String,"String",function(g){b(this,{type:d,string:String(g),index:0})},function(){var L=S(this),D=L.string,B=L.index,j;return B>=D.length?{value:void 0,done:!0}:(j=c(D,B),L.index+=j.length,{value:j,done:!1})})},8555:(h,I,a)=>{var c=a(66349);c("asyncIterator")},52615:()=>{},21732:(h,I,a)=>{var c=a(66349);c("hasInstance")},35903:(h,I,a)=>{var c=a(66349);c("isConcatSpreadable")},1825:(h,I,a)=>{var c=a(66349);c("iterator")},35824:(h,I,a)=>{"use strict";var c=a(76887),v=a(21899),x=a(626),d=a(82529),b=a(55746),S=a(72497),g=a(32302),L=a(95981),D=a(47457),B=a(1052),j=a(10941),q=a(96059),W=a(89678),R=a(74529),X=a(46935),M=a(31887),C=a(29290),V=a(14771),J=a(10946),_=a(684),Q=a(87857),Y=a(49677),ce=a(65988),ee=a(36760),ie=a(32029),me=a(99754),be=a(68726),he=a(44262),ue=a(27748),oe=a(99418),Fe=a(99813),Le=a(11477),Re=a(66349),Pe=a(90904),rt=a(45402),Ze=a(3610).forEach,Xe=he("hidden"),ft="Symbol",ht="prototype",bt=Fe("toPrimitive"),nt=rt.set,ut=rt.getterFor(ft),yt=Object[ht],mt=v.Symbol,pt=x("JSON","stringify"),Rt=Y.f,kt=ce.f,Ct=_.f,Wt=ee.f,jt=be("symbols"),Vt=be("op-symbols"),St=be("string-to-symbol-registry"),Dt=be("symbol-to-string-registry"),ve=be("wks"),z=v.QObject,$=!z||!z[ht]||!z[ht].findChild,Se=b&&L(function(){return C(kt({},"a",{get:function(){return kt(this,"a",{value:7}).a}})).a!=7})?function(re,de,ae){var pe=Rt(yt,de);pe&&delete yt[de],kt(re,de,ae),pe&&re!==yt&&kt(yt,de,pe)}:kt,Ie=function(re,de){var ae=jt[re]=C(mt[ht]);return nt(ae,{type:ft,tag:re,description:de}),b||(ae.description=de),ae},Ge=g?function(re){return typeof re=="symbol"}:function(re){return Object(re)instanceof mt},Ke=function(de,ae,pe){de===yt&&Ke(Vt,ae,pe),q(de);var Ae=X(ae,!0);return q(pe),D(jt,Ae)?(pe.enumerable?(D(de,Xe)&&de[Xe][Ae]&&(de[Xe][Ae]=!1),pe=C(pe,{enumerable:M(0,!1)})):(D(de,Xe)||kt(de,Xe,M(1,{})),de[Xe][Ae]=!0),Se(de,Ae,pe)):kt(de,Ae,pe)},P=function(de,ae){q(de);var pe=R(ae),Ae=V(pe).concat(se(pe));return Ze(Ae,function(Be){(!b||K.call(pe,Be))&&Ke(de,Be,pe[Be])}),de},Me=function(de,ae){return ae===void 0?C(de):P(C(de),ae)},K=function(de){var ae=X(de,!0),pe=Wt.call(this,ae);return this===yt&&D(jt,ae)&&!D(Vt,ae)?!1:pe||!D(this,ae)||!D(jt,ae)||D(this,Xe)&&this[Xe][ae]?pe:!0},T=function(de,ae){var pe=R(de),Ae=X(ae,!0);if(!(pe===yt&&D(jt,Ae)&&!D(Vt,Ae))){var Be=Rt(pe,Ae);return Be&&D(jt,Ae)&&!(D(pe,Xe)&&pe[Xe][Ae])&&(Be.enumerable=!0),Be}},O=function(de){var ae=Ct(R(de)),pe=[];return Ze(ae,function(Ae){!D(jt,Ae)&&!D(ue,Ae)&&pe.push(Ae)}),pe},se=function(de){var ae=de===yt,pe=Ct(ae?Vt:R(de)),Ae=[];return Ze(pe,function(Be){D(jt,Be)&&(!ae||D(yt,Be))&&Ae.push(jt[Be])}),Ae};if(S||(mt=function(){if(this instanceof mt)throw TypeError("Symbol is not a constructor");var de=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ae=oe(de),pe=function(Ae){this===yt&&pe.call(Vt,Ae),D(this,Xe)&&D(this[Xe],ae)&&(this[Xe][ae]=!1),Se(this,ae,M(1,Ae))};return b&&$&&Se(yt,ae,{configurable:!0,set:pe}),Ie(ae,de)},me(mt[ht],"toString",function(){return ut(this).tag}),me(mt,"withoutSetter",function(re){return Ie(oe(re),re)}),ee.f=K,ce.f=Ke,Y.f=T,J.f=_.f=O,Q.f=se,Le.f=function(re){return Ie(Fe(re),re)},b&&(kt(mt[ht],"description",{configurable:!0,get:function(){return ut(this).description}}),d||me(yt,"propertyIsEnumerable",K,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!S,sham:!S},{Symbol:mt}),Ze(V(ve),function(re){Re(re)}),c({target:ft,stat:!0,forced:!S},{for:function(re){var de=String(re);if(D(St,de))return St[de];var ae=mt(de);return St[de]=ae,Dt[ae]=de,ae},keyFor:function(de){if(!Ge(de))throw TypeError(de+" is not a symbol");if(D(Dt,de))return Dt[de]},useSetter:function(){$=!0},useSimple:function(){$=!1}}),c({target:"Object",stat:!0,forced:!S,sham:!b},{create:Me,defineProperty:Ke,defineProperties:P,getOwnPropertyDescriptor:T}),c({target:"Object",stat:!0,forced:!S},{getOwnPropertyNames:O,getOwnPropertySymbols:se}),c({target:"Object",stat:!0,forced:L(function(){Q.f(1)})},{getOwnPropertySymbols:function(de){return Q.f(W(de))}}),pt){var N=!S||L(function(){var re=mt();return pt([re])!="[null]"||pt({a:re})!="{}"||pt(Object(re))!="{}"});c({target:"JSON",stat:!0,forced:N},{stringify:function(de,ae,pe){for(var Ae=[de],Be=1,Ue;arguments.length>Be;)Ae.push(arguments[Be++]);if(Ue=ae,!(!j(ae)&&de===void 0||Ge(de)))return B(ae)||(ae=function(Qe,vt){if(typeof Ue=="function"&&(vt=Ue.call(this,Qe,vt)),!Ge(vt))return vt}),Ae[1]=ae,pt.apply(null,Ae)}})}mt[ht][bt]||ie(mt[ht],bt,mt[ht].valueOf),Pe(mt,ft),ue[Xe]=!0},45915:(h,I,a)=>{var c=a(66349);c("matchAll")},28394:(h,I,a)=>{var c=a(66349);c("match")},61766:(h,I,a)=>{var c=a(66349);c("replace")},62737:(h,I,a)=>{var c=a(66349);c("search")},89911:(h,I,a)=>{var c=a(66349);c("species")},74315:(h,I,a)=>{var c=a(66349);c("split")},63131:(h,I,a)=>{var c=a(66349);c("toPrimitive")},64714:(h,I,a)=>{var c=a(66349);c("toStringTag")},70659:(h,I,a)=>{var c=a(66349);c("unscopables")},54334:(h,I,a)=>{"use strict";var c=a(21899),v=a(87524),x=a(21647),d=a(24683),b=a(8850),S=a(10941),g=a(45402).enforce,L=a(38019),D=!c.ActiveXObject&&"ActiveXObject"in c,B=Object.isExtensible,j,q=function(J){return function(){return J(this,arguments.length?arguments[0]:void 0)}},W=h.exports=d("WeakMap",q,b);if(L&&D){j=b.getConstructor(q,"WeakMap",!0),x.REQUIRED=!0;var R=W.prototype,X=R.delete,M=R.has,C=R.get,V=R.set;v(R,{delete:function(J){if(S(J)&&!B(J)){var _=g(this);return _.frozen||(_.frozen=new j),X.call(this,J)||_.frozen.delete(J)}return X.call(this,J)},has:function(_){if(S(_)&&!B(_)){var Q=g(this);return Q.frozen||(Q.frozen=new j),M.call(this,_)||Q.frozen.has(_)}return M.call(this,_)},get:function(_){if(S(_)&&!B(_)){var Q=g(this);return Q.frozen||(Q.frozen=new j),M.call(this,_)?C.call(this,_):Q.frozen.get(_)}return C.call(this,_)},set:function(_,Q){if(S(_)&&!B(_)){var Y=g(this);Y.frozen||(Y.frozen=new j),M.call(this,_)?V.call(this,_,Q):Y.frozen.set(_,Q)}else V.call(this,_,Q);return this}})}},89731:(h,I,a)=>{a(47627)},55708:(h,I,a)=>{a(4560)},88731:(h,I,a)=>{a(91302)},30014:(h,I,a)=>{"use strict";var c=a(76887),v=a(69520),x=a(40002);c({target:"Promise",stat:!0},{try:function(d){var b=v.f(this),S=x(d);return(S.error?b.reject:b.resolve)(S.value),b.promise}})},28783:(h,I,a)=>{var c=a(66349);c("asyncDispose")},43975:(h,I,a)=>{var c=a(66349);c("dispose")},65799:(h,I,a)=>{var c=a(66349);c("matcher")},45414:(h,I,a)=>{var c=a(66349);c("metadata")},46774:(h,I,a)=>{var c=a(66349);c("observable")},80620:(h,I,a)=>{var c=a(66349);c("patternMatch")},36172:(h,I,a)=>{var c=a(66349);c("replaceAll")},7634:(h,I,a)=>{a(66274);var c=a(63281),v=a(21899),x=a(9697),d=a(32029),b=a(12077),S=a(99813),g=S("toStringTag");for(var L in c){var D=v[L],B=D&&D.prototype;B&&x(B)!==g&&d(B,g,L),b[L]=b.Array}},27698:(h,I,a)=>{var c=a(54493);h.exports=c},62908:(h,I,a)=>{var c=a(12710);h.exports=c},49216:(h,I,a)=>{var c=a(99324);h.exports=c},8065:(h,I,a)=>{var c=a(56043);h.exports=c},57448:(h,I,a)=>{a(7634);var c=a(62908),v=a(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var S=b.entries;return b===x||b instanceof Array&&S===x.entries||d.hasOwnProperty(v(b))?c:S}},11955:(h,I,a)=>{var c=a(2480);h.exports=c},61577:(h,I,a)=>{var c=a(32236);h.exports=c},46279:(h,I,a)=>{a(7634);var c=a(49216),v=a(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var S=b.forEach;return b===x||b instanceof Array&&S===x.forEach||d.hasOwnProperty(v(b))?c:S}},33778:(h,I,a)=>{var c=a(58557);h.exports=c},61798:(h,I,a)=>{var c=a(88287);h.exports=c},82073:(h,I,a)=>{var c=a(69601);h.exports=c},2348:(h,I,a)=>{var c=a(18339);h.exports=c},8933:(h,I,a)=>{var c=a(84426);h.exports=c},63383:(h,I,a)=>{var c=a(45999);h.exports=c},86209:(h,I,a)=>{var c=a(73081);h.exports=c},23059:(h,I,a)=>{var c=a(48494);h.exports=c},27460:(h,I,a)=>{var c=a(52956);h.exports=c},72010:(h,I,a)=>{var c=a(32304);h.exports=c},31905:function(){(function(h){var I=function(a){var c={searchParams:"URLSearchParams"in h,iterable:"Symbol"in h&&"iterator"in Symbol,blob:"FileReader"in h&&"Blob"in h&&function(){try{return new Blob,!0}catch(ee){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function v(ee){return ee&&DataView.prototype.isPrototypeOf(ee)}if(c.arrayBuffer)var x=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(ee){return ee&&x.indexOf(Object.prototype.toString.call(ee))>-1};function b(ee){if(typeof ee!="string"&&(ee=String(ee)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(ee))throw new TypeError("Invalid character in header field name");return ee.toLowerCase()}function S(ee){return typeof ee!="string"&&(ee=String(ee)),ee}function g(ee){var ie={next:function(){var me=ee.shift();return{done:me===void 0,value:me}}};return c.iterable&&(ie[Symbol.iterator]=function(){return ie}),ie}function L(ee){this.map={},ee instanceof L?ee.forEach(function(ie,me){this.append(me,ie)},this):Array.isArray(ee)?ee.forEach(function(ie){this.append(ie[0],ie[1])},this):ee&&Object.getOwnPropertyNames(ee).forEach(function(ie){this.append(ie,ee[ie])},this)}L.prototype.append=function(ee,ie){ee=b(ee),ie=S(ie);var me=this.map[ee];this.map[ee]=me?me+", "+ie:ie},L.prototype.delete=function(ee){delete this.map[b(ee)]},L.prototype.get=function(ee){return ee=b(ee),this.has(ee)?this.map[ee]:null},L.prototype.has=function(ee){return this.map.hasOwnProperty(b(ee))},L.prototype.set=function(ee,ie){this.map[b(ee)]=S(ie)},L.prototype.forEach=function(ee,ie){for(var me in this.map)this.map.hasOwnProperty(me)&&ee.call(ie,this.map[me],me,this)},L.prototype.keys=function(){var ee=[];return this.forEach(function(ie,me){ee.push(me)}),g(ee)},L.prototype.values=function(){var ee=[];return this.forEach(function(ie){ee.push(ie)}),g(ee)},L.prototype.entries=function(){var ee=[];return this.forEach(function(ie,me){ee.push([me,ie])}),g(ee)},c.iterable&&(L.prototype[Symbol.iterator]=L.prototype.entries);function D(ee){if(ee.bodyUsed)return Promise.reject(new TypeError("Already read"));ee.bodyUsed=!0}function B(ee){return new Promise(function(ie,me){ee.onload=function(){ie(ee.result)},ee.onerror=function(){me(ee.error)}})}function j(ee){var ie=new FileReader,me=B(ie);return ie.readAsArrayBuffer(ee),me}function q(ee){var ie=new FileReader,me=B(ie);return ie.readAsText(ee),me}function W(ee){for(var ie=new Uint8Array(ee),me=new Array(ie.length),be=0;be<ie.length;be++)me[be]=String.fromCharCode(ie[be]);return me.join("")}function R(ee){if(ee.slice)return ee.slice(0);var ie=new Uint8Array(ee.byteLength);return ie.set(new Uint8Array(ee)),ie.buffer}function X(){return this.bodyUsed=!1,this._initBody=function(ee){this._bodyInit=ee,ee?typeof ee=="string"?this._bodyText=ee:c.blob&&Blob.prototype.isPrototypeOf(ee)?this._bodyBlob=ee:c.formData&&FormData.prototype.isPrototypeOf(ee)?this._bodyFormData=ee:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(ee)?this._bodyText=ee.toString():c.arrayBuffer&&c.blob&&v(ee)?(this._bodyArrayBuffer=R(ee.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ee)||d(ee))?this._bodyArrayBuffer=R(ee):this._bodyText=ee=Object.prototype.toString.call(ee):this._bodyText="",this.headers.get("content-type")||(typeof ee=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(ee)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var ee=D(this);if(ee)return ee;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?D(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(j)}),this.text=function(){var ee=D(this);if(ee)return ee;if(this._bodyBlob)return q(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(W(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var M=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(ee){var ie=ee.toUpperCase();return M.indexOf(ie)>-1?ie:ee}function V(ee,ie){ie=ie||{};var me=ie.body;if(ee instanceof V){if(ee.bodyUsed)throw new TypeError("Already read");this.url=ee.url,this.credentials=ee.credentials,ie.headers||(this.headers=new L(ee.headers)),this.method=ee.method,this.mode=ee.mode,this.signal=ee.signal,!me&&ee._bodyInit!=null&&(me=ee._bodyInit,ee.bodyUsed=!0)}else this.url=String(ee);if(this.credentials=ie.credentials||this.credentials||"same-origin",(ie.headers||!this.headers)&&(this.headers=new L(ie.headers)),this.method=C(ie.method||this.method||"GET"),this.mode=ie.mode||this.mode||null,this.signal=ie.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&me)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(me)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function J(ee){var ie=new FormData;return ee.trim().split("&").forEach(function(me){if(me){var be=me.split("="),he=be.shift().replace(/\+/g," "),ue=be.join("=").replace(/\+/g," ");ie.append(decodeURIComponent(he),decodeURIComponent(ue))}}),ie}function _(ee){var ie=new L,me=ee.replace(/\r?\n[\t ]+/g," ");return me.split(/\r?\n/).forEach(function(be){var he=be.split(":"),ue=he.shift().trim();if(ue){var oe=he.join(":").trim();ie.append(ue,oe)}}),ie}X.call(V.prototype);function Q(ee,ie){ie||(ie={}),this.type="default",this.status=ie.status===void 0?200:ie.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ie?ie.statusText:"OK",this.headers=new L(ie.headers),this.url=ie.url||"",this._initBody(ee)}X.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new L(this.headers),url:this.url})},Q.error=function(){var ee=new Q(null,{status:0,statusText:""});return ee.type="error",ee};var Y=[301,302,303,307,308];Q.redirect=function(ee,ie){if(Y.indexOf(ie)===-1)throw new RangeError("Invalid status code");return new Q(null,{status:ie,headers:{location:ee}})},a.DOMException=h.DOMException;try{new a.DOMException}catch(ee){a.DOMException=function(ie,me){this.message=ie,this.name=me;var be=Error(ie);this.stack=be.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function ce(ee,ie){return new Promise(function(me,be){var he=new V(ee,ie);if(he.signal&&he.signal.aborted)return be(new a.DOMException("Aborted","AbortError"));var ue=new XMLHttpRequest;function oe(){ue.abort()}ue.onload=function(){var Fe={status:ue.status,statusText:ue.statusText,headers:_(ue.getAllResponseHeaders()||"")};Fe.url="responseURL"in ue?ue.responseURL:Fe.headers.get("X-Request-URL");var Le="response"in ue?ue.response:ue.responseText;me(new Q(Le,Fe))},ue.onerror=function(){be(new TypeError("Network request failed"))},ue.ontimeout=function(){be(new TypeError("Network request failed"))},ue.onabort=function(){be(new a.DOMException("Aborted","AbortError"))},ue.open(he.method,he.url,!0),he.credentials==="include"?ue.withCredentials=!0:he.credentials==="omit"&&(ue.withCredentials=!1),"responseType"in ue&&c.blob&&(ue.responseType="blob"),he.headers.forEach(function(Fe,Le){ue.setRequestHeader(Le,Fe)}),he.signal&&(he.signal.addEventListener("abort",oe),ue.onreadystatechange=function(){ue.readyState===4&&he.signal.removeEventListener("abort",oe)}),ue.send(typeof he._bodyInit=="undefined"?null:he._bodyInit)})}return ce.polyfill=!0,h.fetch||(h.fetch=ce,h.Headers=L,h.Request=V,h.Response=Q),a.Headers=L,a.Request=V,a.Response=Q,a.fetch=ce,Object.defineProperty(a,"__esModule",{value:!0}),a}({})})(typeof self!="undefined"?self:this)},54098:function(h,I){var a=typeof self!="undefined"?self:this,c=function(){function x(){this.fetch=!1,this.DOMException=a.DOMException}return x.prototype=a,new x}();(function(x){var d=function(b){var S={searchParams:"URLSearchParams"in x,iterable:"Symbol"in x&&"iterator"in Symbol,blob:"FileReader"in x&&"Blob"in x&&function(){try{return new Blob,!0}catch(ue){return!1}}(),formData:"FormData"in x,arrayBuffer:"ArrayBuffer"in x};function g(ue){return ue&&DataView.prototype.isPrototypeOf(ue)}if(S.arrayBuffer)var L=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],D=ArrayBuffer.isView||function(ue){return ue&&L.indexOf(Object.prototype.toString.call(ue))>-1};function B(ue){if(typeof ue!="string"&&(ue=String(ue)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(ue))throw new TypeError("Invalid character in header field name");return ue.toLowerCase()}function j(ue){return typeof ue!="string"&&(ue=String(ue)),ue}function q(ue){var oe={next:function(){var Fe=ue.shift();return{done:Fe===void 0,value:Fe}}};return S.iterable&&(oe[Symbol.iterator]=function(){return oe}),oe}function W(ue){this.map={},ue instanceof W?ue.forEach(function(oe,Fe){this.append(Fe,oe)},this):Array.isArray(ue)?ue.forEach(function(oe){this.append(oe[0],oe[1])},this):ue&&Object.getOwnPropertyNames(ue).forEach(function(oe){this.append(oe,ue[oe])},this)}W.prototype.append=function(ue,oe){ue=B(ue),oe=j(oe);var Fe=this.map[ue];this.map[ue]=Fe?Fe+", "+oe:oe},W.prototype.delete=function(ue){delete this.map[B(ue)]},W.prototype.get=function(ue){return ue=B(ue),this.has(ue)?this.map[ue]:null},W.prototype.has=function(ue){return this.map.hasOwnProperty(B(ue))},W.prototype.set=function(ue,oe){this.map[B(ue)]=j(oe)},W.prototype.forEach=function(ue,oe){for(var Fe in this.map)this.map.hasOwnProperty(Fe)&&ue.call(oe,this.map[Fe],Fe,this)},W.prototype.keys=function(){var ue=[];return this.forEach(function(oe,Fe){ue.push(Fe)}),q(ue)},W.prototype.values=function(){var ue=[];return this.forEach(function(oe){ue.push(oe)}),q(ue)},W.prototype.entries=function(){var ue=[];return this.forEach(function(oe,Fe){ue.push([Fe,oe])}),q(ue)},S.iterable&&(W.prototype[Symbol.iterator]=W.prototype.entries);function R(ue){if(ue.bodyUsed)return Promise.reject(new TypeError("Already read"));ue.bodyUsed=!0}function X(ue){return new Promise(function(oe,Fe){ue.onload=function(){oe(ue.result)},ue.onerror=function(){Fe(ue.error)}})}function M(ue){var oe=new FileReader,Fe=X(oe);return oe.readAsArrayBuffer(ue),Fe}function C(ue){var oe=new FileReader,Fe=X(oe);return oe.readAsText(ue),Fe}function V(ue){for(var oe=new Uint8Array(ue),Fe=new Array(oe.length),Le=0;Le<oe.length;Le++)Fe[Le]=String.fromCharCode(oe[Le]);return Fe.join("")}function J(ue){if(ue.slice)return ue.slice(0);var oe=new Uint8Array(ue.byteLength);return oe.set(new Uint8Array(ue)),oe.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(ue){this._bodyInit=ue,ue?typeof ue=="string"?this._bodyText=ue:S.blob&&Blob.prototype.isPrototypeOf(ue)?this._bodyBlob=ue:S.formData&&FormData.prototype.isPrototypeOf(ue)?this._bodyFormData=ue:S.searchParams&&URLSearchParams.prototype.isPrototypeOf(ue)?this._bodyText=ue.toString():S.arrayBuffer&&S.blob&&g(ue)?(this._bodyArrayBuffer=J(ue.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):S.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ue)||D(ue))?this._bodyArrayBuffer=J(ue):this._bodyText=ue=Object.prototype.toString.call(ue):this._bodyText="",this.headers.get("content-type")||(typeof ue=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):S.searchParams&&URLSearchParams.prototype.isPrototypeOf(ue)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},S.blob&&(this.blob=function(){var ue=R(this);if(ue)return ue;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?R(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(M)}),this.text=function(){var ue=R(this);if(ue)return ue;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(V(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},S.formData&&(this.formData=function(){return this.text().then(ee)}),this.json=function(){return this.text().then(JSON.parse)},this}var Q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Y(ue){var oe=ue.toUpperCase();return Q.indexOf(oe)>-1?oe:ue}function ce(ue,oe){oe=oe||{};var Fe=oe.body;if(ue instanceof ce){if(ue.bodyUsed)throw new TypeError("Already read");this.url=ue.url,this.credentials=ue.credentials,oe.headers||(this.headers=new W(ue.headers)),this.method=ue.method,this.mode=ue.mode,this.signal=ue.signal,!Fe&&ue._bodyInit!=null&&(Fe=ue._bodyInit,ue.bodyUsed=!0)}else this.url=String(ue);if(this.credentials=oe.credentials||this.credentials||"same-origin",(oe.headers||!this.headers)&&(this.headers=new W(oe.headers)),this.method=Y(oe.method||this.method||"GET"),this.mode=oe.mode||this.mode||null,this.signal=oe.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Fe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Fe)}ce.prototype.clone=function(){return new ce(this,{body:this._bodyInit})};function ee(ue){var oe=new FormData;return ue.trim().split("&").forEach(function(Fe){if(Fe){var Le=Fe.split("="),Re=Le.shift().replace(/\+/g," "),Pe=Le.join("=").replace(/\+/g," ");oe.append(decodeURIComponent(Re),decodeURIComponent(Pe))}}),oe}function ie(ue){var oe=new W,Fe=ue.replace(/\r?\n[\t ]+/g," ");return Fe.split(/\r?\n/).forEach(function(Le){var Re=Le.split(":"),Pe=Re.shift().trim();if(Pe){var rt=Re.join(":").trim();oe.append(Pe,rt)}}),oe}_.call(ce.prototype);function me(ue,oe){oe||(oe={}),this.type="default",this.status=oe.status===void 0?200:oe.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in oe?oe.statusText:"OK",this.headers=new W(oe.headers),this.url=oe.url||"",this._initBody(ue)}_.call(me.prototype),me.prototype.clone=function(){return new me(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new W(this.headers),url:this.url})},me.error=function(){var ue=new me(null,{status:0,statusText:""});return ue.type="error",ue};var be=[301,302,303,307,308];me.redirect=function(ue,oe){if(be.indexOf(oe)===-1)throw new RangeError("Invalid status code");return new me(null,{status:oe,headers:{location:ue}})},b.DOMException=x.DOMException;try{new b.DOMException}catch(ue){b.DOMException=function(oe,Fe){this.message=oe,this.name=Fe;var Le=Error(oe);this.stack=Le.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function he(ue,oe){return new Promise(function(Fe,Le){var Re=new ce(ue,oe);if(Re.signal&&Re.signal.aborted)return Le(new b.DOMException("Aborted","AbortError"));var Pe=new XMLHttpRequest;function rt(){Pe.abort()}Pe.onload=function(){var Ze={status:Pe.status,statusText:Pe.statusText,headers:ie(Pe.getAllResponseHeaders()||"")};Ze.url="responseURL"in Pe?Pe.responseURL:Ze.headers.get("X-Request-URL");var Xe="response"in Pe?Pe.response:Pe.responseText;Fe(new me(Xe,Ze))},Pe.onerror=function(){Le(new TypeError("Network request failed"))},Pe.ontimeout=function(){Le(new TypeError("Network request failed"))},Pe.onabort=function(){Le(new b.DOMException("Aborted","AbortError"))},Pe.open(Re.method,Re.url,!0),Re.credentials==="include"?Pe.withCredentials=!0:Re.credentials==="omit"&&(Pe.withCredentials=!1),"responseType"in Pe&&S.blob&&(Pe.responseType="blob"),Re.headers.forEach(function(Ze,Xe){Pe.setRequestHeader(Xe,Ze)}),Re.signal&&(Re.signal.addEventListener("abort",rt),Pe.onreadystatechange=function(){Pe.readyState===4&&Re.signal.removeEventListener("abort",rt)}),Pe.send(typeof Re._bodyInit=="undefined"?null:Re._bodyInit)})}return he.polyfill=!0,x.fetch||(x.fetch=he,x.Headers=W,x.Request=ce,x.Response=me),b.Headers=W,b.Request=ce,b.Response=me,b.fetch=he,Object.defineProperty(b,"__esModule",{value:!0}),b}({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var v=c;I=v.fetch,I.default=v.fetch,I.fetch=v.fetch,I.Headers=v.Headers,I.Request=v.Request,I.Response=v.Response,h.exports=I},17438:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>S});var c=a(8081),v=a.n(c),x=a(23645),d=a.n(x),b=d()(v());b.push([h.id,`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
|
|
47
|
-
`,""]);const S=b},58635:(h,I,
|
|
48
|
-
`,""]);const V=q},45272:(h,I,
|
|
49
|
-
`,""]);const S=b},40961:(h,I,
|
|
50
|
-
`,""]);const S=b},61667:h=>{"use strict";h.exports=function(I,
|
|
46
|
+
*/I.parse=d,I.serialize=b;var o=decodeURIComponent,c=encodeURIComponent,v=/; */,x=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function d(g,L){if(typeof g!="string")throw new TypeError("argument str must be a string");for(var D={},B=L||{},j=g.split(v),q=B.decode||o,W=0;W<j.length;W++){var M=j[W],X=M.indexOf("=");if(!(X<0)){var R=M.substr(0,X).trim(),C=M.substr(++X,M.length).trim();C[0]=='"'&&(C=C.slice(1,-1)),D[R]==null&&(D[R]=S(C,q))}}return D}function b(g,L,D){var B=D||{},j=B.encode||c;if(typeof j!="function")throw new TypeError("option encode is invalid");if(!x.test(g))throw new TypeError("argument name is invalid");var q=j(L);if(q&&!x.test(q))throw new TypeError("argument val is invalid");var W=g+"="+q;if(B.maxAge!=null){var M=B.maxAge-0;if(isNaN(M)||!isFinite(M))throw new TypeError("option maxAge is invalid");W+="; Max-Age="+Math.floor(M)}if(B.domain){if(!x.test(B.domain))throw new TypeError("option domain is invalid");W+="; Domain="+B.domain}if(B.path){if(!x.test(B.path))throw new TypeError("option path is invalid");W+="; Path="+B.path}if(B.expires){if(typeof B.expires.toUTCString!="function")throw new TypeError("option expires is invalid");W+="; Expires="+B.expires.toUTCString()}if(B.httpOnly&&(W+="; HttpOnly"),B.secure&&(W+="; Secure"),B.sameSite){var X=typeof B.sameSite=="string"?B.sameSite.toLowerCase():B.sameSite;switch(X){case!0:W+="; SameSite=Strict";break;case"lax":W+="; SameSite=Lax";break;case"strict":W+="; SameSite=Strict";break;case"none":W+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return W}function S(g,L){try{return L(g)}catch(D){return g}}},54493:(h,I,o)=>{o(77971),o(53242);var c=o(54058);h.exports=c.Array.from},24034:(h,I,o)=>{o(92737);var c=o(54058);h.exports=c.Array.isArray},15367:(h,I,o)=>{o(85906);var c=o(35703);h.exports=c("Array").concat},12710:(h,I,o)=>{o(66274);var c=o(35703);h.exports=c("Array").entries},62383:(h,I,o)=>{o(21501);var c=o(35703);h.exports=c("Array").filter},17671:(h,I,o)=>{o(80833);var c=o(35703);h.exports=c("Array").find},99324:(h,I,o)=>{o(2437);var c=o(35703);h.exports=c("Array").forEach},80991:(h,I,o)=>{o(97690);var c=o(35703);h.exports=c("Array").includes},8700:(h,I,o)=>{o(99076);var c=o(35703);h.exports=c("Array").indexOf},23866:(h,I,o)=>{o(68787);var c=o(35703);h.exports=c("Array").map},24900:(h,I,o)=>{o(60186);var c=o(35703);h.exports=c("Array").slice},78209:(h,I,o)=>{o(98611);var c=o(35703);h.exports=c("Array").splice},56043:(h,I,o)=>{var c=o(15367),v=Array.prototype;h.exports=function(x){var d=x.concat;return x===v||x instanceof Array&&d===v.concat?c:d}},2480:(h,I,o)=>{var c=o(62383),v=Array.prototype;h.exports=function(x){var d=x.filter;return x===v||x instanceof Array&&d===v.filter?c:d}},32236:(h,I,o)=>{var c=o(17671),v=Array.prototype;h.exports=function(x){var d=x.find;return x===v||x instanceof Array&&d===v.find?c:d}},58557:(h,I,o)=>{var c=o(80991),v=o(21631),x=Array.prototype,d=String.prototype;h.exports=function(b){var S=b.includes;return b===x||b instanceof Array&&S===x.includes?c:typeof b=="string"||b===d||b instanceof String&&S===d.includes?v:S}},34570:(h,I,o)=>{var c=o(8700),v=Array.prototype;h.exports=function(x){var d=x.indexOf;return x===v||x instanceof Array&&d===v.indexOf?c:d}},88287:(h,I,o)=>{var c=o(23866),v=Array.prototype;h.exports=function(x){var d=x.map;return x===v||x instanceof Array&&d===v.map?c:d}},69601:(h,I,o)=>{var c=o(24900),v=Array.prototype;h.exports=function(x){var d=x.slice;return x===v||x instanceof Array&&d===v.slice?c:d}},18339:(h,I,o)=>{var c=o(78209),v=Array.prototype;h.exports=function(x){var d=x.splice;return x===v||x instanceof Array&&d===v.splice?c:d}},84426:(h,I,o)=>{o(32619);var c=o(54058);c.JSON||(c.JSON={stringify:JSON.stringify}),h.exports=function(x,d,b){return c.JSON.stringify.apply(null,arguments)}},45999:(h,I,o)=>{o(49221);var c=o(54058);h.exports=c.Object.assign},35254:(h,I,o)=>{o(53882);var c=o(54058),v=c.Object;h.exports=function(d,b){return v.create(d,b)}},7702:(h,I,o)=>{o(74979);var c=o(54058),v=c.Object,x=h.exports=function(b,S){return v.defineProperties(b,S)};v.defineProperties.sham&&(x.sham=!0)},48171:(h,I,o)=>{o(86450);var c=o(54058),v=c.Object,x=h.exports=function(b,S,g){return v.defineProperty(b,S,g)};v.defineProperty.sham&&(x.sham=!0)},73081:(h,I,o)=>{o(21078);var c=o(54058);h.exports=c.Object.entries},286:(h,I,o)=>{o(46924);var c=o(54058),v=c.Object,x=h.exports=function(b,S){return v.getOwnPropertyDescriptor(b,S)};v.getOwnPropertyDescriptor.sham&&(x.sham=!0)},92766:(h,I,o)=>{o(88482);var c=o(54058);h.exports=c.Object.getOwnPropertyDescriptors},30498:(h,I,o)=>{o(35824);var c=o(54058);h.exports=c.Object.getOwnPropertySymbols},13966:(h,I,o)=>{o(17405);var c=o(54058);h.exports=c.Object.getPrototypeOf},48494:(h,I,o)=>{o(21724);var c=o(54058);h.exports=c.Object.keys},3065:(h,I,o)=>{o(90108);var c=o(54058);h.exports=c.Object.setPrototypeOf},52956:(h,I,o)=>{o(47627),o(55967),o(98881),o(4560),o(91302),o(44349),o(77971),o(7634);var c=o(54058);h.exports=c.Promise},14983:(h,I,o)=>{o(7453);var c=o(54058);h.exports=c.Reflect.construct},37095:(h,I,o)=>{o(42355);var c=o(54058);h.exports=c.Reflect.get},21631:(h,I,o)=>{o(11035);var c=o(35703);h.exports=c("String").includes},57473:(h,I,o)=>{o(85906),o(55967),o(35824),o(8555),o(52615),o(21732),o(35903),o(1825),o(28394),o(45915),o(61766),o(62737),o(89911),o(74315),o(63131),o(64714),o(70659),o(69120),o(79413),o(1502);var c=o(54058);h.exports=c.Symbol},24227:(h,I,o)=>{o(1825),o(77971),o(7634);var c=o(11477);h.exports=c.f("iterator")},32304:(h,I,o)=>{o(55967),o(54334),o(7634);var c=o(54058);h.exports=c.WeakMap},27385:(h,I,o)=>{var c=o(54493);h.exports=c},81522:(h,I,o)=>{var c=o(24034);h.exports=c},32209:(h,I,o)=>{o(7634),o(77971);var c=o(22902);h.exports=c},44442:(h,I,o)=>{var c=o(2480);h.exports=c},57152:(h,I,o)=>{var c=o(46279);h.exports=c},69447:(h,I,o)=>{var c=o(34570);h.exports=c},81493:(h,I,o)=>{var c=o(69601);h.exports=c},76094:(h,I,o)=>{var c=o(35254);h.exports=c},70573:(h,I,o)=>{var c=o(7702);h.exports=c},73685:(h,I,o)=>{var c=o(48171);h.exports=c},27533:(h,I,o)=>{var c=o(286);h.exports=c},39057:(h,I,o)=>{var c=o(92766);h.exports=c},84710:(h,I,o)=>{var c=o(30498);h.exports=c},74303:(h,I,o)=>{var c=o(13966);h.exports=c},93799:(h,I,o)=>{var c=o(48494);h.exports=c},55122:(h,I,o)=>{var c=o(3065);h.exports=c},29531:(h,I,o)=>{var c=o(52956);o(89731),o(55708),o(30014),o(88731),h.exports=c},10856:(h,I,o)=>{var c=o(14983);h.exports=c},31524:(h,I,o)=>{var c=o(37095);h.exports=c},86600:(h,I,o)=>{var c=o(57473);o(28783),o(43975),o(65799),o(45414),o(46774),o(80620),o(36172),h.exports=c},9759:(h,I,o)=>{var c=o(24227);h.exports=c},33916:h=>{h.exports=function(I){if(typeof I!="function")throw TypeError(String(I)+" is not a function");return I}},42488:(h,I,o)=>{var c=o(10941);h.exports=function(v){if(!c(v)&&v!==null)throw TypeError("Can't set "+String(v)+" as a prototype");return v}},18479:h=>{h.exports=function(){}},5743:h=>{h.exports=function(I,o,c){if(!(I instanceof o))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return I}},96059:(h,I,o)=>{var c=o(10941);h.exports=function(v){if(!c(v))throw TypeError(String(v)+" is not an object");return v}},56837:(h,I,o)=>{"use strict";var c=o(3610).forEach,v=o(34194),x=v("forEach");h.exports=x?[].forEach:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}},11354:(h,I,o)=>{"use strict";var c=o(86843),v=o(89678),x=o(75196),d=o(6782),b=o(43057),S=o(55449),g=o(22902);h.exports=function(D){var B=v(D),j=typeof this=="function"?this:Array,q=arguments.length,W=q>1?arguments[1]:void 0,M=W!==void 0,X=g(B),R=0,C,V,J,_,Q,Y;if(M&&(W=c(W,q>2?arguments[2]:void 0,2)),X!=null&&!(j==Array&&d(X)))for(_=X.call(B),Q=_.next,V=new j;!(J=Q.call(_)).done;R++)Y=M?x(_,W,[J.value,R],!0):J.value,S(V,R,Y);else for(C=b(B.length),V=new j(C);C>R;R++)Y=M?W(B[R],R):B[R],S(V,R,Y);return V.length=R,V}},31692:(h,I,o)=>{var c=o(74529),v=o(43057),x=o(59413),d=function(b){return function(S,g,L){var D=c(S),B=v(D.length),j=x(L,B),q;if(b&&g!=g){for(;B>j;)if(q=D[j++],q!=q)return!0}else for(;B>j;j++)if((b||j in D)&&D[j]===g)return b||j||0;return!b&&-1}};h.exports={includes:d(!0),indexOf:d(!1)}},3610:(h,I,o)=>{var c=o(86843),v=o(37026),x=o(89678),d=o(43057),b=o(64692),S=[].push,g=function(L){var D=L==1,B=L==2,j=L==3,q=L==4,W=L==6,M=L==7,X=L==5||W;return function(R,C,V,J){for(var _=x(R),Q=v(_),Y=c(C,V,3),ce=d(Q.length),ee=0,ie=J||b,xe=D?ie(R,ce):B||M?ie(R,0):void 0,we,he;ce>ee;ee++)if((X||ee in Q)&&(we=Q[ee],he=Y(we,ee,_),L))if(D)xe[ee]=he;else if(he)switch(L){case 3:return!0;case 5:return we;case 6:return ee;case 2:S.call(xe,we)}else switch(L){case 4:return!1;case 7:S.call(xe,we)}return W?-1:j||q?q:xe}};h.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}},50568:(h,I,o)=>{var c=o(95981),v=o(99813),x=o(53385),d=v("species");h.exports=function(b){return x>=51||!c(function(){var S=[],g=S.constructor={};return g[d]=function(){return{foo:1}},S[b](Boolean).foo!==1})}},34194:(h,I,o)=>{"use strict";var c=o(95981);h.exports=function(v,x){var d=[][v];return!!d&&c(function(){d.call(null,x||function(){throw 1},1)})}},64692:(h,I,o)=>{var c=o(10941),v=o(1052),x=o(99813),d=x("species");h.exports=function(b,S){var g;return v(b)&&(g=b.constructor,typeof g=="function"&&(g===Array||v(g.prototype))?g=void 0:c(g)&&(g=g[d],g===null&&(g=void 0))),new(g===void 0?Array:g)(S===0?0:S)}},75196:(h,I,o)=>{var c=o(96059),v=o(7609);h.exports=function(x,d,b,S){try{return S?d(c(b)[0],b[1]):d(b)}catch(g){throw v(x),g}}},21385:(h,I,o)=>{var c=o(99813),v=c("iterator"),x=!1;try{var d=0,b={next:function(){return{done:!!d++}},return:function(){x=!0}};b[v]=function(){return this},Array.from(b,function(){throw 2})}catch(S){}h.exports=function(S,g){if(!g&&!x)return!1;var L=!1;try{var D={};D[v]=function(){return{next:function(){return{done:L=!0}}}},S(D)}catch(B){}return L}},82532:h=>{var I={}.toString;h.exports=function(o){return I.call(o).slice(8,-1)}},9697:(h,I,o)=>{var c=o(22885),v=o(82532),x=o(99813),d=x("toStringTag"),b=v(function(){return arguments}())=="Arguments",S=function(g,L){try{return g[L]}catch(D){}};h.exports=c?v:function(g){var L,D,B;return g===void 0?"Undefined":g===null?"Null":typeof(D=S(L=Object(g),d))=="string"?D:b?v(L):(B=v(L))=="Object"&&typeof L.callee=="function"?"Arguments":B}},8850:(h,I,o)=>{"use strict";var c=o(87524),v=o(21647).getWeakData,x=o(96059),d=o(10941),b=o(5743),S=o(93091),g=o(3610),L=o(47457),D=o(45402),B=D.set,j=D.getterFor,q=g.find,W=g.findIndex,M=0,X=function(V){return V.frozen||(V.frozen=new R)},R=function(){this.entries=[]},C=function(V,J){return q(V.entries,function(_){return _[0]===J})};R.prototype={get:function(V){var J=C(this,V);if(J)return J[1]},has:function(V){return!!C(this,V)},set:function(V,J){var _=C(this,V);_?_[1]=J:this.entries.push([V,J])},delete:function(V){var J=W(this.entries,function(_){return _[0]===V});return~J&&this.entries.splice(J,1),!!~J}},h.exports={getConstructor:function(V,J,_,Q){var Y=V(function(ie,xe){b(ie,Y,J),B(ie,{type:J,id:M++,frozen:void 0}),xe!=null&&S(xe,ie[Q],{that:ie,AS_ENTRIES:_})}),ce=j(J),ee=function(ie,xe,we){var he=ce(ie),fe=v(x(xe),!0);return fe===!0?X(he).set(xe,we):fe[he.id]=we,ie};return c(Y.prototype,{delete:function(ie){var xe=ce(this);if(!d(ie))return!1;var we=v(ie);return we===!0?X(xe).delete(ie):we&&L(we,xe.id)&&delete we[xe.id]},has:function(xe){var we=ce(this);if(!d(xe))return!1;var he=v(xe);return he===!0?X(we).has(xe):he&&L(he,we.id)}}),c(Y.prototype,_?{get:function(xe){var we=ce(this);if(d(xe)){var he=v(xe);return he===!0?X(we).get(xe):he?he[we.id]:void 0}},set:function(xe,we){return ee(this,xe,we)}}:{add:function(xe){return ee(this,xe,!0)}}),Y}}},24683:(h,I,o)=>{"use strict";var c=o(76887),v=o(21899),x=o(21647),d=o(95981),b=o(32029),S=o(93091),g=o(5743),L=o(10941),D=o(90904),B=o(65988).f,j=o(3610).forEach,q=o(55746),W=o(45402),M=W.set,X=W.getterFor;h.exports=function(R,C,V){var J=R.indexOf("Map")!==-1,_=R.indexOf("Weak")!==-1,Q=J?"set":"add",Y=v[R],ce=Y&&Y.prototype,ee={},ie;if(!q||typeof Y!="function"||!(_||ce.forEach&&!d(function(){new Y().entries().next()})))ie=V.getConstructor(C,R,J,Q),x.REQUIRED=!0;else{ie=C(function(we,he){M(g(we,ie,R),{type:R,collection:new Y}),he!=null&&S(he,we[Q],{that:we,AS_ENTRIES:J})});var xe=X(R);j(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(we){var he=we=="add"||we=="set";we in ce&&!(_&&we=="clear")&&b(ie.prototype,we,function(fe,ae){var Fe=xe(this).collection;if(!he&&_&&!L(fe))return we=="get"?void 0:!1;var Le=Fe[we](fe===0?0:fe,ae);return he?this:Le})}),_||B(ie.prototype,"size",{configurable:!0,get:function(){return xe(this).collection.size}})}return D(ie,R,!1,!0),ee[R]=ie,c({global:!0,forced:!0},ee),_||V.setStrong(ie,R,J),ie}},67772:(h,I,o)=>{var c=o(99813),v=c("match");h.exports=function(x){var d=/./;try{"/./"[x](d)}catch(b){try{return d[v]=!1,"/./"[x](d)}catch(S){}}return!1}},64160:(h,I,o)=>{var c=o(95981);h.exports=!c(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},31046:(h,I,o)=>{"use strict";var c=o(35143).IteratorPrototype,v=o(29290),x=o(31887),d=o(90904),b=o(12077),S=function(){return this};h.exports=function(g,L,D){var B=L+" Iterator";return g.prototype=v(c,{next:x(1,D)}),d(g,B,!1,!0),b[B]=S,g}},32029:(h,I,o)=>{var c=o(55746),v=o(65988),x=o(31887);h.exports=c?function(d,b,S){return v.f(d,b,x(1,S))}:function(d,b,S){return d[b]=S,d}},31887:h=>{h.exports=function(I,o){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:o}}},55449:(h,I,o)=>{"use strict";var c=o(46935),v=o(65988),x=o(31887);h.exports=function(d,b,S){var g=c(b);g in d?v.f(d,g,x(0,S)):d[g]=S}},47771:(h,I,o)=>{"use strict";var c=o(76887),v=o(31046),x=o(249),d=o(88929),b=o(90904),S=o(32029),g=o(99754),L=o(99813),D=o(82529),B=o(12077),j=o(35143),q=j.IteratorPrototype,W=j.BUGGY_SAFARI_ITERATORS,M=L("iterator"),X="keys",R="values",C="entries",V=function(){return this};h.exports=function(J,_,Q,Y,ce,ee,ie){v(Q,_,Y);var xe=function(Ze){if(Ze===ce&&Fe)return Fe;if(!W&&Ze in fe)return fe[Ze];switch(Ze){case X:return function(){return new Q(this,Ze)};case R:return function(){return new Q(this,Ze)};case C:return function(){return new Q(this,Ze)}}return function(){return new Q(this)}},we=_+" Iterator",he=!1,fe=J.prototype,ae=fe[M]||fe["@@iterator"]||ce&&fe[ce],Fe=!W&&ae||xe(ce),Le=_=="Array"&&fe.entries||ae,Me,Te,rt;if(Le&&(Me=x(Le.call(new J)),q!==Object.prototype&&Me.next&&(!D&&x(Me)!==q&&(d?d(Me,q):typeof Me[M]!="function"&&S(Me,M,V)),b(Me,we,!0,!0),D&&(B[we]=V))),ce==R&&ae&&ae.name!==R&&(he=!0,Fe=function(){return ae.call(this)}),(!D||ie)&&fe[M]!==Fe&&S(fe,M,Fe),B[_]=Fe,ce)if(Te={values:xe(R),keys:ee?Fe:xe(X),entries:xe(C)},ie)for(rt in Te)(W||he||!(rt in fe))&&g(fe,rt,Te[rt]);else c({target:_,proto:!0,forced:W||he},Te);return Te}},66349:(h,I,o)=>{var c=o(54058),v=o(47457),x=o(11477),d=o(65988).f;h.exports=function(b){var S=c.Symbol||(c.Symbol={});v(S,b)||d(S,b,{value:x.f(b)})}},55746:(h,I,o)=>{var c=o(95981);h.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},61333:(h,I,o)=>{var c=o(21899),v=o(10941),x=c.document,d=v(x)&&v(x.createElement);h.exports=function(b){return d?x.createElement(b):{}}},63281:h=>{h.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},23321:h=>{h.exports=typeof window=="object"},22749:(h,I,o)=>{var c=o(2861);h.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(c)},6049:(h,I,o)=>{var c=o(82532),v=o(21899);h.exports=c(v.process)=="process"},58045:(h,I,o)=>{var c=o(2861);h.exports=/web0s(?!.*chrome)/i.test(c)},2861:(h,I,o)=>{var c=o(626);h.exports=c("navigator","userAgent")||""},53385:(h,I,o)=>{var c=o(21899),v=o(2861),x=c.process,d=x&&x.versions,b=d&&d.v8,S,g;b?(S=b.split("."),g=S[0]<4?1:S[0]+S[1]):v&&(S=v.match(/Edge\/(\d+)/),(!S||S[1]>=74)&&(S=v.match(/Chrome\/(\d+)/),S&&(g=S[1]))),h.exports=g&&+g},35703:(h,I,o)=>{var c=o(54058);h.exports=function(v){return c[v+"Prototype"]}},56759:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76887:(h,I,o)=>{"use strict";var c=o(21899),v=o(49677).f,x=o(37252),d=o(54058),b=o(86843),S=o(32029),g=o(47457),L=function(D){var B=function(j,q,W){if(this instanceof D){switch(arguments.length){case 0:return new D;case 1:return new D(j);case 2:return new D(j,q)}return new D(j,q,W)}return D.apply(this,arguments)};return B.prototype=D.prototype,B};h.exports=function(D,B){var j=D.target,q=D.global,W=D.stat,M=D.proto,X=q?c:W?c[j]:(c[j]||{}).prototype,R=q?d:d[j]||(d[j]={}),C=R.prototype,V,J,_,Q,Y,ce,ee,ie,xe;for(Q in B)V=x(q?Q:j+(W?".":"#")+Q,D.forced),J=!V&&X&&g(X,Q),ce=R[Q],J&&(D.noTargetGet?(xe=v(X,Q),ee=xe&&xe.value):ee=X[Q]),Y=J&&ee?ee:B[Q],!(J&&typeof ce==typeof Y)&&(D.bind&&J?ie=b(Y,c):D.wrap&&J?ie=L(Y):M&&typeof Y=="function"?ie=b(Function.call,Y):ie=Y,(D.sham||Y&&Y.sham||ce&&ce.sham)&&S(ie,"sham",!0),R[Q]=ie,M&&(_=j+"Prototype",g(d,_)||S(d,_,{}),d[_][Q]=Y,D.real&&C&&!C[Q]&&S(C,Q,Y)))}},95981:h=>{h.exports=function(I){try{return!!I()}catch(o){return!0}}},45602:(h,I,o)=>{var c=o(95981);h.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},86843:(h,I,o)=>{var c=o(33916);h.exports=function(v,x,d){if(c(v),x===void 0)return v;switch(d){case 0:return function(){return v.call(x)};case 1:return function(b){return v.call(x,b)};case 2:return function(b,S){return v.call(x,b,S)};case 3:return function(b,S,g){return v.call(x,b,S,g)}}return function(){return v.apply(x,arguments)}}},98308:(h,I,o)=>{"use strict";var c=o(33916),v=o(10941),x=[].slice,d={},b=function(S,g,L){if(!(g in d)){for(var D=[],B=0;B<g;B++)D[B]="a["+B+"]";d[g]=Function("C,a","return new C("+D.join(",")+")")}return d[g](S,L)};h.exports=Function.bind||function(g){var L=c(this),D=x.call(arguments,1),B=function(){var q=D.concat(x.call(arguments));return this instanceof B?b(L,q.length,q):L.apply(g,q)};return v(L.prototype)&&(B.prototype=L.prototype),B}},626:(h,I,o)=>{var c=o(54058),v=o(21899),x=function(d){return typeof d=="function"?d:void 0};h.exports=function(d,b){return arguments.length<2?x(c[d])||x(v[d]):c[d]&&c[d][b]||v[d]&&v[d][b]}},22902:(h,I,o)=>{var c=o(9697),v=o(12077),x=o(99813),d=x("iterator");h.exports=function(b){if(b!=null)return b[d]||b["@@iterator"]||v[c(b)]}},21899:(h,I,o)=>{var c=function(v){return v&&v.Math==Math&&v};h.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof o.g=="object"&&o.g)||function(){return this}()||Function("return this")()},47457:(h,I,o)=>{var c=o(89678),v={}.hasOwnProperty;h.exports=Object.hasOwn||function(d,b){return v.call(c(d),b)}},27748:h=>{h.exports={}},34845:(h,I,o)=>{var c=o(21899);h.exports=function(v,x){var d=c.console;d&&d.error&&(arguments.length===1?d.error(v):d.error(v,x))}},15463:(h,I,o)=>{var c=o(626);h.exports=c("document","documentElement")},2840:(h,I,o)=>{var c=o(55746),v=o(95981),x=o(61333);h.exports=!c&&!v(function(){return Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a!=7})},37026:(h,I,o)=>{var c=o(95981),v=o(82532),x="".split;h.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return v(d)=="String"?x.call(d,""):Object(d)}:Object},81302:(h,I,o)=>{var c=o(63030),v=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(x){return v.call(x)}),h.exports=c.inspectSource},21647:(h,I,o)=>{var c=o(27748),v=o(10941),x=o(47457),d=o(65988).f,b=o(99418),S=o(45602),g=b("meta"),L=0,D=Object.isExtensible||function(){return!0},B=function(X){d(X,g,{value:{objectID:"O"+ ++L,weakData:{}}})},j=function(X,R){if(!v(X))return typeof X=="symbol"?X:(typeof X=="string"?"S":"P")+X;if(!x(X,g)){if(!D(X))return"F";if(!R)return"E";B(X)}return X[g].objectID},q=function(X,R){if(!x(X,g)){if(!D(X))return!0;if(!R)return!1;B(X)}return X[g].weakData},W=function(X){return S&&M.REQUIRED&&D(X)&&!x(X,g)&&B(X),X},M=h.exports={REQUIRED:!1,fastKey:j,getWeakData:q,onFreeze:W};c[g]=!0},45402:(h,I,o)=>{var c=o(38019),v=o(21899),x=o(10941),d=o(32029),b=o(47457),S=o(63030),g=o(44262),L=o(27748),D="Object already initialized",B=v.WeakMap,j,q,W,M=function(Q){return W(Q)?q(Q):j(Q,{})},X=function(Q){return function(Y){var ce;if(!x(Y)||(ce=q(Y)).type!==Q)throw TypeError("Incompatible receiver, "+Q+" required");return ce}};if(c||S.state){var R=S.state||(S.state=new B),C=R.get,V=R.has,J=R.set;j=function(Q,Y){if(V.call(R,Q))throw new TypeError(D);return Y.facade=Q,J.call(R,Q,Y),Y},q=function(Q){return C.call(R,Q)||{}},W=function(Q){return V.call(R,Q)}}else{var _=g("state");L[_]=!0,j=function(Q,Y){if(b(Q,_))throw new TypeError(D);return Y.facade=Q,d(Q,_,Y),Y},q=function(Q){return b(Q,_)?Q[_]:{}},W=function(Q){return b(Q,_)}}h.exports={set:j,get:q,has:W,enforce:M,getterFor:X}},6782:(h,I,o)=>{var c=o(99813),v=o(12077),x=c("iterator"),d=Array.prototype;h.exports=function(b){return b!==void 0&&(v.Array===b||d[x]===b)}},1052:(h,I,o)=>{var c=o(82532);h.exports=Array.isArray||function(x){return c(x)=="Array"}},37252:(h,I,o)=>{var c=o(95981),v=/#|\.prototype\./,x=function(L,D){var B=b[d(L)];return B==g?!0:B==S?!1:typeof D=="function"?c(D):!!D},d=x.normalize=function(L){return String(L).replace(v,".").toLowerCase()},b=x.data={},S=x.NATIVE="N",g=x.POLYFILL="P";h.exports=x},10941:h=>{h.exports=function(I){return typeof I=="object"?I!==null:typeof I=="function"}},82529:h=>{h.exports=!0},60685:(h,I,o)=>{var c=o(10941),v=o(82532),x=o(99813),d=x("match");h.exports=function(b){var S;return c(b)&&((S=b[d])!==void 0?!!S:v(b)=="RegExp")}},93091:(h,I,o)=>{var c=o(96059),v=o(6782),x=o(43057),d=o(86843),b=o(22902),S=o(7609),g=function(L,D){this.stopped=L,this.result=D};h.exports=function(L,D,B){var j=B&&B.that,q=!!(B&&B.AS_ENTRIES),W=!!(B&&B.IS_ITERATOR),M=!!(B&&B.INTERRUPTED),X=d(D,j,1+q+M),R,C,V,J,_,Q,Y,ce=function(ie){return R&&S(R),new g(!0,ie)},ee=function(ie){return q?(c(ie),M?X(ie[0],ie[1],ce):X(ie[0],ie[1])):M?X(ie,ce):X(ie)};if(W)R=L;else{if(C=b(L),typeof C!="function")throw TypeError("Target is not iterable");if(v(C)){for(V=0,J=x(L.length);J>V;V++)if(_=ee(L[V]),_&&_ instanceof g)return _;return new g(!1)}R=C.call(L)}for(Q=R.next;!(Y=Q.call(R)).done;){try{_=ee(Y.value)}catch(ie){throw S(R),ie}if(typeof _=="object"&&_&&_ instanceof g)return _}return new g(!1)}},7609:(h,I,o)=>{var c=o(96059);h.exports=function(v){var x=v.return;if(x!==void 0)return c(x.call(v)).value}},35143:(h,I,o)=>{"use strict";var c=o(95981),v=o(249),x=o(32029),d=o(47457),b=o(99813),S=o(82529),g=b("iterator"),L=!1,D=function(){return this},B,j,q;[].keys&&(q=[].keys(),"next"in q?(j=v(v(q)),j!==Object.prototype&&(B=j)):L=!0);var W=B==null||c(function(){var M={};return B[g].call(M)!==M});W&&(B={}),(!S||W)&&!d(B,g)&&x(B,g,D),h.exports={IteratorPrototype:B,BUGGY_SAFARI_ITERATORS:L}},12077:h=>{h.exports={}},66132:(h,I,o)=>{var c=o(21899),v=o(49677).f,x=o(42941).set,d=o(22749),b=o(58045),S=o(6049),g=c.MutationObserver||c.WebKitMutationObserver,L=c.document,D=c.process,B=c.Promise,j=v(c,"queueMicrotask"),q=j&&j.value,W,M,X,R,C,V,J,_;q||(W=function(){var Q,Y;for(S&&(Q=D.domain)&&Q.exit();M;){Y=M.fn,M=M.next;try{Y()}catch(ce){throw M?R():X=void 0,ce}}X=void 0,Q&&Q.enter()},!d&&!S&&!b&&g&&L?(C=!0,V=L.createTextNode(""),new g(W).observe(V,{characterData:!0}),R=function(){V.data=C=!C}):B&&B.resolve?(J=B.resolve(void 0),J.constructor=B,_=J.then,R=function(){_.call(J,W)}):S?R=function(){D.nextTick(W)}:R=function(){x.call(c,W)}),h.exports=q||function(Q){var Y={fn:Q,next:void 0};X&&(X.next=Y),M||(M=Y,R()),X=Y}},19297:(h,I,o)=>{var c=o(21899);h.exports=c.Promise},72497:(h,I,o)=>{var c=o(53385),v=o(95981);h.exports=!!Object.getOwnPropertySymbols&&!v(function(){var x=Symbol();return!String(x)||!(Object(x)instanceof Symbol)||!Symbol.sham&&c&&c<41})},38019:(h,I,o)=>{var c=o(21899),v=o(81302),x=c.WeakMap;h.exports=typeof x=="function"&&/native code/.test(v(x))},69520:(h,I,o)=>{"use strict";var c=o(33916),v=function(x){var d,b;this.promise=new x(function(S,g){if(d!==void 0||b!==void 0)throw TypeError("Bad Promise constructor");d=S,b=g}),this.resolve=c(d),this.reject=c(b)};h.exports.f=function(x){return new v(x)}},70344:(h,I,o)=>{var c=o(60685);h.exports=function(v){if(c(v))throw TypeError("The method doesn't accept regular expressions");return v}},24420:(h,I,o)=>{"use strict";var c=o(55746),v=o(95981),x=o(14771),d=o(87857),b=o(36760),S=o(89678),g=o(37026),L=Object.assign,D=Object.defineProperty;h.exports=!L||v(function(){if(c&&L({b:1},L(D({},"a",{enumerable:!0,get:function(){D(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var B={},j={},q=Symbol(),W="abcdefghijklmnopqrst";return B[q]=7,W.split("").forEach(function(M){j[M]=M}),L({},B)[q]!=7||x(L({},j)).join("")!=W})?function(j,q){for(var W=S(j),M=arguments.length,X=1,R=d.f,C=b.f;M>X;)for(var V=g(arguments[X++]),J=R?x(V).concat(R(V)):x(V),_=J.length,Q=0,Y;_>Q;)Y=J[Q++],(!c||C.call(V,Y))&&(W[Y]=V[Y]);return W}:L},29290:(h,I,o)=>{var c=o(96059),v=o(59938),x=o(56759),d=o(27748),b=o(15463),S=o(61333),g=o(44262),L=">",D="<",B="prototype",j="script",q=g("IE_PROTO"),W=function(){},M=function(J){return D+j+L+J+D+"/"+j+L},X=function(J){J.write(M("")),J.close();var _=J.parentWindow.Object;return J=null,_},R=function(){var J=S("iframe"),_="java"+j+":",Q;return J.style.display="none",b.appendChild(J),J.src=String(_),Q=J.contentWindow.document,Q.open(),Q.write(M("document.F=Object")),Q.close(),Q.F},C,V=function(){try{C=document.domain&&new ActiveXObject("htmlfile")}catch(_){}V=C?X(C):R();for(var J=x.length;J--;)delete V[B][x[J]];return V()};d[q]=!0,h.exports=Object.create||function(_,Q){var Y;return _!==null?(W[B]=c(_),Y=new W,W[B]=null,Y[q]=_):Y=V(),Q===void 0?Y:v(Y,Q)}},59938:(h,I,o)=>{var c=o(55746),v=o(65988),x=o(96059),d=o(14771);h.exports=c?Object.defineProperties:function(S,g){x(S);for(var L=d(g),D=L.length,B=0,j;D>B;)v.f(S,j=L[B++],g[j]);return S}},65988:(h,I,o)=>{var c=o(55746),v=o(2840),x=o(96059),d=o(46935),b=Object.defineProperty;I.f=c?b:function(g,L,D){if(x(g),L=d(L,!0),x(D),v)try{return b(g,L,D)}catch(B){}if("get"in D||"set"in D)throw TypeError("Accessors not supported");return"value"in D&&(g[L]=D.value),g}},49677:(h,I,o)=>{var c=o(55746),v=o(36760),x=o(31887),d=o(74529),b=o(46935),S=o(47457),g=o(2840),L=Object.getOwnPropertyDescriptor;I.f=c?L:function(B,j){if(B=d(B),j=b(j,!0),g)try{return L(B,j)}catch(q){}if(S(B,j))return x(!v.f.call(B,j),B[j])}},684:(h,I,o)=>{var c=o(74529),v=o(10946).f,x={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(S){try{return v(S)}catch(g){return d.slice()}};h.exports.f=function(g){return d&&x.call(g)=="[object Window]"?b(g):v(c(g))}},10946:(h,I,o)=>{var c=o(55629),v=o(56759),x=v.concat("length","prototype");I.f=Object.getOwnPropertyNames||function(b){return c(b,x)}},87857:(h,I)=>{I.f=Object.getOwnPropertySymbols},249:(h,I,o)=>{var c=o(47457),v=o(89678),x=o(44262),d=o(64160),b=x("IE_PROTO"),S=Object.prototype;h.exports=d?Object.getPrototypeOf:function(g){return g=v(g),c(g,b)?g[b]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?S:null}},55629:(h,I,o)=>{var c=o(47457),v=o(74529),x=o(31692).indexOf,d=o(27748);h.exports=function(b,S){var g=v(b),L=0,D=[],B;for(B in g)!c(d,B)&&c(g,B)&&D.push(B);for(;S.length>L;)c(g,B=S[L++])&&(~x(D,B)||D.push(B));return D}},14771:(h,I,o)=>{var c=o(55629),v=o(56759);h.exports=Object.keys||function(d){return c(d,v)}},36760:(h,I)=>{"use strict";var o={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,v=c&&!o.call({1:2},1);I.f=v?function(d){var b=c(this,d);return!!b&&b.enumerable}:o},88929:(h,I,o)=>{var c=o(96059),v=o(42488);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var x=!1,d={},b;try{b=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,b.call(d,[]),x=d instanceof Array}catch(S){}return function(g,L){return c(g),v(L),x?b.call(g,L):g.__proto__=L,g}}():void 0)},88810:(h,I,o)=>{var c=o(55746),v=o(14771),x=o(74529),d=o(36760).f,b=function(S){return function(g){for(var L=x(g),D=v(L),B=D.length,j=0,q=[],W;B>j;)W=D[j++],(!c||d.call(L,W))&&q.push(S?[W,L[W]]:L[W]);return q}};h.exports={entries:b(!0),values:b(!1)}},95623:(h,I,o)=>{"use strict";var c=o(22885),v=o(9697);h.exports=c?{}.toString:function(){return"[object "+v(this)+"]"}},31136:(h,I,o)=>{var c=o(626),v=o(10946),x=o(87857),d=o(96059);h.exports=c("Reflect","ownKeys")||function(S){var g=v.f(d(S)),L=x.f;return L?g.concat(L(S)):g}},54058:h=>{h.exports={}},40002:h=>{h.exports=function(I){try{return{error:!1,value:I()}}catch(o){return{error:!0,value:o}}}},56584:(h,I,o)=>{var c=o(96059),v=o(10941),x=o(69520);h.exports=function(d,b){if(c(d),v(b)&&b.constructor===d)return b;var S=x.f(d),g=S.resolve;return g(b),S.promise}},87524:(h,I,o)=>{var c=o(99754);h.exports=function(v,x,d){for(var b in x)d&&d.unsafe&&v[b]?v[b]=x[b]:c(v,b,x[b],d);return v}},99754:(h,I,o)=>{var c=o(32029);h.exports=function(v,x,d,b){b&&b.enumerable?v[x]=d:c(v,x,d)}},48219:h=>{h.exports=function(I){if(I==null)throw TypeError("Can't call method on "+I);return I}},4911:(h,I,o)=>{var c=o(21899),v=o(32029);h.exports=function(x,d){try{v(c,x,d)}catch(b){c[x]=d}return d}},94431:(h,I,o)=>{"use strict";var c=o(626),v=o(65988),x=o(99813),d=o(55746),b=x("species");h.exports=function(S){var g=c(S),L=v.f;d&&g&&!g[b]&&L(g,b,{configurable:!0,get:function(){return this}})}},90904:(h,I,o)=>{var c=o(22885),v=o(65988).f,x=o(32029),d=o(47457),b=o(95623),S=o(99813),g=S("toStringTag");h.exports=function(L,D,B,j){if(L){var q=B?L:L.prototype;d(q,g)||v(q,g,{configurable:!0,value:D}),j&&!c&&x(q,"toString",b)}}},44262:(h,I,o)=>{var c=o(68726),v=o(99418),x=c("keys");h.exports=function(d){return x[d]||(x[d]=v(d))}},63030:(h,I,o)=>{var c=o(21899),v=o(4911),x="__core-js_shared__",d=c[x]||v(x,{});h.exports=d},68726:(h,I,o)=>{var c=o(82529),v=o(63030);(h.exports=function(x,d){return v[x]||(v[x]=d!==void 0?d:{})})("versions",[]).push({version:"3.14.0",mode:c?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},70487:(h,I,o)=>{var c=o(96059),v=o(33916),x=o(99813),d=x("species");h.exports=function(b,S){var g=c(b).constructor,L;return g===void 0||(L=c(g)[d])==null?S:v(L)}},64620:(h,I,o)=>{var c=o(68459),v=o(48219),x=function(d){return function(b,S){var g=String(v(b)),L=c(S),D=g.length,B,j;return L<0||L>=D?d?"":void 0:(B=g.charCodeAt(L),B<55296||B>56319||L+1===D||(j=g.charCodeAt(L+1))<56320||j>57343?d?g.charAt(L):B:d?g.slice(L,L+2):(B-55296<<10)+(j-56320)+65536)}};h.exports={codeAt:x(!1),charAt:x(!0)}},42941:(h,I,o)=>{var c=o(21899),v=o(95981),x=o(86843),d=o(15463),b=o(61333),S=o(22749),g=o(6049),L=c.location,D=c.setImmediate,B=c.clearImmediate,j=c.process,q=c.MessageChannel,W=c.Dispatch,M=0,X={},R="onreadystatechange",C,V,J,_=function(ee){if(X.hasOwnProperty(ee)){var ie=X[ee];delete X[ee],ie()}},Q=function(ee){return function(){_(ee)}},Y=function(ee){_(ee.data)},ce=function(ee){c.postMessage(ee+"",L.protocol+"//"+L.host)};(!D||!B)&&(D=function(ie){for(var xe=[],we=1;arguments.length>we;)xe.push(arguments[we++]);return X[++M]=function(){(typeof ie=="function"?ie:Function(ie)).apply(void 0,xe)},C(M),M},B=function(ie){delete X[ie]},g?C=function(ee){j.nextTick(Q(ee))}:W&&W.now?C=function(ee){W.now(Q(ee))}:q&&!S?(V=new q,J=V.port2,V.port1.onmessage=Y,C=x(J.postMessage,J,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts&&L&&L.protocol!=="file:"&&!v(ce)?(C=ce,c.addEventListener("message",Y,!1)):R in b("script")?C=function(ee){d.appendChild(b("script"))[R]=function(){d.removeChild(this),_(ee)}}:C=function(ee){setTimeout(Q(ee),0)}),h.exports={set:D,clear:B}},59413:(h,I,o)=>{var c=o(68459),v=Math.max,x=Math.min;h.exports=function(d,b){var S=c(d);return S<0?v(S+b,0):x(S,b)}},74529:(h,I,o)=>{var c=o(37026),v=o(48219);h.exports=function(x){return c(v(x))}},68459:h=>{var I=Math.ceil,o=Math.floor;h.exports=function(c){return isNaN(c=+c)?0:(c>0?o:I)(c)}},43057:(h,I,o)=>{var c=o(68459),v=Math.min;h.exports=function(x){return x>0?v(c(x),9007199254740991):0}},89678:(h,I,o)=>{var c=o(48219);h.exports=function(v){return Object(c(v))}},46935:(h,I,o)=>{var c=o(10941);h.exports=function(v,x){if(!c(v))return v;var d,b;if(x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v))||typeof(d=v.valueOf)=="function"&&!c(b=d.call(v))||!x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v)))return b;throw TypeError("Can't convert object to primitive value")}},22885:(h,I,o)=>{var c=o(99813),v=c("toStringTag"),x={};x[v]="z",h.exports=String(x)==="[object z]"},99418:h=>{var I=0,o=Math.random();h.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++I+o).toString(36)}},32302:(h,I,o)=>{var c=o(72497);h.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},11477:(h,I,o)=>{var c=o(99813);I.f=c},99813:(h,I,o)=>{var c=o(21899),v=o(68726),x=o(47457),d=o(99418),b=o(72497),S=o(32302),g=v("wks"),L=c.Symbol,D=S?L:L&&L.withoutSetter||d;h.exports=function(B){return(!x(g,B)||!(b||typeof g[B]=="string"))&&(b&&x(L,B)?g[B]=L[B]:g[B]=D("Symbol."+B)),g[B]}},47627:(h,I,o)=>{"use strict";var c=o(76887),v=o(249),x=o(88929),d=o(29290),b=o(32029),S=o(31887),g=o(93091),L=function(B,j){var q=this;if(!(q instanceof L))return new L(B,j);x&&(q=x(new Error(void 0),v(q))),j!==void 0&&b(q,"message",String(j));var W=[];return g(B,W.push,{that:W}),b(q,"errors",W),q};L.prototype=d(Error.prototype,{constructor:S(5,L),message:S(5,""),name:S(5,"AggregateError")}),c({global:!0},{AggregateError:L})},85906:(h,I,o)=>{"use strict";var c=o(76887),v=o(95981),x=o(1052),d=o(10941),b=o(89678),S=o(43057),g=o(55449),L=o(64692),D=o(50568),B=o(99813),j=o(53385),q=B("isConcatSpreadable"),W=9007199254740991,M="Maximum allowed index exceeded",X=j>=51||!v(function(){var J=[];return J[q]=!1,J.concat()[0]!==J}),R=D("concat"),C=function(J){if(!d(J))return!1;var _=J[q];return _!==void 0?!!_:x(J)},V=!X||!R;c({target:"Array",proto:!0,forced:V},{concat:function(_){var Q=b(this),Y=L(Q,0),ce=0,ee,ie,xe,we,he;for(ee=-1,xe=arguments.length;ee<xe;ee++)if(he=ee===-1?Q:arguments[ee],C(he)){if(we=S(he.length),ce+we>W)throw TypeError(M);for(ie=0;ie<we;ie++,ce++)ie in he&&g(Y,ce,he[ie])}else{if(ce>=W)throw TypeError(M);g(Y,ce++,he)}return Y.length=ce,Y}})},21501:(h,I,o)=>{"use strict";var c=o(76887),v=o(3610).filter,x=o(50568),d=x("filter");c({target:"Array",proto:!0,forced:!d},{filter:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}})},80833:(h,I,o)=>{"use strict";var c=o(76887),v=o(3610).find,x=o(18479),d="find",b=!0;d in[]&&Array(1)[d](function(){b=!1}),c({target:"Array",proto:!0,forced:b},{find:function(g){return v(this,g,arguments.length>1?arguments[1]:void 0)}}),x(d)},2437:(h,I,o)=>{"use strict";var c=o(76887),v=o(56837);c({target:"Array",proto:!0,forced:[].forEach!=v},{forEach:v})},53242:(h,I,o)=>{var c=o(76887),v=o(11354),x=o(21385),d=!x(function(b){Array.from(b)});c({target:"Array",stat:!0,forced:d},{from:v})},97690:(h,I,o)=>{"use strict";var c=o(76887),v=o(31692).includes,x=o(18479);c({target:"Array",proto:!0},{includes:function(b){return v(this,b,arguments.length>1?arguments[1]:void 0)}}),x("includes")},99076:(h,I,o)=>{"use strict";var c=o(76887),v=o(31692).indexOf,x=o(34194),d=[].indexOf,b=!!d&&1/[1].indexOf(1,-0)<0,S=x("indexOf");c({target:"Array",proto:!0,forced:b||!S},{indexOf:function(L){return b?d.apply(this,arguments)||0:v(this,L,arguments.length>1?arguments[1]:void 0)}})},92737:(h,I,o)=>{var c=o(76887),v=o(1052);c({target:"Array",stat:!0},{isArray:v})},66274:(h,I,o)=>{"use strict";var c=o(74529),v=o(18479),x=o(12077),d=o(45402),b=o(47771),S="Array Iterator",g=d.set,L=d.getterFor(S);h.exports=b(Array,"Array",function(D,B){g(this,{type:S,target:c(D),index:0,kind:B})},function(){var D=L(this),B=D.target,j=D.kind,q=D.index++;return!B||q>=B.length?(D.target=void 0,{value:void 0,done:!0}):j=="keys"?{value:q,done:!1}:j=="values"?{value:B[q],done:!1}:{value:[q,B[q]],done:!1}},"values"),x.Arguments=x.Array,v("keys"),v("values"),v("entries")},68787:(h,I,o)=>{"use strict";var c=o(76887),v=o(3610).map,x=o(50568),d=x("map");c({target:"Array",proto:!0,forced:!d},{map:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}})},60186:(h,I,o)=>{"use strict";var c=o(76887),v=o(10941),x=o(1052),d=o(59413),b=o(43057),S=o(74529),g=o(55449),L=o(99813),D=o(50568),B=D("slice"),j=L("species"),q=[].slice,W=Math.max;c({target:"Array",proto:!0,forced:!B},{slice:function(X,R){var C=S(this),V=b(C.length),J=d(X,V),_=d(R===void 0?V:R,V),Q,Y,ce;if(x(C)&&(Q=C.constructor,typeof Q=="function"&&(Q===Array||x(Q.prototype))?Q=void 0:v(Q)&&(Q=Q[j],Q===null&&(Q=void 0)),Q===Array||Q===void 0))return q.call(C,J,_);for(Y=new(Q===void 0?Array:Q)(W(_-J,0)),ce=0;J<_;J++,ce++)J in C&&g(Y,ce,C[J]);return Y.length=ce,Y}})},98611:(h,I,o)=>{"use strict";var c=o(76887),v=o(59413),x=o(68459),d=o(43057),b=o(89678),S=o(64692),g=o(55449),L=o(50568),D=L("splice"),B=Math.max,j=Math.min,q=9007199254740991,W="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!D},{splice:function(X,R){var C=b(this),V=d(C.length),J=v(X,V),_=arguments.length,Q,Y,ce,ee,ie,xe;if(_===0?Q=Y=0:_===1?(Q=0,Y=V-J):(Q=_-2,Y=j(B(x(R),0),V-J)),V+Q-Y>q)throw TypeError(W);for(ce=S(C,Y),ee=0;ee<Y;ee++)ie=J+ee,ie in C&&g(ce,ee,C[ie]);if(ce.length=Y,Q<Y){for(ee=J;ee<V-Y;ee++)ie=ee+Y,xe=ee+Q,ie in C?C[xe]=C[ie]:delete C[xe];for(ee=V;ee>V-Y+Q;ee--)delete C[ee-1]}else if(Q>Y)for(ee=V-Y;ee>J;ee--)ie=ee+Y-1,xe=ee+Q-1,ie in C?C[xe]=C[ie]:delete C[xe];for(ee=0;ee<Q;ee++)C[ee+J]=arguments[ee+2];return C.length=V-Y+Q,ce}})},32619:(h,I,o)=>{var c=o(76887),v=o(626),x=o(95981),d=v("JSON","stringify"),b=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,g=/^[\uDC00-\uDFFF]$/,L=function(B,j,q){var W=q.charAt(j-1),M=q.charAt(j+1);return S.test(B)&&!g.test(M)||g.test(B)&&!S.test(W)?"\\u"+B.charCodeAt(0).toString(16):B},D=x(function(){return d("\uDF06\uD834")!=='"\\udf06\\ud834"'||d("\uDEAD")!=='"\\udead"'});d&&c({target:"JSON",stat:!0,forced:D},{stringify:function(j,q,W){var M=d.apply(null,arguments);return typeof M=="string"?M.replace(b,L):M}})},69120:(h,I,o)=>{var c=o(21899),v=o(90904);v(c.JSON,"JSON",!0)},79413:()=>{},49221:(h,I,o)=>{var c=o(76887),v=o(24420);c({target:"Object",stat:!0,forced:Object.assign!==v},{assign:v})},53882:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(29290);c({target:"Object",stat:!0,sham:!v},{create:x})},74979:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(59938);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperties:x})},86450:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(65988);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperty:x.f})},21078:(h,I,o)=>{var c=o(76887),v=o(88810).entries;c({target:"Object",stat:!0},{entries:function(d){return v(d)}})},46924:(h,I,o)=>{var c=o(76887),v=o(95981),x=o(74529),d=o(49677).f,b=o(55746),S=v(function(){d(1)}),g=!b||S;c({target:"Object",stat:!0,forced:g,sham:!b},{getOwnPropertyDescriptor:function(D,B){return d(x(D),B)}})},88482:(h,I,o)=>{var c=o(76887),v=o(55746),x=o(31136),d=o(74529),b=o(49677),S=o(55449);c({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(L){for(var D=d(L),B=b.f,j=x(D),q={},W=0,M,X;j.length>W;)X=B(D,M=j[W++]),X!==void 0&&S(q,M,X);return q}})},17405:(h,I,o)=>{var c=o(76887),v=o(95981),x=o(89678),d=o(249),b=o(64160),S=v(function(){d(1)});c({target:"Object",stat:!0,forced:S,sham:!b},{getPrototypeOf:function(L){return d(x(L))}})},21724:(h,I,o)=>{var c=o(76887),v=o(89678),x=o(14771),d=o(95981),b=d(function(){x(1)});c({target:"Object",stat:!0,forced:b},{keys:function(g){return x(v(g))}})},90108:(h,I,o)=>{var c=o(76887),v=o(88929);c({target:"Object",stat:!0},{setPrototypeOf:v})},55967:()=>{},4560:(h,I,o)=>{"use strict";var c=o(76887),v=o(33916),x=o(69520),d=o(40002),b=o(93091);c({target:"Promise",stat:!0},{allSettled:function(g){var L=this,D=x.f(L),B=D.resolve,j=D.reject,q=d(function(){var W=v(L.resolve),M=[],X=0,R=1;b(g,function(C){var V=X++,J=!1;M.push(void 0),R++,W.call(L,C).then(function(_){J||(J=!0,M[V]={status:"fulfilled",value:_},--R||B(M))},function(_){J||(J=!0,M[V]={status:"rejected",reason:_},--R||B(M))})}),--R||B(M)});return q.error&&j(q.value),D.promise}})},91302:(h,I,o)=>{"use strict";var c=o(76887),v=o(33916),x=o(626),d=o(69520),b=o(40002),S=o(93091),g="No one promise resolved";c({target:"Promise",stat:!0},{any:function(D){var B=this,j=d.f(B),q=j.resolve,W=j.reject,M=b(function(){var X=v(B.resolve),R=[],C=0,V=1,J=!1;S(D,function(_){var Q=C++,Y=!1;R.push(void 0),V++,X.call(B,_).then(function(ce){Y||J||(J=!0,q(ce))},function(ce){Y||J||(Y=!0,R[Q]=ce,--V||W(new(x("AggregateError"))(R,g)))})}),--V||W(new(x("AggregateError"))(R,g))});return M.error&&W(M.value),j.promise}})},44349:(h,I,o)=>{"use strict";var c=o(76887),v=o(82529),x=o(19297),d=o(95981),b=o(626),S=o(70487),g=o(56584),L=o(99754),D=!!x&&d(function(){x.prototype.finally.call({then:function(){}},function(){})});if(c({target:"Promise",proto:!0,real:!0,forced:D},{finally:function(j){var q=S(this,b("Promise")),W=typeof j=="function";return this.then(W?function(M){return g(q,j()).then(function(){return M})}:j,W?function(M){return g(q,j()).then(function(){throw M})}:j)}}),!v&&typeof x=="function"){var B=b("Promise").prototype.finally;x.prototype.finally!==B&&L(x.prototype,"finally",B,{unsafe:!0})}},98881:(h,I,o)=>{"use strict";var c=o(76887),v=o(82529),x=o(21899),d=o(626),b=o(19297),S=o(99754),g=o(87524),L=o(88929),D=o(90904),B=o(94431),j=o(10941),q=o(33916),W=o(5743),M=o(81302),X=o(93091),R=o(21385),C=o(70487),V=o(42941).set,J=o(66132),_=o(56584),Q=o(34845),Y=o(69520),ce=o(40002),ee=o(45402),ie=o(37252),xe=o(99813),we=o(23321),he=o(6049),fe=o(53385),ae=xe("species"),Fe="Promise",Le=ee.get,Me=ee.set,Te=ee.getterFor(Fe),rt=b&&b.prototype,Ze=b,Xe=rt,ft=x.TypeError,ht=x.document,bt=x.process,nt=Y.f,ut=nt,yt=!!(ht&&ht.createEvent&&x.dispatchEvent),mt=typeof PromiseRejectionEvent=="function",pt="unhandledrejection",Mt="rejectionhandled",kt=0,Ct=1,Wt=2,jt=1,Vt=2,St=!1,Dt,ve,z,$,Se=ie(Fe,function(){var te=M(Ze)!==String(Ze);if(!te&&fe===66||v&&!Xe.finally)return!0;if(fe>=51&&/native code/.test(Ze))return!1;var de=new Ze(function(Ae){Ae(1)}),oe=function(Ae){Ae(function(){},function(){})},pe=de.constructor={};return pe[ae]=oe,St=de.then(function(){})instanceof oe,St?!te&&we&&!mt:!0}),Ie=Se||!R(function(te){Ze.all(te).catch(function(){})}),$e=function(te){var de;return j(te)&&typeof(de=te.then)=="function"?de:!1},Ke=function(te,de){if(!te.notified){te.notified=!0;var oe=te.reactions;J(function(){for(var pe=te.value,Ae=te.state==Ct,Be=0;oe.length>Be;){var Ue=oe[Be++],Qe=Ae?Ue.ok:Ue.fail,vt=Ue.resolve,Et=Ue.reject,Bt=Ue.domain,Pt,pn,Nr;try{Qe?(Ae||(te.rejection===Vt&&T(te),te.rejection=jt),Qe===!0?Pt=pe:(Bt&&Bt.enter(),Pt=Qe(pe),Bt&&(Bt.exit(),Nr=!0)),Pt===Ue.promise?Et(ft("Promise-chain cycle")):(pn=$e(Pt))?pn.call(Pt,vt,Et):vt(Pt)):Et(pe)}catch(Or){Bt&&!Nr&&Bt.exit(),Et(Or)}}te.reactions=[],te.notified=!1,de&&!te.rejection&&Re(te)})}},P=function(te,de,oe){var pe,Ae;yt?(pe=ht.createEvent("Event"),pe.promise=de,pe.reason=oe,pe.initEvent(te,!1,!0),x.dispatchEvent(pe)):pe={promise:de,reason:oe},!mt&&(Ae=x["on"+te])?Ae(pe):te===pt&&Q("Unhandled promise rejection",oe)},Re=function(te){V.call(x,function(){var de=te.facade,oe=te.value,pe=K(te),Ae;if(pe&&(Ae=ce(function(){he?bt.emit("unhandledRejection",oe,de):P(pt,de,oe)}),te.rejection=he||K(te)?Vt:jt,Ae.error))throw Ae.value})},K=function(te){return te.rejection!==jt&&!te.parent},T=function(te){V.call(x,function(){var de=te.facade;he?bt.emit("rejectionHandled",de):P(Mt,de,te.value)})},O=function(te,de,oe){return function(pe){te(de,pe,oe)}},le=function(te,de,oe){te.done||(te.done=!0,oe&&(te=oe),te.value=de,te.state=Wt,Ke(te,!0))},N=function(te,de,oe){if(!te.done){te.done=!0,oe&&(te=oe);try{if(te.facade===de)throw ft("Promise can't be resolved itself");var pe=$e(de);pe?J(function(){var Ae={done:!1};try{pe.call(de,O(N,Ae,te),O(le,Ae,te))}catch(Be){le(Ae,Be,te)}}):(te.value=de,te.state=Ct,Ke(te,!1))}catch(Ae){le({done:!1},Ae,te)}}};if(Se&&(Ze=function(de){W(this,Ze,Fe),q(de),Dt.call(this);var oe=Le(this);try{de(O(N,oe),O(le,oe))}catch(pe){le(oe,pe)}},Xe=Ze.prototype,Dt=function(de){Me(this,{type:Fe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:kt,value:void 0})},Dt.prototype=g(Xe,{then:function(de,oe){var pe=Te(this),Ae=nt(C(this,Ze));return Ae.ok=typeof de=="function"?de:!0,Ae.fail=typeof oe=="function"&&oe,Ae.domain=he?bt.domain:void 0,pe.parent=!0,pe.reactions.push(Ae),pe.state!=kt&&Ke(pe,!1),Ae.promise},catch:function(te){return this.then(void 0,te)}}),ve=function(){var te=new Dt,de=Le(te);this.promise=te,this.resolve=O(N,de),this.reject=O(le,de)},Y.f=nt=function(te){return te===Ze||te===z?new ve(te):ut(te)},!v&&typeof b=="function"&&rt!==Object.prototype)){$=rt.then,St||(S(rt,"then",function(de,oe){var pe=this;return new Ze(function(Ae,Be){$.call(pe,Ae,Be)}).then(de,oe)},{unsafe:!0}),S(rt,"catch",Xe.catch,{unsafe:!0}));try{delete rt.constructor}catch(te){}L&&L(rt,Xe)}c({global:!0,wrap:!0,forced:Se},{Promise:Ze}),D(Ze,Fe,!1,!0),B(Fe),z=d(Fe),c({target:Fe,stat:!0,forced:Se},{reject:function(de){var oe=nt(this);return oe.reject.call(void 0,de),oe.promise}}),c({target:Fe,stat:!0,forced:v||Se},{resolve:function(de){return _(v&&this===z?Ze:this,de)}}),c({target:Fe,stat:!0,forced:Ie},{all:function(de){var oe=this,pe=nt(oe),Ae=pe.resolve,Be=pe.reject,Ue=ce(function(){var Qe=q(oe.resolve),vt=[],Et=0,Bt=1;X(de,function(Pt){var pn=Et++,Nr=!1;vt.push(void 0),Bt++,Qe.call(oe,Pt).then(function(Or){Nr||(Nr=!0,vt[pn]=Or,--Bt||Ae(vt))},Be)}),--Bt||Ae(vt)});return Ue.error&&Be(Ue.value),pe.promise},race:function(de){var oe=this,pe=nt(oe),Ae=pe.reject,Be=ce(function(){var Ue=q(oe.resolve);X(de,function(Qe){Ue.call(oe,Qe).then(pe.resolve,Ae)})});return Be.error&&Ae(Be.value),pe.promise}})},7453:(h,I,o)=>{var c=o(76887),v=o(626),x=o(33916),d=o(96059),b=o(10941),S=o(29290),g=o(98308),L=o(95981),D=v("Reflect","construct"),B=L(function(){function W(){}return!(D(function(){},[],W)instanceof W)}),j=!L(function(){D(function(){})}),q=B||j;c({target:"Reflect",stat:!0,forced:q,sham:q},{construct:function(M,X){x(M),d(X);var R=arguments.length<3?M:x(arguments[2]);if(j&&!B)return D(M,X,R);if(M==R){switch(X.length){case 0:return new M;case 1:return new M(X[0]);case 2:return new M(X[0],X[1]);case 3:return new M(X[0],X[1],X[2]);case 4:return new M(X[0],X[1],X[2],X[3])}var C=[null];return C.push.apply(C,X),new(g.apply(M,C))}var V=R.prototype,J=S(b(V)?V:Object.prototype),_=Function.apply.call(M,J,X);return b(_)?_:J}})},42355:(h,I,o)=>{var c=o(76887),v=o(10941),x=o(96059),d=o(47457),b=o(49677),S=o(249);function g(L,D){var B=arguments.length<3?L:arguments[2],j,q;if(x(L)===B)return L[D];if(j=b.f(L,D))return d(j,"value")?j.value:j.get===void 0?void 0:j.get.call(B);if(v(q=S(L)))return g(q,D,B)}c({target:"Reflect",stat:!0},{get:g})},1502:()=>{},11035:(h,I,o)=>{"use strict";var c=o(76887),v=o(70344),x=o(48219),d=o(67772);c({target:"String",proto:!0,forced:!d("includes")},{includes:function(S){return!!~String(x(this)).indexOf(v(S),arguments.length>1?arguments[1]:void 0)}})},77971:(h,I,o)=>{"use strict";var c=o(64620).charAt,v=o(45402),x=o(47771),d="String Iterator",b=v.set,S=v.getterFor(d);x(String,"String",function(g){b(this,{type:d,string:String(g),index:0})},function(){var L=S(this),D=L.string,B=L.index,j;return B>=D.length?{value:void 0,done:!0}:(j=c(D,B),L.index+=j.length,{value:j,done:!1})})},8555:(h,I,o)=>{var c=o(66349);c("asyncIterator")},52615:()=>{},21732:(h,I,o)=>{var c=o(66349);c("hasInstance")},35903:(h,I,o)=>{var c=o(66349);c("isConcatSpreadable")},1825:(h,I,o)=>{var c=o(66349);c("iterator")},35824:(h,I,o)=>{"use strict";var c=o(76887),v=o(21899),x=o(626),d=o(82529),b=o(55746),S=o(72497),g=o(32302),L=o(95981),D=o(47457),B=o(1052),j=o(10941),q=o(96059),W=o(89678),M=o(74529),X=o(46935),R=o(31887),C=o(29290),V=o(14771),J=o(10946),_=o(684),Q=o(87857),Y=o(49677),ce=o(65988),ee=o(36760),ie=o(32029),xe=o(99754),we=o(68726),he=o(44262),fe=o(27748),ae=o(99418),Fe=o(99813),Le=o(11477),Me=o(66349),Te=o(90904),rt=o(45402),Ze=o(3610).forEach,Xe=he("hidden"),ft="Symbol",ht="prototype",bt=Fe("toPrimitive"),nt=rt.set,ut=rt.getterFor(ft),yt=Object[ht],mt=v.Symbol,pt=x("JSON","stringify"),Mt=Y.f,kt=ce.f,Ct=_.f,Wt=ee.f,jt=we("symbols"),Vt=we("op-symbols"),St=we("string-to-symbol-registry"),Dt=we("symbol-to-string-registry"),ve=we("wks"),z=v.QObject,$=!z||!z[ht]||!z[ht].findChild,Se=b&&L(function(){return C(kt({},"a",{get:function(){return kt(this,"a",{value:7}).a}})).a!=7})?function(te,de,oe){var pe=Mt(yt,de);pe&&delete yt[de],kt(te,de,oe),pe&&te!==yt&&kt(yt,de,pe)}:kt,Ie=function(te,de){var oe=jt[te]=C(mt[ht]);return nt(oe,{type:ft,tag:te,description:de}),b||(oe.description=de),oe},$e=g?function(te){return typeof te=="symbol"}:function(te){return Object(te)instanceof mt},Ke=function(de,oe,pe){de===yt&&Ke(Vt,oe,pe),q(de);var Ae=X(oe,!0);return q(pe),D(jt,Ae)?(pe.enumerable?(D(de,Xe)&&de[Xe][Ae]&&(de[Xe][Ae]=!1),pe=C(pe,{enumerable:R(0,!1)})):(D(de,Xe)||kt(de,Xe,R(1,{})),de[Xe][Ae]=!0),Se(de,Ae,pe)):kt(de,Ae,pe)},P=function(de,oe){q(de);var pe=M(oe),Ae=V(pe).concat(le(pe));return Ze(Ae,function(Be){(!b||K.call(pe,Be))&&Ke(de,Be,pe[Be])}),de},Re=function(de,oe){return oe===void 0?C(de):P(C(de),oe)},K=function(de){var oe=X(de,!0),pe=Wt.call(this,oe);return this===yt&&D(jt,oe)&&!D(Vt,oe)?!1:pe||!D(this,oe)||!D(jt,oe)||D(this,Xe)&&this[Xe][oe]?pe:!0},T=function(de,oe){var pe=M(de),Ae=X(oe,!0);if(!(pe===yt&&D(jt,Ae)&&!D(Vt,Ae))){var Be=Mt(pe,Ae);return Be&&D(jt,Ae)&&!(D(pe,Xe)&&pe[Xe][Ae])&&(Be.enumerable=!0),Be}},O=function(de){var oe=Ct(M(de)),pe=[];return Ze(oe,function(Ae){!D(jt,Ae)&&!D(fe,Ae)&&pe.push(Ae)}),pe},le=function(de){var oe=de===yt,pe=Ct(oe?Vt:M(de)),Ae=[];return Ze(pe,function(Be){D(jt,Be)&&(!oe||D(yt,Be))&&Ae.push(jt[Be])}),Ae};if(S||(mt=function(){if(this instanceof mt)throw TypeError("Symbol is not a constructor");var de=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),oe=ae(de),pe=function(Ae){this===yt&&pe.call(Vt,Ae),D(this,Xe)&&D(this[Xe],oe)&&(this[Xe][oe]=!1),Se(this,oe,R(1,Ae))};return b&&$&&Se(yt,oe,{configurable:!0,set:pe}),Ie(oe,de)},xe(mt[ht],"toString",function(){return ut(this).tag}),xe(mt,"withoutSetter",function(te){return Ie(ae(te),te)}),ee.f=K,ce.f=Ke,Y.f=T,J.f=_.f=O,Q.f=le,Le.f=function(te){return Ie(Fe(te),te)},b&&(kt(mt[ht],"description",{configurable:!0,get:function(){return ut(this).description}}),d||xe(yt,"propertyIsEnumerable",K,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!S,sham:!S},{Symbol:mt}),Ze(V(ve),function(te){Me(te)}),c({target:ft,stat:!0,forced:!S},{for:function(te){var de=String(te);if(D(St,de))return St[de];var oe=mt(de);return St[de]=oe,Dt[oe]=de,oe},keyFor:function(de){if(!$e(de))throw TypeError(de+" is not a symbol");if(D(Dt,de))return Dt[de]},useSetter:function(){$=!0},useSimple:function(){$=!1}}),c({target:"Object",stat:!0,forced:!S,sham:!b},{create:Re,defineProperty:Ke,defineProperties:P,getOwnPropertyDescriptor:T}),c({target:"Object",stat:!0,forced:!S},{getOwnPropertyNames:O,getOwnPropertySymbols:le}),c({target:"Object",stat:!0,forced:L(function(){Q.f(1)})},{getOwnPropertySymbols:function(de){return Q.f(W(de))}}),pt){var N=!S||L(function(){var te=mt();return pt([te])!="[null]"||pt({a:te})!="{}"||pt(Object(te))!="{}"});c({target:"JSON",stat:!0,forced:N},{stringify:function(de,oe,pe){for(var Ae=[de],Be=1,Ue;arguments.length>Be;)Ae.push(arguments[Be++]);if(Ue=oe,!(!j(oe)&&de===void 0||$e(de)))return B(oe)||(oe=function(Qe,vt){if(typeof Ue=="function"&&(vt=Ue.call(this,Qe,vt)),!$e(vt))return vt}),Ae[1]=oe,pt.apply(null,Ae)}})}mt[ht][bt]||ie(mt[ht],bt,mt[ht].valueOf),Te(mt,ft),fe[Xe]=!0},45915:(h,I,o)=>{var c=o(66349);c("matchAll")},28394:(h,I,o)=>{var c=o(66349);c("match")},61766:(h,I,o)=>{var c=o(66349);c("replace")},62737:(h,I,o)=>{var c=o(66349);c("search")},89911:(h,I,o)=>{var c=o(66349);c("species")},74315:(h,I,o)=>{var c=o(66349);c("split")},63131:(h,I,o)=>{var c=o(66349);c("toPrimitive")},64714:(h,I,o)=>{var c=o(66349);c("toStringTag")},70659:(h,I,o)=>{var c=o(66349);c("unscopables")},54334:(h,I,o)=>{"use strict";var c=o(21899),v=o(87524),x=o(21647),d=o(24683),b=o(8850),S=o(10941),g=o(45402).enforce,L=o(38019),D=!c.ActiveXObject&&"ActiveXObject"in c,B=Object.isExtensible,j,q=function(J){return function(){return J(this,arguments.length?arguments[0]:void 0)}},W=h.exports=d("WeakMap",q,b);if(L&&D){j=b.getConstructor(q,"WeakMap",!0),x.REQUIRED=!0;var M=W.prototype,X=M.delete,R=M.has,C=M.get,V=M.set;v(M,{delete:function(J){if(S(J)&&!B(J)){var _=g(this);return _.frozen||(_.frozen=new j),X.call(this,J)||_.frozen.delete(J)}return X.call(this,J)},has:function(_){if(S(_)&&!B(_)){var Q=g(this);return Q.frozen||(Q.frozen=new j),R.call(this,_)||Q.frozen.has(_)}return R.call(this,_)},get:function(_){if(S(_)&&!B(_)){var Q=g(this);return Q.frozen||(Q.frozen=new j),R.call(this,_)?C.call(this,_):Q.frozen.get(_)}return C.call(this,_)},set:function(_,Q){if(S(_)&&!B(_)){var Y=g(this);Y.frozen||(Y.frozen=new j),R.call(this,_)?V.call(this,_,Q):Y.frozen.set(_,Q)}else V.call(this,_,Q);return this}})}},89731:(h,I,o)=>{o(47627)},55708:(h,I,o)=>{o(4560)},88731:(h,I,o)=>{o(91302)},30014:(h,I,o)=>{"use strict";var c=o(76887),v=o(69520),x=o(40002);c({target:"Promise",stat:!0},{try:function(d){var b=v.f(this),S=x(d);return(S.error?b.reject:b.resolve)(S.value),b.promise}})},28783:(h,I,o)=>{var c=o(66349);c("asyncDispose")},43975:(h,I,o)=>{var c=o(66349);c("dispose")},65799:(h,I,o)=>{var c=o(66349);c("matcher")},45414:(h,I,o)=>{var c=o(66349);c("metadata")},46774:(h,I,o)=>{var c=o(66349);c("observable")},80620:(h,I,o)=>{var c=o(66349);c("patternMatch")},36172:(h,I,o)=>{var c=o(66349);c("replaceAll")},7634:(h,I,o)=>{o(66274);var c=o(63281),v=o(21899),x=o(9697),d=o(32029),b=o(12077),S=o(99813),g=S("toStringTag");for(var L in c){var D=v[L],B=D&&D.prototype;B&&x(B)!==g&&d(B,g,L),b[L]=b.Array}},27698:(h,I,o)=>{var c=o(54493);h.exports=c},62908:(h,I,o)=>{var c=o(12710);h.exports=c},49216:(h,I,o)=>{var c=o(99324);h.exports=c},8065:(h,I,o)=>{var c=o(56043);h.exports=c},57448:(h,I,o)=>{o(7634);var c=o(62908),v=o(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var S=b.entries;return b===x||b instanceof Array&&S===x.entries||d.hasOwnProperty(v(b))?c:S}},11955:(h,I,o)=>{var c=o(2480);h.exports=c},61577:(h,I,o)=>{var c=o(32236);h.exports=c},46279:(h,I,o)=>{o(7634);var c=o(49216),v=o(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var S=b.forEach;return b===x||b instanceof Array&&S===x.forEach||d.hasOwnProperty(v(b))?c:S}},33778:(h,I,o)=>{var c=o(58557);h.exports=c},61798:(h,I,o)=>{var c=o(88287);h.exports=c},82073:(h,I,o)=>{var c=o(69601);h.exports=c},2348:(h,I,o)=>{var c=o(18339);h.exports=c},8933:(h,I,o)=>{var c=o(84426);h.exports=c},63383:(h,I,o)=>{var c=o(45999);h.exports=c},86209:(h,I,o)=>{var c=o(73081);h.exports=c},23059:(h,I,o)=>{var c=o(48494);h.exports=c},27460:(h,I,o)=>{var c=o(52956);h.exports=c},72010:(h,I,o)=>{var c=o(32304);h.exports=c},31905:function(){(function(h){var I=function(o){var c={searchParams:"URLSearchParams"in h,iterable:"Symbol"in h&&"iterator"in Symbol,blob:"FileReader"in h&&"Blob"in h&&function(){try{return new Blob,!0}catch(ee){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function v(ee){return ee&&DataView.prototype.isPrototypeOf(ee)}if(c.arrayBuffer)var x=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(ee){return ee&&x.indexOf(Object.prototype.toString.call(ee))>-1};function b(ee){if(typeof ee!="string"&&(ee=String(ee)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(ee))throw new TypeError("Invalid character in header field name");return ee.toLowerCase()}function S(ee){return typeof ee!="string"&&(ee=String(ee)),ee}function g(ee){var ie={next:function(){var xe=ee.shift();return{done:xe===void 0,value:xe}}};return c.iterable&&(ie[Symbol.iterator]=function(){return ie}),ie}function L(ee){this.map={},ee instanceof L?ee.forEach(function(ie,xe){this.append(xe,ie)},this):Array.isArray(ee)?ee.forEach(function(ie){this.append(ie[0],ie[1])},this):ee&&Object.getOwnPropertyNames(ee).forEach(function(ie){this.append(ie,ee[ie])},this)}L.prototype.append=function(ee,ie){ee=b(ee),ie=S(ie);var xe=this.map[ee];this.map[ee]=xe?xe+", "+ie:ie},L.prototype.delete=function(ee){delete this.map[b(ee)]},L.prototype.get=function(ee){return ee=b(ee),this.has(ee)?this.map[ee]:null},L.prototype.has=function(ee){return this.map.hasOwnProperty(b(ee))},L.prototype.set=function(ee,ie){this.map[b(ee)]=S(ie)},L.prototype.forEach=function(ee,ie){for(var xe in this.map)this.map.hasOwnProperty(xe)&&ee.call(ie,this.map[xe],xe,this)},L.prototype.keys=function(){var ee=[];return this.forEach(function(ie,xe){ee.push(xe)}),g(ee)},L.prototype.values=function(){var ee=[];return this.forEach(function(ie){ee.push(ie)}),g(ee)},L.prototype.entries=function(){var ee=[];return this.forEach(function(ie,xe){ee.push([xe,ie])}),g(ee)},c.iterable&&(L.prototype[Symbol.iterator]=L.prototype.entries);function D(ee){if(ee.bodyUsed)return Promise.reject(new TypeError("Already read"));ee.bodyUsed=!0}function B(ee){return new Promise(function(ie,xe){ee.onload=function(){ie(ee.result)},ee.onerror=function(){xe(ee.error)}})}function j(ee){var ie=new FileReader,xe=B(ie);return ie.readAsArrayBuffer(ee),xe}function q(ee){var ie=new FileReader,xe=B(ie);return ie.readAsText(ee),xe}function W(ee){for(var ie=new Uint8Array(ee),xe=new Array(ie.length),we=0;we<ie.length;we++)xe[we]=String.fromCharCode(ie[we]);return xe.join("")}function M(ee){if(ee.slice)return ee.slice(0);var ie=new Uint8Array(ee.byteLength);return ie.set(new Uint8Array(ee)),ie.buffer}function X(){return this.bodyUsed=!1,this._initBody=function(ee){this._bodyInit=ee,ee?typeof ee=="string"?this._bodyText=ee:c.blob&&Blob.prototype.isPrototypeOf(ee)?this._bodyBlob=ee:c.formData&&FormData.prototype.isPrototypeOf(ee)?this._bodyFormData=ee:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(ee)?this._bodyText=ee.toString():c.arrayBuffer&&c.blob&&v(ee)?(this._bodyArrayBuffer=M(ee.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ee)||d(ee))?this._bodyArrayBuffer=M(ee):this._bodyText=ee=Object.prototype.toString.call(ee):this._bodyText="",this.headers.get("content-type")||(typeof ee=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(ee)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var ee=D(this);if(ee)return ee;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?D(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(j)}),this.text=function(){var ee=D(this);if(ee)return ee;if(this._bodyBlob)return q(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(W(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var R=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(ee){var ie=ee.toUpperCase();return R.indexOf(ie)>-1?ie:ee}function V(ee,ie){ie=ie||{};var xe=ie.body;if(ee instanceof V){if(ee.bodyUsed)throw new TypeError("Already read");this.url=ee.url,this.credentials=ee.credentials,ie.headers||(this.headers=new L(ee.headers)),this.method=ee.method,this.mode=ee.mode,this.signal=ee.signal,!xe&&ee._bodyInit!=null&&(xe=ee._bodyInit,ee.bodyUsed=!0)}else this.url=String(ee);if(this.credentials=ie.credentials||this.credentials||"same-origin",(ie.headers||!this.headers)&&(this.headers=new L(ie.headers)),this.method=C(ie.method||this.method||"GET"),this.mode=ie.mode||this.mode||null,this.signal=ie.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&xe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(xe)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function J(ee){var ie=new FormData;return ee.trim().split("&").forEach(function(xe){if(xe){var we=xe.split("="),he=we.shift().replace(/\+/g," "),fe=we.join("=").replace(/\+/g," ");ie.append(decodeURIComponent(he),decodeURIComponent(fe))}}),ie}function _(ee){var ie=new L,xe=ee.replace(/\r?\n[\t ]+/g," ");return xe.split(/\r?\n/).forEach(function(we){var he=we.split(":"),fe=he.shift().trim();if(fe){var ae=he.join(":").trim();ie.append(fe,ae)}}),ie}X.call(V.prototype);function Q(ee,ie){ie||(ie={}),this.type="default",this.status=ie.status===void 0?200:ie.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ie?ie.statusText:"OK",this.headers=new L(ie.headers),this.url=ie.url||"",this._initBody(ee)}X.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new L(this.headers),url:this.url})},Q.error=function(){var ee=new Q(null,{status:0,statusText:""});return ee.type="error",ee};var Y=[301,302,303,307,308];Q.redirect=function(ee,ie){if(Y.indexOf(ie)===-1)throw new RangeError("Invalid status code");return new Q(null,{status:ie,headers:{location:ee}})},o.DOMException=h.DOMException;try{new o.DOMException}catch(ee){o.DOMException=function(ie,xe){this.message=ie,this.name=xe;var we=Error(ie);this.stack=we.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function ce(ee,ie){return new Promise(function(xe,we){var he=new V(ee,ie);if(he.signal&&he.signal.aborted)return we(new o.DOMException("Aborted","AbortError"));var fe=new XMLHttpRequest;function ae(){fe.abort()}fe.onload=function(){var Fe={status:fe.status,statusText:fe.statusText,headers:_(fe.getAllResponseHeaders()||"")};Fe.url="responseURL"in fe?fe.responseURL:Fe.headers.get("X-Request-URL");var Le="response"in fe?fe.response:fe.responseText;xe(new Q(Le,Fe))},fe.onerror=function(){we(new TypeError("Network request failed"))},fe.ontimeout=function(){we(new TypeError("Network request failed"))},fe.onabort=function(){we(new o.DOMException("Aborted","AbortError"))},fe.open(he.method,he.url,!0),he.credentials==="include"?fe.withCredentials=!0:he.credentials==="omit"&&(fe.withCredentials=!1),"responseType"in fe&&c.blob&&(fe.responseType="blob"),he.headers.forEach(function(Fe,Le){fe.setRequestHeader(Le,Fe)}),he.signal&&(he.signal.addEventListener("abort",ae),fe.onreadystatechange=function(){fe.readyState===4&&he.signal.removeEventListener("abort",ae)}),fe.send(typeof he._bodyInit=="undefined"?null:he._bodyInit)})}return ce.polyfill=!0,h.fetch||(h.fetch=ce,h.Headers=L,h.Request=V,h.Response=Q),o.Headers=L,o.Request=V,o.Response=Q,o.fetch=ce,Object.defineProperty(o,"__esModule",{value:!0}),o}({})})(typeof self!="undefined"?self:this)},54098:function(h,I){var o=typeof self!="undefined"?self:this,c=function(){function x(){this.fetch=!1,this.DOMException=o.DOMException}return x.prototype=o,new x}();(function(x){var d=function(b){var S={searchParams:"URLSearchParams"in x,iterable:"Symbol"in x&&"iterator"in Symbol,blob:"FileReader"in x&&"Blob"in x&&function(){try{return new Blob,!0}catch(fe){return!1}}(),formData:"FormData"in x,arrayBuffer:"ArrayBuffer"in x};function g(fe){return fe&&DataView.prototype.isPrototypeOf(fe)}if(S.arrayBuffer)var L=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],D=ArrayBuffer.isView||function(fe){return fe&&L.indexOf(Object.prototype.toString.call(fe))>-1};function B(fe){if(typeof fe!="string"&&(fe=String(fe)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(fe))throw new TypeError("Invalid character in header field name");return fe.toLowerCase()}function j(fe){return typeof fe!="string"&&(fe=String(fe)),fe}function q(fe){var ae={next:function(){var Fe=fe.shift();return{done:Fe===void 0,value:Fe}}};return S.iterable&&(ae[Symbol.iterator]=function(){return ae}),ae}function W(fe){this.map={},fe instanceof W?fe.forEach(function(ae,Fe){this.append(Fe,ae)},this):Array.isArray(fe)?fe.forEach(function(ae){this.append(ae[0],ae[1])},this):fe&&Object.getOwnPropertyNames(fe).forEach(function(ae){this.append(ae,fe[ae])},this)}W.prototype.append=function(fe,ae){fe=B(fe),ae=j(ae);var Fe=this.map[fe];this.map[fe]=Fe?Fe+", "+ae:ae},W.prototype.delete=function(fe){delete this.map[B(fe)]},W.prototype.get=function(fe){return fe=B(fe),this.has(fe)?this.map[fe]:null},W.prototype.has=function(fe){return this.map.hasOwnProperty(B(fe))},W.prototype.set=function(fe,ae){this.map[B(fe)]=j(ae)},W.prototype.forEach=function(fe,ae){for(var Fe in this.map)this.map.hasOwnProperty(Fe)&&fe.call(ae,this.map[Fe],Fe,this)},W.prototype.keys=function(){var fe=[];return this.forEach(function(ae,Fe){fe.push(Fe)}),q(fe)},W.prototype.values=function(){var fe=[];return this.forEach(function(ae){fe.push(ae)}),q(fe)},W.prototype.entries=function(){var fe=[];return this.forEach(function(ae,Fe){fe.push([Fe,ae])}),q(fe)},S.iterable&&(W.prototype[Symbol.iterator]=W.prototype.entries);function M(fe){if(fe.bodyUsed)return Promise.reject(new TypeError("Already read"));fe.bodyUsed=!0}function X(fe){return new Promise(function(ae,Fe){fe.onload=function(){ae(fe.result)},fe.onerror=function(){Fe(fe.error)}})}function R(fe){var ae=new FileReader,Fe=X(ae);return ae.readAsArrayBuffer(fe),Fe}function C(fe){var ae=new FileReader,Fe=X(ae);return ae.readAsText(fe),Fe}function V(fe){for(var ae=new Uint8Array(fe),Fe=new Array(ae.length),Le=0;Le<ae.length;Le++)Fe[Le]=String.fromCharCode(ae[Le]);return Fe.join("")}function J(fe){if(fe.slice)return fe.slice(0);var ae=new Uint8Array(fe.byteLength);return ae.set(new Uint8Array(fe)),ae.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(fe){this._bodyInit=fe,fe?typeof fe=="string"?this._bodyText=fe:S.blob&&Blob.prototype.isPrototypeOf(fe)?this._bodyBlob=fe:S.formData&&FormData.prototype.isPrototypeOf(fe)?this._bodyFormData=fe:S.searchParams&&URLSearchParams.prototype.isPrototypeOf(fe)?this._bodyText=fe.toString():S.arrayBuffer&&S.blob&&g(fe)?(this._bodyArrayBuffer=J(fe.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):S.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(fe)||D(fe))?this._bodyArrayBuffer=J(fe):this._bodyText=fe=Object.prototype.toString.call(fe):this._bodyText="",this.headers.get("content-type")||(typeof fe=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):S.searchParams&&URLSearchParams.prototype.isPrototypeOf(fe)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},S.blob&&(this.blob=function(){var fe=M(this);if(fe)return fe;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?M(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(R)}),this.text=function(){var fe=M(this);if(fe)return fe;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(V(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},S.formData&&(this.formData=function(){return this.text().then(ee)}),this.json=function(){return this.text().then(JSON.parse)},this}var Q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Y(fe){var ae=fe.toUpperCase();return Q.indexOf(ae)>-1?ae:fe}function ce(fe,ae){ae=ae||{};var Fe=ae.body;if(fe instanceof ce){if(fe.bodyUsed)throw new TypeError("Already read");this.url=fe.url,this.credentials=fe.credentials,ae.headers||(this.headers=new W(fe.headers)),this.method=fe.method,this.mode=fe.mode,this.signal=fe.signal,!Fe&&fe._bodyInit!=null&&(Fe=fe._bodyInit,fe.bodyUsed=!0)}else this.url=String(fe);if(this.credentials=ae.credentials||this.credentials||"same-origin",(ae.headers||!this.headers)&&(this.headers=new W(ae.headers)),this.method=Y(ae.method||this.method||"GET"),this.mode=ae.mode||this.mode||null,this.signal=ae.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Fe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Fe)}ce.prototype.clone=function(){return new ce(this,{body:this._bodyInit})};function ee(fe){var ae=new FormData;return fe.trim().split("&").forEach(function(Fe){if(Fe){var Le=Fe.split("="),Me=Le.shift().replace(/\+/g," "),Te=Le.join("=").replace(/\+/g," ");ae.append(decodeURIComponent(Me),decodeURIComponent(Te))}}),ae}function ie(fe){var ae=new W,Fe=fe.replace(/\r?\n[\t ]+/g," ");return Fe.split(/\r?\n/).forEach(function(Le){var Me=Le.split(":"),Te=Me.shift().trim();if(Te){var rt=Me.join(":").trim();ae.append(Te,rt)}}),ae}_.call(ce.prototype);function xe(fe,ae){ae||(ae={}),this.type="default",this.status=ae.status===void 0?200:ae.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ae?ae.statusText:"OK",this.headers=new W(ae.headers),this.url=ae.url||"",this._initBody(fe)}_.call(xe.prototype),xe.prototype.clone=function(){return new xe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new W(this.headers),url:this.url})},xe.error=function(){var fe=new xe(null,{status:0,statusText:""});return fe.type="error",fe};var we=[301,302,303,307,308];xe.redirect=function(fe,ae){if(we.indexOf(ae)===-1)throw new RangeError("Invalid status code");return new xe(null,{status:ae,headers:{location:fe}})},b.DOMException=x.DOMException;try{new b.DOMException}catch(fe){b.DOMException=function(ae,Fe){this.message=ae,this.name=Fe;var Le=Error(ae);this.stack=Le.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function he(fe,ae){return new Promise(function(Fe,Le){var Me=new ce(fe,ae);if(Me.signal&&Me.signal.aborted)return Le(new b.DOMException("Aborted","AbortError"));var Te=new XMLHttpRequest;function rt(){Te.abort()}Te.onload=function(){var Ze={status:Te.status,statusText:Te.statusText,headers:ie(Te.getAllResponseHeaders()||"")};Ze.url="responseURL"in Te?Te.responseURL:Ze.headers.get("X-Request-URL");var Xe="response"in Te?Te.response:Te.responseText;Fe(new xe(Xe,Ze))},Te.onerror=function(){Le(new TypeError("Network request failed"))},Te.ontimeout=function(){Le(new TypeError("Network request failed"))},Te.onabort=function(){Le(new b.DOMException("Aborted","AbortError"))},Te.open(Me.method,Me.url,!0),Me.credentials==="include"?Te.withCredentials=!0:Me.credentials==="omit"&&(Te.withCredentials=!1),"responseType"in Te&&S.blob&&(Te.responseType="blob"),Me.headers.forEach(function(Ze,Xe){Te.setRequestHeader(Xe,Ze)}),Me.signal&&(Me.signal.addEventListener("abort",rt),Te.onreadystatechange=function(){Te.readyState===4&&Me.signal.removeEventListener("abort",rt)}),Te.send(typeof Me._bodyInit=="undefined"?null:Me._bodyInit)})}return he.polyfill=!0,x.fetch||(x.fetch=he,x.Headers=W,x.Request=ce,x.Response=xe),b.Headers=W,b.Request=ce,b.Response=xe,b.fetch=he,Object.defineProperty(b,"__esModule",{value:!0}),b}({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var v=c;I=v.fetch,I.default=v.fetch,I.fetch=v.fetch,I.Headers=v.Headers,I.Request=v.Request,I.Response=v.Response,h.exports=I},17438:(h,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>S});var c=o(8081),v=o.n(c),x=o(23645),d=o.n(x),b=d()(v());b.push([h.id,`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
|
|
47
|
+
`,""]);const S=b},58635:(h,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>V});var c=o(8081),v=o.n(c),x=o(23645),d=o.n(x),b=o(61667),S=o.n(b),g=new URL(o(17735),o.b),L=new URL(o(56089),o.b),D=new URL(o(46050),o.b),B=new URL(o(71090),o.b),j=new URL(o(96192),o.b),q=d()(v()),W=S()(g),M=S()(L),X=S()(D),R=S()(B),C=S()(j);q.push([h.id,".CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid black;border-radius:4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark{background-position:left bottom;background-repeat:repeat-x}.CodeMirror-lint-mark-warning{background-image:url("+W+")}.CodeMirror-lint-mark-error{background-image:url("+M+")}.CodeMirror-lint-marker{background-position:center center;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;width:16px;vertical-align:middle;position:relative}.CodeMirror-lint-message{padding-left:18px;background-position:top left;background-repeat:no-repeat}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url("+X+")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("+R+")}.CodeMirror-lint-marker-multiple{background-image:url("+C+`);background-repeat:no-repeat;background-position:right bottom;width:100%;height:100%}.CodeMirror-lint-line-error{background-color:#b74c5114}.CodeMirror-lint-line-warning{background-color:#ffd3001a}
|
|
48
|
+
`,""]);const V=q},45272:(h,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>S});var c=o(8081),v=o.n(c),x=o(23645),d=o.n(x),b=d()(v());b.push([h.id,`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}
|
|
49
|
+
`,""]);const S=b},40961:(h,I,o)=>{"use strict";o.r(I),o.d(I,{default:()=>S});var c=o(8081),v=o.n(c),x=o(23645),d=o.n(x),b=d()(v());b.push([h.id,`.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;color:#546e7a;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #FFCC00}.cm-s-material.cm-fat-cursor .CodeMirror-cursor,.cm-s-material .cm-animate-fat-cursor{background-color:#5d6d5c80!important}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#decb6b}.cm-s-material .cm-error{color:#fff;background-color:#ff5370}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
|
|
50
|
+
`,""]);const S=b},61667:h=>{"use strict";h.exports=function(I,o){return o||(o={}),I&&(I=String(I.__esModule?I.default:I),/^['"].*['"]$/.test(I)&&(I=I.slice(1,-1)),o.hash&&(I+=o.hash),/["'() \t\n]|(%20)/.test(I)||o.needQuotes?'"'.concat(I.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):I)}},31312:(h,I,o)=>{"use strict";var c=o(48764).Buffer;/*!
|
|
51
51
|
* @description Recursive object extending
|
|
52
52
|
* @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
|
|
53
53
|
* @license MIT
|
|
@@ -72,24 +72,24 @@ b`.split(/\n/).length!=3?function(e){for(var n=0,u=[],l=e.length;n<=l;){var f=e.
|
|
|
72
72
|
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
73
73
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
74
74
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
75
|
-
*/function v(g){return g instanceof c||g instanceof Date||g instanceof RegExp}function x(g){if(g instanceof c){var L=c.alloc?c.alloc(g.length):new c(g.length);return g.copy(L),L}else{if(g instanceof Date)return new Date(g.getTime());if(g instanceof RegExp)return new RegExp(g);throw new Error("Unexpected situation")}}function d(g){var L=[];return g.forEach(function(D,B){typeof D=="object"&&D!==null?Array.isArray(D)?L[B]=d(D):v(D)?L[B]=x(D):L[B]=S({},D):L[B]=D}),L}function b(g,L){return L==="__proto__"?void 0:g[L]}var S=h.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var g=arguments[0],L=Array.prototype.slice.call(arguments,1),D,B,j;return L.forEach(function(q){typeof q!="object"||q===null||Array.isArray(q)||Object.keys(q).forEach(function(W){if(B=b(g,W),D=b(q,W),D!==g)if(typeof D!="object"||D===null){g[W]=D;return}else if(Array.isArray(D)){g[W]=d(D);return}else if(v(D)){g[W]=x(D);return}else if(typeof B!="object"||B===null||Array.isArray(B)){g[W]=S({},D);return}else{g[W]=S(B,D);return}})}),g}},42409:(h,I,
|
|
76
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
77
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fe(t,r){var i;if(typeof Symbol=="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(i=
|
|
78
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,
|
|
75
|
+
*/function v(g){return g instanceof c||g instanceof Date||g instanceof RegExp}function x(g){if(g instanceof c){var L=c.alloc?c.alloc(g.length):new c(g.length);return g.copy(L),L}else{if(g instanceof Date)return new Date(g.getTime());if(g instanceof RegExp)return new RegExp(g);throw new Error("Unexpected situation")}}function d(g){var L=[];return g.forEach(function(D,B){typeof D=="object"&&D!==null?Array.isArray(D)?L[B]=d(D):v(D)?L[B]=x(D):L[B]=S({},D):L[B]=D}),L}function b(g,L){return L==="__proto__"?void 0:g[L]}var S=h.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var g=arguments[0],L=Array.prototype.slice.call(arguments,1),D,B,j;return L.forEach(function(q){typeof q!="object"||q===null||Array.isArray(q)||Object.keys(q).forEach(function(W){if(B=b(g,W),D=b(q,W),D!==g)if(typeof D!="object"||D===null){g[W]=D;return}else if(Array.isArray(D)){g[W]=d(D);return}else if(v(D)){g[W]=x(D);return}else if(typeof B!="object"||B===null||Array.isArray(B)){g[W]=S({},D);return}else{g[W]=S(B,D);return}})}),g}},42409:(h,I,o)=>{"use strict";o.r(I),o.d(I,{Console:()=>pd});var c={};o.r(c),o.d(c,{JsonPatchError:()=>Ir,_areEquals:()=>$o,applyOperation:()=>cr,applyPatch:()=>Gn,applyReducer:()=>nc,deepClone:()=>rc,getValueByPointer:()=>Lr,validate:()=>mu,validator:()=>Zi});var v={};o.r(v),o.d(v,{compare:()=>wu,generate:()=>Da,observe:()=>bu,unobserve:()=>qs});var x={};o.r(x),o.d(x,{cookie:()=>vl,header:()=>Zu,path:()=>Qu,query:()=>Fc});var d=o(67294);function b(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function S(t,r){for(var i=0;i<r.length;i++){var a=r[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function g(t,r,i){return r&&S(t.prototype,r),i&&S(t,i),t}function L(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function D(){return D=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},D.apply(this,arguments)}function B(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),i.push.apply(i,a)}return i}function j(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?B(Object(i),!0).forEach(function(a){L(t,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):B(Object(i)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(i,a))})}return t}function q(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&M(t,r)}function W(t){return W=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},W(t)}function M(t,r){return M=Object.setPrototypeOf||function(a,s){return a.__proto__=s,a},M(t,r)}function X(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function R(t,r){if(t==null)return{};var i={},a=Object.keys(t),s,p;for(p=0;p<a.length;p++)s=a[p],!(r.indexOf(s)>=0)&&(i[s]=t[s]);return i}function C(t,r){if(t==null)return{};var i=R(t,r),a,s;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(t);for(s=0;s<p.length;s++)a=p[s],!(r.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,a)||(i[a]=t[a]))}return i}function V(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function J(t,r){return r&&(typeof r=="object"||typeof r=="function")?r:V(t)}function _(t){var r=X();return function(){var a=W(t),s;if(r){var p=W(this).constructor;s=Reflect.construct(a,arguments,p)}else s=a.apply(this,arguments);return J(this,s)}}function Q(t,r){return ee(t)||xe(t,r)||we(t,r)||ae()}function Y(t){return ce(t)||ie(t)||we(t)||fe()}function ce(t){if(Array.isArray(t))return he(t)}function ee(t){if(Array.isArray(t))return t}function ie(t){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function xe(t,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(t)))){var i=[],a=!0,s=!1,p=void 0;try{for(var y=t[Symbol.iterator](),E;!(a=(E=y.next()).done)&&(i.push(E.value),!(r&&i.length===r));a=!0);}catch(w){s=!0,p=w}finally{try{!a&&y.return!=null&&y.return()}finally{if(s)throw p}}return i}}function we(t,r){if(!!t){if(typeof t=="string")return he(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return he(t,r)}}function he(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,a=new Array(r);i<r;i++)a[i]=t[i];return a}function fe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
76
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
77
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fe(t,r){var i;if(typeof Symbol=="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(i=we(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var a=0,s=function(){};return{s,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(w){throw w},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
78
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,E;return{s:function(){i=t[Symbol.iterator]()},n:function(){var w=i.next();return p=w.done,w},e:function(w){y=!0,E=w},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(y)throw E}}}}function Le(t,r){return r={exports:{}},t(r,r.exports),r.exports}var Me=Le(function(t){function r(k,G){for(var ne=0,re=0;re<k.length;re++)ne=(ne<<5)-ne+k.charCodeAt(re),ne|=0;return G[Math.abs(ne)%G.length]}function i(k,G){var ne=G.namespace;if(G.useColors){var re=G.color,se="[3"+(re<8?re:"8;5;"+re),ye=" ".concat(se,";1m").concat(ne," [0m");k[0]=ye+k[0].split(`
|
|
79
79
|
`).join(`
|
|
80
|
-
`+ye)}else k[0]=ne+" "+k[0]}function o(k,G){if(k[0]=(G.useColors?"%c":"")+G.namespace,!!G.useColors){var ne="color: "+G.color,te=0,fe=0;k[0].replace(/%[a-zA-Z%]/g,function(ye){ye!=="%%"&&(te++,ye==="%c"&&(fe=te))}),k.splice(fe,0,ne)}}var s=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function p(){var k;try{k=localStorage.getItem("debug")}catch(G){}return!k&&typeof process!="undefined"&&"env"in process&&(k={}.DEBUG),{namespaces:k||"",colors:s,useColors:!0,formatArgs:o}}function m(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:i}}function E(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,G=arguments.length>1?arguments[1]:void 0;return function(){for(var ne=arguments.length,te=new Array(ne),fe=0;fe<ne;fe++)te[fe]=arguments[fe];k&&te.unshift(k);var ye=G.namespaces.split(",").map(function(Te){return Te[Te.length-1]==="*"?new RegExp("^"+Te.slice(0,Te.length-1)+".*$"):new RegExp("^"+Te+"$")}),ge=ye.some(function(Te){return Te.test(k)}),Ee={color:r(k,G.colors),namespace:k,useColors:G.useColors};if(!1)var we}}function w(k){return E(k,m())}function A(k){return E(k,p())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?t.exports=A:t.exports=w}),Pe=Re("informed:ObjMap "),rt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},Ze=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(p,m){return p!=null?p[m]:p},r);return s===void 0||s===r?o:s},Xe=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},ft=function(r){return r.replace(Xe(r),"").replace(/\./,"")},ht=function(r,i){var o=Xe(i),s=ft(i),p=o?Ze(r,o):r;return!!(p&&Object.hasOwnProperty.call(p,s.replace(/\[(.*)\]/,"$1")))},bt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,m,E){return m===E.length-1?(s[p]=o,s[p]):s[p]===void 0?(Number.isInteger(+E[m+1])?s[p]=[]:s[p]={},s[p]):(Number.isInteger(+E[m+1])&&!Array.isArray(s[p])&&(s[p]=[]),s[p])},r)},nt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=!1;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,m,E){return s===void 0?s:(m===E.length-1&&(delete s[p],o=!0),s[p])},r),o},ut=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,m,E){return s===void 0?s:(m===E.length-1&&Array.isArray(s)&&(o=s.splice(p,1)),s[p])},r),o},yt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Object.keys(r);return i.map(function(o){return r[o]})},mt=function(r){var i=rt(r);return Number.isInteger(+i[i.length-1])},pt=function(){function t(){b(this,t)}return g(t,null,[{key:"empty",value:function(i){return yt(i).length===0}},{key:"get",value:function(i,o){var s=Ze(i,o);return s}},{key:"has",value:function(i,o){return ht(i,o)}},{key:"set",value:function(i,o,s){if(s!==void 0)Pe("SETTING",o,s),bt(i,o,s);else if(mt(o)&&t.get(i,o)!==void 0){Pe("Special case SETTING",o,"to undefined"),bt(i,o,void 0);var p=rt(o);p=p.slice(0,p.length-1),Rt(i,p)}else!mt(o)&&t.get(i,o)!==void 0&&(Pe("Special case REMOVING",o,"from object completley"),t.delete(i,o))}},{key:"delete",value:function(i,o){Pe("DELETE",o),mt(o)?(Pe("ARRAY",o),this.pullOut(i,o)):nt(i,o);var s=rt(o);s=s.slice(0,s.length-1),Rt(i,s)}},{key:"pullOut",value:function(i,o){var s=rt(o),p=s[s.length-1];s=s.slice(0,s.length-1),Pe("Pulling out:",s,"index",p);var m=Ze(i,s);Pe("Array",m),Array.isArray(m)&&ut(m,p),Rt(i,s)}}]),t}();function Rt(t,r){if(r.length!==0){var i=Ze(t,r);(Array.isArray(i)?i.every(function(o){return o==null}):JSON.stringify(i)==="{}")&&nt(t,r),Rt(t,r.slice(0,r.length-1))}}var kt=d.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),Ct=d.createContext({}),Wt=d.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),jt=d.createContext(),Vt=d.createContext(),St=d.createContext(),Dt=d.createContext(),ve=d.createContext(),z=d.createContext(),$=d.createContext(),Se=d.createContext();function Ie(){var t=(0,d.useContext)(Wt);return t}function Ge(t){var r=(0,d.useRef)(),i=(0,d.useRef)(!0),o=(0,d.useState)(t),s=Q(o,2),p=s[0],m=s[1];r.current=p;var E=function(k){r.current=k,i.current&&m(k)},w=function(){return r.current};return(0,d.useEffect)(function(){return function(){i.current=!1}},[]),[p,E,w]}var Ke=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},P=function(r){var i={};if(r.inner){if(r.inner.length===0){pt.set(i,r.path,r.message);return}var o=Fe(r.inner),s;try{for(o.s();!(s=o.n()).done;){var p=s.value;pt.get(i,p.path)||pt.set(i,p.path,p.message)}}catch(m){o.e(m)}finally{o.f()}}return i},Me=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(s){var o=P(s);return o}},K=function(r){if(r.inner){if(r.inner.length===0)return;var i=r.inner[0];return i.message}},T=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(o){return K(o)}},O=function(r,i){r(i);var o={};return r.errors&&r.errors.forEach(function(s){var p=s.message,m=s.dataPath,E=s.keyword,w=s.params,A=m;E==="required"&&(A="".concat(A,".").concat(w.missingProperty)),A=A.replace(".",""),pt.set(o,A,p)}),o},se=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var i=Math.random()*16|0,o=r=="x"?i:i&3|8;return o.toString(16)})},N=function(r,i){var o;return function(){for(var p=arguments.length,m=new Array(p),E=0;E<p;E++)m[E]=arguments[E];var w=function(){clearTimeout(o),r.apply(void 0,m)};clearTimeout(o),o=setTimeout(w,i)}},re=function(r,i,o){var s=i["ui:control"],p=i["informed:props"],m=i["input:props"],E=i["ui:before"],w=i["ui:after"],A=i.oneOf,k=i.items,G=i.enum,ne=i.title,te=i.minimum,fe=i.maximum,ye=i.minLength,ge=i.maxLength,Ee=i.pattern,we=i.type,Te=i.properties,$e=se();m&&m.id&&($e=m.id);var je={componentType:s,field:o?"".concat(o,".").concat(r):r,type:we,uiBefore:E,uiAfter:w,properties:we==="object"?Te:void 0,items:we==="array"?k:void 0,props:j(j({label:ne,id:$e,min:te,max:fe,minLength:ye,maxLength:ge,pattern:Ee},p),m)};if(A){var He=i.oneOf.map(function(We){var Je=We["input:props"],ze=Je===void 0?{}:Je;return j({value:We.const,label:We.title},ze)});je.props.options=He}if(G){var Ne=i.enum.map(function(We){return{value:We,label:We}});je.props.options=Ne}if(k&&k.oneOf){var Ve=k.oneOf.map(function(We){var Je=We["input:props"],ze=Je===void 0?{}:Je;return j({value:We.const,label:We.title},ze)});je.props.options=Ve}return je},de=function(r,i,o){if(!r||i)return[];var s=r.properties,p=s===void 0?{}:s,m=r.allOf,E=r.propertyOrder,w=E===void 0?[]:E;if(Object.keys(p).length>0){var A=Object.keys(p).sort(function(k,G){var ne=w.indexOf(k),te=w.indexOf(G);return(ne>-1?ne:w.length+1)-(te>-1?te:w.length+1)}).map(function(k){var G=p[k],ne=re(k,G,o);return ne});return m&&A.push({componentType:"conditionals",allOf:m}),A}return[]},ae=function(r){var i=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return i="properties.".concat(i),i},pe=function(r,i){if(typeof r=="string")return r.split("").map(function(o){return o==="#"?/\d/:o==="*"?/[\w]/:o});if(typeof r=="function")return r(i);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},Ae=function(r,i){for(var o=0,s=-1,p=!0;p&&o<r.length;)r[o]==i[o]?s=o:p=!1,o=o+1;return s},Be=function(r,i){if(!r)return{val:r,offset:0};var o="".concat(r),s=pe(i,o),p=s.findIndex(function(ge){return typeof ge!="string"}),m=s.length-Y(s).reverse().findIndex(function(ge){return typeof ge!="string"}),E=[],w=o.split(""),A=0,k=0,G=Ae(s.slice(0,p),w.slice(0,p));G>-1&&(A=G+1,E=E.concat(s.slice(0,G+1)),k=G+1),G<0&&(E=E.concat(s.slice(0,p)),k=p);for(var ne=k;ne<s.length;ne++){var te=s[ne];if(A!=w.length){var fe=w[A];if(typeof te=="function")E.push(te(fe)),A=A+1;else{var ye=typeof te=="string"?te===fe:te.test(fe);ye&&typeof te=="string"?(E.push(te),A=A+1):!ye&&typeof te=="string"?A!=w.length&&E.push(te):ye&&typeof te!="string"?(E.push(fe),A=A+1):!ye&&typeof te!="string"&&(A=A+1,ne=ne-1)}}else if(typeof te=="string"&&ne>=m)E.push(te);else break}return{value:E.join(""),offset:o?E.length-o.length:0}},Ue=function(r,i){var o,s,p=new Intl.NumberFormat(r,i),m=new Intl.NumberFormat(r),E=(o=(s=m.formatToParts(.1).find(function(ge){var Ee=ge.type;return Ee==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&o!==void 0?o:".";function w(ge,Ee){return ge instanceof RegExp&&Ee instanceof RegExp&&ge.source===Ee.source&&ge.global===Ee.global&&ge.ignoreCase===Ee.ignoreCase&&ge.multiline===Ee.multiline}function A(ge,Ee){for(var we=ge.length;we--;)if(Ee(ge[we]))return we;return-1}function k(ge,Ee,we){var Te=Y(ge);return Array.isArray(we)?Te.splice.apply(Te,[Ee,0].concat(Y(we))):Te.splice(Ee,0,we),Te}function G(ge){return"".concat(ge).replace(/\D/g,"")}function ne(ge){return"".concat(ge).split(E).map(function(Ee){return G(Ee)}).join(".")}function te(ge){if(typeof ge=="number")return ge;var Ee=parseFloat(ne(ge));return Number.isNaN(Ee)?void 0:Ee}function fe(ge){var Ee=ne(ge),we="".concat(Ee).split(".")[1],Te=p.formatToParts(Number(Ee));we==="0"&&Te.push({type:"decimal",value:E},{type:"fraction",value:we});var $e=Te.reduce(function(Ne,Ve){var We=Ve.type,Je=Ve.value;return["decimal","fraction"].includes(We)&&we==null?Ne:["integer","fraction"].includes(We)?[].concat(Y(Ne),Y(Je.split("").filter(function(ze,et){return We==="fraction"?et<we.length:!0}).map(function(){return/\d/}))):We==="currency"?[].concat(Y(Ne),Y(Je.split(""))):[].concat(Y(Ne),[Je])},[]),je=A($e,function(Ne){return w(Ne,/\d/)});$e.indexOf(E)===-1&&"".concat(ge).indexOf(E)!==-1&&($e=k($e,je+1,[E,"[]"]),je+=2);var He=$e.slice(je+1).join("");return $e=[].concat(Y($e.slice(0,je+1)),[He]),$e}var ye=function(Ee){if(Ee!=null)return te(Ee)};return{formatter:fe,parser:ye}},Qe=Object.freeze({__proto__:null,getChildDisplayName:Ke,yupToFormErrors:P,validateYupSchema:Me,yupToFormError:K,validateYupField:T,validateAjvSchema:O,uuidv4:se,debounce:N,computeFieldFromProperty:re,computeFieldsFromSchema:de,getSchemaPathFromJsonPath:ae,informedFormat:Be,createIntlNumberFormatter:Ue}),vt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?d.useLayoutEffect:d.useEffect,Et=function(r){var i=r.value,o=r.inputRef,s=r.maintainCursor,p=s===void 0?!0:s,m=Ge(0),E=Q(m,3),w=E[0],A=E[1],k=E[2],G=Ge(0),ne=Q(G,3),te=ne[0],fe=ne[1],ye=ne[2];return vt(function(){if(o.current!=null&&k()){var ge=k()+ye();ye()!=0&&p?o.current.setSelectionRange(ge+1,ge+1):p&&o.current.setSelectionRange(ge,ge)}},[i]),{setCursorOffset:fe,setCursor:A,cursor:w,getCursor:k,cursorOffset:te}},Bt=function(r,i){var o=(0,d.useRef)(!0),s=o.current;(0,d.useEffect)(function(){if(s)o.current=!1;else return r()},i)},Pt=Re("informed:useField "),pn=function(r,i,o,s,p){if(r!=null){if(p)return p(r);if(i)return i(r);if(o&&!s){var m=Be(r,o);return m.value}return r}},Dr=function(r,i,o,s){if(i&&o)return i(r);if(s){var p=Be(r,s);return p.value}return r},Or=function(r,i,o){var s=o.required;if(r||i)return function(p,m){if(i)return T(i,p);if(r)return r(p,m)};if(s)return function(p){return hn(p,s)}},mi=function(r){var i=r.fieldType,o=r.setValue,s=r.onChange,p=r.multiple,m=r.ref,E=function(A){return o(A)};return(i==="text"||i==="textArea"||i==="number")&&(E=function(A){return o(A.target.value,A)}),i==="select"&&(E=function(){var A=Array.from(m.current).filter(function(k){return k.selected}).map(function(k){return k.value});o(p?A:A[0]||"")}),i==="checkbox"&&(E=function(A){o(A.target.checked),s&&s(A)}),function(w){E(w)}},Hr=function(r){var i=r.setTouched,o=r.onBlur;return function(s){i(!0),o&&o(s)}},Bi=function(r){var i=r.fieldType,o=r.maskedValue,s=r.multiple,p=r.value;switch(i){case"text":case"number":return!o&&o!==0?"":o;case"textArea":return o||"";case"select":return p||(s?[]:"");case"checkbox":return!!p;default:return p}},Bn=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},hn=function(r,i){if(i&&(r==null||r===""))return typeof i=="string"?i:"This field is required"};function Tn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,i=t.field,o=t.validate,s=t.asyncValidate,p=t.validationSchema,m=t.mask,E=t.maskWithCursorOffset,w=t.format,A=t.parse,k=t.formatter,G=t.parser,ne=t.initialValue,te=t.validateOnChange,fe=t.validateOnBlur,ye=t.validateOnMount,ge=t.asyncValidateOnBlur,Ee=t.maskOnBlur,we=t.allowEmptyString,Te=t.onValueChange,$e=t.notify,je=t.keepState,He=t.maintainCursor,Ne=t.debug,Ve=t.shadow,We=t.step,Je=t.fieldType,ze=t.multiple,et=t.onChange,At=t.onBlur,Nt=t.formController,Ht=t.relevant,ar=t.required,kr=t.keepStateIfRelevant,Cr=t.initialize,Yr=t.formatterDependencies,wr=Yr===void 0?[]:Yr,Lr=C(t,["field","validate","asyncValidate","validationSchema","mask","maskWithCursorOffset","format","parse","formatter","parser","initialValue","validateOnChange","validateOnBlur","validateOnMount","asyncValidateOnBlur","maskOnBlur","allowEmptyString","onValueChange","notify","keepState","maintainCursor","debug","shadow","step","fieldType","multiple","onChange","onBlur","formController","relevant","required","keepStateIfRelevant","initialize","formatterDependencies"]),Sn=(0,d.useState)(se()),Yt=Q(Sn,1),Mt=Yt[0],Ut=(0,d.useContext)(kt),or=(0,d.useContext)(Se),on=or||kr,mr=Ie(),hs=(0,d.useRef)(),Ll=(0,d.useRef)(!0),ho=(0,d.useRef)(),Di=(0,d.useRef)(!1),Dl=function(){return!Di.current},Ff=function(){return Di.current};Nt&&(Ut=Nt.updater,mr=Nt.getFormApi());var yi=Or(o,p,{required:ar}),Nl=(0,d.useState)(function(){return Ut.getInitialValue(i)}),sm=Q(Nl,1),lm=sm[0],kf=Ut.getSavedValue(i),Rf,Oh;(je||on)&&kf?(Pt("Setting field ".concat(Pd,"'s kept state"),kf),Rf=kf.value,Oh=kf.touched,mr.removeSavedState(Pd)):ne!=null?Rf=ne:Rf=lm;var um=Ge(pn(Rf,m,k,G,Cr)),hd=Q(um,3),Bl=hd[0],vd=hd[1],fm=hd[2],cm=Ge(ye?yi(Bl):void 0),gd=Q(cm,3),Th=gd[0],Ph=gd[1],dm=gd[2],pm=Ge(Oh),yd=Q(pm,3),Ih=yd[0],hm=yd[1],Fh=yd[2],vm=(0,d.useState)(function(){return Dr(Bl,w,A,k)}),kh=Q(vm,2),md=kh[0],xd=kh[1],Rh=(0,d.useRef)();Rh.current=md;var Mh=(0,d.useRef)(ne),vo=(0,d.useRef)(i),Lh=(0,d.useRef)();Mh.current=ne,vo.current=i;var gm=(0,d.useRef)(null),Ni=d.useMemo(function(){return r||gm},[]),bd=Et({value:Bl,inputRef:Ni,maintainCursor:!!He}),wd=bd.getCursor,ym=bd.setCursor,Sd=bd.setCursorOffset,mm=function(){return!0},Ad=function(sr){var sn=Ht||mm,Dn=mr.getFullField(vo.current)||vo.current,Jt={path:Dn,parentPath:Dn.replace(/(.*)[.[].*/,"$1"),get:function(Nn,Vl){return pt.get(Nn,Vl)}};return or&&or.relevant?sn(sr,Jt)&&or.relevant(sr,Jt):sn(sr,Jt)},xm=Ge(Ad(mr.getValues())),Ed=Q(xm,3),Mf=Ed[0],bm=Ed[1],Dh=Ed[2],wm=function(sr){return or&&or.relevant?or.relevant(sr):!0},Sm=function(){var sr=Ad(mr.getValues()),sn=Dh();return sr!=sn&&bm(sr),sr};(0,d.useEffect)(function(){!Mf&&!je&&hs.current.reset()},[Mf]);var ni=function(){return Ve?mr.getDerrivedValue(i):fm()},Ul=function(sr){var sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Dn=sn.preventUpdate;We&&mr.getStep()<We?(Pt("Setting ".concat(i,"'s error to undefined as we are not at that step")),Ph(void 0),Ut.setError(Mt,void 0,!Dn)):(Pt("Setting ".concat(i,"'s error to ").concat(sr)),Ph(sr),Ut.setError(Mt,sr,!Dn))},Cd=function(sr,sn){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jt=sr;Di.current=!0,Pt("Setting ".concat(i," to ").concat(Jt)),Cr&&(Jt=Cr(Jt));var go=mr.getOptions(),Nn=Jt;if(Jt===""&&!we&&!Dn.allowEmptyString&&!go.allowEmptyStrings&&(Jt=void 0),(t.type==="number"||Je==="number")&&Jt!==void 0&&(Jt=+Jt),sn&&sn.target&&sn.target.selectionStart&&ym(sn.target.selectionStart),m&&!Ee&&(Nn=m(Jt,wd()),Jt=m(Jt,wd())),E&&!Ee){var Vl=E(Jt,wd());Nn=Vl.value,Jt=Vl.value,Sd(Vl.offset)}if(w&&A&&(Jt=A(Jt),Nn=w(Jt)),k){var Nh=Be(Jt,k);Sd(Nh.offset),Nn=Nh.value,Jt=Nn}G&&(Jt=Jt!=null?G(Jt):Jt),yi&&te&&!Dn.initial&&(Pt("Validating after change ".concat(i," ").concat(Jt)),Ul(yi(Jt,mr.getValues()))),vd(Jt),xd(Nn),Te&&Te(Jt),Ut.setValue(Mt,Jt,!Dn.preventUpdate)};Bt(function(){hs.current.setValue(Rh.current)},Y(wr));var Od=function(sr,sn){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jt=Dn.preventUpdate;if(Pt("Field ".concat(i," has been touched")),yi&&fe&&!sn&&sr&&(Pt("Validating after blur ".concat(i," ").concat(ni())),Ul(yi(ni(),mr.getValues()))),s&&ge&&!sn&&sr&&(Pt("Validating async after blur ".concat(i," ").concat(ni())),s(ni(),mr.getValues())),m&&Ee){var go=m(ni());vd(go),xd(go),Te&&Te(go),Ut.setValue(Mt,go,!Jt)}if(E&&Ee){var Nn=E(ni());Sd(Nn.offset),vd(Nn.value),xd(Nn.value),Te&&Te(Nn.value),Ut.setValue(Mt,Nn.value,!Jt)}hm(sr),Ut.setTouched(Mt,sr,!Jt)},Am=function(){var sr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},sn=sr.preventUpdate,Dn=pn(Mh.current||Ut.getInitialValue(vo.current),m,k,G,Cr);Cd(Dn,null,{initial:!0,preventUpdate:sn}),Ul(ye?yi(Dn):void 0,{preventUpdate:sn}),Od(void 0,!0,{preventUpdate:sn}),Di.current=!1},Em=function(sr){yi&&(Pt("Field validating ".concat(i," ").concat(ni())),Ul(yi(ni(),sr||mr.getValues())))},Cm=function(sr){s&&(Pt("Field async validating ".concat(i," ").concat(ni())),s(ni(),sr||mr.getValues()))},Td={setValue:Cd,setTouched:Od,setError:Ul,reset:Am,validate:Em,asyncValidate:Cm,getValue:ni,getTouched:Fh,getError:dm,getIsRelevant:Dh,getDirty:Ff,getPristine:Dl,getFieldState:function(){return{value:ni(),touched:Fh(),dirty:Ff(),pristine:Dl()}},relevant:Ad,multistepRelevant:wm,checkRelevant:Sm};hs.current=Td;var jl={value:Bl,error:Th,touched:Ih,maskedValue:md,isRelevant:Mf,dirty:Di.current,pristine:!Di.current};Ve&&(jl={error:Th,touched:Ih}),Pt("Render",mr.getFullField(i),jl),vt(function(){var _r=mr.getFullField(vo.current);return Pt("Register",Mt,vo.current),ho.current={field:_r,fieldId:Mt,fieldApi:Td,fieldState:jl,notify:$e,keepState:je,inMultistep:on,shadow:Ve},Ut.register(Mt,ho.current),function(){var sr=mr.getFullField(vo.current);Pt("Deregister",Mt,sr),Ut.deregister(Mt)}},[]),(0,d.useEffect)(function(){var _r=mr.getFullField(i);return Ll.current?Ll.current=!1:(Pt("Update",i,on),ho.current.field=_r,Ut.update(Mt,ho.current,Lh.current)),function(){Lh.current=_r}},[i]),vt(function(){Ne&&Ni&&(Ni.current.style.border="5px solid orange",setTimeout(function(){Ni.current.style.borderWidth="2px",Ni.current.style.borderStyle="inset",Ni.current.style.borderColor="initial",Ni.current.style.borderImage="initial"},500))});var Om=[].concat(Y(Object.values(jl)),Y(Object.values(t)),Y(Object.values(Lr))),Tm=function(sr){return(0,d.useMemo)(function(){return Mf?sr:null},Y(Om))},Pd=i,Pm=mi({fieldType:Je,setValue:Cd,onChange:et,multiple:ze,ref:Ni}),Im=Hr({setTouched:Od,onBlur:At}),Fm=Bi({fieldType:Je,maskedValue:md,multiple:ze,value:Bl}),km=Bn(Je);return{fieldState:jl,fieldApi:Td,render:Tm,ref:Ni,userProps:j(j({},Lr),{},{multiple:ze,onChange:et,onBlur:At,id:Lr.id||Mt}),informed:j({name:Pd,multiple:ze,onChange:Pm,onBlur:Im,value:Fm,ref:Ni,type:km,id:Lr.id||Mt},Lr)}}var zr=function(r){var i=d.forwardRef(function(o,s){var p=Tn(o,s),m=p.fieldState,E=p.fieldApi,w=p.render,A=p.ref,k=p.userProps;return w(d.createElement(r,D({fieldApi:E,fieldState:m,field:o.field,forwardedRef:A,debug:o.debug,type:o.type},k)))});return i.displayName="asField(".concat(Ke(r),")"),i},xi=Re("informed:Text "),bi=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.maskedValue,m=i.setValue,E=i.setTouched,w=s.onChange,A=s.onBlur,k=s.field,G=s.initialValue,ne=s.forwardedRef,te=s.debug,fe=s.label,ye=s.title,ge=s.id,Ee=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return xi("Render",k),vt(function(){te&&ne&&(ne.current.style.background="red",setTimeout(function(){ne.current.style.background="white"},500))}),d.createElement(d.Fragment,null,fe?d.createElement("label",{htmlFor:ge}," ",fe," "):null,d.createElement("input",D({},Ee,{id:ge,name:k,ref:ne,value:!p&&p!==0?"":p,onChange:function(Te){m(Te.target.value,Te),w&&w(Te)},onBlur:function(Te){E(!0),A&&A(Te)}})))},qr=zr(bi),vn=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.maskedValue,m=i.setValue,E=i.setTouched,w=s.onChange,A=s.onBlur,k=s.field,G=s.initialValue,ne=s.forwardedRef,te=s.debug,fe=s.label,ye=s.id,ge=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return vt(function(){te&&ne&&(ne.current.style.background="red",setTimeout(function(){ne.current.style.background="white"},500))}),d.createElement(d.Fragment,null,fe?d.createElement("label",{htmlFor:ye}," ",fe," "):null,d.createElement("textarea",D({},ge,{id:ye,name:k,ref:ne,value:p||"",onChange:function(we){m(we.target.value,we),w&&w(we)},onBlur:function(we){E(!0),A&&A(we)}})))},Un=zr(vn),jn=Re("informed:Select "),gn=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.value,m=i.setTouched,E=s.onChange,w=s.onBlur,A=s.field,k=s.initialValue,G=s.options,ne=s.children,te=s.forwardedRef,fe=s.debug,ye=s.multiple,ge=s.label,Ee=s.id,we=C(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),Te=(0,d.useRef)(),$e=function(He){var Ne=Array.from((te||Te).current).filter(function(Ve){return Ve.selected}).map(function(Ve){return Ve.value});i.setValue(ye?Ne:Ne[0]||""),E&&He&&E(He)};return vt(function(){fe&&te&&(te.current.style.background="red",setTimeout(function(){te.current.style.background="white"},500))}),jn("Render",A,p),d.createElement(d.Fragment,null,ge?d.createElement("label",{htmlFor:Ee}," ",ge," "):null,d.createElement("select",D({},we,{id:Ee,multiple:ye,name:A,ref:te||Te,value:p||(ye?[]:""),onChange:$e,onBlur:function(He){m(!0),w&&w(He)}}),G?G.map(function(je){return d.createElement("option",{key:je.value,value:je.value,disabled:je.disabled},je.label)}):ne))},Xn=zr(gn),wi=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.value,m=i.setValue,E=i.setTouched,w=s.onChange,A=s.onBlur,k=s.field,G=s.initialValue,ne=s.debug,te=s.forwardedRef,fe=s.id,ye=s.label,ge=C(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return d.createElement(d.Fragment,null,ye?d.createElement("label",{htmlFor:fe}," ",ye," "):null,d.createElement("input",D({},ge,{id:fe,name:k,ref:te,checked:!!p,onChange:function(we){m(we.target.checked),w&&w(we)},onBlur:function(we){E(!0),A&&A(we)},type:"checkbox"})))},Nr=zr(wi),Gr=function(r){return d.forwardRef(function(i,o){return d.createElement(jt.Consumer,null,function(s){var p=s.radioGroupApi,m=s.radioGroupState;return d.createElement(r,D({radioGroupApi:p,radioGroupState:m,ref:o},i))})})},Qn=function(r){var i=r.radioGroupApi,o=r.radioGroupState,s=C(r,["radioGroupApi","radioGroupState"]),p=o.value,m=i.setValue,E=i.setTouched,w=i.onChange,A=i.onBlur,k=s.value,G=s.onChange,ne=s.onBlur,te=s.field,fe=s.initialValue,ye=s.forwardedRef,ge=C(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return d.createElement("input",D({},ge,{name:te,ref:ye,value:k,checked:p===k,onChange:function(we){!we.target.checked||(m(k),G&&G(we),w&&w(we))},onBlur:function(we){E(!0),ne&&ne(we),A&&A(we)},type:"radio"}))},ur=Gr(Qn),Tt=function(t){q(i,t);var r=_(i);function i(){return b(this,i),r.apply(this,arguments)}return g(i,[{key:"render",value:function(){var s=this.props,p=s.options,m=s.children;return d.createElement(jt.Provider,{value:this.groupContext},p?p.map(function(E){return d.createElement("label",{key:E.value},E.label," ",d.createElement(ur,{value:E.value}))}):m)}},{key:"groupContext",get:function(){return{radioGroupApi:j(j({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),i}(d.Component),ii=zr(Tt);function Si(){return(0,d.useContext)(St)}var An=function(){var r=Si(),i=r.add;return d.createElement("button",{onClick:function(){i()},type:"button"},"Add")};function Zt(){return(0,d.useContext)(Dt)}var Vn=function(){var r=Zt(),i=r.remove;return d.createElement("button",{onClick:function(){i()},type:"button"},"Remove")},Zn=Re("informed:useArrayField "),la=function(r){var i=r.field,o=r.initialValue,s=r.validate,p=r.arrayFieldApiRef,m=C(r,["field","initialValue","validate","arrayFieldApiRef"]),E=Ie(),w=(0,d.useState)(new Map),A=Q(w,1),k=A[0],G=(0,d.useContext)(kt),ne=E.getFullField(i),te=G.getInitialValue(i)||o||[],fe=E.getSavedValue(ne)&&E.getSavedValue(ne).value,ye=Ge(fe||te),ge=Q(ye,3),Ee=ge[0],we=ge[1],Te=ge[2],$e=Ee?Ee.map(function(){return se()}):[],je=Ge($e),He=Q(je,3),Ne=He[0],Ve=He[1],We=He[2],Je=(0,d.useMemo)(function(){return function(Yt,Mt){var Ut=We()==null?0:We().length;return s?s(Yt,Ut,Mt):void 0}}),ze=Tn(j({field:i,validate:s?Je:void 0,shadow:!0},m)),et=ze.fieldApi;vt(function(){var Yt=function(Ut){Ut!==ne&&(Zn("".concat(ne," changed")),RegExp("".concat(ne,"\\[[0-9]+\\]")).test(Ut)&&et.validate())};return E.emitter.on("value",Yt),function(){E.emitter.removeListener("value",Yt)}},[i]);var At=function(Mt){Zn("EXPECTING REMOVAL OF","".concat(i,"[").concat(Mt,"] and ").concat(i,"[").concat(Ne.length-1,"]")),G.expectRemoval("".concat(i,"[").concat(Mt,"]")),G.expectRemoval("".concat(i,"[").concat(Ne.length-1,"]"));var Ut=Ne.slice(0,Mt).concat(Ne.slice(Mt+1,Ne.length));Ve(Ut);var or=Te(),on=or.slice(0,Mt).concat(or.slice(Mt+1,or.length));we(on)},Nt=function(Mt,Ut){Zn("Swapping","".concat(i,"[").concat(Mt,"] and ").concat(i,"[").concat(Ut,"]"));var or=Y(Ne);Ne[Mt]&&Ne[Ut]?(or[Mt]=Ne[Ut],or[Ut]=Ne[Mt]):console.warn("Attempted to swap ".concat(Mt," with ").concat(Ut," but one of them does not exist :(")),Ve(or)},Ht=function(){Ne.push(se()),Ve(Y(Ne))},ar=function(Mt){Ne.push(se()),Ve(Y(Ne));var Ut=Y(Te());Ut[Ne.length-1]=Mt,we(Ut)},kr=function(){var Mt=G.getInitialValue(i)||o||[];we(Mt);var Ut=Mt?Mt.map(function(){return se()}):[];Ve(Ut)},Cr=Ne.map(function(Yt,Mt){var Ut={remove:function(){return At(Mt)}},or={initialValue:Ee&&Ee[Mt],key:Yt,field:"".concat(i,"[").concat(Mt,"]"),index:Mt};return j(j({arrayFieldItemApi:Ut,arrayFieldItemState:or},Ut),or)}),Yr={add:Ht,swap:Nt,addWithInitialValue:ar,reset:kr};p&&(p.current=Yr);var wr={fields:Cr,field:i},Lr=j(j({},G),{},{register:function(Mt,Ut){k.set(Mt,Ut);for(var or=arguments.length,on=new Array(or>2?or-2:0),mr=2;mr<or;mr++)on[mr-2]=arguments[mr];G.register.apply(G,[Mt,Ut].concat(on))},deregister:function(Mt){k.delete(Mt);for(var Ut=arguments.length,or=new Array(Ut>1?Ut-1:0),on=1;on<Ut;on++)or[on-1]=arguments[on];G.deregister.apply(G,[Mt].concat(or))},getInitialValue:function(Mt){if(RegExp("".concat(ne,"\\[[0-9]+\\]")).test(Mt)){var Ut=Mt.replace(i,""),or=pt.get(Te(),Ut);return Zn("Resetting ".concat(Ut," to ").concat(or)),or}return G.getInitialValue(Mt)}}),Sn=function(Mt){return d.createElement(kt.Provider,{value:Lr},d.createElement(St.Provider,{value:Yr},d.createElement(Vt.Provider,{value:wr},Mt)))};return{render:Sn,add:Ht,swap:Nt,addWithInitialValue:ar,fields:Cr,arrayFieldState:wr,arrayFieldApi:Yr,field:i}},at=function(r,i){return j(j({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getSavedValue:function(s){return i.getSavedValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})};function Lt(t){var r=Ie(),i=(0,d.useMemo)(function(){return at(t,r)},[t]);return i}function ai(){var t=(0,d.useContext)(Ct);return t}var le=function(r){var i=r.when,o=r.children,s=ai(),p=i(s);return p?o:null},Oe=function(r){var i=r.relevant,o=r.field,s=C(r,["relevant","field"]),p=Ie();if(i){var m=p.getFullField(o),E={path:m,parentPath:m.replace(/(.*)[.[].*/,"$1"),get:function(k,G){return pt.get(k,G)}},w=function(k){var G=k.values;return i(G,E)};return d.createElement(le,{when:w},d.createElement(qe,D({field:o},s)))}else return d.createElement(qe,D({field:o},s))},qe=function(r){var i=r.children,o=C(r,["children"]),s=la(o),p=s.render,m=s.arrayFieldState,E=s.arrayFieldApi,w=s.field;return p(typeof i=="function"?i(j(j({field:w,arrayFieldApi:E,arrayFieldState:m},E),m)):i)},st=function(r){var i=r.arrayFieldItemState,o=r.arrayFieldItemApi,s=r.children,p=(0,d.useContext)(kt),m=Ie(),E=(0,d.useState)(0),w=Q(E,2),A=w[0],k=w[1],G=(0,d.useState)(new Map),ne=Q(G,1),te=ne[0],fe=i.field,ye=Lt(fe),ge=function(){var Ne=m.getState(),Ve=Ne.values,We=Ne.errors,Je=Ne.touched,ze={values:pt.get(Ve,fe),errors:pt.get(We,fe),touched:pt.get(Je,fe)};return ze};(0,d.useEffect)(function(){var He=function(Ve){var We=Ve.slice(0,Ve.lastIndexOf("[")!=-1?Ve.lastIndexOf("]")+1:Ve.length);We===fe&&k(Math.random())};return m.emitter.on("value",He),function(){m.emitter.removeListener("value",He)}},[fe]);var Ee=function(){te.forEach(function(Ne){Ne.fieldApi.reset()})},we=ge(),Te=j(j({},p),{},{register:function(Ne,Ve,We){te.set(Ne,Ve),p.register(Ne,Ve,We)},deregister:function(Ne){te.delete(Ne);for(var Ve=arguments.length,We=new Array(Ve>1?Ve-1:0),Je=1;Je<Ve;Je++)We[Je-1]=arguments[Je];p.deregister.apply(p,[Ne].concat(We))}}),$e=j(j(j({},o),ye),{},{reset:Ee}),je=j(j({},i),we);return typeof s=="function"?d.createElement(kt.Provider,{value:Te},d.createElement(Dt.Provider,{value:$e},d.createElement(ve.Provider,{value:je},s(j(j({arrayFieldItemApi:$e,arrayFieldItemState:je},$e),je))))):d.createElement(kt.Provider,{value:Te},d.createElement(Dt.Provider,{value:$e},d.createElement(ve.Provider,{value:je},s)))};Oe.Items=function(t){var r=t.children,i=(0,d.useContext)(Vt),o=i.fields;return o.map(function(s){var p=s.arrayFieldItemState,m=s.arrayFieldItemApi,E=p.key;return d.createElement(st,{key:E,arrayFieldItemApi:m,arrayFieldItemState:p},r)})};var lt=function(r){var i=r.components,o=(0,d.useContext)(kt),s=o.fieldMap;return i?i.map(function(p,m){var E=p["ui:control"],w=s[E];return d.createElement(w,{key:"ui-comp-".concat(m)})}):null},Kt=Re("informed:FormFields "),Xt=function t(r){var i=r.schema,o=r.prefix,s=r.onlyValidateSchema,p=(0,d.useContext)(kt),m=p.fieldMap,E=(0,d.useMemo)(function(){var w=de(i,s,o),A=w.map(function(k,G){var ne=k.field,te=k.props,fe=k.type,ye=k.properties,ge=k.items,Ee=k.componentType,we=k.uiBefore,Te=k.uiAfter,$e=k.allOf,je=m[Ee];return Kt("Rendering Field",ne,k),!je&&fe==="object"&&ye?d.createElement(t,{schema:k,prefix:ne,key:"ScheamField-".concat(G)}):!je&&fe==="array"&&ge?d.createElement(Tr,D({key:"ScheamField-".concat(G),field:ne,items:ge,uiBefore:we,uiAfter:Te},te)):je&&Ee==="array"&&ge&&fe==="array"?d.createElement(je,D({key:"ScheamField-".concat(G),field:ne,items:ge,uiBefore:we,uiAfter:Te},te)):Ee==="conditionals"?$e.map(function(He){var Ne=He.then,Ve=He.if.properties,We=function(ze){var et=ze.values;return Object.keys(Ve).every(function(At){var Nt=Ve[At];return et[At]===Nt.const})};return d.createElement(le,{key:"ScheamField-".concat(G),when:We},d.createElement(t,{schema:Ne}))}):je?d.createElement(je,D({key:"ScheamField-".concat(G),field:ne},te)):null});return A},[i,o]);return E},Tr=function(r){var i=r.field,o=r.items,s=r.uiBefore,p=r.uiAfter,m=C(r,["field","items","uiBefore","uiAfter"]);return d.createElement(Oe,D({field:i},m),d.createElement(lt,{components:s}),d.createElement(Oe.Items,null,function(E){var w=E.field;return d.createElement(d.Fragment,null,d.createElement(lt,{components:o["ui:before"]}),d.createElement(Xt,{schema:o,prefix:w}),d.createElement(lt,{components:o["ui:after"]}))}),d.createElement(lt,{components:p}))},Pr={select:Xn,input:qr,textarea:Un,checkbox:Nr,radio:ii,add:An,remove:Vn,array:Tr},_t=Re("informed:Controller "),Wl=function(r,i){var o=Object.keys(i).find(function(p){return r.includes(p)});if(!!o){var s=r.slice(0,o.length);return s===o}},en=function(){},vs=function(){function t(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};b(this,t),this.options=i,this.subscriptions=new Map;var o=i.ajv,s=i.schema,p=i.fieldMap;this.ajv=o?new o({allErrors:!0}):null,this.ajvValidate=o?this.ajv.compile(s):null,this.fieldMap=p||Pr,this.fieldsById=new Map,this.fieldsByName={get:function(E){var w;return r.fieldsById.forEach(function(A){A&&A.field===E&&(w=A)}),w}},this.onScreen={},this.expectedRemovals={},this.pulledOut={},this.savedValues={},this.state={pristine:!0,dirty:!1,invalid:!1,submits:0,step:0,validating:0,submitting:!1,values:{},errors:{},touched:{}},this.dummyField={fieldApi:{setValue:en,setTouched:en,setError:en,reset:en,validate:en,getValue:en,getTouched:en,getError:en,getFieldState:en,checkRelevant:en,getPristine:en,getDirty:en}},this.deregister=this.deregister.bind(this),this.register=this.register.bind(this),this.getValue=this.getValue.bind(this),this.getTouched=this.getTouched.bind(this),this.getError=this.getError.bind(this),this.getErrors=this.getErrors.bind(this),this.setValue=this.setValue.bind(this),this.getValues=this.getValues.bind(this),this.getStep=this.getStep.bind(this),this.setStep=this.setStep.bind(this),this.back=this.back.bind(this),this.next=this.next.bind(this),this.setCurrent=this.setCurrent.bind(this),this.setTouched=this.setTouched.bind(this),this.setError=this.setError.bind(this),this.setFormError=this.setFormError.bind(this),this.submitForm=this.submitForm.bind(this),this.reset=this.reset.bind(this),this.update=this.update.bind(this),this.validate=this.validate.bind(this),this.screenValid=this.screenValid.bind(this),this.keyDown=this.keyDown.bind(this),this.getField=this.getField.bind(this),this.getInitialValue=this.getInitialValue.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getOptions=this.getOptions.bind(this),this.getFormState=this.getFormState.bind(this),this.expectRemoval=this.expectRemoval.bind(this),this.getSavedValue=this.getSavedValue.bind(this),this.removeSavedState=this.removeSavedState.bind(this),this.getDerrivedValue=this.getDerrivedValue.bind(this),this.setValues=this.setValues.bind(this),this.resetField=this.resetField.bind(this),this.fieldExists=this.fieldExists.bind(this),this.validateField=this.validateField.bind(this),this.notify=this.notify.bind(this),this.validating=this.validating.bind(this),this.validated=this.validated.bind(this),this.getDirty=this.getDirty.bind(this),this.getPristine=this.getPristine.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.removeListener=this.removeListener.bind(this),this.updater={register:this.register,deregister:this.deregister,getField:this.getField,update:this.update,fieldMap:this.fieldMap,setValue:function(E,w){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(E);k.shadow||pt.set(r.state.values,k.field,k.fieldApi.getValue()),k.fieldApi.relevant(r.state.values)||pt.delete(r.state.values,k.field),r.fieldsById.forEach(function(G){var ne=G.fieldApi.checkRelevant();(!G.fieldApi.multistepRelevant(r.state.values)||!ne&&!G.keepState)&&(pt.delete(r.state.values,G.field),pt.delete(r.state.touched,G.field),pt.delete(r.state.errors,G.field))}),A&&(r.emit("change"),r.emit("field",k.field),r.emit("value",k.field,w))},setTouched:function(E,w){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(E);!k.shadow&&k.fieldApi.getIsRelevant()&&pt.set(r.state.touched,k.field,k.fieldApi.getTouched()),k.shadow&&k.fieldApi.getError()!=null&&k.fieldApi.relevant(r.state.values)&&pt.set(r.state.touched,k.field,k.fieldApi.getTouched()),A&&(r.emit("change"),r.emit("field",k.field))},setError:function(E,w){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(E);!k.shadow&&k.fieldApi.getIsRelevant()&&pt.set(r.state.errors,k.field,k.fieldApi.getError());var G=pt.get(r.state.errors,k.field);(k.shadow&&k.fieldApi.getError()!=null&&k.fieldApi.relevant(r.state.values)||k.shadow&&k.fieldApi.getError()===void 0&&k.fieldApi.relevant(r.state.values)&&typeof G=="string")&&pt.set(r.state.errors,k.field,k.fieldApi.getError()),A&&(r.emit("change"),r.emit("field",k.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",function(m){delete r.state.error,r.notify(m)})}return g(t,[{key:"emit",value:function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),p=1;p<o;p++)s[p-1]=arguments[p];var m=this.subscriptions.get(i);m&&m.forEach(function(E){return E.apply(void 0,s)})}},{key:"on",value:function(i,o){this.subscriptions.get(i)||this.subscriptions.set(i,new Set);var s=this.subscriptions.get(i);s.add(o)}},{key:"removeListener",value:function(i,o){var s=this.subscriptions.get(i);s.delete(o)}},{key:"setOptions",value:function(i){this.options=i}},{key:"setValue",value:function(i,o,s){this.getField(i).fieldApi.setValue(o,null,j({allowEmptyString:this.options.allowEmptyStrings},s))}},{key:"setTouched",value:function(i,o){this.getField(i).fieldApi.setTouched(o)}},{key:"setError",value:function(i,o){this.getField(i).fieldApi.setError(o)}},{key:"setFormError",value:function(i){this.state.error=i,this.emit("change")}},{key:"validating",value:function(){this.state.validating=this.state.validating+1,this.emit("change")}},{key:"validated",value:function(i,o){if(this.state.validating=this.state.validating-1,this.getError(i)||this.setError(i,o),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(_t("Submit",this.state),this.emit("submit")):(_t("Submit",this.state),this.emit("failure")),this.state.submitting=!1),this.emit("change")}},{key:"setStep",value:function(i){this.state.step=i,this.emit("change")}},{key:"setCurrent",value:function(i){this.state.Current=i,this.emit("change")}},{key:"back",value:function(i){this.state.step=this.state.step-1,this.state.Current=i,this.emit("change")}},{key:"next",value:function(i){this.validate(),this.screenValid()&&(this.state.step=this.state.step+1,this.state.Current=i),this.emit("change")}},{key:"setInitialValue",value:function(i,o){pt.set(this.options.initialValues,i,o)}},{key:"getFormState",value:function(){return _t("Returning form state"),j(j({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(i){var o=this.getValues();return pt.get(o,i)}},{key:"getValue",value:function(i){var o=this.getField(i).fieldApi.getValue();return _t("Getting value for",i,o),o}},{key:"getTouched",value:function(i){var o=this.getField(i).fieldApi.getTouched();return _t("Getting touched for",i,o),o}},{key:"getError",value:function(i){var o=this.getField(i).fieldApi.getError();return _t("Getting error for",i,o),o}},{key:"getDirty",value:function(i){var o=this.getField(i).fieldApi.getDirty();return _t("Getting dirty for",i,o),o}},{key:"getPristine",value:function(i){var o=this.getField(i).fieldApi.getPristine();return _t("Getting pristine for",i,o),o}},{key:"getValues",value:function(){return _t("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return _t("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return _t("Gettings errors"),this.state.errors}},{key:"getOptions",value:function(){return this.options}},{key:"getStep",value:function(){return this.state.step}},{key:"getSavedValue",value:function(i){var o=this.fieldsByName.get(i);return o&&o.shadow?pt.get(this.savedValues,"shadow-".concat(i)):pt.get(this.savedValues,i)}},{key:"removeSavedState",value:function(i){var o=this.fieldsByName.get(i);return o&&o.shadow?pt.delete(this.savedValues,"shadow-".concat(i)):pt.delete(this.savedValues,i)}},{key:"getFullField",value:function(i){return i}},{key:"getInitialValue",value:function(i){return pt.get(this.options.initialValues,i)}},{key:"getField",value:function(i){_t("Getting Field",i);var o=this.fieldsByName.get(i);return o||(console.warn("Attempting to get field ".concat(i," but it does not exist")),this.dummyField)}},{key:"notify",value:function(i){var o=this,s=this.getField(i);s&&s.notify&&s.notify.forEach(function(p){var m=".".concat(i),E="".concat(m.replace(/(.*)[.[].*/,"$1"),".").concat(p).slice(1),w=o.getField(E);w&&(_t("Notifying",w.field),w.fieldApi.validate(),w.fieldApi.checkRelevant())})}},{key:"validateField",value:function(i){this.getField(i).fieldApi.validate()}},{key:"resetField",value:function(i){this.getField(i).fieldApi.reset()}},{key:"fieldExists",value:function(i){return this.fieldsByName.get(i)!=null}},{key:"valid",value:function(){var i=this.getErrors();return!!(pt.empty(i)&&!this.state.error)}},{key:"screenValid",value:function(){var i=Object.entries(this.onScreen).some(function(o){var s=Q(o,2),p=s[1];return p.fieldApi.getError()});return!i}},{key:"invalid",value:function(){var i=this.getErrors();return!!(!pt.empty(i)||this.state.error)}},{key:"pristine",value:function(){var i=!0;return this.fieldsById.forEach(function(o){o.fieldApi.getPristine()||(i=!1)}),i}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){_t("Resetting"),this.fieldsById.forEach(function(i){i.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(i){_t("Setting values"),this.fieldsById.forEach(function(o){var s=pt.get(i,o.field);s!==void 0&&o.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var i=this;_t("Validating all fields");var o=this.getValues();if(this.options.validationSchema){var s=Me(this.options.validationSchema,o);this.fieldsById.forEach(function(w){if(pt.has(s,w.field)){var A=pt.get(s,w.field);i.setError(w.field,A)}else i.setError(w.field,void 0)})}if(this.options.schema&&this.options.ajv){var p=O(this.ajvValidate,o);this.fieldsById.forEach(function(w){if(pt.has(p,w.field)){var A=pt.get(p,w.field);i.setError(w.field,A)}else i.setError(w.field,void 0)})}if(this.fieldsById.forEach(function(w){w.fieldApi.validate(o),w.fieldApi.setTouched(!0,!0)}),this.options.validate){var m=this.options.validate(o);this.setFormError(m)}if(this.options.validateFields){var E=this.options.validateFields(o);this.fieldsById.forEach(function(w){if(pt.has(E,w.field)){var A=pt.get(E,w.field);i.setError(w.field,A)}})}}},{key:"asyncValidate",value:function(){_t("Async Validating all fields");var i=this.getValues();this.fieldsById.forEach(function(o){o.fieldApi.asyncValidate(i)})}},{key:"keyDown",value:function(i){if(i.keyCode==13&&this.options.preventEnter)return i.preventDefault(i),!1}},{key:"submitForm",value:function(i){this.state.submits=this.state.submits+1,this.state.submitting=!0,!this.options.dontPreventDefault&&i&&i.preventDefault(i),this.validate(),this.emit("change"),this.asyncValidate(),!(this.state.validating>0)&&(this.valid()?(_t("Submit",this.state),this.emit("submit")):(_t("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var i=this;this.fieldsById.forEach(function(o){i.emit("field",o.field)})}},{key:"register",value:function(i,o,s){var p=o.field,m=o.state;_t("Register ID:",i,"Name:",p,m,"Initial",s);var E=p.slice(0,p.lastIndexOf("[")!=-1?p.lastIndexOf("]")+1:p.length),w;this.fieldsById.forEach(function(A,k){A&&A.field===p&&(w=k)}),w&&(o.keepState||o.inMultistep)?(_t("Already Registered",p),this.fieldsById.delete(w)):w&&(!o.keepState||!o.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",p),_t("Fields Registered",this.fieldsById.size),this.onScreen[i]=o,this.fieldsById.set(i,o),_t("clearing expected removal",E),delete this.expectedRemovals[E],delete this.pulledOut[E],!o.shadow&&(this.updater.setValue(i,o.fieldApi.getValue(),!1),this.updater.setError(i,o.fieldApi.getError(),!1),this.updater.setTouched(i,o.fieldApi.getTouched(),!1),s||this.emit("change"),this.emit("field",p))}},{key:"deregister",value:function(i){var o=this.fieldsById.get(i),s=o.field;_t("Deregister",i,s),delete this.onScreen[i];var p=Wl(s,this.expectedRemovals),m=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(o.keepState||o.inMultistep)&&!p&&(_t("Saving field ".concat(s,"'s value"),o.fieldApi.getFieldState()),o.shadow?pt.set(this.savedValues,"shadow-".concat(s),o.fieldApi.getFieldState()):pt.set(this.savedValues,s,o.fieldApi.getFieldState())),(p||!o.keepState&&!o.inMultistep||!o.fieldApi.getIsRelevant()&&!o.keepState)&&(_t("Removing field",s),this.fieldsById.delete(i),p||(pt.delete(this.state.values,s),pt.delete(this.state.touched,s),pt.delete(this.state.errors,s),o.shadow?pt.delete(this.savedValues,"shadow-".concat(s)):pt.delete(this.savedValues,s)),p&&this.pulledOut[m]&&(_t("Pulling out",s,"with magic value",m),pt.pullOut(this.state.values,m),pt.pullOut(this.state.touched,m),pt.pullOut(this.state.errors,m),pt.pullOut(this.savedValues,m),delete this.pulledOut[m])),this.emit("change")}},{key:"expectRemoval",value:function(i){_t("Expecting removal of",i),this.expectedRemovals[i]=!0,this.pulledOut[i]=!0}},{key:"update",value:function(i,o,s){_t("Update",i,o.field,s,o.fieldState.value);var p=o.fieldApi.getValue(),m=o.fieldApi.getError(),E=o.fieldApi.getTouched(),w=this.fieldsByName.get(s);s&&!w&&(pt.set(this.state.values,s),pt.set(this.state.errors,s),pt.set(this.state.touched,s)),pt.set(this.state.values,o.field,p),pt.set(this.state.errors,o.field,m),pt.set(this.state.touched,o.field,E),this.emit("change")}}]),t}(),yo=Re("informed:FormProvider "),gs=function(r){var i=r.children,o=r.formApi,s=r.formController,p=r.formState,m=C(r,["children","formApi","formController","formState"]);if(yo("Render FormProvider"),o)return yo("Render FormProvider with given values"),d.createElement(kt.Provider,{value:s.updater},d.createElement(Wt.Provider,{value:o},d.createElement(Ct.Provider,{value:p},i)));yo("Render FormProvider with generated values");var E=ms(m);return d.createElement(kt.Provider,{value:E.formController.updater},d.createElement(Wt.Provider,{value:E.formApi},d.createElement(Ct.Provider,{value:E.formState},i)))},ys=Re("informed:useForm "),ms=function(r){var i=r.dontPreventDefault,o=r.initialValues,s=r.validate,p=r.validateFields,m=r.allowEmptyStrings,E=r.preventEnter,w=r.getApi,A=r.apiRef,k=r.onChange,G=r.onReset,ne=r.onSubmit,te=r.onValueChange,fe=r.onSubmitFailure,ye=r.validationSchema,ge=r.schema,Ee=r.ajv,we=r.fieldMap,Te=r.onlyValidateSchema,$e=C(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);ys("Render useForm");var je=(0,d.useMemo)(function(){return{dontPreventDefault:i,initialValues:o,validate:s,validateFields:p,allowEmptyStrings:m,preventEnter:E,validationSchema:ye,schema:ge,ajv:Ee,fieldMap:we}},[i,o,s,p,m,E,ye,ge,Ee,we]),He=(0,d.useState)(function(){return new vs(je)}),Ne=Q(He,1),Ve=Ne[0];(0,d.useEffect)(function(){Ve.setOptions(je)},[je]),vt(function(){Ve.mount()},[]);var We=(0,d.useState)(function(){return Ve.getFormState()}),Je=Q(We,2),ze=Je[0],et=Je[1];vt(function(){var kr=function(){return k&&k(Ve.getFormState())},Cr=function(){return G&&G()},Yr=function(){return ne&&ne(Ve.getFormState().values)},wr=function(){return te&&te(Ve.getFormState().values)},Lr=function(){return fe&&fe(Ve.getFormState().errors)};return Ve.on("change",kr),Ve.on("reset",Cr),Ve.on("submit",Yr),Ve.on("value",wr),Ve.on("failure",Lr),function(){Ve.removeListener("change",kr),Ve.removeListener("reset",Cr),Ve.removeListener("submit",Yr),Ve.removeListener("value",wr),Ve.removeListener("failure",Lr)}},[k,G,ne,te,fe]),(0,d.useState)(function(){var kr=function(){ys("Setting form state"),et(Ve.getFormState())};Ve.on("change",kr),w&&w(Ve.getFormApi()),A&&(A.current=Ve.getFormApi())});var At=(0,d.useState)(function(){return Ve.getFormApi()}),Nt=Q(At,1),Ht=Nt[0],ar=function(Cr){return d.createElement(gs,{formApi:Ht,formState:ze,formController:Ve},d.createElement(d.Fragment,null,Cr||d.createElement(Xt,{schema:ge,onlyValidateSchema:Te})))};return{formApi:Ht,formState:ze,formController:Ve,render:ar,userProps:$e}},Hl=Re("informed:Form "),zl=function(r){var i=r.children,o=r.render,s=r.component,p=C(r,["children","render","component"]);Hl("Render FORM");var m=ms(p),E=m.formApi,w=m.formController,A=m.formState,k=m.render,G=m.userProps,ne=function(){var fe={formState:A,formApi:E};return s?d.createElement(s,fe,i):o?o(fe):typeof i=="function"?i(fe):i};return k(d.createElement("form",D({},G,{onReset:w.reset,onSubmit:w.submitForm,onKeyDown:w.keyDown}),ne()))},Lf=function(r,i){return j(j({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})},Df=function(r,i){var o=i.register,s=i.deregister,p=i.setValue,m=i.setTouched,E=i.setError,w=i.update,A=i.getField,k=i.expectRemoval,G=i.getInitialValue,ne=i.fieldMap,te=i.getSavedValue;return{register:function(ye){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return o.apply(void 0,["".concat(r,".").concat(ye)].concat(Ee))},deregister:function(ye){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return s.apply(void 0,["".concat(r,".").concat(ye)].concat(Ee))},update:function(ye){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return w.apply(void 0,["".concat(r,".").concat(ye)].concat(Ee))},setValue:function(ye){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return p.apply(void 0,["".concat(r,".").concat(ye)].concat(Ee))},setTouched:function(ye){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return m.apply(void 0,["".concat(r,".").concat(ye)].concat(Ee))},setError:function(ye){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return E.apply(void 0,["".concat(r,".").concat(ye)].concat(Ee))},getField:function(ye){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return A.apply(void 0,["".concat(r,".").concat(ye)].concat(Ee))},expectRemoval:function(ye){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return k.apply(void 0,["".concat(r,".").concat(ye)].concat(Ee))},getInitialValue:function(ye){return G("".concat(r,".").concat(ye))},getSavedValue:function(ye){return te("".concat(r,".").concat(ye))},fieldMap:ne}},Nf=function(r){var i=r.scope,o=r.children,s=useContext(kt),p=Ie(),m=ai(),E=useMemo(function(){return Lf(i,p)},[i]),w=useMemo(function(){return Df(i,s)},[i]);return React.createElement(kt.Provider,{value:w},React.createElement(Wt.Provider,{value:E},React.createElement(Ct.Provider,{value:m},o)))},Ai=function(r){var i=ai(),o={};Object.keys(r).length>0?Object.keys(r).forEach(function(te){o[te]=i[te]}):o=i;var s=o,p=s.pristine,m=s.dirty,E=s.invalid,w=s.values,A=s.errors,k=s.touched,G=s.validating,ne=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:p,dirty:m,invalid:E,values:w,errors:A,touched:k,validating:G,submitting:ne},null,2)))},Bf=function(r){var i=r.initialStep,o=r.multistepApiRef,s=Ie(),p=s.getValues,m=s.validate,E=s.screenValid,w=(0,d.useState)(new Map),A=Q(w,1),k=A[0],G=(0,d.useRef)(0),ne=Ge({current:i,steps:[],goal:null}),te=Q(ne,3),fe=te[0],ye=te[1],ge=te[2],Ee=(0,d.useState)(function(){var je=function(){var Ve=ge(),We=Ve.current,Je=k.get(We);return Je},He={getState:function(){return ge()},getCurrentStep:je,getStep:function(Ve){return k.get(Ve)},getNumberOfSteps:function(){return k.size},next:function(){if(m(),E()){var Ve=je(),We=Ve.getNext,Je=We(),ze=typeof Je=="function"?Je(p()):Je;ze&&ye(function(et){return j(j({},et),{},{current:ze})})}},back:function(){var Ve=je(),We=Ve.getPrevious,Je=We(),ze=typeof Je=="function"?Je(p()):Je;ze&&ye(function(et){return j(j({},et),{},{current:ze})})},setCurrent:function(Ve){if(Ve){var We=k.get(Ve).index;We<je().index?ye(function(Je){return j(j({},Je),{},{current:Ve,goal:null})}):ye(function(Je){return j(j({},Je),{},{goal:Ve})})}},register:function(Ve,We,Je){Je?(G.current=G.current+1,k.set(Ve,j(j({},We),{},{index:G.current}))):ye(function(ze){return j(j({},ze),{},{steps:Array.from(k.keys())})})},deregister:function(Ve){k.delete(Ve),G.current=G.current-1,ye(function(We){return j(j({},We),{},{steps:Array.from(k.keys())})})}};return o&&(o.current=He),He}),we=Q(Ee,1),Te=we[0],$e=function(He){return d.createElement($.Provider,{value:Te},d.createElement(z.Provider,{value:fe},He))};return j(j(j({},Te),fe),{},{render:$e})};function Uf(){return(0,d.useContext)(z)}function mo(){return(0,d.useContext)($)}var Ta=function(r){var i=r.step,o=r.next,s=r.previous,p=r.relevant,m=ai(),E=m.values,w=Uf(),A=w.current,k=w.goal,G=mo(),ne=G.register,te=G.deregister,fe=G.next,ye=i===A,ge=p?p(E):!0,Ee=(0,d.useRef)(o),we=(0,d.useRef)(s),Te=(0,d.useRef)();Ee.current=o,we.current=s,Te.current=p,(0,d.useState)(function(){ne(i,{name:i,getNext:function(){return Ee.current},getPrevious:function(){return we.current}},!0)}),(0,d.useEffect)(function(){return ne(i,{name:i,getNext:function(){return Ee.current},getPrevious:function(){return we.current}}),function(){te(i)}},[i]),(0,d.useEffect)(function(){k&&ye&&k!==i&&fe()},[k,ye]);var $e=function(He){return d.createElement(Se.Provider,{value:{relevant:function(Ve){return Te.current?Te.current(Ve):!0},multistep:!0}},ye&&ge?He:null)};return{isCurrent:ye,isRelevant:ge,step:i,render:$e}};function jf(t){var r=t.children,i=C(t,["children"]),o=Bf(i),s=o.render,p=C(o,["render"]);return s(typeof r=="function"?r(p):r)}jf.Step=function(r){var i=r.children,o=C(r,["children"]),s=Ta(o),p=s.render;return p(i)};var Id=function(r){var i=r.field,o=useContext(kt),s=o.fieldMap,p=Ie(),m=p.getFullField,E=p.getOptions,w=m(i),A=E(),k=A.schema,G=ae(w),ne=pt.get(k,G);if(!ne)return null;var te=re(i,ne),fe=te.props,ye=te.componentType,ge=s[ye];return React.createElement(ge,D({field:i},fe))},Fd=function(){var r=Ie(),i=r.getOptions,o=i(),s=o.schema;return React.createElement(Xt,{schema:s})},kd=function(r){return React.forwardRef(function(i,o){return React.createElement(Wt.Consumer,null,function(s){return React.createElement(r,D({formApi:s,ref:o},i))})})},Gl=function(r){return React.forwardRef(function(i,o){return React.createElement(Ct.Consumer,null,function(s){return React.createElement(r,D({formState:s,ref:o},i))})})},$l=function(r,i){return{getValue:function(){return r.getValue(i)},setValue:function(s){return r.setValue(i,s)},getTouched:function(){return r.getTouched(i)},setTouched:function(s){return r.setTouched(i,s)},getError:function(){return r.getError(i)},setError:function(s){return r.setError(i,s)},reset:function(){return r.resetField(i)},validate:function(){return r.validateField(i)},exists:function(){return r.fieldExists(i)},getDirty:function(){return r.getDirty(i)},getPristine:function(){return r.getPristine(i)},getFieldState:function(){return r.getField(i).fieldApi.getFieldState()}}};function Kl(t){var r=Ie(),i=useMemo(function(){return $l(r,t)},[t]);return i}function Yl(t){var r=Kl(t),i=Ie(),o=React.useState(),s=Q(o,2),p=s[1],m=React.useCallback(function(){return p({})},[]);return vt(function(){var E=function(A){A===t&&m()};return i.emitter.on("field",E),function(){i.emitter.removeListener("field",E)}},[]),vt(function(){m()},[]),r.getFieldState()||{}}var Vf=function(r){return function(i){return function(o){var s=Yl(r);return React.createElement(i,D({fieldState:s},o))}}},xs=function(r){return function(i){return function(o){var s=Kl(r);return React.createElement(i,D({fieldApi:s},o))}}},bs=function(r){var i=r.value,o=r.forwardedRef,s=r.children,p=C(r,["value","forwardedRef","children"]);return React.createElement("option",D({ref:o,value:i,key:i},p),s)},Jl=null,Pa=a(80150),ws=a(89356),Ui=a(63263),Wf=a(30699),xo=a(58377),Wn=a(28834),Xl=a(13038),Hf=a(32752),Ia=a(44341);function Ss(t,r,i){return r in t?Ia(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function oi(t,r){var i=ws(t);if(Ui){var o=Ui(t);r&&(o=Wf(o).call(o,function(s){return xo(t,s).enumerable})),i.push.apply(i,o)}return i}function fr(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};if(r%2){var o;Wn(o=oi(Object(i),!0)).call(o,function(p){Ss(t,p,i[p])})}else if(Xl)Hf(t,Xl(i));else{var s;Wn(s=oi(Object(i))).call(s,function(p){Ia(t,p,xo(i,p))})}}return t}var si=a(28583),ji=a.n(si),As=a(10240),Vi=a.n(As),Ei=a(8575),Wi=a(51446),Es=a(19996),Cs=a(78363),Ql=a(95238),Os=a(53592);function Ts(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}function Ps(t,r){var i;if(!!t){if(typeof t=="string")return Ts(t,r);var o=Ql(i=Object.prototype.toString.call(t)).call(i,8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Os(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Ts(t,r)}}function Hi(t,r){var i=typeof Wi!="undefined"&&Es(t)||t["@@iterator"];if(!i){if(Cs(t)||(i=Ps(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var o=0,s=function(){};return{s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(A){throw A},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
81
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,
|
|
82
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tn(t,r){return Gf(t)||
|
|
83
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pn(t){return qf(t)||$i(t)||Ps(t)||
|
|
80
|
+
`+ye)}else k[0]=ne+" "+k[0]}function a(k,G){if(k[0]=(G.useColors?"%c":"")+G.namespace,!!G.useColors){var ne="color: "+G.color,re=0,se=0;k[0].replace(/%[a-zA-Z%]/g,function(ye){ye!=="%%"&&(re++,ye==="%c"&&(se=re))}),k.splice(se,0,ne)}}var s=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function p(){var k;try{k=localStorage.getItem("debug")}catch(G){}return!k&&typeof process!="undefined"&&"env"in process&&(k={}.DEBUG),{namespaces:k||"",colors:s,useColors:!0,formatArgs:a}}function y(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:i}}function E(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,G=arguments.length>1?arguments[1]:void 0;return function(){for(var ne=arguments.length,re=new Array(ne),se=0;se<ne;se++)re[se]=arguments[se];k&&re.unshift(k);var ye=G.namespaces.split(",").map(function(Pe){return Pe[Pe.length-1]==="*"?new RegExp("^"+Pe.slice(0,Pe.length-1)+".*$"):new RegExp("^"+Pe+"$")}),ge=ye.some(function(Pe){return Pe.test(k)}),Ee={color:r(k,G.colors),namespace:k,useColors:G.useColors};if(!1)var me}}function w(k){return E(k,y())}function A(k){return E(k,p())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?t.exports=A:t.exports=w}),Te=Me("informed:ObjMap "),rt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},Ze=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(p,y){return p!=null?p[y]:p},r);return s===void 0||s===r?a:s},Xe=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},ft=function(r){return r.replace(Xe(r),"").replace(/\./,"")},ht=function(r,i){var a=Xe(i),s=ft(i),p=a?Ze(r,a):r;return!!(p&&Object.hasOwnProperty.call(p,s.replace(/\[(.*)\]/,"$1")))},bt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,E){return y===E.length-1?(s[p]=a,s[p]):s[p]===void 0?(Number.isInteger(+E[y+1])?s[p]=[]:s[p]={},s[p]):(Number.isInteger(+E[y+1])&&!Array.isArray(s[p])&&(s[p]=[]),s[p])},r)},nt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=!1;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,E){return s===void 0?s:(y===E.length-1&&(delete s[p],a=!0),s[p])},r),a},ut=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,E){return s===void 0?s:(y===E.length-1&&Array.isArray(s)&&(a=s.splice(p,1)),s[p])},r),a},yt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Object.keys(r);return i.map(function(a){return r[a]})},mt=function(r){var i=rt(r);return Number.isInteger(+i[i.length-1])},pt=function(){function t(){b(this,t)}return g(t,null,[{key:"empty",value:function(i){return yt(i).length===0}},{key:"get",value:function(i,a){var s=Ze(i,a);return s}},{key:"has",value:function(i,a){return ht(i,a)}},{key:"set",value:function(i,a,s){if(s!==void 0)Te("SETTING",a,s),bt(i,a,s);else if(mt(a)&&t.get(i,a)!==void 0){Te("Special case SETTING",a,"to undefined"),bt(i,a,void 0);var p=rt(a);p=p.slice(0,p.length-1),Mt(i,p)}else!mt(a)&&t.get(i,a)!==void 0&&(Te("Special case REMOVING",a,"from object completley"),t.delete(i,a))}},{key:"delete",value:function(i,a){Te("DELETE",a),mt(a)?(Te("ARRAY",a),this.pullOut(i,a)):nt(i,a);var s=rt(a);s=s.slice(0,s.length-1),Mt(i,s)}},{key:"pullOut",value:function(i,a){var s=rt(a),p=s[s.length-1];s=s.slice(0,s.length-1),Te("Pulling out:",s,"index",p);var y=Ze(i,s);Te("Array",y),Array.isArray(y)&&ut(y,p),Mt(i,s)}}]),t}();function Mt(t,r){if(r.length!==0){var i=Ze(t,r);(Array.isArray(i)?i.every(function(a){return a==null}):JSON.stringify(i)==="{}")&&nt(t,r),Mt(t,r.slice(0,r.length-1))}}var kt=d.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),Ct=d.createContext({}),Wt=d.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),jt=d.createContext(),Vt=d.createContext(),St=d.createContext(),Dt=d.createContext(),ve=d.createContext(),z=d.createContext(),$=d.createContext(),Se=d.createContext();function Ie(){var t=(0,d.useContext)(Wt);return t}function $e(t){var r=(0,d.useRef)(),i=(0,d.useRef)(!0),a=(0,d.useState)(t),s=Q(a,2),p=s[0],y=s[1];r.current=p;var E=function(k){r.current=k,i.current&&y(k)},w=function(){return r.current};return(0,d.useEffect)(function(){return function(){i.current=!1}},[]),[p,E,w]}var Ke=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},P=function(r){var i={};if(r.inner){if(r.inner.length===0){pt.set(i,r.path,r.message);return}var a=Fe(r.inner),s;try{for(a.s();!(s=a.n()).done;){var p=s.value;pt.get(i,p.path)||pt.set(i,p.path,p.message)}}catch(y){a.e(y)}finally{a.f()}}return i},Re=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(s){var a=P(s);return a}},K=function(r){if(r.inner){if(r.inner.length===0)return;var i=r.inner[0];return i.message}},T=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(a){return K(a)}},O=function(r,i){r(i);var a={};return r.errors&&r.errors.forEach(function(s){var p=s.message,y=s.dataPath,E=s.keyword,w=s.params,A=y;E==="required"&&(A="".concat(A,".").concat(w.missingProperty)),A=A.replace(".",""),pt.set(a,A,p)}),a},le=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var i=Math.random()*16|0,a=r=="x"?i:i&3|8;return a.toString(16)})},N=function(r,i){var a;return function(){for(var p=arguments.length,y=new Array(p),E=0;E<p;E++)y[E]=arguments[E];var w=function(){clearTimeout(a),r.apply(void 0,y)};clearTimeout(a),a=setTimeout(w,i)}},te=function(r,i,a){var s=i["ui:control"],p=i["informed:props"],y=i["input:props"],E=i["ui:before"],w=i["ui:after"],A=i.oneOf,k=i.items,G=i.enum,ne=i.title,re=i.minimum,se=i.maximum,ye=i.minLength,ge=i.maxLength,Ee=i.pattern,me=i.type,Pe=i.properties,Ge=le();y&&y.id&&(Ge=y.id);var je={componentType:s,field:a?"".concat(a,".").concat(r):r,type:me,uiBefore:E,uiAfter:w,properties:me==="object"?Pe:void 0,items:me==="array"?k:void 0,props:j(j({label:ne,id:Ge,min:re,max:se,minLength:ye,maxLength:ge,pattern:Ee},p),y)};if(A){var He=i.oneOf.map(function(We){var Je=We["input:props"],ze=Je===void 0?{}:Je;return j({value:We.const,label:We.title},ze)});je.props.options=He}if(G){var Ne=i.enum.map(function(We){return{value:We,label:We}});je.props.options=Ne}if(k&&k.oneOf){var Ve=k.oneOf.map(function(We){var Je=We["input:props"],ze=Je===void 0?{}:Je;return j({value:We.const,label:We.title},ze)});je.props.options=Ve}return je},de=function(r,i,a){if(!r||i)return[];var s=r.properties,p=s===void 0?{}:s,y=r.allOf,E=r.propertyOrder,w=E===void 0?[]:E;if(Object.keys(p).length>0){var A=Object.keys(p).sort(function(k,G){var ne=w.indexOf(k),re=w.indexOf(G);return(ne>-1?ne:w.length+1)-(re>-1?re:w.length+1)}).map(function(k){var G=p[k],ne=te(k,G,a);return ne});return y&&A.push({componentType:"conditionals",allOf:y}),A}return[]},oe=function(r){var i=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return i="properties.".concat(i),i},pe=function(r,i){if(typeof r=="string")return r.split("").map(function(a){return a==="#"?/\d/:a==="*"?/[\w]/:a});if(typeof r=="function")return r(i);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},Ae=function(r,i){for(var a=0,s=-1,p=!0;p&&a<r.length;)r[a]==i[a]?s=a:p=!1,a=a+1;return s},Be=function(r,i){if(!r)return{val:r,offset:0};var a="".concat(r),s=pe(i,a),p=s.findIndex(function(ge){return typeof ge!="string"}),y=s.length-Y(s).reverse().findIndex(function(ge){return typeof ge!="string"}),E=[],w=a.split(""),A=0,k=0,G=Ae(s.slice(0,p),w.slice(0,p));G>-1&&(A=G+1,E=E.concat(s.slice(0,G+1)),k=G+1),G<0&&(E=E.concat(s.slice(0,p)),k=p);for(var ne=k;ne<s.length;ne++){var re=s[ne];if(A!=w.length){var se=w[A];if(typeof re=="function")E.push(re(se)),A=A+1;else{var ye=typeof re=="string"?re===se:re.test(se);ye&&typeof re=="string"?(E.push(re),A=A+1):!ye&&typeof re=="string"?A!=w.length&&E.push(re):ye&&typeof re!="string"?(E.push(se),A=A+1):!ye&&typeof re!="string"&&(A=A+1,ne=ne-1)}}else if(typeof re=="string"&&ne>=y)E.push(re);else break}return{value:E.join(""),offset:a?E.length-a.length:0}},Ue=function(r,i){var a,s,p=new Intl.NumberFormat(r,i),y=new Intl.NumberFormat(r),E=(a=(s=y.formatToParts(.1).find(function(ge){var Ee=ge.type;return Ee==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&a!==void 0?a:".";function w(ge,Ee){return ge instanceof RegExp&&Ee instanceof RegExp&&ge.source===Ee.source&&ge.global===Ee.global&&ge.ignoreCase===Ee.ignoreCase&&ge.multiline===Ee.multiline}function A(ge,Ee){for(var me=ge.length;me--;)if(Ee(ge[me]))return me;return-1}function k(ge,Ee,me){var Pe=Y(ge);return Array.isArray(me)?Pe.splice.apply(Pe,[Ee,0].concat(Y(me))):Pe.splice(Ee,0,me),Pe}function G(ge){return"".concat(ge).replace(/\D/g,"")}function ne(ge){return"".concat(ge).split(E).map(function(Ee){return G(Ee)}).join(".")}function re(ge){if(typeof ge=="number")return ge;var Ee=parseFloat(ne(ge));return Number.isNaN(Ee)?void 0:Ee}function se(ge){var Ee=ne(ge),me="".concat(Ee).split(".")[1],Pe=p.formatToParts(Number(Ee));me==="0"&&Pe.push({type:"decimal",value:E},{type:"fraction",value:me});var Ge=Pe.reduce(function(Ne,Ve){var We=Ve.type,Je=Ve.value;return["decimal","fraction"].includes(We)&&me==null?Ne:["integer","fraction"].includes(We)?[].concat(Y(Ne),Y(Je.split("").filter(function(ze,et){return We==="fraction"?et<me.length:!0}).map(function(){return/\d/}))):We==="currency"?[].concat(Y(Ne),Y(Je.split(""))):[].concat(Y(Ne),[Je])},[]),je=A(Ge,function(Ne){return w(Ne,/\d/)});Ge.indexOf(E)===-1&&"".concat(ge).indexOf(E)!==-1&&(Ge=k(Ge,je+1,[E,"[]"]),je+=2);var He=Ge.slice(je+1).join("");return Ge=[].concat(Y(Ge.slice(0,je+1)),[He]),Ge}var ye=function(Ee){if(Ee!=null)return re(Ee)};return{formatter:se,parser:ye}},Qe=Object.freeze({__proto__:null,getChildDisplayName:Ke,yupToFormErrors:P,validateYupSchema:Re,yupToFormError:K,validateYupField:T,validateAjvSchema:O,uuidv4:le,debounce:N,computeFieldFromProperty:te,computeFieldsFromSchema:de,getSchemaPathFromJsonPath:oe,informedFormat:Be,createIntlNumberFormatter:Ue}),vt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?d.useLayoutEffect:d.useEffect,Et=function(r){var i=r.value,a=r.inputRef,s=r.maintainCursor,p=s===void 0?!0:s,y=$e(0),E=Q(y,3),w=E[0],A=E[1],k=E[2],G=$e(0),ne=Q(G,3),re=ne[0],se=ne[1],ye=ne[2];return vt(function(){if(a.current!=null&&k()){var ge=k()+ye();ye()!=0&&p?a.current.setSelectionRange(ge+1,ge+1):p&&a.current.setSelectionRange(ge,ge)}},[i]),{setCursorOffset:se,setCursor:A,cursor:w,getCursor:k,cursorOffset:re}},Bt=function(r,i){var a=(0,d.useRef)(!0),s=a.current;(0,d.useEffect)(function(){if(s)a.current=!1;else return r()},i)},Pt=Me("informed:useField "),pn=function(r,i,a,s,p){if(r!=null){if(p)return p(r);if(i)return i(r);if(a&&!s){var y=Be(r,a);return y.value}return r}},Nr=function(r,i,a,s){if(i&&a)return i(r);if(s){var p=Be(r,s);return p.value}return r},Or=function(r,i,a){var s=a.required;if(r||i)return function(p,y){if(i)return T(i,p);if(r)return r(p,y)};if(s)return function(p){return hn(p,s)}},mi=function(r){var i=r.fieldType,a=r.setValue,s=r.onChange,p=r.multiple,y=r.ref,E=function(A){return a(A)};return(i==="text"||i==="textArea"||i==="number")&&(E=function(A){return a(A.target.value,A)}),i==="select"&&(E=function(){var A=Array.from(y.current).filter(function(k){return k.selected}).map(function(k){return k.value});a(p?A:A[0]||"")}),i==="checkbox"&&(E=function(A){a(A.target.checked),s&&s(A)}),function(w){E(w)}},zr=function(r){var i=r.setTouched,a=r.onBlur;return function(s){i(!0),a&&a(s)}},Bi=function(r){var i=r.fieldType,a=r.maskedValue,s=r.multiple,p=r.value;switch(i){case"text":case"number":return!a&&a!==0?"":a;case"textArea":return a||"";case"select":return p||(s?[]:"");case"checkbox":return!!p;default:return p}},Bn=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},hn=function(r,i){if(i&&(r==null||r===""))return typeof i=="string"?i:"This field is required"};function Tn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,i=t.field,a=t.validate,s=t.asyncValidate,p=t.validationSchema,y=t.mask,E=t.maskWithCursorOffset,w=t.format,A=t.parse,k=t.formatter,G=t.parser,ne=t.initialValue,re=t.validateOnChange,se=t.validateOnBlur,ye=t.validateOnMount,ge=t.asyncValidateOnBlur,Ee=t.maskOnBlur,me=t.allowEmptyString,Pe=t.onValueChange,Ge=t.notify,je=t.keepState,He=t.maintainCursor,Ne=t.debug,Ve=t.shadow,We=t.step,Je=t.fieldType,ze=t.multiple,et=t.onChange,At=t.onBlur,Nt=t.formController,Ht=t.relevant,or=t.required,Mr=t.keepStateIfRelevant,Cr=t.initialize,Jr=t.formatterDependencies,wr=Jr===void 0?[]:Jr,Dr=C(t,["field","validate","asyncValidate","validationSchema","mask","maskWithCursorOffset","format","parse","formatter","parser","initialValue","validateOnChange","validateOnBlur","validateOnMount","asyncValidateOnBlur","maskOnBlur","allowEmptyString","onValueChange","notify","keepState","maintainCursor","debug","shadow","step","fieldType","multiple","onChange","onBlur","formController","relevant","required","keepStateIfRelevant","initialize","formatterDependencies"]),Sn=(0,d.useState)(le()),Yt=Q(Sn,1),Rt=Yt[0],Ut=(0,d.useContext)(kt),ar=(0,d.useContext)(Se),an=ar||Mr,mr=Ie(),hs=(0,d.useRef)(),Dl=(0,d.useRef)(!0),ha=(0,d.useRef)(),Di=(0,d.useRef)(!1),Nl=function(){return!Di.current},Ff=function(){return Di.current};Nt&&(Ut=Nt.updater,mr=Nt.getFormApi());var yi=Or(a,p,{required:or}),Bl=(0,d.useState)(function(){return Ut.getInitialValue(i)}),sm=Q(Bl,1),lm=sm[0],kf=Ut.getSavedValue(i),Mf,Th;(je||an)&&kf?(Pt("Setting field ".concat(Pd,"'s kept state"),kf),Mf=kf.value,Th=kf.touched,mr.removeSavedState(Pd)):ne!=null?Mf=ne:Mf=lm;var um=$e(pn(Mf,y,k,G,Cr)),hd=Q(um,3),Ul=hd[0],vd=hd[1],fm=hd[2],cm=$e(ye?yi(Ul):void 0),gd=Q(cm,3),Ph=gd[0],Ih=gd[1],dm=gd[2],pm=$e(Th),yd=Q(pm,3),Fh=yd[0],hm=yd[1],kh=yd[2],vm=(0,d.useState)(function(){return Nr(Ul,w,A,k)}),Mh=Q(vm,2),md=Mh[0],xd=Mh[1],Rh=(0,d.useRef)();Rh.current=md;var Lh=(0,d.useRef)(ne),va=(0,d.useRef)(i),Dh=(0,d.useRef)();Lh.current=ne,va.current=i;var gm=(0,d.useRef)(null),Ni=d.useMemo(function(){return r||gm},[]),bd=Et({value:Ul,inputRef:Ni,maintainCursor:!!He}),wd=bd.getCursor,ym=bd.setCursor,Sd=bd.setCursorOffset,mm=function(){return!0},Ad=function(sr){var sn=Ht||mm,Dn=mr.getFullField(va.current)||va.current,Jt={path:Dn,parentPath:Dn.replace(/(.*)[.[].*/,"$1"),get:function(Nn,Wl){return pt.get(Nn,Wl)}};return ar&&ar.relevant?sn(sr,Jt)&&ar.relevant(sr,Jt):sn(sr,Jt)},xm=$e(Ad(mr.getValues())),Ed=Q(xm,3),Rf=Ed[0],bm=Ed[1],Nh=Ed[2],wm=function(sr){return ar&&ar.relevant?ar.relevant(sr):!0},Sm=function(){var sr=Ad(mr.getValues()),sn=Nh();return sr!=sn&&bm(sr),sr};(0,d.useEffect)(function(){!Rf&&!je&&hs.current.reset()},[Rf]);var ni=function(){return Ve?mr.getDerrivedValue(i):fm()},jl=function(sr){var sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Dn=sn.preventUpdate;We&&mr.getStep()<We?(Pt("Setting ".concat(i,"'s error to undefined as we are not at that step")),Ih(void 0),Ut.setError(Rt,void 0,!Dn)):(Pt("Setting ".concat(i,"'s error to ").concat(sr)),Ih(sr),Ut.setError(Rt,sr,!Dn))},Cd=function(sr,sn){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jt=sr;Di.current=!0,Pt("Setting ".concat(i," to ").concat(Jt)),Cr&&(Jt=Cr(Jt));var ga=mr.getOptions(),Nn=Jt;if(Jt===""&&!me&&!Dn.allowEmptyString&&!ga.allowEmptyStrings&&(Jt=void 0),(t.type==="number"||Je==="number")&&Jt!==void 0&&(Jt=+Jt),sn&&sn.target&&sn.target.selectionStart&&ym(sn.target.selectionStart),y&&!Ee&&(Nn=y(Jt,wd()),Jt=y(Jt,wd())),E&&!Ee){var Wl=E(Jt,wd());Nn=Wl.value,Jt=Wl.value,Sd(Wl.offset)}if(w&&A&&(Jt=A(Jt),Nn=w(Jt)),k){var Bh=Be(Jt,k);Sd(Bh.offset),Nn=Bh.value,Jt=Nn}G&&(Jt=Jt!=null?G(Jt):Jt),yi&&re&&!Dn.initial&&(Pt("Validating after change ".concat(i," ").concat(Jt)),jl(yi(Jt,mr.getValues()))),vd(Jt),xd(Nn),Pe&&Pe(Jt),Ut.setValue(Rt,Jt,!Dn.preventUpdate)};Bt(function(){hs.current.setValue(Rh.current)},Y(wr));var Od=function(sr,sn){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jt=Dn.preventUpdate;if(Pt("Field ".concat(i," has been touched")),yi&&se&&!sn&&sr&&(Pt("Validating after blur ".concat(i," ").concat(ni())),jl(yi(ni(),mr.getValues()))),s&&ge&&!sn&&sr&&(Pt("Validating async after blur ".concat(i," ").concat(ni())),s(ni(),mr.getValues())),y&&Ee){var ga=y(ni());vd(ga),xd(ga),Pe&&Pe(ga),Ut.setValue(Rt,ga,!Jt)}if(E&&Ee){var Nn=E(ni());Sd(Nn.offset),vd(Nn.value),xd(Nn.value),Pe&&Pe(Nn.value),Ut.setValue(Rt,Nn.value,!Jt)}hm(sr),Ut.setTouched(Rt,sr,!Jt)},Am=function(){var sr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},sn=sr.preventUpdate,Dn=pn(Lh.current||Ut.getInitialValue(va.current),y,k,G,Cr);Cd(Dn,null,{initial:!0,preventUpdate:sn}),jl(ye?yi(Dn):void 0,{preventUpdate:sn}),Od(void 0,!0,{preventUpdate:sn}),Di.current=!1},Em=function(sr){yi&&(Pt("Field validating ".concat(i," ").concat(ni())),jl(yi(ni(),sr||mr.getValues())))},Cm=function(sr){s&&(Pt("Field async validating ".concat(i," ").concat(ni())),s(ni(),sr||mr.getValues()))},Td={setValue:Cd,setTouched:Od,setError:jl,reset:Am,validate:Em,asyncValidate:Cm,getValue:ni,getTouched:kh,getError:dm,getIsRelevant:Nh,getDirty:Ff,getPristine:Nl,getFieldState:function(){return{value:ni(),touched:kh(),dirty:Ff(),pristine:Nl()}},relevant:Ad,multistepRelevant:wm,checkRelevant:Sm};hs.current=Td;var Vl={value:Ul,error:Ph,touched:Fh,maskedValue:md,isRelevant:Rf,dirty:Di.current,pristine:!Di.current};Ve&&(Vl={error:Ph,touched:Fh}),Pt("Render",mr.getFullField(i),Vl),vt(function(){var _r=mr.getFullField(va.current);return Pt("Register",Rt,va.current),ha.current={field:_r,fieldId:Rt,fieldApi:Td,fieldState:Vl,notify:Ge,keepState:je,inMultistep:an,shadow:Ve},Ut.register(Rt,ha.current),function(){var sr=mr.getFullField(va.current);Pt("Deregister",Rt,sr),Ut.deregister(Rt)}},[]),(0,d.useEffect)(function(){var _r=mr.getFullField(i);return Dl.current?Dl.current=!1:(Pt("Update",i,an),ha.current.field=_r,Ut.update(Rt,ha.current,Dh.current)),function(){Dh.current=_r}},[i]),vt(function(){Ne&&Ni&&(Ni.current.style.border="5px solid orange",setTimeout(function(){Ni.current.style.borderWidth="2px",Ni.current.style.borderStyle="inset",Ni.current.style.borderColor="initial",Ni.current.style.borderImage="initial"},500))});var Om=[].concat(Y(Object.values(Vl)),Y(Object.values(t)),Y(Object.values(Dr))),Tm=function(sr){return(0,d.useMemo)(function(){return Rf?sr:null},Y(Om))},Pd=i,Pm=mi({fieldType:Je,setValue:Cd,onChange:et,multiple:ze,ref:Ni}),Im=zr({setTouched:Od,onBlur:At}),Fm=Bi({fieldType:Je,maskedValue:md,multiple:ze,value:Ul}),km=Bn(Je);return{fieldState:Vl,fieldApi:Td,render:Tm,ref:Ni,userProps:j(j({},Dr),{},{multiple:ze,onChange:et,onBlur:At,id:Dr.id||Rt}),informed:j({name:Pd,multiple:ze,onChange:Pm,onBlur:Im,value:Fm,ref:Ni,type:km,id:Dr.id||Rt},Dr)}}var Gr=function(r){var i=d.forwardRef(function(a,s){var p=Tn(a,s),y=p.fieldState,E=p.fieldApi,w=p.render,A=p.ref,k=p.userProps;return w(d.createElement(r,D({fieldApi:E,fieldState:y,field:a.field,forwardedRef:A,debug:a.debug,type:a.type},k)))});return i.displayName="asField(".concat(Ke(r),")"),i},xi=Me("informed:Text "),bi=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.maskedValue,y=i.setValue,E=i.setTouched,w=s.onChange,A=s.onBlur,k=s.field,G=s.initialValue,ne=s.forwardedRef,re=s.debug,se=s.label,ye=s.title,ge=s.id,Ee=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return xi("Render",k),vt(function(){re&&ne&&(ne.current.style.background="red",setTimeout(function(){ne.current.style.background="white"},500))}),d.createElement(d.Fragment,null,se?d.createElement("label",{htmlFor:ge}," ",se," "):null,d.createElement("input",D({},Ee,{id:ge,name:k,ref:ne,value:!p&&p!==0?"":p,onChange:function(Pe){y(Pe.target.value,Pe),w&&w(Pe)},onBlur:function(Pe){E(!0),A&&A(Pe)}})))},qr=Gr(bi),vn=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.maskedValue,y=i.setValue,E=i.setTouched,w=s.onChange,A=s.onBlur,k=s.field,G=s.initialValue,ne=s.forwardedRef,re=s.debug,se=s.label,ye=s.id,ge=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return vt(function(){re&&ne&&(ne.current.style.background="red",setTimeout(function(){ne.current.style.background="white"},500))}),d.createElement(d.Fragment,null,se?d.createElement("label",{htmlFor:ye}," ",se," "):null,d.createElement("textarea",D({},ge,{id:ye,name:k,ref:ne,value:p||"",onChange:function(me){y(me.target.value,me),w&&w(me)},onBlur:function(me){E(!0),A&&A(me)}})))},Un=Gr(vn),jn=Me("informed:Select "),gn=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.value,y=i.setTouched,E=s.onChange,w=s.onBlur,A=s.field,k=s.initialValue,G=s.options,ne=s.children,re=s.forwardedRef,se=s.debug,ye=s.multiple,ge=s.label,Ee=s.id,me=C(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),Pe=(0,d.useRef)(),Ge=function(He){var Ne=Array.from((re||Pe).current).filter(function(Ve){return Ve.selected}).map(function(Ve){return Ve.value});i.setValue(ye?Ne:Ne[0]||""),E&&He&&E(He)};return vt(function(){se&&re&&(re.current.style.background="red",setTimeout(function(){re.current.style.background="white"},500))}),jn("Render",A,p),d.createElement(d.Fragment,null,ge?d.createElement("label",{htmlFor:Ee}," ",ge," "):null,d.createElement("select",D({},me,{id:Ee,multiple:ye,name:A,ref:re||Pe,value:p||(ye?[]:""),onChange:Ge,onBlur:function(He){y(!0),w&&w(He)}}),G?G.map(function(je){return d.createElement("option",{key:je.value,value:je.value,disabled:je.disabled},je.label)}):ne))},Xn=Gr(gn),wi=function(r){var i=r.fieldApi,a=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=a.value,y=i.setValue,E=i.setTouched,w=s.onChange,A=s.onBlur,k=s.field,G=s.initialValue,ne=s.debug,re=s.forwardedRef,se=s.id,ye=s.label,ge=C(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return d.createElement(d.Fragment,null,ye?d.createElement("label",{htmlFor:se}," ",ye," "):null,d.createElement("input",D({},ge,{id:se,name:k,ref:re,checked:!!p,onChange:function(me){y(me.target.checked),w&&w(me)},onBlur:function(me){E(!0),A&&A(me)},type:"checkbox"})))},Br=Gr(wi),$r=function(r){return d.forwardRef(function(i,a){return d.createElement(jt.Consumer,null,function(s){var p=s.radioGroupApi,y=s.radioGroupState;return d.createElement(r,D({radioGroupApi:p,radioGroupState:y,ref:a},i))})})},Qn=function(r){var i=r.radioGroupApi,a=r.radioGroupState,s=C(r,["radioGroupApi","radioGroupState"]),p=a.value,y=i.setValue,E=i.setTouched,w=i.onChange,A=i.onBlur,k=s.value,G=s.onChange,ne=s.onBlur,re=s.field,se=s.initialValue,ye=s.forwardedRef,ge=C(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return d.createElement("input",D({},ge,{name:re,ref:ye,value:k,checked:p===k,onChange:function(me){!me.target.checked||(y(k),G&&G(me),w&&w(me))},onBlur:function(me){E(!0),ne&&ne(me),A&&A(me)},type:"radio"}))},ur=$r(Qn),Tt=function(t){q(i,t);var r=_(i);function i(){return b(this,i),r.apply(this,arguments)}return g(i,[{key:"render",value:function(){var s=this.props,p=s.options,y=s.children;return d.createElement(jt.Provider,{value:this.groupContext},p?p.map(function(E){return d.createElement("label",{key:E.value},E.label," ",d.createElement(ur,{value:E.value}))}):y)}},{key:"groupContext",get:function(){return{radioGroupApi:j(j({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),i}(d.Component),ii=Gr(Tt);function Si(){return(0,d.useContext)(St)}var An=function(){var r=Si(),i=r.add;return d.createElement("button",{onClick:function(){i()},type:"button"},"Add")};function Zt(){return(0,d.useContext)(Dt)}var Vn=function(){var r=Zt(),i=r.remove;return d.createElement("button",{onClick:function(){i()},type:"button"},"Remove")},Zn=Me("informed:useArrayField "),lo=function(r){var i=r.field,a=r.initialValue,s=r.validate,p=r.arrayFieldApiRef,y=C(r,["field","initialValue","validate","arrayFieldApiRef"]),E=Ie(),w=(0,d.useState)(new Map),A=Q(w,1),k=A[0],G=(0,d.useContext)(kt),ne=E.getFullField(i),re=G.getInitialValue(i)||a||[],se=E.getSavedValue(ne)&&E.getSavedValue(ne).value,ye=$e(se||re),ge=Q(ye,3),Ee=ge[0],me=ge[1],Pe=ge[2],Ge=Ee?Ee.map(function(){return le()}):[],je=$e(Ge),He=Q(je,3),Ne=He[0],Ve=He[1],We=He[2],Je=(0,d.useMemo)(function(){return function(Yt,Rt){var Ut=We()==null?0:We().length;return s?s(Yt,Ut,Rt):void 0}}),ze=Tn(j({field:i,validate:s?Je:void 0,shadow:!0},y)),et=ze.fieldApi;vt(function(){var Yt=function(Ut){Ut!==ne&&(Zn("".concat(ne," changed")),RegExp("".concat(ne,"\\[[0-9]+\\]")).test(Ut)&&et.validate())};return E.emitter.on("value",Yt),function(){E.emitter.removeListener("value",Yt)}},[i]);var At=function(Rt){Zn("EXPECTING REMOVAL OF","".concat(i,"[").concat(Rt,"] and ").concat(i,"[").concat(Ne.length-1,"]")),G.expectRemoval("".concat(i,"[").concat(Rt,"]")),G.expectRemoval("".concat(i,"[").concat(Ne.length-1,"]"));var Ut=Ne.slice(0,Rt).concat(Ne.slice(Rt+1,Ne.length));Ve(Ut);var ar=Pe(),an=ar.slice(0,Rt).concat(ar.slice(Rt+1,ar.length));me(an)},Nt=function(Rt,Ut){Zn("Swapping","".concat(i,"[").concat(Rt,"] and ").concat(i,"[").concat(Ut,"]"));var ar=Y(Ne);Ne[Rt]&&Ne[Ut]?(ar[Rt]=Ne[Ut],ar[Ut]=Ne[Rt]):console.warn("Attempted to swap ".concat(Rt," with ").concat(Ut," but one of them does not exist :(")),Ve(ar)},Ht=function(){Ne.push(le()),Ve(Y(Ne))},or=function(Rt){Ne.push(le()),Ve(Y(Ne));var Ut=Y(Pe());Ut[Ne.length-1]=Rt,me(Ut)},Mr=function(){var Rt=G.getInitialValue(i)||a||[];me(Rt);var Ut=Rt?Rt.map(function(){return le()}):[];Ve(Ut)},Cr=Ne.map(function(Yt,Rt){var Ut={remove:function(){return At(Rt)}},ar={initialValue:Ee&&Ee[Rt],key:Yt,field:"".concat(i,"[").concat(Rt,"]"),index:Rt};return j(j({arrayFieldItemApi:Ut,arrayFieldItemState:ar},Ut),ar)}),Jr={add:Ht,swap:Nt,addWithInitialValue:or,reset:Mr};p&&(p.current=Jr);var wr={fields:Cr,field:i},Dr=j(j({},G),{},{register:function(Rt,Ut){k.set(Rt,Ut);for(var ar=arguments.length,an=new Array(ar>2?ar-2:0),mr=2;mr<ar;mr++)an[mr-2]=arguments[mr];G.register.apply(G,[Rt,Ut].concat(an))},deregister:function(Rt){k.delete(Rt);for(var Ut=arguments.length,ar=new Array(Ut>1?Ut-1:0),an=1;an<Ut;an++)ar[an-1]=arguments[an];G.deregister.apply(G,[Rt].concat(ar))},getInitialValue:function(Rt){if(RegExp("".concat(ne,"\\[[0-9]+\\]")).test(Rt)){var Ut=Rt.replace(i,""),ar=pt.get(Pe(),Ut);return Zn("Resetting ".concat(Ut," to ").concat(ar)),ar}return G.getInitialValue(Rt)}}),Sn=function(Rt){return d.createElement(kt.Provider,{value:Dr},d.createElement(St.Provider,{value:Jr},d.createElement(Vt.Provider,{value:wr},Rt)))};return{render:Sn,add:Ht,swap:Nt,addWithInitialValue:or,fields:Cr,arrayFieldState:wr,arrayFieldApi:Jr,field:i}},ot=function(r,i){return j(j({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getSavedValue:function(s){return i.getSavedValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})};function Lt(t){var r=Ie(),i=(0,d.useMemo)(function(){return ot(t,r)},[t]);return i}function oi(){var t=(0,d.useContext)(Ct);return t}var ue=function(r){var i=r.when,a=r.children,s=oi(),p=i(s);return p?a:null},Oe=function(r){var i=r.relevant,a=r.field,s=C(r,["relevant","field"]),p=Ie();if(i){var y=p.getFullField(a),E={path:y,parentPath:y.replace(/(.*)[.[].*/,"$1"),get:function(k,G){return pt.get(k,G)}},w=function(k){var G=k.values;return i(G,E)};return d.createElement(ue,{when:w},d.createElement(qe,D({field:a},s)))}else return d.createElement(qe,D({field:a},s))},qe=function(r){var i=r.children,a=C(r,["children"]),s=lo(a),p=s.render,y=s.arrayFieldState,E=s.arrayFieldApi,w=s.field;return p(typeof i=="function"?i(j(j({field:w,arrayFieldApi:E,arrayFieldState:y},E),y)):i)},st=function(r){var i=r.arrayFieldItemState,a=r.arrayFieldItemApi,s=r.children,p=(0,d.useContext)(kt),y=Ie(),E=(0,d.useState)(0),w=Q(E,2),A=w[0],k=w[1],G=(0,d.useState)(new Map),ne=Q(G,1),re=ne[0],se=i.field,ye=Lt(se),ge=function(){var Ne=y.getState(),Ve=Ne.values,We=Ne.errors,Je=Ne.touched,ze={values:pt.get(Ve,se),errors:pt.get(We,se),touched:pt.get(Je,se)};return ze};(0,d.useEffect)(function(){var He=function(Ve){var We=Ve.slice(0,Ve.lastIndexOf("[")!=-1?Ve.lastIndexOf("]")+1:Ve.length);We===se&&k(Math.random())};return y.emitter.on("value",He),function(){y.emitter.removeListener("value",He)}},[se]);var Ee=function(){re.forEach(function(Ne){Ne.fieldApi.reset()})},me=ge(),Pe=j(j({},p),{},{register:function(Ne,Ve,We){re.set(Ne,Ve),p.register(Ne,Ve,We)},deregister:function(Ne){re.delete(Ne);for(var Ve=arguments.length,We=new Array(Ve>1?Ve-1:0),Je=1;Je<Ve;Je++)We[Je-1]=arguments[Je];p.deregister.apply(p,[Ne].concat(We))}}),Ge=j(j(j({},a),ye),{},{reset:Ee}),je=j(j({},i),me);return typeof s=="function"?d.createElement(kt.Provider,{value:Pe},d.createElement(Dt.Provider,{value:Ge},d.createElement(ve.Provider,{value:je},s(j(j({arrayFieldItemApi:Ge,arrayFieldItemState:je},Ge),je))))):d.createElement(kt.Provider,{value:Pe},d.createElement(Dt.Provider,{value:Ge},d.createElement(ve.Provider,{value:je},s)))};Oe.Items=function(t){var r=t.children,i=(0,d.useContext)(Vt),a=i.fields;return a.map(function(s){var p=s.arrayFieldItemState,y=s.arrayFieldItemApi,E=p.key;return d.createElement(st,{key:E,arrayFieldItemApi:y,arrayFieldItemState:p},r)})};var lt=function(r){var i=r.components,a=(0,d.useContext)(kt),s=a.fieldMap;return i?i.map(function(p,y){var E=p["ui:control"],w=s[E];return d.createElement(w,{key:"ui-comp-".concat(y)})}):null},Kt=Me("informed:FormFields "),Xt=function t(r){var i=r.schema,a=r.prefix,s=r.onlyValidateSchema,p=(0,d.useContext)(kt),y=p.fieldMap,E=(0,d.useMemo)(function(){var w=de(i,s,a),A=w.map(function(k,G){var ne=k.field,re=k.props,se=k.type,ye=k.properties,ge=k.items,Ee=k.componentType,me=k.uiBefore,Pe=k.uiAfter,Ge=k.allOf,je=y[Ee];return Kt("Rendering Field",ne,k),!je&&se==="object"&&ye?d.createElement(t,{schema:k,prefix:ne,key:"ScheamField-".concat(G)}):!je&&se==="array"&&ge?d.createElement(Tr,D({key:"ScheamField-".concat(G),field:ne,items:ge,uiBefore:me,uiAfter:Pe},re)):je&&Ee==="array"&&ge&&se==="array"?d.createElement(je,D({key:"ScheamField-".concat(G),field:ne,items:ge,uiBefore:me,uiAfter:Pe},re)):Ee==="conditionals"?Ge.map(function(He){var Ne=He.then,Ve=He.if.properties,We=function(ze){var et=ze.values;return Object.keys(Ve).every(function(At){var Nt=Ve[At];return et[At]===Nt.const})};return d.createElement(ue,{key:"ScheamField-".concat(G),when:We},d.createElement(t,{schema:Ne}))}):je?d.createElement(je,D({key:"ScheamField-".concat(G),field:ne},re)):null});return A},[i,a]);return E},Tr=function(r){var i=r.field,a=r.items,s=r.uiBefore,p=r.uiAfter,y=C(r,["field","items","uiBefore","uiAfter"]);return d.createElement(Oe,D({field:i},y),d.createElement(lt,{components:s}),d.createElement(Oe.Items,null,function(E){var w=E.field;return d.createElement(d.Fragment,null,d.createElement(lt,{components:a["ui:before"]}),d.createElement(Xt,{schema:a,prefix:w}),d.createElement(lt,{components:a["ui:after"]}))}),d.createElement(lt,{components:p}))},Pr={select:Xn,input:qr,textarea:Un,checkbox:Br,radio:ii,add:An,remove:Vn,array:Tr},_t=Me("informed:Controller "),Hl=function(r,i){var a=Object.keys(i).find(function(p){return r.includes(p)});if(!!a){var s=r.slice(0,a.length);return s===a}},en=function(){},vs=function(){function t(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};b(this,t),this.options=i,this.subscriptions=new Map;var a=i.ajv,s=i.schema,p=i.fieldMap;this.ajv=a?new a({allErrors:!0}):null,this.ajvValidate=a?this.ajv.compile(s):null,this.fieldMap=p||Pr,this.fieldsById=new Map,this.fieldsByName={get:function(E){var w;return r.fieldsById.forEach(function(A){A&&A.field===E&&(w=A)}),w}},this.onScreen={},this.expectedRemovals={},this.pulledOut={},this.savedValues={},this.state={pristine:!0,dirty:!1,invalid:!1,submits:0,step:0,validating:0,submitting:!1,values:{},errors:{},touched:{}},this.dummyField={fieldApi:{setValue:en,setTouched:en,setError:en,reset:en,validate:en,getValue:en,getTouched:en,getError:en,getFieldState:en,checkRelevant:en,getPristine:en,getDirty:en}},this.deregister=this.deregister.bind(this),this.register=this.register.bind(this),this.getValue=this.getValue.bind(this),this.getTouched=this.getTouched.bind(this),this.getError=this.getError.bind(this),this.getErrors=this.getErrors.bind(this),this.setValue=this.setValue.bind(this),this.getValues=this.getValues.bind(this),this.getStep=this.getStep.bind(this),this.setStep=this.setStep.bind(this),this.back=this.back.bind(this),this.next=this.next.bind(this),this.setCurrent=this.setCurrent.bind(this),this.setTouched=this.setTouched.bind(this),this.setError=this.setError.bind(this),this.setFormError=this.setFormError.bind(this),this.submitForm=this.submitForm.bind(this),this.reset=this.reset.bind(this),this.update=this.update.bind(this),this.validate=this.validate.bind(this),this.screenValid=this.screenValid.bind(this),this.keyDown=this.keyDown.bind(this),this.getField=this.getField.bind(this),this.getInitialValue=this.getInitialValue.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getOptions=this.getOptions.bind(this),this.getFormState=this.getFormState.bind(this),this.expectRemoval=this.expectRemoval.bind(this),this.getSavedValue=this.getSavedValue.bind(this),this.removeSavedState=this.removeSavedState.bind(this),this.getDerrivedValue=this.getDerrivedValue.bind(this),this.setValues=this.setValues.bind(this),this.resetField=this.resetField.bind(this),this.fieldExists=this.fieldExists.bind(this),this.validateField=this.validateField.bind(this),this.notify=this.notify.bind(this),this.validating=this.validating.bind(this),this.validated=this.validated.bind(this),this.getDirty=this.getDirty.bind(this),this.getPristine=this.getPristine.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.removeListener=this.removeListener.bind(this),this.updater={register:this.register,deregister:this.deregister,getField:this.getField,update:this.update,fieldMap:this.fieldMap,setValue:function(E,w){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(E);k.shadow||pt.set(r.state.values,k.field,k.fieldApi.getValue()),k.fieldApi.relevant(r.state.values)||pt.delete(r.state.values,k.field),r.fieldsById.forEach(function(G){var ne=G.fieldApi.checkRelevant();(!G.fieldApi.multistepRelevant(r.state.values)||!ne&&!G.keepState)&&(pt.delete(r.state.values,G.field),pt.delete(r.state.touched,G.field),pt.delete(r.state.errors,G.field))}),A&&(r.emit("change"),r.emit("field",k.field),r.emit("value",k.field,w))},setTouched:function(E,w){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(E);!k.shadow&&k.fieldApi.getIsRelevant()&&pt.set(r.state.touched,k.field,k.fieldApi.getTouched()),k.shadow&&k.fieldApi.getError()!=null&&k.fieldApi.relevant(r.state.values)&&pt.set(r.state.touched,k.field,k.fieldApi.getTouched()),A&&(r.emit("change"),r.emit("field",k.field))},setError:function(E,w){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(E);!k.shadow&&k.fieldApi.getIsRelevant()&&pt.set(r.state.errors,k.field,k.fieldApi.getError());var G=pt.get(r.state.errors,k.field);(k.shadow&&k.fieldApi.getError()!=null&&k.fieldApi.relevant(r.state.values)||k.shadow&&k.fieldApi.getError()===void 0&&k.fieldApi.relevant(r.state.values)&&typeof G=="string")&&pt.set(r.state.errors,k.field,k.fieldApi.getError()),A&&(r.emit("change"),r.emit("field",k.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",function(y){delete r.state.error,r.notify(y)})}return g(t,[{key:"emit",value:function(i){for(var a=arguments.length,s=new Array(a>1?a-1:0),p=1;p<a;p++)s[p-1]=arguments[p];var y=this.subscriptions.get(i);y&&y.forEach(function(E){return E.apply(void 0,s)})}},{key:"on",value:function(i,a){this.subscriptions.get(i)||this.subscriptions.set(i,new Set);var s=this.subscriptions.get(i);s.add(a)}},{key:"removeListener",value:function(i,a){var s=this.subscriptions.get(i);s.delete(a)}},{key:"setOptions",value:function(i){this.options=i}},{key:"setValue",value:function(i,a,s){this.getField(i).fieldApi.setValue(a,null,j({allowEmptyString:this.options.allowEmptyStrings},s))}},{key:"setTouched",value:function(i,a){this.getField(i).fieldApi.setTouched(a)}},{key:"setError",value:function(i,a){this.getField(i).fieldApi.setError(a)}},{key:"setFormError",value:function(i){this.state.error=i,this.emit("change")}},{key:"validating",value:function(){this.state.validating=this.state.validating+1,this.emit("change")}},{key:"validated",value:function(i,a){if(this.state.validating=this.state.validating-1,this.getError(i)||this.setError(i,a),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(_t("Submit",this.state),this.emit("submit")):(_t("Submit",this.state),this.emit("failure")),this.state.submitting=!1),this.emit("change")}},{key:"setStep",value:function(i){this.state.step=i,this.emit("change")}},{key:"setCurrent",value:function(i){this.state.Current=i,this.emit("change")}},{key:"back",value:function(i){this.state.step=this.state.step-1,this.state.Current=i,this.emit("change")}},{key:"next",value:function(i){this.validate(),this.screenValid()&&(this.state.step=this.state.step+1,this.state.Current=i),this.emit("change")}},{key:"setInitialValue",value:function(i,a){pt.set(this.options.initialValues,i,a)}},{key:"getFormState",value:function(){return _t("Returning form state"),j(j({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(i){var a=this.getValues();return pt.get(a,i)}},{key:"getValue",value:function(i){var a=this.getField(i).fieldApi.getValue();return _t("Getting value for",i,a),a}},{key:"getTouched",value:function(i){var a=this.getField(i).fieldApi.getTouched();return _t("Getting touched for",i,a),a}},{key:"getError",value:function(i){var a=this.getField(i).fieldApi.getError();return _t("Getting error for",i,a),a}},{key:"getDirty",value:function(i){var a=this.getField(i).fieldApi.getDirty();return _t("Getting dirty for",i,a),a}},{key:"getPristine",value:function(i){var a=this.getField(i).fieldApi.getPristine();return _t("Getting pristine for",i,a),a}},{key:"getValues",value:function(){return _t("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return _t("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return _t("Gettings errors"),this.state.errors}},{key:"getOptions",value:function(){return this.options}},{key:"getStep",value:function(){return this.state.step}},{key:"getSavedValue",value:function(i){var a=this.fieldsByName.get(i);return a&&a.shadow?pt.get(this.savedValues,"shadow-".concat(i)):pt.get(this.savedValues,i)}},{key:"removeSavedState",value:function(i){var a=this.fieldsByName.get(i);return a&&a.shadow?pt.delete(this.savedValues,"shadow-".concat(i)):pt.delete(this.savedValues,i)}},{key:"getFullField",value:function(i){return i}},{key:"getInitialValue",value:function(i){return pt.get(this.options.initialValues,i)}},{key:"getField",value:function(i){_t("Getting Field",i);var a=this.fieldsByName.get(i);return a||(console.warn("Attempting to get field ".concat(i," but it does not exist")),this.dummyField)}},{key:"notify",value:function(i){var a=this,s=this.getField(i);s&&s.notify&&s.notify.forEach(function(p){var y=".".concat(i),E="".concat(y.replace(/(.*)[.[].*/,"$1"),".").concat(p).slice(1),w=a.getField(E);w&&(_t("Notifying",w.field),w.fieldApi.validate(),w.fieldApi.checkRelevant())})}},{key:"validateField",value:function(i){this.getField(i).fieldApi.validate()}},{key:"resetField",value:function(i){this.getField(i).fieldApi.reset()}},{key:"fieldExists",value:function(i){return this.fieldsByName.get(i)!=null}},{key:"valid",value:function(){var i=this.getErrors();return!!(pt.empty(i)&&!this.state.error)}},{key:"screenValid",value:function(){var i=Object.entries(this.onScreen).some(function(a){var s=Q(a,2),p=s[1];return p.fieldApi.getError()});return!i}},{key:"invalid",value:function(){var i=this.getErrors();return!!(!pt.empty(i)||this.state.error)}},{key:"pristine",value:function(){var i=!0;return this.fieldsById.forEach(function(a){a.fieldApi.getPristine()||(i=!1)}),i}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){_t("Resetting"),this.fieldsById.forEach(function(i){i.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(i){_t("Setting values"),this.fieldsById.forEach(function(a){var s=pt.get(i,a.field);s!==void 0&&a.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var i=this;_t("Validating all fields");var a=this.getValues();if(this.options.validationSchema){var s=Re(this.options.validationSchema,a);this.fieldsById.forEach(function(w){if(pt.has(s,w.field)){var A=pt.get(s,w.field);i.setError(w.field,A)}else i.setError(w.field,void 0)})}if(this.options.schema&&this.options.ajv){var p=O(this.ajvValidate,a);this.fieldsById.forEach(function(w){if(pt.has(p,w.field)){var A=pt.get(p,w.field);i.setError(w.field,A)}else i.setError(w.field,void 0)})}if(this.fieldsById.forEach(function(w){w.fieldApi.validate(a),w.fieldApi.setTouched(!0,!0)}),this.options.validate){var y=this.options.validate(a);this.setFormError(y)}if(this.options.validateFields){var E=this.options.validateFields(a);this.fieldsById.forEach(function(w){if(pt.has(E,w.field)){var A=pt.get(E,w.field);i.setError(w.field,A)}})}}},{key:"asyncValidate",value:function(){_t("Async Validating all fields");var i=this.getValues();this.fieldsById.forEach(function(a){a.fieldApi.asyncValidate(i)})}},{key:"keyDown",value:function(i){if(i.keyCode==13&&this.options.preventEnter)return i.preventDefault(i),!1}},{key:"submitForm",value:function(i){this.state.submits=this.state.submits+1,this.state.submitting=!0,!this.options.dontPreventDefault&&i&&i.preventDefault(i),this.validate(),this.emit("change"),this.asyncValidate(),!(this.state.validating>0)&&(this.valid()?(_t("Submit",this.state),this.emit("submit")):(_t("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var i=this;this.fieldsById.forEach(function(a){i.emit("field",a.field)})}},{key:"register",value:function(i,a,s){var p=a.field,y=a.state;_t("Register ID:",i,"Name:",p,y,"Initial",s);var E=p.slice(0,p.lastIndexOf("[")!=-1?p.lastIndexOf("]")+1:p.length),w;this.fieldsById.forEach(function(A,k){A&&A.field===p&&(w=k)}),w&&(a.keepState||a.inMultistep)?(_t("Already Registered",p),this.fieldsById.delete(w)):w&&(!a.keepState||!a.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",p),_t("Fields Registered",this.fieldsById.size),this.onScreen[i]=a,this.fieldsById.set(i,a),_t("clearing expected removal",E),delete this.expectedRemovals[E],delete this.pulledOut[E],!a.shadow&&(this.updater.setValue(i,a.fieldApi.getValue(),!1),this.updater.setError(i,a.fieldApi.getError(),!1),this.updater.setTouched(i,a.fieldApi.getTouched(),!1),s||this.emit("change"),this.emit("field",p))}},{key:"deregister",value:function(i){var a=this.fieldsById.get(i),s=a.field;_t("Deregister",i,s),delete this.onScreen[i];var p=Hl(s,this.expectedRemovals),y=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(a.keepState||a.inMultistep)&&!p&&(_t("Saving field ".concat(s,"'s value"),a.fieldApi.getFieldState()),a.shadow?pt.set(this.savedValues,"shadow-".concat(s),a.fieldApi.getFieldState()):pt.set(this.savedValues,s,a.fieldApi.getFieldState())),(p||!a.keepState&&!a.inMultistep||!a.fieldApi.getIsRelevant()&&!a.keepState)&&(_t("Removing field",s),this.fieldsById.delete(i),p||(pt.delete(this.state.values,s),pt.delete(this.state.touched,s),pt.delete(this.state.errors,s),a.shadow?pt.delete(this.savedValues,"shadow-".concat(s)):pt.delete(this.savedValues,s)),p&&this.pulledOut[y]&&(_t("Pulling out",s,"with magic value",y),pt.pullOut(this.state.values,y),pt.pullOut(this.state.touched,y),pt.pullOut(this.state.errors,y),pt.pullOut(this.savedValues,y),delete this.pulledOut[y])),this.emit("change")}},{key:"expectRemoval",value:function(i){_t("Expecting removal of",i),this.expectedRemovals[i]=!0,this.pulledOut[i]=!0}},{key:"update",value:function(i,a,s){_t("Update",i,a.field,s,a.fieldState.value);var p=a.fieldApi.getValue(),y=a.fieldApi.getError(),E=a.fieldApi.getTouched(),w=this.fieldsByName.get(s);s&&!w&&(pt.set(this.state.values,s),pt.set(this.state.errors,s),pt.set(this.state.touched,s)),pt.set(this.state.values,a.field,p),pt.set(this.state.errors,a.field,y),pt.set(this.state.touched,a.field,E),this.emit("change")}}]),t}(),ya=Me("informed:FormProvider "),gs=function(r){var i=r.children,a=r.formApi,s=r.formController,p=r.formState,y=C(r,["children","formApi","formController","formState"]);if(ya("Render FormProvider"),a)return ya("Render FormProvider with given values"),d.createElement(kt.Provider,{value:s.updater},d.createElement(Wt.Provider,{value:a},d.createElement(Ct.Provider,{value:p},i)));ya("Render FormProvider with generated values");var E=ms(y);return d.createElement(kt.Provider,{value:E.formController.updater},d.createElement(Wt.Provider,{value:E.formApi},d.createElement(Ct.Provider,{value:E.formState},i)))},ys=Me("informed:useForm "),ms=function(r){var i=r.dontPreventDefault,a=r.initialValues,s=r.validate,p=r.validateFields,y=r.allowEmptyStrings,E=r.preventEnter,w=r.getApi,A=r.apiRef,k=r.onChange,G=r.onReset,ne=r.onSubmit,re=r.onValueChange,se=r.onSubmitFailure,ye=r.validationSchema,ge=r.schema,Ee=r.ajv,me=r.fieldMap,Pe=r.onlyValidateSchema,Ge=C(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);ys("Render useForm");var je=(0,d.useMemo)(function(){return{dontPreventDefault:i,initialValues:a,validate:s,validateFields:p,allowEmptyStrings:y,preventEnter:E,validationSchema:ye,schema:ge,ajv:Ee,fieldMap:me}},[i,a,s,p,y,E,ye,ge,Ee,me]),He=(0,d.useState)(function(){return new vs(je)}),Ne=Q(He,1),Ve=Ne[0];(0,d.useEffect)(function(){Ve.setOptions(je)},[je]),vt(function(){Ve.mount()},[]);var We=(0,d.useState)(function(){return Ve.getFormState()}),Je=Q(We,2),ze=Je[0],et=Je[1];vt(function(){var Mr=function(){return k&&k(Ve.getFormState())},Cr=function(){return G&&G()},Jr=function(){return ne&&ne(Ve.getFormState().values)},wr=function(){return re&&re(Ve.getFormState().values)},Dr=function(){return se&&se(Ve.getFormState().errors)};return Ve.on("change",Mr),Ve.on("reset",Cr),Ve.on("submit",Jr),Ve.on("value",wr),Ve.on("failure",Dr),function(){Ve.removeListener("change",Mr),Ve.removeListener("reset",Cr),Ve.removeListener("submit",Jr),Ve.removeListener("value",wr),Ve.removeListener("failure",Dr)}},[k,G,ne,re,se]),(0,d.useState)(function(){var Mr=function(){ys("Setting form state"),et(Ve.getFormState())};Ve.on("change",Mr),w&&w(Ve.getFormApi()),A&&(A.current=Ve.getFormApi())});var At=(0,d.useState)(function(){return Ve.getFormApi()}),Nt=Q(At,1),Ht=Nt[0],or=function(Cr){return d.createElement(gs,{formApi:Ht,formState:ze,formController:Ve},d.createElement(d.Fragment,null,Cr||d.createElement(Xt,{schema:ge,onlyValidateSchema:Pe})))};return{formApi:Ht,formState:ze,formController:Ve,render:or,userProps:Ge}},zl=Me("informed:Form "),Gl=function(r){var i=r.children,a=r.render,s=r.component,p=C(r,["children","render","component"]);zl("Render FORM");var y=ms(p),E=y.formApi,w=y.formController,A=y.formState,k=y.render,G=y.userProps,ne=function(){var se={formState:A,formApi:E};return s?d.createElement(s,se,i):a?a(se):typeof i=="function"?i(se):i};return k(d.createElement("form",D({},G,{onReset:w.reset,onSubmit:w.submitForm,onKeyDown:w.keyDown}),ne()))},Lf=function(r,i){return j(j({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})},Df=function(r,i){var a=i.register,s=i.deregister,p=i.setValue,y=i.setTouched,E=i.setError,w=i.update,A=i.getField,k=i.expectRemoval,G=i.getInitialValue,ne=i.fieldMap,re=i.getSavedValue;return{register:function(ye){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ee[me-1]=arguments[me];return a.apply(void 0,["".concat(r,".").concat(ye)].concat(Ee))},deregister:function(ye){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ee[me-1]=arguments[me];return s.apply(void 0,["".concat(r,".").concat(ye)].concat(Ee))},update:function(ye){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ee[me-1]=arguments[me];return w.apply(void 0,["".concat(r,".").concat(ye)].concat(Ee))},setValue:function(ye){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ee[me-1]=arguments[me];return p.apply(void 0,["".concat(r,".").concat(ye)].concat(Ee))},setTouched:function(ye){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ee[me-1]=arguments[me];return y.apply(void 0,["".concat(r,".").concat(ye)].concat(Ee))},setError:function(ye){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ee[me-1]=arguments[me];return E.apply(void 0,["".concat(r,".").concat(ye)].concat(Ee))},getField:function(ye){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ee[me-1]=arguments[me];return A.apply(void 0,["".concat(r,".").concat(ye)].concat(Ee))},expectRemoval:function(ye){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ee[me-1]=arguments[me];return k.apply(void 0,["".concat(r,".").concat(ye)].concat(Ee))},getInitialValue:function(ye){return G("".concat(r,".").concat(ye))},getSavedValue:function(ye){return re("".concat(r,".").concat(ye))},fieldMap:ne}},Nf=function(r){var i=r.scope,a=r.children,s=useContext(kt),p=Ie(),y=oi(),E=useMemo(function(){return Lf(i,p)},[i]),w=useMemo(function(){return Df(i,s)},[i]);return React.createElement(kt.Provider,{value:w},React.createElement(Wt.Provider,{value:E},React.createElement(Ct.Provider,{value:y},a)))},Ai=function(r){var i=oi(),a={};Object.keys(r).length>0?Object.keys(r).forEach(function(re){a[re]=i[re]}):a=i;var s=a,p=s.pristine,y=s.dirty,E=s.invalid,w=s.values,A=s.errors,k=s.touched,G=s.validating,ne=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:p,dirty:y,invalid:E,values:w,errors:A,touched:k,validating:G,submitting:ne},null,2)))},Bf=function(r){var i=r.initialStep,a=r.multistepApiRef,s=Ie(),p=s.getValues,y=s.validate,E=s.screenValid,w=(0,d.useState)(new Map),A=Q(w,1),k=A[0],G=(0,d.useRef)(0),ne=$e({current:i,steps:[],goal:null}),re=Q(ne,3),se=re[0],ye=re[1],ge=re[2],Ee=(0,d.useState)(function(){var je=function(){var Ve=ge(),We=Ve.current,Je=k.get(We);return Je},He={getState:function(){return ge()},getCurrentStep:je,getStep:function(Ve){return k.get(Ve)},getNumberOfSteps:function(){return k.size},next:function(){if(y(),E()){var Ve=je(),We=Ve.getNext,Je=We(),ze=typeof Je=="function"?Je(p()):Je;ze&&ye(function(et){return j(j({},et),{},{current:ze})})}},back:function(){var Ve=je(),We=Ve.getPrevious,Je=We(),ze=typeof Je=="function"?Je(p()):Je;ze&&ye(function(et){return j(j({},et),{},{current:ze})})},setCurrent:function(Ve){if(Ve){var We=k.get(Ve).index;We<je().index?ye(function(Je){return j(j({},Je),{},{current:Ve,goal:null})}):ye(function(Je){return j(j({},Je),{},{goal:Ve})})}},register:function(Ve,We,Je){Je?(G.current=G.current+1,k.set(Ve,j(j({},We),{},{index:G.current}))):ye(function(ze){return j(j({},ze),{},{steps:Array.from(k.keys())})})},deregister:function(Ve){k.delete(Ve),G.current=G.current-1,ye(function(We){return j(j({},We),{},{steps:Array.from(k.keys())})})}};return a&&(a.current=He),He}),me=Q(Ee,1),Pe=me[0],Ge=function(He){return d.createElement($.Provider,{value:Pe},d.createElement(z.Provider,{value:se},He))};return j(j(j({},Pe),se),{},{render:Ge})};function Uf(){return(0,d.useContext)(z)}function ma(){return(0,d.useContext)($)}var Po=function(r){var i=r.step,a=r.next,s=r.previous,p=r.relevant,y=oi(),E=y.values,w=Uf(),A=w.current,k=w.goal,G=ma(),ne=G.register,re=G.deregister,se=G.next,ye=i===A,ge=p?p(E):!0,Ee=(0,d.useRef)(a),me=(0,d.useRef)(s),Pe=(0,d.useRef)();Ee.current=a,me.current=s,Pe.current=p,(0,d.useState)(function(){ne(i,{name:i,getNext:function(){return Ee.current},getPrevious:function(){return me.current}},!0)}),(0,d.useEffect)(function(){return ne(i,{name:i,getNext:function(){return Ee.current},getPrevious:function(){return me.current}}),function(){re(i)}},[i]),(0,d.useEffect)(function(){k&&ye&&k!==i&&se()},[k,ye]);var Ge=function(He){return d.createElement(Se.Provider,{value:{relevant:function(Ve){return Pe.current?Pe.current(Ve):!0},multistep:!0}},ye&&ge?He:null)};return{isCurrent:ye,isRelevant:ge,step:i,render:Ge}};function jf(t){var r=t.children,i=C(t,["children"]),a=Bf(i),s=a.render,p=C(a,["render"]);return s(typeof r=="function"?r(p):r)}jf.Step=function(r){var i=r.children,a=C(r,["children"]),s=Po(a),p=s.render;return p(i)};var Id=function(r){var i=r.field,a=useContext(kt),s=a.fieldMap,p=Ie(),y=p.getFullField,E=p.getOptions,w=y(i),A=E(),k=A.schema,G=oe(w),ne=pt.get(k,G);if(!ne)return null;var re=te(i,ne),se=re.props,ye=re.componentType,ge=s[ye];return React.createElement(ge,D({field:i},se))},Fd=function(){var r=Ie(),i=r.getOptions,a=i(),s=a.schema;return React.createElement(Xt,{schema:s})},kd=function(r){return React.forwardRef(function(i,a){return React.createElement(Wt.Consumer,null,function(s){return React.createElement(r,D({formApi:s,ref:a},i))})})},$l=function(r){return React.forwardRef(function(i,a){return React.createElement(Ct.Consumer,null,function(s){return React.createElement(r,D({formState:s,ref:a},i))})})},Kl=function(r,i){return{getValue:function(){return r.getValue(i)},setValue:function(s){return r.setValue(i,s)},getTouched:function(){return r.getTouched(i)},setTouched:function(s){return r.setTouched(i,s)},getError:function(){return r.getError(i)},setError:function(s){return r.setError(i,s)},reset:function(){return r.resetField(i)},validate:function(){return r.validateField(i)},exists:function(){return r.fieldExists(i)},getDirty:function(){return r.getDirty(i)},getPristine:function(){return r.getPristine(i)},getFieldState:function(){return r.getField(i).fieldApi.getFieldState()}}};function Yl(t){var r=Ie(),i=useMemo(function(){return Kl(r,t)},[t]);return i}function Jl(t){var r=Yl(t),i=Ie(),a=React.useState(),s=Q(a,2),p=s[1],y=React.useCallback(function(){return p({})},[]);return vt(function(){var E=function(A){A===t&&y()};return i.emitter.on("field",E),function(){i.emitter.removeListener("field",E)}},[]),vt(function(){y()},[]),r.getFieldState()||{}}var Vf=function(r){return function(i){return function(a){var s=Jl(r);return React.createElement(i,D({fieldState:s},a))}}},xs=function(r){return function(i){return function(a){var s=Yl(r);return React.createElement(i,D({fieldApi:s},a))}}},bs=function(r){var i=r.value,a=r.forwardedRef,s=r.children,p=C(r,["value","forwardedRef","children"]);return React.createElement("option",D({ref:a,value:i,key:i},p),s)},Xl=null,Io=o(80150),ws=o(89356),Ui=o(63263),Wf=o(30699),xa=o(58377),Wn=o(28834),Ql=o(13038),Hf=o(32752),Fo=o(44341);function Ss(t,r,i){return r in t?Fo(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function ai(t,r){var i=ws(t);if(Ui){var a=Ui(t);r&&(a=Wf(a).call(a,function(s){return xa(t,s).enumerable})),i.push.apply(i,a)}return i}function fr(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};if(r%2){var a;Wn(a=ai(Object(i),!0)).call(a,function(p){Ss(t,p,i[p])})}else if(Ql)Hf(t,Ql(i));else{var s;Wn(s=ai(Object(i))).call(s,function(p){Fo(t,p,xa(i,p))})}}return t}var si=o(28583),ji=o.n(si),As=o(10240),Vi=o.n(As),Ei=o(8575),Wi=o(51446),Es=o(19996),Cs=o(78363),Zl=o(95238),Os=o(53592);function Ts(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,a=new Array(r);i<r;i++)a[i]=t[i];return a}function Ps(t,r){var i;if(!!t){if(typeof t=="string")return Ts(t,r);var a=Zl(i=Object.prototype.toString.call(t)).call(i,8,-1);if(a==="Object"&&t.constructor&&(a=t.constructor.name),a==="Map"||a==="Set")return Os(t);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Ts(t,r)}}function Hi(t,r){var i=typeof Wi!="undefined"&&Es(t)||t["@@iterator"];if(!i){if(Cs(t)||(i=Ps(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var a=0,s=function(){};return{s,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(A){throw A},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
81
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,E;return{s:function(){i=i.call(t)},n:function(){var A=i.next();return p=A.done,A},e:function(A){y=!0,E=A},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(y)throw E}}}}var zf=o(23882);function nr(t){return typeof Wi=="function"&&typeof zf=="symbol"?nr=function(i){return typeof i}:nr=function(i){return i&&typeof Wi=="function"&&i.constructor===Wi&&i!==Wi.prototype?"symbol":typeof i},nr(t)}function Gf(t){if(Cs(t))return t}function _l(t,r){var i=t&&(typeof Wi!="undefined"&&Es(t)||t["@@iterator"]);if(i!=null){var a=[],s=!0,p=!1,y,E;try{for(i=i.call(t);!(s=(y=i.next()).done)&&(a.push(y.value),!(r&&a.length===r));s=!0);}catch(w){p=!0,E=w}finally{try{!s&&i.return!=null&&i.return()}finally{if(p)throw E}}return a}}function ba(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
82
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tn(t,r){return Gf(t)||_l(t,r)||Ps(t,r)||ba()}var ql=o(69798);function eu(t,r,i,a,s,p,y){try{var E=t[p](y),w=E.value}catch(A){i(A);return}E.done?r(w):ql.resolve(w).then(a,s)}function Is(t){return function(){var r=this,i=arguments;return new ql(function(a,s){var p=t.apply(r,i);function y(w){eu(p,a,s,y,E,"next",w)}function E(w){eu(p,a,s,y,E,"throw",w)}y(void 0)})}}var ko=o(63109),ir=o.n(ko),$f=o(78580),wa=o.n($f),Mo=o(72119),tu=o.n(Mo),ru=o(66419),Kf=o.n(ru),Fs=o(59340),Ro=o.n(Fs),Yf=o(2991),qt=o.n(Yf),nu=o(86902),Qt=o.n(nu),Jf=o(77766),Ot=o.n(Jf),li=o(26295),Lo=o.n(li),ks=o(20116),ln=o.n(ks),ui=o(31905),zi=o(92495),Do=o.n(zi),Xf=o(93320),Ms=o.n(Xf),Qf=o(78718),Sa=o.n(Qf),Rs=o(23560),_n=o.n(Rs),Hn=o(88996);function Aa(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Ls(t,r){for(var i=0;i<r.length;i++){var a=r[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Fo(t,a.key,a)}}function Ds(t,r,i){return r&&Ls(t.prototype,r),i&&Ls(t,i),t}var iu=o(83863),ou=o(79542),Ns=o(24889);function Gi(t){return Gi=ou?Ns:function(i){return i.__proto__||Ns(i)},Gi(t)}function No(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&(t=Gi(t),t!==null););return t}function Bo(t,r,i){return typeof Reflect!="undefined"&&iu?Bo=iu:Bo=function(s,p,y){var E=No(s,p);if(!!E){var w=xa(E,p);return w.get?w.get.call(y):w.value}},Bo(t,r,i||t)}var au=o(189);function Uo(t,r){return Uo=ou||function(a,s){return a.__proto__=s,a},Uo(t,r)}function Ea(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=au(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&Uo(t,r)}var jo=o(13535);function Ca(){if(typeof Reflect=="undefined"||!jo||jo.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(jo(Boolean,[],function(){})),!0}catch(t){return!1}}function zn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function su(t,r){return r&&(nr(r)==="object"||typeof r=="function")?r:zn(t)}function Bs(t){var r=Ca();return function(){var a=Gi(t),s;if(r){var p=Gi(this).constructor;s=jo(a,arguments,p)}else s=a.apply(this,arguments);return su(this,s)}}var Us=o(94473),lu=o.n(Us),uu=o(57514),js=o.n(uu),Zf=function(r){var i=function(p,y){return{name:p,value:y}};if(_n()(r.prototype.set)||_n()(r.prototype.get)||_n()(r.prototype.getAll)||_n()(r.prototype.has))return r;var a=function(s){Ea(y,s);var p=Bs(y);function y(E){var w;return Aa(this,y),w=p.call(this,E),w.entryList=[],w}return Ds(y,[{key:"append",value:function(w,A,k){return this.entryList.push(i(w,A)),Bo(Gi(y.prototype),"append",this).call(this,w,A,k)}},{key:"set",value:function(w,A){var k,G=i(w,A);this.entryList=ln()(k=this.entryList).call(k,function(ne){return ne.name!==w}),this.entryList.push(G)}},{key:"get",value:function(w){var A,k=lu()(A=this.entryList).call(A,function(G){return G.name===w});return k===void 0?null:k}},{key:"getAll",value:function(w){var A,k;return qt()(A=ln()(k=this.entryList).call(k,function(G){return G.name===w})).call(A,function(G){return G.value})}},{key:"has",value:function(w){return this.entryList.some(function(A){return A.name===w})}}]),y}(r);return a};const _f=Zf(js());function qf(t){if(Cs(t))return Ts(t)}function $i(t){if(typeof Wi!="undefined"&&Es(t)!=null||t["@@iterator"]!=null)return Os(t)}function uo(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
83
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pn(t){return qf(t)||$i(t)||Ps(t)||uo()}var Vs=o(3649),In=o.n(Vs),fu=o(88996),Ws=fu.Buffer,Ki=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},Yi=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function Rr(t){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.escape,s=arguments.length>2?arguments[2]:void 0;return typeof t=="number"&&(t=t.toString()),typeof t!="string"||!t.length||!a?t:s?JSON.parse(t):qt()(r=Pn(t)).call(r,function(p){var y,E;if(Yi(p)||Ki(p)&&a==="unsafe")return p;var w=qt()(y=qt()(E=Ws.from(p).toJSON().data||[]).call(E,function(A){var k;return In()(k="0".concat(A.toString(16).toUpperCase())).call(k,-2)})).call(y,function(A){return"%".concat(A)}).join("");return w}).join("")}function qn(t){var r=t.value;return Array.isArray(r)?Ci(t):nr(r)==="object"?Oa(t):ec(t)}function Ci(t){var r=t.key,i=t.value,a=t.style,s=t.explode,p=t.escape,y=function(G){return Rr(G,{escape:p})};if(a==="simple")return qt()(i).call(i,function(k){return y(k)}).join(",");if(a==="label")return".".concat(qt()(i).call(i,function(k){return y(k)}).join("."));if(a==="matrix")return qt()(i).call(i,function(k){return y(k)}).reduce(function(k,G){var ne;if(!k||s){var re,se;return Ot()(re=Ot()(se="".concat(k||"",";")).call(se,r,"=")).call(re,G)}return Ot()(ne="".concat(k,",")).call(ne,G)},"");if(a==="form"){var E=s?"&".concat(r,"="):",";return qt()(i).call(i,function(k){return y(k)}).join(E)}if(a==="spaceDelimited"){var w=s?"".concat(r,"="):"";return qt()(i).call(i,function(k){return y(k)}).join(" ".concat(w))}if(a==="pipeDelimited"){var A=s?"".concat(r,"="):"";return qt()(i).call(i,function(k){return y(k)}).join("|".concat(A))}}function Oa(t){var r=t.key,i=t.value,a=t.style,s=t.explode,p=t.escape,y=function(A){return Rr(A,{escape:p})},E=Qt()(i);if(a==="simple")return E.reduce(function(w,A){var k,G,ne,re=y(i[A]),se=s?"=":",",ye=w?"".concat(w,","):"";return Ot()(k=Ot()(G=Ot()(ne="".concat(ye)).call(ne,A)).call(G,se)).call(k,re)},"");if(a==="label")return E.reduce(function(w,A){var k,G,ne,re=y(i[A]),se=s?"=":".",ye=w?"".concat(w,"."):".";return Ot()(k=Ot()(G=Ot()(ne="".concat(ye)).call(ne,A)).call(G,se)).call(k,re)},"");if(a==="matrix"&&s)return E.reduce(function(w,A){var k,G,ne=y(i[A]),re=w?"".concat(w,";"):";";return Ot()(k=Ot()(G="".concat(re)).call(G,A,"=")).call(k,ne)},"");if(a==="matrix")return E.reduce(function(w,A){var k,G,ne=y(i[A]),re=w?"".concat(w,","):";".concat(r,"=");return Ot()(k=Ot()(G="".concat(re)).call(G,A,",")).call(k,ne)},"");if(a==="form")return E.reduce(function(w,A){var k,G,ne,re,se=y(i[A]),ye=w?Ot()(k="".concat(w)).call(k,s?"&":","):"",ge=s?"=":",";return Ot()(G=Ot()(ne=Ot()(re="".concat(ye)).call(re,A)).call(ne,ge)).call(G,se)},"")}function ec(t){var r=t.key,i=t.value,a=t.style,s=t.escape,p=function(w){return Rr(w,{escape:s})};if(a==="simple")return p(i);if(a==="label")return".".concat(p(i));if(a==="matrix"){var y;return Ot()(y=";".concat(r,"=")).call(y,p(i))}if(a==="form")return p(i);if(a==="deepObject")return p(i,{},!0)}var Ta={serializeRes:cu,mergeInQueryOrForm:pu};function Oi(t){return Pa.apply(this,arguments)}function Pa(){return Pa=Is(ir().mark(function t(r){var i,a,s,p,y,E=arguments;return ir().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(i=E.length>1&&E[1]!==void 0?E[1]:{},nr(r)==="object"&&(i=r,r=i.url),i.headers=i.headers||{},Ta.mergeInQueryOrForm(i),i.headers&&Qt()(i.headers).forEach(function(k){var G=i.headers[k];typeof G=="string"&&(i.headers[k]=G.replace(/\n+/g," "))}),!i.requestInterceptor){A.next=12;break}return A.next=8,i.requestInterceptor(i);case 8:if(A.t0=A.sent,A.t0){A.next=11;break}A.t0=i;case 11:i=A.t0;case 12:return a=i.headers["content-type"]||i.headers["Content-Type"],/multipart\/form-data/i.test(a)&&(delete i.headers["content-type"],delete i.headers["Content-Type"]),A.prev=14,A.next=17,(i.userFetch||fetch)(i.url,i);case 17:return s=A.sent,A.next=20,Ta.serializeRes(s,r,i);case 20:if(s=A.sent,!i.responseInterceptor){A.next=28;break}return A.next=24,i.responseInterceptor(s);case 24:if(A.t1=A.sent,A.t1){A.next=27;break}A.t1=s;case 27:s=A.t1;case 28:A.next=39;break;case 30:if(A.prev=30,A.t2=A.catch(14),s){A.next=34;break}throw A.t2;case 34:throw p=new Error(s.statusText),p.status=s.status,p.statusCode=s.status,p.responseError=A.t2,p;case 39:if(s.ok){A.next=45;break}throw y=new Error(s.statusText),y.status=s.status,y.statusCode=s.status,y.response=s,y;case 45:return A.abrupt("return",s);case 46:case"end":return A.stop()}},t,null,[[14,30]])})),Pa.apply(this,arguments)}var Hs=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function Ia(t,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(t):Ms().safeLoad(t)}function cu(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.loadSpec,s=a===void 0?!1:a,p={ok:t.ok,url:t.url||r,status:t.status,statusText:t.statusText,headers:Gs(t.headers)},y=p.headers["content-type"],E=s||Hs(y),w=E?t.text:t.blob||t.buffer;return w.call(t).then(function(A){if(p.text=A,p.data=A,E)try{var k=Ia(A,y);p.body=k,p.obj=k}catch(G){p.parseError=G}return p})}function zs(t){var r=wa()(t).call(t,", ");return r?t.split(", "):t}function Gs(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return _n()(tu()(t))?Kf()(tu()(t).call(t)).reduce(function(r,i){var a=tn(i,2),s=a[0],p=a[1];return r[s]=zs(p),r},{}):{}}function Vo(t,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(t&&nr(t)==="object"&&typeof t.uri=="string"):typeof File!="undefined"&&t instanceof File||typeof Blob!="undefined"&&t instanceof Blob||typeof Hn.Buffer!="undefined"&&t instanceof Hn.Buffer?!0:t!==null&&nr(t)==="object"&&typeof t.pipe=="function"}function Fa(t,r){return Array.isArray(t)&&t.some(function(i){return Vo(i,r)})}var fo={form:",",spaceDelimited:"%20",pipeDelimited:"|"},ka={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function $s(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=r.collectionFormat,s=r.allowEmptyValue,p=r.serializationOption,y=r.encoding,E=nr(r)==="object"&&!Array.isArray(r)?r.value:r,w=i?function(G){return G.toString()}:function(G){return encodeURIComponent(G)},A=w(t);if(typeof E=="undefined"&&s)return[[A,""]];if(Vo(E)||Fa(E))return[[A,E]];if(p)return Wo(t,E,i,p);if(y){if([nr(y.style),nr(y.explode),nr(y.allowReserved)].some(function(G){return G!=="undefined"}))return Wo(t,E,i,Sa()(y,["style","explode","allowReserved"]));if(y.contentType){if(y.contentType==="application/json"){var k=typeof E=="string"?E:Ro()(E);return[[A,w(k)]]}return[[A,w(E.toString())]]}return nr(E)!=="object"?[[A,w(E)]]:Array.isArray(E)&&E.every(function(G){return nr(G)!=="object"})?[[A,qt()(E).call(E,w).join(",")]]:[[A,w(Ro()(E))]]}return nr(E)!=="object"?[[A,w(E)]]:Array.isArray(E)?a==="multi"?[[A,qt()(E).call(E,w)]]:[[A,qt()(E).call(E,w).join(ka[a||"csv"])]]:[[A,""]]}function Wo(t,r,i,a){var s,p=a.style||"form",y=typeof a.explode=="undefined"?p==="form":a.explode,E=i?!1:a&&a.allowReserved?"unsafe":"reserved",w=function(re){return Rr(re,{escape:E})},A=i?function(ne){return ne}:function(ne){return Rr(ne,{escape:E})};if(nr(r)!=="object")return[[A(t),w(r)]];if(Array.isArray(r))return y?[[A(t),qt()(r).call(r,w)]]:[[A(t),qt()(r).call(r,w).join(fo[p])]];if(p==="deepObject"){var k;return qt()(k=Qt()(r)).call(k,function(ne){var re;return[A(Ot()(re="".concat(t,"[")).call(re,ne,"]")),w(r[ne])]})}if(y){var G;return qt()(G=Qt()(r)).call(G,function(ne){return[A(ne),w(r[ne])]})}return[[A(t),qt()(s=Qt()(r)).call(s,function(ne){var re;return[Ot()(re="".concat(A(ne),",")).call(re,w(r[ne]))]}).join(",")]]}function tc(t){return Lo()(t).reduce(function(r,i){var a=tn(i,2),s=a[0],p=a[1],y=Hi($s(s,p,!0)),E;try{for(y.s();!(E=y.n()).done;){var w=tn(E.value,2),A=w[0],k=w[1];if(Array.isArray(k)){var G=Hi(k),ne;try{for(G.s();!(ne=G.n()).done;){var re=ne.value;r.append(A,re)}}catch(se){G.e(se)}finally{G.f()}}else r.append(A,k)}}catch(se){y.e(se)}finally{y.f()}return r},new _f)}function du(t){var r=Qt()(t).reduce(function(i,a){var s=Hi($s(a,t[a])),p;try{for(s.s();!(p=s.n()).done;){var y=tn(p.value,2),E=y[0],w=y[1];i[E]=w}}catch(A){s.e(A)}finally{s.f()}return i},{});return Do().stringify(r,{encode:!1,indices:!1})||""}function pu(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.url,i=r===void 0?"":r,a=t.query,s=t.form,p=function(){for(var Ee=arguments.length,me=new Array(Ee),Pe=0;Pe<Ee;Pe++)me[Pe]=arguments[Pe];var Ge=ln()(me).call(me,function(je){return je}).join("&");return Ge?"?".concat(Ge):""};if(s){var y=Qt()(s).some(function(ge){var Ee=s[ge].value;return Vo(Ee)||Fa(Ee)}),E=t.headers["content-type"]||t.headers["Content-Type"];y||/multipart\/form-data/i.test(E)?t.body=tc(t.form):t.body=du(s),delete t.form}if(a){var w=i.split("?"),A=tn(w,2),k=A[0],G=A[1],ne="";if(G){var re=Do().parse(G),se=Qt()(a);se.forEach(function(ge){return delete re[ge]}),ne=Do().stringify(re,{encode:!0})}var ye=p(ne,du(a));t.url=k+ye,delete t.query}return t}function Ks(t,r,i){return i=i||function(a){return a},r=r||function(a){return a},function(a){return typeof a=="string"&&(a={url:a}),Ta.mergeInQueryOrForm(a),a=r(a),i(t(a))}}var Ys=o(51942),rn=o.n(Ys),Ho=o(93476),Ji=o.n(Ho),Ma=o(92762),hu=o.n(Ma),zo=o(13311),vu=o.n(zo),Xi=o(50308),co=o.n(Xi);/*!
|
|
84
84
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
85
85
|
* (c) 2017 Joachim Wester
|
|
86
86
|
* MIT license
|
|
87
|
-
*/var Qi=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(
|
|
88
|
-
`)}var
|
|
87
|
+
*/var Qi=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var p in s)s.hasOwnProperty(p)&&(a[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),Go=Object.prototype.hasOwnProperty;function fi(t,r){return Go.call(t,r)}function Ra(t){if(Array.isArray(t)){for(var i=new Array(t.length),r=0;r<i.length;r++)i[r]=""+r;return i}if(Object.keys)return Object.keys(t);var i=[];for(var a in t)fi(t,a)&&i.push(a);return i}function yn(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}function La(t){for(var r=0,i=t.length,a;r<i;){if(a=t.charCodeAt(r),a>=48&&a<=57){r++;continue}return!1}return!0}function ci(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function Ti(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function Pi(t,r){var i;for(var a in t)if(fi(t,a)){if(t[a]===r)return ci(a)+"/";if(typeof t[a]=="object"&&(i=Pi(t[a],r),i!=""))return ci(a)+"/"+i}return""}function Md(t,r){if(t===r)return"/";var i=Pi(t,r);if(i==="")throw new Error("Object not found in root");return"/"+i}function Js(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)if(Js(t[r]))return!0}else if(typeof t=="object"){for(var a=Ra(t),s=a.length,r=0;r<s;r++)if(Js(t[a[r]]))return!0}}return!1}function gu(t,r){var i=[t];for(var a in r){var s=typeof r[a]=="object"?JSON.stringify(r[a],null,2):r[a];typeof s!="undefined"&&i.push(a+": "+s)}return i.join(`
|
|
88
|
+
`)}var yu=function(t){Qi(r,t);function r(i,a,s,p,y){var E=this.constructor,w=t.call(this,gu(i,{name:a,index:s,operation:p,tree:y}))||this;return w.name=a,w.index=s,w.operation=p,w.tree=y,Object.setPrototypeOf(w,E.prototype),w.message=gu(i,{name:a,index:s,operation:p,tree:y}),w}return r}(Error),Ir=yu,rc=yn,Ur={add:function(t,r,i){return t[r]=this.value,{newDocument:i}},remove:function(t,r,i){var a=t[r];return delete t[r],{newDocument:i,removed:a}},replace:function(t,r,i){var a=t[r];return t[r]=this.value,{newDocument:i,removed:a}},move:function(t,r,i){var a=Lr(i,this.path);a&&(a=yn(a));var s=cr(i,{op:"remove",path:this.from}).removed;return cr(i,{op:"add",path:this.path,value:s}),{newDocument:i,removed:a}},copy:function(t,r,i){var a=Lr(i,this.from);return cr(i,{op:"add",path:this.path,value:yn(a)}),{newDocument:i}},test:function(t,r,i){return{newDocument:i,test:$o(t[r],this.value)}},_get:function(t,r,i){return this.value=t[r],{newDocument:i}}},jr={add:function(t,r,i){return La(r)?t.splice(r,0,this.value):t[r]=this.value,{newDocument:i,index:r}},remove:function(t,r,i){var a=t.splice(r,1);return{newDocument:i,removed:a[0]}},replace:function(t,r,i){var a=t[r];return t[r]=this.value,{newDocument:i,removed:a}},move:Ur.move,copy:Ur.copy,test:Ur.test,_get:Ur._get};function Lr(t,r){if(r=="")return t;var i={op:"_get",path:r};return cr(t,i),i.value}function cr(t,r,i,a,s,p){if(i===void 0&&(i=!1),a===void 0&&(a=!0),s===void 0&&(s=!0),p===void 0&&(p=0),i&&(typeof i=="function"?i(r,0,t,r.path):Zi(r,0)),r.path===""){var y={newDocument:t};if(r.op==="add")return y.newDocument=r.value,y;if(r.op==="replace")return y.newDocument=r.value,y.removed=t,y;if(r.op==="move"||r.op==="copy")return y.newDocument=Lr(t,r.from),r.op==="move"&&(y.removed=t),y;if(r.op==="test"){if(y.test=$o(t,r.value),y.test===!1)throw new Ir("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y.newDocument=t,y}else{if(r.op==="remove")return y.removed=t,y.newDocument=null,y;if(r.op==="_get")return r.value=t,y;if(i)throw new Ir("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",p,r,t);return y}}else{a||(t=yn(t));var E=r.path||"",w=E.split("/"),A=t,k=1,G=w.length,ne=void 0,re=void 0,se=void 0;for(typeof i=="function"?se=i:se=Zi;;){if(re=w[k],s&&re=="__proto__")throw new TypeError("JSON-Patch: modifying `__proto__` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&ne===void 0&&(A[re]===void 0?ne=w.slice(0,k).join("/"):k==G-1&&(ne=r.path),ne!==void 0&&se(r,0,t,ne)),k++,Array.isArray(A)){if(re==="-")re=A.length;else{if(i&&!La(re))throw new Ir("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",p,r,t);La(re)&&(re=~~re)}if(k>=G){if(i&&r.op==="add"&&re>A.length)throw new Ir("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",p,r,t);var y=jr[r.op].call(r,A,re,t);if(y.test===!1)throw new Ir("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y}}else if(re&&re.indexOf("~")!=-1&&(re=Ti(re)),k>=G){var y=Ur[r.op].call(r,A,re,t);if(y.test===!1)throw new Ir("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y}A=A[re]}}}function Gn(t,r,i,a,s){if(a===void 0&&(a=!0),s===void 0&&(s=!0),i&&!Array.isArray(r))throw new Ir("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");a||(t=yn(t));for(var p=new Array(r.length),y=0,E=r.length;y<E;y++)p[y]=cr(t,r[y],i,!0,s,y),t=p[y].newDocument;return p.newDocument=t,p}function nc(t,r,i){var a=cr(t,r);if(a.test===!1)throw new Ir("Test operation failed","TEST_OPERATION_FAILED",i,r,t);return a.newDocument}function Zi(t,r,i,a){if(typeof t!="object"||t===null||Array.isArray(t))throw new Ir("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,t,i);if(Ur[t.op]){if(typeof t.path!="string")throw new Ir("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,t,i);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new Ir('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",r,t,i);if((t.op==="move"||t.op==="copy")&&typeof t.from!="string")throw new Ir("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",r,t,i);if((t.op==="add"||t.op==="replace"||t.op==="test")&&t.value===void 0)throw new Ir("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",r,t,i);if((t.op==="add"||t.op==="replace"||t.op==="test")&&Js(t.value))throw new Ir("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",r,t,i);if(i){if(t.op=="add"){var s=t.path.split("/").length,p=a.split("/").length;if(s!==p+1&&s!==p)throw new Ir("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",r,t,i)}else if(t.op==="replace"||t.op==="remove"||t.op==="_get"){if(t.path!==a)throw new Ir("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",r,t,i)}else if(t.op==="move"||t.op==="copy"){var y={op:"_get",path:t.from,value:void 0},E=mu([y],i);if(E&&E.name==="OPERATION_PATH_UNRESOLVABLE")throw new Ir("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,t,i)}}}else throw new Ir("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,t,i)}function mu(t,r,i){try{if(!Array.isArray(t))throw new Ir("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)Gn(yn(r),yn(t),i||!0);else{i=i||Zi;for(var a=0;a<t.length;a++)i(t[a],a,r,void 0)}}catch(s){if(s instanceof Ir)return s;throw s}}function $o(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){var i=Array.isArray(t),a=Array.isArray(r),s,p,y;if(i&&a){if(p=t.length,p!=r.length)return!1;for(s=p;s--!=0;)if(!$o(t[s],r[s]))return!1;return!0}if(i!=a)return!1;var E=Object.keys(t);if(p=E.length,p!==Object.keys(r).length)return!1;for(s=p;s--!=0;)if(!r.hasOwnProperty(E[s]))return!1;for(s=p;s--!=0;)if(y=E[s],!$o(t[y],r[y]))return!1;return!0}return t!==t&&r!==r}/*!
|
|
89
89
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
90
90
|
* (c) 2017 Joachim Wester
|
|
91
91
|
* MIT license
|
|
92
|
-
*/var Xs=new WeakMap,Qs=function(){function t(r){this.observers=new Map,this.obj=r}return t}(),mu=function(){function t(r,i){this.callback=r,this.observer=i}return t}();function Zs(t){return Xs.get(t)}function ic(t,r){return t.observers.get(r)}function _s(t,r){t.observers.delete(r.callback)}function qs(t,r){r.unobserve()}function xu(t,r){var i=[],o,s=Zs(t);if(!s)s=new Qs(t),Xs.set(t,s);else{var p=ic(s,r);o=p&&p.observer}if(o)return o;if(o={},s.value=yn(t),r){o.callback=r,o.next=null;var m=function(){Do(o)},E=function(){clearTimeout(o.next),o.next=setTimeout(m)};typeof window!="undefined"&&(window.addEventListener("mouseup",E),window.addEventListener("keyup",E),window.addEventListener("mousedown",E),window.addEventListener("keydown",E),window.addEventListener("change",E))}return o.patches=i,o.object=t,o.unobserve=function(){Do(o),clearTimeout(o.next),_s(s,o),typeof window!="undefined"&&(window.removeEventListener("mouseup",E),window.removeEventListener("keyup",E),window.removeEventListener("mousedown",E),window.removeEventListener("keydown",E),window.removeEventListener("change",E))},s.observers.set(r,new mu(r,o)),o}function Do(t,r){r===void 0&&(r=!1);var i=Xs.get(t.object);$a(i.value,t.object,t.patches,"",r),t.patches.length&&Gn(i.value,t.patches);var o=t.patches;return o.length>0&&(t.patches=[],t.callback&&t.callback(o)),o}function $a(t,r,i,o,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var p=Mo(r),m=Mo(t),E=!1,w=!1,A=m.length-1;A>=0;A--){var k=m[A],G=t[k];if(fi(r,k)&&!(r[k]===void 0&&G!==void 0&&Array.isArray(r)===!1)){var ne=r[k];typeof G=="object"&&G!=null&&typeof ne=="object"&&ne!=null?$a(G,ne,i,o+"/"+ci(k),s):G!==ne&&(E=!0,s&&i.push({op:"test",path:o+"/"+ci(k),value:yn(G)}),i.push({op:"replace",path:o+"/"+ci(k),value:yn(ne)}))}else Array.isArray(t)===Array.isArray(r)?(s&&i.push({op:"test",path:o+"/"+ci(k),value:yn(G)}),i.push({op:"remove",path:o+"/"+ci(k)}),w=!0):(s&&i.push({op:"test",path:o,value:t}),i.push({op:"replace",path:o,value:r}),E=!0)}if(!(!w&&p.length==m.length))for(var A=0;A<p.length;A++){var k=p[A];!fi(t,k)&&r[k]!==void 0&&i.push({op:"add",path:o+"/"+ci(k),value:yn(r[k])})}}}function bu(t,r,i){i===void 0&&(i=!1);var o=[];return $a(t,r,o,"",i),o}const No=Object.assign({},c,v,{JsonPatchError:gu,deepClone:yn,escapePathComponent:ci,unescapePathComponent:Ti});var ac=a(31312),Bo=a.n(ac),di=a(50361),wu=a.n(di);const rr={add:er,replace:En,remove:Ii,merge:Fi,mergeDeep:Au,context:el,getIn:ki,applyPatch:Su,parentPathMatch:tl,flatten:Ka,fullyNormalizeArray:Cu,normalizeArray:rl,isPromise:Ou,forEachNew:Eu,forEachNewPrimitive:oc,isJsonPatch:Iu,isContextPatch:lc,isPatch:Vo,isMutation:Ja,isAdditiveMutation:Xa,isGenerator:sc,isFunction:Tu,isObject:ei,isError:Pu};function Su(t,r,i){if(i=i||{},r=fr(fr({},r),{},{path:r.path&&mn(r.path)}),r.op==="merge"){var o=Wo(t,r.path);rn()(o,r.value),Gn(t,[En(r.path,o)])}else if(r.op==="mergeDeep"){var s=Wo(t,r.path);for(var p in r.value){var m=r.value[p],E=Array.isArray(m);if(E){var w=s[p]||[];s[p]=Ot()(w).call(w,m)}else if(ei(m)&&!E){var A=fr({},s[p]);for(var k in m)if(Object.prototype.hasOwnProperty.call(A,k)){A=Bo()(wu()(A),m);break}else rn()(A,Ss({},k,m[k]));s[p]=A}else s[p]=m}}else if(r.op==="add"&&r.path===""&&ei(r.value)){var G=Qt()(r.value).reduce(function(ge,Ee){return ge.push({op:"add",path:"/".concat(mn(Ee)),value:r.value[Ee]}),ge},[]);Gn(t,G)}else if(r.op==="replace"&&r.path===""){var ne=r,te=ne.value;i.allowMetaPatches&&r.meta&&Xa(r)&&(Array.isArray(r.value)||ei(r.value))&&(te=fr(fr({},te),r.meta)),t=te}else if(Gn(t,[r]),i.allowMetaPatches&&r.meta&&Xa(r)&&(Array.isArray(r.value)||ei(r.value))){var fe=Wo(t,r.path),ye=fr(fr({},fe),r.meta);Gn(t,[En(r.path,ye)])}return t}function mn(t){return Array.isArray(t)?t.length<1?"":"/".concat(qt()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function er(t,r){return{op:"add",path:t,value:r}}function En(t,r,i){return{op:"replace",path:t,value:r,meta:i}}function Ii(t){return{op:"remove",path:t}}function Fi(t,r){return{type:"mutation",op:"merge",path:t,value:r}}function Au(t,r){return{type:"mutation",op:"mergeDeep",path:t,value:r}}function el(t,r){return{type:"context",path:t,value:r}}function Eu(t,r){try{return Uo(t,jo,r)}catch(i){return i}}function oc(t,r){try{return Uo(t,_i,r)}catch(i){return i}}function Uo(t,r,i){var o,s=qt()(o=ln()(t).call(t,Xa)).call(o,function(E){return r(E.value,i,E.path)})||[],p=Ka(s),m=Ya(p);return m}function _i(t,r,i){if(i=i||[],Array.isArray(t))return qt()(t).call(t,function(s,p){return _i(s,r,Ot()(i).call(i,p))});if(ei(t)){var o;return qt()(o=Qt()(t)).call(o,function(s){return _i(t[s],r,Ot()(i).call(i,s))})}return r(t,i[i.length-1],i)}function jo(t,r,i){i=i||[];var o=[];if(i.length>0){var s=r(t,i[i.length-1],i);s&&(o=Ot()(o).call(o,s))}if(Array.isArray(t)){var p=qt()(t).call(t,function(w,A){return jo(w,r,Ot()(i).call(i,A))});p&&(o=Ot()(o).call(o,p))}else if(ei(t)){var m,E=qt()(m=Qt()(t)).call(m,function(w){return jo(t[w],r,Ot()(i).call(i,w))});E&&(o=Ot()(o).call(o,E))}return o=Ka(o),o}function tl(t,r){if(!Array.isArray(r))return!1;for(var i=0,o=r.length;i<o;i+=1)if(r[i]!==t[i])return!1;return!0}function ki(t,r){return r.reduce(function(i,o){return typeof o!="undefined"&&i?i[o]:i},t)}function Cu(t){return Ya(Ka(rl(t)))}function rl(t){return Array.isArray(t)?t:[t]}function Ka(t){var r;return Ot()(r=[]).apply(r,Pn(qt()(t).call(t,function(i){return Array.isArray(i)?Ka(i):i})))}function Ya(t){return ln()(t).call(t,function(r){return typeof r!="undefined"})}function ei(t){return t&&nr(t)==="object"}function Ou(t){return ei(t)&&Tu(t.then)}function Tu(t){return t&&typeof t=="function"}function Pu(t){return t instanceof Error}function Iu(t){if(Vo(t)){var r=t.op;return r==="add"||r==="remove"||r==="replace"}return!1}function sc(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function Ja(t){return Iu(t)||Vo(t)&&t.type==="mutation"}function Xa(t){return Ja(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function lc(t){return Vo(t)&&t.type==="context"}function Vo(t){return t&&nr(t)==="object"}function Wo(t,r){try{return Mr(t,r)}catch(i){return console.error(i),{}}}var da=a(52424),nl=a.n(da),Ho=a(54098),Fu=a(9779),zo=a.n(Fu);function il(t,r){function i(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var o=arguments.length,s=new Array(o),p=0;p<o;p++)s[p]=arguments[p];this.message=s[0],r&&r.apply(this,s)}return i.prototype=new Error,i.prototype.name=t,i.prototype.constructor=i,i}var uc=a(13692),ku=a.n(uc),Jr=a(47037),Go=a.n(Jr),Ru=["properties"],Mu=["properties"],Lu=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],pa=["schema/example","items/example"];function Qa(t){var r=t[t.length-1],i=t[t.length-2],o=t.join("/");return Ru.indexOf(r)>-1&&Mu.indexOf(i)===-1||Lu.indexOf(o)>-1||pa.some(function(s){return o.indexOf(s)>-1})}function Du(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.specmap,s=i.getBaseUrlForNodePath,p=s===void 0?function(A){var k;return o.getContext(Ot()(k=[]).call(k,Pn(r),Pn(A))).baseDoc}:s,m=i.targetKeys,E=m===void 0?["$ref","$$ref"]:m,w=[];return ku()(t).forEach(function(){if(wo()(E).call(E,this.key)&&Go()(this.node)){var k=this.path,G=Ot()(r).call(r,this.path),ne=$o(this.node,p(k));w.push(o.replace(G,ne))}}),w}function $o(t,r){var i,o=t.split("#"),s=tn(o,2),p=s[0],m=s[1],E=Ei.resolve(p||"",r||"");return m?Ot()(i="".concat(E,"#")).call(i,m):E}var al="application/json, application/yaml",ha=new RegExp("^([a-z]+://|//)","i"),qi=il("JSONRefError",function(r,i,o){this.originalError=o,rn()(this,i||{})}),Fn={},ol=new(nl()),Za=[function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="examples"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="examples"&&t[6]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="examples"&&t[7]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[4]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"}],fc=function(r){return Za.some(function(i){return i(r)})},va={key:"$ref",plugin:function(r,i,o,s){var p=s.getInstance(),m=In()(o).call(o,0,-1);if(!(Qa(m)||fc(m))){var E=s.getContext(o),w=E.baseDoc;if(typeof r!="string")return new qi("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:w,fullPath:o});var A=ga(r),k=A[0],G=A[1]||"",ne;try{ne=w||k?ll(k,w):null}catch(we){return ea(we,{pointer:G,$ref:r,basePath:ne,fullPath:o})}var te,fe;if(pc(G,ne,m,s)&&!p.useCircularStructures){var ye=$o(r,ne);return r===ye?null:rr.replace(o,ye)}if(ne==null?(fe=ti(G),te=s.get(fe),typeof te=="undefined"&&(te=new qi("Could not resolve reference: ".concat(r),{pointer:G,$ref:r,baseDoc:w,fullPath:o}))):(te=ya(ne,G),te.__value!=null?te=te.__value:te=te.catch(function(we){throw ea(we,{pointer:G,$ref:r,baseDoc:w,fullPath:o})})),te instanceof Error)return[rr.remove(o),te];var ge=$o(r,ne),Ee=rr.replace(m,te,{$$ref:ge});if(ne&&ne!==w)return[Ee,rr.context(m,{baseDoc:ne})];try{if(!hc(s.state,Ee)||p.useCircularStructures)return Ee}catch(we){return null}}}},sl=rn()(va,{docCache:Fn,absoluteify:ll,clearCache:_a,JSONRefError:qi,wrapError:ea,getDoc:ul,split:ga,extractFromDoc:ya,fetchJSON:cc,extract:Ko,jsonPointerToArray:ti,unescapeJsonPointerToken:ta});const Nu=sl;function ll(t,r){if(!ha.test(t)){if(!r){var i;throw new qi(Ot()(i="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(i,r,"'"))}return Ei.resolve(r,t)}return t}function ea(t,r){var i;if(t&&t.response&&t.response.body){var o;i=Ot()(o="".concat(t.response.body.code," ")).call(o,t.response.body.message)}else i=t.message;return new qi("Could not resolve reference: ".concat(i),r,t)}function ga(t){return(t+"").split("#")}function ya(t,r){var i=Fn[t];if(i&&!rr.isPromise(i))try{var o=Ko(r,i);return rn()(Ji().resolve(o),{__value:o})}catch(s){return Ji().reject(s)}return ul(t).then(function(s){return Ko(r,s)})}function _a(t){typeof t!="undefined"?delete Fn[t]:Qt()(Fn).forEach(function(r){delete Fn[r]})}function ul(t){var r=Fn[t];return r?rr.isPromise(r)?r:Ji().resolve(r):(Fn[t]=sl.fetchJSON(t).then(function(i){return Fn[t]=i,i}),Fn[t])}function cc(t){return(0,Ho.fetch)(t,{headers:{Accept:al},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Rs().safeLoad(r)})}function Ko(t,r){var i=ti(t);if(i.length<1)return r;var o=rr.getIn(r,i);if(typeof o=="undefined")throw new qi("Could not resolve pointer: ".concat(t," does not exist in document"),{pointer:t});return o}function ti(t){var r;if(typeof t!="string")throw new TypeError("Expected a string, got a ".concat(nr(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:qt()(r=t.split("/")).call(r,ta)}function ta(t){return typeof t!="string"?t:zo().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function ma(t){return zo().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function dc(t){return t.length===0?"":"/".concat(qt()(t).call(t,ma).join("/"))}var Bu=function(r){return!r||r==="/"||r==="#"};function fl(t,r){if(Bu(r))return!0;var i=t.charAt(r.length),o=In()(r).call(r,-1);return t.indexOf(r)===0&&(!i||i==="/"||i==="#")&&o!=="#"}function pc(t,r,i,o){var s,p,m=ol.get(o);m||(m={},ol.set(o,m));var E=dc(i),w=Ot()(s="".concat(r||"<specmap-base>","#")).call(s,t),A=E.replace(/allOf\/\d+\/?/g,""),k=o.contextTree.get([]).baseDoc;if(r==k&&fl(A,t))return!0;var G="",ne=i.some(function(te){var fe;return G=Ot()(fe="".concat(G,"/")).call(fe,ma(te)),m[G]&&m[G].some(function(ye){return fl(ye,w)||fl(w,ye)})});if(ne)return!0;m[A]=Ot()(p=m[A]||[]).call(p,w)}function hc(t,r){var i=[t];return r.path.reduce(function(s,p){return i.push(s[p]),s[p]},t),o(r.value);function o(s){return rr.isObject(s)&&(i.indexOf(s)>=0||Qt()(s).some(function(p){return o(s[p])}))}}var un=a(41609),Uu=a.n(un);const vc={key:"allOf",plugin:function(r,i,o,s,p){if(!(p.meta&&p.meta.$$ref)){var m=In()(o).call(o,0,-1);if(!Qa(m)){if(!Array.isArray(r)){var E=new TypeError("allOf must be an array");return E.fullPath=o,E}var w=!1,A=p.value;if(m.forEach(function(ne){!A||(A=A[ne])}),A=fr({},A),!Uu()(A)){delete A.allOf;var k=[];if(k.push(s.replace(m,{})),r.forEach(function(ne,te){if(!s.isObject(ne)){if(w)return null;w=!0;var fe=new TypeError("Elements in allOf must be objects");return fe.fullPath=o,k.push(fe)}k.push(s.mergeDeep(m,ne));var ye=In()(o).call(o,0,-1),ge=Du(ne,ye,{getBaseUrlForNodePath:function(we){var Te;return s.getContext(Ot()(Te=[]).call(Te,Pn(o),[te],Pn(we))).baseDoc},specmap:s});k.push.apply(k,Pn(ge))}),k.push(s.mergeDeep(m,A)),!A.$$ref){var G;k.push(s.remove(Ot()(G=[]).call(G,m,"$$ref")))}return k}}}}},gc={key:"parameters",plugin:function(r,i,o,s){if(Array.isArray(r)&&r.length){var p=rn()([],r),m=In()(o).call(o,0,-1),E=fr({},rr.getIn(s.spec,m));return r.forEach(function(w,A){try{p[A].default=s.parameterMacro(E,w)}catch(G){var k=new Error(G);return k.fullPath=o,k}}),rr.replace(o,p)}return rr.replace(o,r)}},yc={key:"properties",plugin:function(r,i,o,s){var p=fr({},r);for(var m in r)try{p[m].default=s.modelPropertyMacro(p[m])}catch(A){var E=new Error(A);return E.fullPath=o,E}var w=rr.replace(o,p);return w}};var ju=function(){function t(r){Ao(this,t),this.root=Yo(r||{})}return Ds(t,[{key:"set",value:function(i,o){var s=this.getParent(i,!0);if(!s){qa(this.root,o,null);return}var p=i[i.length-1],m=s.children;if(m[p]){qa(m[p],o,s);return}m[p]=Yo(o,s)}},{key:"get",value:function(i){if(i=i||[],i.length<1)return this.root.value;for(var o=this.root,s,p,m=0;m<i.length&&(p=i[m],s=o.children,!!s[p]);m+=1)o=s[p];return o&&o.protoValue}},{key:"getParent",value:function(i,o){return!i||i.length<1?null:i.length<2?this.root:In()(i).call(i,0,-1).reduce(function(s,p){if(!s)return s;var m=s.children;return!m[p]&&o&&(m[p]=Yo(null,s)),m[p]},this.root)}}]),t}();function Yo(t,r){return qa({children:{}},t,r)}function qa(t,r,i){return t.value=r||{},t.protoValue=i?fr(fr({},i.protoValue),t.value):t.value,Qt()(t.children).forEach(function(o){var s=t.children[o];t.children[o]=qa(s,s.value,t)}),t}var Vu=100,mc=function(){function t(r){var i=this,o,s;Ao(this,t),rn()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new ju,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:rn()(Object.create(this),rr,{getInstance:function(){return i}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=ln()(o=qt()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(o,rr.isFunction),this.patches.push(rr.add([],this.spec)),this.patches.push(rr.context([],this.context)),this.updatePatches(this.patches)}return Ds(t,[{key:"debug",value:function(i){if(this.debugLevel===i){for(var o,s=arguments.length,p=new Array(s>1?s-1:0),m=1;m<s;m++)p[m-1]=arguments[m];(o=console).log.apply(o,p)}}},{key:"verbose",value:function(i){if(this.debugLevel==="verbose"){for(var o,s,p=arguments.length,m=new Array(p>1?p-1:0),E=1;E<p;E++)m[E-1]=arguments[E];(o=console).log.apply(o,Ot()(s=["[".concat(i,"] ")]).call(s,m))}}},{key:"wrapPlugin",value:function(i,o){var s=this.pathDiscriminator,p=null,m;return i[this.pluginProp]?(p=i,m=i[this.pluginProp]):rr.isFunction(i)?m=i:rr.isObject(i)&&(m=E(i)),rn()(m.bind(p),{pluginName:i.name||o,isGenerator:rr.isGenerator(m)});function E(w){var A=function(G,ne){return Array.isArray(G)?G.every(function(te,fe){return te===ne[fe]}):!0};return ir().mark(function k(G,ne){var te,fe,ye,ge,Ee,we;return ir().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:we=function(He,Ne,Ve){var We,Je,ze,et,At,Nt,Ht,ar,kr,Cr,Yr,wr,Lr;return ir().wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(rr.isObject(He)){Yt.next=6;break}if(w.key!==Ne[Ne.length-1]){Yt.next=4;break}return Yt.next=4,w.plugin(He,w.key,Ne,ne);case 4:Yt.next=30;break;case 6:We=Ne.length-1,Je=Ne[We],ze=Ne.indexOf("properties"),et=Je==="properties"&&We===ze,At=ne.allowMetaPatches&&fe[He.$$ref],Nt=0,Ht=Qt()(He);case 12:if(!(Nt<Ht.length)){Yt.next=30;break}if(ar=Ht[Nt],kr=He[ar],Cr=Ot()(Ne).call(Ne,ar),Yr=rr.isObject(kr),wr=He.$$ref,At){Yt.next=22;break}if(!Yr){Yt.next=22;break}return ne.allowMetaPatches&&wr&&(fe[wr]=!0),Yt.delegateYield(we(kr,Cr,Ve),"t0",22);case 22:if(!(!et&&ar===w.key)){Yt.next=27;break}if(Lr=A(s,Ne),!(!s||Lr)){Yt.next=27;break}return Yt.next=27,w.plugin(kr,ar,Cr,ne,Ve);case 27:Nt++,Yt.next=12;break;case 30:case"end":return Yt.stop()}},te)},te=ir().mark(we),fe={},ye=Hi(ln()(G).call(G,rr.isAdditiveMutation)),$e.prev=4,ye.s();case 6:if((ge=ye.n()).done){$e.next=11;break}return Ee=ge.value,$e.delegateYield(we(Ee.value,Ee.path,Ee),"t0",9);case 9:$e.next=6;break;case 11:$e.next=16;break;case 13:$e.prev=13,$e.t1=$e.catch(4),ye.e($e.t1);case 16:return $e.prev=16,ye.f(),$e.finish(16);case 19:case"end":return $e.stop()}},k,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var i=this;return hu()(this.wrappedPlugins,function(o){var s=i.getMutationsForPlugin(o);return s.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var i;return Ji().race(qt()(i=this.promisedPatches).call(i,function(o){return o.value}))}}},{key:"getPluginHistory",value:function(i){var o=this.constructor.getPluginName(i);return this.pluginHistory[o]||[]}},{key:"getPluginRunCount",value:function(i){return this.getPluginHistory(i).length}},{key:"getPluginHistoryTip",value:function(i){var o=this.getPluginHistory(i),s=o&&o[o.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(i){var o=this.getPluginHistoryTip(i).mutationIndex;return typeof o!="number"?-1:o}},{key:"updatePluginHistory",value:function(i,o){var s=this.constructor.getPluginName(i);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(o)}},{key:"updatePatches",value:function(i){var o=this;rr.normalizeArray(i).forEach(function(s){if(s instanceof Error){o.errors.push(s);return}try{if(!rr.isObject(s)){o.debug("updatePatches","Got a non-object patch",s);return}if(o.showDebug&&o.allPatches.push(s),rr.isPromise(s.value)){o.promisedPatches.push(s),o.promisedPatchThen(s);return}if(rr.isContextPatch(s)){o.setContext(s.path,s.value);return}if(rr.isMutation(s)){o.updateMutations(s);return}}catch(p){console.error(p),o.errors.push(p)}})}},{key:"updateMutations",value:function(i){nr(i.value)==="object"&&!Array.isArray(i.value)&&this.allowMetaPatches&&(i.value=fr({},i.value));var o=rr.applyPatch(this.state,i,{allowMetaPatches:this.allowMetaPatches});o&&(this.mutations.push(i),this.state=o)}},{key:"removePromisedPatch",value:function(i){var o,s=this.promisedPatches.indexOf(i);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}pu()(o=this.promisedPatches).call(o,s,1)}},{key:"promisedPatchThen",value:function(i){var o=this;return i.value=i.value.then(function(s){var p=fr(fr({},i),{},{value:s});o.removePromisedPatch(i),o.updatePatches(p)}).catch(function(s){o.removePromisedPatch(i),o.updatePatches(s)}),i.value}},{key:"getMutations",value:function(i,o){var s;return i=i||0,typeof o!="number"&&(o=this.mutations.length),In()(s=this.mutations).call(s,i,o)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(i){var o=this.getPluginMutationIndex(i);return this.getMutations(o+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(i){return rr.getIn(this.state,i)}},{key:"_getContext",value:function(i){return this.contextTree.get(i)}},{key:"setContext",value:function(i,o){return this.contextTree.set(i,o)}},{key:"_hasRun",value:function(i){var o=this.getPluginRunCount(this.getCurrentPlugin());return o>(i||0)}},{key:"dispatch",value:function(){var i=this,o=this,s=this.nextPlugin();if(!s){var p=this.nextPromisedPatch();if(p)return p.then(function(){return i.dispatch()}).catch(function(){return i.dispatch()});var m={spec:this.state,errors:this.errors};return this.showDebug&&(m.patches=this.allPatches),Ji().resolve(m)}if(o.pluginCount=o.pluginCount||{},o.pluginCount[s]=(o.pluginCount[s]||0)+1,o.pluginCount[s]>Vu){var E;return Ji().resolve({spec:o.state,errors:Ot()(E=o.errors).call(E,new Error("We've reached a hard limit of ".concat(Vu," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var w,A=qt()(w=this.promisedPatches).call(w,function(ne){return ne.value});return Ji().all(qt()(A).call(A,function(ne){return ne.then(ca(),ca())})).then(function(){return i.dispatch()})}return k();function k(){o.currentPlugin=s;var ne=o.getCurrentMutations(),te=o.mutations.length-1;try{if(s.isGenerator){var fe=Hi(s(ne,o.getLib())),ye;try{for(fe.s();!(ye=fe.n()).done;){var ge=ye.value;G(ge)}}catch(we){fe.e(we)}finally{fe.f()}}else{var Ee=s(ne,o.getLib());G(Ee)}}catch(we){console.error(we),G([rn()(Object.create(we),{plugin:s})])}finally{o.updatePluginHistory(s,{mutationIndex:te})}return o.dispatch()}function G(ne){ne&&(ne=rr.fullyNormalizeArray(ne),o.updatePatches(ne,s))}}}],[{key:"getPluginName",value:function(i){return i.pluginName}},{key:"getPatchesOfType",value:function(i,o){return ln()(i).call(i,o)}}]),t}();function xc(t){return new mc(t).dispatch()}var xn={refs:Nu,allOf:vc,parameters:gc,properties:yc},eo=a(13218),to=a.n(eo),xa=function(r){return String.prototype.toLowerCase.call(r)},ri=function(r){return r.replace(/[^\w]/gi,"_")};function Wu(t){var r=t.openapi;return r?Vi()(r,"3"):!1}function Md(t){var r=t.swagger;return r?startsWith(r,"2"):!1}function pi(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=o.v2OperationIdCompatibilityMode;if(!t||nr(t)!=="object")return null;var p=(t.operationId||"").replace(/\s/g,"");return p.length?ri(t.operationId):Hu(r,i,{v2OperationIdCompatibilityMode:s})}function Hu(t,r){var i,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=o.v2OperationIdCompatibilityMode;if(s){var p,m,E=Ot()(p="".concat(r.toLowerCase(),"_")).call(p,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return E=E||Ot()(m="".concat(t.substring(1),"_")).call(m,r),E.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Ot()(i="".concat(xa(r))).call(i,ri(t))}function cl(t,r){var i;return Ot()(i="".concat(xa(r),"-")).call(i,t)}function zu(t,r){return!t||!t.paths?null:Jo(t,function(i){var o=i.pathName,s=i.method,p=i.operation;if(!p||nr(p)!=="object")return!1;var m=p.operationId,E=pi(p,o,s),w=cl(o,s);return[E,w,m].some(function(A){return A&&A===r})})}function Jo(t,r){return ra(t,r,!0)||null}function ra(t,r,i){if(!t||nr(t)!=="object"||!t.paths||nr(t.paths)!=="object")return null;var o=t.paths;for(var s in o)for(var p in o[s])if(p.toUpperCase()!=="PARAMETERS"){var m=o[s][p];if(!(!m||nr(m)!=="object")){var E={spec:t,pathName:s,method:p.toUpperCase(),operation:m},w=r(E);if(i&&w)return E}}}function Xo(t){var r=t.spec,i=r.paths,o={};if(!i||r.$$normalized)return t;for(var s in i){var p=i[s];if(!!to()(p)){var m=p.parameters,E=function(G){var ne=p[G];if(!to()(ne))return"continue";var te=pi(ne,s,G);if(te){o[te]?o[te].push(ne):o[te]=[ne];var fe=o[te];if(fe.length>1)fe.forEach(function(Je,ze){var et;Je.__originalOperationId=Je.__originalOperationId||Je.operationId,Je.operationId=Ot()(et="".concat(te)).call(et,ze+1)});else if(typeof ne.operationId!="undefined"){var ye=fe[0];ye.__originalOperationId=ye.__originalOperationId||ne.operationId,ye.operationId=te}}if(G!=="parameters"){var ge=[],Ee={};for(var we in r)(we==="produces"||we==="consumes"||we==="security")&&(Ee[we]=r[we],ge.push(Ee));if(m&&(Ee.parameters=m,ge.push(Ee)),ge.length){var Te=Hi(ge),$e;try{for(Te.s();!($e=Te.n()).done;){var je=$e.value;for(var He in je)if(!ne[He])ne[He]=je[He];else if(He==="parameters"){var Ne=Hi(je[He]),Ve;try{var We=function(){var ze=Ve.value,et=ne[He].some(function(At){return At.name&&At.name===ze.name||At.$ref&&At.$ref===ze.$ref||At.$$ref&&At.$$ref===ze.$$ref||At===ze});et||ne[He].push(ze)};for(Ne.s();!(Ve=Ne.n()).done;)We()}catch(Je){Ne.e(Je)}finally{Ne.f()}}}}catch(Je){Te.e(Je)}finally{Te.f()}}}};for(var w in p)var A=E(w)}}return r.$$normalized=!0,t}function Qo(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.requestInterceptor,o=r.responseInterceptor,s=t.withCredentials?"include":"same-origin";return function(p){return t({url:p,loadSpec:!0,requestInterceptor:i,responseInterceptor:o,headers:{Accept:al},credentials:s}).then(function(m){return m.body})}}function dl(){xn.refs.clearCache()}function Gu(t){var r=t.fetch,i=t.spec,o=t.url,s=t.mode,p=t.allowMetaPatches,m=p===void 0?!0:p,E=t.pathDiscriminator,w=t.modelPropertyMacro,A=t.parameterMacro,k=t.requestInterceptor,G=t.responseInterceptor,ne=t.skipNormalization,te=t.useCircularStructures,fe=t.http,ye=t.baseDoc;if(ye=ye||o,fe=r||fe||Oi,!i)return Qo(fe,{requestInterceptor:k,responseInterceptor:G})(ye).then(ge);return ge(i);function ge(Ee){ye&&(xn.refs.docCache[ye]=Ee),xn.refs.fetchJSON=Qo(fe,{requestInterceptor:k,responseInterceptor:G});var we=[xn.refs];return typeof A=="function"&&we.push(xn.parameters),typeof w=="function"&&we.push(xn.properties),s!=="strict"&&we.push(xn.allOf),xc({spec:Ee,context:{baseDoc:ye},plugins:we,allowMetaPatches:m,pathDiscriminator:E,parameterMacro:A,modelPropertyMacro:w,useCircularStructures:te}).then(ne?function(){var Te=Is(ir().mark(function $e(je){return ir().wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.abrupt("return",je);case 1:case"end":return Ne.stop()}},$e)}));return function($e){return Te.apply(this,arguments)}}():Xo)}}var ro=a(27361),ba=a.n(ro);function bc(t,r){return Zo.apply(this,arguments)}function Zo(){return Zo=Is(ir().mark(function t(r,i){var o,s,p,m,E,w,A,k,G,ne,te,fe,ye=arguments;return ir().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return o=ye.length>2&&ye[2]!==void 0?ye[2]:{},s=o.returnEntireTree,p=o.baseDoc,m=o.requestInterceptor,E=o.responseInterceptor,w=o.parameterMacro,A=o.modelPropertyMacro,k=o.useCircularStructures,G={pathDiscriminator:i,baseDoc:p,requestInterceptor:m,responseInterceptor:E,parameterMacro:w,modelPropertyMacro:A,useCircularStructures:k},ne=Xo({spec:r}),te=ne.spec,Ee.next=6,Gu(fr(fr({},G),{},{spec:te,allowMetaPatches:!0,skipNormalization:!0}));case 6:return fe=Ee.sent,!s&&Array.isArray(i)&&i.length&&(fe.spec=ba()(fe.spec,i)||null),Ee.abrupt("return",fe);case 9:case"end":return Ee.stop()}},t)})),Zo.apply(this,arguments)}var _o=function(){return null},wc=function(r){return Array.isArray(r)?r:[r]},qo={mapTagOperations:Ac,makeExecute:no};function no(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var i=r.pathName,o=r.method,s=r.operationId;return function(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(fr(fr({spec:t.spec},So()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:i,method:o,parameters:p,operationId:s},m))}}}function Sc(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=qo.makeExecute(t),i=qo.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r}),o={};for(var s in i){o[s]={operations:{}};for(var p in i[s])o[s].operations[p]={execute:i[s][p]}}return{apis:o}}function $u(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=qo.makeExecute(t);return{apis:qo.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function Ac(t){var r=t.spec,i=t.cb,o=i===void 0?_o:i,s=t.defaultTag,p=s===void 0?"default":s,m=t.v2OperationIdCompatibilityMode,E={},w={};return ra(r,function(A){var k=A.pathName,G=A.method,ne=A.operation,te=ne.tags?wc(ne.tags):[p];te.forEach(function(fe){if(typeof fe=="string"){w[fe]=w[fe]||{};var ye=w[fe],ge=pi(ne,k,G,{v2OperationIdCompatibilityMode:m}),Ee=o({spec:r,pathName:k,method:G,operation:ne,operationId:ge});if(E[ge]){var we;E[ge]+=1,ye[Ot()(we="".concat(ge)).call(we,E[ge])]=Ee}else if(typeof ye[ge]!="undefined"){var Te,$e,je=E[ge]||1;E[ge]=je+1,ye[Ot()(Te="".concat(ge)).call(Te,E[ge])]=Ee;var He=ye[ge];delete ye[ge],ye[Ot()($e="".concat(ge)).call($e,je)]=He}else ye[ge]=Ee}})}),w}var es=a(95683);function Ku(t,r){if(t==null)return{};var i={},o=ws(t),s,p;for(p=0;p<o.length;p++)s=o[p],!(es(r).call(r,s)>=0)&&(i[s]=t[s]);return i}function Ec(t,r){if(t==null)return{};var i=Ku(t,r),o,s;if(Ui){var p=Ui(t);for(s=0;s<p.length;s++)o=p[s],!(es(r).call(r,o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,o)||(i[o]=t[o]))}return i}var Yu=a(68630),pl=a.n(Yu),Cc=a(1469),hl=a.n(Cc),io=a(76489);const ao={body:Oc,header:Tc,query:Ic,path:Pc,formData:Ju};function Oc(t){var r=t.req,i=t.value;r.body=i}function Ju(t){var r=t.req,i=t.value,o=t.parameter;(i||o.allowEmptyValue)&&(r.form=r.form||{},r.form[o.name]={value:i,allowEmptyValue:o.allowEmptyValue,collectionFormat:o.collectionFormat})}function Tc(t){var r=t.req,i=t.parameter,o=t.value;r.headers=r.headers||{},typeof o!="undefined"&&(r.headers[i.name]=o)}function Pc(t){var r=t.req,i=t.value,o=t.parameter;r.url=r.url.split("{".concat(o.name,"}")).join(encodeURIComponent(i))}function Ic(t){var r=t.req,i=t.value,o=t.parameter;if(r.query=r.query||{},i===!1&&o.type==="boolean"&&(i="false"),i===0&&["number","integer"].indexOf(o.type)>-1&&(i="0"),i)r.query[o.name]={collectionFormat:o.collectionFormat,value:i};else if(o.allowEmptyValue&&i!==void 0){var s=o.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function ts(t,r){return wo()(r).call(r,"application/json")?typeof t=="string"?t:Ra()(t):t.toString()}function Xu(t){var r=t.req,i=t.value,o=t.parameter,s=o.name,p=o.style,m=o.explode,E=o.content;if(E){var w=Qt()(E)[0];r.url=r.url.split("{".concat(s,"}")).join(Rr(ts(i,w),{escape:!0}));return}var A=qn({key:o.name,value:i,style:p||"simple",explode:m||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(A)}function Fc(t){var r=t.req,i=t.value,o=t.parameter;if(r.query=r.query||{},o.content){var s=Qt()(o.content)[0];r.query[o.name]=ts(i,s);return}if(i===!1&&(i="false"),i===0&&(i="0"),i)r.query[o.name]={value:i,serializationOption:So()(o,["style","explode","allowReserved"])};else if(o.allowEmptyValue&&i!==void 0){var p=o.name;r.query[p]=r.query[p]||{},r.query[p].allowEmptyValue=!0}}var kc=["accept","authorization","content-type"];function Qu(t){var r=t.req,i=t.parameter,o=t.value;if(r.headers=r.headers||{},!(kc.indexOf(i.name.toLowerCase())>-1)){if(i.content){var s=Qt()(i.content)[0];r.headers[i.name]=ts(o,s);return}typeof o!="undefined"&&(r.headers[i.name]=qn({key:i.name,value:o,style:i.style||"simple",explode:typeof i.explode=="undefined"?!1:i.explode,escape:!1}))}}function vl(t){var r=t.req,i=t.parameter,o=t.value;r.headers=r.headers||{};var s=nr(o);if(i.content){var p,m=Qt()(i.content)[0];r.headers.Cookie=Ot()(p="".concat(i.name,"=")).call(p,ts(o,m));return}if(s!=="undefined"){var E=s==="object"&&!Array.isArray(o)&&i.explode?"":"".concat(i.name,"=");r.headers.Cookie=E+qn({key:i.name,value:o,escape:!1,style:i.style||"form",explode:typeof i.explode=="undefined"?!1:i.explode})}}var Zu=a(50706),_u=a.n(Zu);function qu(t,r){var i=t.operation,o=t.requestBody,s=t.securities,p=t.spec,m=t.attachContentTypeForEmptyPayload,E=t.requestContentType;r=wa({request:r,securities:s,operation:i,spec:p});var w=i.requestBody||{},A=Qt()(w.content||{}),k=E&&A.indexOf(E)>-1;if(o||m){if(E&&k)r.headers["Content-Type"]=E;else if(!E){var G=A[0];G&&(r.headers["Content-Type"]=G,E=G)}}else E&&k&&(r.headers["Content-Type"]=E);if(!t.responseContentType&&i.responses){var ne,te=ln()(ne=Ma()(i.responses)).call(ne,function(ye){var ge=tn(ye,2),Ee=ge[0],we=ge[1],Te=parseInt(Ee,10);return Te>=200&&Te<300&&pl()(we.content)}).reduce(function(ye,ge){var Ee=tn(ge,2),we=Ee[1];return Ot()(ye).call(ye,Qt()(we.content))},[]);te.length>0&&(r.headers.accept=te.join(", "))}if(o)if(E){if(A.indexOf(E)>-1)if(E==="application/x-www-form-urlencoded"||E==="multipart/form-data")if(nr(o)==="object"){var fe=(w.content[E]||{}).encoding||{};r.form={},Qt()(o).forEach(function(ye){r.form[ye]={value:o[ye],encoding:fe[ye]||{}}})}else r.form=o;else r.body=o}else r.body=o;return r}function wa(t){var r=t.request,i=t.securities,o=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,m=t.spec,E=ji()({},r),w=o.authorized,A=w===void 0?{}:w,k=p.security||m.security||[],G=A&&!!Qt()(A).length,ne=ba()(m,["components","securitySchemes"])||{};return E.headers=E.headers||{},E.query=E.query||{},!Qt()(o).length||!G||!k||Array.isArray(p.security)&&!p.security.length?r:(k.forEach(function(te){Qt()(te).forEach(function(fe){var ye=A[fe],ge=ne[fe];if(!!ye){var Ee=ye.value||ye,we=ge.type;if(ye){if(we==="apiKey")ge.in==="query"&&(E.query[ge.name]=Ee),ge.in==="header"&&(E.headers[ge.name]=Ee),ge.in==="cookie"&&(E.cookies[ge.name]=Ee);else if(we==="http"){if(/^basic$/i.test(ge.scheme)){var Te,$e=Ee.username||"",je=Ee.password||"",He=_u()(Ot()(Te="".concat($e,":")).call(Te,je));E.headers.Authorization="Basic ".concat(He)}/^bearer$/i.test(ge.scheme)&&(E.headers.Authorization="Bearer ".concat(Ee))}else if(we==="oauth2"||we==="openIdConnect"){var Ne,Ve=ye.token||{},We=ge["x-tokenName"]||"access_token",Je=Ve[We],ze=Ve.token_type;(!ze||ze.toLowerCase()==="bearer")&&(ze="Bearer"),E.headers.Authorization=Ot()(Ne="".concat(ze," ")).call(Ne,Je)}}}})}),E)}function ef(t,r){var i=t.spec,o=t.operation,s=t.securities,p=t.requestContentType,m=t.responseContentType,E=t.attachContentTypeForEmptyPayload;if(r=rs({request:r,securities:s,operation:o,spec:i}),r.body||r.form||E){var w,A;if(p)r.headers["Content-Type"]=p;else if(Array.isArray(o.consumes)){var k=tn(o.consumes,1);r.headers["Content-Type"]=k[0]}else if(Array.isArray(i.consumes)){var G=tn(i.consumes,1);r.headers["Content-Type"]=G[0]}else o.parameters&&ln()(w=o.parameters).call(w,function(ge){return ge.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":o.parameters&&ln()(A=o.parameters).call(A,function(ge){return ge.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(p){var ne,te,fe=o.parameters&&ln()(ne=o.parameters).call(ne,function(ge){return ge.in==="body"}).length>0,ye=o.parameters&&ln()(te=o.parameters).call(te,function(ge){return ge.in==="formData"}).length>0;(fe||ye)&&(r.headers["Content-Type"]=p)}return!m&&Array.isArray(o.produces)&&o.produces.length>0&&(r.headers.accept=o.produces.join(", ")),r}function rs(t){var r=t.request,i=t.securities,o=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,m=t.spec,E=ji()({},r),w=o.authorized,A=w===void 0?{}:w,k=o.specSecurity,G=k===void 0?[]:k,ne=p.security||G,te=A&&!!Qt()(A).length,fe=m.securityDefinitions;return E.headers=E.headers||{},E.query=E.query||{},!Qt()(o).length||!te||!ne||Array.isArray(p.security)&&!p.security.length?r:(ne.forEach(function(ye){Qt()(ye).forEach(function(ge){var Ee=A[ge];if(!!Ee){var we=Ee.token,Te=Ee.value||Ee,$e=fe[ge],je=$e.type,He=$e["x-tokenName"]||"access_token",Ne=we&&we[He],Ve=we&&we.token_type;if(Ee){if(je==="apiKey"){var We=$e.in==="query"?"query":"headers";E[We]=E[We]||{},E[We][$e.name]=Te}else if(je==="basic")if(Te.header)E.headers.authorization=Te.header;else{var Je,ze=Te.username||"",et=Te.password||"";Te.base64=_u()(Ot()(Je="".concat(ze,":")).call(Je,et)),E.headers.authorization="Basic ".concat(Te.base64)}else if(je==="oauth2"&&Ne){var At;Ve=!Ve||Ve.toLowerCase()==="bearer"?"Bearer":Ve,E.headers.authorization=Ot()(At="".concat(Ve," ")).call(At,Ne)}}}})}),E)}var tf=function(r){return Array.isArray(r)?r:[]},Rc=il("OperationNotFoundError",function(r,i,o){this.originalError=o,rn()(this,i||{})}),Mc=function(r,i){return ln()(i).call(i,function(o){return o.name===r})},dr=function(r){var i={};r.forEach(function(s){i[s.in]||(i[s.in]={}),i[s.in][s.name]=s});var o=[];return Qt()(i).forEach(function(s){Qt()(i[s]).forEach(function(p){o.push(i[s][p])})}),o},Lc={buildRequest:Sa};function gl(t){var r=t.http,i=t.fetch,o=t.spec,s=t.operationId,p=t.pathName,m=t.method,E=t.parameters,w=t.securities,A=Ec(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),k=r||i||Oi;p&&m&&!s&&(s=cl(p,m));var G=Lc.buildRequest(fr({spec:o,operationId:s,parameters:E,securities:w,http:k},A));return G.body&&(pl()(G.body)||hl()(G.body))&&(G.body=Ra()(G.body)),k(G)}function Sa(t){var r,i,o=t.spec,s=t.operationId,p=t.responseContentType,m=t.scheme,E=t.requestInterceptor,w=t.responseInterceptor,A=t.contextUrl,k=t.userFetch,G=t.server,ne=t.serverVariables,te=t.http,fe=t.parameters,ye=t.parameterBuilders,ge=Wu(o);ye||(ge?ye=x:ye=ao);var Ee=te&&te.withCredentials?"include":"same-origin",we={url:"",credentials:Ee,headers:{},cookies:{}};E&&(we.requestInterceptor=E),w&&(we.responseInterceptor=w),k&&(we.userFetch=k);var Te=zu(o,s);if(!Te)throw new Rc("Operation ".concat(s," not found"));var $e=Te.operation,je=$e===void 0?{}:$e,He=Te.method,Ne=Te.pathName;if(we.url+=oo({spec:o,scheme:m,contextUrl:A,server:G,serverVariables:ne,pathName:Ne,method:He}),!s)return delete we.cookies,we;we.url+=Ne,we.method="".concat(He).toUpperCase(),fe=fe||{};var Ve=o.paths[Ne]||{};p&&(we.headers.accept=p);var We=dr(Ot()(r=Ot()(i=[]).call(i,tf(je.parameters))).call(r,tf(Ve.parameters)));We.forEach(function(et){var At=ye[et.in],Nt;if(et.in==="body"&&et.schema&&et.schema.properties&&(Nt=fe),Nt=et&&et.name&&fe[et.name],typeof Nt=="undefined"){var Ht;Nt=et&&et.name&&fe[Ot()(Ht="".concat(et.in,".")).call(Ht,et.name)]}else if(Mc(et.name,We).length>1){var ar;console.warn(Ot()(ar="Parameter '".concat(et.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(ar,et.name,"' and the passed-in parameter values did not define an 'in' value."))}if(Nt!==null){if(typeof et.default!="undefined"&&typeof Nt=="undefined"&&(Nt=et.default),typeof Nt=="undefined"&&et.required&&!et.allowEmptyValue)throw new Error("Required parameter ".concat(et.name," is not provided"));if(ge&&et.schema&&et.schema.type==="object"&&typeof Nt=="string")try{Nt=JSON.parse(Nt)}catch(kr){throw new Error("Could not parse object parameter value string as JSON")}At&&At({req:we,parameter:et,value:Nt,operation:je,spec:o})}});var Je=fr(fr({},t),{},{operation:je});if(ge?we=qu(Je,we):we=ef(Je,we),we.cookies&&Qt()(we.cookies).length){var ze=Qt()(we.cookies).reduce(function(et,At){var Nt=we.cookies[At],Ht=et?"&":"",ar=io.serialize(At,Nt);return et+Ht+ar},"");we.headers.Cookie=ze}return we.cookies&&delete we.cookies,du(we),we}var Cn=function(r){return r?r.replace(/\W/g,""):null};function oo(t){var r=Wu(t.spec);return r?yl(t):af(t)}function yl(t){var r=t.spec,i=t.pathName,o=t.method,s=t.server,p=t.contextUrl,m=t.serverVariables,E=m===void 0?{}:m,w=ba()(r,["paths",i,(o||"").toLowerCase(),"servers"])||ba()(r,["paths",i,"servers"])||ba()(r,["servers"]),A="",k=null;if(s&&w&&w.length){var G=qt()(w).call(w,function(fe){return fe.url});G.indexOf(s)>-1&&(A=s,k=w[G.indexOf(s)])}if(!A&&w&&w.length){A=w[0].url;var ne=tn(w,1);k=ne[0]}if(A.indexOf("{")>-1){var te=nf(A);te.forEach(function(fe){if(k.variables&&k.variables[fe]){var ye=k.variables[fe],ge=E[fe]||ye.default,Ee=new RegExp("{".concat(fe,"}"),"g");A=A.replace(Ee,ge)}})}return rf(A,p)}function rf(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t&&r?Ei.parse(Ei.resolve(r,t)):Ei.parse(t),o=Ei.parse(r),s=Cn(i.protocol)||Cn(o.protocol)||"",p=i.host||o.host,m=i.pathname||"",E;if(s&&p){var w;E=Ot()(w="".concat(s,"://")).call(w,p+m)}else E=m;return E[E.length-1]==="/"?In()(E).call(E,0,-1):E}function nf(t){for(var r=[],i=/{([^}]+)}/g,o;o=i.exec(t);)r.push(o[1]);return r}function af(t){var r=t.spec,i=t.scheme,o=t.contextUrl,s=o===void 0?"":o,p=Ei.parse(s),m=Array.isArray(r.schemes)?r.schemes[0]:null,E=i||m||Cn(p.protocol)||"http",w=r.host||p.host||"",A=r.basePath||"",k;if(E&&w){var G;k=Ot()(G="".concat(E,"://")).call(G,w+A)}else k=A;return k[k.length-1]==="/"?In()(k).call(k,0,-1):k}br.http=Oi,br.makeHttp=Ks.bind(null,br.http),br.resolve=Gu,br.resolveSubtree=bc,br.execute=gl,br.serializeRes=fu,br.serializeHeaders=Gs,br.clearCache=dl,br.makeApisTagOperation=$u,br.buildRequest=Sa,br.helpers={opId:pi},br.getBaseUrl=oo;function br(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof t=="string"?i.url=t:i=t,!(this instanceof br))return new br(i);ji()(this,i);var o=this.resolve().then(function(){return r.disableInterfaces||ji()(r,br.makeApisTagOperation(r)),r});return o.client=this,o}br.prototype={http:Oi,execute:function(r){return this.applyDefaults(),br.execute(fr({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return br.resolve(fr({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},i)).then(function(o){return r.originalSpec=r.spec,r.spec=o.spec,r.errors=o.errors,r})}},br.prototype.applyDefaults=function(){var r=this.spec,i=this.url;if(i&&Vi()(i,"http")){var o=Ei.parse(i);r.host||(r.host=o.host),r.schemes||(r.schemes=[o.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var Dc=br.helpers;const Nc=br;var zt=a(25446),ml=a(11429),wt=a(76671),of=a(7930),so=a(51027),On=a(78722),sf=a(17673),kn=a(64776),Bc=Object.defineProperty,Sr=Object.defineProperties,Uc=Object.getOwnPropertyDescriptors,lf=Object.getOwnPropertySymbols,jc=Object.prototype.hasOwnProperty,ns=Object.prototype.propertyIsEnumerable,e=(t,r,i)=>r in t?Bc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,n=(t,r)=>{for(var i in r||(r={}))jc.call(r,i)&&e(t,i,r[i]);if(lf)for(var i of lf(r))ns.call(r,i)&&e(t,i,r[i]);return t},u=(t,r)=>Sr(t,Uc(r)),l=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{E(i.next(w))}catch(A){s(A)}},m=w=>{try{E(i.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);E((i=i.apply(t,r)).next())});const f="/oauth2-redirect.html";class y{static authorizeImplicit({authorizationUrl:r,clientId:i,scopes:o,extraParams:s={},routingBasePath:p,redirectUri:m,successCallback:E,errorCallback:w}){const A=(0,kn.p8)({date:new Date().toString()}),k=new URL(r),G=p==="/"?"":p,ne=`${window.location.origin}${G}${f}`;k.searchParams.set("client_id",i),k.searchParams.set("redirect_uri",m||ne),k.searchParams.set("response_type","token"),k.searchParams.set("state",A),Array.isArray(o)&&k.searchParams.set("scope",o.join(" "));for(const te in s)k.searchParams.set(te,s[te]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:i,scopes:o},state:A,successCallback:te=>{E(te),y.clearRedirectData("implicit")},errorCallback:te=>{w(te),y.clearRedirectData("implicit")}},window.open(k.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:i,clientId:o,clientSecret:s,codeVerifier:p,codeChallenge:m,scopes:E,extraParams:w={},routingBasePath:A,redirectUri:k,successCallback:G,errorCallback:ne}){const te=new URL(r),fe=A==="/"?"":A,ye=`${window.location.origin}${fe}${f}`,ge=(0,kn.p8)({date:new Date().toString()});te.searchParams.set("client_id",o),te.searchParams.set("redirect_uri",k||ye),te.searchParams.set("response_type","code"),te.searchParams.set("state",ge),Array.isArray(E)&&te.searchParams.set("scope",E.join(" ")),m&&(te.searchParams.set("code_challenge",m),te.searchParams.set("code_challenge_method","S256"));for(const Ee in w)te.searchParams.set(Ee,w[Ee]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:o,scopes:E},state:ge,successCallback:Ee=>l(this,[Ee],function*({auth_code:we}){try{const Te=yield fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:sf.stringify(n(u(n({client_id:o,client_secret:s},p&&{code_verifier:p}),{code:we,grant_type:"authorization_code",redirect_uri:k||ye}),w))});yield U(Te,G,ne)}catch(Te){ne(Te)}y.clearRedirectData("authorizationCode")}),errorCallback:Ee=>{ne(Ee),y.clearRedirectData("authorizationCode")}},window.open(te.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return l(this,arguments,function*({tokenUrl:i,clientId:o,clientSecret:s,scopes:p=[],extraParams:m={},successCallback:E,errorCallback:w}){try{const A=yield fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:sf.stringify(n({client_id:o,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(p)?p.join(" "):void 0},m))});yield U(A,E,w)}catch(A){w(A)}})}}const F=new y;function U(t,r,i){return l(this,null,function*(){if(t.ok){const o=yield t.json();r(o)}else i(new Error((t.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield t.json()):yield t.text()))})}function H(t){return l(this,null,function*(){return(0,kn.rS)(yield(0,kn.JQ)(t))})}var Z=a(68929),xe;(function(t){t.STRING="string",t.ARRAY="array",t.OBJECT="object"})(xe||(xe={}));var Ce;(function(t){t.BYTE="byte",t.BASE64="base64",t.BINARY="binary"})(Ce||(Ce={}));var De=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{E(i.next(w))}catch(A){s(A)}},m=w=>{try{E(i.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);E((i=i.apply(t,r)).next())});const ke=Object.values(Ce),Ye=["application/octet-stream","application/pdf","application/gzip","application/zip"],tt=["image/","audio/","video/"];function ot(t){if(tt.some(r=>t.startsWith(r)))return t}function ct(t){return Ye.includes(t)?!0:tt.some(r=>t.startsWith(r))}function gt(t){const r=t.type==="array"?t.items:t;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const i=r.contentMediaType||"",o=r.format||r.contentEncoding||(ct(i)?"binary":"");return r.type===xe.STRING&&ke.includes(o)}function dt(t,r){if(!t||!t.type||t.type==="any")return ct(r);const i=t.format||t.contentEncoding||"";return t.type===xe.STRING&&ke.includes(i)}function xt(t){return new Promise((r,i)=>{const o=new FileReader;o.onload=()=>{const p=o.result.replace(/data:.*\/.*;base64,/g,"");r(p)},o.onerror=()=>i(o.error),o.readAsDataURL(t)})}function Ft({format:t,contentEncoding:r,contentMediaType:i}){return[t,r,i].includes(Ce.BASE64)}function It(t,r){return De(this,null,function*(){const i=Object.values(t);let o=i.length===1?i[0]:i;return r.type===xe.STRING&&Ft(r)?o=yield xt(i[0]):r.type===xe.ARRAY&&r.items&&(Ft(r.items)?o=yield Promise.all(i.map(p=>De(this,null,function*(){return yield xt(p)}))):o=i),o})}var it=a(39713),Gt=a(23485),hr=a(21096),vr=Object.defineProperty,bn=Object.defineProperties,fn=Object.getOwnPropertyDescriptors,Ar=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable,Fr=(t,r,i)=>r in t?vr(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,gr=(t,r)=>{for(var i in r||(r={}))cn.call(r,i)&&Fr(t,i,r[i]);if(Ar)for(var i of Ar(r))$r.call(r,i)&&Fr(t,i,r[i]);return t},yr=(t,r)=>bn(t,fn(r));const nn=Gt.iv`
|
|
92
|
+
*/var Xs=new WeakMap,Qs=function(){function t(r){this.observers=new Map,this.obj=r}return t}(),xu=function(){function t(r,i){this.callback=r,this.observer=i}return t}();function Zs(t){return Xs.get(t)}function ic(t,r){return t.observers.get(r)}function _s(t,r){t.observers.delete(r.callback)}function qs(t,r){r.unobserve()}function bu(t,r){var i=[],a,s=Zs(t);if(!s)s=new Qs(t),Xs.set(t,s);else{var p=ic(s,r);a=p&&p.observer}if(a)return a;if(a={},s.value=yn(t),r){a.callback=r,a.next=null;var y=function(){Da(a)},E=function(){clearTimeout(a.next),a.next=setTimeout(y)};typeof window!="undefined"&&(window.addEventListener("mouseup",E),window.addEventListener("keyup",E),window.addEventListener("mousedown",E),window.addEventListener("keydown",E),window.addEventListener("change",E))}return a.patches=i,a.object=t,a.unobserve=function(){Da(a),clearTimeout(a.next),_s(s,a),typeof window!="undefined"&&(window.removeEventListener("mouseup",E),window.removeEventListener("keyup",E),window.removeEventListener("mousedown",E),window.removeEventListener("keydown",E),window.removeEventListener("change",E))},s.observers.set(r,new xu(r,a)),a}function Da(t,r){r===void 0&&(r=!1);var i=Xs.get(t.object);Ko(i.value,t.object,t.patches,"",r),t.patches.length&&Gn(i.value,t.patches);var a=t.patches;return a.length>0&&(t.patches=[],t.callback&&t.callback(a)),a}function Ko(t,r,i,a,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var p=Ra(r),y=Ra(t),E=!1,w=!1,A=y.length-1;A>=0;A--){var k=y[A],G=t[k];if(fi(r,k)&&!(r[k]===void 0&&G!==void 0&&Array.isArray(r)===!1)){var ne=r[k];typeof G=="object"&&G!=null&&typeof ne=="object"&&ne!=null?Ko(G,ne,i,a+"/"+ci(k),s):G!==ne&&(E=!0,s&&i.push({op:"test",path:a+"/"+ci(k),value:yn(G)}),i.push({op:"replace",path:a+"/"+ci(k),value:yn(ne)}))}else Array.isArray(t)===Array.isArray(r)?(s&&i.push({op:"test",path:a+"/"+ci(k),value:yn(G)}),i.push({op:"remove",path:a+"/"+ci(k)}),w=!0):(s&&i.push({op:"test",path:a,value:t}),i.push({op:"replace",path:a,value:r}),E=!0)}if(!(!w&&p.length==y.length))for(var A=0;A<p.length;A++){var k=p[A];!fi(t,k)&&r[k]!==void 0&&i.push({op:"add",path:a+"/"+ci(k),value:yn(r[k])})}}}function wu(t,r,i){i===void 0&&(i=!1);var a=[];return Ko(t,r,a,"",i),a}const Na=Object.assign({},c,v,{JsonPatchError:yu,deepClone:yn,escapePathComponent:ci,unescapePathComponent:Ti});var oc=o(31312),Ba=o.n(oc),di=o(50361),Su=o.n(di);const rr={add:er,replace:En,remove:Ii,merge:Fi,mergeDeep:Eu,context:el,getIn:ki,applyPatch:Au,parentPathMatch:tl,flatten:Yo,fullyNormalizeArray:Ou,normalizeArray:rl,isPromise:Tu,forEachNew:Cu,forEachNewPrimitive:ac,isJsonPatch:Fu,isContextPatch:lc,isPatch:Va,isMutation:Xo,isAdditiveMutation:Qo,isGenerator:sc,isFunction:Pu,isObject:ei,isError:Iu};function Au(t,r,i){if(i=i||{},r=fr(fr({},r),{},{path:r.path&&mn(r.path)}),r.op==="merge"){var a=Wa(t,r.path);rn()(a,r.value),Gn(t,[En(r.path,a)])}else if(r.op==="mergeDeep"){var s=Wa(t,r.path);for(var p in r.value){var y=r.value[p],E=Array.isArray(y);if(E){var w=s[p]||[];s[p]=Ot()(w).call(w,y)}else if(ei(y)&&!E){var A=fr({},s[p]);for(var k in y)if(Object.prototype.hasOwnProperty.call(A,k)){A=Ba()(Su()(A),y);break}else rn()(A,Ss({},k,y[k]));s[p]=A}else s[p]=y}}else if(r.op==="add"&&r.path===""&&ei(r.value)){var G=Qt()(r.value).reduce(function(ge,Ee){return ge.push({op:"add",path:"/".concat(mn(Ee)),value:r.value[Ee]}),ge},[]);Gn(t,G)}else if(r.op==="replace"&&r.path===""){var ne=r,re=ne.value;i.allowMetaPatches&&r.meta&&Qo(r)&&(Array.isArray(r.value)||ei(r.value))&&(re=fr(fr({},re),r.meta)),t=re}else if(Gn(t,[r]),i.allowMetaPatches&&r.meta&&Qo(r)&&(Array.isArray(r.value)||ei(r.value))){var se=Wa(t,r.path),ye=fr(fr({},se),r.meta);Gn(t,[En(r.path,ye)])}return t}function mn(t){return Array.isArray(t)?t.length<1?"":"/".concat(qt()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function er(t,r){return{op:"add",path:t,value:r}}function En(t,r,i){return{op:"replace",path:t,value:r,meta:i}}function Ii(t){return{op:"remove",path:t}}function Fi(t,r){return{type:"mutation",op:"merge",path:t,value:r}}function Eu(t,r){return{type:"mutation",op:"mergeDeep",path:t,value:r}}function el(t,r){return{type:"context",path:t,value:r}}function Cu(t,r){try{return Ua(t,ja,r)}catch(i){return i}}function ac(t,r){try{return Ua(t,_i,r)}catch(i){return i}}function Ua(t,r,i){var a,s=qt()(a=ln()(t).call(t,Qo)).call(a,function(E){return r(E.value,i,E.path)})||[],p=Yo(s),y=Jo(p);return y}function _i(t,r,i){if(i=i||[],Array.isArray(t))return qt()(t).call(t,function(s,p){return _i(s,r,Ot()(i).call(i,p))});if(ei(t)){var a;return qt()(a=Qt()(t)).call(a,function(s){return _i(t[s],r,Ot()(i).call(i,s))})}return r(t,i[i.length-1],i)}function ja(t,r,i){i=i||[];var a=[];if(i.length>0){var s=r(t,i[i.length-1],i);s&&(a=Ot()(a).call(a,s))}if(Array.isArray(t)){var p=qt()(t).call(t,function(w,A){return ja(w,r,Ot()(i).call(i,A))});p&&(a=Ot()(a).call(a,p))}else if(ei(t)){var y,E=qt()(y=Qt()(t)).call(y,function(w){return ja(t[w],r,Ot()(i).call(i,w))});E&&(a=Ot()(a).call(a,E))}return a=Yo(a),a}function tl(t,r){if(!Array.isArray(r))return!1;for(var i=0,a=r.length;i<a;i+=1)if(r[i]!==t[i])return!1;return!0}function ki(t,r){return r.reduce(function(i,a){return typeof a!="undefined"&&i?i[a]:i},t)}function Ou(t){return Jo(Yo(rl(t)))}function rl(t){return Array.isArray(t)?t:[t]}function Yo(t){var r;return Ot()(r=[]).apply(r,Pn(qt()(t).call(t,function(i){return Array.isArray(i)?Yo(i):i})))}function Jo(t){return ln()(t).call(t,function(r){return typeof r!="undefined"})}function ei(t){return t&&nr(t)==="object"}function Tu(t){return ei(t)&&Pu(t.then)}function Pu(t){return t&&typeof t=="function"}function Iu(t){return t instanceof Error}function Fu(t){if(Va(t)){var r=t.op;return r==="add"||r==="remove"||r==="replace"}return!1}function sc(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function Xo(t){return Fu(t)||Va(t)&&t.type==="mutation"}function Qo(t){return Xo(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function lc(t){return Va(t)&&t.type==="context"}function Va(t){return t&&nr(t)==="object"}function Wa(t,r){try{return Lr(t,r)}catch(i){return console.error(i),{}}}var po=o(52424),nl=o.n(po),Ha=o(54098),ku=o(9779),za=o.n(ku);function il(t,r){function i(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var a=arguments.length,s=new Array(a),p=0;p<a;p++)s[p]=arguments[p];this.message=s[0],r&&r.apply(this,s)}return i.prototype=new Error,i.prototype.name=t,i.prototype.constructor=i,i}var uc=o(13692),Mu=o.n(uc),Xr=o(47037),Ga=o.n(Xr),Ru=["properties"],Lu=["properties"],Du=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],ho=["schema/example","items/example"];function Zo(t){var r=t[t.length-1],i=t[t.length-2],a=t.join("/");return Ru.indexOf(r)>-1&&Lu.indexOf(i)===-1||Du.indexOf(a)>-1||ho.some(function(s){return a.indexOf(s)>-1})}function Nu(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=i.specmap,s=i.getBaseUrlForNodePath,p=s===void 0?function(A){var k;return a.getContext(Ot()(k=[]).call(k,Pn(r),Pn(A))).baseDoc}:s,y=i.targetKeys,E=y===void 0?["$ref","$$ref"]:y,w=[];return Mu()(t).forEach(function(){if(wa()(E).call(E,this.key)&&Ga()(this.node)){var k=this.path,G=Ot()(r).call(r,this.path),ne=$a(this.node,p(k));w.push(a.replace(G,ne))}}),w}function $a(t,r){var i,a=t.split("#"),s=tn(a,2),p=s[0],y=s[1],E=Ei.resolve(p||"",r||"");return y?Ot()(i="".concat(E,"#")).call(i,y):E}var ol="application/json, application/yaml",vo=new RegExp("^([a-z]+://|//)","i"),qi=il("JSONRefError",function(r,i,a){this.originalError=a,rn()(this,i||{})}),Fn={},al=new(nl()),_o=[function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="examples"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="examples"&&t[6]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="examples"&&t[7]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[4]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"}],fc=function(r){return _o.some(function(i){return i(r)})},go={key:"$ref",plugin:function(r,i,a,s){var p=s.getInstance(),y=In()(a).call(a,0,-1);if(!(Zo(y)||fc(y))){var E=s.getContext(a),w=E.baseDoc;if(typeof r!="string")return new qi("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:w,fullPath:a});var A=yo(r),k=A[0],G=A[1]||"",ne;try{ne=w||k?ll(k,w):null}catch(me){return eo(me,{pointer:G,$ref:r,basePath:ne,fullPath:a})}var re,se;if(pc(G,ne,y,s)&&!p.useCircularStructures){var ye=$a(r,ne);return r===ye?null:rr.replace(a,ye)}if(ne==null?(se=ti(G),re=s.get(se),typeof re=="undefined"&&(re=new qi("Could not resolve reference: ".concat(r),{pointer:G,$ref:r,baseDoc:w,fullPath:a}))):(re=mo(ne,G),re.__value!=null?re=re.__value:re=re.catch(function(me){throw eo(me,{pointer:G,$ref:r,baseDoc:w,fullPath:a})})),re instanceof Error)return[rr.remove(a),re];var ge=$a(r,ne),Ee=rr.replace(y,re,{$$ref:ge});if(ne&&ne!==w)return[Ee,rr.context(y,{baseDoc:ne})];try{if(!hc(s.state,Ee)||p.useCircularStructures)return Ee}catch(me){return null}}}},sl=rn()(go,{docCache:Fn,absoluteify:ll,clearCache:qo,JSONRefError:qi,wrapError:eo,getDoc:ul,split:yo,extractFromDoc:mo,fetchJSON:cc,extract:Ka,jsonPointerToArray:ti,unescapeJsonPointerToken:to});const Bu=sl;function ll(t,r){if(!vo.test(t)){if(!r){var i;throw new qi(Ot()(i="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(i,r,"'"))}return Ei.resolve(r,t)}return t}function eo(t,r){var i;if(t&&t.response&&t.response.body){var a;i=Ot()(a="".concat(t.response.body.code," ")).call(a,t.response.body.message)}else i=t.message;return new qi("Could not resolve reference: ".concat(i),r,t)}function yo(t){return(t+"").split("#")}function mo(t,r){var i=Fn[t];if(i&&!rr.isPromise(i))try{var a=Ka(r,i);return rn()(Ji().resolve(a),{__value:a})}catch(s){return Ji().reject(s)}return ul(t).then(function(s){return Ka(r,s)})}function qo(t){typeof t!="undefined"?delete Fn[t]:Qt()(Fn).forEach(function(r){delete Fn[r]})}function ul(t){var r=Fn[t];return r?rr.isPromise(r)?r:Ji().resolve(r):(Fn[t]=sl.fetchJSON(t).then(function(i){return Fn[t]=i,i}),Fn[t])}function cc(t){return(0,Ha.fetch)(t,{headers:{Accept:ol},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Ms().safeLoad(r)})}function Ka(t,r){var i=ti(t);if(i.length<1)return r;var a=rr.getIn(r,i);if(typeof a=="undefined")throw new qi("Could not resolve pointer: ".concat(t," does not exist in document"),{pointer:t});return a}function ti(t){var r;if(typeof t!="string")throw new TypeError("Expected a string, got a ".concat(nr(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:qt()(r=t.split("/")).call(r,to)}function to(t){return typeof t!="string"?t:za().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function xo(t){return za().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function dc(t){return t.length===0?"":"/".concat(qt()(t).call(t,xo).join("/"))}var Uu=function(r){return!r||r==="/"||r==="#"};function fl(t,r){if(Uu(r))return!0;var i=t.charAt(r.length),a=In()(r).call(r,-1);return t.indexOf(r)===0&&(!i||i==="/"||i==="#")&&a!=="#"}function pc(t,r,i,a){var s,p,y=al.get(a);y||(y={},al.set(a,y));var E=dc(i),w=Ot()(s="".concat(r||"<specmap-base>","#")).call(s,t),A=E.replace(/allOf\/\d+\/?/g,""),k=a.contextTree.get([]).baseDoc;if(r==k&&fl(A,t))return!0;var G="",ne=i.some(function(re){var se;return G=Ot()(se="".concat(G,"/")).call(se,xo(re)),y[G]&&y[G].some(function(ye){return fl(ye,w)||fl(w,ye)})});if(ne)return!0;y[A]=Ot()(p=y[A]||[]).call(p,w)}function hc(t,r){var i=[t];return r.path.reduce(function(s,p){return i.push(s[p]),s[p]},t),a(r.value);function a(s){return rr.isObject(s)&&(i.indexOf(s)>=0||Qt()(s).some(function(p){return a(s[p])}))}}var un=o(41609),ju=o.n(un);const vc={key:"allOf",plugin:function(r,i,a,s,p){if(!(p.meta&&p.meta.$$ref)){var y=In()(a).call(a,0,-1);if(!Zo(y)){if(!Array.isArray(r)){var E=new TypeError("allOf must be an array");return E.fullPath=a,E}var w=!1,A=p.value;if(y.forEach(function(ne){!A||(A=A[ne])}),A=fr({},A),!ju()(A)){delete A.allOf;var k=[];if(k.push(s.replace(y,{})),r.forEach(function(ne,re){if(!s.isObject(ne)){if(w)return null;w=!0;var se=new TypeError("Elements in allOf must be objects");return se.fullPath=a,k.push(se)}k.push(s.mergeDeep(y,ne));var ye=In()(a).call(a,0,-1),ge=Nu(ne,ye,{getBaseUrlForNodePath:function(me){var Pe;return s.getContext(Ot()(Pe=[]).call(Pe,Pn(a),[re],Pn(me))).baseDoc},specmap:s});k.push.apply(k,Pn(ge))}),k.push(s.mergeDeep(y,A)),!A.$$ref){var G;k.push(s.remove(Ot()(G=[]).call(G,y,"$$ref")))}return k}}}}},gc={key:"parameters",plugin:function(r,i,a,s){if(Array.isArray(r)&&r.length){var p=rn()([],r),y=In()(a).call(a,0,-1),E=fr({},rr.getIn(s.spec,y));return r.forEach(function(w,A){try{p[A].default=s.parameterMacro(E,w)}catch(G){var k=new Error(G);return k.fullPath=a,k}}),rr.replace(a,p)}return rr.replace(a,r)}},yc={key:"properties",plugin:function(r,i,a,s){var p=fr({},r);for(var y in r)try{p[y].default=s.modelPropertyMacro(p[y])}catch(A){var E=new Error(A);return E.fullPath=a,E}var w=rr.replace(a,p);return w}};var Vu=function(){function t(r){Aa(this,t),this.root=Ya(r||{})}return Ds(t,[{key:"set",value:function(i,a){var s=this.getParent(i,!0);if(!s){ea(this.root,a,null);return}var p=i[i.length-1],y=s.children;if(y[p]){ea(y[p],a,s);return}y[p]=Ya(a,s)}},{key:"get",value:function(i){if(i=i||[],i.length<1)return this.root.value;for(var a=this.root,s,p,y=0;y<i.length&&(p=i[y],s=a.children,!!s[p]);y+=1)a=s[p];return a&&a.protoValue}},{key:"getParent",value:function(i,a){return!i||i.length<1?null:i.length<2?this.root:In()(i).call(i,0,-1).reduce(function(s,p){if(!s)return s;var y=s.children;return!y[p]&&a&&(y[p]=Ya(null,s)),y[p]},this.root)}}]),t}();function Ya(t,r){return ea({children:{}},t,r)}function ea(t,r,i){return t.value=r||{},t.protoValue=i?fr(fr({},i.protoValue),t.value):t.value,Qt()(t.children).forEach(function(a){var s=t.children[a];t.children[a]=ea(s,s.value,t)}),t}var Wu=100,mc=function(){function t(r){var i=this,a,s;Aa(this,t),rn()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new Vu,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:rn()(Object.create(this),rr,{getInstance:function(){return i}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=ln()(a=qt()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(a,rr.isFunction),this.patches.push(rr.add([],this.spec)),this.patches.push(rr.context([],this.context)),this.updatePatches(this.patches)}return Ds(t,[{key:"debug",value:function(i){if(this.debugLevel===i){for(var a,s=arguments.length,p=new Array(s>1?s-1:0),y=1;y<s;y++)p[y-1]=arguments[y];(a=console).log.apply(a,p)}}},{key:"verbose",value:function(i){if(this.debugLevel==="verbose"){for(var a,s,p=arguments.length,y=new Array(p>1?p-1:0),E=1;E<p;E++)y[E-1]=arguments[E];(a=console).log.apply(a,Ot()(s=["[".concat(i,"] ")]).call(s,y))}}},{key:"wrapPlugin",value:function(i,a){var s=this.pathDiscriminator,p=null,y;return i[this.pluginProp]?(p=i,y=i[this.pluginProp]):rr.isFunction(i)?y=i:rr.isObject(i)&&(y=E(i)),rn()(y.bind(p),{pluginName:i.name||a,isGenerator:rr.isGenerator(y)});function E(w){var A=function(G,ne){return Array.isArray(G)?G.every(function(re,se){return re===ne[se]}):!0};return ir().mark(function k(G,ne){var re,se,ye,ge,Ee,me;return ir().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:me=function(He,Ne,Ve){var We,Je,ze,et,At,Nt,Ht,or,Mr,Cr,Jr,wr,Dr;return ir().wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(rr.isObject(He)){Yt.next=6;break}if(w.key!==Ne[Ne.length-1]){Yt.next=4;break}return Yt.next=4,w.plugin(He,w.key,Ne,ne);case 4:Yt.next=30;break;case 6:We=Ne.length-1,Je=Ne[We],ze=Ne.indexOf("properties"),et=Je==="properties"&&We===ze,At=ne.allowMetaPatches&&se[He.$$ref],Nt=0,Ht=Qt()(He);case 12:if(!(Nt<Ht.length)){Yt.next=30;break}if(or=Ht[Nt],Mr=He[or],Cr=Ot()(Ne).call(Ne,or),Jr=rr.isObject(Mr),wr=He.$$ref,At){Yt.next=22;break}if(!Jr){Yt.next=22;break}return ne.allowMetaPatches&&wr&&(se[wr]=!0),Yt.delegateYield(me(Mr,Cr,Ve),"t0",22);case 22:if(!(!et&&or===w.key)){Yt.next=27;break}if(Dr=A(s,Ne),!(!s||Dr)){Yt.next=27;break}return Yt.next=27,w.plugin(Mr,or,Cr,ne,Ve);case 27:Nt++,Yt.next=12;break;case 30:case"end":return Yt.stop()}},re)},re=ir().mark(me),se={},ye=Hi(ln()(G).call(G,rr.isAdditiveMutation)),Ge.prev=4,ye.s();case 6:if((ge=ye.n()).done){Ge.next=11;break}return Ee=ge.value,Ge.delegateYield(me(Ee.value,Ee.path,Ee),"t0",9);case 9:Ge.next=6;break;case 11:Ge.next=16;break;case 13:Ge.prev=13,Ge.t1=Ge.catch(4),ye.e(Ge.t1);case 16:return Ge.prev=16,ye.f(),Ge.finish(16);case 19:case"end":return Ge.stop()}},k,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var i=this;return vu()(this.wrappedPlugins,function(a){var s=i.getMutationsForPlugin(a);return s.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var i;return Ji().race(qt()(i=this.promisedPatches).call(i,function(a){return a.value}))}}},{key:"getPluginHistory",value:function(i){var a=this.constructor.getPluginName(i);return this.pluginHistory[a]||[]}},{key:"getPluginRunCount",value:function(i){return this.getPluginHistory(i).length}},{key:"getPluginHistoryTip",value:function(i){var a=this.getPluginHistory(i),s=a&&a[a.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(i){var a=this.getPluginHistoryTip(i).mutationIndex;return typeof a!="number"?-1:a}},{key:"updatePluginHistory",value:function(i,a){var s=this.constructor.getPluginName(i);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(a)}},{key:"updatePatches",value:function(i){var a=this;rr.normalizeArray(i).forEach(function(s){if(s instanceof Error){a.errors.push(s);return}try{if(!rr.isObject(s)){a.debug("updatePatches","Got a non-object patch",s);return}if(a.showDebug&&a.allPatches.push(s),rr.isPromise(s.value)){a.promisedPatches.push(s),a.promisedPatchThen(s);return}if(rr.isContextPatch(s)){a.setContext(s.path,s.value);return}if(rr.isMutation(s)){a.updateMutations(s);return}}catch(p){console.error(p),a.errors.push(p)}})}},{key:"updateMutations",value:function(i){nr(i.value)==="object"&&!Array.isArray(i.value)&&this.allowMetaPatches&&(i.value=fr({},i.value));var a=rr.applyPatch(this.state,i,{allowMetaPatches:this.allowMetaPatches});a&&(this.mutations.push(i),this.state=a)}},{key:"removePromisedPatch",value:function(i){var a,s=this.promisedPatches.indexOf(i);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}hu()(a=this.promisedPatches).call(a,s,1)}},{key:"promisedPatchThen",value:function(i){var a=this;return i.value=i.value.then(function(s){var p=fr(fr({},i),{},{value:s});a.removePromisedPatch(i),a.updatePatches(p)}).catch(function(s){a.removePromisedPatch(i),a.updatePatches(s)}),i.value}},{key:"getMutations",value:function(i,a){var s;return i=i||0,typeof a!="number"&&(a=this.mutations.length),In()(s=this.mutations).call(s,i,a)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(i){var a=this.getPluginMutationIndex(i);return this.getMutations(a+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(i){return rr.getIn(this.state,i)}},{key:"_getContext",value:function(i){return this.contextTree.get(i)}},{key:"setContext",value:function(i,a){return this.contextTree.set(i,a)}},{key:"_hasRun",value:function(i){var a=this.getPluginRunCount(this.getCurrentPlugin());return a>(i||0)}},{key:"dispatch",value:function(){var i=this,a=this,s=this.nextPlugin();if(!s){var p=this.nextPromisedPatch();if(p)return p.then(function(){return i.dispatch()}).catch(function(){return i.dispatch()});var y={spec:this.state,errors:this.errors};return this.showDebug&&(y.patches=this.allPatches),Ji().resolve(y)}if(a.pluginCount=a.pluginCount||{},a.pluginCount[s]=(a.pluginCount[s]||0)+1,a.pluginCount[s]>Wu){var E;return Ji().resolve({spec:a.state,errors:Ot()(E=a.errors).call(E,new Error("We've reached a hard limit of ".concat(Wu," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var w,A=qt()(w=this.promisedPatches).call(w,function(ne){return ne.value});return Ji().all(qt()(A).call(A,function(ne){return ne.then(co(),co())})).then(function(){return i.dispatch()})}return k();function k(){a.currentPlugin=s;var ne=a.getCurrentMutations(),re=a.mutations.length-1;try{if(s.isGenerator){var se=Hi(s(ne,a.getLib())),ye;try{for(se.s();!(ye=se.n()).done;){var ge=ye.value;G(ge)}}catch(me){se.e(me)}finally{se.f()}}else{var Ee=s(ne,a.getLib());G(Ee)}}catch(me){console.error(me),G([rn()(Object.create(me),{plugin:s})])}finally{a.updatePluginHistory(s,{mutationIndex:re})}return a.dispatch()}function G(ne){ne&&(ne=rr.fullyNormalizeArray(ne),a.updatePatches(ne,s))}}}],[{key:"getPluginName",value:function(i){return i.pluginName}},{key:"getPatchesOfType",value:function(i,a){return ln()(i).call(i,a)}}]),t}();function xc(t){return new mc(t).dispatch()}var xn={refs:Bu,allOf:vc,parameters:gc,properties:yc},ta=o(13218),ra=o.n(ta),bo=function(r){return String.prototype.toLowerCase.call(r)},ri=function(r){return r.replace(/[^\w]/gi,"_")};function Hu(t){var r=t.openapi;return r?Vi()(r,"3"):!1}function Rd(t){var r=t.swagger;return r?startsWith(r,"2"):!1}function pi(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=a.v2OperationIdCompatibilityMode;if(!t||nr(t)!=="object")return null;var p=(t.operationId||"").replace(/\s/g,"");return p.length?ri(t.operationId):zu(r,i,{v2OperationIdCompatibilityMode:s})}function zu(t,r){var i,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=a.v2OperationIdCompatibilityMode;if(s){var p,y,E=Ot()(p="".concat(r.toLowerCase(),"_")).call(p,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return E=E||Ot()(y="".concat(t.substring(1),"_")).call(y,r),E.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Ot()(i="".concat(bo(r))).call(i,ri(t))}function cl(t,r){var i;return Ot()(i="".concat(bo(r),"-")).call(i,t)}function Gu(t,r){return!t||!t.paths?null:Ja(t,function(i){var a=i.pathName,s=i.method,p=i.operation;if(!p||nr(p)!=="object")return!1;var y=p.operationId,E=pi(p,a,s),w=cl(a,s);return[E,w,y].some(function(A){return A&&A===r})})}function Ja(t,r){return ro(t,r,!0)||null}function ro(t,r,i){if(!t||nr(t)!=="object"||!t.paths||nr(t.paths)!=="object")return null;var a=t.paths;for(var s in a)for(var p in a[s])if(p.toUpperCase()!=="PARAMETERS"){var y=a[s][p];if(!(!y||nr(y)!=="object")){var E={spec:t,pathName:s,method:p.toUpperCase(),operation:y},w=r(E);if(i&&w)return E}}}function Xa(t){var r=t.spec,i=r.paths,a={};if(!i||r.$$normalized)return t;for(var s in i){var p=i[s];if(!!ra()(p)){var y=p.parameters,E=function(G){var ne=p[G];if(!ra()(ne))return"continue";var re=pi(ne,s,G);if(re){a[re]?a[re].push(ne):a[re]=[ne];var se=a[re];if(se.length>1)se.forEach(function(Je,ze){var et;Je.__originalOperationId=Je.__originalOperationId||Je.operationId,Je.operationId=Ot()(et="".concat(re)).call(et,ze+1)});else if(typeof ne.operationId!="undefined"){var ye=se[0];ye.__originalOperationId=ye.__originalOperationId||ne.operationId,ye.operationId=re}}if(G!=="parameters"){var ge=[],Ee={};for(var me in r)(me==="produces"||me==="consumes"||me==="security")&&(Ee[me]=r[me],ge.push(Ee));if(y&&(Ee.parameters=y,ge.push(Ee)),ge.length){var Pe=Hi(ge),Ge;try{for(Pe.s();!(Ge=Pe.n()).done;){var je=Ge.value;for(var He in je)if(!ne[He])ne[He]=je[He];else if(He==="parameters"){var Ne=Hi(je[He]),Ve;try{var We=function(){var ze=Ve.value,et=ne[He].some(function(At){return At.name&&At.name===ze.name||At.$ref&&At.$ref===ze.$ref||At.$$ref&&At.$$ref===ze.$$ref||At===ze});et||ne[He].push(ze)};for(Ne.s();!(Ve=Ne.n()).done;)We()}catch(Je){Ne.e(Je)}finally{Ne.f()}}}}catch(Je){Pe.e(Je)}finally{Pe.f()}}}};for(var w in p)var A=E(w)}}return r.$$normalized=!0,t}function Qa(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.requestInterceptor,a=r.responseInterceptor,s=t.withCredentials?"include":"same-origin";return function(p){return t({url:p,loadSpec:!0,requestInterceptor:i,responseInterceptor:a,headers:{Accept:ol},credentials:s}).then(function(y){return y.body})}}function dl(){xn.refs.clearCache()}function $u(t){var r=t.fetch,i=t.spec,a=t.url,s=t.mode,p=t.allowMetaPatches,y=p===void 0?!0:p,E=t.pathDiscriminator,w=t.modelPropertyMacro,A=t.parameterMacro,k=t.requestInterceptor,G=t.responseInterceptor,ne=t.skipNormalization,re=t.useCircularStructures,se=t.http,ye=t.baseDoc;if(ye=ye||a,se=r||se||Oi,!i)return Qa(se,{requestInterceptor:k,responseInterceptor:G})(ye).then(ge);return ge(i);function ge(Ee){ye&&(xn.refs.docCache[ye]=Ee),xn.refs.fetchJSON=Qa(se,{requestInterceptor:k,responseInterceptor:G});var me=[xn.refs];return typeof A=="function"&&me.push(xn.parameters),typeof w=="function"&&me.push(xn.properties),s!=="strict"&&me.push(xn.allOf),xc({spec:Ee,context:{baseDoc:ye},plugins:me,allowMetaPatches:y,pathDiscriminator:E,parameterMacro:A,modelPropertyMacro:w,useCircularStructures:re}).then(ne?function(){var Pe=Is(ir().mark(function Ge(je){return ir().wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.abrupt("return",je);case 1:case"end":return Ne.stop()}},Ge)}));return function(Ge){return Pe.apply(this,arguments)}}():Xa)}}var na=o(27361),wo=o.n(na);function bc(t,r){return Za.apply(this,arguments)}function Za(){return Za=Is(ir().mark(function t(r,i){var a,s,p,y,E,w,A,k,G,ne,re,se,ye=arguments;return ir().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return a=ye.length>2&&ye[2]!==void 0?ye[2]:{},s=a.returnEntireTree,p=a.baseDoc,y=a.requestInterceptor,E=a.responseInterceptor,w=a.parameterMacro,A=a.modelPropertyMacro,k=a.useCircularStructures,G={pathDiscriminator:i,baseDoc:p,requestInterceptor:y,responseInterceptor:E,parameterMacro:w,modelPropertyMacro:A,useCircularStructures:k},ne=Xa({spec:r}),re=ne.spec,Ee.next=6,$u(fr(fr({},G),{},{spec:re,allowMetaPatches:!0,skipNormalization:!0}));case 6:return se=Ee.sent,!s&&Array.isArray(i)&&i.length&&(se.spec=wo()(se.spec,i)||null),Ee.abrupt("return",se);case 9:case"end":return Ee.stop()}},t)})),Za.apply(this,arguments)}var _a=function(){return null},wc=function(r){return Array.isArray(r)?r:[r]},qa={mapTagOperations:Ac,makeExecute:ia};function ia(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var i=r.pathName,a=r.method,s=r.operationId;return function(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(fr(fr({spec:t.spec},Sa()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:i,method:a,parameters:p,operationId:s},y))}}}function Sc(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=qa.makeExecute(t),i=qa.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r}),a={};for(var s in i){a[s]={operations:{}};for(var p in i[s])a[s].operations[p]={execute:i[s][p]}}return{apis:a}}function Ku(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=qa.makeExecute(t);return{apis:qa.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function Ac(t){var r=t.spec,i=t.cb,a=i===void 0?_a:i,s=t.defaultTag,p=s===void 0?"default":s,y=t.v2OperationIdCompatibilityMode,E={},w={};return ro(r,function(A){var k=A.pathName,G=A.method,ne=A.operation,re=ne.tags?wc(ne.tags):[p];re.forEach(function(se){if(typeof se=="string"){w[se]=w[se]||{};var ye=w[se],ge=pi(ne,k,G,{v2OperationIdCompatibilityMode:y}),Ee=a({spec:r,pathName:k,method:G,operation:ne,operationId:ge});if(E[ge]){var me;E[ge]+=1,ye[Ot()(me="".concat(ge)).call(me,E[ge])]=Ee}else if(typeof ye[ge]!="undefined"){var Pe,Ge,je=E[ge]||1;E[ge]=je+1,ye[Ot()(Pe="".concat(ge)).call(Pe,E[ge])]=Ee;var He=ye[ge];delete ye[ge],ye[Ot()(Ge="".concat(ge)).call(Ge,je)]=He}else ye[ge]=Ee}})}),w}var es=o(95683);function Yu(t,r){if(t==null)return{};var i={},a=ws(t),s,p;for(p=0;p<a.length;p++)s=a[p],!(es(r).call(r,s)>=0)&&(i[s]=t[s]);return i}function Ec(t,r){if(t==null)return{};var i=Yu(t,r),a,s;if(Ui){var p=Ui(t);for(s=0;s<p.length;s++)a=p[s],!(es(r).call(r,a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,a)||(i[a]=t[a]))}return i}var Ju=o(68630),pl=o.n(Ju),Cc=o(1469),hl=o.n(Cc),oa=o(76489);const aa={body:Oc,header:Tc,query:Ic,path:Pc,formData:Xu};function Oc(t){var r=t.req,i=t.value;r.body=i}function Xu(t){var r=t.req,i=t.value,a=t.parameter;(i||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:i,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Tc(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[i.name]=a)}function Pc(t){var r=t.req,i=t.value,a=t.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(i))}function Ic(t){var r=t.req,i=t.value,a=t.parameter;if(r.query=r.query||{},i===!1&&a.type==="boolean"&&(i="false"),i===0&&["number","integer"].indexOf(a.type)>-1&&(i="0"),i)r.query[a.name]={collectionFormat:a.collectionFormat,value:i};else if(a.allowEmptyValue&&i!==void 0){var s=a.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function ts(t,r){return wa()(r).call(r,"application/json")?typeof t=="string"?t:Ro()(t):t.toString()}function Qu(t){var r=t.req,i=t.value,a=t.parameter,s=a.name,p=a.style,y=a.explode,E=a.content;if(E){var w=Qt()(E)[0];r.url=r.url.split("{".concat(s,"}")).join(Rr(ts(i,w),{escape:!0}));return}var A=qn({key:a.name,value:i,style:p||"simple",explode:y||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(A)}function Fc(t){var r=t.req,i=t.value,a=t.parameter;if(r.query=r.query||{},a.content){var s=Qt()(a.content)[0];r.query[a.name]=ts(i,s);return}if(i===!1&&(i="false"),i===0&&(i="0"),i)r.query[a.name]={value:i,serializationOption:Sa()(a,["style","explode","allowReserved"])};else if(a.allowEmptyValue&&i!==void 0){var p=a.name;r.query[p]=r.query[p]||{},r.query[p].allowEmptyValue=!0}}var kc=["accept","authorization","content-type"];function Zu(t){var r=t.req,i=t.parameter,a=t.value;if(r.headers=r.headers||{},!(kc.indexOf(i.name.toLowerCase())>-1)){if(i.content){var s=Qt()(i.content)[0];r.headers[i.name]=ts(a,s);return}typeof a!="undefined"&&(r.headers[i.name]=qn({key:i.name,value:a,style:i.style||"simple",explode:typeof i.explode=="undefined"?!1:i.explode,escape:!1}))}}function vl(t){var r=t.req,i=t.parameter,a=t.value;r.headers=r.headers||{};var s=nr(a);if(i.content){var p,y=Qt()(i.content)[0];r.headers.Cookie=Ot()(p="".concat(i.name,"=")).call(p,ts(a,y));return}if(s!=="undefined"){var E=s==="object"&&!Array.isArray(a)&&i.explode?"":"".concat(i.name,"=");r.headers.Cookie=E+qn({key:i.name,value:a,escape:!1,style:i.style||"form",explode:typeof i.explode=="undefined"?!1:i.explode})}}var _u=o(50706),qu=o.n(_u);function ef(t,r){var i=t.operation,a=t.requestBody,s=t.securities,p=t.spec,y=t.attachContentTypeForEmptyPayload,E=t.requestContentType;r=So({request:r,securities:s,operation:i,spec:p});var w=i.requestBody||{},A=Qt()(w.content||{}),k=E&&A.indexOf(E)>-1;if(a||y){if(E&&k)r.headers["Content-Type"]=E;else if(!E){var G=A[0];G&&(r.headers["Content-Type"]=G,E=G)}}else E&&k&&(r.headers["Content-Type"]=E);if(!t.responseContentType&&i.responses){var ne,re=ln()(ne=Lo()(i.responses)).call(ne,function(ye){var ge=tn(ye,2),Ee=ge[0],me=ge[1],Pe=parseInt(Ee,10);return Pe>=200&&Pe<300&&pl()(me.content)}).reduce(function(ye,ge){var Ee=tn(ge,2),me=Ee[1];return Ot()(ye).call(ye,Qt()(me.content))},[]);re.length>0&&(r.headers.accept=re.join(", "))}if(a)if(E){if(A.indexOf(E)>-1)if(E==="application/x-www-form-urlencoded"||E==="multipart/form-data")if(nr(a)==="object"){var se=(w.content[E]||{}).encoding||{};r.form={},Qt()(a).forEach(function(ye){r.form[ye]={value:a[ye],encoding:se[ye]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function So(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,y=t.spec,E=ji()({},r),w=a.authorized,A=w===void 0?{}:w,k=p.security||y.security||[],G=A&&!!Qt()(A).length,ne=wo()(y,["components","securitySchemes"])||{};return E.headers=E.headers||{},E.query=E.query||{},!Qt()(a).length||!G||!k||Array.isArray(p.security)&&!p.security.length?r:(k.forEach(function(re){Qt()(re).forEach(function(se){var ye=A[se],ge=ne[se];if(!!ye){var Ee=ye.value||ye,me=ge.type;if(ye){if(me==="apiKey")ge.in==="query"&&(E.query[ge.name]=Ee),ge.in==="header"&&(E.headers[ge.name]=Ee),ge.in==="cookie"&&(E.cookies[ge.name]=Ee);else if(me==="http"){if(/^basic$/i.test(ge.scheme)){var Pe,Ge=Ee.username||"",je=Ee.password||"",He=qu()(Ot()(Pe="".concat(Ge,":")).call(Pe,je));E.headers.Authorization="Basic ".concat(He)}/^bearer$/i.test(ge.scheme)&&(E.headers.Authorization="Bearer ".concat(Ee))}else if(me==="oauth2"||me==="openIdConnect"){var Ne,Ve=ye.token||{},We=ge["x-tokenName"]||"access_token",Je=Ve[We],ze=Ve.token_type;(!ze||ze.toLowerCase()==="bearer")&&(ze="Bearer"),E.headers.Authorization=Ot()(Ne="".concat(ze," ")).call(Ne,Je)}}}})}),E)}function tf(t,r){var i=t.spec,a=t.operation,s=t.securities,p=t.requestContentType,y=t.responseContentType,E=t.attachContentTypeForEmptyPayload;if(r=rs({request:r,securities:s,operation:a,spec:i}),r.body||r.form||E){var w,A;if(p)r.headers["Content-Type"]=p;else if(Array.isArray(a.consumes)){var k=tn(a.consumes,1);r.headers["Content-Type"]=k[0]}else if(Array.isArray(i.consumes)){var G=tn(i.consumes,1);r.headers["Content-Type"]=G[0]}else a.parameters&&ln()(w=a.parameters).call(w,function(ge){return ge.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&ln()(A=a.parameters).call(A,function(ge){return ge.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(p){var ne,re,se=a.parameters&&ln()(ne=a.parameters).call(ne,function(ge){return ge.in==="body"}).length>0,ye=a.parameters&&ln()(re=a.parameters).call(re,function(ge){return ge.in==="formData"}).length>0;(se||ye)&&(r.headers["Content-Type"]=p)}return!y&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function rs(t){var r=t.request,i=t.securities,a=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,y=t.spec,E=ji()({},r),w=a.authorized,A=w===void 0?{}:w,k=a.specSecurity,G=k===void 0?[]:k,ne=p.security||G,re=A&&!!Qt()(A).length,se=y.securityDefinitions;return E.headers=E.headers||{},E.query=E.query||{},!Qt()(a).length||!re||!ne||Array.isArray(p.security)&&!p.security.length?r:(ne.forEach(function(ye){Qt()(ye).forEach(function(ge){var Ee=A[ge];if(!!Ee){var me=Ee.token,Pe=Ee.value||Ee,Ge=se[ge],je=Ge.type,He=Ge["x-tokenName"]||"access_token",Ne=me&&me[He],Ve=me&&me.token_type;if(Ee){if(je==="apiKey"){var We=Ge.in==="query"?"query":"headers";E[We]=E[We]||{},E[We][Ge.name]=Pe}else if(je==="basic")if(Pe.header)E.headers.authorization=Pe.header;else{var Je,ze=Pe.username||"",et=Pe.password||"";Pe.base64=qu()(Ot()(Je="".concat(ze,":")).call(Je,et)),E.headers.authorization="Basic ".concat(Pe.base64)}else if(je==="oauth2"&&Ne){var At;Ve=!Ve||Ve.toLowerCase()==="bearer"?"Bearer":Ve,E.headers.authorization=Ot()(At="".concat(Ve," ")).call(At,Ne)}}}})}),E)}var rf=function(r){return Array.isArray(r)?r:[]},Mc=il("OperationNotFoundError",function(r,i,a){this.originalError=a,rn()(this,i||{})}),Rc=function(r,i){return ln()(i).call(i,function(a){return a.name===r})},dr=function(r){var i={};r.forEach(function(s){i[s.in]||(i[s.in]={}),i[s.in][s.name]=s});var a=[];return Qt()(i).forEach(function(s){Qt()(i[s]).forEach(function(p){a.push(i[s][p])})}),a},Lc={buildRequest:Ao};function gl(t){var r=t.http,i=t.fetch,a=t.spec,s=t.operationId,p=t.pathName,y=t.method,E=t.parameters,w=t.securities,A=Ec(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),k=r||i||Oi;p&&y&&!s&&(s=cl(p,y));var G=Lc.buildRequest(fr({spec:a,operationId:s,parameters:E,securities:w,http:k},A));return G.body&&(pl()(G.body)||hl()(G.body))&&(G.body=Ro()(G.body)),k(G)}function Ao(t){var r,i,a=t.spec,s=t.operationId,p=t.responseContentType,y=t.scheme,E=t.requestInterceptor,w=t.responseInterceptor,A=t.contextUrl,k=t.userFetch,G=t.server,ne=t.serverVariables,re=t.http,se=t.parameters,ye=t.parameterBuilders,ge=Hu(a);ye||(ge?ye=x:ye=aa);var Ee=re&&re.withCredentials?"include":"same-origin",me={url:"",credentials:Ee,headers:{},cookies:{}};E&&(me.requestInterceptor=E),w&&(me.responseInterceptor=w),k&&(me.userFetch=k);var Pe=Gu(a,s);if(!Pe)throw new Mc("Operation ".concat(s," not found"));var Ge=Pe.operation,je=Ge===void 0?{}:Ge,He=Pe.method,Ne=Pe.pathName;if(me.url+=sa({spec:a,scheme:y,contextUrl:A,server:G,serverVariables:ne,pathName:Ne,method:He}),!s)return delete me.cookies,me;me.url+=Ne,me.method="".concat(He).toUpperCase(),se=se||{};var Ve=a.paths[Ne]||{};p&&(me.headers.accept=p);var We=dr(Ot()(r=Ot()(i=[]).call(i,rf(je.parameters))).call(r,rf(Ve.parameters)));We.forEach(function(et){var At=ye[et.in],Nt;if(et.in==="body"&&et.schema&&et.schema.properties&&(Nt=se),Nt=et&&et.name&&se[et.name],typeof Nt=="undefined"){var Ht;Nt=et&&et.name&&se[Ot()(Ht="".concat(et.in,".")).call(Ht,et.name)]}else if(Rc(et.name,We).length>1){var or;console.warn(Ot()(or="Parameter '".concat(et.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(or,et.name,"' and the passed-in parameter values did not define an 'in' value."))}if(Nt!==null){if(typeof et.default!="undefined"&&typeof Nt=="undefined"&&(Nt=et.default),typeof Nt=="undefined"&&et.required&&!et.allowEmptyValue)throw new Error("Required parameter ".concat(et.name," is not provided"));if(ge&&et.schema&&et.schema.type==="object"&&typeof Nt=="string")try{Nt=JSON.parse(Nt)}catch(Mr){throw new Error("Could not parse object parameter value string as JSON")}At&&At({req:me,parameter:et,value:Nt,operation:je,spec:a})}});var Je=fr(fr({},t),{},{operation:je});if(ge?me=ef(Je,me):me=tf(Je,me),me.cookies&&Qt()(me.cookies).length){var ze=Qt()(me.cookies).reduce(function(et,At){var Nt=me.cookies[At],Ht=et?"&":"",or=oa.serialize(At,Nt);return et+Ht+or},"");me.headers.Cookie=ze}return me.cookies&&delete me.cookies,pu(me),me}var Cn=function(r){return r?r.replace(/\W/g,""):null};function sa(t){var r=Hu(t.spec);return r?yl(t):af(t)}function yl(t){var r=t.spec,i=t.pathName,a=t.method,s=t.server,p=t.contextUrl,y=t.serverVariables,E=y===void 0?{}:y,w=wo()(r,["paths",i,(a||"").toLowerCase(),"servers"])||wo()(r,["paths",i,"servers"])||wo()(r,["servers"]),A="",k=null;if(s&&w&&w.length){var G=qt()(w).call(w,function(se){return se.url});G.indexOf(s)>-1&&(A=s,k=w[G.indexOf(s)])}if(!A&&w&&w.length){A=w[0].url;var ne=tn(w,1);k=ne[0]}if(A.indexOf("{")>-1){var re=of(A);re.forEach(function(se){if(k.variables&&k.variables[se]){var ye=k.variables[se],ge=E[se]||ye.default,Ee=new RegExp("{".concat(se,"}"),"g");A=A.replace(Ee,ge)}})}return nf(A,p)}function nf(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t&&r?Ei.parse(Ei.resolve(r,t)):Ei.parse(t),a=Ei.parse(r),s=Cn(i.protocol)||Cn(a.protocol)||"",p=i.host||a.host,y=i.pathname||"",E;if(s&&p){var w;E=Ot()(w="".concat(s,"://")).call(w,p+y)}else E=y;return E[E.length-1]==="/"?In()(E).call(E,0,-1):E}function of(t){for(var r=[],i=/{([^}]+)}/g,a;a=i.exec(t);)r.push(a[1]);return r}function af(t){var r=t.spec,i=t.scheme,a=t.contextUrl,s=a===void 0?"":a,p=Ei.parse(s),y=Array.isArray(r.schemes)?r.schemes[0]:null,E=i||y||Cn(p.protocol)||"http",w=r.host||p.host||"",A=r.basePath||"",k;if(E&&w){var G;k=Ot()(G="".concat(E,"://")).call(G,w+A)}else k=A;return k[k.length-1]==="/"?In()(k).call(k,0,-1):k}br.http=Oi,br.makeHttp=Ks.bind(null,br.http),br.resolve=$u,br.resolveSubtree=bc,br.execute=gl,br.serializeRes=cu,br.serializeHeaders=Gs,br.clearCache=dl,br.makeApisTagOperation=Ku,br.buildRequest=Ao,br.helpers={opId:pi},br.getBaseUrl=sa;function br(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof t=="string"?i.url=t:i=t,!(this instanceof br))return new br(i);ji()(this,i);var a=this.resolve().then(function(){return r.disableInterfaces||ji()(r,br.makeApisTagOperation(r)),r});return a.client=this,a}br.prototype={http:Oi,execute:function(r){return this.applyDefaults(),br.execute(fr({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return br.resolve(fr({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},i)).then(function(a){return r.originalSpec=r.spec,r.spec=a.spec,r.errors=a.errors,r})}},br.prototype.applyDefaults=function(){var r=this.spec,i=this.url;if(i&&Vi()(i,"http")){var a=Ei.parse(i);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var Dc=br.helpers;const Nc=br;var zt=o(25446),ml=o(11429),wt=o(76671),sf=o(7930),la=o(51027),On=o(78722),lf=o(17673),kn=o(64776),Bc=Object.defineProperty,Sr=Object.defineProperties,Uc=Object.getOwnPropertyDescriptors,uf=Object.getOwnPropertySymbols,jc=Object.prototype.hasOwnProperty,ns=Object.prototype.propertyIsEnumerable,e=(t,r,i)=>r in t?Bc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,n=(t,r)=>{for(var i in r||(r={}))jc.call(r,i)&&e(t,i,r[i]);if(uf)for(var i of uf(r))ns.call(r,i)&&e(t,i,r[i]);return t},u=(t,r)=>Sr(t,Uc(r)),l=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{E(i.next(w))}catch(A){s(A)}},y=w=>{try{E(i.throw(w))}catch(A){s(A)}},E=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);E((i=i.apply(t,r)).next())});const f="/oauth2-redirect.html";class m{static authorizeImplicit({authorizationUrl:r,clientId:i,scopes:a,extraParams:s={},routingBasePath:p,redirectUri:y,successCallback:E,errorCallback:w}){const A=(0,kn.p8)({date:new Date().toString()}),k=new URL(r),G=p==="/"?"":p,ne=`${window.location.origin}${G}${f}`;k.searchParams.set("client_id",i),k.searchParams.set("redirect_uri",y||ne),k.searchParams.set("response_type","token"),k.searchParams.set("state",A),Array.isArray(a)&&k.searchParams.set("scope",a.join(" "));for(const re in s)k.searchParams.set(re,s[re]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:i,scopes:a},state:A,successCallback:re=>{E(re),m.clearRedirectData("implicit")},errorCallback:re=>{w(re),m.clearRedirectData("implicit")}},window.open(k.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:i,clientId:a,clientSecret:s,codeVerifier:p,codeChallenge:y,scopes:E,extraParams:w={},extraHeaders:A={},routingBasePath:k,redirectUri:G,successCallback:ne,errorCallback:re}){const se=new URL(r),ye=k==="/"?"":k,ge=`${window.location.origin}${ye}${f}`,Ee=(0,kn.p8)({date:new Date().toString()});se.searchParams.set("client_id",a),se.searchParams.set("redirect_uri",G||ge),se.searchParams.set("response_type","code"),se.searchParams.set("state",Ee),Array.isArray(E)&&se.searchParams.set("scope",E.join(" ")),y&&(se.searchParams.set("code_challenge",y),se.searchParams.set("code_challenge_method","S256"));for(const me in w)se.searchParams.set(me,w[me]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:a,scopes:E},state:Ee,successCallback:me=>l(this,[me],function*({auth_code:Pe}){try{const Ge=yield fetch(i,{method:"POST",headers:n({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},A),body:lf.stringify(n(u(n({client_id:a,client_secret:s},p&&{code_verifier:p}),{code:Pe,grant_type:"authorization_code",redirect_uri:G||ge}),w))});yield U(Ge,ne,re)}catch(Ge){re(Ge)}m.clearRedirectData("authorizationCode")}),errorCallback:me=>{re(me),m.clearRedirectData("authorizationCode")}},window.open(se.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return l(this,arguments,function*({tokenUrl:i,clientId:a,clientSecret:s,scopes:p=[],extraParams:y={},extraHeaders:E={},successCallback:w,errorCallback:A}){try{const k=yield fetch(i,{method:"POST",headers:n({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},E),body:lf.stringify(n({client_id:a,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(p)?p.join(" "):void 0},y))});yield U(k,w,A)}catch(k){A(k)}})}}const F=new m;function U(t,r,i){return l(this,null,function*(){if(t.ok){const a=yield t.json();r(a)}else i(new Error((t.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield t.json()):yield t.text()))})}function H(t){return l(this,null,function*(){return(0,kn.rS)(yield(0,kn.JQ)(t))})}var Z=o(68929),be;(function(t){t.STRING="string",t.ARRAY="array",t.OBJECT="object"})(be||(be={}));var Ce;(function(t){t.BYTE="byte",t.BASE64="base64",t.BINARY="binary"})(Ce||(Ce={}));var De=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{E(i.next(w))}catch(A){s(A)}},y=w=>{try{E(i.throw(w))}catch(A){s(A)}},E=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);E((i=i.apply(t,r)).next())});const ke=Object.values(Ce),Ye=["application/octet-stream","application/pdf","application/gzip","application/zip"],tt=["image/","audio/","video/"];function at(t){if(tt.some(r=>t.startsWith(r)))return t}function ct(t){return Ye.includes(t)?!0:tt.some(r=>t.startsWith(r))}function gt(t){const r=t.type==="array"?t.items:t;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const i=r.contentMediaType||"",a=r.format||r.contentEncoding||(ct(i)?"binary":"");return r.type===be.STRING&&ke.includes(a)}function dt(t,r){if(!t||!t.type||t.type==="any")return ct(r);const i=t.format||t.contentEncoding||"";return t.type===be.STRING&&ke.includes(i)}function xt(t){return new Promise((r,i)=>{const a=new FileReader;a.onload=()=>{const p=a.result.replace(/data:.*\/.*;base64,/g,"");r(p)},a.onerror=()=>i(a.error),a.readAsDataURL(t)})}function Ft({format:t,contentEncoding:r,contentMediaType:i}){return[t,r,i].includes(Ce.BASE64)}function It(t,r){return De(this,null,function*(){const i=Object.values(t);let a=i.length===1?i[0]:i;return r.type===be.STRING&&Ft(r)?a=yield xt(i[0]):r.type===be.ARRAY&&r.items&&(Ft(r.items)?a=yield Promise.all(i.map(p=>De(this,null,function*(){return yield xt(p)}))):a=i),a})}var it=o(39713),Gt=o(23485),hr=o(21096),vr=Object.defineProperty,bn=Object.defineProperties,fn=Object.getOwnPropertyDescriptors,Ar=Object.getOwnPropertySymbols,cn=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable,Fr=(t,r,i)=>r in t?vr(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,gr=(t,r)=>{for(var i in r||(r={}))cn.call(r,i)&&Fr(t,i,r[i]);if(Ar)for(var i of Ar(r))Kr.call(r,i)&&Fr(t,i,r[i]);return t},yr=(t,r)=>bn(t,fn(r));const nn=Gt.iv`
|
|
93
93
|
border: none;
|
|
94
94
|
outline: none;
|
|
95
95
|
padding: 8px;
|
|
@@ -105,12 +105,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
105
105
|
&:-webkit-autofill {
|
|
106
106
|
background-color: ${({theme:t})=>t.rightPanel.panelBackgroundColor};
|
|
107
107
|
}
|
|
108
|
-
`,
|
|
108
|
+
`,no=Gt.ZP.div`
|
|
109
109
|
display: ${({type:t})=>t==="hidden"?"none":"inline-block"};
|
|
110
110
|
${({fullWidth:t})=>t?"width: 100%;":""}
|
|
111
|
-
`,
|
|
111
|
+
`,Mi=Gt.ZP.div`
|
|
112
112
|
position: relative;
|
|
113
|
-
`,
|
|
113
|
+
`,Qr=Gt.ZP.input`
|
|
114
114
|
${nn}
|
|
115
115
|
${({inputType:t,inputActionButton:r})=>t==="password"||r?"padding-right: 40px;":""};
|
|
116
116
|
${({fullWidth:t})=>t?"width: 100%;":""}
|
|
@@ -124,7 +124,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
124
124
|
cursor: pointer;
|
|
125
125
|
text-align: center;
|
|
126
126
|
${({theme:t})=>(0,Gt.QG)({color:t.rightPanel.textColor})}
|
|
127
|
-
`;function
|
|
127
|
+
`;function Vr(t,r){const{fullWidth:i,errorMessage:a,type:s}=t,[p,y]=d.useState(s==="password"),E=d.useCallback(()=>{y(!p)},[p]);return d.createElement(no,{fullWidth:i,type:s},d.createElement(Mi,null,d.createElement(Qr,yr(gr({},t),{type:p?"password":"text",inputType:s,ref:r})),t.inputActionButton?d.createElement($n,{onClick:t.inputActionButton.onClick},t.inputActionButton.label):s==="password"?d.createElement($n,{onClick:E},p?"show":"hide"):null),a?d.createElement(it.Xq,null,a):null)}const io=d.forwardRef(Vr);function Er(t){const r=Tn(gr({fieldType:"text"},t)),{userProps:i,render:a,fieldState:s}=r,p=r.informed;return a(d.createElement(io,yr(gr(gr({},i),p),{errorMessage:s.error})))}const Kn=Gr(({initValue:t,options:r,fieldApi:i,fieldState:a})=>{const s=r.map((A,k)=>({value:A.title||A.value,idx:k,origValue:A.value})),p=s.find(A=>A.origValue===t),[y,E]=d.useState(p==null?void 0:p.value);d.useEffect(()=>{t&&i.setValue(t)},[]);const w=d.useCallback(A=>{i.setValue(s[A.idx].origValue),E(s[A.idx].value)},[s]);return d.createElement(no,{fullWidth:!0},d.createElement(hr.Dropdown,{fullWidth:!0,variant:"dark",value:y,options:s,onChange:w}),a.error?d.createElement(it.Xq,null,a.error):null)}),on=t=>{(0,d.useEffect)(()=>{t()},[])},ua=t=>{useEffect(()=>()=>{t()},[])},Uh=Gr(({initValue:t,paramEnum:r,fieldApi:i})=>{const[a,s]=d.useState(),p=r.map((w,A)=>({idx:A,value:w})),y=w=>{i.setValue(w.value),s(w.value)};on(()=>{if(!!t)if(Array.isArray(t)){const w=t.length?t[0]:"";s(w),i.setValue(w)}else s(t),i.setValue(t)});const E=()=>{i.setValue(""),s("")};return d.createElement(hr.Dropdown,{clearable:!0,fullWidth:!0,variant:"dark",value:a,options:p,handleClear:E,onChange:y})});var Ld=o(29163);const jh=({name:t,param:r,place:i,renderParameter:a})=>{var s,p,y,E,w;const[A,k]=d.useState([]),G=()=>{k([...A,A.length?A[A.length-1]+1:0])},ne=se=>{k(A.filter(ye=>ye!==se))},re=((s=r.schema.items)==null?void 0:s.fields)?(p=r.schema.items)==null?void 0:p.fields:[{schema:((y=r.schema.items)==null?void 0:y.schema)||r.schema.items,name:"",required:r.required,description:(E=r.schema.items)==null?void 0:E.description,externalDocs:(w=r.schema.items)==null?void 0:w.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1}];return d.createElement(d.Fragment,null,d.createElement(Dd,null,d.createElement(it.lX,{required:r.required},t,"(",A.length," items)"),d.createElement("span",{onClick:G},"Add item +")),A==null?void 0:A.map((se,ye)=>d.createElement(Dd,{key:se},d.createElement(Vh,{onClick:()=>ne(se)},"delete"),re.map(ge=>a(ge,i,`${t}.[${se}]`,`[${ye}]${ge.name&&"."+ge.name}`)))))},Dd=Ld.default.div`
|
|
128
128
|
display: flex;
|
|
129
129
|
width: 100%;
|
|
130
130
|
align-items: center;
|
|
@@ -145,12 +145,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
145
145
|
color: #fff;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
`,
|
|
148
|
+
`,Vh=Ld.default.span`
|
|
149
149
|
background: transparent;
|
|
150
150
|
border: none;
|
|
151
151
|
cursor: pointer;
|
|
152
152
|
position: relative;
|
|
153
|
-
`;var is;(function(t){t.ARRAY="array",t.OBJECT="object"})(is||(is={}));function
|
|
153
|
+
`;var is;(function(t){t.ARRAY="array",t.OBJECT="object"})(is||(is={}));function Wh({schema:t,example:r}){return`(${t.type})`+(r?` ${r}`:"")}function Hh(t){const r={};return t.forEach(i=>{i.in&&(r[i.in]||(r[i.in]=[]),r[i.in].push(i))}),r}function zh({schema:t,required:r}){return i=>{if(r&&!i)return"Field is required";if(r&&t.type===is.ARRAY&&Array.isArray(i)){if(i.length>(t.rawSchema&&t.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${t.rawSchema.maxItems}`;if(i.length<(t.rawSchema&&t.rawSchema.minItems||0)){const a=t.rawSchema.minItems;return`You should select at least ${a===1?`${a} item`:`${a} items`}`}}}}function Gh(t){if(t.type===is.ARRAY){const r=t.default||t.example;if(!r&&typeof t.rawSchema.items!="boolean"&&Array.isArray(t.rawSchema.items)){if(t.rawSchema.items[0].default)return[t.rawSchema.items[0].default];if(t.rawSchema.items[0].example)return[t.rawSchema.items[0].example]}if(!r&&typeof t.rawSchema.items!="boolean"&&!Array.isArray(t.rawSchema.items)&&(0,wt.isObject)(t.rawSchema.items)){if(t.rawSchema.items.default)return[t.rawSchema.items.default];if(t.rawSchema.items.example)return[t.rawSchema.items.example]}return r||[]}else return(Number.isInteger(t.default)?t.default.toString():t.default)||t.example}function $h({oneOfType:t}){return t}const Kh=["path","query","cookie","header"];function Yh({id:t,param:r,values:i}){const a=(0,d.useMemo)(()=>zh(r),[r]),s=Array.isArray(r.schema.enum)&&r.schema.enum.length?r.schema.enum:void 0,p=Gh(r.schema),y=t.split(".").map(E=>(0,zt.dw)(E));return s?d.createElement(it.NI,null,d.createElement(Uh,{initValue:p,paramEnum:s,field:t})):d.createElement(Er,{fullWidth:!0,"data-cy":"parameter-input",id:t,field:t,placeholder:Wh(r),validate:a,initialValue:p||(0,zt.U2)(i,y),validateOnBlur:!0,validateOnChange:!0})}function Jh({values:t,operation:r}){const i=(0,d.useMemo)(()=>Hh(r.parameters||[]),[r]),a=(p,y,E,w)=>{var A;const k=E?(0,zt.s1)(E,p.name):p.name,G=$h(p.schema),ne=E?[y,E]:[p.in],re=(0,zt.s1)(...ne,(0,zt.A8)(p.name));return G&&console.warn(`Unsupported parameter definition: "${G}"`),p.schema.type===is.ARRAY?d.createElement(jh,{key:re,name:k,param:p,place:y,renderParameter:a}):p.schema.type===is.OBJECT?(A=p.schema.fields)==null?void 0:A.map(se=>a(se,y,k)):d.createElement(it.NI,{key:re},d.createElement(it.lX,{required:p.required},w||k,":"),G?d.createElement(it.GE,null,"Unsupported field schema definition"):d.createElement(Yh,{id:re,param:p,values:t}))},s=p=>{const y=i[p];return!y||!y.length?null:d.createElement(d.Fragment,{key:p},d.createElement(it.NI,null,d.createElement(it.iG,null," # ",p," parameters "),d.createElement("span",null,"\xA0")),y.map(E=>a(E,p)))};return d.createElement(it.iA,null,Kh.map(s))}var kr=o(7241),Xh=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{E(i.next(w))}catch(A){s(A)}},y=w=>{try{E(i.throw(w))}catch(A){s(A)}},E=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);E((i=i.apply(t,r)).next())});function Qh(t){return Xh(this,null,function*(){return(yield fetch(t)).json()})}const Zh=wt.styled.div`
|
|
154
154
|
position: relative;
|
|
155
155
|
height: 4px;
|
|
156
156
|
display: block;
|
|
@@ -252,7 +252,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
252
252
|
right: -8%;
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
`,Nd=()=>d.createElement(
|
|
255
|
+
`,Nd=()=>d.createElement(Zh,null,d.createElement("div",{className:"indeterminate"}));var _h=Object.defineProperty,qh=Object.defineProperties,ev=Object.getOwnPropertyDescriptors,Bd=Object.getOwnPropertySymbols,tv=Object.prototype.hasOwnProperty,rv=Object.prototype.propertyIsEnumerable,Ud=(t,r,i)=>r in t?_h(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,nv=(t,r)=>{for(var i in r||(r={}))tv.call(r,i)&&Ud(t,i,r[i]);if(Bd)for(var i of Bd(r))rv.call(r,i)&&Ud(t,i,r[i]);return t},iv=(t,r)=>qh(t,ev(r));const ov=Gt.ZP.input`
|
|
256
256
|
cursor: pointer;
|
|
257
257
|
margin-left: 0;
|
|
258
258
|
margin-right: 5px;
|
|
@@ -271,7 +271,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
271
271
|
|
|
272
272
|
overflow-wrap: break-word;
|
|
273
273
|
line-height: 20px;
|
|
274
|
-
`,
|
|
274
|
+
`,sv=Gt.ZP.div`
|
|
275
275
|
width: ${({fullWidth:t})=>t?"100%":"50%"};
|
|
276
276
|
display: inline-flex;
|
|
277
277
|
align-items: center;
|
|
@@ -285,33 +285,33 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
285
285
|
margin-top: 5px;
|
|
286
286
|
}
|
|
287
287
|
`}
|
|
288
|
-
`;function
|
|
288
|
+
`;function lv(t,r){const{fullWidth:i,id:a,label:s,nowrap:p}=t;return d.createElement(sv,{fullWidth:i,nowrap:p},d.createElement(ov,iv(nv({},t),{type:"checkbox",ref:r})),d.createElement(av,{htmlFor:a},s))}const jd=d.forwardRef(lv);var fa=o(24177),xl=o(43398),uv=Object.defineProperty,fv=(t,r,i)=>r in t?uv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,cv=(t,r,i)=>(fv(t,typeof r!="symbol"?r+"":r,i),i);const dv=11;class pv extends d.Component{constructor(){super(...arguments);cv(this,"state",{collapsed:!0})}onCheckBoxClick(r){const i=r.target.value,a=r.target.checked;this.props.fieldApi.setTouched(!0);const s=this.props.fieldApi.getValue()||[];let p;if(a)p=[...s,i];else{const y=s.indexOf(i);p=[...s.slice(0,y),...s.slice(y+1)]}this.props.fieldApi.setValue(p)}isFieldChecked(r){return this.props.fieldApi.getValue().includes(r)}toggle(){this.setState({collapsed:!this.state.collapsed})}selectAll(){this.props.fieldApi.setValue(this.props.items)}clearAll(){this.props.fieldApi.setValue([])}render(){const{items:r,fieldApi:i,validateOnChange:a,maxDisplayedItems:s,showControls:p,trimItemsLength:y}=this.props,{collapsed:E}=this.state,w=i.getError(),A=s||dv,k=y&&this.state.collapsed?r.slice(0,A):r;return d.createElement("div",null,p?d.createElement(vv,null,d.createElement(xl.J4,{onClick:()=>{this.selectAll()}},"Select all"),d.createElement(xl.J4,{onClick:()=>{this.clearAll()}},"Clear")):null,d.createElement("div",null,k.map(G=>d.createElement(jd,{fullWidth:!0,id:G,value:G,checked:this.isFieldChecked(G),label:G,key:G,onChange:ne=>{this.onCheckBoxClick(ne),a&&i.validate()}})),r.length>A&&y?d.createElement(gv,{onClick:()=>{this.toggle()}},E?"Show all":"Collapse"):null),w?d.createElement(it.Xq,null,w):"")}}const hv=Gr(pv),vv=(0,wt.styled)(xl.xp)`
|
|
289
289
|
opacity: 1;
|
|
290
290
|
text-align: left;
|
|
291
|
-
`,
|
|
291
|
+
`,gv=(0,wt.styled)(xl.J4)`
|
|
292
292
|
float: right;
|
|
293
|
-
`;function Vd(t){const{scopes:r,id:i}=t;let
|
|
293
|
+
`;function Vd(t){const{scopes:r,id:i}=t;let a=[];try{a=JSON.parse((0,zt.YQ)(`auth.${i}.scopes`))}catch(s){}return!r||!r.length?d.createElement(d.Fragment,null):d.createElement(it.NI,null,d.createElement(it.lX,null," Scopes: "),d.createElement(hv,{field:`auth.${i}.scopes`,initialValue:a,items:r,showControls:!0,trimItemsLength:!0}))}var yv=Object.defineProperty,mv=Object.defineProperties,xv=Object.getOwnPropertyDescriptors,Wd=Object.getOwnPropertySymbols,bv=Object.prototype.hasOwnProperty,wv=Object.prototype.propertyIsEnumerable,Vc=(t,r,i)=>r in t?yv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,cf=(t,r)=>{for(var i in r||(r={}))bv.call(r,i)&&Vc(t,i,r[i]);if(Wd)for(var i of Wd(r))wv.call(r,i)&&Vc(t,i,r[i]);return t},Wc=(t,r)=>mv(t,xv(r)),bl=(t,r,i)=>(Vc(t,typeof r!="symbol"?r+"":r,i),i),Sv=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{E(i.next(w))}catch(A){s(A)}},y=w=>{try{E(i.throw(w))}catch(A){s(A)}},E=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);E((i=i.apply(t,r)).next())});function Av(t){if(!t)return"Field is required"}class wl extends d.Component{constructor(){super(...arguments);bl(this,"state",{error:null,loading:!1,showPkceOptions:!1}),bl(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}),bl(this,"togglePkceOptions",()=>{this.setState(({showPkceOptions:r})=>({showPkceOptions:!r}))}),bl(this,"handleCodeVerifierChange",r=>Sv(this,[r],function*({target:{value:i}}){const a=yield H(i);this.setState({codeVerifier:i,validCodeChallenge:a})}))}get values(){var r,i;return((i=(r=this.props.form.values)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}get errors(){var r,i;return((i=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}get pkceInputActionButtonProps(){if(this.state.codeVerifier!==void 0&&this.state.codeChallenge!==this.state.validCodeChallenge)return{label:"sync",onClick:()=>{this.state.codeVerifier&&this.setState({codeChallenge:this.state.validCodeChallenge})}}}componentDidMount(){if(this.props.usePkce){const r=(0,kn.CY)(43);H(r).then(i=>{this.setState({codeVerifier:r,codeChallenge:i,validCodeChallenge:i})})}}handleAuthorize(r){if(!r)return;this.props.formApi.validate();const{flow:i,usePkce:a,id:s,tokenUrl:p,authCorsProxyUrl:y,tokenEndpointAuthMethod:E}=this.props;if(!(0,kn.Qr)(this.errors))return;this.setState({loading:!0,error:null});const w=y?y+(0,kr.jg)(r):r,A=y&&p?y+(0,kr.jg)(p):p,k=this.props.formApi.getValue(`auth.${s}.scopes`),G={authorizationUrl:w.startsWith("http")?w:this.props.server+w,clientId:this.values.client_id,scopes:k,redirectUri:this.context.oAuth2RedirectURI,routingBasePath:this.context.routingBasePath,successCallback:ne=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,ne),this.setState({loading:!1,error:null})},errorCallback:ne=>{this.setState({loading:!1,error:(ne==null?void 0:ne.message)||"Failed to retrieve the access token"})}};if(i==="implicit"&&m.authorizeImplicit(G),!(0,kr.xl)(E)){console.log(`Unsupported token endpoint auth method: ${E}`);return}i==="authorizationCode"&&m.authorizeAuthorizationCode(cf(Wc(cf({},G),{tokenUrl:(A==null?void 0:A.startsWith("http"))?A:this.props.server+A,clientSecret:this.values.client_secret,extraHeaders:(0,kr.Or)({authMethod:E,clientId:this.values.client_id,clientSecret:this.values.client_secret})}),a&&{codeVerifier:this.state.codeVerifier,codeChallenge:this.state.codeChallenge}))}handleLogout(){this.clearToken(),this.setState({error:null})}handleCancel(){this.setState({loading:!1,error:null}),m.clearRedirectData(this.props.flow)}render(){const{error:r,loading:i}=this.state,{id:a,scopes:s,authorizationUrl:p,flow:y,usePkce:E,defaultValues:w}=this.props;if(!p)return d.createElement(it.Xq,null,"No flow info");let A=(0,zt.YQ)(`auth.${a}.token`)||JSON.stringify(w==null?void 0:w.token);A=A?JSON.parse(A):"";const k=(0,zt.Al)(a,"client_id"),G={field:`auth.${a}.client_id`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${a}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),initValue:(0,zt.YQ)(`auth.${a}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),placeholder:"Your OAuth2 app Client ID",validate:Av,validateOnBlur:!0,validateOnChange:!0};return d.createElement("div",null,d.createElement(it.n5,null,d.createElement(it.NI,null,d.createElement(it.lX,null," Client ID: "),k?d.createElement(Kn,Wc(cf({},G),{options:k})):d.createElement(Er,Wc(cf({},G),{"data-cy":"client-id-input"}))),y==="authorizationCode"&&d.createElement(d.Fragment,null,(!(E==null?void 0:E.hideClientSecretInput)||!E)&&d.createElement(it.NI,null,d.createElement(it.lX,null,"Client Secret:"),d.createElement(Er,{type:"password",fullWidth:!0,field:`auth.${a}.client_secret`,initialValue:(0,zt.YQ)(`auth.${a}.client_secret`)||(w==null?void 0:w.client_secret),validateOnBlur:!0,validateOnChange:!0,"data-cy":"client-secret-input"})),E&&!E.disableManualConfiguration&&d.createElement(Ov,null,d.createElement(jd,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:this.state.showPkceOptions,onChange:this.togglePkceOptions,"data-cy":"pkce-options-toggle"}),this.state.showPkceOptions&&d.createElement(Tv,null,d.createElement(it.NI,null,d.createElement(it.lX,null,"Code Verifier"),d.createElement(io,{fullWidth:!0,value:this.state.codeVerifier,onChange:this.handleCodeVerifierChange,"data-cy":"code-verifier-input"})),d.createElement(it.NI,null,d.createElement(it.lX,null,"Code Challenge"),d.createElement(io,{fullWidth:!0,value:this.state.codeChallenge,onChange:({target:{value:ne}})=>{this.setState({codeChallenge:ne})},inputActionButton:this.pkceInputActionButtonProps,"data-cy":"code-challenge-input"}))))),d.createElement(Er,{fullWidth:!0,field:`auth.${a}.token`,type:"hidden",initialValue:A}),d.createElement(Vd,{id:a,scopes:s}),this.values.token&&this.values.token.access_token?d.createElement(it.NI,null,d.createElement(it.lX,null," Access Token: "),d.createElement(io,{disabled:!0,type:"password",fullWidth:!0,value:this.values.token.access_token})):null),d.createElement(Cv,null,this.values.token&&this.values.token.access_token?d.createElement(fa.zx,{fullWidth:!0,onClick:()=>{this.handleLogout()}},"Log out"):i?d.createElement(d.Fragment,null,d.createElement(fa.zx,{fullWidth:!0,onClick:()=>{this.handleCancel()}},"Cancel"),d.createElement(Nd,null)):d.createElement(fa.zx,{fullWidth:!0,disabled:!(0,kn.Qr)(this.errors),onClick:()=>{this.handleAuthorize(p)}},"Authorize")),i||r||!this.values.token||!this.values.token.access_token&&d.createElement(it.n5,null,d.createElement(it.NI,null,i?d.createElement(it.GE,null,"Please, finish your authorization flow or cancel authorization."):r?d.createElement(d.Fragment,null,d.createElement(Ev,null,d.createElement(it.Xq,null,r))):!this.values.token||!this.values.token.access_token?d.createElement(it.GE,null," No Access Token. Please, Authorize. "):null)))}}bl(wl,"contextType",wt.OptionsContext);const Ev=wt.styled.div`
|
|
294
294
|
font-family: monospace;
|
|
295
295
|
margin-top: 10px;
|
|
296
296
|
line-height: 1;
|
|
297
297
|
padding-left: 10px;
|
|
298
298
|
border-left: 1px solid gray;
|
|
299
|
-
`,Ev=wt.styled.div`
|
|
300
|
-
margin-bottom: 15px;
|
|
301
299
|
`,Cv=wt.styled.div`
|
|
302
|
-
|
|
300
|
+
margin-bottom: 15px;
|
|
303
301
|
`,Ov=wt.styled.div`
|
|
302
|
+
padding: 8px 0 20px;
|
|
303
|
+
`,Tv=wt.styled.div`
|
|
304
304
|
padding: 4px 0;
|
|
305
|
-
`;var
|
|
305
|
+
`;var Pv=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{E(i.next(w))}catch(A){s(A)}},y=w=>{try{E(i.throw(w))}catch(A){s(A)}},E=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);E((i=i.apply(t,r)).next())});function Iv(t){var r,i;const{scheme:a,defaultValues:s}=t,[p,y]=d.useState({}),[E,w]=d.useState(),[A,k]=d.useState(!1);d.useEffect(()=>{G(a.openIdConnectUrl)},[a.openIdConnectUrl]);const G=se=>Pv(this,null,function*(){k(!0),w("");try{const ye=yield Qh(se);y(ye)}catch(ye){w(ye.message)}k(!1)}),ne=d.useCallback(()=>A?d.createElement("div",null,d.createElement("div",null,d.createElement("div",null,"Fetching OpenID Connect metadata..."),d.createElement(Nd,null))):null,[A]),re=d.useCallback(()=>E?d.createElement("div",null,d.createElement("div",null,d.createElement(it.Xq,null,E))):null,[E]);return A?d.createElement(ne,null):E?d.createElement(re,null):d.createElement("div",null,d.createElement("div",null,((r=p==null?void 0:p.response_types_supported)==null?void 0:r.includes("token"))?d.createElement(d.Fragment,null,d.createElement(Hd,null,"OAuth2 Implicit Flow"),d.createElement(wl,{key:t.id,authorizationUrl:p.authorization_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:p.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,flow:"implicit",defaultValues:s})):((i=p==null?void 0:p.response_types_supported)==null?void 0:i.includes("code"))?d.createElement(d.Fragment,null,d.createElement(Hd,null,"OAuth2 Authorization Flow"),d.createElement(wl,{key:t.id,authorizationUrl:p.authorization_endpoint,tokenUrl:p.token_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:p.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,tokenEndpointAuthMethod:p==null?void 0:p.token_endpoint_auth_methods_supported,flow:"authorizationCode",defaultValues:s})):d.createElement("div",null,"Unsupported flow")))}const Hd=wt.styled.div`
|
|
306
306
|
margin-top: 5px;
|
|
307
307
|
margin-bottom: 10px;
|
|
308
|
-
`;var Fv=Object.defineProperty,kv=Object.defineProperties,Rv=Object.getOwnPropertyDescriptors,Hd=Object.getOwnPropertySymbols,Mv=Object.prototype.hasOwnProperty,Lv=Object.prototype.propertyIsEnumerable,Hc=(t,r,i)=>r in t?Fv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,zd=(t,r)=>{for(var i in r||(r={}))Mv.call(r,i)&&Hc(t,i,r[i]);if(Hd)for(var i of Hd(r))Lv.call(r,i)&&Hc(t,i,r[i]);return t},Gd=(t,r)=>kv(t,Rv(r)),df=(t,r,i)=>(Hc(t,typeof r!="symbol"?r+"":r,i),i),Dv=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{E(i.next(w))}catch(A){s(A)}},m=w=>{try{E(i.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);E((i=i.apply(t,r)).next())});function Nv(t){if(!t)return"Token is required"}class Bv extends d.Component{constructor(){super(...arguments);df(this,"state",{error:"",loading:!1,tokenMasked:!0}),df(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,zt.WW)(`auth.${this.props.id}.token`,"")}),df(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),df(this,"requestToken",()=>Dv(this,null,function*(){if(this.state.loading)return;const{server:r,flow:i,authCorsProxyUrl:o}=this.props,s=o&&i.tokenUrl?o+(0,Qr.jg)(i.tokenUrl):i.tokenUrl;if(this.errors.client_id||this.errors.client_secret){console.log("Provide client_id and client_secret");return}const p=this.values.client_id,m=this.values.client_secret;if(!p||!m){console.log("Provide client_id and client_secret");return}this.setState({loading:!0}),yield y.authorizeClientCredentials({tokenUrl:s.startsWith("http")?s:r+s,clientId:p,clientSecret:m,scopes:this.values.scopes,successCallback:E=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,E),this.setState({loading:!1})},errorCallback:E=>{this.clearToken(),this.setState({error:E.message,loading:!1})}})}))}get values(){var r,i,o;return((o=(i=(r=this.props.form)==null?void 0:r.values)==null?void 0:i.auth)==null?void 0:o[this.props.id])||{}}get errors(){var r,i;return((i=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}render(){const{loading:r,error:i,tokenMasked:o}=this.state,{id:s,defaultValues:p}=this.props,m=Object.keys(this.props.flow.scopes);let E=(0,zt.YQ)(`auth.${s}.token`)||JSON.stringify(p==null?void 0:p.token);E=E?JSON.parse(E):"";const w=(0,zt.Al)(s,"client_id"),A={field:`auth.${s}.client_id`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),initValue:(0,zt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),placeholder:"Your OAuth2 app Client ID"};return d.createElement(d.Fragment,null,d.createElement(it.n5,null,d.createElement(it.NI,null,d.createElement(it.lX,null,"Client ID:"),w?d.createElement(Kn,Gd(zd({},A),{options:w})):d.createElement(Er,Gd(zd({},A),{type:"password"}))),d.createElement(it.NI,null,d.createElement(it.lX,null,"Client Secret:"),d.createElement(Er,{type:"password",fullWidth:!0,field:`auth.${s}.client_secret`,initialValue:(0,zt.YQ)(`auth.${s}.client_secret`)||(p==null?void 0:p.client_secret)})),d.createElement(Er,{fullWidth:!0,field:`auth.${s}.token`,type:"hidden",initialValue:E,validate:Nv}),d.createElement(Vd,{id:s,scopes:m})),d.createElement(uo.zx,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),d.createElement(it.ph,null," Access Token "),i?d.createElement(it.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",d.createElement("pre",null,i)," "):this.values.token&&this.values.token.access_token?d.createElement(it.TR,null,d.createElement(it.WA,{length:this.values.token.access_token.length,masked:o},this.values.token.access_token),d.createElement(it.lf,{onClick:this.toggleTokenMask},o?"Show":"Hide"," "),d.createElement(it.h,{onClick:this.clearToken}," Clear ")):d.createElement(it.Xq,{style:{marginBottom:"1em"}},"No token"))}}const Uv=Bv;var jv=Object.defineProperty,Vv=Object.defineProperties,Wv=Object.getOwnPropertyDescriptors,$d=Object.getOwnPropertySymbols,Hv=Object.prototype.hasOwnProperty,zv=Object.prototype.propertyIsEnumerable,zc=(t,r,i)=>r in t?jv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,as=(t,r)=>{for(var i in r||(r={}))Hv.call(r,i)&&zc(t,i,r[i]);if($d)for(var i of $d(r))zv.call(r,i)&&zc(t,i,r[i]);return t},wl=(t,r)=>Vv(t,Wv(r)),Kd=(t,r,i)=>(zc(t,typeof r!="symbol"?r+"":r,i),i);function Sl(t){if(!t)return"Field is required"}const Gv=function(t){const r=document.cookie.match("\\b"+t+"=([^;]*)\\b");return r?r[1]:void 0};function Yd(t){if(t.in==="cookie")return Gv(t.name)}class $v extends d.Component{constructor(){super(...arguments);Kd(this,"state",{activeScheme:0}),Kd(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,zt.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const o=r.operation.security.map(m=>m.schemes.map(E=>E.id).join(" and ")),s=(0,zt.YQ)("securityRequirementName"),p=o.findIndex(m=>m===s);return{activeScheme:p<0?0:p}}render(){const{securityDefaults:r}=this.props,{activeScheme:i}=this.state,o=this.props.operation.security,p=o.map(m=>m.schemes.map(E=>E.id).join(" and ")).map((m,E)=>({value:m,idx:E}));return p.length===0?null:d.createElement(d.Fragment,null,d.createElement(it.n5,null,p.length>1&&d.createElement(it.NI,null,d.createElement(it.lX,null," Security scheme: "),d.createElement(hr.Dropdown,{variant:"dark",fullWidth:!0,options:p,value:p[i].value,onChange:this.handleSchemeChange}))||null,o[i].schemes.map(m=>{var E,w,A,k,G,ne,te;const fe=(0,zt.A8)(m.id);if(m.type==="apiKey"){const ye=(0,zt.Al)(fe,""),ge={field:`auth.${fe}`,fullWidth:!0,initialValue:Yd(m)||(0,zt.YQ)(`auth.${fe}`)||(r==null?void 0:r[fe]),initValue:Yd(m)||(0,zt.YQ)(`auth.${fe}`)||(r==null?void 0:r[fe]),validate:Sl,validateOnBlur:!0,validateOnChange:!0};return d.createElement(it.NI,{key:fe},d.createElement(it.lX,null," ",m.name,": "),ye?d.createElement(Kn,wl(as({},ge),{options:ye})):d.createElement(Er,wl(as({},ge),{type:"password","data-cy":"apiKey-auth-password"})))}else if(m.type==="http"){if(m.scheme==="basic"){const ye=(0,zt.Al)(fe,"username"),ge={field:`auth.${fe}.username`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${fe}.username`)||((E=r==null?void 0:r[fe])==null?void 0:E.username),initValue:(0,zt.YQ)(`auth.${fe}.username`)||((w=r==null?void 0:r[fe])==null?void 0:w.username),validate:Sl,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:fe},d.createElement(it.NI,null,d.createElement(it.lX,null," ",(0,so.l)("tryItAuthBasicUsername"),": "),ye?d.createElement(Kn,wl(as({},ge),{options:ye})):d.createElement(Er,as({},ge))),d.createElement(it.NI,null,d.createElement(it.lX,null," ",(0,so.l)("tryItAuthBasicPassword"),": "),d.createElement(Er,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${fe}.password`,initialValue:(0,zt.YQ)(`auth.${fe}.password`)||((A=r==null?void 0:r[fe])==null?void 0:A.password)||"",validateOnBlur:!0,validateOnChange:!0})))}else if(m.scheme==="bearer"){const ye=(0,zt.Al)(fe,""),ge={field:`auth.${fe}`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${fe}`)||(r==null?void 0:r[fe]),initValue:(0,zt.YQ)(`auth.${fe}`)||(r==null?void 0:r[fe]),validate:Sl,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:fe},d.createElement(it.NI,null,d.createElement(it.lX,null," Bearer Token: "),ye?d.createElement(Kn,wl(as({},ge),{options:ye})):d.createElement(Er,wl(as({},ge),{type:"password",placeholder:"(without 'Bearer')"}))))}}else{if(m.type==="oauth2"&&m.flows&&m.flows.clientCredentials)return d.createElement(Uv,{key:fe,flow:m.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:fe,form:this.props.form,formApi:this.props.formApi,clientId:m.flows.clientCredentials["x-defaultClientId"]||m["x-defaultClientId"],defaultValues:r==null?void 0:r[fe]});if(m.type==="oauth2"&&m.flows&&m.flows.implicit)return d.createElement(cf,{key:fe,authorizationUrl:m.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((G=(k=m==null?void 0:m.flows)==null?void 0:k.implicit)==null?void 0:G.scopes)||{}),server:this.props.activeServer,id:fe,form:this.props.form,formApi:this.props.formApi,clientId:m.flows.implicit["x-defaultClientId"]||m["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[fe]});if(m.type==="oauth2"&&m.flows&&m.flows.authorizationCode)return d.createElement(cf,{key:fe,authorizationUrl:m.flows.authorizationCode.authorizationUrl,tokenUrl:m.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((ne=m.flows.authorizationCode)==null?void 0:ne.scopes)||{}),server:this.props.activeServer,id:fe,form:this.props.form,formApi:this.props.formApi,clientId:m.flows.authorizationCode["x-defaultClientId"]||m["x-defaultClientId"],flow:"authorizationCode",usePkce:m.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[fe]});if(m.type==="oauth2"){let ye=(0,zt.YQ)(`auth.${fe}.token`)||JSON.stringify((te=r==null?void 0:r[fe])==null?void 0:te.token);return ye=ye?JSON.parse(ye):{},d.createElement(d.Fragment,{key:fe},d.createElement(it.NI,null,d.createElement(it.lX,null," Access Token Type: "),d.createElement(Er,{fullWidth:!0,field:`auth.${fe}.token.token_type`,initialValue:ye.token_type||"Bearer"})),d.createElement(it.NI,null,d.createElement(it.lX,null," Access Token: "),d.createElement(Er,{type:"password",fullWidth:!0,field:`auth.${fe}.token.access_token`,validate:Sl,initialValue:ye.access_token,validateOnBlur:!0,validateOnChange:!0})))}else if(m.type==="openIdConnect")return d.createElement(Pv,{key:fe,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:fe,form:this.props.form,formApi:this.props.formApi,scheme:m,clientId:m["x-defaultClientId"],defaultValues:r==null?void 0:r[fe]})}})),d.createElement("small",null,d.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var Jd=a(39895);const Kv=wt.styled.div`
|
|
308
|
+
`;var Fv=Object.defineProperty,kv=Object.defineProperties,Mv=Object.getOwnPropertyDescriptors,zd=Object.getOwnPropertySymbols,Rv=Object.prototype.hasOwnProperty,Lv=Object.prototype.propertyIsEnumerable,Hc=(t,r,i)=>r in t?Fv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Gd=(t,r)=>{for(var i in r||(r={}))Rv.call(r,i)&&Hc(t,i,r[i]);if(zd)for(var i of zd(r))Lv.call(r,i)&&Hc(t,i,r[i]);return t},$d=(t,r)=>kv(t,Mv(r)),df=(t,r,i)=>(Hc(t,typeof r!="symbol"?r+"":r,i),i),Dv=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{E(i.next(w))}catch(A){s(A)}},y=w=>{try{E(i.throw(w))}catch(A){s(A)}},E=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);E((i=i.apply(t,r)).next())});function Nv(t){if(!t)return"Token is required"}class Bv extends d.Component{constructor(){super(...arguments);df(this,"state",{error:"",loading:!1,tokenMasked:!0}),df(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,zt.WW)(`auth.${this.props.id}.token`,"")}),df(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),df(this,"requestToken",()=>Dv(this,null,function*(){if(this.state.loading)return;const{server:r,flow:i,authCorsProxyUrl:a}=this.props,s=a&&i.tokenUrl?a+(0,kr.jg)(i.tokenUrl):i.tokenUrl;if(this.errors.client_id||this.errors.client_secret){console.log("Provide client_id and client_secret");return}const p=this.values.client_id,y=this.values.client_secret;if(!p||!y){console.log("Provide client_id and client_secret");return}this.setState({loading:!0});const E=i["x-tokenEndpointAuthMethod"];if(!(0,kr.xl)(E)){console.log(`Unsupported token endpoint auth method: ${E}`);return}yield m.authorizeClientCredentials({tokenUrl:s.startsWith("http")?s:r+s,clientId:p,clientSecret:y,scopes:this.values.scopes,extraHeaders:(0,kr.Or)({authMethod:E,clientId:p,clientSecret:y}),successCallback:w=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,w),this.setState({loading:!1})},errorCallback:w=>{this.clearToken(),this.setState({error:w.message,loading:!1})}})}))}get values(){var r,i,a;return((a=(i=(r=this.props.form)==null?void 0:r.values)==null?void 0:i.auth)==null?void 0:a[this.props.id])||{}}get errors(){var r,i;return((i=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}render(){const{loading:r,error:i,tokenMasked:a}=this.state,{id:s,defaultValues:p}=this.props,y=Object.keys(this.props.flow.scopes);let E=(0,zt.YQ)(`auth.${s}.token`)||JSON.stringify(p==null?void 0:p.token);E=E?JSON.parse(E):"";const w=(0,zt.Al)(s,"client_id"),A={field:`auth.${s}.client_id`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),initValue:(0,zt.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),placeholder:"Your OAuth2 app Client ID"};return d.createElement(d.Fragment,null,d.createElement(it.n5,null,d.createElement(it.NI,null,d.createElement(it.lX,null,"Client ID:"),w?d.createElement(Kn,$d(Gd({},A),{options:w})):d.createElement(Er,$d(Gd({},A),{type:"password"}))),d.createElement(it.NI,null,d.createElement(it.lX,null,"Client Secret:"),d.createElement(Er,{type:"password",fullWidth:!0,field:`auth.${s}.client_secret`,initialValue:(0,zt.YQ)(`auth.${s}.client_secret`)||(p==null?void 0:p.client_secret)})),d.createElement(Er,{fullWidth:!0,field:`auth.${s}.token`,type:"hidden",initialValue:E,validate:Nv}),d.createElement(Vd,{id:s,scopes:y})),d.createElement(fa.zx,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),d.createElement(it.ph,null," Access Token "),i?d.createElement(it.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",d.createElement("pre",null,i)," "):this.values.token&&this.values.token.access_token?d.createElement(it.TR,null,d.createElement(it.WA,{length:this.values.token.access_token.length,masked:a},this.values.token.access_token),d.createElement(it.lf,{onClick:this.toggleTokenMask},a?"Show":"Hide"," "),d.createElement(it.h,{onClick:this.clearToken}," Clear ")):d.createElement(it.Xq,{style:{marginBottom:"1em"}},"No token"))}}const Uv=Bv;var jv=Object.defineProperty,Vv=Object.defineProperties,Wv=Object.getOwnPropertyDescriptors,Kd=Object.getOwnPropertySymbols,Hv=Object.prototype.hasOwnProperty,zv=Object.prototype.propertyIsEnumerable,zc=(t,r,i)=>r in t?jv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,os=(t,r)=>{for(var i in r||(r={}))Hv.call(r,i)&&zc(t,i,r[i]);if(Kd)for(var i of Kd(r))zv.call(r,i)&&zc(t,i,r[i]);return t},Sl=(t,r)=>Vv(t,Wv(r)),Yd=(t,r,i)=>(zc(t,typeof r!="symbol"?r+"":r,i),i);function Al(t){if(!t)return"Field is required"}const Gv=function(t){const r=document.cookie.match("\\b"+t+"=([^;]*)\\b");return r?r[1]:void 0};function Jd(t){if(t.in==="cookie")return Gv(t.name)}class $v extends d.Component{constructor(){super(...arguments);Yd(this,"state",{activeScheme:0}),Yd(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,zt.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const a=r.operation.security.map(y=>y.schemes.map(E=>E.id).join(" and ")),s=(0,zt.YQ)("securityRequirementName"),p=a.findIndex(y=>y===s);return{activeScheme:p<0?0:p}}render(){const{securityDefaults:r}=this.props,{activeScheme:i}=this.state,a=this.props.operation.security,p=a.map(y=>y.schemes.map(E=>E.id).join(" and ")).map((y,E)=>({value:y,idx:E}));return p.length===0?null:d.createElement(d.Fragment,null,d.createElement(it.n5,null,p.length>1&&d.createElement(it.NI,null,d.createElement(it.lX,null," Security scheme: "),d.createElement(hr.Dropdown,{variant:"dark",fullWidth:!0,options:p,value:p[i].value,onChange:this.handleSchemeChange}))||null,a[i].schemes.map(y=>{var E,w,A,k,G,ne,re;const se=(0,zt.A8)(y.id);if(y.type==="apiKey"){const ye=(0,zt.Al)(se,""),ge={field:`auth.${se}`,fullWidth:!0,initialValue:Jd(y)||(0,zt.YQ)(`auth.${se}`)||(r==null?void 0:r[se]),initValue:Jd(y)||(0,zt.YQ)(`auth.${se}`)||(r==null?void 0:r[se]),validate:Al,validateOnBlur:!0,validateOnChange:!0};return d.createElement(it.NI,{key:se},d.createElement(it.lX,null," ",y.name,": "),ye?d.createElement(Kn,Sl(os({},ge),{options:ye})):d.createElement(Er,Sl(os({},ge),{type:"password","data-cy":"apiKey-auth-password"})))}else if(y.type==="http"){if(y.scheme==="basic"){const ye=(0,zt.Al)(se,"username"),ge={field:`auth.${se}.username`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${se}.username`)||((E=r==null?void 0:r[se])==null?void 0:E.username),initValue:(0,zt.YQ)(`auth.${se}.username`)||((w=r==null?void 0:r[se])==null?void 0:w.username),validate:Al,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:se},d.createElement(it.NI,null,d.createElement(it.lX,null," ",(0,la.l)("tryItAuthBasicUsername"),": "),ye?d.createElement(Kn,Sl(os({},ge),{options:ye})):d.createElement(Er,os({},ge))),d.createElement(it.NI,null,d.createElement(it.lX,null," ",(0,la.l)("tryItAuthBasicPassword"),": "),d.createElement(Er,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${se}.password`,initialValue:(0,zt.YQ)(`auth.${se}.password`)||((A=r==null?void 0:r[se])==null?void 0:A.password)||"",validateOnBlur:!0,validateOnChange:!0})))}else if(y.scheme==="bearer"){const ye=(0,zt.Al)(se,""),ge={field:`auth.${se}`,fullWidth:!0,initialValue:(0,zt.YQ)(`auth.${se}`)||(r==null?void 0:r[se]),initValue:(0,zt.YQ)(`auth.${se}`)||(r==null?void 0:r[se]),validate:Al,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:se},d.createElement(it.NI,null,d.createElement(it.lX,null," Bearer Token: "),ye?d.createElement(Kn,Sl(os({},ge),{options:ye})):d.createElement(Er,Sl(os({},ge),{type:"password",placeholder:"(without 'Bearer')"}))))}}else{if(y.type==="oauth2"&&y.flows&&y.flows.clientCredentials)return d.createElement(Uv,{key:se,flow:y.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:se,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.clientCredentials["x-defaultClientId"]||y["x-defaultClientId"],defaultValues:r==null?void 0:r[se]});if(y.type==="oauth2"&&y.flows&&y.flows.implicit)return d.createElement(wl,{key:se,authorizationUrl:y.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((G=(k=y==null?void 0:y.flows)==null?void 0:k.implicit)==null?void 0:G.scopes)||{}),server:this.props.activeServer,id:se,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.implicit["x-defaultClientId"]||y["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[se]});if(y.type==="oauth2"&&y.flows&&y.flows.authorizationCode)return d.createElement(wl,{key:se,authorizationUrl:y.flows.authorizationCode.authorizationUrl,tokenUrl:y.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((ne=y.flows.authorizationCode)==null?void 0:ne.scopes)||{}),server:this.props.activeServer,id:se,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.authorizationCode["x-defaultClientId"]||y["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:y.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:y.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[se]});if(y.type==="oauth2"){let ye=(0,zt.YQ)(`auth.${se}.token`)||JSON.stringify((re=r==null?void 0:r[se])==null?void 0:re.token);return ye=ye?JSON.parse(ye):{},d.createElement(d.Fragment,{key:se},d.createElement(it.NI,null,d.createElement(it.lX,null," Access Token Type: "),d.createElement(Er,{fullWidth:!0,field:`auth.${se}.token.token_type`,initialValue:ye.token_type||"Bearer"})),d.createElement(it.NI,null,d.createElement(it.lX,null," Access Token: "),d.createElement(Er,{type:"password",fullWidth:!0,field:`auth.${se}.token.access_token`,validate:Al,initialValue:ye.access_token,validateOnBlur:!0,validateOnChange:!0})))}else if(y.type==="openIdConnect")return d.createElement(Iv,{key:se,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:se,form:this.props.form,formApi:this.props.formApi,scheme:y,clientId:y["x-defaultClientId"],defaultValues:r==null?void 0:r[se]})}})),d.createElement("small",null,d.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var Xd=o(39895);const Kv=wt.styled.div`
|
|
309
309
|
display: flex;
|
|
310
310
|
font-size: 12px;
|
|
311
311
|
button {
|
|
312
312
|
margin: 0;
|
|
313
313
|
}
|
|
314
|
-
`,
|
|
314
|
+
`,Qd=wt.styled.button`
|
|
315
315
|
outline: none;
|
|
316
316
|
border: none;
|
|
317
317
|
background-color: ${({theme:t})=>t.rightPanel.panelBackgroundColor};
|
|
@@ -344,54 +344,54 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
344
344
|
|
|
345
345
|
${({active:t,theme:r})=>t&&`
|
|
346
346
|
border-bottom: 4px solid ${r.colors.accent.main};
|
|
347
|
-
background-color: ${(0,
|
|
347
|
+
background-color: ${(0,Xd._j)(.05,r.rightPanel.panelBackgroundColor)};
|
|
348
348
|
`||""}
|
|
349
349
|
|
|
350
350
|
${({disabled:t,theme:r})=>t&&`
|
|
351
351
|
cursor: default;
|
|
352
|
-
color: ${(0,
|
|
352
|
+
color: ${(0,Xd.DZ)(.3,r.colors.text.light)};
|
|
353
353
|
`||""}
|
|
354
|
-
`;class Yv extends d.Component{render(){const{onChange:r,active:i,hasResponse:
|
|
354
|
+
`;class Yv extends d.Component{render(){const{onChange:r,active:i,hasResponse:a}=this.props;return d.createElement(Kv,null,d.createElement(Qd,{onClick:()=>r(0),active:i===0},a?"Edit Request":"Request"),d.createElement(Qd,{onClick:()=>a&&r(1),active:i===1,disabled:!a}," ","Response"," "))}}var Jv=o(9996),Zd=o.n(Jv),Gc=o(67897),El=o(49376),Xv=Object.defineProperty,pf=Object.getOwnPropertySymbols,_d=Object.prototype.hasOwnProperty,qd=Object.prototype.propertyIsEnumerable,ep=(t,r,i)=>r in t?Xv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Qv=(t,r)=>{for(var i in r||(r={}))_d.call(r,i)&&ep(t,i,r[i]);if(pf)for(var i of pf(r))qd.call(r,i)&&ep(t,i,r[i]);return t},Zv=(t,r)=>{var i={};for(var a in t)_d.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&pf)for(var a of pf(t))r.indexOf(a)<0&&qd.call(t,a)&&(i[a]=t[a]);return i},_v=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{E(i.next(w))}catch(A){s(A)}},y=w=>{try{E(i.throw(w))}catch(A){s(A)}},E=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);E((i=i.apply(t,r)).next())});const tp=d.forwardRef((t,r)=>{var i=Zv(t,[]);const{schema:a,contentName:s,onChange:p,name:y}=i,{render:E}=Tn(Qv({field:y},i)),w=A=>_v(void 0,null,function*(){const k=yield It(A.target.files,a);p(s,k)});return E(d.createElement("input",{"data-cy":"file-upload-input",type:"file",id:i.id,className:i.className,name:i.name,onChange:w,multiple:i.multiple,accept:i.accept,ref:r}))});tp.displayName="FileUpload";const qv=(0,Io.Pi)(t=>{var r;const{mediaType:i,onChange:a,formApi:s}=t,p=i.examples||{},{exampleKey:y}=(0,Gc.C6)(i.operation,p),E=(r=p[y])==null?void 0:r.rawValue,w=eg(i);(0,d.useEffect)(()=>s&&w.forEach(k=>{var G,ne;const re=E==null?void 0:E[k.name],se=(ne=(G=k.example)!=null?G:re==null?void 0:re.example)!=null?ne:re,ye=typeof se=="object"?JSON.stringify(se):se;se!==void 0&&s.setValue("body."+k.name,`${ye}`)}),[y]);const A=i.schema||{};return dt(A,i.name)?d.createElement(rp,null,d.createElement(it.NI,null,d.createElement(np,{fullWidth:!0,id:`body.${i.name}`,name:`body.${i.name}`,accept:at(i.name),schema:A,contentName:i.name,onChange:a}))):A.type!==be.OBJECT&&!w?(console.warn(`Invalid schema for request body and mime type: "${i.name}"`,A),null):d.createElement(rp,null,w.map(k=>{const G=k.schema||{},ne=i.name===El.T.MULTIPART&>(G),re=G.contentMediaType||"",se=ne?d.createElement(np,{fullWidth:!0,id:"body."+k.name,name:"body."+k.name,accept:at(re),multiple:G.type==="array",schema:G,contentName:k.name,onChange:a}):d.createElement(Er,{fullWidth:!0,id:"body."+k.name,field:"body."+k.name,placeholder:G.description||k.name});return d.createElement(it.NI,{key:k.name},d.createElement(it.lX,null,k.name,":"),se)}))});function eg(t){var r,i,a,s,p;return(((i=(r=t.schema)==null?void 0:r.oneOf)==null?void 0:i.length)?((s=t.schema)==null?void 0:s.oneOf[(a=t.schema)==null?void 0:a.activeOneOf].fields)||[]:((p=t.schema)==null?void 0:p.fields)||[]).filter(y=>!y.schema.readOnly)}const rp=wt.styled.div`
|
|
355
355
|
> div {
|
|
356
356
|
margin-top: 10px;
|
|
357
357
|
}
|
|
358
|
-
`,
|
|
358
|
+
`,np=(0,wt.styled)(tp)`
|
|
359
359
|
${nn}
|
|
360
360
|
${({inputType:t})=>t==="password"?"padding-right: 40px;":""};
|
|
361
361
|
${({fullWidth:t})=>t?"width: 100%;":""}
|
|
362
|
-
`,tg=(0,Gt.ZP)(
|
|
362
|
+
`,tg=(0,Gt.ZP)(fa.A3)`
|
|
363
363
|
border-radius: ${({theme:t})=>t.components.panels.borderRadius};
|
|
364
364
|
margin-bottom: 10px;
|
|
365
|
-
`;var rg=
|
|
366
|
-
`;break;case 114:
|
|
367
|
-
`),E++,A=
|
|
365
|
+
`;var rg=o(35310),as=o(4631);function hf(t,r){r===void 0&&(r=!1);var i=t.length,a=0,s="",p=0,y=16,E=0,w=0,A=0,k=0,G=0;function ne(Pe,Ge){for(var je=0,He=0;je<Pe||!Ge;){var Ne=t.charCodeAt(a);if(Ne>=48&&Ne<=57)He=He*16+Ne-48;else if(Ne>=65&&Ne<=70)He=He*16+Ne-65+10;else if(Ne>=97&&Ne<=102)He=He*16+Ne-97+10;else break;a++,je++}return je<Pe&&(He=-1),He}function re(Pe){a=Pe,s="",p=0,y=16,G=0}function se(){var Pe=a;if(t.charCodeAt(a)===48)a++;else for(a++;a<t.length&&ss(t.charCodeAt(a));)a++;if(a<t.length&&t.charCodeAt(a)===46)if(a++,a<t.length&&ss(t.charCodeAt(a)))for(a++;a<t.length&&ss(t.charCodeAt(a));)a++;else return G=3,t.substring(Pe,a);var Ge=a;if(a<t.length&&(t.charCodeAt(a)===69||t.charCodeAt(a)===101))if(a++,(a<t.length&&t.charCodeAt(a)===43||t.charCodeAt(a)===45)&&a++,a<t.length&&ss(t.charCodeAt(a))){for(a++;a<t.length&&ss(t.charCodeAt(a));)a++;Ge=a}else G=3;return t.substring(Pe,Ge)}function ye(){for(var Pe="",Ge=a;;){if(a>=i){Pe+=t.substring(Ge,a),G=2;break}var je=t.charCodeAt(a);if(je===34){Pe+=t.substring(Ge,a),a++;break}if(je===92){if(Pe+=t.substring(Ge,a),a++,a>=i){G=2;break}var He=t.charCodeAt(a++);switch(He){case 34:Pe+='"';break;case 92:Pe+="\\";break;case 47:Pe+="/";break;case 98:Pe+="\b";break;case 102:Pe+="\f";break;case 110:Pe+=`
|
|
366
|
+
`;break;case 114:Pe+="\r";break;case 116:Pe+=" ";break;case 117:var Ne=ne(4,!0);Ne>=0?Pe+=String.fromCharCode(Ne):G=4;break;default:G=5}Ge=a;continue}if(je>=0&&je<=31)if(Cl(je)){Pe+=t.substring(Ge,a),G=2;break}else G=6;a++}return Pe}function ge(){if(s="",G=0,p=a,w=E,k=A,a>=i)return p=i,y=17;var Pe=t.charCodeAt(a);if($c(Pe)){do a++,s+=String.fromCharCode(Pe),Pe=t.charCodeAt(a);while($c(Pe));return y=15}if(Cl(Pe))return a++,s+=String.fromCharCode(Pe),Pe===13&&t.charCodeAt(a)===10&&(a++,s+=`
|
|
367
|
+
`),E++,A=a,y=14;switch(Pe){case 123:return a++,y=1;case 125:return a++,y=2;case 91:return a++,y=3;case 93:return a++,y=4;case 58:return a++,y=6;case 44:return a++,y=5;case 34:return a++,s=ye(),y=10;case 47:var Ge=a-1;if(t.charCodeAt(a+1)===47){for(a+=2;a<i&&!Cl(t.charCodeAt(a));)a++;return s=t.substring(Ge,a),y=12}if(t.charCodeAt(a+1)===42){a+=2;for(var je=i-1,He=!1;a<je;){var Ne=t.charCodeAt(a);if(Ne===42&&t.charCodeAt(a+1)===47){a+=2,He=!0;break}a++,Cl(Ne)&&(Ne===13&&t.charCodeAt(a)===10&&a++,E++,A=a)}return He||(a++,G=1),s=t.substring(Ge,a),y=13}return s+=String.fromCharCode(Pe),a++,y=16;case 45:if(s+=String.fromCharCode(Pe),a++,a===i||!ss(t.charCodeAt(a)))return y=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=se(),y=11;default:for(;a<i&&Ee(Pe);)a++,Pe=t.charCodeAt(a);if(p!==a){switch(s=t.substring(p,a),s){case"true":return y=8;case"false":return y=9;case"null":return y=7}return y=16}return s+=String.fromCharCode(Pe),a++,y=16}}function Ee(Pe){if($c(Pe)||Cl(Pe))return!1;switch(Pe){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function me(){var Pe;do Pe=ge();while(Pe>=12&&Pe<=15);return Pe}return{setPosition:re,getPosition:function(){return a},scan:r?me:ge,getToken:function(){return y},getTokenValue:function(){return s},getTokenOffset:function(){return p},getTokenLength:function(){return a-p},getTokenStartLine:function(){return w},getTokenStartCharacter:function(){return p-k},getTokenError:function(){return G}}}function $c(t){return t===32||t===9||t===11||t===12||t===160||t===5760||t>=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function Cl(t){return t===10||t===13||t===8232||t===8233}function ss(t){return t>=48&&t<=57}function ng(t,r,i){var a,s,p,y,E;if(r){for(y=r.offset,E=y+r.length,p=y;p>0&&!ip(t,p-1);)p--;for(var w=E;w<t.length&&!ip(t,w);)w++;s=t.substring(p,w),a=ig(s,i)}else s=t,a=0,p=0,y=0,E=t.length;var A=og(i,t),k=!1,G=0,ne;i.insertSpaces?ne=Kc(" ",i.tabSize||4):ne=" ";var re=hf(s,!1),se=!1;function ye(){return A+Kc(ne,a+G)}function ge(){var ze=re.scan();for(k=!1;ze===15||ze===14;)k=k||ze===14,ze=re.scan();return se=ze===16||re.getTokenError()!==0,ze}var Ee=[];function me(ze,et,At){!se&&et<E&&At>y&&t.substring(et,At)!==ze&&Ee.push({offset:et,length:At-et,content:ze})}var Pe=ge();if(Pe!==17){var Ge=re.getTokenOffset()+p,je=Kc(ne,a);me(je,p,Ge)}for(;Pe!==17;){for(var He=re.getTokenOffset()+re.getTokenLength()+p,Ne=ge(),Ve="";!k&&(Ne===12||Ne===13);){var We=re.getTokenOffset()+p;me(" ",He,We),He=re.getTokenOffset()+re.getTokenLength()+p,Ve=Ne===12?ye():"",Ne=ge()}if(Ne===2)Pe!==1&&(G--,Ve=ye());else if(Ne===4)Pe!==3&&(G--,Ve=ye());else{switch(Pe){case 3:case 1:G++,Ve=ye();break;case 5:case 12:Ve=ye();break;case 13:k?Ve=ye():Ve=" ";break;case 6:Ve=" ";break;case 10:if(Ne===6){Ve="";break}case 7:case 8:case 9:case 11:case 2:case 4:Ne===12||Ne===13?Ve=" ":Ne!==5&&Ne!==17&&(se=!0);break;case 16:se=!0;break}k&&(Ne===12||Ne===13)&&(Ve=ye())}var Je=re.getTokenOffset()+p;me(Ve,He,Je),Pe=Ne}return Ee}function Kc(t,r){for(var i="",a=0;a<r;a++)i+=t;return i}function ig(t,r){for(var i=0,a=0,s=r.tabSize||4;i<t.length;){var p=t.charAt(i);if(p===" ")a++;else if(p===" ")a+=s;else break;i++}return Math.floor(a/s)}function og(t,r){for(var i=0;i<r.length;i++){var a=r.charAt(i);if(a==="\r")return i+1<r.length&&r.charAt(i+1)===`
|
|
368
368
|
`?`\r
|
|
369
|
-
`:"\r";if(
|
|
369
|
+
`:"\r";if(a===`
|
|
370
370
|
`)return`
|
|
371
371
|
`}return t&&t.eol||`
|
|
372
|
-
`}function
|
|
373
|
-
`.indexOf(t.charAt(r))!==-1}var Cl;(function(t){t.DEFAULT={allowTrailingComma:!1}})(Cl||(Cl={}));function og(t,r){var i=[],o=new Object,s=void 0,p={value:{},offset:0,length:0,type:"object",parent:void 0},m=!1;function E(w,A,k,G){p.value=w,p.offset=A,p.length=k,p.type=G,p.colonOffset=void 0,s=p}try{vf(t,{onObjectBegin:function(w,A){if(r<=w)throw o;s=void 0,m=r>w,i.push("")},onObjectProperty:function(w,A,k){if(r<A||(E(w,A,k,"property"),i[i.length-1]=w,r<=A+k))throw o},onObjectEnd:function(w,A){if(r<=w)throw o;s=void 0,i.pop()},onArrayBegin:function(w,A){if(r<=w)throw o;s=void 0,i.push(0)},onArrayEnd:function(w,A){if(r<=w)throw o;s=void 0,i.pop()},onLiteralValue:function(w,A,k){if(r<A||(E(w,A,k,op(w)),r<=A+k))throw o},onSeparator:function(w,A,k){if(r<=A)throw o;if(w===":"&&s&&s.type==="property")s.colonOffset=A,m=!1,s=void 0;else if(w===","){var G=i[i.length-1];typeof G=="number"?i[i.length-1]=G+1:(m=!0,i[i.length-1]=""),s=void 0}}})}catch(w){if(w!==o)throw w}return{path:i,previousNode:s,isAtPropertyKey:m,matches:function(w){for(var A=0,k=0;A<w.length&&k<i.length;k++)if(w[A]===i[k]||w[A]==="*")A++;else if(w[A]!=="**")return!1;return A===w.length}}}function sg(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=Cl.DEFAULT);var o=null,s=[],p=[];function m(w){Array.isArray(s)?s.push(w):o!==null&&(s[o]=w)}var E={onObjectBegin:function(){var w={};m(w),p.push(s),s=w,o=null},onObjectProperty:function(w){o=w},onObjectEnd:function(){s=p.pop()},onArrayBegin:function(){var w=[];m(w),p.push(s),s=w,o=null},onArrayEnd:function(){s=p.pop()},onLiteralValue:m,onError:function(w,A,k){r.push({error:w,offset:A,length:k})}};return vf(t,E,i),s[0]}function lg(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=Cl.DEFAULT);var o={type:"array",offset:-1,length:-1,children:[],parent:void 0};function s(w){o.type==="property"&&(o.length=w-o.offset,o=o.parent)}function p(w){return o.children.push(w),w}var m={onObjectBegin:function(w){o=p({type:"object",offset:w,length:-1,parent:o,children:[]})},onObjectProperty:function(w,A,k){o=p({type:"property",offset:A,length:-1,parent:o,children:[]}),o.children.push({type:"string",value:w,offset:A,length:k,parent:o})},onObjectEnd:function(w,A){s(w+A),o.length=w+A-o.offset,o=o.parent,s(w+A)},onArrayBegin:function(w,A){o=p({type:"array",offset:w,length:-1,parent:o,children:[]})},onArrayEnd:function(w,A){o.length=w+A-o.offset,o=o.parent,s(w+A)},onLiteralValue:function(w,A,k){p({type:op(w),offset:A,length:k,parent:o,value:w}),s(A+k)},onSeparator:function(w,A,k){o.type==="property"&&(w===":"?o.colonOffset=A:w===","&&s(A))},onError:function(w,A,k){r.push({error:w,offset:A,length:k})}};vf(t,m,i);var E=o.children[0];return E&&delete E.parent,E}function ug(t,r){if(!!t){for(var i=t,o=0,s=r;o<s.length;o++){var p=s[o];if(typeof p=="string"){if(i.type!=="object"||!Array.isArray(i.children))return;for(var m=!1,E=0,w=i.children;E<w.length;E++){var A=w[E];if(Array.isArray(A.children)&&A.children[0].value===p){i=A.children[1],m=!0;break}}if(!m)return}else{var k=p;if(i.type!=="array"||k<0||!Array.isArray(i.children)||k>=i.children.length)return;i=i.children[k]}}return i}}function ip(t){if(!t.parent||!t.parent.children)return[];var r=ip(t.parent);if(t.parent.type==="property"){var i=t.parent.children[0].value;r.push(i)}else if(t.parent.type==="array"){var o=t.parent.children.indexOf(t);o!==-1&&r.push(o)}return r}function Yc(t){switch(t.type){case"array":return t.children.map(Yc);case"object":for(var r=Object.create(null),i=0,o=t.children;i<o.length;i++){var s=o[i],p=s.children[1];p&&(r[s.children[0].value]=Yc(p))}return r;case"null":case"string":case"number":case"boolean":return t.value;default:return}}function fg(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}function ap(t,r,i){if(i===void 0&&(i=!1),fg(t,r,i)){var o=t.children;if(Array.isArray(o))for(var s=0;s<o.length&&o[s].offset<=r;s++){var p=ap(o[s],r,i);if(p)return p}return t}}function vf(t,r,i){i===void 0&&(i=Cl.DEFAULT);var o=hf(t,!1);function s(We){return We?function(){return We(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}function p(We){return We?function(Je){return We(Je,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}var m=s(r.onObjectBegin),E=p(r.onObjectProperty),w=s(r.onObjectEnd),A=s(r.onArrayBegin),k=s(r.onArrayEnd),G=p(r.onLiteralValue),ne=p(r.onSeparator),te=s(r.onComment),fe=p(r.onError),ye=i&&i.disallowComments,ge=i&&i.allowTrailingComma;function Ee(){for(;;){var We=o.scan();switch(o.getTokenError()){case 4:we(14);break;case 5:we(15);break;case 3:we(13);break;case 1:ye||we(11);break;case 2:we(12);break;case 6:we(16);break}switch(We){case 12:case 13:ye?we(10):te();break;case 16:we(1);break;case 15:case 14:break;default:return We}}}function we(We,Je,ze){if(Je===void 0&&(Je=[]),ze===void 0&&(ze=[]),fe(We),Je.length+ze.length>0)for(var et=o.getToken();et!==17;){if(Je.indexOf(et)!==-1){Ee();break}else if(ze.indexOf(et)!==-1)break;et=Ee()}}function Te(We){var Je=o.getTokenValue();return We?G(Je):E(Je),Ee(),!0}function $e(){switch(o.getToken()){case 11:var We=o.getTokenValue(),Je=Number(We);isNaN(Je)&&(we(2),Je=0),G(Je);break;case 7:G(null);break;case 8:G(!0);break;case 9:G(!1);break;default:return!1}return Ee(),!0}function je(){return o.getToken()!==10?(we(3,[],[2,5]),!1):(Te(!1),o.getToken()===6?(ne(":"),Ee(),Ve()||we(4,[],[2,5])):we(5,[],[2,5]),!0)}function He(){m(),Ee();for(var We=!1;o.getToken()!==2&&o.getToken()!==17;){if(o.getToken()===5){if(We||we(4,[],[]),ne(","),Ee(),o.getToken()===2&&ge)break}else We&&we(6,[],[]);je()||we(4,[],[2,5]),We=!0}return w(),o.getToken()!==2?we(7,[2],[]):Ee(),!0}function Ne(){A(),Ee();for(var We=!1;o.getToken()!==4&&o.getToken()!==17;){if(o.getToken()===5){if(We||we(4,[],[]),ne(","),Ee(),o.getToken()===4&&ge)break}else We&&we(6,[],[]);Ve()||we(4,[],[4,5]),We=!0}return k(),o.getToken()!==4?we(8,[4],[]):Ee(),!0}function Ve(){switch(o.getToken()){case 3:return Ne();case 1:return He();case 10:return Te(!0);default:return $e()}}return Ee(),o.getToken()===17?i.allowEmptyContent?!0:(we(4,[],[]),!1):Ve()?(o.getToken()!==17&&we(9,[],[]),!0):(we(4,[],[]),!1)}function cg(t,r){var i=hf(t),o=[],s,p=0,m;do switch(m=i.getPosition(),s=i.scan(),s){case 12:case 13:case 17:p!==m&&o.push(t.substring(p,m)),r!==void 0&&o.push(i.getTokenValue().replace(/[^\r\n]/g,r)),p=i.getPosition();break}while(s!==17);return o.join("")}function op(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(t){if(Array.isArray(t))return"array"}else return"null";return"object"}default:return"null"}}function Rm(t,r,i){return dg(t,r,void 0,i)}function dg(t,r,i,o){for(var s,p=r.slice(),m=[],E=parseTree(t,m),w=void 0,A=void 0;p.length>0&&(A=p.pop(),w=findNodeAtLocation(E,p),w===void 0&&i!==void 0);)typeof A=="string"?i=(s={},s[A]=i,s):i=[i];if(w)if(w.type==="object"&&typeof A=="string"&&Array.isArray(w.children)){var k=findNodeAtLocation(w,[A]);if(k!==void 0)if(i===void 0){if(!k.parent)throw new Error("Malformed AST");var G=w.children.indexOf(k.parent),ne=void 0,te=k.parent.offset+k.parent.length;if(G>0){var fe=w.children[G-1];ne=fe.offset+fe.length}else if(ne=w.offset+1,w.children.length>1){var ye=w.children[1];te=ye.offset}return fo(t,{offset:ne,length:te-ne,content:""},o)}else return fo(t,{offset:k.offset,length:k.length,content:JSON.stringify(i)},o);else{if(i===void 0)return[];var ge=JSON.stringify(A)+": "+JSON.stringify(i),Ee=o.getInsertionIndex?o.getInsertionIndex(w.children.map(function(We){return We.children[0].value})):w.children.length,we=void 0;if(Ee>0){var fe=w.children[Ee-1];we={offset:fe.offset+fe.length,length:0,content:","+ge}}else w.children.length===0?we={offset:w.offset+1,length:0,content:ge}:we={offset:w.offset+1,length:0,content:ge+","};return fo(t,we,o)}}else if(w.type==="array"&&typeof A=="number"&&Array.isArray(w.children)){var Te=A;if(Te===-1){var ge=""+JSON.stringify(i),we=void 0;if(w.children.length===0)we={offset:w.offset+1,length:0,content:ge};else{var fe=w.children[w.children.length-1];we={offset:fe.offset+fe.length,length:0,content:","+ge}}return fo(t,we,o)}else if(i===void 0&&w.children.length>=0){var $e=A,je=w.children[$e],we=void 0;if(w.children.length===1)we={offset:w.offset+1,length:w.length-2,content:""};else if(w.children.length-1===$e){var fe=w.children[$e-1],He=fe.offset+fe.length,Ne=w.offset+w.length;we={offset:He,length:Ne-2-He,content:""}}else we={offset:je.offset,length:w.children[$e+1].offset-je.offset,content:""};return fo(t,we,o)}else if(i!==void 0){var we=void 0,ge=""+JSON.stringify(i);if(!o.isArrayInsertion&&w.children.length>A){var Ve=w.children[A];we={offset:Ve.offset,length:Ve.length,content:ge}}else if(w.children.length===0||A===0)we={offset:w.offset+1,length:0,content:w.children.length===0?ge:ge+","};else{var Ee=A>w.children.length?w.children.length:A,fe=w.children[Ee-1];we={offset:fe.offset+fe.length,length:0,content:","+ge}}return fo(t,we,o)}else throw new Error("Can not "+(i===void 0?"remove":o.isArrayInsertion?"insert":"modify")+" Array index "+Te+" as length is not sufficient")}else throw new Error("Can not add "+(typeof A!="number"?"index":"property")+" to parent of type "+w.type);else{if(i===void 0)throw new Error("Can not delete in empty document");return fo(t,{offset:E?E.offset:0,length:E?E.length:0,content:JSON.stringify(i)},o)}}function fo(t,r,i){if(!i.formattingOptions)return[r];var o=sp(t,r),s=r.offset,p=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(o,s-1);)s--;for(;p<o.length&&!isEOL(o,p);)p++}for(var m=format(o,{offset:s,length:p-s},i.formattingOptions),E=m.length-1;E>=0;E--){var w=m[E];o=sp(o,w),s=Math.min(s,w.offset),p=Math.max(p,w.offset+w.length),p+=w.content.length-w.length}var A=t.length-(o.length-p)-s;return[{offset:s,length:A,content:o.substring(s,p)}]}function sp(t,r){return t.substring(0,r.offset)+r.content+t.substring(r.offset+r.length)}function Mm(t,r){return`\r
|
|
374
|
-
`.indexOf(t.charAt(r))!==-1}var ls=hf,Lm=og,pg=sg,Dm=lg,Nm=ug,hg=ap,vg=ip,gg=Yc,Bm=vf,Um=cg;function jm(t){switch(t){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function yg(t,r,i){return ng(t,r,i)}function Vm(t,r,i,o){return edit.setProperty(t,r,i,o)}function Wm(t,r){for(var i=r.length-1;i>=0;i--)t=edit.applyEdit(t,r[i]);return t}function Ol(t,r){if(t===r)return!0;if(t==null||r===null||r===void 0||typeof t!=typeof r||typeof t!="object"||Array.isArray(t)!==Array.isArray(r))return!1;var i,o;if(Array.isArray(t)){if(t.length!==r.length)return!1;for(i=0;i<t.length;i++)if(!Ol(t[i],r[i]))return!1}else{var s=[];for(o in t)s.push(o);s.sort();var p=[];for(o in r)p.push(o);if(p.sort(),!Ol(s,p))return!1;for(i=0;i<s.length;i++)if(!Ol(t[s[i]],r[s[i]]))return!1}return!0}function Yn(t){return typeof t=="number"}function aa(t){return typeof t!="undefined"}function Mi(t){return typeof t=="boolean"}function mg(t){return typeof t=="string"}var lp;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(lp||(lp={}));var gf;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(gf||(gf={}));var hi;(function(t){function r(o,s){return o===Number.MAX_VALUE&&(o=gf.MAX_VALUE),s===Number.MAX_VALUE&&(s=gf.MAX_VALUE),{line:o,character:s}}t.create=r;function i(o){var s=o;return _e.objectLiteral(s)&&_e.uinteger(s.line)&&_e.uinteger(s.character)}t.is=i})(hi||(hi={}));var lr;(function(t){function r(o,s,p,m){if(_e.uinteger(o)&&_e.uinteger(s)&&_e.uinteger(p)&&_e.uinteger(m))return{start:hi.create(o,s),end:hi.create(p,m)};if(hi.is(o)&&hi.is(s))return{start:o,end:s};throw new Error("Range#create called with invalid arguments["+o+", "+s+", "+p+", "+m+"]")}t.create=r;function i(o){var s=o;return _e.objectLiteral(s)&&hi.is(s.start)&&hi.is(s.end)}t.is=i})(lr||(lr={}));var Tl;(function(t){function r(o,s){return{uri:o,range:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&lr.is(s.range)&&(_e.string(s.uri)||_e.undefined(s.uri))}t.is=i})(Tl||(Tl={}));var up;(function(t){function r(o,s,p,m){return{targetUri:o,targetRange:s,targetSelectionRange:p,originSelectionRange:m}}t.create=r;function i(o){var s=o;return _e.defined(s)&&lr.is(s.targetRange)&&_e.string(s.targetUri)&&(lr.is(s.targetSelectionRange)||_e.undefined(s.targetSelectionRange))&&(lr.is(s.originSelectionRange)||_e.undefined(s.originSelectionRange))}t.is=i})(up||(up={}));var Jc;(function(t){function r(o,s,p,m){return{red:o,green:s,blue:p,alpha:m}}t.create=r;function i(o){var s=o;return _e.numberRange(s.red,0,1)&&_e.numberRange(s.green,0,1)&&_e.numberRange(s.blue,0,1)&&_e.numberRange(s.alpha,0,1)}t.is=i})(Jc||(Jc={}));var fp;(function(t){function r(o,s){return{range:o,color:s}}t.create=r;function i(o){var s=o;return lr.is(s.range)&&Jc.is(s.color)}t.is=i})(fp||(fp={}));var cp;(function(t){function r(o,s,p){return{label:o,textEdit:s,additionalTextEdits:p}}t.create=r;function i(o){var s=o;return _e.string(s.label)&&(_e.undefined(s.textEdit)||vi.is(s))&&(_e.undefined(s.additionalTextEdits)||_e.typedArray(s.additionalTextEdits,vi.is))}t.is=i})(cp||(cp={}));var Pl;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Pl||(Pl={}));var dp;(function(t){function r(o,s,p,m,E){var w={startLine:o,endLine:s};return _e.defined(p)&&(w.startCharacter=p),_e.defined(m)&&(w.endCharacter=m),_e.defined(E)&&(w.kind=E),w}t.create=r;function i(o){var s=o;return _e.uinteger(s.startLine)&&_e.uinteger(s.startLine)&&(_e.undefined(s.startCharacter)||_e.uinteger(s.startCharacter))&&(_e.undefined(s.endCharacter)||_e.uinteger(s.endCharacter))&&(_e.undefined(s.kind)||_e.string(s.kind))}t.is=i})(dp||(dp={}));var Xc;(function(t){function r(o,s){return{location:o,message:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&Tl.is(s.location)&&_e.string(s.message)}t.is=i})(Xc||(Xc={}));var $t;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})($t||($t={}));var pp;(function(t){t.Unnecessary=1,t.Deprecated=2})(pp||(pp={}));var hp;(function(t){function r(i){var o=i;return o!=null&&_e.string(o.href)}t.is=r})(hp||(hp={}));var oa;(function(t){function r(o,s,p,m,E,w){var A={range:o,message:s};return _e.defined(p)&&(A.severity=p),_e.defined(m)&&(A.code=m),_e.defined(E)&&(A.source=E),_e.defined(w)&&(A.relatedInformation=w),A}t.create=r;function i(o){var s,p=o;return _e.defined(p)&&lr.is(p.range)&&_e.string(p.message)&&(_e.number(p.severity)||_e.undefined(p.severity))&&(_e.integer(p.code)||_e.string(p.code)||_e.undefined(p.code))&&(_e.undefined(p.codeDescription)||_e.string((s=p.codeDescription)===null||s===void 0?void 0:s.href))&&(_e.string(p.source)||_e.undefined(p.source))&&(_e.undefined(p.relatedInformation)||_e.typedArray(p.relatedInformation,Xc.is))}t.is=i})(oa||(oa={}));var Il;(function(t){function r(o,s){for(var p=[],m=2;m<arguments.length;m++)p[m-2]=arguments[m];var E={title:o,command:s};return _e.defined(p)&&p.length>0&&(E.arguments=p),E}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.title)&&_e.string(s.command)}t.is=i})(Il||(Il={}));var vi;(function(t){function r(p,m){return{range:p,newText:m}}t.replace=r;function i(p,m){return{range:{start:p,end:p},newText:m}}t.insert=i;function o(p){return{range:p,newText:""}}t.del=o;function s(p){var m=p;return _e.objectLiteral(m)&&_e.string(m.newText)&&lr.is(m.range)}t.is=s})(vi||(vi={}));var us;(function(t){function r(o,s,p){var m={label:o};return s!==void 0&&(m.needsConfirmation=s),p!==void 0&&(m.description=p),m}t.create=r;function i(o){var s=o;return s!==void 0&&_e.objectLiteral(s)&&_e.string(s.label)&&(_e.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(_e.string(s.description)||s.description===void 0)}t.is=i})(us||(us={}));var wn;(function(t){function r(i){var o=i;return typeof o=="string"}t.is=r})(wn||(wn={}));var Ea;(function(t){function r(p,m,E){return{range:p,newText:m,annotationId:E}}t.replace=r;function i(p,m,E){return{range:{start:p,end:p},newText:m,annotationId:E}}t.insert=i;function o(p,m){return{range:p,newText:"",annotationId:m}}t.del=o;function s(p){var m=p;return vi.is(m)&&(us.is(m.annotationId)||wn.is(m.annotationId))}t.is=s})(Ea||(Ea={}));var yf;(function(t){function r(o,s){return{textDocument:o,edits:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&xf.is(s.textDocument)&&Array.isArray(s.edits)}t.is=i})(yf||(yf={}));var Fl;(function(t){function r(o,s,p){var m={kind:"create",uri:o};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(m.options=s),p!==void 0&&(m.annotationId=p),m}t.create=r;function i(o){var s=o;return s&&s.kind==="create"&&_e.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||_e.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||_e.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||wn.is(s.annotationId))}t.is=i})(Fl||(Fl={}));var kl;(function(t){function r(o,s,p,m){var E={kind:"rename",oldUri:o,newUri:s};return p!==void 0&&(p.overwrite!==void 0||p.ignoreIfExists!==void 0)&&(E.options=p),m!==void 0&&(E.annotationId=m),E}t.create=r;function i(o){var s=o;return s&&s.kind==="rename"&&_e.string(s.oldUri)&&_e.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||_e.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||_e.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||wn.is(s.annotationId))}t.is=i})(kl||(kl={}));var Rl;(function(t){function r(o,s,p){var m={kind:"delete",uri:o};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(m.options=s),p!==void 0&&(m.annotationId=p),m}t.create=r;function i(o){var s=o;return s&&s.kind==="delete"&&_e.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||_e.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||_e.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||wn.is(s.annotationId))}t.is=i})(Rl||(Rl={}));var Qc;(function(t){function r(i){var o=i;return o&&(o.changes!==void 0||o.documentChanges!==void 0)&&(o.documentChanges===void 0||o.documentChanges.every(function(s){return _e.string(s.kind)?Fl.is(s)||kl.is(s)||Rl.is(s):yf.is(s)}))}t.is=r})(Qc||(Qc={}));var mf=function(){function t(r,i){this.edits=r,this.changeAnnotations=i}return t.prototype.insert=function(r,i,o){var s,p;if(o===void 0?s=vi.insert(r,i):wn.is(o)?(p=o,s=Ea.insert(r,i,o)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(o),s=Ea.insert(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.replace=function(r,i,o){var s,p;if(o===void 0?s=vi.replace(r,i):wn.is(o)?(p=o,s=Ea.replace(r,i,o)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(o),s=Ea.replace(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.delete=function(r,i){var o,s;if(i===void 0?o=vi.del(r):wn.is(i)?(s=i,o=Ea.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),o=Ea.del(r,s)),this.edits.push(o),s!==void 0)return s},t.prototype.add=function(r){this.edits.push(r)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),vp=function(){function t(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(r,i){var o;if(wn.is(r)?o=r:(o=this.nextId(),i=r),this._annotations[o]!==void 0)throw new Error("Id "+o+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+o);return this._annotations[o]=i,this._size++,o},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),Hm=function(){function t(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new vp(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(o){if(yf.is(o)){var s=new mf(o.edits,i._changeAnnotations);i._textEditChanges[o.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(o){var s=new mf(r.changes[o]);i._textEditChanges[o]=s})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(r){if(xf.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:r.uri,version:r.version},o=this._textEditChanges[i.uri];if(!o){var s=[],p={textDocument:i,edits:s};this._workspaceEdit.documentChanges.push(p),o=new mf(s,this._changeAnnotations),this._textEditChanges[i.uri]=o}return o}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var o=this._textEditChanges[r];if(!o){var s=[];this._workspaceEdit.changes[r]=s,o=new mf(s),this._textEditChanges[r]=o}return o}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new vp,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(r,i,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;us.is(i)||wn.is(i)?s=i:o=i;var p,m;if(s===void 0?p=Fl.create(r,o):(m=wn.is(s)?s:this._changeAnnotations.manage(s),p=Fl.create(r,o,m)),this._workspaceEdit.documentChanges.push(p),m!==void 0)return m},t.prototype.renameFile=function(r,i,o,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var p;us.is(o)||wn.is(o)?p=o:s=o;var m,E;if(p===void 0?m=kl.create(r,i,s):(E=wn.is(p)?p:this._changeAnnotations.manage(p),m=kl.create(r,i,s,E)),this._workspaceEdit.documentChanges.push(m),E!==void 0)return E},t.prototype.deleteFile=function(r,i,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;us.is(i)||wn.is(i)?s=i:o=i;var p,m;if(s===void 0?p=Rl.create(r,o):(m=wn.is(s)?s:this._changeAnnotations.manage(s),p=Rl.create(r,o,m)),this._workspaceEdit.documentChanges.push(p),m!==void 0)return m},t}(),gp;(function(t){function r(o){return{uri:o}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.uri)}t.is=i})(gp||(gp={}));var yp;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.uri)&&_e.integer(s.version)}t.is=i})(yp||(yp={}));var xf;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.uri)&&(s.version===null||_e.integer(s.version))}t.is=i})(xf||(xf={}));var mp;(function(t){function r(o,s,p,m){return{uri:o,languageId:s,version:p,text:m}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.uri)&&_e.string(s.languageId)&&_e.integer(s.version)&&_e.string(s.text)}t.is=i})(mp||(mp={}));var sa;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(sa||(sa={})),function(t){function r(i){var o=i;return o===t.PlainText||o===t.Markdown}t.is=r}(sa||(sa={}));var Zc;(function(t){function r(i){var o=i;return _e.objectLiteral(i)&&sa.is(o.kind)&&_e.string(o.value)}t.is=r})(Zc||(Zc={}));var Jn;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(Jn||(Jn={}));var Zr;(function(t){t.PlainText=1,t.Snippet=2})(Zr||(Zr={}));var xp;(function(t){t.Deprecated=1})(xp||(xp={}));var bp;(function(t){function r(o,s,p){return{newText:o,insert:s,replace:p}}t.create=r;function i(o){var s=o;return s&&_e.string(s.newText)&&lr.is(s.insert)&&lr.is(s.replace)}t.is=i})(bp||(bp={}));var wp;(function(t){t.asIs=1,t.adjustIndentation=2})(wp||(wp={}));var _c;(function(t){function r(i){return{label:i}}t.create=r})(_c||(_c={}));var Sp;(function(t){function r(i,o){return{items:i||[],isIncomplete:!!o}}t.create=r})(Sp||(Sp={}));var bf;(function(t){function r(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function i(o){var s=o;return _e.string(s)||_e.objectLiteral(s)&&_e.string(s.language)&&_e.string(s.value)}t.is=i})(bf||(bf={}));var Ap;(function(t){function r(i){var o=i;return!!o&&_e.objectLiteral(o)&&(Zc.is(o.contents)||bf.is(o.contents)||_e.typedArray(o.contents,bf.is))&&(i.range===void 0||lr.is(i.range))}t.is=r})(Ap||(Ap={}));var Ep;(function(t){function r(i,o){return o?{label:i,documentation:o}:{label:i}}t.create=r})(Ep||(Ep={}));var Cp;(function(t){function r(i,o){for(var s=[],p=2;p<arguments.length;p++)s[p-2]=arguments[p];var m={label:i};return _e.defined(o)&&(m.documentation=o),_e.defined(s)?m.parameters=s:m.parameters=[],m}t.create=r})(Cp||(Cp={}));var Op;(function(t){t.Text=1,t.Read=2,t.Write=3})(Op||(Op={}));var Tp;(function(t){function r(i,o){var s={range:i};return _e.number(o)&&(s.kind=o),s}t.create=r})(Tp||(Tp={}));var Li;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Li||(Li={}));var Pp;(function(t){t.Deprecated=1})(Pp||(Pp={}));var Ip;(function(t){function r(i,o,s,p,m){var E={name:i,kind:o,location:{uri:p,range:s}};return m&&(E.containerName=m),E}t.create=r})(Ip||(Ip={}));var Fp;(function(t){function r(o,s,p,m,E,w){var A={name:o,detail:s,kind:p,range:m,selectionRange:E};return w!==void 0&&(A.children=w),A}t.create=r;function i(o){var s=o;return s&&_e.string(s.name)&&_e.number(s.kind)&&lr.is(s.range)&&lr.is(s.selectionRange)&&(s.detail===void 0||_e.string(s.detail))&&(s.deprecated===void 0||_e.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}t.is=i})(Fp||(Fp={}));var kp;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(kp||(kp={}));var Rp;(function(t){function r(o,s){var p={diagnostics:o};return s!=null&&(p.only=s),p}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.typedArray(s.diagnostics,oa.is)&&(s.only===void 0||_e.typedArray(s.only,_e.string))}t.is=i})(Rp||(Rp={}));var Mp;(function(t){function r(o,s,p){var m={title:o},E=!0;return typeof s=="string"?(E=!1,m.kind=s):Il.is(s)?m.command=s:m.edit=s,E&&p!==void 0&&(m.kind=p),m}t.create=r;function i(o){var s=o;return s&&_e.string(s.title)&&(s.diagnostics===void 0||_e.typedArray(s.diagnostics,oa.is))&&(s.kind===void 0||_e.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Il.is(s.command))&&(s.isPreferred===void 0||_e.boolean(s.isPreferred))&&(s.edit===void 0||Qc.is(s.edit))}t.is=i})(Mp||(Mp={}));var Lp;(function(t){function r(o,s){var p={range:o};return _e.defined(s)&&(p.data=s),p}t.create=r;function i(o){var s=o;return _e.defined(s)&&lr.is(s.range)&&(_e.undefined(s.command)||Il.is(s.command))}t.is=i})(Lp||(Lp={}));var Dp;(function(t){function r(o,s){return{tabSize:o,insertSpaces:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.uinteger(s.tabSize)&&_e.boolean(s.insertSpaces)}t.is=i})(Dp||(Dp={}));var Np;(function(t){function r(o,s,p){return{range:o,target:s,data:p}}t.create=r;function i(o){var s=o;return _e.defined(s)&&lr.is(s.range)&&(_e.undefined(s.target)||_e.string(s.target))}t.is=i})(Np||(Np={}));var wf;(function(t){function r(o,s){return{range:o,parent:s}}t.create=r;function i(o){var s=o;return s!==void 0&&lr.is(s.range)&&(s.parent===void 0||t.is(s.parent))}t.is=i})(wf||(wf={}));var zm=null,Bp;(function(t){function r(p,m,E,w){return new xg(p,m,E,w)}t.create=r;function i(p){var m=p;return!!(_e.defined(m)&&_e.string(m.uri)&&(_e.undefined(m.languageId)||_e.string(m.languageId))&&_e.uinteger(m.lineCount)&&_e.func(m.getText)&&_e.func(m.positionAt)&&_e.func(m.offsetAt))}t.is=i;function o(p,m){for(var E=p.getText(),w=s(m,function(fe,ye){var ge=fe.range.start.line-ye.range.start.line;return ge===0?fe.range.start.character-ye.range.start.character:ge}),A=E.length,k=w.length-1;k>=0;k--){var G=w[k],ne=p.offsetAt(G.range.start),te=p.offsetAt(G.range.end);if(te<=A)E=E.substring(0,ne)+G.newText+E.substring(te,E.length);else throw new Error("Overlapping edit");A=ne}return E}t.applyEdits=o;function s(p,m){if(p.length<=1)return p;var E=p.length/2|0,w=p.slice(0,E),A=p.slice(E);s(w,m),s(A,m);for(var k=0,G=0,ne=0;k<w.length&&G<A.length;){var te=m(w[k],A[G]);te<=0?p[ne++]=w[k++]:p[ne++]=A[G++]}for(;k<w.length;)p[ne++]=w[k++];for(;G<A.length;)p[ne++]=A[G++];return p}})(Bp||(Bp={}));var xg=function(){function t(r,i,o,s){this._uri=r,this._languageId=i,this._version=o,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),o=this.offsetAt(r.end);return this._content.substring(i,o)}return this._content},t.prototype.update=function(r,i){this._content=r.text,this._version=i,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],i=this._content,o=!0,s=0;s<i.length;s++){o&&(r.push(s),o=!1);var p=i.charAt(s);o=p==="\r"||p===`
|
|
372
|
+
`}function ip(t,r){return`\r
|
|
373
|
+
`.indexOf(t.charAt(r))!==-1}var Ol;(function(t){t.DEFAULT={allowTrailingComma:!1}})(Ol||(Ol={}));function ag(t,r){var i=[],a=new Object,s=void 0,p={value:{},offset:0,length:0,type:"object",parent:void 0},y=!1;function E(w,A,k,G){p.value=w,p.offset=A,p.length=k,p.type=G,p.colonOffset=void 0,s=p}try{vf(t,{onObjectBegin:function(w,A){if(r<=w)throw a;s=void 0,y=r>w,i.push("")},onObjectProperty:function(w,A,k){if(r<A||(E(w,A,k,"property"),i[i.length-1]=w,r<=A+k))throw a},onObjectEnd:function(w,A){if(r<=w)throw a;s=void 0,i.pop()},onArrayBegin:function(w,A){if(r<=w)throw a;s=void 0,i.push(0)},onArrayEnd:function(w,A){if(r<=w)throw a;s=void 0,i.pop()},onLiteralValue:function(w,A,k){if(r<A||(E(w,A,k,sp(w)),r<=A+k))throw a},onSeparator:function(w,A,k){if(r<=A)throw a;if(w===":"&&s&&s.type==="property")s.colonOffset=A,y=!1,s=void 0;else if(w===","){var G=i[i.length-1];typeof G=="number"?i[i.length-1]=G+1:(y=!0,i[i.length-1]=""),s=void 0}}})}catch(w){if(w!==a)throw w}return{path:i,previousNode:s,isAtPropertyKey:y,matches:function(w){for(var A=0,k=0;A<w.length&&k<i.length;k++)if(w[A]===i[k]||w[A]==="*")A++;else if(w[A]!=="**")return!1;return A===w.length}}}function sg(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=Ol.DEFAULT);var a=null,s=[],p=[];function y(w){Array.isArray(s)?s.push(w):a!==null&&(s[a]=w)}var E={onObjectBegin:function(){var w={};y(w),p.push(s),s=w,a=null},onObjectProperty:function(w){a=w},onObjectEnd:function(){s=p.pop()},onArrayBegin:function(){var w=[];y(w),p.push(s),s=w,a=null},onArrayEnd:function(){s=p.pop()},onLiteralValue:y,onError:function(w,A,k){r.push({error:w,offset:A,length:k})}};return vf(t,E,i),s[0]}function lg(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=Ol.DEFAULT);var a={type:"array",offset:-1,length:-1,children:[],parent:void 0};function s(w){a.type==="property"&&(a.length=w-a.offset,a=a.parent)}function p(w){return a.children.push(w),w}var y={onObjectBegin:function(w){a=p({type:"object",offset:w,length:-1,parent:a,children:[]})},onObjectProperty:function(w,A,k){a=p({type:"property",offset:A,length:-1,parent:a,children:[]}),a.children.push({type:"string",value:w,offset:A,length:k,parent:a})},onObjectEnd:function(w,A){s(w+A),a.length=w+A-a.offset,a=a.parent,s(w+A)},onArrayBegin:function(w,A){a=p({type:"array",offset:w,length:-1,parent:a,children:[]})},onArrayEnd:function(w,A){a.length=w+A-a.offset,a=a.parent,s(w+A)},onLiteralValue:function(w,A,k){p({type:sp(w),offset:A,length:k,parent:a,value:w}),s(A+k)},onSeparator:function(w,A,k){a.type==="property"&&(w===":"?a.colonOffset=A:w===","&&s(A))},onError:function(w,A,k){r.push({error:w,offset:A,length:k})}};vf(t,y,i);var E=a.children[0];return E&&delete E.parent,E}function ug(t,r){if(!!t){for(var i=t,a=0,s=r;a<s.length;a++){var p=s[a];if(typeof p=="string"){if(i.type!=="object"||!Array.isArray(i.children))return;for(var y=!1,E=0,w=i.children;E<w.length;E++){var A=w[E];if(Array.isArray(A.children)&&A.children[0].value===p){i=A.children[1],y=!0;break}}if(!y)return}else{var k=p;if(i.type!=="array"||k<0||!Array.isArray(i.children)||k>=i.children.length)return;i=i.children[k]}}return i}}function op(t){if(!t.parent||!t.parent.children)return[];var r=op(t.parent);if(t.parent.type==="property"){var i=t.parent.children[0].value;r.push(i)}else if(t.parent.type==="array"){var a=t.parent.children.indexOf(t);a!==-1&&r.push(a)}return r}function Yc(t){switch(t.type){case"array":return t.children.map(Yc);case"object":for(var r=Object.create(null),i=0,a=t.children;i<a.length;i++){var s=a[i],p=s.children[1];p&&(r[s.children[0].value]=Yc(p))}return r;case"null":case"string":case"number":case"boolean":return t.value;default:return}}function fg(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}function ap(t,r,i){if(i===void 0&&(i=!1),fg(t,r,i)){var a=t.children;if(Array.isArray(a))for(var s=0;s<a.length&&a[s].offset<=r;s++){var p=ap(a[s],r,i);if(p)return p}return t}}function vf(t,r,i){i===void 0&&(i=Ol.DEFAULT);var a=hf(t,!1);function s(We){return We?function(){return We(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}function p(We){return We?function(Je){return We(Je,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}var y=s(r.onObjectBegin),E=p(r.onObjectProperty),w=s(r.onObjectEnd),A=s(r.onArrayBegin),k=s(r.onArrayEnd),G=p(r.onLiteralValue),ne=p(r.onSeparator),re=s(r.onComment),se=p(r.onError),ye=i&&i.disallowComments,ge=i&&i.allowTrailingComma;function Ee(){for(;;){var We=a.scan();switch(a.getTokenError()){case 4:me(14);break;case 5:me(15);break;case 3:me(13);break;case 1:ye||me(11);break;case 2:me(12);break;case 6:me(16);break}switch(We){case 12:case 13:ye?me(10):re();break;case 16:me(1);break;case 15:case 14:break;default:return We}}}function me(We,Je,ze){if(Je===void 0&&(Je=[]),ze===void 0&&(ze=[]),se(We),Je.length+ze.length>0)for(var et=a.getToken();et!==17;){if(Je.indexOf(et)!==-1){Ee();break}else if(ze.indexOf(et)!==-1)break;et=Ee()}}function Pe(We){var Je=a.getTokenValue();return We?G(Je):E(Je),Ee(),!0}function Ge(){switch(a.getToken()){case 11:var We=a.getTokenValue(),Je=Number(We);isNaN(Je)&&(me(2),Je=0),G(Je);break;case 7:G(null);break;case 8:G(!0);break;case 9:G(!1);break;default:return!1}return Ee(),!0}function je(){return a.getToken()!==10?(me(3,[],[2,5]),!1):(Pe(!1),a.getToken()===6?(ne(":"),Ee(),Ve()||me(4,[],[2,5])):me(5,[],[2,5]),!0)}function He(){y(),Ee();for(var We=!1;a.getToken()!==2&&a.getToken()!==17;){if(a.getToken()===5){if(We||me(4,[],[]),ne(","),Ee(),a.getToken()===2&&ge)break}else We&&me(6,[],[]);je()||me(4,[],[2,5]),We=!0}return w(),a.getToken()!==2?me(7,[2],[]):Ee(),!0}function Ne(){A(),Ee();for(var We=!1;a.getToken()!==4&&a.getToken()!==17;){if(a.getToken()===5){if(We||me(4,[],[]),ne(","),Ee(),a.getToken()===4&&ge)break}else We&&me(6,[],[]);Ve()||me(4,[],[4,5]),We=!0}return k(),a.getToken()!==4?me(8,[4],[]):Ee(),!0}function Ve(){switch(a.getToken()){case 3:return Ne();case 1:return He();case 10:return Pe(!0);default:return Ge()}}return Ee(),a.getToken()===17?i.allowEmptyContent?!0:(me(4,[],[]),!1):Ve()?(a.getToken()!==17&&me(9,[],[]),!0):(me(4,[],[]),!1)}function cg(t,r){var i=hf(t),a=[],s,p=0,y;do switch(y=i.getPosition(),s=i.scan(),s){case 12:case 13:case 17:p!==y&&a.push(t.substring(p,y)),r!==void 0&&a.push(i.getTokenValue().replace(/[^\r\n]/g,r)),p=i.getPosition();break}while(s!==17);return a.join("")}function sp(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(t){if(Array.isArray(t))return"array"}else return"null";return"object"}default:return"null"}}function Mm(t,r,i){return dg(t,r,void 0,i)}function dg(t,r,i,a){for(var s,p=r.slice(),y=[],E=parseTree(t,y),w=void 0,A=void 0;p.length>0&&(A=p.pop(),w=findNodeAtLocation(E,p),w===void 0&&i!==void 0);)typeof A=="string"?i=(s={},s[A]=i,s):i=[i];if(w)if(w.type==="object"&&typeof A=="string"&&Array.isArray(w.children)){var k=findNodeAtLocation(w,[A]);if(k!==void 0)if(i===void 0){if(!k.parent)throw new Error("Malformed AST");var G=w.children.indexOf(k.parent),ne=void 0,re=k.parent.offset+k.parent.length;if(G>0){var se=w.children[G-1];ne=se.offset+se.length}else if(ne=w.offset+1,w.children.length>1){var ye=w.children[1];re=ye.offset}return ca(t,{offset:ne,length:re-ne,content:""},a)}else return ca(t,{offset:k.offset,length:k.length,content:JSON.stringify(i)},a);else{if(i===void 0)return[];var ge=JSON.stringify(A)+": "+JSON.stringify(i),Ee=a.getInsertionIndex?a.getInsertionIndex(w.children.map(function(We){return We.children[0].value})):w.children.length,me=void 0;if(Ee>0){var se=w.children[Ee-1];me={offset:se.offset+se.length,length:0,content:","+ge}}else w.children.length===0?me={offset:w.offset+1,length:0,content:ge}:me={offset:w.offset+1,length:0,content:ge+","};return ca(t,me,a)}}else if(w.type==="array"&&typeof A=="number"&&Array.isArray(w.children)){var Pe=A;if(Pe===-1){var ge=""+JSON.stringify(i),me=void 0;if(w.children.length===0)me={offset:w.offset+1,length:0,content:ge};else{var se=w.children[w.children.length-1];me={offset:se.offset+se.length,length:0,content:","+ge}}return ca(t,me,a)}else if(i===void 0&&w.children.length>=0){var Ge=A,je=w.children[Ge],me=void 0;if(w.children.length===1)me={offset:w.offset+1,length:w.length-2,content:""};else if(w.children.length-1===Ge){var se=w.children[Ge-1],He=se.offset+se.length,Ne=w.offset+w.length;me={offset:He,length:Ne-2-He,content:""}}else me={offset:je.offset,length:w.children[Ge+1].offset-je.offset,content:""};return ca(t,me,a)}else if(i!==void 0){var me=void 0,ge=""+JSON.stringify(i);if(!a.isArrayInsertion&&w.children.length>A){var Ve=w.children[A];me={offset:Ve.offset,length:Ve.length,content:ge}}else if(w.children.length===0||A===0)me={offset:w.offset+1,length:0,content:w.children.length===0?ge:ge+","};else{var Ee=A>w.children.length?w.children.length:A,se=w.children[Ee-1];me={offset:se.offset+se.length,length:0,content:","+ge}}return ca(t,me,a)}else throw new Error("Can not "+(i===void 0?"remove":a.isArrayInsertion?"insert":"modify")+" Array index "+Pe+" as length is not sufficient")}else throw new Error("Can not add "+(typeof A!="number"?"index":"property")+" to parent of type "+w.type);else{if(i===void 0)throw new Error("Can not delete in empty document");return ca(t,{offset:E?E.offset:0,length:E?E.length:0,content:JSON.stringify(i)},a)}}function ca(t,r,i){if(!i.formattingOptions)return[r];var a=lp(t,r),s=r.offset,p=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(a,s-1);)s--;for(;p<a.length&&!isEOL(a,p);)p++}for(var y=format(a,{offset:s,length:p-s},i.formattingOptions),E=y.length-1;E>=0;E--){var w=y[E];a=lp(a,w),s=Math.min(s,w.offset),p=Math.max(p,w.offset+w.length),p+=w.content.length-w.length}var A=t.length-(a.length-p)-s;return[{offset:s,length:A,content:a.substring(s,p)}]}function lp(t,r){return t.substring(0,r.offset)+r.content+t.substring(r.offset+r.length)}function Rm(t,r){return`\r
|
|
374
|
+
`.indexOf(t.charAt(r))!==-1}var ls=hf,Lm=ag,pg=sg,Dm=lg,Nm=ug,hg=ap,vg=op,gg=Yc,Bm=vf,Um=cg;function jm(t){switch(t){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function yg(t,r,i){return ng(t,r,i)}function Vm(t,r,i,a){return edit.setProperty(t,r,i,a)}function Wm(t,r){for(var i=r.length-1;i>=0;i--)t=edit.applyEdit(t,r[i]);return t}function Tl(t,r){if(t===r)return!0;if(t==null||r===null||r===void 0||typeof t!=typeof r||typeof t!="object"||Array.isArray(t)!==Array.isArray(r))return!1;var i,a;if(Array.isArray(t)){if(t.length!==r.length)return!1;for(i=0;i<t.length;i++)if(!Tl(t[i],r[i]))return!1}else{var s=[];for(a in t)s.push(a);s.sort();var p=[];for(a in r)p.push(a);if(p.sort(),!Tl(s,p))return!1;for(i=0;i<s.length;i++)if(!Tl(t[s[i]],r[s[i]]))return!1}return!0}function Yn(t){return typeof t=="number"}function oo(t){return typeof t!="undefined"}function Ri(t){return typeof t=="boolean"}function mg(t){return typeof t=="string"}var up;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(up||(up={}));var gf;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(gf||(gf={}));var hi;(function(t){function r(a,s){return a===Number.MAX_VALUE&&(a=gf.MAX_VALUE),s===Number.MAX_VALUE&&(s=gf.MAX_VALUE),{line:a,character:s}}t.create=r;function i(a){var s=a;return _e.objectLiteral(s)&&_e.uinteger(s.line)&&_e.uinteger(s.character)}t.is=i})(hi||(hi={}));var lr;(function(t){function r(a,s,p,y){if(_e.uinteger(a)&&_e.uinteger(s)&&_e.uinteger(p)&&_e.uinteger(y))return{start:hi.create(a,s),end:hi.create(p,y)};if(hi.is(a)&&hi.is(s))return{start:a,end:s};throw new Error("Range#create called with invalid arguments["+a+", "+s+", "+p+", "+y+"]")}t.create=r;function i(a){var s=a;return _e.objectLiteral(s)&&hi.is(s.start)&&hi.is(s.end)}t.is=i})(lr||(lr={}));var Pl;(function(t){function r(a,s){return{uri:a,range:s}}t.create=r;function i(a){var s=a;return _e.defined(s)&&lr.is(s.range)&&(_e.string(s.uri)||_e.undefined(s.uri))}t.is=i})(Pl||(Pl={}));var fp;(function(t){function r(a,s,p,y){return{targetUri:a,targetRange:s,targetSelectionRange:p,originSelectionRange:y}}t.create=r;function i(a){var s=a;return _e.defined(s)&&lr.is(s.targetRange)&&_e.string(s.targetUri)&&(lr.is(s.targetSelectionRange)||_e.undefined(s.targetSelectionRange))&&(lr.is(s.originSelectionRange)||_e.undefined(s.originSelectionRange))}t.is=i})(fp||(fp={}));var Jc;(function(t){function r(a,s,p,y){return{red:a,green:s,blue:p,alpha:y}}t.create=r;function i(a){var s=a;return _e.numberRange(s.red,0,1)&&_e.numberRange(s.green,0,1)&&_e.numberRange(s.blue,0,1)&&_e.numberRange(s.alpha,0,1)}t.is=i})(Jc||(Jc={}));var cp;(function(t){function r(a,s){return{range:a,color:s}}t.create=r;function i(a){var s=a;return lr.is(s.range)&&Jc.is(s.color)}t.is=i})(cp||(cp={}));var dp;(function(t){function r(a,s,p){return{label:a,textEdit:s,additionalTextEdits:p}}t.create=r;function i(a){var s=a;return _e.string(s.label)&&(_e.undefined(s.textEdit)||vi.is(s))&&(_e.undefined(s.additionalTextEdits)||_e.typedArray(s.additionalTextEdits,vi.is))}t.is=i})(dp||(dp={}));var Il;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Il||(Il={}));var pp;(function(t){function r(a,s,p,y,E){var w={startLine:a,endLine:s};return _e.defined(p)&&(w.startCharacter=p),_e.defined(y)&&(w.endCharacter=y),_e.defined(E)&&(w.kind=E),w}t.create=r;function i(a){var s=a;return _e.uinteger(s.startLine)&&_e.uinteger(s.startLine)&&(_e.undefined(s.startCharacter)||_e.uinteger(s.startCharacter))&&(_e.undefined(s.endCharacter)||_e.uinteger(s.endCharacter))&&(_e.undefined(s.kind)||_e.string(s.kind))}t.is=i})(pp||(pp={}));var Xc;(function(t){function r(a,s){return{location:a,message:s}}t.create=r;function i(a){var s=a;return _e.defined(s)&&Pl.is(s.location)&&_e.string(s.message)}t.is=i})(Xc||(Xc={}));var $t;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})($t||($t={}));var hp;(function(t){t.Unnecessary=1,t.Deprecated=2})(hp||(hp={}));var vp;(function(t){function r(i){var a=i;return a!=null&&_e.string(a.href)}t.is=r})(vp||(vp={}));var ao;(function(t){function r(a,s,p,y,E,w){var A={range:a,message:s};return _e.defined(p)&&(A.severity=p),_e.defined(y)&&(A.code=y),_e.defined(E)&&(A.source=E),_e.defined(w)&&(A.relatedInformation=w),A}t.create=r;function i(a){var s,p=a;return _e.defined(p)&&lr.is(p.range)&&_e.string(p.message)&&(_e.number(p.severity)||_e.undefined(p.severity))&&(_e.integer(p.code)||_e.string(p.code)||_e.undefined(p.code))&&(_e.undefined(p.codeDescription)||_e.string((s=p.codeDescription)===null||s===void 0?void 0:s.href))&&(_e.string(p.source)||_e.undefined(p.source))&&(_e.undefined(p.relatedInformation)||_e.typedArray(p.relatedInformation,Xc.is))}t.is=i})(ao||(ao={}));var Fl;(function(t){function r(a,s){for(var p=[],y=2;y<arguments.length;y++)p[y-2]=arguments[y];var E={title:a,command:s};return _e.defined(p)&&p.length>0&&(E.arguments=p),E}t.create=r;function i(a){var s=a;return _e.defined(s)&&_e.string(s.title)&&_e.string(s.command)}t.is=i})(Fl||(Fl={}));var vi;(function(t){function r(p,y){return{range:p,newText:y}}t.replace=r;function i(p,y){return{range:{start:p,end:p},newText:y}}t.insert=i;function a(p){return{range:p,newText:""}}t.del=a;function s(p){var y=p;return _e.objectLiteral(y)&&_e.string(y.newText)&&lr.is(y.range)}t.is=s})(vi||(vi={}));var us;(function(t){function r(a,s,p){var y={label:a};return s!==void 0&&(y.needsConfirmation=s),p!==void 0&&(y.description=p),y}t.create=r;function i(a){var s=a;return s!==void 0&&_e.objectLiteral(s)&&_e.string(s.label)&&(_e.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(_e.string(s.description)||s.description===void 0)}t.is=i})(us||(us={}));var wn;(function(t){function r(i){var a=i;return typeof a=="string"}t.is=r})(wn||(wn={}));var Co;(function(t){function r(p,y,E){return{range:p,newText:y,annotationId:E}}t.replace=r;function i(p,y,E){return{range:{start:p,end:p},newText:y,annotationId:E}}t.insert=i;function a(p,y){return{range:p,newText:"",annotationId:y}}t.del=a;function s(p){var y=p;return vi.is(y)&&(us.is(y.annotationId)||wn.is(y.annotationId))}t.is=s})(Co||(Co={}));var yf;(function(t){function r(a,s){return{textDocument:a,edits:s}}t.create=r;function i(a){var s=a;return _e.defined(s)&&xf.is(s.textDocument)&&Array.isArray(s.edits)}t.is=i})(yf||(yf={}));var kl;(function(t){function r(a,s,p){var y={kind:"create",uri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(y.options=s),p!==void 0&&(y.annotationId=p),y}t.create=r;function i(a){var s=a;return s&&s.kind==="create"&&_e.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||_e.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||_e.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||wn.is(s.annotationId))}t.is=i})(kl||(kl={}));var Ml;(function(t){function r(a,s,p,y){var E={kind:"rename",oldUri:a,newUri:s};return p!==void 0&&(p.overwrite!==void 0||p.ignoreIfExists!==void 0)&&(E.options=p),y!==void 0&&(E.annotationId=y),E}t.create=r;function i(a){var s=a;return s&&s.kind==="rename"&&_e.string(s.oldUri)&&_e.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||_e.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||_e.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||wn.is(s.annotationId))}t.is=i})(Ml||(Ml={}));var Rl;(function(t){function r(a,s,p){var y={kind:"delete",uri:a};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(y.options=s),p!==void 0&&(y.annotationId=p),y}t.create=r;function i(a){var s=a;return s&&s.kind==="delete"&&_e.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||_e.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||_e.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||wn.is(s.annotationId))}t.is=i})(Rl||(Rl={}));var Qc;(function(t){function r(i){var a=i;return a&&(a.changes!==void 0||a.documentChanges!==void 0)&&(a.documentChanges===void 0||a.documentChanges.every(function(s){return _e.string(s.kind)?kl.is(s)||Ml.is(s)||Rl.is(s):yf.is(s)}))}t.is=r})(Qc||(Qc={}));var mf=function(){function t(r,i){this.edits=r,this.changeAnnotations=i}return t.prototype.insert=function(r,i,a){var s,p;if(a===void 0?s=vi.insert(r,i):wn.is(a)?(p=a,s=Co.insert(r,i,a)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(a),s=Co.insert(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.replace=function(r,i,a){var s,p;if(a===void 0?s=vi.replace(r,i):wn.is(a)?(p=a,s=Co.replace(r,i,a)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(a),s=Co.replace(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.delete=function(r,i){var a,s;if(i===void 0?a=vi.del(r):wn.is(i)?(s=i,a=Co.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),a=Co.del(r,s)),this.edits.push(a),s!==void 0)return s},t.prototype.add=function(r){this.edits.push(r)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),gp=function(){function t(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(r,i){var a;if(wn.is(r)?a=r:(a=this.nextId(),i=r),this._annotations[a]!==void 0)throw new Error("Id "+a+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+a);return this._annotations[a]=i,this._size++,a},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),Hm=function(){function t(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new gp(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(a){if(yf.is(a)){var s=new mf(a.edits,i._changeAnnotations);i._textEditChanges[a.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(a){var s=new mf(r.changes[a]);i._textEditChanges[a]=s})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(r){if(xf.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:r.uri,version:r.version},a=this._textEditChanges[i.uri];if(!a){var s=[],p={textDocument:i,edits:s};this._workspaceEdit.documentChanges.push(p),a=new mf(s,this._changeAnnotations),this._textEditChanges[i.uri]=a}return a}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var a=this._textEditChanges[r];if(!a){var s=[];this._workspaceEdit.changes[r]=s,a=new mf(s),this._textEditChanges[r]=a}return a}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new gp,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(r,i,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;us.is(i)||wn.is(i)?s=i:a=i;var p,y;if(s===void 0?p=kl.create(r,a):(y=wn.is(s)?s:this._changeAnnotations.manage(s),p=kl.create(r,a,y)),this._workspaceEdit.documentChanges.push(p),y!==void 0)return y},t.prototype.renameFile=function(r,i,a,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var p;us.is(a)||wn.is(a)?p=a:s=a;var y,E;if(p===void 0?y=Ml.create(r,i,s):(E=wn.is(p)?p:this._changeAnnotations.manage(p),y=Ml.create(r,i,s,E)),this._workspaceEdit.documentChanges.push(y),E!==void 0)return E},t.prototype.deleteFile=function(r,i,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;us.is(i)||wn.is(i)?s=i:a=i;var p,y;if(s===void 0?p=Rl.create(r,a):(y=wn.is(s)?s:this._changeAnnotations.manage(s),p=Rl.create(r,a,y)),this._workspaceEdit.documentChanges.push(p),y!==void 0)return y},t}(),yp;(function(t){function r(a){return{uri:a}}t.create=r;function i(a){var s=a;return _e.defined(s)&&_e.string(s.uri)}t.is=i})(yp||(yp={}));var mp;(function(t){function r(a,s){return{uri:a,version:s}}t.create=r;function i(a){var s=a;return _e.defined(s)&&_e.string(s.uri)&&_e.integer(s.version)}t.is=i})(mp||(mp={}));var xf;(function(t){function r(a,s){return{uri:a,version:s}}t.create=r;function i(a){var s=a;return _e.defined(s)&&_e.string(s.uri)&&(s.version===null||_e.integer(s.version))}t.is=i})(xf||(xf={}));var xp;(function(t){function r(a,s,p,y){return{uri:a,languageId:s,version:p,text:y}}t.create=r;function i(a){var s=a;return _e.defined(s)&&_e.string(s.uri)&&_e.string(s.languageId)&&_e.integer(s.version)&&_e.string(s.text)}t.is=i})(xp||(xp={}));var so;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(so||(so={})),function(t){function r(i){var a=i;return a===t.PlainText||a===t.Markdown}t.is=r}(so||(so={}));var Zc;(function(t){function r(i){var a=i;return _e.objectLiteral(i)&&so.is(a.kind)&&_e.string(a.value)}t.is=r})(Zc||(Zc={}));var Jn;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(Jn||(Jn={}));var Zr;(function(t){t.PlainText=1,t.Snippet=2})(Zr||(Zr={}));var bp;(function(t){t.Deprecated=1})(bp||(bp={}));var wp;(function(t){function r(a,s,p){return{newText:a,insert:s,replace:p}}t.create=r;function i(a){var s=a;return s&&_e.string(s.newText)&&lr.is(s.insert)&&lr.is(s.replace)}t.is=i})(wp||(wp={}));var Sp;(function(t){t.asIs=1,t.adjustIndentation=2})(Sp||(Sp={}));var _c;(function(t){function r(i){return{label:i}}t.create=r})(_c||(_c={}));var Ap;(function(t){function r(i,a){return{items:i||[],isIncomplete:!!a}}t.create=r})(Ap||(Ap={}));var bf;(function(t){function r(a){return a.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function i(a){var s=a;return _e.string(s)||_e.objectLiteral(s)&&_e.string(s.language)&&_e.string(s.value)}t.is=i})(bf||(bf={}));var Ep;(function(t){function r(i){var a=i;return!!a&&_e.objectLiteral(a)&&(Zc.is(a.contents)||bf.is(a.contents)||_e.typedArray(a.contents,bf.is))&&(i.range===void 0||lr.is(i.range))}t.is=r})(Ep||(Ep={}));var Cp;(function(t){function r(i,a){return a?{label:i,documentation:a}:{label:i}}t.create=r})(Cp||(Cp={}));var Op;(function(t){function r(i,a){for(var s=[],p=2;p<arguments.length;p++)s[p-2]=arguments[p];var y={label:i};return _e.defined(a)&&(y.documentation=a),_e.defined(s)?y.parameters=s:y.parameters=[],y}t.create=r})(Op||(Op={}));var Tp;(function(t){t.Text=1,t.Read=2,t.Write=3})(Tp||(Tp={}));var Pp;(function(t){function r(i,a){var s={range:i};return _e.number(a)&&(s.kind=a),s}t.create=r})(Pp||(Pp={}));var Li;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Li||(Li={}));var Ip;(function(t){t.Deprecated=1})(Ip||(Ip={}));var Fp;(function(t){function r(i,a,s,p,y){var E={name:i,kind:a,location:{uri:p,range:s}};return y&&(E.containerName=y),E}t.create=r})(Fp||(Fp={}));var kp;(function(t){function r(a,s,p,y,E,w){var A={name:a,detail:s,kind:p,range:y,selectionRange:E};return w!==void 0&&(A.children=w),A}t.create=r;function i(a){var s=a;return s&&_e.string(s.name)&&_e.number(s.kind)&&lr.is(s.range)&&lr.is(s.selectionRange)&&(s.detail===void 0||_e.string(s.detail))&&(s.deprecated===void 0||_e.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}t.is=i})(kp||(kp={}));var Mp;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(Mp||(Mp={}));var Rp;(function(t){function r(a,s){var p={diagnostics:a};return s!=null&&(p.only=s),p}t.create=r;function i(a){var s=a;return _e.defined(s)&&_e.typedArray(s.diagnostics,ao.is)&&(s.only===void 0||_e.typedArray(s.only,_e.string))}t.is=i})(Rp||(Rp={}));var Lp;(function(t){function r(a,s,p){var y={title:a},E=!0;return typeof s=="string"?(E=!1,y.kind=s):Fl.is(s)?y.command=s:y.edit=s,E&&p!==void 0&&(y.kind=p),y}t.create=r;function i(a){var s=a;return s&&_e.string(s.title)&&(s.diagnostics===void 0||_e.typedArray(s.diagnostics,ao.is))&&(s.kind===void 0||_e.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Fl.is(s.command))&&(s.isPreferred===void 0||_e.boolean(s.isPreferred))&&(s.edit===void 0||Qc.is(s.edit))}t.is=i})(Lp||(Lp={}));var Dp;(function(t){function r(a,s){var p={range:a};return _e.defined(s)&&(p.data=s),p}t.create=r;function i(a){var s=a;return _e.defined(s)&&lr.is(s.range)&&(_e.undefined(s.command)||Fl.is(s.command))}t.is=i})(Dp||(Dp={}));var Np;(function(t){function r(a,s){return{tabSize:a,insertSpaces:s}}t.create=r;function i(a){var s=a;return _e.defined(s)&&_e.uinteger(s.tabSize)&&_e.boolean(s.insertSpaces)}t.is=i})(Np||(Np={}));var Bp;(function(t){function r(a,s,p){return{range:a,target:s,data:p}}t.create=r;function i(a){var s=a;return _e.defined(s)&&lr.is(s.range)&&(_e.undefined(s.target)||_e.string(s.target))}t.is=i})(Bp||(Bp={}));var wf;(function(t){function r(a,s){return{range:a,parent:s}}t.create=r;function i(a){var s=a;return s!==void 0&&lr.is(s.range)&&(s.parent===void 0||t.is(s.parent))}t.is=i})(wf||(wf={}));var zm=null,Up;(function(t){function r(p,y,E,w){return new xg(p,y,E,w)}t.create=r;function i(p){var y=p;return!!(_e.defined(y)&&_e.string(y.uri)&&(_e.undefined(y.languageId)||_e.string(y.languageId))&&_e.uinteger(y.lineCount)&&_e.func(y.getText)&&_e.func(y.positionAt)&&_e.func(y.offsetAt))}t.is=i;function a(p,y){for(var E=p.getText(),w=s(y,function(se,ye){var ge=se.range.start.line-ye.range.start.line;return ge===0?se.range.start.character-ye.range.start.character:ge}),A=E.length,k=w.length-1;k>=0;k--){var G=w[k],ne=p.offsetAt(G.range.start),re=p.offsetAt(G.range.end);if(re<=A)E=E.substring(0,ne)+G.newText+E.substring(re,E.length);else throw new Error("Overlapping edit");A=ne}return E}t.applyEdits=a;function s(p,y){if(p.length<=1)return p;var E=p.length/2|0,w=p.slice(0,E),A=p.slice(E);s(w,y),s(A,y);for(var k=0,G=0,ne=0;k<w.length&&G<A.length;){var re=y(w[k],A[G]);re<=0?p[ne++]=w[k++]:p[ne++]=A[G++]}for(;k<w.length;)p[ne++]=w[k++];for(;G<A.length;)p[ne++]=A[G++];return p}})(Up||(Up={}));var xg=function(){function t(r,i,a,s){this._uri=r,this._languageId=i,this._version=a,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(i,a)}return this._content},t.prototype.update=function(r,i){this._content=r.text,this._version=i,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],i=this._content,a=!0,s=0;s<i.length;s++){a&&(r.push(s),a=!1);var p=i.charAt(s);a=p==="\r"||p===`
|
|
375
375
|
`,p==="\r"&&s+1<i.length&&i.charAt(s+1)===`
|
|
376
|
-
`&&s++}o&&i.length>0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),o=0,s=i.length;if(s===0)return hi.create(0,r);for(;o<s;){var p=Math.floor((o+s)/2);i[p]>r?s=p:o=p+1}var m=o-1;return hi.create(m,r-i[m])},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var o=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(o+r.character,s),o)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),_e;(function(t){var r=Object.prototype.toString;function i(te){return typeof te!="undefined"}t.defined=i;function o(te){return typeof te=="undefined"}t.undefined=o;function s(te){return te===!0||te===!1}t.boolean=s;function p(te){return r.call(te)==="[object String]"}t.string=p;function m(te){return r.call(te)==="[object Number]"}t.number=m;function E(te,fe,ye){return r.call(te)==="[object Number]"&&fe<=te&&te<=ye}t.numberRange=E;function w(te){return r.call(te)==="[object Number]"&&-2147483648<=te&&te<=2147483647}t.integer=w;function A(te){return r.call(te)==="[object Number]"&&0<=te&&te<=2147483647}t.uinteger=A;function k(te){return r.call(te)==="[object Function]"}t.func=k;function G(te){return te!==null&&typeof te=="object"}t.objectLiteral=G;function ne(te,fe){return Array.isArray(te)&&te.every(fe)}t.typedArray=ne})(_e||(_e={}));var Up=function(){function t(r,i,o,s){this._uri=r,this._languageId=i,this._version=o,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),o=this.offsetAt(r.end);return this._content.substring(i,o)}return this._content},t.prototype.update=function(r,i){for(var o=0,s=r;o<s.length;o++){var p=s[o];if(t.isIncremental(p)){var m=Vp(p.range),E=this.offsetAt(m.start),w=this.offsetAt(m.end);this._content=this._content.substring(0,E)+p.text+this._content.substring(w,this._content.length);var A=Math.max(m.start.line,0),k=Math.max(m.end.line,0),G=this._lineOffsets,ne=jp(p.text,!1,E);if(k-A===ne.length)for(var te=0,fe=ne.length;te<fe;te++)G[te+A+1]=ne[te];else ne.length<1e4?G.splice.apply(G,[A+1,k-A].concat(ne)):this._lineOffsets=G=G.slice(0,A+1).concat(ne,G.slice(k+1));var ye=p.text.length-(w-E);if(ye!==0)for(var te=A+1+ne.length,fe=G.length;te<fe;te++)G[te]=G[te]+ye}else if(t.isFull(p))this._content=p.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=i},t.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=jp(this._content,!0)),this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),o=0,s=i.length;if(s===0)return{line:0,character:r};for(;o<s;){var p=Math.floor((o+s)/2);i[p]>r?s=p:o=p+1}var m=o-1;return{line:m,character:r-i[m]}},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var o=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(o+r.character,s),o)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),t.isIncremental=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")},t.isFull=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0},t}(),Sf;(function(t){function r(s,p,m,E){return new Up(s,p,m,E)}t.create=r;function i(s,p,m){if(s instanceof Up)return s.update(p,m),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function o(s,p){for(var m=s.getText(),E=qc(p.map(bg),function(fe,ye){var ge=fe.range.start.line-ye.range.start.line;return ge===0?fe.range.start.character-ye.range.start.character:ge}),w=0,A=[],k=0,G=E;k<G.length;k++){var ne=G[k],te=s.offsetAt(ne.range.start);if(te<w)throw new Error("Overlapping edit");te>w&&A.push(m.substring(w,te)),ne.newText.length&&A.push(ne.newText),w=s.offsetAt(ne.range.end)}return A.push(m.substr(w)),A.join("")}t.applyEdits=o})(Sf||(Sf={}));function qc(t,r){if(t.length<=1)return t;var i=t.length/2|0,o=t.slice(0,i),s=t.slice(i);qc(o,r),qc(s,r);for(var p=0,m=0,E=0;p<o.length&&m<s.length;){var w=r(o[p],s[m]);w<=0?t[E++]=o[p++]:t[E++]=s[m++]}for(;p<o.length;)t[E++]=o[p++];for(;m<s.length;)t[E++]=s[m++];return t}function jp(t,r,i){i===void 0&&(i=0);for(var o=r?[i]:[],s=0;s<t.length;s++){var p=t.charCodeAt(s);(p===13||p===10)&&(p===13&&s+1<t.length&&t.charCodeAt(s+1)===10&&s++,o.push(i+s+1))}return o}function Vp(t){var r=t.start,i=t.end;return r.line>i.line||r.line===i.line&&r.character>i.character?{start:i,end:r}:t}function bg(t){var r=Vp(t.range);return r!==t.range?{newText:t.newText,range:r}:t}var tr;(function(t){t[t.Undefined=0]="Undefined",t[t.EnumValueMismatch=1]="EnumValueMismatch",t[t.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=258]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",t[t.InvalidUnicode=260]="InvalidUnicode",t[t.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",t[t.InvalidCharacter=262]="InvalidCharacter",t[t.PropertyExpected=513]="PropertyExpected",t[t.CommaExpected=514]="CommaExpected",t[t.ColonExpected=515]="ColonExpected",t[t.ValueExpected=516]="ValueExpected",t[t.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",t[t.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",t[t.TrailingComma=519]="TrailingComma",t[t.DuplicateKey=520]="DuplicateKey",t[t.CommentNotPermitted=521]="CommentNotPermitted",t[t.SchemaResolveError=768]="SchemaResolveError"})(tr||(tr={}));var Wp;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[sa.Markdown,sa.PlainText],commitCharactersSupport:!0}}}}})(Wp||(Wp={}));var co=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var p in s)s.hasOwnProperty(p)&&(o[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),wg={"color-hex":{errorMessage:"Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.",pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:"String is not a RFC3339 date-time.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:"String is not a RFC3339 date.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:"String is not a RFC3339 time.",pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:"String is not an e-mail address.",pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},po=function(){function t(r,i,o){this.offset=i,this.length=o,this.parent=r}return Object.defineProperty(t.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},t}(),Sg=function(t){co(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="null",s.value=null,s}return r}(po),Hp=function(t){co(r,t);function r(i,o,s){var p=t.call(this,i,s)||this;return p.type="boolean",p.value=o,p}return r}(po),Ag=function(t){co(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="array",s.items=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(po),Eg=function(t){co(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return r}(po),zp=function(t){co(r,t);function r(i,o,s){var p=t.call(this,i,o,s)||this;return p.type="string",p.value="",p}return r}(po),Cg=function(t){co(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="property",s.colonOffset=-1,s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}(po),Og=function(t){co(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(po);function Rn(t){return Mi(t)?t?{}:{not:{}}:t}var Gp;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(Gp||(Gp={}));var Tg=function(){function t(r,i){r===void 0&&(r=-1),i===void 0&&(i=null),this.focusOffset=r,this.exclude=i,this.schemas=[]}return t.prototype.add=function(r){this.schemas.push(r)},t.prototype.merge=function(r){var i;(i=this.schemas).push.apply(i,r.schemas)},t.prototype.include=function(r){return(this.focusOffset===-1||$p(r,this.focusOffset))&&r!==this.exclude},t.prototype.newSub=function(){return new t(-1,this.exclude)},t}(),ed=function(){function t(){}return Object.defineProperty(t.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.add=function(r){},t.prototype.merge=function(r){},t.prototype.include=function(r){return!0},t.prototype.newSub=function(){return this},t.instance=new t,t}(),Mn=function(){function t(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return t.prototype.hasProblems=function(){return!!this.problems.length},t.prototype.mergeAll=function(r){for(var i=0,o=r;i<o.length;i++){var s=o[i];this.merge(s)}},t.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},t.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var i=0,o=this.problems;i<o.length;i++){var s=o[i];s.code===tr.EnumValueMismatch&&(s.message="Value is not accepted. Valid values: "+this.enumValues.map(function(p){return JSON.stringify(p)}).join(", ")+".")}}},t.prototype.mergePropertyMatch=function(r){this.merge(r),this.propertiesMatches++,(r.enumValueMatch||!r.hasProblems()&&r.propertiesMatches)&&this.propertiesValueMatches++,r.enumValueMatch&&r.enumValues&&r.enumValues.length===1&&this.primaryValueMatches++},t.prototype.compare=function(r){var i=this.hasProblems();return i!==r.hasProblems()?i?-1:1:this.enumValueMatch!==r.enumValueMatch?r.enumValueMatch?-1:1:this.primaryValueMatches!==r.primaryValueMatches?this.primaryValueMatches-r.primaryValueMatches:this.propertiesValueMatches!==r.propertiesValueMatches?this.propertiesValueMatches-r.propertiesValueMatches:this.propertiesMatches-r.propertiesMatches},t}();function Pg(t,r){return r===void 0&&(r=[]),new Kp(t,r,[])}function Ca(t){return gg(t)}function td(t){return vg(t)}function $p(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}var Kp=function(){function t(r,i,o){i===void 0&&(i=[]),o===void 0&&(o=[]),this.root=r,this.syntaxErrors=i,this.comments=o}return t.prototype.getNodeFromOffset=function(r,i){if(i===void 0&&(i=!1),this.root)return hg(this.root,r,i)},t.prototype.visit=function(r){if(this.root){var i=function(o){var s=r(o),p=o.children;if(Array.isArray(p))for(var m=0;m<p.length&&s;m++)s=i(p[m]);return s};i(this.root)}},t.prototype.validate=function(r,i){if(this.root&&i){var o=new Mn;return dn(this.root,i,o,ed.instance),o.problems.map(function(s){var p=lr.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return oa.create(p,s.message,s.severity,s.code)})}return null},t.prototype.getMatchingSchemas=function(r,i,o){i===void 0&&(i=-1),o===void 0&&(o=null);var s=new Tg(i,o);return this.root&&r&&dn(this.root,r,new Mn,s),s.schemas},t}();function dn(t,r,i,o){if(!t||!o.include(t))return;switch(t.type){case"object":w(t,r,i,o);break;case"array":E(t,r,i,o);break;case"string":m(t,r,i,o);break;case"number":p(t,r,i,o);break;case"property":return dn(t.valueNode,r,i,o)}s(),o.add({node:t,schema:r});function s(){function A(et){return t.type===et||et==="integer"&&t.type==="number"&&t.isInteger||r.nullable&&t.value===null}if(Array.isArray(r.type)?r.type.some(A)||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(A(r.type)||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var k=0,G=r.allOf;k<G.length;k++){var ne=G[k];dn(t,Rn(ne),i,o)}var te=Rn(r.not);if(te){var fe=new Mn,ye=o.newSub();dn(t,te,fe,ye),fe.hasProblems()||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,message:"Matches a schema that is not allowed."});for(var ge=0,Ee=ye.schemas;ge<Ee.length;ge++){var we=Ee[ge];we.inverted=!we.inverted,o.add(we)}}var Te=function(et,At){for(var Nt=[],Ht=null,ar=0,kr=et;ar<kr.length;ar++){var Cr=kr[ar],Yr=Rn(Cr),wr=new Mn,Lr=o.newSub();if(dn(t,Yr,wr,Lr),wr.hasProblems()||Nt.push(Yr),!Ht)Ht={schema:Yr,validationResult:wr,matchingSchemas:Lr};else if(!At&&!wr.hasProblems()&&!Ht.validationResult.hasProblems())Ht.matchingSchemas.merge(Lr),Ht.validationResult.propertiesMatches+=wr.propertiesMatches,Ht.validationResult.propertiesValueMatches+=wr.propertiesValueMatches;else{var Sn=wr.compare(Ht.validationResult);Sn>0?Ht={schema:Yr,validationResult:wr,matchingSchemas:Lr}:Sn===0&&(Ht.matchingSchemas.merge(Lr),Ht.validationResult.mergeEnumValues(wr))}}return Nt.length>1&&At&&i.problems.push({location:{offset:t.offset,length:1},severity:$t.Warning,message:"Matches multiple schemas when only one must validate."}),Ht!==null&&(i.merge(Ht.validationResult),i.propertiesMatches+=Ht.validationResult.propertiesMatches,i.propertiesValueMatches+=Ht.validationResult.propertiesValueMatches,o.merge(Ht.matchingSchemas)),Nt.length};Array.isArray(r.anyOf)&&Te(r.anyOf,!1),Array.isArray(r.oneOf)&&Te(r.oneOf,!0);var $e=function(et){var At=new Mn,Nt=o.newSub();dn(t,Rn(et),At,Nt),i.merge(At),i.propertiesMatches+=At.propertiesMatches,i.propertiesValueMatches+=At.propertiesValueMatches,o.merge(Nt)},je=function(et,At,Nt){var Ht=Rn(et),ar=new Mn,kr=o.newSub();dn(t,Ht,ar,kr),o.merge(kr),ar.hasProblems()?Nt&&$e(Nt):At&&$e(At)},He=Rn(r.if);if(He&&je(He,Rn(r.then),Rn(r.else)),Array.isArray(r.enum)){for(var Ne=Ca(t),Ve=!1,We=0,Je=r.enum;We<Je.length;We++){var ze=Je[We];if(Ol(Ne,ze)){Ve=!0;break}}i.enumValues=r.enum,i.enumValueMatch=Ve,Ve||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,code:tr.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(et){return JSON.stringify(et)}).join(", ")+"."})}if(aa(r.const)){var Ne=Ca(t);Ol(Ne,r.const)?i.enumValueMatch=!0:(i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,code:tr.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),i.enumValueMatch=!1),i.enumValues=[r.const]}r.deprecationMessage&&t.parent&&i.problems.push({location:{offset:t.parent.offset,length:t.parent.length},severity:$t.Warning,message:r.deprecationMessage})}function p(A,k,G,ne){var te=A.value;Yn(k.multipleOf)&&te%k.multipleOf!=0&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is not divisible by "+k.multipleOf+"."});function fe($e,je){if(Yn(je))return je;if(Mi(je)&&je)return $e}function ye($e,je){if(!Mi(je)||!je)return $e}var ge=fe(k.minimum,k.exclusiveMinimum);Yn(ge)&&te<=ge&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is below the exclusive minimum of "+ge+"."});var Ee=fe(k.maximum,k.exclusiveMaximum);Yn(Ee)&&te>=Ee&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is above the exclusive maximum of "+Ee+"."});var we=ye(k.minimum,k.exclusiveMinimum);Yn(we)&&te<we&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is below the minimum of "+we+"."});var Te=ye(k.maximum,k.exclusiveMaximum);Yn(Te)&&te>Te&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is above the maximum of "+Te+"."})}function m(A,k,G,ne){if(Yn(k.minLength)&&A.value.length<k.minLength&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"String is shorter than the minimum length of "+k.minLength+"."}),Yn(k.maxLength)&&A.value.length>k.maxLength&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"String is longer than the maximum length of "+k.maxLength+"."}),mg(k.pattern)){var te=new RegExp(k.pattern);te.test(A.value)||G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:k.patternErrorMessage||k.errorMessage||'String does not match the pattern of "'+k.pattern+'".'})}if(k.format)switch(k.format){case"uri":case"uri-reference":{var fe=void 0;if(!A.value)fe="URI expected.";else{var ye=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(A.value);ye?!ye[2]&&k.format==="uri"&&(fe="URI with a scheme is expected."):fe="URI is expected."}fe&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:k.patternErrorMessage||k.errorMessage||"String is not a URI: "+fe})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var ge=wg[k.format];(!A.value||!ge.pattern.exec(A.value))&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:k.patternErrorMessage||k.errorMessage||ge.errorMessage});break;default:}}function E(A,k,G,ne){if(Array.isArray(k.items)){for(var te=k.items,fe=0;fe<te.length;fe++){var ye=te[fe],ge=Rn(ye),Ee=new Mn,we=A.items[fe];we?(dn(we,ge,Ee,ne),G.mergePropertyMatch(Ee)):A.items.length>=te.length&&G.propertiesValueMatches++}if(A.items.length>te.length)if(typeof k.additionalItems=="object")for(var Te=te.length;Te<A.items.length;Te++){var Ee=new Mn;dn(A.items[Te],k.additionalItems,Ee,ne),G.mergePropertyMatch(Ee)}else k.additionalItems===!1&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Array has too many items according to schema. Expected "+te.length+" or fewer."})}else{var $e=Rn(k.items);if($e)for(var je=0,He=A.items;je<He.length;je++){var we=He[je],Ee=new Mn;dn(we,$e,Ee,ne),G.mergePropertyMatch(Ee)}}var Ne=Rn(k.contains);if(Ne){var Ve=A.items.some(function(ze){var et=new Mn;return dn(ze,Ne,et,ed.instance),!et.hasProblems()});Ve||G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:k.errorMessage||"Array does not contain required item."})}if(Yn(k.minItems)&&A.items.length<k.minItems&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Array has too few items. Expected "+k.minItems+" or more."}),Yn(k.maxItems)&&A.items.length>k.maxItems&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Array has too many items. Expected "+k.maxItems+" or fewer."}),k.uniqueItems===!0){var We=Ca(A),Je=We.some(function(ze,et){return et!==We.lastIndexOf(ze)});Je&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Array has duplicate items."})}}function w(A,k,G,ne){for(var te=Object.create(null),fe=[],ye=0,ge=A.properties;ye<ge.length;ye++){var Ee=ge[ye],we=Ee.keyNode.value;te[we]=Ee.valueNode,fe.push(we)}if(Array.isArray(k.required))for(var Te=0,$e=k.required;Te<$e.length;Te++){var je=$e[Te];if(!te[je]){var He=A.parent&&A.parent.type==="property"&&A.parent.keyNode,Ne=He?{offset:He.offset,length:He.length}:{offset:A.offset,length:1};G.problems.push({location:Ne,severity:$t.Warning,message:'Missing property "'+je+'".'})}}var Ve=function(yi){for(var Nl=fe.indexOf(yi);Nl>=0;)fe.splice(Nl,1),Nl=fe.indexOf(yi)};if(k.properties)for(var We=0,Je=Object.keys(k.properties);We<Je.length;We++){var je=Je[We];Ve(je);var ze=k.properties[je],et=te[je];if(et)if(Mi(ze))if(ze)G.propertiesMatches++,G.propertiesValueMatches++;else{var Ee=et.parent;G.problems.push({location:{offset:Ee.keyNode.offset,length:Ee.keyNode.length},severity:$t.Warning,message:k.errorMessage||"Property "+je+" is not allowed."})}else{var At=new Mn;dn(et,ze,At,ne),G.mergePropertyMatch(At)}}if(k.patternProperties)for(var Nt=0,Ht=Object.keys(k.patternProperties);Nt<Ht.length;Nt++)for(var ar=Ht[Nt],kr=new RegExp(ar),Cr=0,Yr=fe.slice(0);Cr<Yr.length;Cr++){var je=Yr[Cr];if(kr.test(je)){Ve(je);var et=te[je];if(et){var ze=k.patternProperties[ar];if(Mi(ze))if(ze)G.propertiesMatches++,G.propertiesValueMatches++;else{var Ee=et.parent;G.problems.push({location:{offset:Ee.keyNode.offset,length:Ee.keyNode.length},severity:$t.Warning,message:k.errorMessage||"Property "+je+" is not allowed."})}else{var At=new Mn;dn(et,ze,At,ne),G.mergePropertyMatch(At)}}}}if(typeof k.additionalProperties=="object")for(var wr=0,Lr=fe;wr<Lr.length;wr++){var je=Lr[wr],et=te[je];if(et){var At=new Mn;dn(et,k.additionalProperties,At,ne),G.mergePropertyMatch(At)}}else if(k.additionalProperties===!1&&fe.length>0)for(var Sn=0,Yt=fe;Sn<Yt.length;Sn++){var je=Yt[Sn],et=te[je];if(et){var Ee=et.parent;G.problems.push({location:{offset:Ee.keyNode.offset,length:Ee.keyNode.length},severity:$t.Warning,message:k.errorMessage||"Property "+je+" is not allowed."})}}if(Yn(k.maxProperties)&&A.properties.length>k.maxProperties&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Object has more properties than limit of "+k.maxProperties+"."}),Yn(k.minProperties)&&A.properties.length<k.minProperties&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Object has fewer properties than the required number of "+k.minProperties}),k.dependencies)for(var Mt=0,Ut=Object.keys(k.dependencies);Mt<Ut.length;Mt++){var we=Ut[Mt],or=te[we];if(or){var on=k.dependencies[we];if(Array.isArray(on))for(var mr=0,hs=on;mr<hs.length;mr++){var Ll=hs[mr];te[Ll]?G.propertiesValueMatches++:G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Object is missing property "+Ll+" required by property {$key}."})}else{var ze=Rn(on);if(ze){var At=new Mn;dn(A,ze,At,ne),G.mergePropertyMatch(At)}}}}var ho=Rn(k.propertyNames);if(ho)for(var Di=0,Dl=A.properties;Di<Dl.length;Di++){var Ff=Dl[Di],we=Ff.keyNode;we&&dn(we,ho,G,ed.instance)}}}function Ig(t,r){var i=[],o=-1,s=t.getText(),p=ls(s,!1),m=r&&r.collectComments?[]:void 0;function E(){for(;;){var He=p.scan();switch(G(),He){case 12:case 13:Array.isArray(m)&&m.push(lr.create(t.positionAt(p.getTokenOffset()),t.positionAt(p.getTokenOffset()+p.getTokenLength())));break;case 15:case 14:break;default:return He}}}function w(He){return p.getToken()===He?(E(),!0):!1}function A(He,Ne,Ve,We,Je){if(Je===void 0&&(Je=$t.Error),i.length===0||Ve!==o){var ze=lr.create(t.positionAt(Ve),t.positionAt(We));i.push(oa.create(ze,He,Je,Ne,t.languageId)),o=Ve}}function k(He,Ne,Ve,We,Je){Ve===void 0&&(Ve=null),We===void 0&&(We=[]),Je===void 0&&(Je=[]);var ze=p.getTokenOffset(),et=p.getTokenOffset()+p.getTokenLength();if(ze===et&&ze>0){for(ze--;ze>0&&/\s/.test(s.charAt(ze));)ze--;et=ze+1}if(A(He,Ne,ze,et),Ve&&ne(Ve,!1),We.length+Je.length>0)for(var At=p.getToken();At!==17;){if(We.indexOf(At)!==-1){E();break}else if(Je.indexOf(At)!==-1)break;At=E()}return Ve}function G(){switch(p.getTokenError()){case 4:return k("Invalid unicode sequence in string.",tr.InvalidUnicode),!0;case 5:return k("Invalid escape character in string.",tr.InvalidEscapeCharacter),!0;case 3:return k("Unexpected end of number.",tr.UnexpectedEndOfNumber),!0;case 1:return k("Unexpected end of comment.",tr.UnexpectedEndOfComment),!0;case 2:return k("Unexpected end of string.",tr.UnexpectedEndOfString),!0;case 6:return k("Invalid characters in string. Control characters must be escaped.",tr.InvalidCharacter),!0}return!1}function ne(He,Ne){return He.length=p.getTokenOffset()+p.getTokenLength()-He.offset,Ne&&E(),He}function te(He){if(p.getToken()!==3)return null;var Ne=new Ag(He,p.getTokenOffset());E();for(var Ve=0,We=!1;p.getToken()!==4&&p.getToken()!==17;){if(p.getToken()===5){We||k("Value expected",tr.ValueExpected);var Je=p.getTokenOffset();if(E(),p.getToken()===4){We&&A("Trailing comma",tr.TrailingComma,Je,Je+1);continue}}else We&&k("Expected comma",tr.CommaExpected);var ze=Te(Ne,Ve++);ze?Ne.items.push(ze):k("Value expected",tr.ValueExpected,null,[],[4,5]),We=!0}return p.getToken()!==4?k("Expected comma or closing bracket",tr.CommaOrCloseBacketExpected,Ne):ne(Ne,!0)}function fe(He,Ne){var Ve=new Cg(He,p.getTokenOffset()),We=ge(Ve);if(!We)if(p.getToken()===16){k("Property keys must be doublequoted",tr.Undefined);var Je=new zp(Ve,p.getTokenOffset(),p.getTokenLength());Je.value=p.getTokenValue(),We=Je,E()}else return null;Ve.keyNode=We;var ze=Ne[We.value];if(ze?(A("Duplicate object key",tr.DuplicateKey,Ve.keyNode.offset,Ve.keyNode.offset+Ve.keyNode.length,$t.Warning),typeof ze=="object"&&A("DuplicateKeyWarning",tr.DuplicateKey,ze.keyNode.offset,ze.keyNode.offset+ze.keyNode.length,$t.Warning),Ne[We.value]=!0):Ne[We.value]=Ve,p.getToken()===6)Ve.colonOffset=p.getTokenOffset(),E();else if(k("Colon expected",tr.ColonExpected),p.getToken()===10&&t.positionAt(We.offset+We.length).line<t.positionAt(p.getTokenOffset()).line)return Ve.length=We.length,Ve;var et=Te(Ve,We.value);return et?(Ve.valueNode=et,Ve.length=et.offset+et.length-Ve.offset,Ve):k("Value expected",tr.ValueExpected,Ve,[],[2,5])}function ye(He){if(p.getToken()!==1)return null;var Ne=new Og(He,p.getTokenOffset()),Ve=Object.create(null);E();for(var We=!1;p.getToken()!==2&&p.getToken()!==17;){if(p.getToken()===5){We||k("Property expected",tr.PropertyExpected);var Je=p.getTokenOffset();if(E(),p.getToken()===2){We&&A("Trailing comma",tr.TrailingComma,Je,Je+1);continue}}else We&&k("Expected comma",tr.CommaExpected);var ze=fe(Ne,Ve);ze?Ne.properties.push(ze):k("Property expected",tr.PropertyExpected,null,[],[2,5]),We=!0}return p.getToken()!==2?k("Expected comma or closing brace",tr.CommaOrCloseBraceExpected,Ne):ne(Ne,!0)}function ge(He){if(p.getToken()!==10)return null;var Ne=new zp(He,p.getTokenOffset());return Ne.value=p.getTokenValue(),ne(Ne,!0)}function Ee(He){if(p.getToken()!==11)return null;var Ne=new Eg(He,p.getTokenOffset());if(p.getTokenError()===0){var Ve=p.getTokenValue();try{var We=JSON.parse(Ve);if(!Yn(We))return k("Invalid number format.",tr.Undefined,Ne);Ne.value=We}catch(Je){return k("Invalid number format.",tr.Undefined,Ne)}Ne.isInteger=Ve.indexOf(".")===-1}return ne(Ne,!0)}function we(He){var Ne;switch(p.getToken()){case 7:return ne(new Sg(He,p.getTokenOffset()),!0);case 8:return ne(new Hp(He,!0,p.getTokenOffset()),!0);case 9:return ne(new Hp(He,!1,p.getTokenOffset()),!0);default:return null}}function Te(He,Ne){return te(He)||ye(He)||ge(He)||Ee(He)||we(He)}var $e=null,je=E();return je!==17&&($e=Te(null,null),$e?p.getToken()!==17&&k("End of file expected.",tr.Undefined):k("Expected a JSON object, array or literal.",tr.Undefined)),new Kp($e,i,m)}function rd(t,r,i){if(t!==null&&typeof t=="object"){var o=r+" ";if(Array.isArray(t)){if(t.length===0)return"[]";for(var s=`[
|
|
377
|
-
`,p=0;p<t.length;p++)s+=
|
|
378
|
-
`;return s+=r+"]",s}else{var
|
|
379
|
-
`,p=0;p<
|
|
380
|
-
`}return s+=r+"}",s}}return i(t)}function Fg(t,r){if(t.length<r.length)return!1;for(var i=0;i<r.length;i++)if(t[i]!==r[i])return!1;return!0}function nd(t,r){var i=t.length-r.length;return i>0?t.lastIndexOf(r)===i:i===0?t===r:!1}function kg(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Gm(t,r){for(var i="";r>0;)(r&1)==1&&(i+=t),t+=t,r=r>>>1;return i}var
|
|
381
|
-
`,
|
|
382
|
-
|
|
376
|
+
`&&s++}a&&i.length>0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),a=0,s=i.length;if(s===0)return hi.create(0,r);for(;a<s;){var p=Math.floor((a+s)/2);i[p]>r?s=p:a=p+1}var y=a-1;return hi.create(y,r-i[y])},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var a=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),_e;(function(t){var r=Object.prototype.toString;function i(re){return typeof re!="undefined"}t.defined=i;function a(re){return typeof re=="undefined"}t.undefined=a;function s(re){return re===!0||re===!1}t.boolean=s;function p(re){return r.call(re)==="[object String]"}t.string=p;function y(re){return r.call(re)==="[object Number]"}t.number=y;function E(re,se,ye){return r.call(re)==="[object Number]"&&se<=re&&re<=ye}t.numberRange=E;function w(re){return r.call(re)==="[object Number]"&&-2147483648<=re&&re<=2147483647}t.integer=w;function A(re){return r.call(re)==="[object Number]"&&0<=re&&re<=2147483647}t.uinteger=A;function k(re){return r.call(re)==="[object Function]"}t.func=k;function G(re){return re!==null&&typeof re=="object"}t.objectLiteral=G;function ne(re,se){return Array.isArray(re)&&re.every(se)}t.typedArray=ne})(_e||(_e={}));var jp=function(){function t(r,i,a,s){this._uri=r,this._languageId=i,this._version=a,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(i,a)}return this._content},t.prototype.update=function(r,i){for(var a=0,s=r;a<s.length;a++){var p=s[a];if(t.isIncremental(p)){var y=Wp(p.range),E=this.offsetAt(y.start),w=this.offsetAt(y.end);this._content=this._content.substring(0,E)+p.text+this._content.substring(w,this._content.length);var A=Math.max(y.start.line,0),k=Math.max(y.end.line,0),G=this._lineOffsets,ne=Vp(p.text,!1,E);if(k-A===ne.length)for(var re=0,se=ne.length;re<se;re++)G[re+A+1]=ne[re];else ne.length<1e4?G.splice.apply(G,[A+1,k-A].concat(ne)):this._lineOffsets=G=G.slice(0,A+1).concat(ne,G.slice(k+1));var ye=p.text.length-(w-E);if(ye!==0)for(var re=A+1+ne.length,se=G.length;re<se;re++)G[re]=G[re]+ye}else if(t.isFull(p))this._content=p.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=i},t.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=Vp(this._content,!0)),this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),a=0,s=i.length;if(s===0)return{line:0,character:r};for(;a<s;){var p=Math.floor((a+s)/2);i[p]>r?s=p:a=p+1}var y=a-1;return{line:y,character:r-i[y]}},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var a=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),t.isIncremental=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")},t.isFull=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0},t}(),Sf;(function(t){function r(s,p,y,E){return new jp(s,p,y,E)}t.create=r;function i(s,p,y){if(s instanceof jp)return s.update(p,y),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function a(s,p){for(var y=s.getText(),E=qc(p.map(bg),function(se,ye){var ge=se.range.start.line-ye.range.start.line;return ge===0?se.range.start.character-ye.range.start.character:ge}),w=0,A=[],k=0,G=E;k<G.length;k++){var ne=G[k],re=s.offsetAt(ne.range.start);if(re<w)throw new Error("Overlapping edit");re>w&&A.push(y.substring(w,re)),ne.newText.length&&A.push(ne.newText),w=s.offsetAt(ne.range.end)}return A.push(y.substr(w)),A.join("")}t.applyEdits=a})(Sf||(Sf={}));function qc(t,r){if(t.length<=1)return t;var i=t.length/2|0,a=t.slice(0,i),s=t.slice(i);qc(a,r),qc(s,r);for(var p=0,y=0,E=0;p<a.length&&y<s.length;){var w=r(a[p],s[y]);w<=0?t[E++]=a[p++]:t[E++]=s[y++]}for(;p<a.length;)t[E++]=a[p++];for(;y<s.length;)t[E++]=s[y++];return t}function Vp(t,r,i){i===void 0&&(i=0);for(var a=r?[i]:[],s=0;s<t.length;s++){var p=t.charCodeAt(s);(p===13||p===10)&&(p===13&&s+1<t.length&&t.charCodeAt(s+1)===10&&s++,a.push(i+s+1))}return a}function Wp(t){var r=t.start,i=t.end;return r.line>i.line||r.line===i.line&&r.character>i.character?{start:i,end:r}:t}function bg(t){var r=Wp(t.range);return r!==t.range?{newText:t.newText,range:r}:t}var tr;(function(t){t[t.Undefined=0]="Undefined",t[t.EnumValueMismatch=1]="EnumValueMismatch",t[t.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=258]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",t[t.InvalidUnicode=260]="InvalidUnicode",t[t.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",t[t.InvalidCharacter=262]="InvalidCharacter",t[t.PropertyExpected=513]="PropertyExpected",t[t.CommaExpected=514]="CommaExpected",t[t.ColonExpected=515]="ColonExpected",t[t.ValueExpected=516]="ValueExpected",t[t.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",t[t.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",t[t.TrailingComma=519]="TrailingComma",t[t.DuplicateKey=520]="DuplicateKey",t[t.CommentNotPermitted=521]="CommentNotPermitted",t[t.SchemaResolveError=768]="SchemaResolveError"})(tr||(tr={}));var Hp;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[so.Markdown,so.PlainText],commitCharactersSupport:!0}}}}})(Hp||(Hp={}));var da=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var p in s)s.hasOwnProperty(p)&&(a[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),wg={"color-hex":{errorMessage:"Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.",pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:"String is not a RFC3339 date-time.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:"String is not a RFC3339 date.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:"String is not a RFC3339 time.",pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:"String is not an e-mail address.",pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},pa=function(){function t(r,i,a){this.offset=i,this.length=a,this.parent=r}return Object.defineProperty(t.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},t}(),Sg=function(t){da(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="null",s.value=null,s}return r}(pa),zp=function(t){da(r,t);function r(i,a,s){var p=t.call(this,i,s)||this;return p.type="boolean",p.value=a,p}return r}(pa),Ag=function(t){da(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="array",s.items=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(pa),Eg=function(t){da(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return r}(pa),Gp=function(t){da(r,t);function r(i,a,s){var p=t.call(this,i,a,s)||this;return p.type="string",p.value="",p}return r}(pa),Cg=function(t){da(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="property",s.colonOffset=-1,s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}(pa),Og=function(t){da(r,t);function r(i,a){var s=t.call(this,i,a)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(pa);function Mn(t){return Ri(t)?t?{}:{not:{}}:t}var $p;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})($p||($p={}));var Tg=function(){function t(r,i){r===void 0&&(r=-1),i===void 0&&(i=null),this.focusOffset=r,this.exclude=i,this.schemas=[]}return t.prototype.add=function(r){this.schemas.push(r)},t.prototype.merge=function(r){var i;(i=this.schemas).push.apply(i,r.schemas)},t.prototype.include=function(r){return(this.focusOffset===-1||Kp(r,this.focusOffset))&&r!==this.exclude},t.prototype.newSub=function(){return new t(-1,this.exclude)},t}(),ed=function(){function t(){}return Object.defineProperty(t.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.add=function(r){},t.prototype.merge=function(r){},t.prototype.include=function(r){return!0},t.prototype.newSub=function(){return this},t.instance=new t,t}(),Rn=function(){function t(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return t.prototype.hasProblems=function(){return!!this.problems.length},t.prototype.mergeAll=function(r){for(var i=0,a=r;i<a.length;i++){var s=a[i];this.merge(s)}},t.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},t.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var i=0,a=this.problems;i<a.length;i++){var s=a[i];s.code===tr.EnumValueMismatch&&(s.message="Value is not accepted. Valid values: "+this.enumValues.map(function(p){return JSON.stringify(p)}).join(", ")+".")}}},t.prototype.mergePropertyMatch=function(r){this.merge(r),this.propertiesMatches++,(r.enumValueMatch||!r.hasProblems()&&r.propertiesMatches)&&this.propertiesValueMatches++,r.enumValueMatch&&r.enumValues&&r.enumValues.length===1&&this.primaryValueMatches++},t.prototype.compare=function(r){var i=this.hasProblems();return i!==r.hasProblems()?i?-1:1:this.enumValueMatch!==r.enumValueMatch?r.enumValueMatch?-1:1:this.primaryValueMatches!==r.primaryValueMatches?this.primaryValueMatches-r.primaryValueMatches:this.propertiesValueMatches!==r.propertiesValueMatches?this.propertiesValueMatches-r.propertiesValueMatches:this.propertiesMatches-r.propertiesMatches},t}();function Pg(t,r){return r===void 0&&(r=[]),new Yp(t,r,[])}function Oo(t){return gg(t)}function td(t){return vg(t)}function Kp(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}var Yp=function(){function t(r,i,a){i===void 0&&(i=[]),a===void 0&&(a=[]),this.root=r,this.syntaxErrors=i,this.comments=a}return t.prototype.getNodeFromOffset=function(r,i){if(i===void 0&&(i=!1),this.root)return hg(this.root,r,i)},t.prototype.visit=function(r){if(this.root){var i=function(a){var s=r(a),p=a.children;if(Array.isArray(p))for(var y=0;y<p.length&&s;y++)s=i(p[y]);return s};i(this.root)}},t.prototype.validate=function(r,i){if(this.root&&i){var a=new Rn;return dn(this.root,i,a,ed.instance),a.problems.map(function(s){var p=lr.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return ao.create(p,s.message,s.severity,s.code)})}return null},t.prototype.getMatchingSchemas=function(r,i,a){i===void 0&&(i=-1),a===void 0&&(a=null);var s=new Tg(i,a);return this.root&&r&&dn(this.root,r,new Rn,s),s.schemas},t}();function dn(t,r,i,a){if(!t||!a.include(t))return;switch(t.type){case"object":w(t,r,i,a);break;case"array":E(t,r,i,a);break;case"string":y(t,r,i,a);break;case"number":p(t,r,i,a);break;case"property":return dn(t.valueNode,r,i,a)}s(),a.add({node:t,schema:r});function s(){function A(et){return t.type===et||et==="integer"&&t.type==="number"&&t.isInteger||r.nullable&&t.value===null}if(Array.isArray(r.type)?r.type.some(A)||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(A(r.type)||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var k=0,G=r.allOf;k<G.length;k++){var ne=G[k];dn(t,Mn(ne),i,a)}var re=Mn(r.not);if(re){var se=new Rn,ye=a.newSub();dn(t,re,se,ye),se.hasProblems()||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,message:"Matches a schema that is not allowed."});for(var ge=0,Ee=ye.schemas;ge<Ee.length;ge++){var me=Ee[ge];me.inverted=!me.inverted,a.add(me)}}var Pe=function(et,At){for(var Nt=[],Ht=null,or=0,Mr=et;or<Mr.length;or++){var Cr=Mr[or],Jr=Mn(Cr),wr=new Rn,Dr=a.newSub();if(dn(t,Jr,wr,Dr),wr.hasProblems()||Nt.push(Jr),!Ht)Ht={schema:Jr,validationResult:wr,matchingSchemas:Dr};else if(!At&&!wr.hasProblems()&&!Ht.validationResult.hasProblems())Ht.matchingSchemas.merge(Dr),Ht.validationResult.propertiesMatches+=wr.propertiesMatches,Ht.validationResult.propertiesValueMatches+=wr.propertiesValueMatches;else{var Sn=wr.compare(Ht.validationResult);Sn>0?Ht={schema:Jr,validationResult:wr,matchingSchemas:Dr}:Sn===0&&(Ht.matchingSchemas.merge(Dr),Ht.validationResult.mergeEnumValues(wr))}}return Nt.length>1&&At&&i.problems.push({location:{offset:t.offset,length:1},severity:$t.Warning,message:"Matches multiple schemas when only one must validate."}),Ht!==null&&(i.merge(Ht.validationResult),i.propertiesMatches+=Ht.validationResult.propertiesMatches,i.propertiesValueMatches+=Ht.validationResult.propertiesValueMatches,a.merge(Ht.matchingSchemas)),Nt.length};Array.isArray(r.anyOf)&&Pe(r.anyOf,!1),Array.isArray(r.oneOf)&&Pe(r.oneOf,!0);var Ge=function(et){var At=new Rn,Nt=a.newSub();dn(t,Mn(et),At,Nt),i.merge(At),i.propertiesMatches+=At.propertiesMatches,i.propertiesValueMatches+=At.propertiesValueMatches,a.merge(Nt)},je=function(et,At,Nt){var Ht=Mn(et),or=new Rn,Mr=a.newSub();dn(t,Ht,or,Mr),a.merge(Mr),or.hasProblems()?Nt&&Ge(Nt):At&&Ge(At)},He=Mn(r.if);if(He&&je(He,Mn(r.then),Mn(r.else)),Array.isArray(r.enum)){for(var Ne=Oo(t),Ve=!1,We=0,Je=r.enum;We<Je.length;We++){var ze=Je[We];if(Tl(Ne,ze)){Ve=!0;break}}i.enumValues=r.enum,i.enumValueMatch=Ve,Ve||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,code:tr.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(et){return JSON.stringify(et)}).join(", ")+"."})}if(oo(r.const)){var Ne=Oo(t);Tl(Ne,r.const)?i.enumValueMatch=!0:(i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,code:tr.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),i.enumValueMatch=!1),i.enumValues=[r.const]}r.deprecationMessage&&t.parent&&i.problems.push({location:{offset:t.parent.offset,length:t.parent.length},severity:$t.Warning,message:r.deprecationMessage})}function p(A,k,G,ne){var re=A.value;Yn(k.multipleOf)&&re%k.multipleOf!=0&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is not divisible by "+k.multipleOf+"."});function se(Ge,je){if(Yn(je))return je;if(Ri(je)&&je)return Ge}function ye(Ge,je){if(!Ri(je)||!je)return Ge}var ge=se(k.minimum,k.exclusiveMinimum);Yn(ge)&&re<=ge&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is below the exclusive minimum of "+ge+"."});var Ee=se(k.maximum,k.exclusiveMaximum);Yn(Ee)&&re>=Ee&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is above the exclusive maximum of "+Ee+"."});var me=ye(k.minimum,k.exclusiveMinimum);Yn(me)&&re<me&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is below the minimum of "+me+"."});var Pe=ye(k.maximum,k.exclusiveMaximum);Yn(Pe)&&re>Pe&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is above the maximum of "+Pe+"."})}function y(A,k,G,ne){if(Yn(k.minLength)&&A.value.length<k.minLength&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"String is shorter than the minimum length of "+k.minLength+"."}),Yn(k.maxLength)&&A.value.length>k.maxLength&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"String is longer than the maximum length of "+k.maxLength+"."}),mg(k.pattern)){var re=new RegExp(k.pattern);re.test(A.value)||G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:k.patternErrorMessage||k.errorMessage||'String does not match the pattern of "'+k.pattern+'".'})}if(k.format)switch(k.format){case"uri":case"uri-reference":{var se=void 0;if(!A.value)se="URI expected.";else{var ye=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(A.value);ye?!ye[2]&&k.format==="uri"&&(se="URI with a scheme is expected."):se="URI is expected."}se&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:k.patternErrorMessage||k.errorMessage||"String is not a URI: "+se})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var ge=wg[k.format];(!A.value||!ge.pattern.exec(A.value))&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:k.patternErrorMessage||k.errorMessage||ge.errorMessage});break;default:}}function E(A,k,G,ne){if(Array.isArray(k.items)){for(var re=k.items,se=0;se<re.length;se++){var ye=re[se],ge=Mn(ye),Ee=new Rn,me=A.items[se];me?(dn(me,ge,Ee,ne),G.mergePropertyMatch(Ee)):A.items.length>=re.length&&G.propertiesValueMatches++}if(A.items.length>re.length)if(typeof k.additionalItems=="object")for(var Pe=re.length;Pe<A.items.length;Pe++){var Ee=new Rn;dn(A.items[Pe],k.additionalItems,Ee,ne),G.mergePropertyMatch(Ee)}else k.additionalItems===!1&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Array has too many items according to schema. Expected "+re.length+" or fewer."})}else{var Ge=Mn(k.items);if(Ge)for(var je=0,He=A.items;je<He.length;je++){var me=He[je],Ee=new Rn;dn(me,Ge,Ee,ne),G.mergePropertyMatch(Ee)}}var Ne=Mn(k.contains);if(Ne){var Ve=A.items.some(function(ze){var et=new Rn;return dn(ze,Ne,et,ed.instance),!et.hasProblems()});Ve||G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:k.errorMessage||"Array does not contain required item."})}if(Yn(k.minItems)&&A.items.length<k.minItems&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Array has too few items. Expected "+k.minItems+" or more."}),Yn(k.maxItems)&&A.items.length>k.maxItems&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Array has too many items. Expected "+k.maxItems+" or fewer."}),k.uniqueItems===!0){var We=Oo(A),Je=We.some(function(ze,et){return et!==We.lastIndexOf(ze)});Je&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Array has duplicate items."})}}function w(A,k,G,ne){for(var re=Object.create(null),se=[],ye=0,ge=A.properties;ye<ge.length;ye++){var Ee=ge[ye],me=Ee.keyNode.value;re[me]=Ee.valueNode,se.push(me)}if(Array.isArray(k.required))for(var Pe=0,Ge=k.required;Pe<Ge.length;Pe++){var je=Ge[Pe];if(!re[je]){var He=A.parent&&A.parent.type==="property"&&A.parent.keyNode,Ne=He?{offset:He.offset,length:He.length}:{offset:A.offset,length:1};G.problems.push({location:Ne,severity:$t.Warning,message:'Missing property "'+je+'".'})}}var Ve=function(yi){for(var Bl=se.indexOf(yi);Bl>=0;)se.splice(Bl,1),Bl=se.indexOf(yi)};if(k.properties)for(var We=0,Je=Object.keys(k.properties);We<Je.length;We++){var je=Je[We];Ve(je);var ze=k.properties[je],et=re[je];if(et)if(Ri(ze))if(ze)G.propertiesMatches++,G.propertiesValueMatches++;else{var Ee=et.parent;G.problems.push({location:{offset:Ee.keyNode.offset,length:Ee.keyNode.length},severity:$t.Warning,message:k.errorMessage||"Property "+je+" is not allowed."})}else{var At=new Rn;dn(et,ze,At,ne),G.mergePropertyMatch(At)}}if(k.patternProperties)for(var Nt=0,Ht=Object.keys(k.patternProperties);Nt<Ht.length;Nt++)for(var or=Ht[Nt],Mr=new RegExp(or),Cr=0,Jr=se.slice(0);Cr<Jr.length;Cr++){var je=Jr[Cr];if(Mr.test(je)){Ve(je);var et=re[je];if(et){var ze=k.patternProperties[or];if(Ri(ze))if(ze)G.propertiesMatches++,G.propertiesValueMatches++;else{var Ee=et.parent;G.problems.push({location:{offset:Ee.keyNode.offset,length:Ee.keyNode.length},severity:$t.Warning,message:k.errorMessage||"Property "+je+" is not allowed."})}else{var At=new Rn;dn(et,ze,At,ne),G.mergePropertyMatch(At)}}}}if(typeof k.additionalProperties=="object")for(var wr=0,Dr=se;wr<Dr.length;wr++){var je=Dr[wr],et=re[je];if(et){var At=new Rn;dn(et,k.additionalProperties,At,ne),G.mergePropertyMatch(At)}}else if(k.additionalProperties===!1&&se.length>0)for(var Sn=0,Yt=se;Sn<Yt.length;Sn++){var je=Yt[Sn],et=re[je];if(et){var Ee=et.parent;G.problems.push({location:{offset:Ee.keyNode.offset,length:Ee.keyNode.length},severity:$t.Warning,message:k.errorMessage||"Property "+je+" is not allowed."})}}if(Yn(k.maxProperties)&&A.properties.length>k.maxProperties&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Object has more properties than limit of "+k.maxProperties+"."}),Yn(k.minProperties)&&A.properties.length<k.minProperties&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Object has fewer properties than the required number of "+k.minProperties}),k.dependencies)for(var Rt=0,Ut=Object.keys(k.dependencies);Rt<Ut.length;Rt++){var me=Ut[Rt],ar=re[me];if(ar){var an=k.dependencies[me];if(Array.isArray(an))for(var mr=0,hs=an;mr<hs.length;mr++){var Dl=hs[mr];re[Dl]?G.propertiesValueMatches++:G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Object is missing property "+Dl+" required by property {$key}."})}else{var ze=Mn(an);if(ze){var At=new Rn;dn(A,ze,At,ne),G.mergePropertyMatch(At)}}}}var ha=Mn(k.propertyNames);if(ha)for(var Di=0,Nl=A.properties;Di<Nl.length;Di++){var Ff=Nl[Di],me=Ff.keyNode;me&&dn(me,ha,G,ed.instance)}}}function Ig(t,r){var i=[],a=-1,s=t.getText(),p=ls(s,!1),y=r&&r.collectComments?[]:void 0;function E(){for(;;){var He=p.scan();switch(G(),He){case 12:case 13:Array.isArray(y)&&y.push(lr.create(t.positionAt(p.getTokenOffset()),t.positionAt(p.getTokenOffset()+p.getTokenLength())));break;case 15:case 14:break;default:return He}}}function w(He){return p.getToken()===He?(E(),!0):!1}function A(He,Ne,Ve,We,Je){if(Je===void 0&&(Je=$t.Error),i.length===0||Ve!==a){var ze=lr.create(t.positionAt(Ve),t.positionAt(We));i.push(ao.create(ze,He,Je,Ne,t.languageId)),a=Ve}}function k(He,Ne,Ve,We,Je){Ve===void 0&&(Ve=null),We===void 0&&(We=[]),Je===void 0&&(Je=[]);var ze=p.getTokenOffset(),et=p.getTokenOffset()+p.getTokenLength();if(ze===et&&ze>0){for(ze--;ze>0&&/\s/.test(s.charAt(ze));)ze--;et=ze+1}if(A(He,Ne,ze,et),Ve&&ne(Ve,!1),We.length+Je.length>0)for(var At=p.getToken();At!==17;){if(We.indexOf(At)!==-1){E();break}else if(Je.indexOf(At)!==-1)break;At=E()}return Ve}function G(){switch(p.getTokenError()){case 4:return k("Invalid unicode sequence in string.",tr.InvalidUnicode),!0;case 5:return k("Invalid escape character in string.",tr.InvalidEscapeCharacter),!0;case 3:return k("Unexpected end of number.",tr.UnexpectedEndOfNumber),!0;case 1:return k("Unexpected end of comment.",tr.UnexpectedEndOfComment),!0;case 2:return k("Unexpected end of string.",tr.UnexpectedEndOfString),!0;case 6:return k("Invalid characters in string. Control characters must be escaped.",tr.InvalidCharacter),!0}return!1}function ne(He,Ne){return He.length=p.getTokenOffset()+p.getTokenLength()-He.offset,Ne&&E(),He}function re(He){if(p.getToken()!==3)return null;var Ne=new Ag(He,p.getTokenOffset());E();for(var Ve=0,We=!1;p.getToken()!==4&&p.getToken()!==17;){if(p.getToken()===5){We||k("Value expected",tr.ValueExpected);var Je=p.getTokenOffset();if(E(),p.getToken()===4){We&&A("Trailing comma",tr.TrailingComma,Je,Je+1);continue}}else We&&k("Expected comma",tr.CommaExpected);var ze=Pe(Ne,Ve++);ze?Ne.items.push(ze):k("Value expected",tr.ValueExpected,null,[],[4,5]),We=!0}return p.getToken()!==4?k("Expected comma or closing bracket",tr.CommaOrCloseBacketExpected,Ne):ne(Ne,!0)}function se(He,Ne){var Ve=new Cg(He,p.getTokenOffset()),We=ge(Ve);if(!We)if(p.getToken()===16){k("Property keys must be doublequoted",tr.Undefined);var Je=new Gp(Ve,p.getTokenOffset(),p.getTokenLength());Je.value=p.getTokenValue(),We=Je,E()}else return null;Ve.keyNode=We;var ze=Ne[We.value];if(ze?(A("Duplicate object key",tr.DuplicateKey,Ve.keyNode.offset,Ve.keyNode.offset+Ve.keyNode.length,$t.Warning),typeof ze=="object"&&A("DuplicateKeyWarning",tr.DuplicateKey,ze.keyNode.offset,ze.keyNode.offset+ze.keyNode.length,$t.Warning),Ne[We.value]=!0):Ne[We.value]=Ve,p.getToken()===6)Ve.colonOffset=p.getTokenOffset(),E();else if(k("Colon expected",tr.ColonExpected),p.getToken()===10&&t.positionAt(We.offset+We.length).line<t.positionAt(p.getTokenOffset()).line)return Ve.length=We.length,Ve;var et=Pe(Ve,We.value);return et?(Ve.valueNode=et,Ve.length=et.offset+et.length-Ve.offset,Ve):k("Value expected",tr.ValueExpected,Ve,[],[2,5])}function ye(He){if(p.getToken()!==1)return null;var Ne=new Og(He,p.getTokenOffset()),Ve=Object.create(null);E();for(var We=!1;p.getToken()!==2&&p.getToken()!==17;){if(p.getToken()===5){We||k("Property expected",tr.PropertyExpected);var Je=p.getTokenOffset();if(E(),p.getToken()===2){We&&A("Trailing comma",tr.TrailingComma,Je,Je+1);continue}}else We&&k("Expected comma",tr.CommaExpected);var ze=se(Ne,Ve);ze?Ne.properties.push(ze):k("Property expected",tr.PropertyExpected,null,[],[2,5]),We=!0}return p.getToken()!==2?k("Expected comma or closing brace",tr.CommaOrCloseBraceExpected,Ne):ne(Ne,!0)}function ge(He){if(p.getToken()!==10)return null;var Ne=new Gp(He,p.getTokenOffset());return Ne.value=p.getTokenValue(),ne(Ne,!0)}function Ee(He){if(p.getToken()!==11)return null;var Ne=new Eg(He,p.getTokenOffset());if(p.getTokenError()===0){var Ve=p.getTokenValue();try{var We=JSON.parse(Ve);if(!Yn(We))return k("Invalid number format.",tr.Undefined,Ne);Ne.value=We}catch(Je){return k("Invalid number format.",tr.Undefined,Ne)}Ne.isInteger=Ve.indexOf(".")===-1}return ne(Ne,!0)}function me(He){var Ne;switch(p.getToken()){case 7:return ne(new Sg(He,p.getTokenOffset()),!0);case 8:return ne(new zp(He,!0,p.getTokenOffset()),!0);case 9:return ne(new zp(He,!1,p.getTokenOffset()),!0);default:return null}}function Pe(He,Ne){return re(He)||ye(He)||ge(He)||Ee(He)||me(He)}var Ge=null,je=E();return je!==17&&(Ge=Pe(null,null),Ge?p.getToken()!==17&&k("End of file expected.",tr.Undefined):k("Expected a JSON object, array or literal.",tr.Undefined)),new Yp(Ge,i,y)}function rd(t,r,i){if(t!==null&&typeof t=="object"){var a=r+" ";if(Array.isArray(t)){if(t.length===0)return"[]";for(var s=`[
|
|
377
|
+
`,p=0;p<t.length;p++)s+=a+rd(t[p],a,i),p<t.length-1&&(s+=","),s+=`
|
|
378
|
+
`;return s+=r+"]",s}else{var y=Object.keys(t);if(y.length===0)return"{}";for(var s=`{
|
|
379
|
+
`,p=0;p<y.length;p++){var E=y[p];s+=a+JSON.stringify(E)+": "+rd(t[E],a,i),p<y.length-1&&(s+=","),s+=`
|
|
380
|
+
`}return s+=r+"}",s}}return i(t)}function Fg(t,r){if(t.length<r.length)return!1;for(var i=0;i<r.length;i++)if(t[i]!==r[i])return!1;return!0}function nd(t,r){var i=t.length-r.length;return i>0?t.lastIndexOf(r)===i:i===0?t===r:!1}function kg(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Gm(t,r){for(var i="";r>0;)(r&1)==1&&(i+=t),t+=t,r=r>>>1;return i}var Mg=[",","}","]"],Rg=[":"],Lg=function(){function t(r,i,a,s){i===void 0&&(i=[]),a===void 0&&(a=Promise),s===void 0&&(s={}),this.schemaService=r,this.contributions=i,this.promiseConstructor=a,this.clientCapabilities=s,this.templateVarIdCounter=0}return t.prototype.doResolve=function(r){for(var i=this.contributions.length-1;i>=0;i--)if(this.contributions[i].resolveCompletion){var a=this.contributions[i].resolveCompletion(r);if(a)return a}return this.promiseConstructor.resolve(r)},t.prototype.doComplete=function(r,i,a){var s=this,p={items:[],isIncomplete:!1},y=r.getText(),E=r.offsetAt(i),w=a.getNodeFromOffset(E,!0);if(this.isInComment(r,w?w.offset:0,E))return Promise.resolve(p);if(w&&E===w.offset+w.length&&E>0){var A=y[E-1];(w.type==="object"&&A==="}"||w.type==="array"&&A==="]")&&(w=w.parent)}var k=this.getCurrentWord(r,E),G=null;if(w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null"))G=lr.create(r.positionAt(w.offset),r.positionAt(w.offset+w.length));else{var ne=E-k.length;ne>0&&y[ne-1]==='"'&&ne--,G=lr.create(r.positionAt(ne),i)}var re=this.doesSupportsCommitCharacters(),se={},ye={add:function(ge){var Ee=se[ge.label];Ee?Ee.documentation||(Ee.documentation=ge.documentation):(se[ge.label]=ge,G&&(ge.textEdit=vi.replace(G,ge.insertText)),re&&(ge.commitCharacters=ge.kind===Jn.Property?Rg:Mg),p.items.push(ge))},setAsIncomplete:function(){p.isIncomplete=!0},error:function(ge){console.error(ge)},log:function(ge){console.log(ge)},getNumberOfProposals:function(){return p.items.length}};return this.schemaService.getSchemaForResource(r.uri,a).then(function(ge){var Ee=[],me=!0,Pe="",Ge=null;if(w&&w.type==="string"){var je=w.parent;je&&je.type==="property"&&je.keyNode===w&&(me=!je.valueNode,Ge=je,Pe=y.substr(w.offset+1,w.length-2),je&&(w=je.parent))}if(w&&w.type==="object"){if(w.offset===E)return p;var He=w.properties;He.forEach(function(Je){(!Ge||Ge!==Je)&&(se[Je.keyNode.value]=_c.create("__"))});var Ne="";me&&(Ne=s.evaluateSeparatorAfter(r,r.offsetAt(G.end))),ge?s.getPropertyCompletions(ge,a,w,me,Ne,ye):s.getSchemaLessPropertyCompletions(a,w,Pe,ye);var Ve=td(w);s.contributions.forEach(function(Je){var ze=Je.collectPropertyCompletions(r.uri,Ve,k,me,Ne==="",ye);ze&&Ee.push(ze)}),!ge&&k.length>0&&y.charAt(E-k.length-1)!=='"'&&(ye.add({kind:Jn.Property,label:s.getLabelForValue(k),insertText:s.getInsertTextForProperty(k,null,!1,Ne),insertTextFormat:Zr.Snippet,documentation:""}),ye.setAsIncomplete())}var We={};return ge?s.getValueCompletions(ge,a,w,E,r,ye,We):s.getSchemaLessValueCompletions(a,w,E,r,ye),s.contributions.length>0&&s.getContributedValueCompletions(a,w,E,r,ye,Ee),s.promiseConstructor.all(Ee).then(function(){if(ye.getNumberOfProposals()===0){var Je=E;w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null")&&(Je=w.offset+w.length);var ze=s.evaluateSeparatorAfter(r,Je);s.addFillerValueCompletions(We,ze,ye)}return p})})},t.prototype.getPropertyCompletions=function(r,i,a,s,p,y){var E=this,w=i.getMatchingSchemas(r.schema,a.offset);w.forEach(function(A){if(A.node===a&&!A.inverted){var k=A.schema.properties;k&&Object.keys(k).forEach(function(G){var ne=k[G],re=!1;if(typeof ne=="object"&&ne.allOf)for(var se=0,ye=ne.allOf;se<ye.length;se++){var ge=ye[se];if(ge.readOnly){re=!0;break}}if(typeof ne=="object"&&!ne.deprecationMessage&&!ne.doNotSuggest&&!re){var Ee={kind:Jn.Property,label:E.sanitizeLabel(G),insertText:E.getInsertTextForProperty(G,ne,s,p),insertTextFormat:Zr.Snippet,filterText:E.getFilterTextForValue(G),documentation:E.fromMarkup(ne.markdownDescription)||ne.description||""};nd(Ee.insertText,"$1"+p)&&(Ee.command={title:"Suggest",command:"editor.action.triggerSuggest"}),y.add(Ee)}})}})},t.prototype.getSchemaLessPropertyCompletions=function(r,i,a,s){var p=this,y=function(w){w.properties.forEach(function(A){var k=A.keyNode.value;s.add({kind:Jn.Property,label:p.sanitizeLabel(k),insertText:p.getInsertTextForValue(k,""),insertTextFormat:Zr.Snippet,filterText:p.getFilterTextForValue(k),documentation:""})})};if(i.parent)if(i.parent.type==="property"){var E=i.parent.keyNode.value;r.visit(function(w){return w.type==="property"&&w!==i.parent&&w.keyNode.value===E&&w.valueNode&&w.valueNode.type==="object"&&y(w.valueNode),!0})}else i.parent.type==="array"&&i.parent.items.forEach(function(w){w.type==="object"&&w!==i&&y(w)});else i.type==="object"&&s.add({kind:Jn.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:Zr.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},t.prototype.getSchemaLessValueCompletions=function(r,i,a,s,p){var y=this,E=a;if(i&&(i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(E=i.offset+i.length,i=i.parent),!i){p.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Zr.Snippet,documentation:""}),p.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Zr.Snippet,documentation:""});return}var w=this.evaluateSeparatorAfter(s,E),A=function(re){Kp(re.parent,a,!0)||p.add({kind:y.getSuggestionKind(re.type),label:y.getLabelTextForMatchingNode(re,s),insertText:y.getInsertTextForMatchingNode(re,s,w),insertTextFormat:Zr.Snippet,documentation:""}),re.type==="boolean"&&y.addBooleanValueCompletion(!re.value,w,p)};if(i.type==="property"&&a>i.colonOffset){var k=i.valueNode;if(k&&(a>k.offset+k.length||k.type==="object"||k.type==="array"))return;var G=i.keyNode.value;r.visit(function(re){return re.type==="property"&&re.keyNode.value===G&&re.valueNode&&A(re.valueNode),!0}),G==="$schema"&&i.parent&&!i.parent.parent&&this.addDollarSchemaCompletions(w,p)}if(i.type==="array")if(i.parent&&i.parent.type==="property"){var ne=i.parent.keyNode.value;r.visit(function(re){return re.type==="property"&&re.keyNode.value===ne&&re.valueNode&&re.valueNode.type==="array"&&re.valueNode.items.forEach(A),!0})}else i.items.forEach(A)},t.prototype.getValueCompletions=function(r,i,a,s,p,y,E){var w=this,A=s,k=null,G=null;if(a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null")&&(A=a.offset+a.length,G=a,a=a.parent),!a){this.addSchemaValueCompletions(r.schema,"",y,E);return}if(a.type==="property"&&s>a.colonOffset){var ne=a.valueNode;if(ne&&s>ne.offset+ne.length)return;k=a.keyNode.value,a=a.parent}if(a&&(k!==null||a.type==="array")){var re=this.evaluateSeparatorAfter(p,A),se=i.getMatchingSchemas(r.schema,a.offset,G);se.forEach(function(ye){if(ye.node===a&&!ye.inverted&&ye.schema){if(a.type==="array"&&ye.schema.items)if(Array.isArray(ye.schema.items)){var ge=w.findItemAtOffset(a,p,s);ge<ye.schema.items.length&&w.addSchemaValueCompletions(ye.schema.items[ge],re,y,E)}else w.addSchemaValueCompletions(ye.schema.items,re,y,E);if(ye.schema.properties){var Ee=ye.schema.properties[k];Ee&&w.addSchemaValueCompletions(Ee,re,y,E)}}}),k==="$schema"&&!a.parent&&this.addDollarSchemaCompletions(re,y),E.boolean&&(this.addBooleanValueCompletion(!0,re,y),this.addBooleanValueCompletion(!1,re,y)),E.null&&this.addNullValueCompletion(re,y)}},t.prototype.getContributedValueCompletions=function(r,i,a,s,p,y){if(!i)this.contributions.forEach(function(k){var G=k.collectDefaultCompletions(s.uri,p);G&&y.push(G)});else if((i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(i=i.parent),i.type==="property"&&a>i.colonOffset){var E=i.keyNode.value,w=i.valueNode;if(!w||a<=w.offset+w.length){var A=td(i.parent);this.contributions.forEach(function(k){var G=k.collectValueCompletions(s.uri,A,E,p);G&&y.push(G)})}}},t.prototype.addSchemaValueCompletions=function(r,i,a,s){var p=this;typeof r=="object"&&(this.addEnumValueCompletions(r,i,a),this.addDefaultValueCompletions(r,i,a),this.collectTypes(r,s),Array.isArray(r.allOf)&&r.allOf.forEach(function(y){return p.addSchemaValueCompletions(y,i,a,s)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(y){return p.addSchemaValueCompletions(y,i,a,s)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(y){return p.addSchemaValueCompletions(y,i,a,s)}))},t.prototype.addDefaultValueCompletions=function(r,i,a,s){var p=this;s===void 0&&(s=0);var y=!1;if(oo(r.default)){for(var E=r.type,w=r.default,A=s;A>0;A--)w=[w],E="array";a.add({kind:this.getSuggestionKind(E),label:this.getLabelForValue(w),insertText:this.getInsertTextForValue(w,i),insertTextFormat:Zr.Snippet}),y=!0}Array.isArray(r.examples)&&r.examples.forEach(function(k){for(var G=r.type,ne=k,re=s;re>0;re--)ne=[ne],G="array";a.add({kind:p.getSuggestionKind(G),label:p.getLabelForValue(ne),insertText:p.getInsertTextForValue(ne,i),insertTextFormat:Zr.Snippet}),y=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(k){var G=r.type,ne=k.body,re=k.label,se,ye;if(oo(ne)){for(var ge=r.type,Ee=s;Ee>0;Ee--)ne=[ne],ge="array";se=p.getInsertTextForSnippetValue(ne,i),ye=p.getFilterTextForSnippetValue(ne),re=re||p.getLabelForSnippetValue(ne)}else if(typeof k.bodyText=="string"){for(var me="",Pe="",Ge="",Ee=s;Ee>0;Ee--)me=me+Ge+`[
|
|
381
|
+
`,Pe=Pe+`
|
|
382
|
+
`+Ge+"]",Ge+=" ",G="array";se=me+Ge+k.bodyText.split(`
|
|
383
383
|
`).join(`
|
|
384
|
-
|
|
385
|
-
\r\v":{[,]}`.indexOf(s.charAt(
|
|
384
|
+
`+Ge)+Pe+i,re=re||p.sanitizeLabel(se),ye=se.replace(/[\n]/g,"")}a.add({kind:p.getSuggestionKind(G),label:re,documentation:p.fromMarkup(k.markdownDescription)||k.description,insertText:se,insertTextFormat:Zr.Snippet,filterText:ye}),y=!0}),!y&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,i,a,s+1)},t.prototype.addEnumValueCompletions=function(r,i,a){if(oo(r.const)&&a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,i),insertTextFormat:Zr.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var s=0,p=r.enum.length;s<p;s++){var y=r.enum[s],E=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&s<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?E=this.fromMarkup(r.markdownEnumDescriptions[s]):r.enumDescriptions&&s<r.enumDescriptions.length&&(E=r.enumDescriptions[s]),a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(y),insertText:this.getInsertTextForValue(y,i),insertTextFormat:Zr.Snippet,documentation:E})}},t.prototype.collectTypes=function(r,i){if(!(Array.isArray(r.enum)||oo(r.const))){var a=r.type;Array.isArray(a)?a.forEach(function(s){return i[s]=!0}):i[a]=!0}},t.prototype.addFillerValueCompletions=function(r,i,a){r.object&&a.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},i),insertTextFormat:Zr.Snippet,detail:"New object",documentation:""}),r.array&&a.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],i),insertTextFormat:Zr.Snippet,detail:"New array",documentation:""})},t.prototype.addBooleanValueCompletion=function(r,i,a){a.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,i),insertTextFormat:Zr.Snippet,documentation:""})},t.prototype.addNullValueCompletion=function(r,i){i.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:Zr.Snippet,documentation:""})},t.prototype.addDollarSchemaCompletions=function(r,i){var a=this,s=this.schemaService.getRegisteredSchemaIds(function(p){return p==="http"||p==="https"});s.forEach(function(p){return i.add({kind:Jn.Module,label:a.getLabelForValue(p),filterText:a.getFilterTextForValue(p),insertText:a.getInsertTextForValue(p,r),insertTextFormat:Zr.Snippet,documentation:""})})},t.prototype.sanitizeLabel=function(r){return r=r.replace(/[\n]/g,"\u21B5"),r.length>57&&(r=r.substr(0,57).trim()+"..."),r},t.prototype.getLabelForValue=function(r){return this.sanitizeLabel(JSON.stringify(r))},t.prototype.getFilterTextForValue=function(r){return JSON.stringify(r)},t.prototype.getFilterTextForSnippetValue=function(r){return JSON.stringify(r).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},t.prototype.getLabelForSnippetValue=function(r){var i=JSON.stringify(r);return i=i.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1"),this.sanitizeLabel(i)},t.prototype.getInsertTextForPlainText=function(r){return r.replace(/[\\\$\}]/g,"\\$&")},t.prototype.getInsertTextForValue=function(r,i){var a=JSON.stringify(r,null," ");return a==="{}"?"{$1}"+i:a==="[]"?"[$1]"+i:this.getInsertTextForPlainText(a+i)},t.prototype.getInsertTextForSnippetValue=function(r,i){var a=function(s){return typeof s=="string"&&s[0]==="^"?s.substr(1):JSON.stringify(s)};return rd(r,"",a)+i},t.prototype.getInsertTextForGuessedValue=function(r,i){switch(typeof r){case"object":return r===null?"${1:null}"+i:this.getInsertTextForValue(r,i);case"string":var a=JSON.stringify(r);return a=a.substr(1,a.length-2),a=this.getInsertTextForPlainText(a),'"${1:'+a+'}"'+i;case"number":case"boolean":return"${1:"+JSON.stringify(r)+"}"+i}return this.getInsertTextForValue(r,i)},t.prototype.getSuggestionKind=function(r){if(Array.isArray(r)){var i=r;r=i.length>0?i[0]:null}if(!r)return Jn.Value;switch(r){case"string":return Jn.Value;case"object":return Jn.Module;case"property":return Jn.Property;default:return Jn.Value}},t.prototype.getLabelTextForMatchingNode=function(r,i){switch(r.type){case"array":return"[]";case"object":return"{}";default:var a=i.getText().substr(r.offset,r.length);return a}},t.prototype.getInsertTextForMatchingNode=function(r,i,a){switch(r.type){case"array":return this.getInsertTextForValue([],a);case"object":return this.getInsertTextForValue({},a);default:var s=i.getText().substr(r.offset,r.length)+a;return this.getInsertTextForPlainText(s)}},t.prototype.getInsertTextForProperty=function(r,i,a,s){var p=this.getInsertTextForValue(r,"");if(!a)return p;var y=p+": ",E,w=0;if(i){if(Array.isArray(i.defaultSnippets)){if(i.defaultSnippets.length===1){var A=i.defaultSnippets[0].body;oo(A)&&(E=this.getInsertTextForSnippetValue(A,""))}w+=i.defaultSnippets.length}if(i.enum&&(!E&&i.enum.length===1&&(E=this.getInsertTextForGuessedValue(i.enum[0],"")),w+=i.enum.length),oo(i.default)&&(E||(E=this.getInsertTextForGuessedValue(i.default,"")),w++),w===0){var k=Array.isArray(i.type)?i.type[0]:i.type;switch(k||(i.properties?k="object":i.items&&(k="array")),k){case"boolean":E="$1";break;case"string":E='"$1"';break;case"object":E="{$1}";break;case"array":E="[$1]";break;case"number":case"integer":E="${1:0}";break;case"null":E="${1:null}";break;default:return p}}}return(!E||w>1)&&(E="$1"),y+E+s},t.prototype.getCurrentWord=function(r,i){for(var a=i-1,s=r.getText();a>=0&&`
|
|
385
|
+
\r\v":{[,]}`.indexOf(s.charAt(a))===-1;)a--;return s.substring(a+1,i)},t.prototype.evaluateSeparatorAfter=function(r,i){var a=ls(r.getText(),!0);a.setPosition(i);var s=a.scan();switch(s){case 5:case 2:case 4:case 17:return"";default:return","}},t.prototype.findItemAtOffset=function(r,i,a){for(var s=ls(i.getText(),!0),p=r.items,y=p.length-1;y>=0;y--){var E=p[y];if(a>E.offset+E.length){s.setPosition(E.offset+E.length);var w=s.scan();return w===5&&a>=s.getTokenOffset()+s.getTokenLength()?y+1:y}else if(a>=E.offset)return y}return 0},t.prototype.isInComment=function(r,i,a){var s=ls(r.getText(),!1);s.setPosition(i);for(var p=s.scan();p!==17&&s.getTokenOffset()+s.getTokenLength()<a;)p=s.scan();return(p===12||p===13)&&s.getTokenOffset()<=a},t.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:so.Markdown,value:r}},t.prototype.doesSupportMarkdown=function(){if(!oo(this.supportsMarkdown)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=r&&r.completionItem&&Array.isArray(r.completionItem.documentationFormat)&&r.completionItem.documentationFormat.indexOf(so.Markdown)!==-1}return this.supportsMarkdown},t.prototype.doesSupportsCommitCharacters=function(){if(!oo(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},t}(),Dg=function(){function t(r,i,a){i===void 0&&(i=[]),this.schemaService=r,this.contributions=i,this.promise=a||Promise}return t.prototype.doHover=function(r,i,a){var s=r.offsetAt(i),p=a.getNodeFromOffset(s);if(!p||(p.type==="object"||p.type==="array")&&s>p.offset+1&&s<p.offset+p.length-1)return this.promise.resolve(null);var y=p;if(p.type==="string"){var E=p.parent;if(E&&E.type==="property"&&E.keyNode===p&&(p=E.valueNode,!p))return this.promise.resolve(null)}for(var w=lr.create(r.positionAt(y.offset),r.positionAt(y.offset+y.length)),A=function(se){var ye={contents:se,range:w};return ye},k=td(p),G=this.contributions.length-1;G>=0;G--){var ne=this.contributions[G],re=ne.getInfoContribution(r.uri,k);if(re)return re.then(function(se){return A(se)})}return this.schemaService.getSchemaForResource(r.uri,a).then(function(se){if(se){var ye=a.getMatchingSchemas(se.schema,p.offset),ge=null,Ee=null,me=null,Pe=null;ye.every(function(je){if(je.node===p&&!je.inverted&&je.schema&&(ge=ge||je.schema.title,Ee=Ee||je.schema.markdownDescription||id(je.schema.description),je.schema.enum)){var He=je.schema.enum.indexOf(Oo(p));je.schema.markdownEnumDescriptions?me=je.schema.markdownEnumDescriptions[He]:je.schema.enumDescriptions&&(me=id(je.schema.enumDescriptions[He])),me&&(Pe=je.schema.enum[He],typeof Pe!="string"&&(Pe=JSON.stringify(Pe)))}return!0});var Ge="";return ge&&(Ge=id(ge)),Ee&&(Ge.length>0&&(Ge+=`
|
|
386
386
|
|
|
387
|
-
`)
|
|
387
|
+
`),Ge+=Ee),me&&(Ge.length>0&&(Ge+=`
|
|
388
388
|
|
|
389
|
-
`)
|
|
389
|
+
`),Ge+="`"+Ng(Pe)+"`: "+me),A([Ge])}return null})},t}();function id(t){if(t){var r=t.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
|
|
390
390
|
|
|
391
|
-
$3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Ng(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var Bg=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var p in s)s.hasOwnProperty(p)&&(o[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),Vr,Ml;if(typeof process=="object")Ml=!1;else if(typeof navigator=="object"){var Ug=navigator.userAgent;Ml=Ug.indexOf("Windows")>=0}function $m(t){return 55296<=t&&t<=56319}function Km(t){return 56320<=t&&t<=57343}function Ym(t){return t>=97&&t<=102}function jg(t){return t>=97&&t<=122}function Vg(t){return t>=65&&t<=90}function Jm(t){return jg(t)||Vg(t)}var Wg=/^\w[\w\d+.-]*$/,Hg=/^\//,zg=/^\/\//;function Gg(t,r){if(!t.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!Wg.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Hg.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(zg.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function $g(t,r){return!t&&!r?"file":t}function Kg(t,r){switch(t){case"https":case"http":case"file":r?r[0]!==gi&&(r=gi+r):r=gi;break}return r}var pr="",gi="/",Yg=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,ad=function(){function t(r,i,o,s,p,m){m===void 0&&(m=!1),typeof r=="object"?(this.scheme=r.scheme||pr,this.authority=r.authority||pr,this.path=r.path||pr,this.query=r.query||pr,this.fragment=r.fragment||pr):(this.scheme=$g(r,m),this.authority=i||pr,this.path=Kg(this.scheme,o||pr),this.query=s||pr,this.fragment=p||pr,Gg(this,m))}return t.isUri=function(r){return r instanceof t?!0:r?typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="function"&&typeof r.with=="function"&&typeof r.toString=="function":!1},Object.defineProperty(t.prototype,"fsPath",{get:function(){return Qp(this,!1)},enumerable:!0,configurable:!0}),t.prototype.with=function(r){if(!r)return this;var i=r.scheme,o=r.authority,s=r.path,p=r.query,m=r.fragment;return i===void 0?i=this.scheme:i===null&&(i=pr),o===void 0?o=this.authority:o===null&&(o=pr),s===void 0?s=this.path:s===null&&(s=pr),p===void 0?p=this.query:p===null&&(p=pr),m===void 0?m=this.fragment:m===null&&(m=pr),i===this.scheme&&o===this.authority&&s===this.path&&p===this.query&&m===this.fragment?this:new fs(i,o,s,p,m)},t.parse=function(r,i){i===void 0&&(i=!1);var o=Yg.exec(r);return o?new fs(o[2]||pr,Af(o[4]||pr),Af(o[5]||pr),Af(o[7]||pr),Af(o[9]||pr),i):new fs(pr,pr,pr,pr,pr)},t.file=function(r){var i=pr;if(Ml&&(r=r.replace(/\\/g,gi)),r[0]===gi&&r[1]===gi){var o=r.indexOf(gi,2);o===-1?(i=r.substring(2),r=gi):(i=r.substring(2,o),r=r.substring(o)||gi)}return new fs("file",i,r,pr,pr)},t.from=function(r){return new fs(r.scheme,r.authority,r.path,r.query,r.fragment)},t.prototype.toString=function(r){return r===void 0&&(r=!1),od(this,r)},t.prototype.toJSON=function(){return this},t.revive=function(r){if(r){if(r instanceof t)return r;var i=new fs(r);return i._formatted=r.external,i._fsPath=r._sep===Yp?r.fsPath:null,i}else return r},t}(),Yp=Ml?1:void 0,fs=function(t){Bg(r,t);function r(){var i=t!==null&&t.apply(this,arguments)||this;return i._formatted=null,i._fsPath=null,i}return Object.defineProperty(r.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Qp(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(i){return i===void 0&&(i=!1),i?od(this,!0):(this._formatted||(this._formatted=od(this,!1)),this._formatted)},r.prototype.toJSON=function(){var i={$mid:1};return this._fsPath&&(i.fsPath=this._fsPath,i._sep=Yp),this._formatted&&(i.external=this._formatted),this.path&&(i.path=this.path),this.scheme&&(i.scheme=this.scheme),this.authority&&(i.authority=this.authority),this.query&&(i.query=this.query),this.fragment&&(i.fragment=this.fragment),i},r}(ad),Jp=(Vr={},Vr[58]="%3A",Vr[47]="%2F",Vr[63]="%3F",Vr[35]="%23",Vr[91]="%5B",Vr[93]="%5D",Vr[64]="%40",Vr[33]="%21",Vr[36]="%24",Vr[38]="%26",Vr[39]="%27",Vr[40]="%28",Vr[41]="%29",Vr[42]="%2A",Vr[43]="%2B",Vr[44]="%2C",Vr[59]="%3B",Vr[61]="%3D",Vr[32]="%20",Vr);function Xp(t,r){for(var i=void 0,o=-1,s=0;s<t.length;s++){var p=t.charCodeAt(s);if(p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===45||p===46||p===95||p===126||r&&p===47)o!==-1&&(i+=encodeURIComponent(t.substring(o,s)),o=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));var m=Jp[p];m!==void 0?(o!==-1&&(i+=encodeURIComponent(t.substring(o,s)),o=-1),i+=m):o===-1&&(o=s)}}return o!==-1&&(i+=encodeURIComponent(t.substring(o))),i!==void 0?i:t}function Jg(t){for(var r=void 0,i=0;i<t.length;i++){var o=t.charCodeAt(i);o===35||o===63?(r===void 0&&(r=t.substr(0,i)),r+=Jp[o]):r!==void 0&&(r+=t[i])}return r!==void 0?r:t}function Qp(t,r){var i;return t.authority&&t.path.length>1&&t.scheme==="file"?i="//"+t.authority+t.path:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?r?i=t.path.substr(1):i=t.path[1].toLowerCase()+t.path.substr(2):i=t.path,Ml&&(i=i.replace(/\//g,"\\")),i}function od(t,r){var i=r?Jg:Xp,o="",s=t.scheme,p=t.authority,m=t.path,E=t.query,w=t.fragment;if(s&&(o+=s,o+=":"),(p||s==="file")&&(o+=gi,o+=gi),p){var A=p.indexOf("@");if(A!==-1){var k=p.substr(0,A);p=p.substr(A+1),A=k.indexOf(":"),A===-1?o+=i(k,!1):(o+=i(k.substr(0,A),!1),o+=":",o+=i(k.substr(A+1),!1)),o+="@"}p=p.toLowerCase(),A=p.indexOf(":"),A===-1?o+=i(p,!1):(o+=i(p.substr(0,A),!1),o+=p.substr(A))}if(m){if(m.length>=3&&m.charCodeAt(0)===47&&m.charCodeAt(2)===58){var G=m.charCodeAt(1);G>=65&&G<=90&&(m="/"+String.fromCharCode(G+32)+":"+m.substr(3))}else if(m.length>=2&&m.charCodeAt(1)===58){var G=m.charCodeAt(0);G>=65&&G<=90&&(m=String.fromCharCode(G+32)+":"+m.substr(2))}o+=i(m,!0)}return E&&(o+="?",o+=i(E,!1)),w&&(o+="#",o+=r?w:Xp(w,!1)),o}function Zp(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+Zp(t.substr(3)):t}}var _p=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Af(t){return t.match(_p)?t.replace(_p,function(r){return Zp(r)}):t}var Xg=function(){function t(r){try{this.patternRegExp=new RegExp(kg(r)+"$")}catch(i){this.patternRegExp=null}this.schemas=[]}return t.prototype.addSchema=function(r){this.schemas.push(r)},t.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},t.prototype.getSchemas=function(){return this.schemas},t}(),Qg=function(){function t(r,i,o){this.service=r,this.url=i,this.dependencies={},o&&(this.unresolvedSchema=this.service.promise.resolve(new cs(o)))}return t.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},t.prototype.getResolvedSchema=function(){var r=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(i){return r.service.resolveSchemaContent(i,r.url,r.dependencies)})),this.resolvedSchema},t.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},t}(),cs=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t}(),qp=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t.prototype.getSection=function(r){return Rn(this.getSectionRecursive(r,this.schema))},t.prototype.getSectionRecursive=function(r,i){if(!i||typeof i=="boolean"||r.length===0)return i;var o=r.shift();if(i.properties&&typeof i.properties[o])return this.getSectionRecursive(r,i.properties[o]);if(i.patternProperties)for(var s=0,p=Object.keys(i.patternProperties);s<p.length;s++){var m=p[s],E=new RegExp(m);if(E.test(o))return this.getSectionRecursive(r,i.patternProperties[m])}else{if(typeof i.additionalProperties=="object")return this.getSectionRecursive(r,i.additionalProperties);if(o.match("[0-9]+")){if(Array.isArray(i.items)){var w=parseInt(o,10);if(!isNaN(w)&&i.items[w])return this.getSectionRecursive(r,i.items[w])}else if(i.items)return this.getSectionRecursive(r,i.items)}}return null},t}(),Zg=function(){function t(r,i,o){this.contextService=i,this.requestService=r,this.promiseConstructor=o||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return t.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(i){var o=ad.parse(i).scheme;return o!=="schemaservice"&&(!r||r(o))})},Object.defineProperty(t.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},t.prototype.onResourceChange=function(r){var i=this,o=!1;r=this.normalizeId(r);for(var s=[r],p=Object.keys(this.schemasById).map(function(A){return i.schemasById[A]});s.length;)for(var m=s.pop(),E=0;E<p.length;E++){var w=p[E];w&&(w.url===m||w.dependencies[m])&&(w.url!==m&&s.push(w.url),w.clearSchema(),p[E]=void 0,o=!0)}return o},t.prototype.normalizeId=function(r){try{return ad.parse(r).toString()}catch(i){return r}},t.prototype.setSchemaContributions=function(r){if(r.schemas){var i=r.schemas;for(var o in i){var s=this.normalizeId(o);this.contributionSchemas[s]=this.addSchemaHandle(s,i[o])}}if(r.schemaAssociations){var p=r.schemaAssociations;for(var m in p){var E=p[m];this.contributionAssociations[m]=E;for(var w=this.getOrAddFilePatternAssociation(m),A=0,k=E;A<k.length;A++){var G=k[A],o=this.normalizeId(G);w.addSchema(o)}}}},t.prototype.addSchemaHandle=function(r,i){var o=new Qg(this,r,i);return this.schemasById[r]=o,o},t.prototype.getOrAddSchemaHandle=function(r,i){return this.schemasById[r]||this.addSchemaHandle(r,i)},t.prototype.getOrAddFilePatternAssociation=function(r){var i=this.filePatternAssociationById[r];return i||(i=new Xg(r),this.filePatternAssociationById[r]=i,this.filePatternAssociations.push(i)),i},t.prototype.registerExternalSchema=function(r,i,o){i===void 0&&(i=null);var s=this.normalizeId(r);if(this.registeredSchemasIds[s]=!0,i)for(var p=0,m=i;p<m.length;p++){var E=m[p];this.getOrAddFilePatternAssociation(E).addSchema(s)}return o?this.addSchemaHandle(s,o):this.getOrAddSchemaHandle(s)},t.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var r in this.contributionSchemas)this.schemasById[r]=this.contributionSchemas[r],this.registeredSchemasIds[r]=!0;for(var i in this.contributionAssociations)for(var o=this.getOrAddFilePatternAssociation(i),s=0,p=this.contributionAssociations[i];s<p.length;s++){var m=p[s],r=this.normalizeId(m);o.addSchema(r)}},t.prototype.getResolvedSchema=function(r){var i=this.normalizeId(r),o=this.schemasById[i];return o?o.getResolvedSchema():this.promise.resolve(null)},t.prototype.loadSchema=function(r){if(!this.requestService){var i="Unable to load schema from '"+Ef(r)+"'. No schema request service available";return this.promise.resolve(new cs({},[i]))}return this.requestService(r).then(function(o){if(!o){var s="Unable to load schema from '"+Ef(r)+"': No content.";return new cs({},[s])}var p={},m=[];p=pg(o,m);var E=m.length?["Unable to parse content from '"+Ef(r)+"': Parse error at offset "+m[0].offset]:[];return new cs(p,E)},function(o){var s="Unable to load schema from '"+Ef(r)+"': "+o.toString();return new cs({},[s])})},t.prototype.resolveSchemaContent=function(r,i,o){var s=this,p=r.errors.slice(0),m=r.schema;if(m.$schema){var E=this.normalizeId(m.$schema);if(E==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new qp({},["Draft-03 schemas are not supported."]));E==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var w=this.contextService,A=function(te,fe){if(!fe)return te;var ye=te;return fe[0]==="/"&&(fe=fe.substr(1)),fe.split("/").some(function(ge){return ye=ye[ge],!ye}),ye},k=function(te,fe,ye,ge){var Ee=A(fe,ge);if(Ee)for(var we in Ee)Ee.hasOwnProperty(we)&&!te.hasOwnProperty(we)&&(te[we]=Ee[we]);else p.push("$ref '"+ge+"' in '"+ye+"' can not be resolved.")},G=function(te,fe,ye,ge,Ee){w&&!/^\w+:\/\/.*/.test(fe)&&(fe=w.resolveRelativePath(fe,ge)),fe=s.normalizeId(fe);var we=s.getOrAddSchemaHandle(fe);return we.getUnresolvedSchema().then(function(Te){if(Ee[fe]=!0,Te.errors.length){var $e=ye?fe+"#"+ye:fe;p.push("Problems loading reference '"+$e+"': "+Te.errors[0]+".")}return k(te,Te.schema,fe,ye),ne(te,Te.schema,fe,we.dependencies)})},ne=function(te,fe,ye,ge){if(!te||typeof te!="object")return Promise.resolve(null);for(var Ee=[te],we=[],Te=[],$e=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var ze=0,et=We;ze<et.length;ze++){var At=et[ze];typeof At=="object"&&Ee.push(At)}},je=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var ze=0,et=We;ze<et.length;ze++){var At=et[ze];if(typeof At=="object")for(var Nt in At){var Ht=At[Nt];typeof Ht=="object"&&Ee.push(Ht)}}},He=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var ze=0,et=We;ze<et.length;ze++){var At=et[ze];if(Array.isArray(At))for(var Nt=0,Ht=At;Nt<Ht.length;Nt++){var ar=Ht[Nt];typeof ar=="object"&&Ee.push(ar)}}},Ne=function(We){for(var Je=[];We.$ref;){var ze=We.$ref,et=ze.split("#",2);if(delete We.$ref,et[0].length>0){Te.push(G(We,et[0],et[1],ye,ge));return}else Je.indexOf(ze)===-1&&(k(We,fe,ye,et[1]),Je.push(ze))}$e(We.items,We.additionalProperties,We.not,We.contains,We.propertyNames,We.if,We.then,We.else),je(We.definitions,We.properties,We.patternProperties,We.dependencies),He(We.anyOf,We.allOf,We.oneOf,We.items)};Ee.length;){var Ve=Ee.pop();we.indexOf(Ve)>=0||(we.push(Ve),Ne(Ve))}return s.promise.all(Te)};return ne(m,m,i,o).then(function(te){return new qp(m,p)})},t.prototype.getSchemaForResource=function(r,i){if(i&&i.root&&i.root.type==="object"){var o=i.root.properties.filter(function(fe){return fe.keyNode.value==="$schema"&&fe.valueNode&&fe.valueNode.type==="string"});if(o.length>0){var s=Ca(o[0].valueNode);if(s&&Fg(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var p=this.normalizeId(s);return this.getOrAddSchemaHandle(p).getResolvedSchema()}}}for(var m=Object.create(null),E=[],w=0,A=this.filePatternAssociations;w<A.length;w++){var k=A[w];if(k.matchesPattern(r))for(var G=0,ne=k.getSchemas();G<ne.length;G++){var te=ne[G];m[te]||(E.push(te),m[te]=!0)}}return E.length>0?this.createCombinedSchema(r,E).getResolvedSchema():this.promise.resolve(null)},t.prototype.createCombinedSchema=function(r,i){if(i.length===1)return this.getOrAddSchemaHandle(i[0]);var o="schemaservice://combinedSchema/"+encodeURIComponent(r),s={allOf:i.map(function(p){return{$ref:p}})};return this.addSchemaHandle(o,s)},t}();function Ef(t){try{}catch(r){}return t}var _g=function(){function t(r,i){this.jsonSchemaService=r,this.promise=i,this.validationEnabled=!0}return t.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:$t.Error)},t.prototype.doValidation=function(r,i,o,s){var p=this;if(!this.validationEnabled)return this.promise.resolve([]);var m=[],E={},w=function(G){var ne=G.range.start.line+" "+G.range.start.character+" "+G.message;E[ne]||(E[ne]=!0,m.push(G))},A=function(G){var ne=o?rh(o.trailingCommas):$t.Error,te=o?rh(o.comments):p.commentSeverity;if(G){if(G.errors.length&&i.root){var fe=i.root,ye=fe.type==="object"?fe.properties[0]:null;if(ye&&ye.keyNode.value==="$schema"){var ge=ye.valueNode||ye,Ee=lr.create(r.positionAt(ge.offset),r.positionAt(ge.offset+ge.length));w(oa.create(Ee,G.errors[0],$t.Warning,tr.SchemaResolveError))}else{var Ee=lr.create(r.positionAt(fe.offset),r.positionAt(fe.offset+1));w(oa.create(Ee,G.errors[0],$t.Warning,tr.SchemaResolveError))}}else{var we=i.validate(r,G.schema);we&&we.forEach(w)}eh(G.schema)&&(te=void 0),th(G.schema)&&(ne=void 0)}for(var Te=0,$e=i.syntaxErrors;Te<$e.length;Te++){var je=$e[Te];if(je.code===tr.TrailingComma){if(typeof ne!="number")continue;je.severity=ne}w(je)}if(typeof te=="number"){var He="Comments are not permitted in JSON.";i.comments.forEach(function(Ne){w(oa.create(Ne,He,te,tr.CommentNotPermitted))})}return m};if(s){var k=s.id||"schemaservice://untitled/"+qg++;return this.jsonSchemaService.resolveSchemaContent(new cs(s),k,{}).then(function(G){return A(G)})}return this.jsonSchemaService.getSchemaForResource(r.uri,i).then(function(G){return A(G)})},t}(),qg=0;function eh(t){if(t&&typeof t=="object"){if(Mi(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r],s=eh(o);if(Mi(s))return s}}}function th(t){if(t&&typeof t=="object"){if(Mi(t.allowTrailingCommas))return t.allowTrailingCommas;if(Mi(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r],s=th(o);if(Mi(s))return s}}}function rh(t){switch(t){case"error":return $t.Error;case"warning":return $t.Warning;case"ignore":return}}var nh=48,ey=57,ty=65,Cf=97,ry=102;function Wr(t){return t<nh?0:t<=ey?t-nh:(t<Cf&&(t+=Cf-ty),t>=Cf&&t<=ry?t-Cf+10:0)}function ny(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:Wr(t.charCodeAt(1))*17/255,green:Wr(t.charCodeAt(2))*17/255,blue:Wr(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Wr(t.charCodeAt(1))*17/255,green:Wr(t.charCodeAt(2))*17/255,blue:Wr(t.charCodeAt(3))*17/255,alpha:Wr(t.charCodeAt(4))*17/255};case 7:return{red:(Wr(t.charCodeAt(1))*16+Wr(t.charCodeAt(2)))/255,green:(Wr(t.charCodeAt(3))*16+Wr(t.charCodeAt(4)))/255,blue:(Wr(t.charCodeAt(5))*16+Wr(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Wr(t.charCodeAt(1))*16+Wr(t.charCodeAt(2)))/255,green:(Wr(t.charCodeAt(3))*16+Wr(t.charCodeAt(4)))/255,blue:(Wr(t.charCodeAt(5))*16+Wr(t.charCodeAt(6)))/255,alpha:(Wr(t.charCodeAt(7))*16+Wr(t.charCodeAt(8)))/255}}return null}function Xm(t,r,i,o){return o===void 0&&(o=1),{red:t/255,green:r/255,blue:i/255,alpha:o}}var iy=function(){function t(r){this.schemaService=r}return t.prototype.findDocumentSymbols=function(r,i,o){var s=this;o===void 0&&(o={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var m=o.resultLimit,E=r.uri;if((E==="vscode://defaultsettings/keybindings.json"||nd(E.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],A=0,k=p.items;A<k.length;A++){var G=k[A];if(G.type==="object")for(var ne=0,te=G.properties;ne<te.length;ne++){var fe=te[ne];if(fe.keyNode.value==="key"&&fe.valueNode){var ye=Tl.create(r.uri,Oa(r,G));if(w.push({name:Ca(fe.valueNode),kind:Li.Function,location:ye}),m--,m<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(E),w}}}return w}var ge=function(we,Te,$e){return m>=0&&(Te.type==="array"?Te.items.forEach(function(je){return ge(we,je,$e)}):Te.type==="object"&&Te.properties.forEach(function(je){if(m>=0){var He=je.valueNode;if(He){m--;var Ne=Tl.create(r.uri,Oa(r,je)),Ve=$e?$e+"."+je.keyNode.value:je.keyNode.value;we.push({name:s.getKeyLabel(je),kind:s.getSymbolKind(He.type),location:Ne,containerName:$e}),ge(we,He,Ve)}}})),we},Ee=ge([],p,void 0);return m<0&&(Ee.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(E)),Ee},t.prototype.findDocumentSymbols2=function(r,i,o){var s=this;o===void 0&&(o={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var m=o.resultLimit,E=r.uri;if((E==="vscode://defaultsettings/keybindings.json"||nd(E.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],A=0,k=p.items;A<k.length;A++){var G=k[A];if(G.type==="object")for(var ne=0,te=G.properties;ne<te.length;ne++){var fe=te[ne];if(fe.keyNode.value==="key"&&fe.valueNode){var ye=Oa(r,G),ge=Oa(r,fe.keyNode);if(w.push({name:Ca(fe.valueNode),kind:Li.Function,range:ye,selectionRange:ge}),m--,m<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(E),w}}}return w}var Ee=function(Te,$e){return m>=0&&($e.type==="array"?$e.items.forEach(function(je,He){if(je&&m>=0){m--;var Ne=Oa(r,je),Ve=Ne,We=String(He),Je=Ee([],je);Te.push({name:We,kind:s.getSymbolKind(je.type),range:Ne,selectionRange:Ve,children:Je})}}):$e.type==="object"&&$e.properties.forEach(function(je){var He=je.valueNode;if(He&&m>=0){m--;var Ne=Oa(r,je),Ve=Oa(r,je.keyNode),We=Ee([],He);Te.push({name:s.getKeyLabel(je),kind:s.getSymbolKind(He.type),range:Ne,selectionRange:Ve,children:We})}})),Te},we=Ee([],p);return m<0&&(we.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(E)),we},t.prototype.getSymbolKind=function(r){switch(r){case"object":return Li.Module;case"string":return Li.String;case"number":return Li.Number;case"array":return Li.Array;case"boolean":return Li.Boolean;default:return Li.Variable}},t.prototype.getKeyLabel=function(r){var i=r.keyNode.value;return i&&(i=i.replace(/[\n]/g,"\u21B5")),i&&i.trim()?i:'"'+i+'"'},t.prototype.findDocumentColors=function(r,i,o){return this.schemaService.getSchemaForResource(r.uri,i).then(function(s){var p=[];if(s)for(var m=o&&typeof o.resultLimit=="number"?o.resultLimit:Number.MAX_VALUE,E=i.getMatchingSchemas(s.schema),w={},A=0,k=E;A<k.length;A++){var G=k[A];if(!G.inverted&&G.schema&&(G.schema.format==="color"||G.schema.format==="color-hex")&&G.node&&G.node.type==="string"){var ne=String(G.node.offset);if(!w[ne]){var te=ny(Ca(G.node));if(te){var fe=Oa(r,G.node);p.push({color:te,range:fe})}if(w[ne]=!0,m--,m<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(r.uri),p}}}return p})},t.prototype.getColorPresentations=function(r,i,o,s){var p=[],m=Math.round(o.red*255),E=Math.round(o.green*255),w=Math.round(o.blue*255);function A(G){var ne=G.toString(16);return ne.length!==2?"0"+ne:ne}var k;return o.alpha===1?k="#"+A(m)+A(E)+A(w):k="#"+A(m)+A(E)+A(w)+A(Math.round(o.alpha*255)),p.push({label:k,textEdit:vi.replace(s,JSON.stringify(k))}),p},t}();function Oa(t,r){return lr.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var ay={schemaAssociations:{},schemas:{}};function oy(t,r){var i=[],o=[],s=[],p=-1,m=ls(t.getText(),!1),E=m.scan();function w(Je){i.push(Je),o.push(s.length)}for(;E!==17;){switch(E){case 1:case 3:{var A=t.positionAt(m.getTokenOffset()).line,k={startLine:A,endLine:A,kind:E===1?"object":"array"};s.push(k);break}case 2:case 4:{var G=E===2?"object":"array";if(s.length>0&&s[s.length-1].kind===G){var k=s.pop(),ne=t.positionAt(m.getTokenOffset()).line;k&&ne>k.startLine+1&&p!==k.startLine&&(k.endLine=ne-1,w(k),p=k.startLine)}break}case 13:{var A=t.positionAt(m.getTokenOffset()).line,te=t.positionAt(m.getTokenOffset()+m.getTokenLength()).line;m.getTokenError()===1&&A+1<t.lineCount?m.setPosition(t.offsetAt(hi.create(A+1,0))):A<te&&(w({startLine:A,endLine:te,kind:Pl.Comment}),p=A);break}case 12:{var fe=t.getText().substr(m.getTokenOffset(),m.getTokenLength()),ye=fe.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ye){var ne=t.positionAt(m.getTokenOffset()).line;if(ye[1]){var k={startLine:ne,endLine:ne,kind:Pl.Region};s.push(k)}else{for(var ge=s.length-1;ge>=0&&s[ge].kind!==Pl.Region;)ge--;if(ge>=0){var k=s[ge];s.length=ge,ne>k.startLine&&p!==k.startLine&&(k.endLine=ne,w(k),p=k.startLine)}}}break}}E=m.scan()}var Ee=r&&r.rangeLimit;if(typeof Ee!="number"||i.length<=Ee)return i;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(t.uri);for(var we=[],Te=0,$e=o;Te<$e.length;Te++){var je=$e[Te];je<30&&(we[je]=(we[je]||0)+1)}for(var He=0,Ne=0,ge=0;ge<we.length;ge++){var Ve=we[ge];if(Ve){if(Ve+He>Ee){Ne=ge;break}He+=Ve}}for(var We=[],ge=0;ge<i.length;ge++){var je=o[ge];typeof je=="number"&&(je<Ne||je===Ne&&He++<Ee)&&We.push(i[ge])}return We}function sy(t,r,i){function o(E){for(var w=t.offsetAt(E),A=i.getNodeFromOffset(w,!0),k=[];A;){switch(A.type){case"string":case"object":case"array":var G=A.offset+1,ne=A.offset+A.length-1;G<ne&&w>=G&&w<=ne&&k.push(s(G,ne)),k.push(s(A.offset,A.offset+A.length));break;case"number":case"boolean":case"null":case"property":k.push(s(A.offset,A.offset+A.length));break}if(A.type==="property"||A.parent&&A.parent.type==="array"){var te=m(A.offset+A.length,5);te!==-1&&k.push(s(A.offset,te))}A=A.parent}for(var fe=void 0,ye=k.length-1;ye>=0;ye--)fe=wf.create(k[ye],fe);return fe||(fe=wf.create(lr.create(E,E))),fe}function s(E,w){return lr.create(t.positionAt(E),t.positionAt(w))}var p=ls(t.getText(),!0);function m(E,w){p.setPosition(E);var A=p.scan();return A===w?p.getTokenOffset()+p.getTokenLength():-1}return r.map(o)}function ly(t){var r=t.promiseConstructor||Promise,i=new Zg(t.schemaRequestService,t.workspaceContext,r);i.setSchemaContributions(ay);var o=new Lg(i,t.contributions,r,t.clientCapabilities),s=new Dg(i,t.contributions,r),p=new iy(i),m=new _g(i,r);return{configure:function(E){i.clearExternalSchemas(),E.schemas&&E.schemas.forEach(function(w){i.registerExternalSchema(w.uri,w.fileMatch,w.schema)}),m.configure(E)},resetSchema:function(E){return i.onResourceChange(E)},doValidation:m.doValidation.bind(m),parseJSONDocument:function(E){return Ig(E,{collectComments:!0})},newJSONDocument:function(E,w){return Pg(E,w)},doComplete:o.doComplete.bind(o),findDocumentSymbols:p.findDocumentSymbols.bind(p),findDocumentSymbols2:p.findDocumentSymbols2.bind(p),findColorSymbols:function(E,w){return p.findDocumentColors(E,w).then(function(A){return A.map(function(k){return k.range})})},findDocumentColors:p.findDocumentColors.bind(p),getColorPresentations:p.getColorPresentations.bind(p),doHover:s.doHover.bind(s),getFoldingRanges:oy,getSelectionRanges:sy,format:function(E,w,A){var k=void 0;if(w){var G=E.offsetAt(w.start),ne=E.offsetAt(w.end)-G;k={offset:G,length:ne}}var te={tabSize:A?A.tabSize:4,insertSpaces:A?A.insertSpaces:!0,eol:`
|
|
392
|
-
`};return yg(E.getText(),k,
|
|
391
|
+
$3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Ng(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var Bg=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var p in s)s.hasOwnProperty(p)&&(a[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function a(){this.constructor=r}r.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),Wr,Ll;if(typeof process=="object")Ll=!1;else if(typeof navigator=="object"){var Ug=navigator.userAgent;Ll=Ug.indexOf("Windows")>=0}function $m(t){return 55296<=t&&t<=56319}function Km(t){return 56320<=t&&t<=57343}function Ym(t){return t>=97&&t<=102}function jg(t){return t>=97&&t<=122}function Vg(t){return t>=65&&t<=90}function Jm(t){return jg(t)||Vg(t)}var Wg=/^\w[\w\d+.-]*$/,Hg=/^\//,zg=/^\/\//;function Gg(t,r){if(!t.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!Wg.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Hg.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(zg.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function $g(t,r){return!t&&!r?"file":t}function Kg(t,r){switch(t){case"https":case"http":case"file":r?r[0]!==gi&&(r=gi+r):r=gi;break}return r}var pr="",gi="/",Yg=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,od=function(){function t(r,i,a,s,p,y){y===void 0&&(y=!1),typeof r=="object"?(this.scheme=r.scheme||pr,this.authority=r.authority||pr,this.path=r.path||pr,this.query=r.query||pr,this.fragment=r.fragment||pr):(this.scheme=$g(r,y),this.authority=i||pr,this.path=Kg(this.scheme,a||pr),this.query=s||pr,this.fragment=p||pr,Gg(this,y))}return t.isUri=function(r){return r instanceof t?!0:r?typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="function"&&typeof r.with=="function"&&typeof r.toString=="function":!1},Object.defineProperty(t.prototype,"fsPath",{get:function(){return Zp(this,!1)},enumerable:!0,configurable:!0}),t.prototype.with=function(r){if(!r)return this;var i=r.scheme,a=r.authority,s=r.path,p=r.query,y=r.fragment;return i===void 0?i=this.scheme:i===null&&(i=pr),a===void 0?a=this.authority:a===null&&(a=pr),s===void 0?s=this.path:s===null&&(s=pr),p===void 0?p=this.query:p===null&&(p=pr),y===void 0?y=this.fragment:y===null&&(y=pr),i===this.scheme&&a===this.authority&&s===this.path&&p===this.query&&y===this.fragment?this:new fs(i,a,s,p,y)},t.parse=function(r,i){i===void 0&&(i=!1);var a=Yg.exec(r);return a?new fs(a[2]||pr,Af(a[4]||pr),Af(a[5]||pr),Af(a[7]||pr),Af(a[9]||pr),i):new fs(pr,pr,pr,pr,pr)},t.file=function(r){var i=pr;if(Ll&&(r=r.replace(/\\/g,gi)),r[0]===gi&&r[1]===gi){var a=r.indexOf(gi,2);a===-1?(i=r.substring(2),r=gi):(i=r.substring(2,a),r=r.substring(a)||gi)}return new fs("file",i,r,pr,pr)},t.from=function(r){return new fs(r.scheme,r.authority,r.path,r.query,r.fragment)},t.prototype.toString=function(r){return r===void 0&&(r=!1),ad(this,r)},t.prototype.toJSON=function(){return this},t.revive=function(r){if(r){if(r instanceof t)return r;var i=new fs(r);return i._formatted=r.external,i._fsPath=r._sep===Jp?r.fsPath:null,i}else return r},t}(),Jp=Ll?1:void 0,fs=function(t){Bg(r,t);function r(){var i=t!==null&&t.apply(this,arguments)||this;return i._formatted=null,i._fsPath=null,i}return Object.defineProperty(r.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Zp(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(i){return i===void 0&&(i=!1),i?ad(this,!0):(this._formatted||(this._formatted=ad(this,!1)),this._formatted)},r.prototype.toJSON=function(){var i={$mid:1};return this._fsPath&&(i.fsPath=this._fsPath,i._sep=Jp),this._formatted&&(i.external=this._formatted),this.path&&(i.path=this.path),this.scheme&&(i.scheme=this.scheme),this.authority&&(i.authority=this.authority),this.query&&(i.query=this.query),this.fragment&&(i.fragment=this.fragment),i},r}(od),Xp=(Wr={},Wr[58]="%3A",Wr[47]="%2F",Wr[63]="%3F",Wr[35]="%23",Wr[91]="%5B",Wr[93]="%5D",Wr[64]="%40",Wr[33]="%21",Wr[36]="%24",Wr[38]="%26",Wr[39]="%27",Wr[40]="%28",Wr[41]="%29",Wr[42]="%2A",Wr[43]="%2B",Wr[44]="%2C",Wr[59]="%3B",Wr[61]="%3D",Wr[32]="%20",Wr);function Qp(t,r){for(var i=void 0,a=-1,s=0;s<t.length;s++){var p=t.charCodeAt(s);if(p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===45||p===46||p===95||p===126||r&&p===47)a!==-1&&(i+=encodeURIComponent(t.substring(a,s)),a=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));var y=Xp[p];y!==void 0?(a!==-1&&(i+=encodeURIComponent(t.substring(a,s)),a=-1),i+=y):a===-1&&(a=s)}}return a!==-1&&(i+=encodeURIComponent(t.substring(a))),i!==void 0?i:t}function Jg(t){for(var r=void 0,i=0;i<t.length;i++){var a=t.charCodeAt(i);a===35||a===63?(r===void 0&&(r=t.substr(0,i)),r+=Xp[a]):r!==void 0&&(r+=t[i])}return r!==void 0?r:t}function Zp(t,r){var i;return t.authority&&t.path.length>1&&t.scheme==="file"?i="//"+t.authority+t.path:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?r?i=t.path.substr(1):i=t.path[1].toLowerCase()+t.path.substr(2):i=t.path,Ll&&(i=i.replace(/\//g,"\\")),i}function ad(t,r){var i=r?Jg:Qp,a="",s=t.scheme,p=t.authority,y=t.path,E=t.query,w=t.fragment;if(s&&(a+=s,a+=":"),(p||s==="file")&&(a+=gi,a+=gi),p){var A=p.indexOf("@");if(A!==-1){var k=p.substr(0,A);p=p.substr(A+1),A=k.indexOf(":"),A===-1?a+=i(k,!1):(a+=i(k.substr(0,A),!1),a+=":",a+=i(k.substr(A+1),!1)),a+="@"}p=p.toLowerCase(),A=p.indexOf(":"),A===-1?a+=i(p,!1):(a+=i(p.substr(0,A),!1),a+=p.substr(A))}if(y){if(y.length>=3&&y.charCodeAt(0)===47&&y.charCodeAt(2)===58){var G=y.charCodeAt(1);G>=65&&G<=90&&(y="/"+String.fromCharCode(G+32)+":"+y.substr(3))}else if(y.length>=2&&y.charCodeAt(1)===58){var G=y.charCodeAt(0);G>=65&&G<=90&&(y=String.fromCharCode(G+32)+":"+y.substr(2))}a+=i(y,!0)}return E&&(a+="?",a+=i(E,!1)),w&&(a+="#",a+=r?w:Qp(w,!1)),a}function _p(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+_p(t.substr(3)):t}}var qp=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Af(t){return t.match(qp)?t.replace(qp,function(r){return _p(r)}):t}var Xg=function(){function t(r){try{this.patternRegExp=new RegExp(kg(r)+"$")}catch(i){this.patternRegExp=null}this.schemas=[]}return t.prototype.addSchema=function(r){this.schemas.push(r)},t.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},t.prototype.getSchemas=function(){return this.schemas},t}(),Qg=function(){function t(r,i,a){this.service=r,this.url=i,this.dependencies={},a&&(this.unresolvedSchema=this.service.promise.resolve(new cs(a)))}return t.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},t.prototype.getResolvedSchema=function(){var r=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(i){return r.service.resolveSchemaContent(i,r.url,r.dependencies)})),this.resolvedSchema},t.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},t}(),cs=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t}(),eh=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t.prototype.getSection=function(r){return Mn(this.getSectionRecursive(r,this.schema))},t.prototype.getSectionRecursive=function(r,i){if(!i||typeof i=="boolean"||r.length===0)return i;var a=r.shift();if(i.properties&&typeof i.properties[a])return this.getSectionRecursive(r,i.properties[a]);if(i.patternProperties)for(var s=0,p=Object.keys(i.patternProperties);s<p.length;s++){var y=p[s],E=new RegExp(y);if(E.test(a))return this.getSectionRecursive(r,i.patternProperties[y])}else{if(typeof i.additionalProperties=="object")return this.getSectionRecursive(r,i.additionalProperties);if(a.match("[0-9]+")){if(Array.isArray(i.items)){var w=parseInt(a,10);if(!isNaN(w)&&i.items[w])return this.getSectionRecursive(r,i.items[w])}else if(i.items)return this.getSectionRecursive(r,i.items)}}return null},t}(),Zg=function(){function t(r,i,a){this.contextService=i,this.requestService=r,this.promiseConstructor=a||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return t.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(i){var a=od.parse(i).scheme;return a!=="schemaservice"&&(!r||r(a))})},Object.defineProperty(t.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},t.prototype.onResourceChange=function(r){var i=this,a=!1;r=this.normalizeId(r);for(var s=[r],p=Object.keys(this.schemasById).map(function(A){return i.schemasById[A]});s.length;)for(var y=s.pop(),E=0;E<p.length;E++){var w=p[E];w&&(w.url===y||w.dependencies[y])&&(w.url!==y&&s.push(w.url),w.clearSchema(),p[E]=void 0,a=!0)}return a},t.prototype.normalizeId=function(r){try{return od.parse(r).toString()}catch(i){return r}},t.prototype.setSchemaContributions=function(r){if(r.schemas){var i=r.schemas;for(var a in i){var s=this.normalizeId(a);this.contributionSchemas[s]=this.addSchemaHandle(s,i[a])}}if(r.schemaAssociations){var p=r.schemaAssociations;for(var y in p){var E=p[y];this.contributionAssociations[y]=E;for(var w=this.getOrAddFilePatternAssociation(y),A=0,k=E;A<k.length;A++){var G=k[A],a=this.normalizeId(G);w.addSchema(a)}}}},t.prototype.addSchemaHandle=function(r,i){var a=new Qg(this,r,i);return this.schemasById[r]=a,a},t.prototype.getOrAddSchemaHandle=function(r,i){return this.schemasById[r]||this.addSchemaHandle(r,i)},t.prototype.getOrAddFilePatternAssociation=function(r){var i=this.filePatternAssociationById[r];return i||(i=new Xg(r),this.filePatternAssociationById[r]=i,this.filePatternAssociations.push(i)),i},t.prototype.registerExternalSchema=function(r,i,a){i===void 0&&(i=null);var s=this.normalizeId(r);if(this.registeredSchemasIds[s]=!0,i)for(var p=0,y=i;p<y.length;p++){var E=y[p];this.getOrAddFilePatternAssociation(E).addSchema(s)}return a?this.addSchemaHandle(s,a):this.getOrAddSchemaHandle(s)},t.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var r in this.contributionSchemas)this.schemasById[r]=this.contributionSchemas[r],this.registeredSchemasIds[r]=!0;for(var i in this.contributionAssociations)for(var a=this.getOrAddFilePatternAssociation(i),s=0,p=this.contributionAssociations[i];s<p.length;s++){var y=p[s],r=this.normalizeId(y);a.addSchema(r)}},t.prototype.getResolvedSchema=function(r){var i=this.normalizeId(r),a=this.schemasById[i];return a?a.getResolvedSchema():this.promise.resolve(null)},t.prototype.loadSchema=function(r){if(!this.requestService){var i="Unable to load schema from '"+Ef(r)+"'. No schema request service available";return this.promise.resolve(new cs({},[i]))}return this.requestService(r).then(function(a){if(!a){var s="Unable to load schema from '"+Ef(r)+"': No content.";return new cs({},[s])}var p={},y=[];p=pg(a,y);var E=y.length?["Unable to parse content from '"+Ef(r)+"': Parse error at offset "+y[0].offset]:[];return new cs(p,E)},function(a){var s="Unable to load schema from '"+Ef(r)+"': "+a.toString();return new cs({},[s])})},t.prototype.resolveSchemaContent=function(r,i,a){var s=this,p=r.errors.slice(0),y=r.schema;if(y.$schema){var E=this.normalizeId(y.$schema);if(E==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new eh({},["Draft-03 schemas are not supported."]));E==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var w=this.contextService,A=function(re,se){if(!se)return re;var ye=re;return se[0]==="/"&&(se=se.substr(1)),se.split("/").some(function(ge){return ye=ye[ge],!ye}),ye},k=function(re,se,ye,ge){var Ee=A(se,ge);if(Ee)for(var me in Ee)Ee.hasOwnProperty(me)&&!re.hasOwnProperty(me)&&(re[me]=Ee[me]);else p.push("$ref '"+ge+"' in '"+ye+"' can not be resolved.")},G=function(re,se,ye,ge,Ee){w&&!/^\w+:\/\/.*/.test(se)&&(se=w.resolveRelativePath(se,ge)),se=s.normalizeId(se);var me=s.getOrAddSchemaHandle(se);return me.getUnresolvedSchema().then(function(Pe){if(Ee[se]=!0,Pe.errors.length){var Ge=ye?se+"#"+ye:se;p.push("Problems loading reference '"+Ge+"': "+Pe.errors[0]+".")}return k(re,Pe.schema,se,ye),ne(re,Pe.schema,se,me.dependencies)})},ne=function(re,se,ye,ge){if(!re||typeof re!="object")return Promise.resolve(null);for(var Ee=[re],me=[],Pe=[],Ge=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var ze=0,et=We;ze<et.length;ze++){var At=et[ze];typeof At=="object"&&Ee.push(At)}},je=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var ze=0,et=We;ze<et.length;ze++){var At=et[ze];if(typeof At=="object")for(var Nt in At){var Ht=At[Nt];typeof Ht=="object"&&Ee.push(Ht)}}},He=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var ze=0,et=We;ze<et.length;ze++){var At=et[ze];if(Array.isArray(At))for(var Nt=0,Ht=At;Nt<Ht.length;Nt++){var or=Ht[Nt];typeof or=="object"&&Ee.push(or)}}},Ne=function(We){for(var Je=[];We.$ref;){var ze=We.$ref,et=ze.split("#",2);if(delete We.$ref,et[0].length>0){Pe.push(G(We,et[0],et[1],ye,ge));return}else Je.indexOf(ze)===-1&&(k(We,se,ye,et[1]),Je.push(ze))}Ge(We.items,We.additionalProperties,We.not,We.contains,We.propertyNames,We.if,We.then,We.else),je(We.definitions,We.properties,We.patternProperties,We.dependencies),He(We.anyOf,We.allOf,We.oneOf,We.items)};Ee.length;){var Ve=Ee.pop();me.indexOf(Ve)>=0||(me.push(Ve),Ne(Ve))}return s.promise.all(Pe)};return ne(y,y,i,a).then(function(re){return new eh(y,p)})},t.prototype.getSchemaForResource=function(r,i){if(i&&i.root&&i.root.type==="object"){var a=i.root.properties.filter(function(se){return se.keyNode.value==="$schema"&&se.valueNode&&se.valueNode.type==="string"});if(a.length>0){var s=Oo(a[0].valueNode);if(s&&Fg(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var p=this.normalizeId(s);return this.getOrAddSchemaHandle(p).getResolvedSchema()}}}for(var y=Object.create(null),E=[],w=0,A=this.filePatternAssociations;w<A.length;w++){var k=A[w];if(k.matchesPattern(r))for(var G=0,ne=k.getSchemas();G<ne.length;G++){var re=ne[G];y[re]||(E.push(re),y[re]=!0)}}return E.length>0?this.createCombinedSchema(r,E).getResolvedSchema():this.promise.resolve(null)},t.prototype.createCombinedSchema=function(r,i){if(i.length===1)return this.getOrAddSchemaHandle(i[0]);var a="schemaservice://combinedSchema/"+encodeURIComponent(r),s={allOf:i.map(function(p){return{$ref:p}})};return this.addSchemaHandle(a,s)},t}();function Ef(t){try{}catch(r){}return t}var _g=function(){function t(r,i){this.jsonSchemaService=r,this.promise=i,this.validationEnabled=!0}return t.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:$t.Error)},t.prototype.doValidation=function(r,i,a,s){var p=this;if(!this.validationEnabled)return this.promise.resolve([]);var y=[],E={},w=function(G){var ne=G.range.start.line+" "+G.range.start.character+" "+G.message;E[ne]||(E[ne]=!0,y.push(G))},A=function(G){var ne=a?nh(a.trailingCommas):$t.Error,re=a?nh(a.comments):p.commentSeverity;if(G){if(G.errors.length&&i.root){var se=i.root,ye=se.type==="object"?se.properties[0]:null;if(ye&&ye.keyNode.value==="$schema"){var ge=ye.valueNode||ye,Ee=lr.create(r.positionAt(ge.offset),r.positionAt(ge.offset+ge.length));w(ao.create(Ee,G.errors[0],$t.Warning,tr.SchemaResolveError))}else{var Ee=lr.create(r.positionAt(se.offset),r.positionAt(se.offset+1));w(ao.create(Ee,G.errors[0],$t.Warning,tr.SchemaResolveError))}}else{var me=i.validate(r,G.schema);me&&me.forEach(w)}th(G.schema)&&(re=void 0),rh(G.schema)&&(ne=void 0)}for(var Pe=0,Ge=i.syntaxErrors;Pe<Ge.length;Pe++){var je=Ge[Pe];if(je.code===tr.TrailingComma){if(typeof ne!="number")continue;je.severity=ne}w(je)}if(typeof re=="number"){var He="Comments are not permitted in JSON.";i.comments.forEach(function(Ne){w(ao.create(Ne,He,re,tr.CommentNotPermitted))})}return y};if(s){var k=s.id||"schemaservice://untitled/"+qg++;return this.jsonSchemaService.resolveSchemaContent(new cs(s),k,{}).then(function(G){return A(G)})}return this.jsonSchemaService.getSchemaForResource(r.uri,i).then(function(G){return A(G)})},t}(),qg=0;function th(t){if(t&&typeof t=="object"){if(Ri(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var a=i[r],s=th(a);if(Ri(s))return s}}}function rh(t){if(t&&typeof t=="object"){if(Ri(t.allowTrailingCommas))return t.allowTrailingCommas;if(Ri(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var a=i[r],s=rh(a);if(Ri(s))return s}}}function nh(t){switch(t){case"error":return $t.Error;case"warning":return $t.Warning;case"ignore":return}}var ih=48,ey=57,ty=65,Cf=97,ry=102;function Hr(t){return t<ih?0:t<=ey?t-ih:(t<Cf&&(t+=Cf-ty),t>=Cf&&t<=ry?t-Cf+10:0)}function ny(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:Hr(t.charCodeAt(1))*17/255,green:Hr(t.charCodeAt(2))*17/255,blue:Hr(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Hr(t.charCodeAt(1))*17/255,green:Hr(t.charCodeAt(2))*17/255,blue:Hr(t.charCodeAt(3))*17/255,alpha:Hr(t.charCodeAt(4))*17/255};case 7:return{red:(Hr(t.charCodeAt(1))*16+Hr(t.charCodeAt(2)))/255,green:(Hr(t.charCodeAt(3))*16+Hr(t.charCodeAt(4)))/255,blue:(Hr(t.charCodeAt(5))*16+Hr(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Hr(t.charCodeAt(1))*16+Hr(t.charCodeAt(2)))/255,green:(Hr(t.charCodeAt(3))*16+Hr(t.charCodeAt(4)))/255,blue:(Hr(t.charCodeAt(5))*16+Hr(t.charCodeAt(6)))/255,alpha:(Hr(t.charCodeAt(7))*16+Hr(t.charCodeAt(8)))/255}}return null}function Xm(t,r,i,a){return a===void 0&&(a=1),{red:t/255,green:r/255,blue:i/255,alpha:a}}var iy=function(){function t(r){this.schemaService=r}return t.prototype.findDocumentSymbols=function(r,i,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var y=a.resultLimit,E=r.uri;if((E==="vscode://defaultsettings/keybindings.json"||nd(E.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],A=0,k=p.items;A<k.length;A++){var G=k[A];if(G.type==="object")for(var ne=0,re=G.properties;ne<re.length;ne++){var se=re[ne];if(se.keyNode.value==="key"&&se.valueNode){var ye=Pl.create(r.uri,To(r,G));if(w.push({name:Oo(se.valueNode),kind:Li.Function,location:ye}),y--,y<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(E),w}}}return w}var ge=function(me,Pe,Ge){return y>=0&&(Pe.type==="array"?Pe.items.forEach(function(je){return ge(me,je,Ge)}):Pe.type==="object"&&Pe.properties.forEach(function(je){if(y>=0){var He=je.valueNode;if(He){y--;var Ne=Pl.create(r.uri,To(r,je)),Ve=Ge?Ge+"."+je.keyNode.value:je.keyNode.value;me.push({name:s.getKeyLabel(je),kind:s.getSymbolKind(He.type),location:Ne,containerName:Ge}),ge(me,He,Ve)}}})),me},Ee=ge([],p,void 0);return y<0&&(Ee.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(E)),Ee},t.prototype.findDocumentSymbols2=function(r,i,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var y=a.resultLimit,E=r.uri;if((E==="vscode://defaultsettings/keybindings.json"||nd(E.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],A=0,k=p.items;A<k.length;A++){var G=k[A];if(G.type==="object")for(var ne=0,re=G.properties;ne<re.length;ne++){var se=re[ne];if(se.keyNode.value==="key"&&se.valueNode){var ye=To(r,G),ge=To(r,se.keyNode);if(w.push({name:Oo(se.valueNode),kind:Li.Function,range:ye,selectionRange:ge}),y--,y<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(E),w}}}return w}var Ee=function(Pe,Ge){return y>=0&&(Ge.type==="array"?Ge.items.forEach(function(je,He){if(je&&y>=0){y--;var Ne=To(r,je),Ve=Ne,We=String(He),Je=Ee([],je);Pe.push({name:We,kind:s.getSymbolKind(je.type),range:Ne,selectionRange:Ve,children:Je})}}):Ge.type==="object"&&Ge.properties.forEach(function(je){var He=je.valueNode;if(He&&y>=0){y--;var Ne=To(r,je),Ve=To(r,je.keyNode),We=Ee([],He);Pe.push({name:s.getKeyLabel(je),kind:s.getSymbolKind(He.type),range:Ne,selectionRange:Ve,children:We})}})),Pe},me=Ee([],p);return y<0&&(me.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(E)),me},t.prototype.getSymbolKind=function(r){switch(r){case"object":return Li.Module;case"string":return Li.String;case"number":return Li.Number;case"array":return Li.Array;case"boolean":return Li.Boolean;default:return Li.Variable}},t.prototype.getKeyLabel=function(r){var i=r.keyNode.value;return i&&(i=i.replace(/[\n]/g,"\u21B5")),i&&i.trim()?i:'"'+i+'"'},t.prototype.findDocumentColors=function(r,i,a){return this.schemaService.getSchemaForResource(r.uri,i).then(function(s){var p=[];if(s)for(var y=a&&typeof a.resultLimit=="number"?a.resultLimit:Number.MAX_VALUE,E=i.getMatchingSchemas(s.schema),w={},A=0,k=E;A<k.length;A++){var G=k[A];if(!G.inverted&&G.schema&&(G.schema.format==="color"||G.schema.format==="color-hex")&&G.node&&G.node.type==="string"){var ne=String(G.node.offset);if(!w[ne]){var re=ny(Oo(G.node));if(re){var se=To(r,G.node);p.push({color:re,range:se})}if(w[ne]=!0,y--,y<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(r.uri),p}}}return p})},t.prototype.getColorPresentations=function(r,i,a,s){var p=[],y=Math.round(a.red*255),E=Math.round(a.green*255),w=Math.round(a.blue*255);function A(G){var ne=G.toString(16);return ne.length!==2?"0"+ne:ne}var k;return a.alpha===1?k="#"+A(y)+A(E)+A(w):k="#"+A(y)+A(E)+A(w)+A(Math.round(a.alpha*255)),p.push({label:k,textEdit:vi.replace(s,JSON.stringify(k))}),p},t}();function To(t,r){return lr.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var oy={schemaAssociations:{},schemas:{}};function ay(t,r){var i=[],a=[],s=[],p=-1,y=ls(t.getText(),!1),E=y.scan();function w(Je){i.push(Je),a.push(s.length)}for(;E!==17;){switch(E){case 1:case 3:{var A=t.positionAt(y.getTokenOffset()).line,k={startLine:A,endLine:A,kind:E===1?"object":"array"};s.push(k);break}case 2:case 4:{var G=E===2?"object":"array";if(s.length>0&&s[s.length-1].kind===G){var k=s.pop(),ne=t.positionAt(y.getTokenOffset()).line;k&&ne>k.startLine+1&&p!==k.startLine&&(k.endLine=ne-1,w(k),p=k.startLine)}break}case 13:{var A=t.positionAt(y.getTokenOffset()).line,re=t.positionAt(y.getTokenOffset()+y.getTokenLength()).line;y.getTokenError()===1&&A+1<t.lineCount?y.setPosition(t.offsetAt(hi.create(A+1,0))):A<re&&(w({startLine:A,endLine:re,kind:Il.Comment}),p=A);break}case 12:{var se=t.getText().substr(y.getTokenOffset(),y.getTokenLength()),ye=se.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ye){var ne=t.positionAt(y.getTokenOffset()).line;if(ye[1]){var k={startLine:ne,endLine:ne,kind:Il.Region};s.push(k)}else{for(var ge=s.length-1;ge>=0&&s[ge].kind!==Il.Region;)ge--;if(ge>=0){var k=s[ge];s.length=ge,ne>k.startLine&&p!==k.startLine&&(k.endLine=ne,w(k),p=k.startLine)}}}break}}E=y.scan()}var Ee=r&&r.rangeLimit;if(typeof Ee!="number"||i.length<=Ee)return i;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(t.uri);for(var me=[],Pe=0,Ge=a;Pe<Ge.length;Pe++){var je=Ge[Pe];je<30&&(me[je]=(me[je]||0)+1)}for(var He=0,Ne=0,ge=0;ge<me.length;ge++){var Ve=me[ge];if(Ve){if(Ve+He>Ee){Ne=ge;break}He+=Ve}}for(var We=[],ge=0;ge<i.length;ge++){var je=a[ge];typeof je=="number"&&(je<Ne||je===Ne&&He++<Ee)&&We.push(i[ge])}return We}function sy(t,r,i){function a(E){for(var w=t.offsetAt(E),A=i.getNodeFromOffset(w,!0),k=[];A;){switch(A.type){case"string":case"object":case"array":var G=A.offset+1,ne=A.offset+A.length-1;G<ne&&w>=G&&w<=ne&&k.push(s(G,ne)),k.push(s(A.offset,A.offset+A.length));break;case"number":case"boolean":case"null":case"property":k.push(s(A.offset,A.offset+A.length));break}if(A.type==="property"||A.parent&&A.parent.type==="array"){var re=y(A.offset+A.length,5);re!==-1&&k.push(s(A.offset,re))}A=A.parent}for(var se=void 0,ye=k.length-1;ye>=0;ye--)se=wf.create(k[ye],se);return se||(se=wf.create(lr.create(E,E))),se}function s(E,w){return lr.create(t.positionAt(E),t.positionAt(w))}var p=ls(t.getText(),!0);function y(E,w){p.setPosition(E);var A=p.scan();return A===w?p.getTokenOffset()+p.getTokenLength():-1}return r.map(a)}function ly(t){var r=t.promiseConstructor||Promise,i=new Zg(t.schemaRequestService,t.workspaceContext,r);i.setSchemaContributions(oy);var a=new Lg(i,t.contributions,r,t.clientCapabilities),s=new Dg(i,t.contributions,r),p=new iy(i),y=new _g(i,r);return{configure:function(E){i.clearExternalSchemas(),E.schemas&&E.schemas.forEach(function(w){i.registerExternalSchema(w.uri,w.fileMatch,w.schema)}),y.configure(E)},resetSchema:function(E){return i.onResourceChange(E)},doValidation:y.doValidation.bind(y),parseJSONDocument:function(E){return Ig(E,{collectComments:!0})},newJSONDocument:function(E,w){return Pg(E,w)},doComplete:a.doComplete.bind(a),findDocumentSymbols:p.findDocumentSymbols.bind(p),findDocumentSymbols2:p.findDocumentSymbols2.bind(p),findColorSymbols:function(E,w){return p.findDocumentColors(E,w).then(function(A){return A.map(function(k){return k.range})})},findDocumentColors:p.findDocumentColors.bind(p),getColorPresentations:p.getColorPresentations.bind(p),doHover:s.doHover.bind(s),getFoldingRanges:ay,getSelectionRanges:sy,format:function(E,w,A){var k=void 0;if(w){var G=E.offsetAt(w.start),ne=E.offsetAt(w.end)-G;k={offset:G,length:ne}}var re={tabSize:A?A.tabSize:4,insertSpaces:A?A.insertSpaces:!0,eol:`
|
|
392
|
+
`};return yg(E.getText(),k,re).map(function(se){return vi.replace(lr.create(E.positionAt(se.offset),E.positionAt(se.offset+se.length)),se.content)})}}}var Qm=o(96876),Zm=o(4328),_m=o(3256),qm=o(71707),e0=o(82801),t0=o(32095),r0=o(86081),n0=o(44254),i0=o(75019),o0=o(13837),oh=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{E(i.next(w))}catch(A){s(A)}},y=w=>{try{E(i.throw(w))}catch(A){s(A)}},E=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);E((i=i.apply(t,r)).next())});const ds=ly({});as.registerHelper("lint","json",function(t,r){return oh(this,null,function*(){const{schema:i,setError:a}=r;ds.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const s=Sf.create(r.id+".json","json",0,t),p=ds.parseJSONDocument(s),y=yield ds.doValidation(s,p);return y.length?a&&a(y[0].message):a&&a(void 0),y.map(E=>({from:as.Pos(E.range.start.line,E.range.start.character),to:as.Pos(E.range.end.line,E.range.end.character),message:E.message}))})}),as.registerHelper("hint","json",(t,r)=>oh(void 0,null,function*(){const i=r.schema;if(!i)return;ds.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const a=t.getDoc().getCursor(),s=t.getTokenAt(a),p=Sf.create(r.id+".json","json",0,t.getValue()),y=ds.parseJSONDocument(p),E=yield ds.doComplete(p,{line:a.line,character:a.ch},y),w=k=>{let G="";for(;k--;)G+=" ";return G};let A=E?E.items.map(k=>({text:k.insertText,displayText:k.label,filter:k.filterText||k.label,from:{line:k.textEdit.range.start.line,ch:k.textEdit.range.start.character},to:{line:k.textEdit.range.end.line,ch:k.textEdit.range.end.character},hint:(G,ne,re)=>{const se="_$__REDOC_CURSOR_HERE";let ye=re.text.replace(/(\$1|\${1:[^}]+})/,se)||"";if(ye=ye.replace(/(\$\d+|\${[^}]+})/g,"")||"",G.setSelection(re.from,re.to),ye.indexOf(`
|
|
393
393
|
`)>-1){const Ee=G.getLine(G.getCursor().line).search(/(\S|$)/);ye=ye.replace(/\n/g,`
|
|
394
|
-
`+w(Ee))}G.replaceSelection(ye);const ge=G.getSearchCursor(
|
|
394
|
+
`+w(Ee))}G.replaceSelection(ye);const ge=G.getSearchCursor(se,re.from);ge.findNext()&&(G.setCursor(ge.from()),ge.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(A=A.filter(k=>k.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:as.Pos(a.line,s.start),to:as.Pos(a.line,a.ch),list:A}}));var uy=Object.defineProperty,fy=(t,r,i)=>r in t?uy(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Of=(t,r,i)=>(fy(t,typeof r!="symbol"?r+"":r,i),i);const cy=wt.createGlobalStyle`
|
|
395
395
|
.cm-s-material.CodeMirror {
|
|
396
396
|
background-color: ${({theme:t})=>t.rightPanel.panelControlsBackgroundColor}!important;
|
|
397
397
|
color: ${({theme:t})=>t.colors.text.light}!important;
|
|
@@ -439,15 +439,15 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Ng(t){return t.i
|
|
|
439
439
|
flex: 1;
|
|
440
440
|
border-radius: ${({theme:t})=>t.components.panels.borderRadius};
|
|
441
441
|
}
|
|
442
|
-
`;class dy extends d.Component{constructor(){super(...arguments);Of(this,"editor"),Of(this,"_onKeyUp",(r,i)=>{/^[a-zA-Z0-9_":]$/.test(i.key)&&this.editor.execCommand("autocomplete")}),Of(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),Of(this,"refreshEditor",()=>{this.editor.refresh()})}componentDidMount(){setTimeout(()=>{this.editor.refresh()},0),document.addEventListener("click",this.refreshEditor)}componentWillUnmount(){document.removeEventListener("click",this.refreshEditor)}render(){const{value:r}=this.props.fieldState,{setValue:i,setTouched:
|
|
442
|
+
`;class dy extends d.Component{constructor(){super(...arguments);Of(this,"editor"),Of(this,"_onKeyUp",(r,i)=>{/^[a-zA-Z0-9_":]$/.test(i.key)&&this.editor.execCommand("autocomplete")}),Of(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),Of(this,"refreshEditor",()=>{this.editor.refresh()})}componentDidMount(){setTimeout(()=>{this.editor.refresh()},0),document.addEventListener("click",this.refreshEditor)}componentWillUnmount(){document.removeEventListener("click",this.refreshEditor)}render(){const{value:r}=this.props.fieldState,{setValue:i,setTouched:a,setError:s}=this.props.fieldApi,{onChange:p,onBlur:y,forwardedRef:E}=this.props;return d.createElement(d.Fragment,null,d.createElement(cy,null),d.createElement(rg.fk,{editorDidMount:this.initEditor,value:r||"",ref:E||void 0,onBeforeChange:(w,A,k)=>{i(k),p&&p(k)},onBlur:w=>{a(),y&&y(w)},options:{mode:this.props.mode||El.T.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":()=>this.editor.showHint({completeSingle:!0}),"Ctrl-Space":()=>this.editor.showHint({completeSingle:!0})},hintOptions:{id:this.props.id,completeSingle:!1,schema:this.props.schema},lint:{id:this.props.id,schema:this.props.schema,setError:s}}}))}}const py=Gr(dy);var hy=Object.defineProperty,vy=Object.defineProperties,gy=Object.getOwnPropertyDescriptors,ah=Object.getOwnPropertySymbols,yy=Object.prototype.hasOwnProperty,my=Object.prototype.propertyIsEnumerable,sh=(t,r,i)=>r in t?hy(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,xy=(t,r)=>{for(var i in r||(r={}))yy.call(r,i)&&sh(t,i,r[i]);if(ah)for(var i of ah(r))my.call(r,i)&&sh(t,i,r[i]);return t},by=(t,r)=>vy(t,gy(r)),wy=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{E(i.next(w))}catch(A){s(A)}},y=w=>{try{E(i.throw(w))}catch(A){s(A)}},E=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);E((i=i.apply(t,r)).next())});const Sy=(0,Io.Pi)(t=>{var r;const i=t.body.content,a=t.console.formApi,s=ne=>{var re;if(!i||!i.hasSample)return"";const se=(re=i.active)==null?void 0:re.examples;if(!(se==null?void 0:se[ne]))return"";const ye=se==null?void 0:se[ne].value,ge=t.properties?Zd()(ye,t.properties,{arrayMerge:kn.lN}):ye;return JSON.stringify(ge,null,2)},p=(r=i==null?void 0:i.operation)==null?void 0:r.activeExampleName,y=ne=>{var re;(re=i==null?void 0:i.operation)==null||re.activateExampleName(ne),a.setValue("body",s(ne))},E=ne=>{if(!ne)return"";if(ne.mime===El.T.URL_ENCODED)return ne.value;const re=ne.value,se=t.properties?Zd()(re,t.properties,{arrayMerge:kn.lN}):re;return JSON.stringify(se,null,2)},w=(ne,re)=>wy(void 0,null,function*(){const{setValue:se}=a;se(`body.${ne}`,re)});(0,d.useEffect)(()=>{p!==!1?p&&a.setValue("body",s(p)):a.setValue("body",JSON.stringify(t.properties||{},null,2))},[p]);const{validate:A,body:k}=t,G=ne=>d.createElement(wt.DropdownOrLabel,by(xy({},ne),{variant:"dark",fullWidth:!0,Label:tg,Dropdown:hr.Dropdown}));return d.createElement(d.Fragment,null,d.createElement(wt.MediaTypesSwitch,{content:k.content,renderDropdown:G},ne=>{var re;const se=ne.examples||{},ye=Object.keys(se),ge=ne.schema,Ee=dt(ge||{},ne.name)||ne.name===El.T.MULTIPART||ne.name===El.T.URL_ENCODED,{exampleKey:me}=(0,Gc.C6)(ne.operation,se),Pe=se[me];return d.createElement(d.Fragment,null,ye.length&&ye.length!==1&&d.createElement(Gc.b_,{examples:se,onChange:y,exampleKey:me})||null,Ee?d.createElement(qv,{mediaType:ne,formApi:a,onChange:w.bind(void 0)}):d.createElement(py,{id:"body"+t.id,field:"body",initialValue:E(Pe),schema:(((re=t==null?void 0:t.resolvedBody)==null?void 0:re.content[ne.name])||{}).schema,mode:ne.name,validate:A}))}))}),Ay=d.memo(Sy);function Ey({response:t}){return d.createElement(d.Fragment,null,d.createElement(ch,null," Body: "),Cy(t))}function Cy(t){return t.body?d.createElement(wt.JsonViewer,{data:t.body}):t.fileInfo?d.createElement(wt.SourceCodeWithFile,{fileInfo:t.fileInfo}):t.data!==null?t.data?d.createElement(wt.SourceCodeWithText,{lang:(0,wt.langFromMime)(t.headers["Content-Type"]||"text/plain"),source:t.data}):d.createElement(dh,null,d.createElement("i",null,"(no content)")):null}function Oy({headers:t}){const r=d.useContext(wt.OptionsContext),[i,a]=d.useState(!0),{maxResponseHeadersToShowInTryIt:s}=r,p=Object.keys(t),y=!!s&&p.length>s,E=y&&i?[...p].splice(0,s):[...p],w=()=>{a(!i)};return d.createElement(d.Fragment,null,d.createElement(ch,null," Headers: "),d.createElement(dh,null,E.map(A=>d.createElement("div",{key:A},d.createElement(lh,null,A,":"),d.createElement("code",null,t[A]))),y&&d.createElement(uh,{onClick:w},i?"Show more...":"Hide headers")))}const lh=wt.styled.strong`
|
|
443
443
|
text-transform: capitalize;
|
|
444
444
|
display: inline-block;
|
|
445
445
|
padding-right: 5px;
|
|
446
|
-
`,
|
|
446
|
+
`,uh=wt.styled.div`
|
|
447
447
|
cursor: pointer;
|
|
448
448
|
margin-top: 5px;
|
|
449
449
|
font-size: 14px;
|
|
450
|
-
`;
|
|
450
|
+
`;lh.displayName="HeaderName",uh.displayName="StyledShowMoreLabel";const Ty=wt.styled.div`
|
|
451
451
|
margin-bottom: 10px;
|
|
452
452
|
`,sd=wt.styled.div`
|
|
453
453
|
display: inline-block;
|
|
@@ -457,37 +457,37 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Ng(t){return t.i
|
|
|
457
457
|
color: ${({theme:t})=>t.colors.text.light};
|
|
458
458
|
`,Py=(0,wt.styled)(sd)`
|
|
459
459
|
color: ${({theme:t,code:r})=>r>=200&&r<300?t.colors.responses.success.tabTextColor:r>=300&&r<400?t.colors.responses.redirect.tabTextColor:r>400?t.colors.responses.error.tabTextColor:t.colors.responses.info.tabTextColor};
|
|
460
|
-
`,
|
|
460
|
+
`,fh=wt.styled.header`
|
|
461
461
|
font-weight: bold;
|
|
462
462
|
margin-bottom: 10px;
|
|
463
463
|
`,Iy=wt.styled.code`
|
|
464
464
|
border-left: 3px solid #ff4040;
|
|
465
465
|
padding-left: 5px;
|
|
466
|
-
`,
|
|
466
|
+
`,ch=wt.styled.div`
|
|
467
467
|
margin-bottom: 10px;
|
|
468
468
|
|
|
469
469
|
&:not(:first-child) {
|
|
470
470
|
margin-top: 10px;
|
|
471
471
|
}
|
|
472
|
-
`,
|
|
472
|
+
`,dh=(0,wt.styled)(xl.nr)`
|
|
473
473
|
border-top-left-radius: 0;
|
|
474
474
|
border-top-right-radius: 0;
|
|
475
|
-
`;class Fy extends d.PureComponent{render(){const{error:r,response:i,time:
|
|
475
|
+
`;class Fy extends d.PureComponent{render(){const{error:r,response:i,time:a}=this.props,s=i||r&&r.response,p=s&&s.data&&s.data.length||0;let y;return p>1e6?y=(p/1e6).toFixed(2)+" MB":p>1e3?y=(p/1e3).toFixed(2)+" KB":y=p+" B",r&&!r.response||!s?d.createElement(d.Fragment,null,d.createElement(fh,null," Could not get any response "),d.createElement(Iy,null,r&&r.message||"Unknown error"),d.createElement("br",null),d.createElement(fh,null," Why this might have happened:"),d.createElement("div",null," - CORS is misconfigured on the server"),d.createElement("div",null," - ","The server couldn't sent a response"),d.createElement("div",null," - No internet access"),d.createElement("div",null," - Documentation issue - contact API owner"),d.createElement("div",null," - Misconfigured security definition")):s?d.createElement(d.Fragment,null,d.createElement(Ty,null,d.createElement(Py,{code:s.status},d.createElement("span",null," Status: "),s.status," ",s.statusText),d.createElement(sd,null,d.createElement("span",null," Time: "),a,"ms"),d.createElement(sd,null,d.createElement("span",null," Size: "),y)),d.createElement("div",null,d.createElement(Oy,{headers:s.headers}),d.createElement(Ey,{response:s}))):d.createElement(d.Fragment,null,"Something went wrong")}}var ph=o(46538);function ky(t,r,i){const a=r.path||{},s=r.query||{},p=Object.keys(s);let y=(0,kr.v5)(t,a);const E=w=>i.find(A=>A.name===w&&A.in==="query");return p.length&&(y+="?"+p.map(w=>{if(!s[w])return"";const A=E(w);return A?(0,wt.serializeParameterValue)(A,s[w]):`${w}=${encodeURIComponent(s[w])}`}).filter(Boolean).join("&")),y}const My=({loading:t,operation:r,hasResponse:i,execute:a,params:s={}})=>d.createElement(Ly,null,d.createElement(ph.__,null,d.createElement(fa.FH,{type:r.httpVerb},r.httpVerb),d.createElement(ph.y$,{wrap:"true"},ky(r.path,s,r.parameters))),d.createElement(Ry,{"data-cy":"send-button",color:"primary",blinking:t,onClick:()=>!t&&a()},t?"Sending...":i?"Resend":"Send")),Ry=(0,wt.styled)(fa.zx)`
|
|
476
476
|
width: ${({theme:t})=>t.components.tryItSendButton.fullWidth?"100%":"auto"};
|
|
477
477
|
`,Ly=(0,wt.styled)(On.k1)`
|
|
478
478
|
${({theme:t})=>t.components.tryItSendButton.fullWidth?`
|
|
479
479
|
flex-direction: column;
|
|
480
480
|
align-items: flex-start;`:""};
|
|
481
|
-
`,Dy=d.memo(
|
|
481
|
+
`,Dy=d.memo(My);function Ny(t){const{name:r,value:i,description:a,variableEnum:s,onChange:p,defaultValue:y}=t,E=k=>p(k.target.value),w=k=>p(k.value),A=s?s.map((k,G)=>({value:k,idx:G})):[];return d.createElement(it.NI,null,d.createElement(it.lX,null,r,":"),A&&A.length?d.createElement(hr.Dropdown,{fullWidth:!0,variant:"dark",value:i,options:A,onChange:w}):d.createElement(io,{fullWidth:!0,value:i,onChange:E,placeholder:y}),a&&d.createElement(By,null,a))}const By=wt.styled.small`
|
|
482
482
|
display: inline-block;
|
|
483
483
|
margin-top: 5px;
|
|
484
484
|
color: #d0d0d0;
|
|
485
|
-
`;var
|
|
486
|
-
${(0,
|
|
485
|
+
`;var hh=Object.defineProperty,Uy=Object.defineProperties,jy=Object.getOwnPropertyDescriptor,Vy=Object.getOwnPropertyDescriptors,vh=Object.getOwnPropertySymbols,Wy=Object.prototype.hasOwnProperty,Hy=Object.prototype.propertyIsEnumerable,ld=(t,r,i)=>r in t?hh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,gh=(t,r)=>{for(var i in r||(r={}))Wy.call(r,i)&&ld(t,i,r[i]);if(vh)for(var i of vh(r))Hy.call(r,i)&&ld(t,i,r[i]);return t},yh=(t,r)=>Uy(t,Vy(r)),zy=(t,r,i,a)=>{for(var s=a>1?void 0:a?jy(r,i):r,p=t.length-1,y;p>=0;p--)(y=t[p])&&(s=(a?y(r,i,s):y(s))||s);return a&&s&&hh(r,i,s),s},ud=(t,r,i)=>(ld(t,typeof r!="symbol"?r+"":r,i),i);let fd=class extends d.Component{constructor(){super(...arguments);ud(this,"state",{activeIdx:0,variables:{}}),ud(this,"handleServerChange",t=>{const r=this.props.operation.servers.find(a=>a.url===t.serverUrl),i=(0,kr.mj)(r);this.props.onChange({url:t.serverUrl||"",variables:i}),(0,zt.WW)("serverUrl",t.serverUrl||""),this.setState({variables:i})}),ud(this,"handleVariableChange",(t,r)=>{const i=this.props.operation.servers[this.state.activeIdx],a=r||r===""?r:(0,kr.mj)(i)[t],s=yh(gh({},this.state.variables),{[t]:a});this.setState({variables:s}),(0,kr.UY)(t,a),this.props.onChange(yh(gh({},i),{variables:s}))})}static getDerivedStateFromProps(t){const r=t.operation,i=(0,zt.YQ)("serverUrl"),a=r.servers.findIndex(s=>s.url===i);return{activeIdx:a<0?0:a}}componentDidMount(){const t=(0,kr.fz)(this.props.operation.servers,this.state.activeIdx);this.props.onChange(t),this.setState({variables:t.variables})}render(){const{activeIdx:t}=this.state,i=this.props.operation.servers.map((s,p)=>({idx:p,serverUrl:s.url,value:`
|
|
486
|
+
${(0,kr.nq)((0,kr.v5)(s.url,this.state.variables),s.variables)}
|
|
487
487
|
- ${s.description||"Default"}
|
|
488
|
-
`})),
|
|
488
|
+
`})),a=Object.keys(this.state.variables);return d.createElement(Gy,null,d.createElement(it.lX,{htmlFor:"server"},"Target server: "),d.createElement(it.NI,null,d.createElement(hr.Dropdown,{variant:"dark",value:i[t].value,options:i,fullWidth:!0,onChange:this.handleServerChange})),a.length?a.map(s=>{var p;const y=(p=this.props.operation.servers[this.state.activeIdx].variables)==null?void 0:p[s];if(y)return d.createElement(Ny,{key:s,name:s,value:this.state.variables[s],defaultValue:y.default,onChange:E=>this.handleVariableChange(s,E),variableEnum:y.enum,description:y.description})}):null)}};fd=zy([Io.Pi],fd);const Gy=wt.styled.div`
|
|
489
489
|
margin-top: 20px;
|
|
490
|
-
`;var $y=
|
|
490
|
+
`;var $y=o(72940),Ky=Object.defineProperty,Yy=Object.defineProperties,Jy=Object.getOwnPropertyDescriptors,Tf=Object.getOwnPropertySymbols,mh=Object.prototype.hasOwnProperty,xh=Object.prototype.propertyIsEnumerable,bh=(t,r,i)=>r in t?Ky(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Xy=(t,r)=>{for(var i in r||(r={}))mh.call(r,i)&&bh(t,i,r[i]);if(Tf)for(var i of Tf(r))xh.call(r,i)&&bh(t,i,r[i]);return t},Qy=(t,r)=>Yy(t,Jy(r)),Zy=(t,r)=>{var i={};for(var a in t)mh.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&Tf)for(var a of Tf(t))r.indexOf(a)<0&&xh.call(t,a)&&(i[a]=t[a]);return i};function cd(t){var r=t,{header:i,error:a,success:s}=r,p=Zy(r,["header","error","success"]);const y=({toggle:E,expanded:w})=>d.createElement(On.h4,{onClick:E,isExpanded:w,"data-cy":p["data-cy"]},d.createElement(On.xz,null,d.createElement(On.Dx,null,i),d.createElement(wt.ShelfIcon,{direction:w?"down":"right"})),a&&d.createElement(wt.CrossIcon,{size:"14px",color:"#ff908b"})||null,s&&d.createElement(wt.LockIcon,{size:"14px",color:"#56ff26"})||null);return d.createElement(_y,Qy(Xy({},p),{header:y}))}const _y=(0,Gt.ZP)(On.s_)`
|
|
491
491
|
${On.h4} {
|
|
492
492
|
color: white;
|
|
493
493
|
border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
|
|
@@ -504,41 +504,41 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Ng(t){return t.i
|
|
|
504
504
|
border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
|
|
505
505
|
border-top: 0;
|
|
506
506
|
}
|
|
507
|
-
`;var Pf=a(25973),bh=Object.defineProperty,qy=Object.defineProperties,em=Object.getOwnPropertyDescriptor,tm=Object.getOwnPropertyDescriptors,If=Object.getOwnPropertySymbols,wh=Object.prototype.hasOwnProperty,Sh=Object.prototype.propertyIsEnumerable,dd=(t,r,i)=>r in t?bh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Kr=(t,r)=>{for(var i in r||(r={}))wh.call(r,i)&&dd(t,i,r[i]);if(If)for(var i of If(r))Sh.call(r,i)&&dd(t,i,r[i]);return t},Ln=(t,r)=>qy(t,tm(r)),Ah=(t,r)=>{var i={};for(var o in t)wh.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&If)for(var o of If(t))r.indexOf(o)<0&&Sh.call(t,o)&&(i[o]=t[o]);return i},rm=(t,r,i,o)=>{for(var s=o>1?void 0:o?em(r,i):r,p=t.length-1,m;p>=0;p--)(m=t[p])&&(s=(o?m(r,i,s):m(s))||s);return o&&s&&bh(r,i,s),s},ps=(t,r,i)=>(dd(t,typeof r!="symbol"?r+"":r,i),i),Eh=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{E(i.next(w))}catch(A){s(A)}},m=w=>{try{E(i.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,m);E((i=i.apply(t,r)).next())});function Ch(t){return t.startsWith("//")?"https:"+t:t}const nm={flex:1,display:"flex",flexDirection:"column"};let pd=class extends d.Component{constructor(t){super(t);ps(this,"formApi"),ps(this,"setFormApi",(r,i=r.getState())=>{var o=i,{values:s}=o,p=Ah(o,["values"]);this.formApi=r,setTimeout(()=>{const m=Ln(Kr({},p),{values:Ln(Kr({},s),{query:(0,Qr.FU)(s.query||{})})});this.setState({form:m})},0)}),ps(this,"handleChange",r=>{var i=r,{values:o}=i,s=Ah(i,["values"]);const p=Ln(Kr({},s),{values:Ln(Kr({},o),{query:(0,Qr.FU)(o.query||{})})});this.setState({form:p}),(0,Qr.Hc)(p),this.props.operation.setRequestValues(o)}),ps(this,"handleTabChange",r=>{this.setState({activeTab:r})}),ps(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),ps(this,"handleExecute",()=>Eh(this,null,function*(){var r,i,o,s,p,m,E;const{store:w,operation:A,onResponse:k}=this.props,{values:G,invalid:ne}=this.state.form;if(this.formApi.submitForm(),ne){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(i=(r=w==null?void 0:w.options.events)==null?void 0:r.tryItSent)==null||i.call(r,{eventType:ml.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:A.operationId,operationPath:A.path,operationHttpVerb:A.httpVerb,operationSummary:A.description});return}const te=this.props.operation.requestBody,fe=te&&te.content&&te.content.active&&te.content.active.name||"";let ye=G.body;if(/json/.test(fe))try{ye=JSON.parse(ye)}catch(ze){console.error(ze)}this.setState({loading:!0});const ge=this.state.resolvedRawSpec,Ee=(A.httpVerb||"").toLowerCase(),we=(0,zt.U2)(ge,["paths",A.path,Ee,"servers"])||(0,zt.U2)(ge,["paths",A.path,"servers"])||(0,zt.U2)(ge,["servers"]);if(!we)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const Te=we.find(ze=>this.state.server.url.endsWith(ze.url.endsWith("/")?ze.url.substring(0,ze.url.length-1):ze.url)),$e=Date.now(),je=!!window.document.documentMode;let He,Ne=G.auth;if(G.auth){const ze=Object.keys(G.auth)[0],et=(0,zt.dw)(ze);He=Ln(Kr({},ge),{components:Ln(Kr({},ge.components),{securitySchemes:Ln(Kr({},ge.components.securitySchemes),{[et]:Ln(Kr({},ge.components.securitySchemes[et]),{type:ge.components.securitySchemes[et].type==="openIdConnect"?"oauth2":ge.components.securitySchemes[et].type})})})}),Ne=Ln(Kr({},Ne),{[et]:Ne[ze]})}else He=Kr({},ge);const Ve=w.options.corsProxyUrl;Ve&&we.length&&(He.servers=we.map(ze=>Ln(Kr({},ze),{url:Ve+Ch(ze.url)})),He.paths=Ln(Kr({},He.paths),{[A.path]:Ln(Kr({},He.paths[A.path]),{[Ee]:Ln(Kr({},He.paths[A.path][Ee]),{servers:void 0}),servers:void 0})}));const We=((s=(o=te==null?void 0:te.content)==null?void 0:o.active)==null?void 0:s.name)||null;if(We&&ye&&ct(We)){const ze=Object.values(ye);ye=ze.length>1?ze:ze[0]}const Je={userFetch:je&&a(54098).fetch,server:Ve?Ve+Ch(Te.url):Te.url,serverVariables:this.state.server.variables,spec:He,pathName:A.path,method:A.httpVerb,parameters:Kr(Kr(Kr(Kr({},G.path),G.query),G.header),G.cookie),securities:{authorized:Ne},requestBody:ye,requestContentType:We,responseContentType:((p=G.header)==null?void 0:p.Accept)||null,requestInterceptor:(0,Qr.Tz)(w.options,A,Ne==null?void 0:Ne.Authorization)};try{const ze=yield Nc.execute(Je),et=ze==null?void 0:ze.data;et instanceof Blob&&(ct(et.type)&&(ze.fileInfo={rawData:et,fileName:(0,Qr.AM)(ze.headers)}),ze.data=yield et.text()),k==null||k({request:Je,response:ze}),this.setState({response:ze,error:void 0})}catch(ze){ze&&ze.response&&ze.response.data instanceof Blob&&(ze.response.data=yield ze.response.data.text(),k==null||k({request:Je,response:ze.response})),this.setState({response:void 0,error:ze})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-$e}),(E=(m=w==null?void 0:w.options.events)==null?void 0:m.tryItSent)==null||E.call(m,{eventType:ml.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:A.operationId,operationPath:A.path,operationHttpVerb:A.httpVerb,operationSummary:A.description})}})),this.state={form:{values:{path:(0,Qr.ZS)(t.operation.parameters,"path"),cookie:(0,Qr.ZS)(t.operation.parameters,"cookie"),header:(0,Qr.ZS)(t.operation.parameters,"header"),query:(0,Qr.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return Eh(this,null,function*(){const{store:t,operation:r}=this.props,i=yield t.dereferenceSpecForTryIt(r);this.setState({resolvedRawSpec:i}),this.formApi.setValues({})})}componentDidUpdate(t){t.operation!==this.props.operation&&this.setState({response:void 0,error:void 0,activeTab:0})}render(){const{operation:t,className:r,rootElement:i}=this.props,{shaking:o,activeTab:s,form:p,response:m,loading:E,error:w}=this.state,A=!!(m||w);return d.createElement(am,{shaking:o,className:r,rootElement:i},d.createElement(On.k1,null,d.createElement(Yv,{active:s,hasResponse:A,onChange:this.handleTabChange}),this.props.onClose&&d.createElement(Pf.PZ,{onClick:this.props.onClose}," \u2715 ")),d.createElement(Pf.RE,{hidden:s!==0},this.renderRequest()),d.createElement(Pf.RE,{hidden:s!==1},this.renderResponse()),d.createElement(Dy,{hasResponse:A,params:p.values,operation:t,loading:E,execute:this.handleExecute}))}renderRequest(){var t;const{operation:r,store:i,properties:o,securityDefaults:s}=this.props,{form:p,resolvedRawSpec:m,server:E}=this.state,w=p.errors||{},A=w.path||w.cookie||w.header||w.query,k=m&&wt.JsonPointer.get(m,r.pointer);let G=p.values&&p.values.auth&&Object.keys(p.values.auth)[0];(!G||!p.values.auth[G])&&(G=void 0),G&&(p.values.auth[G].token!==void 0||p.values.auth[G].client_id!==void 0||p.values.auth[G].client_secret!==void 0)&&(!p.values.auth[G].token||!p.values.auth[G].token.access_token)&&(G=void 0),G&&p.values.auth[G].username!=null&&(!p.values.auth[G].username||!p.values.auth[G].password)&&(G=void 0);const ne=r.parameters||[],te=(t=i==null?void 0:i.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!m&&d.createElement(d.Fragment,null,"Loading...")||d.createElement(d.Fragment,null,d.createElement(zl,{onChange:this.handleChange,getApi:this.setFormApi,style:Ln(Kr({},nm),{margin:0})},d.createElement(On.UQ,{initialActiveIdx:r.security.length&&G?1:0},r.security.length&&d.createElement(cd,{header:(0,so.l)("tryItAuth"),"data-cy":"security-trigger",renderChildrenHidden:!0,error:!G&&!!w.auth,success:!!G},te?d.createElement(om,{field:"auth",validate:Sl},fe=>d.createElement(of.Q,{Hook:te,props:{server:E,operation:r,onChange:fe,OAuth2:y}})):d.createElement($v,{formApi:this.formApi,form:p,operation:r,activeServer:E.url,authCorsProxyUrl:i.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&d.createElement(cd,{header:(0,so.l)("tryItBody"),"data-cy":"body-trigger",renderChildrenHidden:!0,error:!!w.body},d.createElement(Ay,{validate:im,console:this,body:r.requestBody,id:r.id,resolvedBody:k.requestBody,properties:o}))||null,ne.length&&d.createElement(cd,{header:(0,so.l)("tryItParameters"),"data-cy":"parameters-trigger",error:A,renderChildrenHidden:!0},d.createElement(Yh,{operation:r,values:p.values,errors:p.errors||{}}))||null)),d.createElement(fd,{operation:r,onChange:this.handleServerChange}))}renderResponse(){const{response:t,error:r,time:i}=this.state;return d.createElement(Fy,{response:t,error:r,time:i})}};pd=rm([Pa.Pi],pd);function im(){}function am(t){const{shaking:r,className:i,children:o,rootElement:s}=t,[p]=(0,zt.Bs)(s);return d.createElement(Pf.q2,{shaking:r,className:i,"data-cy":"console",fullWidth:p==null?void 0:p.width},o)}function om(t){const{fieldApi:r,render:i,userProps:o}=Tn(Kr({},t)),{setValue:s}=r,{children:p}=o;return i(d.createElement(d.Fragment,null,p(s)))}},68929:()=>{},17648:h=>{"use strict";var I="Function.prototype.bind called on incompatible ",a=Array.prototype.slice,c=Object.prototype.toString,v="[object Function]";h.exports=function(d){var b=this;if(typeof b!="function"||c.call(b)!==v)throw new TypeError(I+b);for(var S=a.call(arguments,1),g,L=function(){if(this instanceof g){var W=b.apply(this,S.concat(a.call(arguments)));return Object(W)===W?W:this}else return b.apply(d,S.concat(a.call(arguments)))},D=Math.max(0,b.length-S.length),B=[],j=0;j<D;j++)B.push("$"+j);if(g=Function("binder","return function ("+B.join(",")+"){ return binder.apply(this,arguments); }")(L),b.prototype){var q=function(){};q.prototype=b.prototype,g.prototype=new q,q.prototype=null}return g}},58612:(h,I,a)=>{"use strict";var c=a(17648);h.exports=Function.prototype.bind||c},40210:(h,I,a)=>{"use strict";var c,v=SyntaxError,x=Function,d=TypeError,b=function(me){try{return x('"use strict"; return ('+me+").constructor;")()}catch(be){}},S=Object.getOwnPropertyDescriptor;if(S)try{S({},"")}catch(me){S=null}var g=function(){throw new d},L=S?function(){try{return arguments.callee,g}catch(me){try{return S(arguments,"callee").get}catch(be){return g}}}():g,D=a(41405)(),B=Object.getPrototypeOf||function(me){return me.__proto__},j={},q=typeof Uint8Array=="undefined"?c:B(Uint8Array),W={"%AggregateError%":typeof AggregateError=="undefined"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?c:ArrayBuffer,"%ArrayIteratorPrototype%":D?B([][Symbol.iterator]()):c,"%AsyncFromSyncIteratorPrototype%":c,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":typeof Atomics=="undefined"?c:Atomics,"%BigInt%":typeof BigInt=="undefined"?c:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?c:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?c:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?c:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?c:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":j,"%Int8Array%":typeof Int8Array=="undefined"?c:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?c:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?c:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":D?B(B([][Symbol.iterator]())):c,"%JSON%":typeof JSON=="object"?JSON:c,"%Map%":typeof Map=="undefined"?c:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!D?c:B(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?c:Promise,"%Proxy%":typeof Proxy=="undefined"?c:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?c:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?c:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!D?c:B(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":D?B(""[Symbol.iterator]()):c,"%Symbol%":D?Symbol:c,"%SyntaxError%":v,"%ThrowTypeError%":L,"%TypedArray%":q,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array=="undefined"?c:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?c:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?c:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?c:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?c:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?c:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?c:WeakSet},R=function me(be){var he;if(be==="%AsyncFunction%")he=b("async function () {}");else if(be==="%GeneratorFunction%")he=b("function* () {}");else if(be==="%AsyncGeneratorFunction%")he=b("async function* () {}");else if(be==="%AsyncGenerator%"){var ue=me("%AsyncGeneratorFunction%");ue&&(he=ue.prototype)}else if(be==="%AsyncIteratorPrototype%"){var oe=me("%AsyncGenerator%");oe&&(he=B(oe.prototype))}return W[be]=he,he},X={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},M=a(58612),C=a(17642),V=M.call(Function.call,Array.prototype.concat),J=M.call(Function.apply,Array.prototype.splice),_=M.call(Function.call,String.prototype.replace),Q=M.call(Function.call,String.prototype.slice),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ce=/\\(\\)?/g,ee=function(be){var he=Q(be,0,1),ue=Q(be,-1);if(he==="%"&&ue!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(ue==="%"&&he!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var oe=[];return _(be,Y,function(Fe,Le,Re,Pe){oe[oe.length]=Re?_(Pe,ce,"$1"):Le||Fe}),oe},ie=function(be,he){var ue=be,oe;if(C(X,ue)&&(oe=X[ue],ue="%"+oe[0]+"%"),C(W,ue)){var Fe=W[ue];if(Fe===j&&(Fe=R(ue)),typeof Fe=="undefined"&&!he)throw new d("intrinsic "+be+" exists, but is not available. Please file an issue!");return{alias:oe,name:ue,value:Fe}}throw new v("intrinsic "+be+" does not exist!")};h.exports=function(be,he){if(typeof be!="string"||be.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof he!="boolean")throw new d('"allowMissing" argument must be a boolean');var ue=ee(be),oe=ue.length>0?ue[0]:"",Fe=ie("%"+oe+"%",he),Le=Fe.name,Re=Fe.value,Pe=!1,rt=Fe.alias;rt&&(oe=rt[0],J(ue,V([0,1],rt)));for(var Ze=1,Xe=!0;Ze<ue.length;Ze+=1){var ft=ue[Ze],ht=Q(ft,0,1),bt=Q(ft,-1);if((ht==='"'||ht==="'"||ht==="`"||bt==='"'||bt==="'"||bt==="`")&&ht!==bt)throw new v("property names with quotes must have matching quotes");if((ft==="constructor"||!Xe)&&(Pe=!0),oe+="."+ft,Le="%"+oe+"%",C(W,Le))Re=W[Le];else if(Re!=null){if(!(ft in Re)){if(!he)throw new d("base intrinsic for "+be+" exists, but the property is not available.");return}if(S&&Ze+1>=ue.length){var nt=S(Re,ft);Xe=!!nt,Xe&&"get"in nt&&!("originalValue"in nt.get)?Re=nt.get:Re=Re[ft]}else Xe=C(Re,ft),Re=Re[ft];Xe&&!Pe&&(W[Le]=Re)}}return Re}},41405:(h,I,a)=>{"use strict";var c=typeof Symbol!="undefined"&&Symbol,v=a(55419);h.exports=function(){return typeof c!="function"||typeof Symbol!="function"||typeof c("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:v()}},55419:h=>{"use strict";h.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},c=Symbol("test"),v=Object(c);if(typeof c=="string"||Object.prototype.toString.call(c)!=="[object Symbol]"||Object.prototype.toString.call(v)!=="[object Symbol]")return!1;var x=42;a[c]=x;for(c in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var d=Object.getOwnPropertySymbols(a);if(d.length!==1||d[0]!==c||!Object.prototype.propertyIsEnumerable.call(a,c))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var b=Object.getOwnPropertyDescriptor(a,c);if(b.value!==x||b.enumerable!==!0)return!1}return!0}},17642:(h,I,a)=>{"use strict";var c=a(58612);h.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},80645:(h,I)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */I.read=function(a,c,v,x,d){var b,S,g=d*8-x-1,L=(1<<g)-1,D=L>>1,B=-7,j=v?d-1:0,q=v?-1:1,W=a[c+j];for(j+=q,b=W&(1<<-B)-1,W>>=-B,B+=g;B>0;b=b*256+a[c+j],j+=q,B-=8);for(S=b&(1<<-B)-1,b>>=-B,B+=x;B>0;S=S*256+a[c+j],j+=q,B-=8);if(b===0)b=1-D;else{if(b===L)return S?NaN:(W?-1:1)*(1/0);S=S+Math.pow(2,x),b=b-D}return(W?-1:1)*S*Math.pow(2,b-x)},I.write=function(a,c,v,x,d,b){var S,g,L,D=b*8-d-1,B=(1<<D)-1,j=B>>1,q=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,W=x?0:b-1,R=x?1:-1,X=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(g=isNaN(c)?1:0,S=B):(S=Math.floor(Math.log(c)/Math.LN2),c*(L=Math.pow(2,-S))<1&&(S--,L*=2),S+j>=1?c+=q/L:c+=q*Math.pow(2,1-j),c*L>=2&&(S++,L/=2),S+j>=B?(g=0,S=B):S+j>=1?(g=(c*L-1)*Math.pow(2,d),S=S+j):(g=c*Math.pow(2,j-1)*Math.pow(2,d),S=0));d>=8;a[v+W]=g&255,W+=R,g/=256,d-=8);for(S=S<<d|g,D+=d;D>0;a[v+W]=S&255,W+=R,S/=256,D-=8);a[v+W-R]|=X*128}},5826:h=>{var I={}.toString;h.exports=Array.isArray||function(a){return I.call(a)=="[object Array]"}},57514:h=>{h.exports=window.FormData},93320:(h,I,a)=>{"use strict";var c=a(51294);h.exports=c},51294:(h,I,a)=>{"use strict";var c=a(40028),v=a(96157);function x(d){return function(){throw new Error("Function "+d+" is deprecated and cannot be used.")}}h.exports.Type=a(53899),h.exports.Schema=a(82409),h.exports.FAILSAFE_SCHEMA=a(75322),h.exports.JSON_SCHEMA=a(65796),h.exports.CORE_SCHEMA=a(17318),h.exports.DEFAULT_SAFE_SCHEMA=a(5972),h.exports.DEFAULT_FULL_SCHEMA=a(19321),h.exports.load=c.load,h.exports.loadAll=c.loadAll,h.exports.safeLoad=c.safeLoad,h.exports.safeLoadAll=c.safeLoadAll,h.exports.dump=v.dump,h.exports.safeDump=v.safeDump,h.exports.YAMLException=a(14884),h.exports.MINIMAL_SCHEMA=a(75322),h.exports.SAFE_SCHEMA=a(5972),h.exports.DEFAULT_SCHEMA=a(19321),h.exports.scan=x("scan"),h.exports.parse=x("parse"),h.exports.compose=x("compose"),h.exports.addConstructor=x("addConstructor")},25596:h=>{"use strict";function I(b){return typeof b=="undefined"||b===null}function a(b){return typeof b=="object"&&b!==null}function c(b){return Array.isArray(b)?b:I(b)?[]:[b]}function v(b,S){var g,L,D,B;if(S)for(B=Object.keys(S),g=0,L=B.length;g<L;g+=1)D=B[g],b[D]=S[D];return b}function x(b,S){var g="",L;for(L=0;L<S;L+=1)g+=b;return g}function d(b){return b===0&&Number.NEGATIVE_INFINITY===1/b}h.exports.isNothing=I,h.exports.isObject=a,h.exports.toArray=c,h.exports.repeat=x,h.exports.isNegativeZero=d,h.exports.extend=v},96157:(h,I,a)=>{"use strict";var c=a(25596),v=a(14884),x=a(19321),d=a(5972),b=Object.prototype.toString,S=Object.prototype.hasOwnProperty,g=9,L=10,D=13,B=32,j=33,q=34,W=35,R=37,X=38,M=39,C=42,V=44,J=45,_=58,Q=61,Y=62,ce=63,ee=64,ie=91,me=93,be=96,he=123,ue=124,oe=125,Fe={};Fe[0]="\\0",Fe[7]="\\a",Fe[8]="\\b",Fe[9]="\\t",Fe[10]="\\n",Fe[11]="\\v",Fe[12]="\\f",Fe[13]="\\r",Fe[27]="\\e",Fe[34]='\\"',Fe[92]="\\\\",Fe[133]="\\N",Fe[160]="\\_",Fe[8232]="\\L",Fe[8233]="\\P";var Le=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Re(N,re){var de,ae,pe,Ae,Be,Ue,Qe;if(re===null)return{};for(de={},ae=Object.keys(re),pe=0,Ae=ae.length;pe<Ae;pe+=1)Be=ae[pe],Ue=String(re[Be]),Be.slice(0,2)==="!!"&&(Be="tag:yaml.org,2002:"+Be.slice(2)),Qe=N.compiledTypeMap.fallback[Be],Qe&&S.call(Qe.styleAliases,Ue)&&(Ue=Qe.styleAliases[Ue]),de[Be]=Ue;return de}function Pe(N){var re,de,ae;if(re=N.toString(16).toUpperCase(),N<=255)de="x",ae=2;else if(N<=65535)de="u",ae=4;else if(N<=4294967295)de="U",ae=8;else throw new v("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+de+c.repeat("0",ae-re.length)+re}function rt(N){this.schema=N.schema||x,this.indent=Math.max(1,N.indent||2),this.noArrayIndent=N.noArrayIndent||!1,this.skipInvalid=N.skipInvalid||!1,this.flowLevel=c.isNothing(N.flowLevel)?-1:N.flowLevel,this.styleMap=Re(this.schema,N.styles||null),this.sortKeys=N.sortKeys||!1,this.lineWidth=N.lineWidth||80,this.noRefs=N.noRefs||!1,this.noCompatMode=N.noCompatMode||!1,this.condenseFlow=N.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ze(N,re){for(var de=c.repeat(" ",re),ae=0,pe=-1,Ae="",Be,Ue=N.length;ae<Ue;)pe=N.indexOf(`
|
|
508
|
-
`,
|
|
509
|
-
`&&(Ae+=de),Ae+=Be;return Ae}function Xe(N,
|
|
510
|
-
`+c.repeat(" ",N.indent*
|
|
511
|
-
`,pe=
|
|
507
|
+
`;var Pf=o(25973),wh=Object.defineProperty,qy=Object.defineProperties,em=Object.getOwnPropertyDescriptor,tm=Object.getOwnPropertyDescriptors,If=Object.getOwnPropertySymbols,Sh=Object.prototype.hasOwnProperty,Ah=Object.prototype.propertyIsEnumerable,dd=(t,r,i)=>r in t?wh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Yr=(t,r)=>{for(var i in r||(r={}))Sh.call(r,i)&&dd(t,i,r[i]);if(If)for(var i of If(r))Ah.call(r,i)&&dd(t,i,r[i]);return t},Ln=(t,r)=>qy(t,tm(r)),Eh=(t,r)=>{var i={};for(var a in t)Sh.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&If)for(var a of If(t))r.indexOf(a)<0&&Ah.call(t,a)&&(i[a]=t[a]);return i},rm=(t,r,i,a)=>{for(var s=a>1?void 0:a?em(r,i):r,p=t.length-1,y;p>=0;p--)(y=t[p])&&(s=(a?y(r,i,s):y(s))||s);return a&&s&&wh(r,i,s),s},ps=(t,r,i)=>(dd(t,typeof r!="symbol"?r+"":r,i),i),Ch=(t,r,i)=>new Promise((a,s)=>{var p=w=>{try{E(i.next(w))}catch(A){s(A)}},y=w=>{try{E(i.throw(w))}catch(A){s(A)}},E=w=>w.done?a(w.value):Promise.resolve(w.value).then(p,y);E((i=i.apply(t,r)).next())});function Oh(t){return t.startsWith("//")?"https:"+t:t}const nm={flex:1,display:"flex",flexDirection:"column"};let pd=class extends d.Component{constructor(t){super(t);ps(this,"formApi"),ps(this,"setFormApi",(r,i=r.getState())=>{var a=i,{values:s}=a,p=Eh(a,["values"]);this.formApi=r,setTimeout(()=>{const y=Ln(Yr({},p),{values:Ln(Yr({},s),{query:(0,kr.FU)(s.query||{})})});this.setState({form:y})},0)}),ps(this,"handleChange",r=>{var i=r,{values:a}=i,s=Eh(i,["values"]);const p=Ln(Yr({},s),{values:Ln(Yr({},a),{query:(0,kr.FU)(a.query||{})})});this.setState({form:p}),(0,kr.Hc)(p),this.props.operation.setRequestValues(a)}),ps(this,"handleTabChange",r=>{this.setState({activeTab:r})}),ps(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),ps(this,"handleExecute",()=>Ch(this,null,function*(){var r,i,a,s,p,y,E;const{store:w,operation:A,onResponse:k}=this.props,{values:G,invalid:ne}=this.state.form;if(this.formApi.submitForm(),ne){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(i=(r=w==null?void 0:w.options.events)==null?void 0:r.tryItSent)==null||i.call(r,{eventType:ml.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:A.operationId,operationPath:A.path,operationHttpVerb:A.httpVerb,operationSummary:A.description});return}const re=this.props.operation.requestBody,se=re&&re.content&&re.content.active&&re.content.active.name||"";let ye=G.body;if(/json/.test(se))try{ye=JSON.parse(ye)}catch(ze){console.error(ze)}this.setState({loading:!0});const ge=this.state.resolvedRawSpec,Ee=(A.httpVerb||"").toLowerCase(),me=(0,zt.U2)(ge,["paths",A.path,Ee,"servers"])||(0,zt.U2)(ge,["paths",A.path,"servers"])||(0,zt.U2)(ge,["servers"]);if(!me)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const Pe=me.find(ze=>this.state.server.url.endsWith(ze.url.endsWith("/")?ze.url.substring(0,ze.url.length-1):ze.url)),Ge=Date.now(),je=!!window.document.documentMode;let He,Ne=G.auth;if(G.auth){const ze=Object.keys(G.auth)[0],et=(0,zt.dw)(ze);He=Ln(Yr({},ge),{components:Ln(Yr({},ge.components),{securitySchemes:Ln(Yr({},ge.components.securitySchemes),{[et]:Ln(Yr({},ge.components.securitySchemes[et]),{type:ge.components.securitySchemes[et].type==="openIdConnect"?"oauth2":ge.components.securitySchemes[et].type})})})}),Ne=Ln(Yr({},Ne),{[et]:Ne[ze]})}else He=Yr({},ge);const Ve=w.options.corsProxyUrl;Ve&&me.length&&(He.servers=me.map(ze=>Ln(Yr({},ze),{url:Ve+Oh(ze.url)})),He.paths=Ln(Yr({},He.paths),{[A.path]:Ln(Yr({},He.paths[A.path]),{[Ee]:Ln(Yr({},He.paths[A.path][Ee]),{servers:void 0}),servers:void 0})}));const We=((s=(a=re==null?void 0:re.content)==null?void 0:a.active)==null?void 0:s.name)||null;if(We&&ye&&ct(We)){const ze=Object.values(ye);ye=ze.length>1?ze:ze[0]}const Je={userFetch:je&&o(54098).fetch,server:Ve?Ve+Oh(Pe.url):Pe.url,serverVariables:this.state.server.variables,spec:He,pathName:A.path,method:A.httpVerb,parameters:Yr(Yr(Yr(Yr({},G.path),G.query),G.header),G.cookie),securities:{authorized:Ne},requestBody:ye,requestContentType:We,responseContentType:((p=G.header)==null?void 0:p.Accept)||null,requestInterceptor:(0,kr.Tz)(w.options,A,Ne==null?void 0:Ne.Authorization)};try{const ze=yield Nc.execute(Je),et=ze==null?void 0:ze.data;et instanceof Blob&&(ct(et.type)&&(ze.fileInfo={rawData:et,fileName:(0,kr.AM)(ze.headers)}),ze.data=yield et.text()),k==null||k({request:Je,response:ze}),this.setState({response:ze,error:void 0})}catch(ze){ze&&ze.response&&ze.response.data instanceof Blob&&(ze.response.data=yield ze.response.data.text(),k==null||k({request:Je,response:ze.response})),this.setState({response:void 0,error:ze})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-Ge}),(E=(y=w==null?void 0:w.options.events)==null?void 0:y.tryItSent)==null||E.call(y,{eventType:ml.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:A.operationId,operationPath:A.path,operationHttpVerb:A.httpVerb,operationSummary:A.description})}})),this.state={form:{values:{path:(0,kr.ZS)(t.operation.parameters,"path"),cookie:(0,kr.ZS)(t.operation.parameters,"cookie"),header:(0,kr.ZS)(t.operation.parameters,"header"),query:(0,kr.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return Ch(this,null,function*(){const{store:t,operation:r}=this.props,i=yield t.dereferenceSpecForTryIt(r);this.setState({resolvedRawSpec:i}),this.formApi.setValues({})})}componentDidUpdate(t){t.operation!==this.props.operation&&this.setState({response:void 0,error:void 0,activeTab:0})}render(){const{operation:t,className:r,rootElement:i}=this.props,{shaking:a,activeTab:s,form:p,response:y,loading:E,error:w}=this.state,A=!!(y||w);return d.createElement(om,{shaking:a,className:r,rootElement:i},d.createElement(On.k1,null,d.createElement(Yv,{active:s,hasResponse:A,onChange:this.handleTabChange}),this.props.onClose&&d.createElement(Pf.PZ,{onClick:this.props.onClose}," \u2715 ")),d.createElement(Pf.RE,{hidden:s!==0},this.renderRequest()),d.createElement(Pf.RE,{hidden:s!==1},this.renderResponse()),d.createElement(Dy,{hasResponse:A,params:p.values,operation:t,loading:E,execute:this.handleExecute}))}renderRequest(){var t;const{operation:r,store:i,properties:a,securityDefaults:s}=this.props,{form:p,resolvedRawSpec:y,server:E}=this.state,w=p.errors||{},A=w.path||w.cookie||w.header||w.query,k=y&&wt.JsonPointer.get(y,r.pointer);let G=p.values&&p.values.auth&&Object.keys(p.values.auth)[0];(!G||!p.values.auth[G])&&(G=void 0),G&&(p.values.auth[G].token!==void 0||p.values.auth[G].client_id!==void 0||p.values.auth[G].client_secret!==void 0)&&(!p.values.auth[G].token||!p.values.auth[G].token.access_token)&&(G=void 0),G&&p.values.auth[G].username!=null&&(!p.values.auth[G].username||!p.values.auth[G].password)&&(G=void 0);const ne=r.parameters||[],re=(t=i==null?void 0:i.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!y&&d.createElement(d.Fragment,null,"Loading...")||d.createElement(d.Fragment,null,d.createElement(Gl,{onChange:this.handleChange,getApi:this.setFormApi,style:Ln(Yr({},nm),{margin:0})},d.createElement(On.UQ,{initialActiveIdx:r.security.length&&G?1:0},r.security.length&&d.createElement(cd,{header:(0,la.l)("tryItAuth"),"data-cy":"security-trigger",renderChildrenHidden:!0,error:!G&&!!w.auth,success:!!G},re?d.createElement(am,{field:"auth",validate:Al},se=>d.createElement(sf.Q,{Hook:re,props:{server:E,operation:r,onChange:se,OAuth2:m}})):d.createElement($v,{formApi:this.formApi,form:p,operation:r,activeServer:E.url,authCorsProxyUrl:i.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&d.createElement(cd,{header:(0,la.l)("tryItBody"),"data-cy":"body-trigger",renderChildrenHidden:!0,error:!!w.body},d.createElement(Ay,{validate:im,console:this,body:r.requestBody,id:r.id,resolvedBody:k.requestBody,properties:a}))||null,ne.length&&d.createElement(cd,{header:(0,la.l)("tryItParameters"),"data-cy":"parameters-trigger",error:A,renderChildrenHidden:!0},d.createElement(Jh,{operation:r,values:p.values,errors:p.errors||{}}))||null)),d.createElement(fd,{operation:r,onChange:this.handleServerChange}))}renderResponse(){const{response:t,error:r,time:i}=this.state;return d.createElement(Fy,{response:t,error:r,time:i})}};pd=rm([Io.Pi],pd);function im(){}function om(t){const{shaking:r,className:i,children:a,rootElement:s}=t,[p]=(0,zt.Bs)(s);return d.createElement(Pf.q2,{shaking:r,className:i,"data-cy":"console",fullWidth:p==null?void 0:p.width},a)}function am(t){const{fieldApi:r,render:i,userProps:a}=Tn(Yr({},t)),{setValue:s}=r,{children:p}=a;return i(d.createElement(d.Fragment,null,p(s)))}},68929:()=>{},17648:h=>{"use strict";var I="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,c=Object.prototype.toString,v="[object Function]";h.exports=function(d){var b=this;if(typeof b!="function"||c.call(b)!==v)throw new TypeError(I+b);for(var S=o.call(arguments,1),g,L=function(){if(this instanceof g){var W=b.apply(this,S.concat(o.call(arguments)));return Object(W)===W?W:this}else return b.apply(d,S.concat(o.call(arguments)))},D=Math.max(0,b.length-S.length),B=[],j=0;j<D;j++)B.push("$"+j);if(g=Function("binder","return function ("+B.join(",")+"){ return binder.apply(this,arguments); }")(L),b.prototype){var q=function(){};q.prototype=b.prototype,g.prototype=new q,q.prototype=null}return g}},58612:(h,I,o)=>{"use strict";var c=o(17648);h.exports=Function.prototype.bind||c},40210:(h,I,o)=>{"use strict";var c,v=SyntaxError,x=Function,d=TypeError,b=function(xe){try{return x('"use strict"; return ('+xe+").constructor;")()}catch(we){}},S=Object.getOwnPropertyDescriptor;if(S)try{S({},"")}catch(xe){S=null}var g=function(){throw new d},L=S?function(){try{return arguments.callee,g}catch(xe){try{return S(arguments,"callee").get}catch(we){return g}}}():g,D=o(41405)(),B=Object.getPrototypeOf||function(xe){return xe.__proto__},j={},q=typeof Uint8Array=="undefined"?c:B(Uint8Array),W={"%AggregateError%":typeof AggregateError=="undefined"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?c:ArrayBuffer,"%ArrayIteratorPrototype%":D?B([][Symbol.iterator]()):c,"%AsyncFromSyncIteratorPrototype%":c,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":typeof Atomics=="undefined"?c:Atomics,"%BigInt%":typeof BigInt=="undefined"?c:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?c:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?c:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?c:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?c:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":j,"%Int8Array%":typeof Int8Array=="undefined"?c:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?c:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?c:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":D?B(B([][Symbol.iterator]())):c,"%JSON%":typeof JSON=="object"?JSON:c,"%Map%":typeof Map=="undefined"?c:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!D?c:B(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?c:Promise,"%Proxy%":typeof Proxy=="undefined"?c:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?c:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?c:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!D?c:B(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":D?B(""[Symbol.iterator]()):c,"%Symbol%":D?Symbol:c,"%SyntaxError%":v,"%ThrowTypeError%":L,"%TypedArray%":q,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array=="undefined"?c:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?c:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?c:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?c:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?c:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?c:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?c:WeakSet},M=function xe(we){var he;if(we==="%AsyncFunction%")he=b("async function () {}");else if(we==="%GeneratorFunction%")he=b("function* () {}");else if(we==="%AsyncGeneratorFunction%")he=b("async function* () {}");else if(we==="%AsyncGenerator%"){var fe=xe("%AsyncGeneratorFunction%");fe&&(he=fe.prototype)}else if(we==="%AsyncIteratorPrototype%"){var ae=xe("%AsyncGenerator%");ae&&(he=B(ae.prototype))}return W[we]=he,he},X={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=o(58612),C=o(17642),V=R.call(Function.call,Array.prototype.concat),J=R.call(Function.apply,Array.prototype.splice),_=R.call(Function.call,String.prototype.replace),Q=R.call(Function.call,String.prototype.slice),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ce=/\\(\\)?/g,ee=function(we){var he=Q(we,0,1),fe=Q(we,-1);if(he==="%"&&fe!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(fe==="%"&&he!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var ae=[];return _(we,Y,function(Fe,Le,Me,Te){ae[ae.length]=Me?_(Te,ce,"$1"):Le||Fe}),ae},ie=function(we,he){var fe=we,ae;if(C(X,fe)&&(ae=X[fe],fe="%"+ae[0]+"%"),C(W,fe)){var Fe=W[fe];if(Fe===j&&(Fe=M(fe)),typeof Fe=="undefined"&&!he)throw new d("intrinsic "+we+" exists, but is not available. Please file an issue!");return{alias:ae,name:fe,value:Fe}}throw new v("intrinsic "+we+" does not exist!")};h.exports=function(we,he){if(typeof we!="string"||we.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof he!="boolean")throw new d('"allowMissing" argument must be a boolean');var fe=ee(we),ae=fe.length>0?fe[0]:"",Fe=ie("%"+ae+"%",he),Le=Fe.name,Me=Fe.value,Te=!1,rt=Fe.alias;rt&&(ae=rt[0],J(fe,V([0,1],rt)));for(var Ze=1,Xe=!0;Ze<fe.length;Ze+=1){var ft=fe[Ze],ht=Q(ft,0,1),bt=Q(ft,-1);if((ht==='"'||ht==="'"||ht==="`"||bt==='"'||bt==="'"||bt==="`")&&ht!==bt)throw new v("property names with quotes must have matching quotes");if((ft==="constructor"||!Xe)&&(Te=!0),ae+="."+ft,Le="%"+ae+"%",C(W,Le))Me=W[Le];else if(Me!=null){if(!(ft in Me)){if(!he)throw new d("base intrinsic for "+we+" exists, but the property is not available.");return}if(S&&Ze+1>=fe.length){var nt=S(Me,ft);Xe=!!nt,Xe&&"get"in nt&&!("originalValue"in nt.get)?Me=nt.get:Me=Me[ft]}else Xe=C(Me,ft),Me=Me[ft];Xe&&!Te&&(W[Le]=Me)}}return Me}},41405:(h,I,o)=>{"use strict";var c=typeof Symbol!="undefined"&&Symbol,v=o(55419);h.exports=function(){return typeof c!="function"||typeof Symbol!="function"||typeof c("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:v()}},55419:h=>{"use strict";h.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},c=Symbol("test"),v=Object(c);if(typeof c=="string"||Object.prototype.toString.call(c)!=="[object Symbol]"||Object.prototype.toString.call(v)!=="[object Symbol]")return!1;var x=42;o[c]=x;for(c in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var d=Object.getOwnPropertySymbols(o);if(d.length!==1||d[0]!==c||!Object.prototype.propertyIsEnumerable.call(o,c))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var b=Object.getOwnPropertyDescriptor(o,c);if(b.value!==x||b.enumerable!==!0)return!1}return!0}},17642:(h,I,o)=>{"use strict";var c=o(58612);h.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},80645:(h,I)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */I.read=function(o,c,v,x,d){var b,S,g=d*8-x-1,L=(1<<g)-1,D=L>>1,B=-7,j=v?d-1:0,q=v?-1:1,W=o[c+j];for(j+=q,b=W&(1<<-B)-1,W>>=-B,B+=g;B>0;b=b*256+o[c+j],j+=q,B-=8);for(S=b&(1<<-B)-1,b>>=-B,B+=x;B>0;S=S*256+o[c+j],j+=q,B-=8);if(b===0)b=1-D;else{if(b===L)return S?NaN:(W?-1:1)*(1/0);S=S+Math.pow(2,x),b=b-D}return(W?-1:1)*S*Math.pow(2,b-x)},I.write=function(o,c,v,x,d,b){var S,g,L,D=b*8-d-1,B=(1<<D)-1,j=B>>1,q=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,W=x?0:b-1,M=x?1:-1,X=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(g=isNaN(c)?1:0,S=B):(S=Math.floor(Math.log(c)/Math.LN2),c*(L=Math.pow(2,-S))<1&&(S--,L*=2),S+j>=1?c+=q/L:c+=q*Math.pow(2,1-j),c*L>=2&&(S++,L/=2),S+j>=B?(g=0,S=B):S+j>=1?(g=(c*L-1)*Math.pow(2,d),S=S+j):(g=c*Math.pow(2,j-1)*Math.pow(2,d),S=0));d>=8;o[v+W]=g&255,W+=M,g/=256,d-=8);for(S=S<<d|g,D+=d;D>0;o[v+W]=S&255,W+=M,S/=256,D-=8);o[v+W-M]|=X*128}},5826:h=>{var I={}.toString;h.exports=Array.isArray||function(o){return I.call(o)=="[object Array]"}},57514:h=>{h.exports=window.FormData},93320:(h,I,o)=>{"use strict";var c=o(51294);h.exports=c},51294:(h,I,o)=>{"use strict";var c=o(40028),v=o(96157);function x(d){return function(){throw new Error("Function "+d+" is deprecated and cannot be used.")}}h.exports.Type=o(53899),h.exports.Schema=o(82409),h.exports.FAILSAFE_SCHEMA=o(75322),h.exports.JSON_SCHEMA=o(65796),h.exports.CORE_SCHEMA=o(17318),h.exports.DEFAULT_SAFE_SCHEMA=o(5972),h.exports.DEFAULT_FULL_SCHEMA=o(19321),h.exports.load=c.load,h.exports.loadAll=c.loadAll,h.exports.safeLoad=c.safeLoad,h.exports.safeLoadAll=c.safeLoadAll,h.exports.dump=v.dump,h.exports.safeDump=v.safeDump,h.exports.YAMLException=o(14884),h.exports.MINIMAL_SCHEMA=o(75322),h.exports.SAFE_SCHEMA=o(5972),h.exports.DEFAULT_SCHEMA=o(19321),h.exports.scan=x("scan"),h.exports.parse=x("parse"),h.exports.compose=x("compose"),h.exports.addConstructor=x("addConstructor")},25596:h=>{"use strict";function I(b){return typeof b=="undefined"||b===null}function o(b){return typeof b=="object"&&b!==null}function c(b){return Array.isArray(b)?b:I(b)?[]:[b]}function v(b,S){var g,L,D,B;if(S)for(B=Object.keys(S),g=0,L=B.length;g<L;g+=1)D=B[g],b[D]=S[D];return b}function x(b,S){var g="",L;for(L=0;L<S;L+=1)g+=b;return g}function d(b){return b===0&&Number.NEGATIVE_INFINITY===1/b}h.exports.isNothing=I,h.exports.isObject=o,h.exports.toArray=c,h.exports.repeat=x,h.exports.isNegativeZero=d,h.exports.extend=v},96157:(h,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(19321),d=o(5972),b=Object.prototype.toString,S=Object.prototype.hasOwnProperty,g=9,L=10,D=13,B=32,j=33,q=34,W=35,M=37,X=38,R=39,C=42,V=44,J=45,_=58,Q=61,Y=62,ce=63,ee=64,ie=91,xe=93,we=96,he=123,fe=124,ae=125,Fe={};Fe[0]="\\0",Fe[7]="\\a",Fe[8]="\\b",Fe[9]="\\t",Fe[10]="\\n",Fe[11]="\\v",Fe[12]="\\f",Fe[13]="\\r",Fe[27]="\\e",Fe[34]='\\"',Fe[92]="\\\\",Fe[133]="\\N",Fe[160]="\\_",Fe[8232]="\\L",Fe[8233]="\\P";var Le=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Me(N,te){var de,oe,pe,Ae,Be,Ue,Qe;if(te===null)return{};for(de={},oe=Object.keys(te),pe=0,Ae=oe.length;pe<Ae;pe+=1)Be=oe[pe],Ue=String(te[Be]),Be.slice(0,2)==="!!"&&(Be="tag:yaml.org,2002:"+Be.slice(2)),Qe=N.compiledTypeMap.fallback[Be],Qe&&S.call(Qe.styleAliases,Ue)&&(Ue=Qe.styleAliases[Ue]),de[Be]=Ue;return de}function Te(N){var te,de,oe;if(te=N.toString(16).toUpperCase(),N<=255)de="x",oe=2;else if(N<=65535)de="u",oe=4;else if(N<=4294967295)de="U",oe=8;else throw new v("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+de+c.repeat("0",oe-te.length)+te}function rt(N){this.schema=N.schema||x,this.indent=Math.max(1,N.indent||2),this.noArrayIndent=N.noArrayIndent||!1,this.skipInvalid=N.skipInvalid||!1,this.flowLevel=c.isNothing(N.flowLevel)?-1:N.flowLevel,this.styleMap=Me(this.schema,N.styles||null),this.sortKeys=N.sortKeys||!1,this.lineWidth=N.lineWidth||80,this.noRefs=N.noRefs||!1,this.noCompatMode=N.noCompatMode||!1,this.condenseFlow=N.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ze(N,te){for(var de=c.repeat(" ",te),oe=0,pe=-1,Ae="",Be,Ue=N.length;oe<Ue;)pe=N.indexOf(`
|
|
508
|
+
`,oe),pe===-1?(Be=N.slice(oe),oe=Ue):(Be=N.slice(oe,pe+1),oe=pe+1),Be.length&&Be!==`
|
|
509
|
+
`&&(Ae+=de),Ae+=Be;return Ae}function Xe(N,te){return`
|
|
510
|
+
`+c.repeat(" ",N.indent*te)}function ft(N,te){var de,oe,pe;for(de=0,oe=N.implicitTypes.length;de<oe;de+=1)if(pe=N.implicitTypes[de],pe.resolve(te))return!0;return!1}function ht(N){return N===B||N===g}function bt(N){return 32<=N&&N<=126||161<=N&&N<=55295&&N!==8232&&N!==8233||57344<=N&&N<=65533&&N!==65279||65536<=N&&N<=1114111}function nt(N){return bt(N)&&!ht(N)&&N!==65279&&N!==D&&N!==L}function ut(N,te){return bt(N)&&N!==65279&&N!==V&&N!==ie&&N!==xe&&N!==he&&N!==ae&&N!==_&&(N!==W||te&&nt(te))}function yt(N){return bt(N)&&N!==65279&&!ht(N)&&N!==J&&N!==ce&&N!==_&&N!==V&&N!==ie&&N!==xe&&N!==he&&N!==ae&&N!==W&&N!==X&&N!==C&&N!==j&&N!==fe&&N!==Q&&N!==Y&&N!==R&&N!==q&&N!==M&&N!==ee&&N!==we}function mt(N){var te=/^\n* /;return te.test(N)}var pt=1,Mt=2,kt=3,Ct=4,Wt=5;function jt(N,te,de,oe,pe){var Ae,Be,Ue,Qe=!1,vt=!1,Et=oe!==-1,Bt=-1,Pt=yt(N.charCodeAt(0))&&!ht(N.charCodeAt(N.length-1));if(te)for(Ae=0;Ae<N.length;Ae++){if(Be=N.charCodeAt(Ae),!bt(Be))return Wt;Ue=Ae>0?N.charCodeAt(Ae-1):null,Pt=Pt&&ut(Be,Ue)}else{for(Ae=0;Ae<N.length;Ae++){if(Be=N.charCodeAt(Ae),Be===L)Qe=!0,Et&&(vt=vt||Ae-Bt-1>oe&&N[Bt+1]!==" ",Bt=Ae);else if(!bt(Be))return Wt;Ue=Ae>0?N.charCodeAt(Ae-1):null,Pt=Pt&&ut(Be,Ue)}vt=vt||Et&&Ae-Bt-1>oe&&N[Bt+1]!==" "}return!Qe&&!vt?Pt&&!pe(N)?pt:Mt:de>9&&mt(N)?Wt:vt?Ct:kt}function Vt(N,te,de,oe){N.dump=function(){if(te.length===0)return"''";if(!N.noCompatMode&&Le.indexOf(te)!==-1)return"'"+te+"'";var pe=N.indent*Math.max(1,de),Ae=N.lineWidth===-1?-1:Math.max(Math.min(N.lineWidth,40),N.lineWidth-pe),Be=oe||N.flowLevel>-1&&de>=N.flowLevel;function Ue(Qe){return ft(N,Qe)}switch(jt(te,Be,N.indent,Ae,Ue)){case pt:return te;case Mt:return"'"+te.replace(/'/g,"''")+"'";case kt:return"|"+St(te,N.indent)+Dt(Ze(te,pe));case Ct:return">"+St(te,N.indent)+Dt(Ze(ve(te,Ae),pe));case Wt:return'"'+$(te,Ae)+'"';default:throw new v("impossible error: invalid scalar style")}}()}function St(N,te){var de=mt(N)?String(te):"",oe=N[N.length-1]===`
|
|
511
|
+
`,pe=oe&&(N[N.length-2]===`
|
|
512
512
|
`||N===`
|
|
513
|
-
`),Ae=pe?"+":
|
|
513
|
+
`),Ae=pe?"+":oe?"":"-";return de+Ae+`
|
|
514
514
|
`}function Dt(N){return N[N.length-1]===`
|
|
515
|
-
`?N.slice(0,-1):N}function ve(N,
|
|
516
|
-
`);return vt=vt!==-1?vt:N.length,de.lastIndex=vt,z(N.slice(0,vt),
|
|
517
|
-
`||N[0]===" ",Ae,Be;Be=de.exec(N);){var Ue=Be[1],Qe=Be[2];Ae=Qe[0]===" ",
|
|
518
|
-
`:"")+z(Qe,
|
|
515
|
+
`?N.slice(0,-1):N}function ve(N,te){for(var de=/(\n+)([^\n]*)/g,oe=function(){var vt=N.indexOf(`
|
|
516
|
+
`);return vt=vt!==-1?vt:N.length,de.lastIndex=vt,z(N.slice(0,vt),te)}(),pe=N[0]===`
|
|
517
|
+
`||N[0]===" ",Ae,Be;Be=de.exec(N);){var Ue=Be[1],Qe=Be[2];Ae=Qe[0]===" ",oe+=Ue+(!pe&&!Ae&&Qe!==""?`
|
|
518
|
+
`:"")+z(Qe,te),pe=Ae}return oe}function z(N,te){if(N===""||N[0]===" ")return N;for(var de=/ [^ ]/g,oe,pe=0,Ae,Be=0,Ue=0,Qe="";oe=de.exec(N);)Ue=oe.index,Ue-pe>te&&(Ae=Be>pe?Be:Ue,Qe+=`
|
|
519
519
|
`+N.slice(pe,Ae),pe=Ae+1),Be=Ue;return Qe+=`
|
|
520
|
-
`,N.length-pe>
|
|
521
|
-
`+N.slice(Be+1):Qe+=N.slice(pe),Qe.slice(1)}function $(N){for(var
|
|
522
|
-
`:""}function
|
|
523
|
-
`:P===118?"\v":P===102?"\f":P===114?"\r":P===101?"":P===32?" ":P===34?'"':P===47?"/":P===92?"\\":P===78?"\x85":P===95?"\xA0":P===76?"\u2028":P===80?"\u2029":""}function he(P){return P<=65535?String.fromCharCode(P):String.fromCharCode((P-65536>>10)+55296,(P-65536&1023)+56320)}for(var
|
|
524
|
-
`,
|
|
525
|
-
`,
|
|
526
|
-
`);break}for(T?Q(Ae)?(
|
|
527
|
-
`,
|
|
528
|
-
`,de+1)):de===0?
|
|
520
|
+
`,N.length-pe>te&&Be>pe?Qe+=N.slice(pe,Be)+`
|
|
521
|
+
`+N.slice(Be+1):Qe+=N.slice(pe),Qe.slice(1)}function $(N){for(var te="",de,oe,pe,Ae=0;Ae<N.length;Ae++){if(de=N.charCodeAt(Ae),de>=55296&&de<=56319&&(oe=N.charCodeAt(Ae+1),oe>=56320&&oe<=57343)){te+=Te((de-55296)*1024+oe-56320+65536),Ae++;continue}pe=Fe[de],te+=!pe&&bt(de)?N[Ae]:pe||Te(de)}return te}function Se(N,te,de){var oe="",pe=N.tag,Ae,Be;for(Ae=0,Be=de.length;Ae<Be;Ae+=1)Re(N,te,de[Ae],!1,!1)&&(Ae!==0&&(oe+=","+(N.condenseFlow?"":" ")),oe+=N.dump);N.tag=pe,N.dump="["+oe+"]"}function Ie(N,te,de,oe){var pe="",Ae=N.tag,Be,Ue;for(Be=0,Ue=de.length;Be<Ue;Be+=1)Re(N,te+1,de[Be],!0,!0)&&((!oe||Be!==0)&&(pe+=Xe(N,te)),N.dump&&L===N.dump.charCodeAt(0)?pe+="-":pe+="- ",pe+=N.dump);N.tag=Ae,N.dump=pe||"[]"}function $e(N,te,de){var oe="",pe=N.tag,Ae=Object.keys(de),Be,Ue,Qe,vt,Et;for(Be=0,Ue=Ae.length;Be<Ue;Be+=1)Et="",Be!==0&&(Et+=", "),N.condenseFlow&&(Et+='"'),Qe=Ae[Be],vt=de[Qe],!!Re(N,te,Qe,!1,!1)&&(N.dump.length>1024&&(Et+="? "),Et+=N.dump+(N.condenseFlow?'"':"")+":"+(N.condenseFlow?"":" "),!!Re(N,te,vt,!1,!1)&&(Et+=N.dump,oe+=Et));N.tag=pe,N.dump="{"+oe+"}"}function Ke(N,te,de,oe){var pe="",Ae=N.tag,Be=Object.keys(de),Ue,Qe,vt,Et,Bt,Pt;if(N.sortKeys===!0)Be.sort();else if(typeof N.sortKeys=="function")Be.sort(N.sortKeys);else if(N.sortKeys)throw new v("sortKeys must be a boolean or a function");for(Ue=0,Qe=Be.length;Ue<Qe;Ue+=1)Pt="",(!oe||Ue!==0)&&(Pt+=Xe(N,te)),vt=Be[Ue],Et=de[vt],!!Re(N,te+1,vt,!0,!0,!0)&&(Bt=N.tag!==null&&N.tag!=="?"||N.dump&&N.dump.length>1024,Bt&&(N.dump&&L===N.dump.charCodeAt(0)?Pt+="?":Pt+="? "),Pt+=N.dump,Bt&&(Pt+=Xe(N,te)),!!Re(N,te+1,Et,!0,Bt)&&(N.dump&&L===N.dump.charCodeAt(0)?Pt+=":":Pt+=": ",Pt+=N.dump,pe+=Pt));N.tag=Ae,N.dump=pe||"{}"}function P(N,te,de){var oe,pe,Ae,Be,Ue,Qe;for(pe=de?N.explicitTypes:N.implicitTypes,Ae=0,Be=pe.length;Ae<Be;Ae+=1)if(Ue=pe[Ae],(Ue.instanceOf||Ue.predicate)&&(!Ue.instanceOf||typeof te=="object"&&te instanceof Ue.instanceOf)&&(!Ue.predicate||Ue.predicate(te))){if(N.tag=de?Ue.tag:"?",Ue.represent){if(Qe=N.styleMap[Ue.tag]||Ue.defaultStyle,b.call(Ue.represent)==="[object Function]")oe=Ue.represent(te,Qe);else if(S.call(Ue.represent,Qe))oe=Ue.represent[Qe](te,Qe);else throw new v("!<"+Ue.tag+'> tag resolver accepts not "'+Qe+'" style');N.dump=oe}return!0}return!1}function Re(N,te,de,oe,pe,Ae){N.tag=null,N.dump=de,P(N,de,!1)||P(N,de,!0);var Be=b.call(N.dump);oe&&(oe=N.flowLevel<0||N.flowLevel>te);var Ue=Be==="[object Object]"||Be==="[object Array]",Qe,vt;if(Ue&&(Qe=N.duplicates.indexOf(de),vt=Qe!==-1),(N.tag!==null&&N.tag!=="?"||vt||N.indent!==2&&te>0)&&(pe=!1),vt&&N.usedDuplicates[Qe])N.dump="*ref_"+Qe;else{if(Ue&&vt&&!N.usedDuplicates[Qe]&&(N.usedDuplicates[Qe]=!0),Be==="[object Object]")oe&&Object.keys(N.dump).length!==0?(Ke(N,te,N.dump,pe),vt&&(N.dump="&ref_"+Qe+N.dump)):($e(N,te,N.dump),vt&&(N.dump="&ref_"+Qe+" "+N.dump));else if(Be==="[object Array]"){var Et=N.noArrayIndent&&te>0?te-1:te;oe&&N.dump.length!==0?(Ie(N,Et,N.dump,pe),vt&&(N.dump="&ref_"+Qe+N.dump)):(Se(N,Et,N.dump),vt&&(N.dump="&ref_"+Qe+" "+N.dump))}else if(Be==="[object String]")N.tag!=="?"&&Vt(N,N.dump,te,Ae);else{if(N.skipInvalid)return!1;throw new v("unacceptable kind of an object to dump "+Be)}N.tag!==null&&N.tag!=="?"&&(N.dump="!<"+N.tag+"> "+N.dump)}return!0}function K(N,te){var de=[],oe=[],pe,Ae;for(T(N,de,oe),pe=0,Ae=oe.length;pe<Ae;pe+=1)te.duplicates.push(de[oe[pe]]);te.usedDuplicates=new Array(Ae)}function T(N,te,de){var oe,pe,Ae;if(N!==null&&typeof N=="object")if(pe=te.indexOf(N),pe!==-1)de.indexOf(pe)===-1&&de.push(pe);else if(te.push(N),Array.isArray(N))for(pe=0,Ae=N.length;pe<Ae;pe+=1)T(N[pe],te,de);else for(oe=Object.keys(N),pe=0,Ae=oe.length;pe<Ae;pe+=1)T(N[oe[pe]],te,de)}function O(N,te){te=te||{};var de=new rt(te);return de.noRefs||K(N,de),Re(de,0,N,!0,!0)?de.dump+`
|
|
522
|
+
`:""}function le(N,te){return O(N,c.extend({schema:d},te))}h.exports.dump=O,h.exports.safeDump=le},14884:h=>{"use strict";function I(o,c){Error.call(this),this.name="YAMLException",this.reason=o,this.mark=c,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}I.prototype=Object.create(Error.prototype),I.prototype.constructor=I,I.prototype.toString=function(c){var v=this.name+": ";return v+=this.reason||"(unknown reason)",!c&&this.mark&&(v+=" "+this.mark.toString()),v},h.exports=I},40028:(h,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(77334),d=o(5972),b=o(19321),S=Object.prototype.hasOwnProperty,g=1,L=2,D=3,B=4,j=1,q=2,W=3,M=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,X=/[\x85\u2028\u2029]/,R=/[,\[\]\{\}]/,C=/^(?:!|!!|![a-z\-]+!)$/i,V=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function J(P){return Object.prototype.toString.call(P)}function _(P){return P===10||P===13}function Q(P){return P===9||P===32}function Y(P){return P===9||P===32||P===10||P===13}function ce(P){return P===44||P===91||P===93||P===123||P===125}function ee(P){var Re;return 48<=P&&P<=57?P-48:(Re=P|32,97<=Re&&Re<=102?Re-97+10:-1)}function ie(P){return P===120?2:P===117?4:P===85?8:0}function xe(P){return 48<=P&&P<=57?P-48:-1}function we(P){return P===48?"\0":P===97?"\x07":P===98?"\b":P===116||P===9?" ":P===110?`
|
|
523
|
+
`:P===118?"\v":P===102?"\f":P===114?"\r":P===101?"":P===32?" ":P===34?'"':P===47?"/":P===92?"\\":P===78?"\x85":P===95?"\xA0":P===76?"\u2028":P===80?"\u2029":""}function he(P){return P<=65535?String.fromCharCode(P):String.fromCharCode((P-65536>>10)+55296,(P-65536&1023)+56320)}for(var fe=new Array(256),ae=new Array(256),Fe=0;Fe<256;Fe++)fe[Fe]=we(Fe)?1:0,ae[Fe]=we(Fe);function Le(P,Re){this.input=P,this.filename=Re.filename||null,this.schema=Re.schema||b,this.onWarning=Re.onWarning||null,this.legacy=Re.legacy||!1,this.json=Re.json||!1,this.listener=Re.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=P.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Me(P,Re){return new v(Re,new x(P.filename,P.input,P.position,P.line,P.position-P.lineStart))}function Te(P,Re){throw Me(P,Re)}function rt(P,Re){P.onWarning&&P.onWarning.call(null,Me(P,Re))}var Ze={YAML:function(Re,K,T){var O,le,N;Re.version!==null&&Te(Re,"duplication of %YAML directive"),T.length!==1&&Te(Re,"YAML directive accepts exactly one argument"),O=/^([0-9]+)\.([0-9]+)$/.exec(T[0]),O===null&&Te(Re,"ill-formed argument of the YAML directive"),le=parseInt(O[1],10),N=parseInt(O[2],10),le!==1&&Te(Re,"unacceptable YAML version of the document"),Re.version=T[0],Re.checkLineBreaks=N<2,N!==1&&N!==2&&rt(Re,"unsupported YAML version of the document")},TAG:function(Re,K,T){var O,le;T.length!==2&&Te(Re,"TAG directive accepts exactly two arguments"),O=T[0],le=T[1],C.test(O)||Te(Re,"ill-formed tag handle (first argument) of the TAG directive"),S.call(Re.tagMap,O)&&Te(Re,'there is a previously declared suffix for "'+O+'" tag handle'),V.test(le)||Te(Re,"ill-formed tag prefix (second argument) of the TAG directive"),Re.tagMap[O]=le}};function Xe(P,Re,K,T){var O,le,N,te;if(Re<K){if(te=P.input.slice(Re,K),T)for(O=0,le=te.length;O<le;O+=1)N=te.charCodeAt(O),N===9||32<=N&&N<=1114111||Te(P,"expected valid JSON character");else M.test(te)&&Te(P,"the stream contains non-printable characters");P.result+=te}}function ft(P,Re,K,T){var O,le,N,te;for(c.isObject(K)||Te(P,"cannot merge mappings; the provided source object is unacceptable"),O=Object.keys(K),N=0,te=O.length;N<te;N+=1)le=O[N],S.call(Re,le)||(Re[le]=K[le],T[le]=!0)}function ht(P,Re,K,T,O,le,N,te){var de,oe;if(Array.isArray(O))for(O=Array.prototype.slice.call(O),de=0,oe=O.length;de<oe;de+=1)Array.isArray(O[de])&&Te(P,"nested arrays are not supported inside keys"),typeof O=="object"&&J(O[de])==="[object Object]"&&(O[de]="[object Object]");if(typeof O=="object"&&J(O)==="[object Object]"&&(O="[object Object]"),O=String(O),Re===null&&(Re={}),T==="tag:yaml.org,2002:merge")if(Array.isArray(le))for(de=0,oe=le.length;de<oe;de+=1)ft(P,Re,le[de],K);else ft(P,Re,le,K);else!P.json&&!S.call(K,O)&&S.call(Re,O)&&(P.line=N||P.line,P.position=te||P.position,Te(P,"duplicated mapping key")),Re[O]=le,delete K[O];return Re}function bt(P){var Re;Re=P.input.charCodeAt(P.position),Re===10?P.position++:Re===13?(P.position++,P.input.charCodeAt(P.position)===10&&P.position++):Te(P,"a line break is expected"),P.line+=1,P.lineStart=P.position}function nt(P,Re,K){for(var T=0,O=P.input.charCodeAt(P.position);O!==0;){for(;Q(O);)O=P.input.charCodeAt(++P.position);if(Re&&O===35)do O=P.input.charCodeAt(++P.position);while(O!==10&&O!==13&&O!==0);if(_(O))for(bt(P),O=P.input.charCodeAt(P.position),T++,P.lineIndent=0;O===32;)P.lineIndent++,O=P.input.charCodeAt(++P.position);else break}return K!==-1&&T!==0&&P.lineIndent<K&&rt(P,"deficient indentation"),T}function ut(P){var Re=P.position,K;return K=P.input.charCodeAt(Re),!!((K===45||K===46)&&K===P.input.charCodeAt(Re+1)&&K===P.input.charCodeAt(Re+2)&&(Re+=3,K=P.input.charCodeAt(Re),K===0||Y(K)))}function yt(P,Re){Re===1?P.result+=" ":Re>1&&(P.result+=c.repeat(`
|
|
524
|
+
`,Re-1))}function mt(P,Re,K){var T,O,le,N,te,de,oe,pe,Ae=P.kind,Be=P.result,Ue;if(Ue=P.input.charCodeAt(P.position),Y(Ue)||ce(Ue)||Ue===35||Ue===38||Ue===42||Ue===33||Ue===124||Ue===62||Ue===39||Ue===34||Ue===37||Ue===64||Ue===96||(Ue===63||Ue===45)&&(O=P.input.charCodeAt(P.position+1),Y(O)||K&&ce(O)))return!1;for(P.kind="scalar",P.result="",le=N=P.position,te=!1;Ue!==0;){if(Ue===58){if(O=P.input.charCodeAt(P.position+1),Y(O)||K&&ce(O))break}else if(Ue===35){if(T=P.input.charCodeAt(P.position-1),Y(T))break}else{if(P.position===P.lineStart&&ut(P)||K&&ce(Ue))break;if(_(Ue))if(de=P.line,oe=P.lineStart,pe=P.lineIndent,nt(P,!1,-1),P.lineIndent>=Re){te=!0,Ue=P.input.charCodeAt(P.position);continue}else{P.position=N,P.line=de,P.lineStart=oe,P.lineIndent=pe;break}}te&&(Xe(P,le,N,!1),yt(P,P.line-de),le=N=P.position,te=!1),Q(Ue)||(N=P.position+1),Ue=P.input.charCodeAt(++P.position)}return Xe(P,le,N,!1),P.result?!0:(P.kind=Ae,P.result=Be,!1)}function pt(P,Re){var K,T,O;if(K=P.input.charCodeAt(P.position),K!==39)return!1;for(P.kind="scalar",P.result="",P.position++,T=O=P.position;(K=P.input.charCodeAt(P.position))!==0;)if(K===39)if(Xe(P,T,P.position,!0),K=P.input.charCodeAt(++P.position),K===39)T=P.position,P.position++,O=P.position;else return!0;else _(K)?(Xe(P,T,O,!0),yt(P,nt(P,!1,Re)),T=O=P.position):P.position===P.lineStart&&ut(P)?Te(P,"unexpected end of the document within a single quoted scalar"):(P.position++,O=P.position);Te(P,"unexpected end of the stream within a single quoted scalar")}function Mt(P,Re){var K,T,O,le,N,te;if(te=P.input.charCodeAt(P.position),te!==34)return!1;for(P.kind="scalar",P.result="",P.position++,K=T=P.position;(te=P.input.charCodeAt(P.position))!==0;){if(te===34)return Xe(P,K,P.position,!0),P.position++,!0;if(te===92){if(Xe(P,K,P.position,!0),te=P.input.charCodeAt(++P.position),_(te))nt(P,!1,Re);else if(te<256&&fe[te])P.result+=ae[te],P.position++;else if((N=ie(te))>0){for(O=N,le=0;O>0;O--)te=P.input.charCodeAt(++P.position),(N=ee(te))>=0?le=(le<<4)+N:Te(P,"expected hexadecimal character");P.result+=he(le),P.position++}else Te(P,"unknown escape sequence");K=T=P.position}else _(te)?(Xe(P,K,T,!0),yt(P,nt(P,!1,Re)),K=T=P.position):P.position===P.lineStart&&ut(P)?Te(P,"unexpected end of the document within a double quoted scalar"):(P.position++,T=P.position)}Te(P,"unexpected end of the stream within a double quoted scalar")}function kt(P,Re){var K=!0,T,O=P.tag,le,N=P.anchor,te,de,oe,pe,Ae,Be={},Ue,Qe,vt,Et;if(Et=P.input.charCodeAt(P.position),Et===91)de=93,Ae=!1,le=[];else if(Et===123)de=125,Ae=!0,le={};else return!1;for(P.anchor!==null&&(P.anchorMap[P.anchor]=le),Et=P.input.charCodeAt(++P.position);Et!==0;){if(nt(P,!0,Re),Et=P.input.charCodeAt(P.position),Et===de)return P.position++,P.tag=O,P.anchor=N,P.kind=Ae?"mapping":"sequence",P.result=le,!0;K||Te(P,"missed comma between flow collection entries"),Qe=Ue=vt=null,oe=pe=!1,Et===63&&(te=P.input.charCodeAt(P.position+1),Y(te)&&(oe=pe=!0,P.position++,nt(P,!0,Re))),T=P.line,ve(P,Re,g,!1,!0),Qe=P.tag,Ue=P.result,nt(P,!0,Re),Et=P.input.charCodeAt(P.position),(pe||P.line===T)&&Et===58&&(oe=!0,Et=P.input.charCodeAt(++P.position),nt(P,!0,Re),ve(P,Re,g,!1,!0),vt=P.result),Ae?ht(P,le,Be,Qe,Ue,vt):oe?le.push(ht(P,null,Be,Qe,Ue,vt)):le.push(Ue),nt(P,!0,Re),Et=P.input.charCodeAt(P.position),Et===44?(K=!0,Et=P.input.charCodeAt(++P.position)):K=!1}Te(P,"unexpected end of the stream within a flow collection")}function Ct(P,Re){var K,T,O=j,le=!1,N=!1,te=Re,de=0,oe=!1,pe,Ae;if(Ae=P.input.charCodeAt(P.position),Ae===124)T=!1;else if(Ae===62)T=!0;else return!1;for(P.kind="scalar",P.result="";Ae!==0;)if(Ae=P.input.charCodeAt(++P.position),Ae===43||Ae===45)j===O?O=Ae===43?W:q:Te(P,"repeat of a chomping mode identifier");else if((pe=xe(Ae))>=0)pe===0?Te(P,"bad explicit indentation width of a block scalar; it cannot be less than one"):N?Te(P,"repeat of an indentation width identifier"):(te=Re+pe-1,N=!0);else break;if(Q(Ae)){do Ae=P.input.charCodeAt(++P.position);while(Q(Ae));if(Ae===35)do Ae=P.input.charCodeAt(++P.position);while(!_(Ae)&&Ae!==0)}for(;Ae!==0;){for(bt(P),P.lineIndent=0,Ae=P.input.charCodeAt(P.position);(!N||P.lineIndent<te)&&Ae===32;)P.lineIndent++,Ae=P.input.charCodeAt(++P.position);if(!N&&P.lineIndent>te&&(te=P.lineIndent),_(Ae)){de++;continue}if(P.lineIndent<te){O===W?P.result+=c.repeat(`
|
|
525
|
+
`,le?1+de:de):O===j&&le&&(P.result+=`
|
|
526
|
+
`);break}for(T?Q(Ae)?(oe=!0,P.result+=c.repeat(`
|
|
527
|
+
`,le?1+de:de)):oe?(oe=!1,P.result+=c.repeat(`
|
|
528
|
+
`,de+1)):de===0?le&&(P.result+=" "):P.result+=c.repeat(`
|
|
529
529
|
`,de):P.result+=c.repeat(`
|
|
530
|
-
`,
|
|
531
|
-
`),P.charCodeAt(0)===65279&&(P=P.slice(1)));var K=new Le(P,
|
|
530
|
+
`,le?1+de:de),le=!0,N=!0,de=0,K=P.position;!_(Ae)&&Ae!==0;)Ae=P.input.charCodeAt(++P.position);Xe(P,K,P.position,!1)}return!0}function Wt(P,Re){var K,T=P.tag,O=P.anchor,le=[],N,te=!1,de;for(P.anchor!==null&&(P.anchorMap[P.anchor]=le),de=P.input.charCodeAt(P.position);de!==0&&!(de!==45||(N=P.input.charCodeAt(P.position+1),!Y(N)));){if(te=!0,P.position++,nt(P,!0,-1)&&P.lineIndent<=Re){le.push(null),de=P.input.charCodeAt(P.position);continue}if(K=P.line,ve(P,Re,D,!1,!0),le.push(P.result),nt(P,!0,-1),de=P.input.charCodeAt(P.position),(P.line===K||P.lineIndent>Re)&&de!==0)Te(P,"bad indentation of a sequence entry");else if(P.lineIndent<Re)break}return te?(P.tag=T,P.anchor=O,P.kind="sequence",P.result=le,!0):!1}function jt(P,Re,K){var T,O,le,N,te=P.tag,de=P.anchor,oe={},pe={},Ae=null,Be=null,Ue=null,Qe=!1,vt=!1,Et;for(P.anchor!==null&&(P.anchorMap[P.anchor]=oe),Et=P.input.charCodeAt(P.position);Et!==0;){if(T=P.input.charCodeAt(P.position+1),le=P.line,N=P.position,(Et===63||Et===58)&&Y(T))Et===63?(Qe&&(ht(P,oe,pe,Ae,Be,null),Ae=Be=Ue=null),vt=!0,Qe=!0,O=!0):Qe?(Qe=!1,O=!0):Te(P,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),P.position+=1,Et=T;else if(ve(P,K,L,!1,!0))if(P.line===le){for(Et=P.input.charCodeAt(P.position);Q(Et);)Et=P.input.charCodeAt(++P.position);if(Et===58)Et=P.input.charCodeAt(++P.position),Y(Et)||Te(P,"a whitespace character is expected after the key-value separator within a block mapping"),Qe&&(ht(P,oe,pe,Ae,Be,null),Ae=Be=Ue=null),vt=!0,Qe=!1,O=!1,Ae=P.tag,Be=P.result;else if(vt)Te(P,"can not read an implicit mapping pair; a colon is missed");else return P.tag=te,P.anchor=de,!0}else if(vt)Te(P,"can not read a block mapping entry; a multiline key may not be an implicit key");else return P.tag=te,P.anchor=de,!0;else break;if((P.line===le||P.lineIndent>Re)&&(ve(P,Re,B,!0,O)&&(Qe?Be=P.result:Ue=P.result),Qe||(ht(P,oe,pe,Ae,Be,Ue,le,N),Ae=Be=Ue=null),nt(P,!0,-1),Et=P.input.charCodeAt(P.position)),P.lineIndent>Re&&Et!==0)Te(P,"bad indentation of a mapping entry");else if(P.lineIndent<Re)break}return Qe&&ht(P,oe,pe,Ae,Be,null),vt&&(P.tag=te,P.anchor=de,P.kind="mapping",P.result=oe),vt}function Vt(P){var Re,K=!1,T=!1,O,le,N;if(N=P.input.charCodeAt(P.position),N!==33)return!1;if(P.tag!==null&&Te(P,"duplication of a tag property"),N=P.input.charCodeAt(++P.position),N===60?(K=!0,N=P.input.charCodeAt(++P.position)):N===33?(T=!0,O="!!",N=P.input.charCodeAt(++P.position)):O="!",Re=P.position,K){do N=P.input.charCodeAt(++P.position);while(N!==0&&N!==62);P.position<P.length?(le=P.input.slice(Re,P.position),N=P.input.charCodeAt(++P.position)):Te(P,"unexpected end of the stream within a verbatim tag")}else{for(;N!==0&&!Y(N);)N===33&&(T?Te(P,"tag suffix cannot contain exclamation marks"):(O=P.input.slice(Re-1,P.position+1),C.test(O)||Te(P,"named tag handle cannot contain such characters"),T=!0,Re=P.position+1)),N=P.input.charCodeAt(++P.position);le=P.input.slice(Re,P.position),R.test(le)&&Te(P,"tag suffix cannot contain flow indicator characters")}return le&&!V.test(le)&&Te(P,"tag name cannot contain such characters: "+le),K?P.tag=le:S.call(P.tagMap,O)?P.tag=P.tagMap[O]+le:O==="!"?P.tag="!"+le:O==="!!"?P.tag="tag:yaml.org,2002:"+le:Te(P,'undeclared tag handle "'+O+'"'),!0}function St(P){var Re,K;if(K=P.input.charCodeAt(P.position),K!==38)return!1;for(P.anchor!==null&&Te(P,"duplication of an anchor property"),K=P.input.charCodeAt(++P.position),Re=P.position;K!==0&&!Y(K)&&!ce(K);)K=P.input.charCodeAt(++P.position);return P.position===Re&&Te(P,"name of an anchor node must contain at least one character"),P.anchor=P.input.slice(Re,P.position),!0}function Dt(P){var Re,K,T;if(T=P.input.charCodeAt(P.position),T!==42)return!1;for(T=P.input.charCodeAt(++P.position),Re=P.position;T!==0&&!Y(T)&&!ce(T);)T=P.input.charCodeAt(++P.position);return P.position===Re&&Te(P,"name of an alias node must contain at least one character"),K=P.input.slice(Re,P.position),S.call(P.anchorMap,K)||Te(P,'unidentified alias "'+K+'"'),P.result=P.anchorMap[K],nt(P,!0,-1),!0}function ve(P,Re,K,T,O){var le,N,te,de=1,oe=!1,pe=!1,Ae,Be,Ue,Qe,vt;if(P.listener!==null&&P.listener("open",P),P.tag=null,P.anchor=null,P.kind=null,P.result=null,le=N=te=B===K||D===K,T&&nt(P,!0,-1)&&(oe=!0,P.lineIndent>Re?de=1:P.lineIndent===Re?de=0:P.lineIndent<Re&&(de=-1)),de===1)for(;Vt(P)||St(P);)nt(P,!0,-1)?(oe=!0,te=le,P.lineIndent>Re?de=1:P.lineIndent===Re?de=0:P.lineIndent<Re&&(de=-1)):te=!1;if(te&&(te=oe||O),(de===1||B===K)&&(g===K||L===K?Qe=Re:Qe=Re+1,vt=P.position-P.lineStart,de===1?te&&(Wt(P,vt)||jt(P,vt,Qe))||kt(P,Qe)?pe=!0:(N&&Ct(P,Qe)||pt(P,Qe)||Mt(P,Qe)?pe=!0:Dt(P)?(pe=!0,(P.tag!==null||P.anchor!==null)&&Te(P,"alias node should not have any properties")):mt(P,Qe,g===K)&&(pe=!0,P.tag===null&&(P.tag="?")),P.anchor!==null&&(P.anchorMap[P.anchor]=P.result)):de===0&&(pe=te&&Wt(P,vt))),P.tag!==null&&P.tag!=="!")if(P.tag==="?"){for(P.result!==null&&P.kind!=="scalar"&&Te(P,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+P.kind+'"'),Ae=0,Be=P.implicitTypes.length;Ae<Be;Ae+=1)if(Ue=P.implicitTypes[Ae],Ue.resolve(P.result)){P.result=Ue.construct(P.result),P.tag=Ue.tag,P.anchor!==null&&(P.anchorMap[P.anchor]=P.result);break}}else S.call(P.typeMap[P.kind||"fallback"],P.tag)?(Ue=P.typeMap[P.kind||"fallback"][P.tag],P.result!==null&&Ue.kind!==P.kind&&Te(P,"unacceptable node kind for !<"+P.tag+'> tag; it should be "'+Ue.kind+'", not "'+P.kind+'"'),Ue.resolve(P.result)?(P.result=Ue.construct(P.result),P.anchor!==null&&(P.anchorMap[P.anchor]=P.result)):Te(P,"cannot resolve a node with !<"+P.tag+"> explicit tag")):Te(P,"unknown tag !<"+P.tag+">");return P.listener!==null&&P.listener("close",P),P.tag!==null||P.anchor!==null||pe}function z(P){var Re=P.position,K,T,O,le=!1,N;for(P.version=null,P.checkLineBreaks=P.legacy,P.tagMap={},P.anchorMap={};(N=P.input.charCodeAt(P.position))!==0&&(nt(P,!0,-1),N=P.input.charCodeAt(P.position),!(P.lineIndent>0||N!==37));){for(le=!0,N=P.input.charCodeAt(++P.position),K=P.position;N!==0&&!Y(N);)N=P.input.charCodeAt(++P.position);for(T=P.input.slice(K,P.position),O=[],T.length<1&&Te(P,"directive name must not be less than one character in length");N!==0;){for(;Q(N);)N=P.input.charCodeAt(++P.position);if(N===35){do N=P.input.charCodeAt(++P.position);while(N!==0&&!_(N));break}if(_(N))break;for(K=P.position;N!==0&&!Y(N);)N=P.input.charCodeAt(++P.position);O.push(P.input.slice(K,P.position))}N!==0&&bt(P),S.call(Ze,T)?Ze[T](P,T,O):rt(P,'unknown document directive "'+T+'"')}if(nt(P,!0,-1),P.lineIndent===0&&P.input.charCodeAt(P.position)===45&&P.input.charCodeAt(P.position+1)===45&&P.input.charCodeAt(P.position+2)===45?(P.position+=3,nt(P,!0,-1)):le&&Te(P,"directives end mark is expected"),ve(P,P.lineIndent-1,B,!1,!0),nt(P,!0,-1),P.checkLineBreaks&&X.test(P.input.slice(Re,P.position))&&rt(P,"non-ASCII line breaks are interpreted as content"),P.documents.push(P.result),P.position===P.lineStart&&ut(P)){P.input.charCodeAt(P.position)===46&&(P.position+=3,nt(P,!0,-1));return}if(P.position<P.length-1)Te(P,"end of the stream or a document separator is expected");else return}function $(P,Re){P=String(P),Re=Re||{},P.length!==0&&(P.charCodeAt(P.length-1)!==10&&P.charCodeAt(P.length-1)!==13&&(P+=`
|
|
531
|
+
`),P.charCodeAt(0)===65279&&(P=P.slice(1)));var K=new Le(P,Re),T=P.indexOf("\0");for(T!==-1&&(K.position=T,Te(K,"null byte is not allowed in input")),K.input+="\0";K.input.charCodeAt(K.position)===32;)K.lineIndent+=1,K.position+=1;for(;K.position<K.length-1;)z(K);return K.documents}function Se(P,Re,K){Re!==null&&typeof Re=="object"&&typeof K=="undefined"&&(K=Re,Re=null);var T=$(P,K);if(typeof Re!="function")return T;for(var O=0,le=T.length;O<le;O+=1)Re(T[O])}function Ie(P,Re){var K=$(P,Re);if(K.length!==0){if(K.length===1)return K[0];throw new v("expected a single document in the stream, but found more")}}function $e(P,Re,K){return typeof Re=="object"&&Re!==null&&typeof K=="undefined"&&(K=Re,Re=null),Se(P,Re,c.extend({schema:d},K))}function Ke(P,Re){return Ie(P,c.extend({schema:d},Re))}h.exports.loadAll=Se,h.exports.load=Ie,h.exports.safeLoadAll=$e,h.exports.safeLoad=Ke},77334:(h,I,o)=>{"use strict";var c=o(25596);function v(x,d,b,S,g){this.name=x,this.buffer=d,this.position=b,this.line=S,this.column=g}v.prototype.getSnippet=function(d,b){var S,g,L,D,B;if(!this.buffer)return null;for(d=d||4,b=b||75,S="",g=this.position;g>0&&`\0\r
|
|
532
532
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(g-1))===-1;)if(g-=1,this.position-g>b/2-1){S=" ... ",g+=5;break}for(L="",D=this.position;D<this.buffer.length&&`\0\r
|
|
533
533
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(D))===-1;)if(D+=1,D-this.position>b/2-1){L=" ... ",D-=5;break}return B=this.buffer.slice(g,D),c.repeat(" ",d)+S+B+L+`
|
|
534
534
|
`+c.repeat(" ",d+this.position-g+S.length)+"^"},v.prototype.toString=function(d){var b,S="";return this.name&&(S+='in "'+this.name+'" '),S+="at line "+(this.line+1)+", column "+(this.column+1),d||(b=this.getSnippet(),b&&(S+=`:
|
|
535
|
-
`+b)),S},h.exports=v},82409:(h,I,
|
|
536
|
-
\r`;function b(D){if(D===null)return!1;var B,j,q=0,W=D.length,R=d;for(j=0;j<W;j++)if(B=R.indexOf(D.charAt(j)),!(B>64)){if(B<0)return!1;q+=6}return q%8==0}function S(D){var B,j,q=D.replace(/[\r\n=]/g,""),W=q.length,R=d,X=0,M=[];for(B=0;B<W;B++)B%4==0&&B&&(M.push(X>>16&255),M.push(X>>8&255),M.push(X&255)),X=X<<6|R.indexOf(q.charAt(B));return j=W%4*6,j===0?(M.push(X>>16&255),M.push(X>>8&255),M.push(X&255)):j===18?(M.push(X>>10&255),M.push(X>>2&255)):j===12&&M.push(X>>4&255),c?c.from?c.from(M):new c(M):M}function g(D){var B="",j=0,q,W,R=D.length,X=d;for(q=0;q<R;q++)q%3==0&&q&&(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]),j=(j<<8)+D[q];return W=R%3,W===0?(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]):W===2?(B+=X[j>>10&63],B+=X[j>>4&63],B+=X[j<<2&63],B+=X[64]):W===1&&(B+=X[j>>2&63],B+=X[j<<4&63],B+=X[64],B+=X[64]),B}function L(D){return c&&c.isBuffer(D)}h.exports=new x("tag:yaml.org,2002:binary",{kind:"scalar",resolve:b,construct:S,predicate:L,represent:g})},2648:(h,I,a)=>{"use strict";var c=a(53899);function v(b){if(b===null)return!1;var S=b.length;return S===4&&(b==="true"||b==="True"||b==="TRUE")||S===5&&(b==="false"||b==="False"||b==="FALSE")}function x(b){return b==="true"||b==="True"||b==="TRUE"}function d(b){return Object.prototype.toString.call(b)==="[object Boolean]"}h.exports=new c("tag:yaml.org,2002:bool",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{lowercase:function(b){return b?"true":"false"},uppercase:function(b){return b?"TRUE":"FALSE"},camelcase:function(b){return b?"True":"False"}},defaultStyle:"lowercase"})},53456:(h,I,a)=>{"use strict";var c=a(25596),v=a(53899),x=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function d(D){return!(D===null||!x.test(D)||D[D.length-1]==="_")}function b(D){var B,j,q,W;return B=D.replace(/_/g,"").toLowerCase(),j=B[0]==="-"?-1:1,W=[],"+-".indexOf(B[0])>=0&&(B=B.slice(1)),B===".inf"?j===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:B===".nan"?NaN:B.indexOf(":")>=0?(B.split(":").forEach(function(R){W.unshift(parseFloat(R,10))}),B=0,q=1,W.forEach(function(R){B+=R*q,q*=60}),j*B):j*parseFloat(B,10)}var S=/^[-+]?[0-9]+e/;function g(D,B){var j;if(isNaN(D))switch(B){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===D)switch(B){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===D)switch(B){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c.isNegativeZero(D))return"-0.0";return j=D.toString(10),S.test(j)?j.replace("e",".e"):j}function L(D){return Object.prototype.toString.call(D)==="[object Number]"&&(D%1!=0||c.isNegativeZero(D))}h.exports=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:d,construct:b,predicate:L,represent:g,defaultStyle:"lowercase"})},95979:(h,I,a)=>{"use strict";var c=a(25596),v=a(53899);function x(D){return 48<=D&&D<=57||65<=D&&D<=70||97<=D&&D<=102}function d(D){return 48<=D&&D<=55}function b(D){return 48<=D&&D<=57}function S(D){if(D===null)return!1;var B=D.length,j=0,q=!1,W;if(!B)return!1;if(W=D[j],(W==="-"||W==="+")&&(W=D[++j]),W==="0"){if(j+1===B)return!0;if(W=D[++j],W==="b"){for(j++;j<B;j++)if(W=D[j],W!=="_"){if(W!=="0"&&W!=="1")return!1;q=!0}return q&&W!=="_"}if(W==="x"){for(j++;j<B;j++)if(W=D[j],W!=="_"){if(!x(D.charCodeAt(j)))return!1;q=!0}return q&&W!=="_"}for(;j<B;j++)if(W=D[j],W!=="_"){if(!d(D.charCodeAt(j)))return!1;q=!0}return q&&W!=="_"}if(W==="_")return!1;for(;j<B;j++)if(W=D[j],W!=="_"){if(W===":")break;if(!b(D.charCodeAt(j)))return!1;q=!0}return!q||W==="_"?!1:W!==":"?!0:/^(:[0-5]?[0-9])+$/.test(D.slice(j))}function g(D){var B=D,j=1,q,W,R=[];return B.indexOf("_")!==-1&&(B=B.replace(/_/g,"")),q=B[0],(q==="-"||q==="+")&&(q==="-"&&(j=-1),B=B.slice(1),q=B[0]),B==="0"?0:q==="0"?B[1]==="b"?j*parseInt(B.slice(2),2):B[1]==="x"?j*parseInt(B,16):j*parseInt(B,8):B.indexOf(":")!==-1?(B.split(":").forEach(function(X){R.unshift(parseInt(X,10))}),B=0,W=1,R.forEach(function(X){B+=X*W,W*=60}),j*B):j*parseInt(B,10)}function L(D){return Object.prototype.toString.call(D)==="[object Number]"&&D%1==0&&!c.isNegativeZero(D)}h.exports=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:S,construct:g,predicate:L,represent:{binary:function(D){return D>=0?"0b"+D.toString(2):"-0b"+D.toString(2).slice(1)},octal:function(D){return D>=0?"0"+D.toString(8):"-0"+D.toString(8).slice(1)},decimal:function(D){return D.toString(10)},hexadecimal:function(D){return D>=0?"0x"+D.toString(16).toUpperCase():"-0x"+D.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},89811:(h,I,a)=>{"use strict";var c;try{var v=void 0;c=a(88150)}catch(L){typeof window!="undefined"&&(c=window.esprima)}var x=a(53899);function d(L){if(L===null)return!1;try{var D="("+L+")",B=c.parse(D,{range:!0});return!(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")}catch(j){return!1}}function b(L){var D="("+L+")",B=c.parse(D,{range:!0}),j=[],q;if(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return B.body[0].expression.params.forEach(function(W){j.push(W.name)}),q=B.body[0].expression.body.range,B.body[0].expression.body.type==="BlockStatement"?new Function(j,D.slice(q[0]+1,q[1]-1)):new Function(j,"return "+D.slice(q[0],q[1]))}function S(L){return L.toString()}function g(L){return Object.prototype.toString.call(L)==="[object Function]"}h.exports=new x("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:d,construct:b,predicate:g,represent:S})},97287:(h,I,a)=>{"use strict";var c=a(53899);function v(S){if(S===null||S.length===0)return!1;var g=S,L=/\/([gim]*)$/.exec(S),D="";return!(g[0]==="/"&&(L&&(D=L[1]),D.length>3||g[g.length-D.length-1]!=="/"))}function x(S){var g=S,L=/\/([gim]*)$/.exec(S),D="";return g[0]==="/"&&(L&&(D=L[1]),g=g.slice(1,g.length-D.length-1)),new RegExp(g,D)}function d(S){var g="/"+S.source+"/";return S.global&&(g+="g"),S.multiline&&(g+="m"),S.ignoreCase&&(g+="i"),g}function b(S){return Object.prototype.toString.call(S)==="[object RegExp]"}h.exports=new c("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},70575:(h,I,a)=>{"use strict";var c=a(53899);function v(){return!0}function x(){}function d(){return""}function b(S){return typeof S=="undefined"}h.exports=new c("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},86553:(h,I,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:map",{kind:"mapping",construct:function(v){return v!==null?v:{}}})},243:(h,I,a)=>{"use strict";var c=a(53899);function v(x){return x==="<<"||x===null}h.exports=new c("tag:yaml.org,2002:merge",{kind:"scalar",resolve:v})},3022:(h,I,a)=>{"use strict";var c=a(53899);function v(b){if(b===null)return!0;var S=b.length;return S===1&&b==="~"||S===4&&(b==="null"||b==="Null"||b==="NULL")}function x(){return null}function d(b){return b===null}h.exports=new c("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},3878:(h,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.hasOwnProperty,x=Object.prototype.toString;function d(S){if(S===null)return!0;var g=[],L,D,B,j,q,W=S;for(L=0,D=W.length;L<D;L+=1){if(B=W[L],q=!1,x.call(B)!=="[object Object]")return!1;for(j in B)if(v.call(B,j))if(!q)q=!0;else return!1;if(!q)return!1;if(g.indexOf(j)===-1)g.push(j);else return!1}return!0}function b(S){return S!==null?S:[]}h.exports=new c("tag:yaml.org,2002:omap",{kind:"sequence",resolve:d,construct:b})},68244:(h,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.toString;function x(b){if(b===null)return!0;var S,g,L,D,B,j=b;for(B=new Array(j.length),S=0,g=j.length;S<g;S+=1){if(L=j[S],v.call(L)!=="[object Object]"||(D=Object.keys(L),D.length!==1))return!1;B[S]=[D[0],L[D[0]]]}return!0}function d(b){if(b===null)return[];var S,g,L,D,B,j=b;for(B=new Array(j.length),S=0,g=j.length;S<g;S+=1)L=j[S],D=Object.keys(L),B[S]=[D[0],L[D[0]]];return B}h.exports=new c("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:x,construct:d})},43745:(h,I,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(v){return v!==null?v:[]}})},67300:(h,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.hasOwnProperty;function x(b){if(b===null)return!0;var S,g=b;for(S in g)if(v.call(g,S)&&g[S]!==null)return!1;return!0}function d(b){return b!==null?b:{}}h.exports=new c("tag:yaml.org,2002:set",{kind:"mapping",resolve:x,construct:d})},79483:(h,I,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:str",{kind:"scalar",construct:function(v){return v!==null?v:""}})},56145:(h,I,a)=>{"use strict";var c=a(53899),v=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),x=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function d(g){return g===null?!1:v.exec(g)!==null||x.exec(g)!==null}function b(g){var L,D,B,j,q,W,R,X=0,M=null,C,V,J;if(L=v.exec(g),L===null&&(L=x.exec(g)),L===null)throw new Error("Date resolve error");if(D=+L[1],B=+L[2]-1,j=+L[3],!L[4])return new Date(Date.UTC(D,B,j));if(q=+L[4],W=+L[5],R=+L[6],L[7]){for(X=L[7].slice(0,3);X.length<3;)X+="0";X=+X}return L[9]&&(C=+L[10],V=+(L[11]||0),M=(C*60+V)*6e4,L[9]==="-"&&(M=-M)),J=new Date(Date.UTC(D,B,j,q,W,R,X)),M&&J.setTime(J.getTime()-M),J}function S(g){return g.toISOString()}h.exports=new c("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:d,construct:b,instanceOf:Date,represent:S})},18552:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"DataView");h.exports=x},1989:(h,I,a)=>{var c=a(51789),v=a(80401),x=a(57667),d=a(21327),b=a(81866);function S(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},38407:(h,I,a)=>{var c=a(27040),v=a(14125),x=a(82117),d=a(67518),b=a(13399);function S(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},57071:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"Map");h.exports=x},83369:(h,I,a)=>{var c=a(24785),v=a(11285),x=a(96e3),d=a(49916),b=a(95265);function S(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},53818:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"Promise");h.exports=x},58525:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"Set");h.exports=x},88668:(h,I,a)=>{var c=a(83369),v=a(90619),x=a(72385);function d(b){var S=-1,g=b==null?0:b.length;for(this.__data__=new c;++S<g;)this.add(b[S])}d.prototype.add=d.prototype.push=v,d.prototype.has=x,h.exports=d},46384:(h,I,a)=>{var c=a(38407),v=a(37465),x=a(63779),d=a(67599),b=a(44758),S=a(34309);function g(L){var D=this.__data__=new c(L);this.size=D.size}g.prototype.clear=v,g.prototype.delete=x,g.prototype.get=d,g.prototype.has=b,g.prototype.set=S,h.exports=g},62705:(h,I,a)=>{var c=a(55639),v=c.Symbol;h.exports=v},11149:(h,I,a)=>{var c=a(55639),v=c.Uint8Array;h.exports=v},70577:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"WeakMap");h.exports=x},96874:h=>{function I(a,c,v){switch(v.length){case 0:return a.call(c);case 1:return a.call(c,v[0]);case 2:return a.call(c,v[0],v[1]);case 3:return a.call(c,v[0],v[1],v[2])}return a.apply(c,v)}h.exports=I},77412:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length;++v<x&&c(a[v],v,a)!==!1;);return a}h.exports=I},34963:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length,d=0,b=[];++v<x;){var S=a[v];c(S,v,a)&&(b[d++]=S)}return b}h.exports=I},14636:(h,I,a)=>{var c=a(22545),v=a(35694),x=a(1469),d=a(44144),b=a(65776),S=a(36719),g=Object.prototype,L=g.hasOwnProperty;function D(B,j){var q=x(B),W=!q&&v(B),R=!q&&!W&&d(B),X=!q&&!W&&!R&&S(B),M=q||W||R||X,C=M?c(B.length,String):[],V=C.length;for(var J in B)(j||L.call(B,J))&&!(M&&(J=="length"||R&&(J=="offset"||J=="parent")||X&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||b(J,V)))&&C.push(J);return C}h.exports=D},29932:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length,d=Array(x);++v<x;)d[v]=c(a[v],v,a);return d}h.exports=I},62488:h=>{function I(a,c){for(var v=-1,x=c.length,d=a.length;++v<x;)a[d+v]=c[v];return a}h.exports=I},82908:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length;++v<x;)if(c(a[v],v,a))return!0;return!1}h.exports=I},34865:(h,I,a)=>{var c=a(89465),v=a(77813),x=Object.prototype,d=x.hasOwnProperty;function b(S,g,L){var D=S[g];(!(d.call(S,g)&&v(D,L))||L===void 0&&!(g in S))&&c(S,g,L)}h.exports=b},18470:(h,I,a)=>{var c=a(77813);function v(x,d){for(var b=x.length;b--;)if(c(x[b][0],d))return b;return-1}h.exports=v},44037:(h,I,a)=>{var c=a(98363),v=a(3674);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},63886:(h,I,a)=>{var c=a(98363),v=a(81704);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},89465:(h,I,a)=>{var c=a(38777);function v(x,d,b){d=="__proto__"&&c?c(x,d,{configurable:!0,enumerable:!0,value:b,writable:!0}):x[d]=b}h.exports=v},29750:h=>{function I(a,c,v){return a===a&&(v!==void 0&&(a=a<=v?a:v),c!==void 0&&(a=a>=c?a:c)),a}h.exports=I},85990:(h,I,a)=>{var c=a(46384),v=a(77412),x=a(34865),d=a(44037),b=a(63886),S=a(64626),g=a(278),L=a(18805),D=a(1911),B=a(58234),j=a(46904),q=a(98882),W=a(43824),R=a(29148),X=a(38517),M=a(1469),C=a(44144),V=a(56688),J=a(13218),_=a(72928),Q=a(3674),Y=a(81704),ce=1,ee=2,ie=4,me="[object Arguments]",be="[object Array]",he="[object Boolean]",ue="[object Date]",oe="[object Error]",Fe="[object Function]",Le="[object GeneratorFunction]",Re="[object Map]",Pe="[object Number]",rt="[object Object]",Ze="[object RegExp]",Xe="[object Set]",ft="[object String]",ht="[object Symbol]",bt="[object WeakMap]",nt="[object ArrayBuffer]",ut="[object DataView]",yt="[object Float32Array]",mt="[object Float64Array]",pt="[object Int8Array]",Rt="[object Int16Array]",kt="[object Int32Array]",Ct="[object Uint8Array]",Wt="[object Uint8ClampedArray]",jt="[object Uint16Array]",Vt="[object Uint32Array]",St={};St[me]=St[be]=St[nt]=St[ut]=St[he]=St[ue]=St[yt]=St[mt]=St[pt]=St[Rt]=St[kt]=St[Re]=St[Pe]=St[rt]=St[Ze]=St[Xe]=St[ft]=St[ht]=St[Ct]=St[Wt]=St[jt]=St[Vt]=!0,St[oe]=St[Fe]=St[bt]=!1;function Dt(ve,z,$,Se,Ie,Ge){var Ke,P=z&ce,Me=z&ee,K=z&ie;if($&&(Ke=Ie?$(ve,Se,Ie,Ge):$(ve)),Ke!==void 0)return Ke;if(!J(ve))return ve;var T=M(ve);if(T){if(Ke=W(ve),!P)return g(ve,Ke)}else{var O=q(ve),se=O==Fe||O==Le;if(C(ve))return S(ve,P);if(O==rt||O==me||se&&!Ie){if(Ke=Me||se?{}:X(ve),!P)return Me?D(ve,b(Ke,ve)):L(ve,d(Ke,ve))}else{if(!St[O])return Ie?ve:{};Ke=R(ve,O,P)}}Ge||(Ge=new c);var N=Ge.get(ve);if(N)return N;Ge.set(ve,Ke),_(ve)?ve.forEach(function(ae){Ke.add(Dt(ae,z,$,ae,ve,Ge))}):V(ve)&&ve.forEach(function(ae,pe){Ke.set(pe,Dt(ae,z,$,pe,ve,Ge))});var re=K?Me?j:B:Me?Y:Q,de=T?void 0:re(ve);return v(de||ve,function(ae,pe){de&&(pe=ae,ae=ve[pe]),x(Ke,pe,Dt(ae,z,$,pe,ve,Ge))}),Ke}h.exports=Dt},3118:(h,I,a)=>{var c=a(13218),v=Object.create,x=function(){function d(){}return function(b){if(!c(b))return{};if(v)return v(b);d.prototype=b;var S=new d;return d.prototype=void 0,S}}();h.exports=x},41848:h=>{function I(a,c,v,x){for(var d=a.length,b=v+(x?1:-1);x?b--:++b<d;)if(c(a[b],b,a))return b;return-1}h.exports=I},35764:(h,I,a)=>{var c=a(62488),v=a(37285);function x(d,b,S,g,L){var D=-1,B=d.length;for(S||(S=v),L||(L=[]);++D<B;){var j=d[D];b>0&&S(j)?b>1?x(j,b-1,S,g,L):c(L,j):g||(L[L.length]=j)}return L}h.exports=x},97786:(h,I,a)=>{var c=a(71811),v=a(40327);function x(d,b){b=c(b,d);for(var S=0,g=b.length;d!=null&&S<g;)d=d[v(b[S++])];return S&&S==g?d:void 0}h.exports=x},68866:(h,I,a)=>{var c=a(62488),v=a(1469);function x(d,b,S){var g=b(d);return v(d)?g:c(g,S(d))}h.exports=x},44239:(h,I,a)=>{var c=a(62705),v=a(89607),x=a(2333),d="[object Null]",b="[object Undefined]",S=c?c.toStringTag:void 0;function g(L){return L==null?L===void 0?b:d:S&&S in Object(L)?v(L):x(L)}h.exports=g},13:h=>{function I(a,c){return a!=null&&c in Object(a)}h.exports=I},9454:(h,I,a)=>{var c=a(44239),v=a(37005),x="[object Arguments]";function d(b){return v(b)&&c(b)==x}h.exports=d},90939:(h,I,a)=>{var c=a(2492),v=a(37005);function x(d,b,S,g,L){return d===b?!0:d==null||b==null||!v(d)&&!v(b)?d!==d&&b!==b:c(d,b,S,g,x,L)}h.exports=x},2492:(h,I,a)=>{var c=a(46384),v=a(67114),x=a(18351),d=a(16096),b=a(98882),S=a(1469),g=a(44144),L=a(36719),D=1,B="[object Arguments]",j="[object Array]",q="[object Object]",W=Object.prototype,R=W.hasOwnProperty;function X(M,C,V,J,_,Q){var Y=S(M),ce=S(C),ee=Y?j:b(M),ie=ce?j:b(C);ee=ee==B?q:ee,ie=ie==B?q:ie;var me=ee==q,be=ie==q,he=ee==ie;if(he&&g(M)){if(!g(C))return!1;Y=!0,me=!1}if(he&&!me)return Q||(Q=new c),Y||L(M)?v(M,C,V,J,_,Q):x(M,C,ee,V,J,_,Q);if(!(V&D)){var ue=me&&R.call(M,"__wrapped__"),oe=be&&R.call(C,"__wrapped__");if(ue||oe){var Fe=ue?M.value():M,Le=oe?C.value():C;return Q||(Q=new c),_(Fe,Le,V,J,Q)}}return he?(Q||(Q=new c),d(M,C,V,J,_,Q)):!1}h.exports=X},25588:(h,I,a)=>{var c=a(98882),v=a(37005),x="[object Map]";function d(b){return v(b)&&c(b)==x}h.exports=d},2958:(h,I,a)=>{var c=a(46384),v=a(90939),x=1,d=2;function b(S,g,L,D){var B=L.length,j=B,q=!D;if(S==null)return!j;for(S=Object(S);B--;){var W=L[B];if(q&&W[2]?W[1]!==S[W[0]]:!(W[0]in S))return!1}for(;++B<j;){W=L[B];var R=W[0],X=S[R],M=W[1];if(q&&W[2]){if(X===void 0&&!(R in S))return!1}else{var C=new c;if(D)var V=D(X,M,R,S,g,C);if(!(V===void 0?v(M,X,x|d,D,C):V))return!1}}return!0}h.exports=b},28458:(h,I,a)=>{var c=a(23560),v=a(15346),x=a(13218),d=a(80346),b=/[\\^$.*+?()[\]{}|]/g,S=/^\[object .+?Constructor\]$/,g=Function.prototype,L=Object.prototype,D=g.toString,B=L.hasOwnProperty,j=RegExp("^"+D.call(B).replace(b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function q(W){if(!x(W)||v(W))return!1;var R=c(W)?j:S;return R.test(d(W))}h.exports=q},29221:(h,I,a)=>{var c=a(98882),v=a(37005),x="[object Set]";function d(b){return v(b)&&c(b)==x}h.exports=d},38749:(h,I,a)=>{var c=a(44239),v=a(41780),x=a(37005),d="[object Arguments]",b="[object Array]",S="[object Boolean]",g="[object Date]",L="[object Error]",D="[object Function]",B="[object Map]",j="[object Number]",q="[object Object]",W="[object RegExp]",R="[object Set]",X="[object String]",M="[object WeakMap]",C="[object ArrayBuffer]",V="[object DataView]",J="[object Float32Array]",_="[object Float64Array]",Q="[object Int8Array]",Y="[object Int16Array]",ce="[object Int32Array]",ee="[object Uint8Array]",ie="[object Uint8ClampedArray]",me="[object Uint16Array]",be="[object Uint32Array]",he={};he[J]=he[_]=he[Q]=he[Y]=he[ce]=he[ee]=he[ie]=he[me]=he[be]=!0,he[d]=he[b]=he[C]=he[S]=he[V]=he[g]=he[L]=he[D]=he[B]=he[j]=he[q]=he[W]=he[R]=he[X]=he[M]=!1;function ue(oe){return x(oe)&&v(oe.length)&&!!he[c(oe)]}h.exports=ue},67206:(h,I,a)=>{var c=a(91573),v=a(16432),x=a(6557),d=a(1469),b=a(39601);function S(g){return typeof g=="function"?g:g==null?x:typeof g=="object"?d(g)?v(g[0],g[1]):c(g):b(g)}h.exports=S},280:(h,I,a)=>{var c=a(25726),v=a(86916),x=Object.prototype,d=x.hasOwnProperty;function b(S){if(!c(S))return v(S);var g=[];for(var L in Object(S))d.call(S,L)&&L!="constructor"&&g.push(L);return g}h.exports=b},10313:(h,I,a)=>{var c=a(13218),v=a(25726),x=a(33498),d=Object.prototype,b=d.hasOwnProperty;function S(g){if(!c(g))return x(g);var L=v(g),D=[];for(var B in g)B=="constructor"&&(L||!b.call(g,B))||D.push(B);return D}h.exports=S},91573:(h,I,a)=>{var c=a(2958),v=a(1499),x=a(42634);function d(b){var S=v(b);return S.length==1&&S[0][2]?x(S[0][0],S[0][1]):function(g){return g===b||c(g,b,S)}}h.exports=d},16432:(h,I,a)=>{var c=a(90939),v=a(27361),x=a(79095),d=a(15403),b=a(89162),S=a(42634),g=a(40327),L=1,D=2;function B(j,q){return d(j)&&b(q)?S(g(j),q):function(W){var R=v(W,j);return R===void 0&&R===q?x(W,j):c(q,R,L|D)}}h.exports=B},25970:(h,I,a)=>{var c=a(63012),v=a(79095);function x(d,b){return c(d,b,function(S,g){return v(d,g)})}h.exports=x},63012:(h,I,a)=>{var c=a(97786),v=a(10611),x=a(71811);function d(b,S,g){for(var L=-1,D=S.length,B={};++L<D;){var j=S[L],q=c(b,j);g(q,j)&&v(B,x(j,b),q)}return B}h.exports=d},40371:h=>{function I(a){return function(c){return c==null?void 0:c[a]}}h.exports=I},79152:(h,I,a)=>{var c=a(97786);function v(x){return function(d){return c(d,x)}}h.exports=v},5976:(h,I,a)=>{var c=a(6557),v=a(45357),x=a(30061);function d(b,S){return x(v(b,S,c),b+"")}h.exports=d},10611:(h,I,a)=>{var c=a(34865),v=a(71811),x=a(65776),d=a(13218),b=a(40327);function S(g,L,D,B){if(!d(g))return g;L=v(L,g);for(var j=-1,q=L.length,W=q-1,R=g;R!=null&&++j<q;){var X=b(L[j]),M=D;if(X==="__proto__"||X==="constructor"||X==="prototype")return g;if(j!=W){var C=R[X];M=B?B(C,X,R):void 0,M===void 0&&(M=d(C)?C:x(L[j+1])?[]:{})}c(R,X,M),R=R[X]}return g}h.exports=S},56560:(h,I,a)=>{var c=a(75703),v=a(38777),x=a(6557),d=v?function(b,S){return v(b,"toString",{configurable:!0,enumerable:!1,value:c(S),writable:!0})}:x;h.exports=d},22545:h=>{function I(a,c){for(var v=-1,x=Array(a);++v<a;)x[v]=c(v);return x}h.exports=I},80531:(h,I,a)=>{var c=a(62705),v=a(29932),x=a(1469),d=a(33448),b=1/0,S=c?c.prototype:void 0,g=S?S.toString:void 0;function L(D){if(typeof D=="string")return D;if(x(D))return v(D,L)+"";if(d(D))return g?g.call(D):"";var B=D+"";return B=="0"&&1/D==-b?"-0":B}h.exports=L},27561:(h,I,a)=>{var c=a(67990),v=/^\s+/;function x(d){return d&&d.slice(0,c(d)+1).replace(v,"")}h.exports=x},7518:h=>{function I(a){return function(c){return a(c)}}h.exports=I},74757:h=>{function I(a,c){return a.has(c)}h.exports=I},71811:(h,I,a)=>{var c=a(1469),v=a(15403),x=a(55514),d=a(79833);function b(S,g){return c(S)?S:v(S,g)?[S]:x(d(S))}h.exports=b},74318:(h,I,a)=>{var c=a(11149);function v(x){var d=new x.constructor(x.byteLength);return new c(d).set(new c(x)),d}h.exports=v},64626:(h,I,a)=>{h=a.nmd(h);var c=a(55639),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d?c.Buffer:void 0,S=b?b.allocUnsafe:void 0;function g(L,D){if(D)return L.slice();var B=L.length,j=S?S(B):new L.constructor(B);return L.copy(j),j}h.exports=g},57157:(h,I,a)=>{var c=a(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.byteLength)}h.exports=v},93147:h=>{var I=/\w*$/;function a(c){var v=new c.constructor(c.source,I.exec(c));return v.lastIndex=c.lastIndex,v}h.exports=a},40419:(h,I,a)=>{var c=a(62705),v=c?c.prototype:void 0,x=v?v.valueOf:void 0;function d(b){return x?Object(x.call(b)):{}}h.exports=d},77133:(h,I,a)=>{var c=a(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.length)}h.exports=v},278:h=>{function I(a,c){var v=-1,x=a.length;for(c||(c=Array(x));++v<x;)c[v]=a[v];return c}h.exports=I},98363:(h,I,a)=>{var c=a(34865),v=a(89465);function x(d,b,S,g){var L=!S;S||(S={});for(var D=-1,B=b.length;++D<B;){var j=b[D],q=g?g(S[j],d[j],j,S,d):void 0;q===void 0&&(q=d[j]),L?v(S,j,q):c(S,j,q)}return S}h.exports=x},18805:(h,I,a)=>{var c=a(98363),v=a(99551);function x(d,b){return c(d,v(d),b)}h.exports=x},1911:(h,I,a)=>{var c=a(98363),v=a(51442);function x(d,b){return c(d,v(d),b)}h.exports=x},14429:(h,I,a)=>{var c=a(55639),v=c["__core-js_shared__"];h.exports=v},21463:(h,I,a)=>{var c=a(5976),v=a(16612);function x(d){return c(function(b,S){var g=-1,L=S.length,D=L>1?S[L-1]:void 0,B=L>2?S[2]:void 0;for(D=d.length>3&&typeof D=="function"?(L--,D):void 0,B&&v(S[0],S[1],B)&&(D=L<3?void 0:D,L=1),b=Object(b);++g<L;){var j=S[g];j&&d(b,j,g,D)}return b})}h.exports=x},67740:(h,I,a)=>{var c=a(67206),v=a(98612),x=a(3674);function d(b){return function(S,g,L){var D=Object(S);if(!v(S)){var B=c(g,3);S=x(S),g=function(q){return B(D[q],q,D)}}var j=b(S,g,L);return j>-1?D[B?S[j]:j]:void 0}}h.exports=d},38777:(h,I,a)=>{var c=a(10852),v=function(){try{var x=c(Object,"defineProperty");return x({},"",{}),x}catch(d){}}();h.exports=v},67114:(h,I,a)=>{var c=a(88668),v=a(82908),x=a(74757),d=1,b=2;function S(g,L,D,B,j,q){var W=D&d,R=g.length,X=L.length;if(R!=X&&!(W&&X>R))return!1;var M=q.get(g),C=q.get(L);if(M&&C)return M==L&&C==g;var V=-1,J=!0,_=D&b?new c:void 0;for(q.set(g,L),q.set(L,g);++V<R;){var Q=g[V],Y=L[V];if(B)var ce=W?B(Y,Q,V,L,g,q):B(Q,Y,V,g,L,q);if(ce!==void 0){if(ce)continue;J=!1;break}if(_){if(!v(L,function(ee,ie){if(!x(_,ie)&&(Q===ee||j(Q,ee,D,B,q)))return _.push(ie)})){J=!1;break}}else if(!(Q===Y||j(Q,Y,D,B,q))){J=!1;break}}return q.delete(g),q.delete(L),J}h.exports=S},18351:(h,I,a)=>{var c=a(62705),v=a(11149),x=a(77813),d=a(67114),b=a(68776),S=a(21814),g=1,L=2,D="[object Boolean]",B="[object Date]",j="[object Error]",q="[object Map]",W="[object Number]",R="[object RegExp]",X="[object Set]",M="[object String]",C="[object Symbol]",V="[object ArrayBuffer]",J="[object DataView]",_=c?c.prototype:void 0,Q=_?_.valueOf:void 0;function Y(ce,ee,ie,me,be,he,ue){switch(ie){case J:if(ce.byteLength!=ee.byteLength||ce.byteOffset!=ee.byteOffset)return!1;ce=ce.buffer,ee=ee.buffer;case V:return!(ce.byteLength!=ee.byteLength||!he(new v(ce),new v(ee)));case D:case B:case W:return x(+ce,+ee);case j:return ce.name==ee.name&&ce.message==ee.message;case R:case M:return ce==ee+"";case q:var oe=b;case X:var Fe=me&g;if(oe||(oe=S),ce.size!=ee.size&&!Fe)return!1;var Le=ue.get(ce);if(Le)return Le==ee;me|=L,ue.set(ce,ee);var Re=d(oe(ce),oe(ee),me,be,he,ue);return ue.delete(ce),Re;case C:if(Q)return Q.call(ce)==Q.call(ee)}return!1}h.exports=Y},16096:(h,I,a)=>{var c=a(58234),v=1,x=Object.prototype,d=x.hasOwnProperty;function b(S,g,L,D,B,j){var q=L&v,W=c(S),R=W.length,X=c(g),M=X.length;if(R!=M&&!q)return!1;for(var C=R;C--;){var V=W[C];if(!(q?V in g:d.call(g,V)))return!1}var J=j.get(S),_=j.get(g);if(J&&_)return J==g&&_==S;var Q=!0;j.set(S,g),j.set(g,S);for(var Y=q;++C<R;){V=W[C];var ce=S[V],ee=g[V];if(D)var ie=q?D(ee,ce,V,g,S,j):D(ce,ee,V,S,g,j);if(!(ie===void 0?ce===ee||B(ce,ee,L,D,j):ie)){Q=!1;break}Y||(Y=V=="constructor")}if(Q&&!Y){var me=S.constructor,be=g.constructor;me!=be&&"constructor"in S&&"constructor"in g&&!(typeof me=="function"&&me instanceof me&&typeof be=="function"&&be instanceof be)&&(Q=!1)}return j.delete(S),j.delete(g),Q}h.exports=b},99021:(h,I,a)=>{var c=a(85564),v=a(45357),x=a(30061);function d(b){return x(v(b,void 0,c),b+"")}h.exports=d},31957:(h,I,a)=>{var c=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g;h.exports=c},58234:(h,I,a)=>{var c=a(68866),v=a(99551),x=a(3674);function d(b){return c(b,x,v)}h.exports=d},46904:(h,I,a)=>{var c=a(68866),v=a(51442),x=a(81704);function d(b){return c(b,x,v)}h.exports=d},45050:(h,I,a)=>{var c=a(37019);function v(x,d){var b=x.__data__;return c(d)?b[typeof d=="string"?"string":"hash"]:b.map}h.exports=v},1499:(h,I,a)=>{var c=a(89162),v=a(3674);function x(d){for(var b=v(d),S=b.length;S--;){var g=b[S],L=d[g];b[S]=[g,L,c(L)]}return b}h.exports=x},10852:(h,I,a)=>{var c=a(28458),v=a(47801);function x(d,b){var S=v(d,b);return c(S)?S:void 0}h.exports=x},85924:(h,I,a)=>{var c=a(5569),v=c(Object.getPrototypeOf,Object);h.exports=v},89607:(h,I,a)=>{var c=a(62705),v=Object.prototype,x=v.hasOwnProperty,d=v.toString,b=c?c.toStringTag:void 0;function S(g){var L=x.call(g,b),D=g[b];try{g[b]=void 0;var B=!0}catch(q){}var j=d.call(g);return B&&(L?g[b]=D:delete g[b]),j}h.exports=S},99551:(h,I,a)=>{var c=a(34963),v=a(70479),x=Object.prototype,d=x.propertyIsEnumerable,b=Object.getOwnPropertySymbols,S=b?function(g){return g==null?[]:(g=Object(g),c(b(g),function(L){return d.call(g,L)}))}:v;h.exports=S},51442:(h,I,a)=>{var c=a(62488),v=a(85924),x=a(99551),d=a(70479),b=Object.getOwnPropertySymbols,S=b?function(g){for(var L=[];g;)c(L,x(g)),g=v(g);return L}:d;h.exports=S},98882:(h,I,a)=>{var c=a(18552),v=a(57071),x=a(53818),d=a(58525),b=a(70577),S=a(44239),g=a(80346),L="[object Map]",D="[object Object]",B="[object Promise]",j="[object Set]",q="[object WeakMap]",W="[object DataView]",R=g(c),X=g(v),M=g(x),C=g(d),V=g(b),J=S;(c&&J(new c(new ArrayBuffer(1)))!=W||v&&J(new v)!=L||x&&J(x.resolve())!=B||d&&J(new d)!=j||b&&J(new b)!=q)&&(J=function(_){var Q=S(_),Y=Q==D?_.constructor:void 0,ce=Y?g(Y):"";if(ce)switch(ce){case R:return W;case X:return L;case M:return B;case C:return j;case V:return q}return Q}),h.exports=J},47801:h=>{function I(a,c){return a==null?void 0:a[c]}h.exports=I},222:(h,I,a)=>{var c=a(71811),v=a(35694),x=a(1469),d=a(65776),b=a(41780),S=a(40327);function g(L,D,B){D=c(D,L);for(var j=-1,q=D.length,W=!1;++j<q;){var R=S(D[j]);if(!(W=L!=null&&B(L,R)))break;L=L[R]}return W||++j!=q?W:(q=L==null?0:L.length,!!q&&b(q)&&d(R,q)&&(x(L)||v(L)))}h.exports=g},51789:(h,I,a)=>{var c=a(94536);function v(){this.__data__=c?c(null):{},this.size=0}h.exports=v},80401:h=>{function I(a){var c=this.has(a)&&delete this.__data__[a];return this.size-=c?1:0,c}h.exports=I},57667:(h,I,a)=>{var c=a(94536),v="__lodash_hash_undefined__",x=Object.prototype,d=x.hasOwnProperty;function b(S){var g=this.__data__;if(c){var L=g[S];return L===v?void 0:L}return d.call(g,S)?g[S]:void 0}h.exports=b},21327:(h,I,a)=>{var c=a(94536),v=Object.prototype,x=v.hasOwnProperty;function d(b){var S=this.__data__;return c?S[b]!==void 0:x.call(S,b)}h.exports=d},81866:(h,I,a)=>{var c=a(94536),v="__lodash_hash_undefined__";function x(d,b){var S=this.__data__;return this.size+=this.has(d)?0:1,S[d]=c&&b===void 0?v:b,this}h.exports=x},43824:h=>{var I=Object.prototype,a=I.hasOwnProperty;function c(v){var x=v.length,d=new v.constructor(x);return x&&typeof v[0]=="string"&&a.call(v,"index")&&(d.index=v.index,d.input=v.input),d}h.exports=c},29148:(h,I,a)=>{var c=a(74318),v=a(57157),x=a(93147),d=a(40419),b=a(77133),S="[object Boolean]",g="[object Date]",L="[object Map]",D="[object Number]",B="[object RegExp]",j="[object Set]",q="[object String]",W="[object Symbol]",R="[object ArrayBuffer]",X="[object DataView]",M="[object Float32Array]",C="[object Float64Array]",V="[object Int8Array]",J="[object Int16Array]",_="[object Int32Array]",Q="[object Uint8Array]",Y="[object Uint8ClampedArray]",ce="[object Uint16Array]",ee="[object Uint32Array]";function ie(me,be,he){var ue=me.constructor;switch(be){case R:return c(me);case S:case g:return new ue(+me);case X:return v(me,he);case M:case C:case V:case J:case _:case Q:case Y:case ce:case ee:return b(me,he);case L:return new ue;case D:case q:return new ue(me);case B:return x(me);case j:return new ue;case W:return d(me)}}h.exports=ie},38517:(h,I,a)=>{var c=a(3118),v=a(85924),x=a(25726);function d(b){return typeof b.constructor=="function"&&!x(b)?c(v(b)):{}}h.exports=d},37285:(h,I,a)=>{var c=a(62705),v=a(35694),x=a(1469),d=c?c.isConcatSpreadable:void 0;function b(S){return x(S)||v(S)||!!(d&&S&&S[d])}h.exports=b},65776:h=>{var I=9007199254740991,a=/^(?:0|[1-9]\d*)$/;function c(v,x){var d=typeof v;return x=x==null?I:x,!!x&&(d=="number"||d!="symbol"&&a.test(v))&&v>-1&&v%1==0&&v<x}h.exports=c},16612:(h,I,a)=>{var c=a(77813),v=a(98612),x=a(65776),d=a(13218);function b(S,g,L){if(!d(L))return!1;var D=typeof g;return(D=="number"?v(L)&&x(g,L.length):D=="string"&&g in L)?c(L[g],S):!1}h.exports=b},15403:(h,I,a)=>{var c=a(1469),v=a(33448),x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/;function b(S,g){if(c(S))return!1;var L=typeof S;return L=="number"||L=="symbol"||L=="boolean"||S==null||v(S)?!0:d.test(S)||!x.test(S)||g!=null&&S in Object(g)}h.exports=b},37019:h=>{function I(a){var c=typeof a;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?a!=="__proto__":a===null}h.exports=I},15346:(h,I,a)=>{var c=a(14429),v=function(){var d=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}();function x(d){return!!v&&v in d}h.exports=x},25726:h=>{var I=Object.prototype;function a(c){var v=c&&c.constructor,x=typeof v=="function"&&v.prototype||I;return c===x}h.exports=a},89162:(h,I,a)=>{var c=a(13218);function v(x){return x===x&&!c(x)}h.exports=v},27040:h=>{function I(){this.__data__=[],this.size=0}h.exports=I},14125:(h,I,a)=>{var c=a(18470),v=Array.prototype,x=v.splice;function d(b){var S=this.__data__,g=c(S,b);if(g<0)return!1;var L=S.length-1;return g==L?S.pop():x.call(S,g,1),--this.size,!0}h.exports=d},82117:(h,I,a)=>{var c=a(18470);function v(x){var d=this.__data__,b=c(d,x);return b<0?void 0:d[b][1]}h.exports=v},67518:(h,I,a)=>{var c=a(18470);function v(x){return c(this.__data__,x)>-1}h.exports=v},13399:(h,I,a)=>{var c=a(18470);function v(x,d){var b=this.__data__,S=c(b,x);return S<0?(++this.size,b.push([x,d])):b[S][1]=d,this}h.exports=v},24785:(h,I,a)=>{var c=a(1989),v=a(38407),x=a(57071);function d(){this.size=0,this.__data__={hash:new c,map:new(x||v),string:new c}}h.exports=d},11285:(h,I,a)=>{var c=a(45050);function v(x){var d=c(this,x).delete(x);return this.size-=d?1:0,d}h.exports=v},96e3:(h,I,a)=>{var c=a(45050);function v(x){return c(this,x).get(x)}h.exports=v},49916:(h,I,a)=>{var c=a(45050);function v(x){return c(this,x).has(x)}h.exports=v},95265:(h,I,a)=>{var c=a(45050);function v(x,d){var b=c(this,x),S=b.size;return b.set(x,d),this.size+=b.size==S?0:1,this}h.exports=v},68776:h=>{function I(a){var c=-1,v=Array(a.size);return a.forEach(function(x,d){v[++c]=[d,x]}),v}h.exports=I},42634:h=>{function I(a,c){return function(v){return v==null?!1:v[a]===c&&(c!==void 0||a in Object(v))}}h.exports=I},24523:(h,I,a)=>{var c=a(88306),v=500;function x(d){var b=c(d,function(g){return S.size===v&&S.clear(),g}),S=b.cache;return b}h.exports=x},94536:(h,I,a)=>{var c=a(10852),v=c(Object,"create");h.exports=v},86916:(h,I,a)=>{var c=a(5569),v=c(Object.keys,Object);h.exports=v},33498:h=>{function I(a){var c=[];if(a!=null)for(var v in Object(a))c.push(v);return c}h.exports=I},31167:(h,I,a)=>{h=a.nmd(h);var c=a(31957),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d&&c.process,S=function(){try{var g=x&&x.require&&x.require("util").types;return g||b&&b.binding&&b.binding("util")}catch(L){}}();h.exports=S},2333:h=>{var I=Object.prototype,a=I.toString;function c(v){return a.call(v)}h.exports=c},5569:h=>{function I(a,c){return function(v){return a(c(v))}}h.exports=I},45357:(h,I,a)=>{var c=a(96874),v=Math.max;function x(d,b,S){return b=v(b===void 0?d.length-1:b,0),function(){for(var g=arguments,L=-1,D=v(g.length-b,0),B=Array(D);++L<D;)B[L]=g[b+L];L=-1;for(var j=Array(b+1);++L<b;)j[L]=g[L];return j[b]=S(B),c(d,this,j)}}h.exports=x},55639:(h,I,a)=>{var c=a(31957),v=typeof self=="object"&&self&&self.Object===Object&&self,x=c||v||Function("return this")();h.exports=x},90619:h=>{var I="__lodash_hash_undefined__";function a(c){return this.__data__.set(c,I),this}h.exports=a},72385:h=>{function I(a){return this.__data__.has(a)}h.exports=I},21814:h=>{function I(a){var c=-1,v=Array(a.size);return a.forEach(function(x){v[++c]=x}),v}h.exports=I},30061:(h,I,a)=>{var c=a(56560),v=a(21275),x=v(c);h.exports=x},21275:h=>{var I=800,a=16,c=Date.now;function v(x){var d=0,b=0;return function(){var S=c(),g=a-(S-b);if(b=S,g>0){if(++d>=I)return arguments[0]}else d=0;return x.apply(void 0,arguments)}}h.exports=v},37465:(h,I,a)=>{var c=a(38407);function v(){this.__data__=new c,this.size=0}h.exports=v},63779:h=>{function I(a){var c=this.__data__,v=c.delete(a);return this.size=c.size,v}h.exports=I},67599:h=>{function I(a){return this.__data__.get(a)}h.exports=I},44758:h=>{function I(a){return this.__data__.has(a)}h.exports=I},34309:(h,I,a)=>{var c=a(38407),v=a(57071),x=a(83369),d=200;function b(S,g){var L=this.__data__;if(L instanceof c){var D=L.__data__;if(!v||D.length<d-1)return D.push([S,g]),this.size=++L.size,this;L=this.__data__=new x(D)}return L.set(S,g),this.size=L.size,this}h.exports=b},55514:(h,I,a)=>{var c=a(24523),v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,d=c(function(b){var S=[];return b.charCodeAt(0)===46&&S.push(""),b.replace(v,function(g,L,D,B){S.push(D?B.replace(x,"$1"):L||g)}),S});h.exports=d},40327:(h,I,a)=>{var c=a(33448),v=1/0;function x(d){if(typeof d=="string"||c(d))return d;var b=d+"";return b=="0"&&1/d==-v?"-0":b}h.exports=x},80346:h=>{var I=Function.prototype,a=I.toString;function c(v){if(v!=null){try{return a.call(v)}catch(x){}try{return v+""}catch(x){}}return""}h.exports=c},67990:h=>{var I=/\s/;function a(c){for(var v=c.length;v--&&I.test(c.charAt(v)););return v}h.exports=a},28583:(h,I,a)=>{var c=a(34865),v=a(98363),x=a(21463),d=a(98612),b=a(25726),S=a(3674),g=Object.prototype,L=g.hasOwnProperty,D=x(function(B,j){if(b(j)||d(j)){v(j,S(j),B);return}for(var q in j)L.call(j,q)&&c(B,q,j[q])});h.exports=D},50361:(h,I,a)=>{var c=a(85990),v=1,x=4;function d(b){return c(b,v|x)}h.exports=d},75703:h=>{function I(a){return function(){return a}}h.exports=I},77813:h=>{function I(a,c){return a===c||a!==a&&c!==c}h.exports=I},13311:(h,I,a)=>{var c=a(67740),v=a(30998),x=c(v);h.exports=x},30998:(h,I,a)=>{var c=a(41848),v=a(67206),x=a(40554),d=Math.max;function b(S,g,L){var D=S==null?0:S.length;if(!D)return-1;var B=L==null?0:x(L);return B<0&&(B=d(D+B,0)),c(S,v(g,3),B)}h.exports=b},85564:(h,I,a)=>{var c=a(35764);function v(x){var d=x==null?0:x.length;return d?c(x,1):[]}h.exports=v},27361:(h,I,a)=>{var c=a(97786);function v(x,d,b){var S=x==null?void 0:c(x,d);return S===void 0?b:S}h.exports=v},79095:(h,I,a)=>{var c=a(13),v=a(222);function x(d,b){return d!=null&&v(d,b,c)}h.exports=x},6557:h=>{function I(a){return a}h.exports=I},35694:(h,I,a)=>{var c=a(9454),v=a(37005),x=Object.prototype,d=x.hasOwnProperty,b=x.propertyIsEnumerable,S=c(function(){return arguments}())?c:function(g){return v(g)&&d.call(g,"callee")&&!b.call(g,"callee")};h.exports=S},1469:h=>{var I=Array.isArray;h.exports=I},98612:(h,I,a)=>{var c=a(23560),v=a(41780);function x(d){return d!=null&&v(d.length)&&!c(d)}h.exports=x},44144:(h,I,a)=>{h=a.nmd(h);var c=a(55639),v=a(95062),x=I&&!I.nodeType&&I,d=x&&!0&&h&&!h.nodeType&&h,b=d&&d.exports===x,S=b?c.Buffer:void 0,g=S?S.isBuffer:void 0,L=g||v;h.exports=L},41609:(h,I,a)=>{var c=a(280),v=a(98882),x=a(35694),d=a(1469),b=a(98612),S=a(44144),g=a(25726),L=a(36719),D="[object Map]",B="[object Set]",j=Object.prototype,q=j.hasOwnProperty;function W(R){if(R==null)return!0;if(b(R)&&(d(R)||typeof R=="string"||typeof R.splice=="function"||S(R)||L(R)||x(R)))return!R.length;var X=v(R);if(X==D||X==B)return!R.size;if(g(R))return!c(R).length;for(var M in R)if(q.call(R,M))return!1;return!0}h.exports=W},23560:(h,I,a)=>{var c=a(44239),v=a(13218),x="[object AsyncFunction]",d="[object Function]",b="[object GeneratorFunction]",S="[object Proxy]";function g(L){if(!v(L))return!1;var D=c(L);return D==d||D==b||D==x||D==S}h.exports=g},41780:h=>{var I=9007199254740991;function a(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=I}h.exports=a},56688:(h,I,a)=>{var c=a(25588),v=a(7518),x=a(31167),d=x&&x.isMap,b=d?v(d):c;h.exports=b},13218:h=>{function I(a){var c=typeof a;return a!=null&&(c=="object"||c=="function")}h.exports=I},37005:h=>{function I(a){return a!=null&&typeof a=="object"}h.exports=I},68630:(h,I,a)=>{var c=a(44239),v=a(85924),x=a(37005),d="[object Object]",b=Function.prototype,S=Object.prototype,g=b.toString,L=S.hasOwnProperty,D=g.call(Object);function B(j){if(!x(j)||c(j)!=d)return!1;var q=v(j);if(q===null)return!0;var W=L.call(q,"constructor")&&q.constructor;return typeof W=="function"&&W instanceof W&&g.call(W)==D}h.exports=B},72928:(h,I,a)=>{var c=a(29221),v=a(7518),x=a(31167),d=x&&x.isSet,b=d?v(d):c;h.exports=b},47037:(h,I,a)=>{var c=a(44239),v=a(1469),x=a(37005),d="[object String]";function b(S){return typeof S=="string"||!v(S)&&x(S)&&c(S)==d}h.exports=b},33448:(h,I,a)=>{var c=a(44239),v=a(37005),x="[object Symbol]";function d(b){return typeof b=="symbol"||v(b)&&c(b)==x}h.exports=d},36719:(h,I,a)=>{var c=a(38749),v=a(7518),x=a(31167),d=x&&x.isTypedArray,b=d?v(d):c;h.exports=b},3674:(h,I,a)=>{var c=a(14636),v=a(280),x=a(98612);function d(b){return x(b)?c(b):v(b)}h.exports=d},81704:(h,I,a)=>{var c=a(14636),v=a(10313),x=a(98612);function d(b){return x(b)?c(b,!0):v(b)}h.exports=d},88306:(h,I,a)=>{var c=a(83369),v="Expected a function";function x(d,b){if(typeof d!="function"||b!=null&&typeof b!="function")throw new TypeError(v);var S=function(){var g=arguments,L=b?b.apply(this,g):g[0],D=S.cache;if(D.has(L))return D.get(L);var B=d.apply(this,g);return S.cache=D.set(L,B)||D,B};return S.cache=new(x.Cache||c),S}x.Cache=c,h.exports=x},50308:h=>{function I(){}h.exports=I},78718:(h,I,a)=>{var c=a(25970),v=a(99021),x=v(function(d,b){return d==null?{}:c(d,b)});h.exports=x},39601:(h,I,a)=>{var c=a(40371),v=a(79152),x=a(15403),d=a(40327);function b(S){return x(S)?c(d(S)):v(S)}h.exports=b},10240:(h,I,a)=>{var c=a(29750),v=a(80531),x=a(40554),d=a(79833);function b(S,g,L){return S=d(S),L=L==null?0:c(x(L),0,S.length),g=v(g),S.slice(L,L+g.length)==g}h.exports=b},70479:h=>{function I(){return[]}h.exports=I},95062:h=>{function I(){return!1}h.exports=I},18601:(h,I,a)=>{var c=a(14841),v=1/0,x=17976931348623157e292;function d(b){if(!b)return b===0?b:0;if(b=c(b),b===v||b===-v){var S=b<0?-1:1;return S*x}return b===b?b:0}h.exports=d},40554:(h,I,a)=>{var c=a(18601);function v(x){var d=c(x),b=d%1;return d===d?b?d-b:d:0}h.exports=v},14841:(h,I,a)=>{var c=a(27561),v=a(13218),x=a(33448),d=0/0,b=/^[-+]0x[0-9a-f]+$/i,S=/^0b[01]+$/i,g=/^0o[0-7]+$/i,L=parseInt;function D(B){if(typeof B=="number")return B;if(x(B))return d;if(v(B)){var j=typeof B.valueOf=="function"?B.valueOf():B;B=v(j)?j+"":j}if(typeof B!="string")return B===0?B:+B;B=c(B);var q=S.test(B);return q||g.test(B)?L(B.slice(2),q?2:8):b.test(B)?d:+B}h.exports=D},79833:(h,I,a)=>{var c=a(80531);function v(x){return x==null?"":c(x)}h.exports=v},70631:(h,I,a)=>{var c=typeof Map=="function"&&Map.prototype,v=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,x=c&&v&&typeof v.get=="function"?v.get:null,d=c&&Map.prototype.forEach,b=typeof Set=="function"&&Set.prototype,S=Object.getOwnPropertyDescriptor&&b?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,g=b&&S&&typeof S.get=="function"?S.get:null,L=b&&Set.prototype.forEach,D=typeof WeakMap=="function"&&WeakMap.prototype,B=D?WeakMap.prototype.has:null,j=typeof WeakSet=="function"&&WeakSet.prototype,q=j?WeakSet.prototype.has:null,W=typeof WeakRef=="function"&&WeakRef.prototype,R=W?WeakRef.prototype.deref:null,X=Boolean.prototype.valueOf,M=Object.prototype.toString,C=Function.prototype.toString,V=String.prototype.match,J=String.prototype.slice,_=String.prototype.replace,Q=String.prototype.toUpperCase,Y=String.prototype.toLowerCase,ce=RegExp.prototype.test,ee=Array.prototype.concat,ie=Array.prototype.join,me=Array.prototype.slice,be=Math.floor,he=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ue=Object.getOwnPropertySymbols,oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Le=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fe?"object":"symbol")?Symbol.toStringTag:null,Re=Object.prototype.propertyIsEnumerable,Pe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ae){return ae.__proto__}:null);function rt(ae,pe){if(ae===1/0||ae===-1/0||ae!==ae||ae&&ae>-1e3&&ae<1e3||ce.call(/e/,pe))return pe;var Ae=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ae=="number"){var Be=ae<0?-be(-ae):be(ae);if(Be!==ae){var Ue=String(Be),Qe=J.call(pe,Ue.length+1);return _.call(Ue,Ae,"$&_")+"."+_.call(_.call(Qe,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(pe,Ae,"$&_")}var Ze=a(24654),Xe=Ze.custom,ft=Ct(Xe)?Xe:null;h.exports=function ae(pe,Ae,Be,Ue){var Qe=Ae||{};if(Vt(Qe,"quoteStyle")&&Qe.quoteStyle!=="single"&&Qe.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Vt(Qe,"maxStringLength")&&(typeof Qe.maxStringLength=="number"?Qe.maxStringLength<0&&Qe.maxStringLength!==1/0:Qe.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var vt=Vt(Qe,"customInspect")?Qe.customInspect:!0;if(typeof vt!="boolean"&&vt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Vt(Qe,"indent")&&Qe.indent!==null&&Qe.indent!==" "&&!(parseInt(Qe.indent,10)===Qe.indent&&Qe.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Vt(Qe,"numericSeparator")&&typeof Qe.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Et=Qe.numericSeparator;if(typeof pe=="undefined")return"undefined";if(pe===null)return"null";if(typeof pe=="boolean")return pe?"true":"false";if(typeof pe=="string")return P(pe,Qe);if(typeof pe=="number"){if(pe===0)return 1/0/pe>0?"0":"-0";var Bt=String(pe);return Et?rt(pe,Bt):Bt}if(typeof pe=="bigint"){var Pt=String(pe)+"n";return Et?rt(pe,Pt):Pt}var pn=typeof Qe.depth=="undefined"?5:Qe.depth;if(typeof Be=="undefined"&&(Be=0),Be>=pn&&pn>0&&typeof pe=="object")return nt(pe)?"[Array]":"[Object]";var Dr=N(Qe,Be);if(typeof Ue=="undefined")Ue=[];else if(ve(Ue,pe)>=0)return"[Circular]";function Or(Nr,Gr,Qn){if(Gr&&(Ue=me.call(Ue),Ue.push(Gr)),Qn){var ur={depth:Qe.depth};return Vt(Qe,"quoteStyle")&&(ur.quoteStyle=Qe.quoteStyle),ae(Nr,ur,Be+1,Ue)}return ae(Nr,Qe,Be+1,Ue)}if(typeof pe=="function"&&!yt(pe)){var mi=Dt(pe),Hr=de(pe,Or);return"[Function"+(mi?": "+mi:" (anonymous)")+"]"+(Hr.length>0?" { "+ie.call(Hr,", ")+" }":"")}if(Ct(pe)){var Bi=Fe?_.call(String(pe),/^(Symbol\(.*\))_[^)]*$/,"$1"):oe.call(pe);return typeof pe=="object"&&!Fe?K(Bi):Bi}if(Ke(pe)){for(var Bn="<"+Y.call(String(pe.nodeName)),hn=pe.attributes||[],Tn=0;Tn<hn.length;Tn++)Bn+=" "+hn[Tn].name+"="+ht(bt(hn[Tn].value),"double",Qe);return Bn+=">",pe.childNodes&&pe.childNodes.length&&(Bn+="..."),Bn+="</"+Y.call(String(pe.nodeName))+">",Bn}if(nt(pe)){if(pe.length===0)return"[]";var zr=de(pe,Or);return Dr&&!se(zr)?"["+re(zr,Dr)+"]":"[ "+ie.call(zr,", ")+" ]"}if(mt(pe)){var xi=de(pe,Or);return!("cause"in Error.prototype)&&"cause"in pe&&!Re.call(pe,"cause")?"{ ["+String(pe)+"] "+ie.call(ee.call("[cause]: "+Or(pe.cause),xi),", ")+" }":xi.length===0?"["+String(pe)+"]":"{ ["+String(pe)+"] "+ie.call(xi,", ")+" }"}if(typeof pe=="object"&&vt){if(ft&&typeof pe[ft]=="function"&&Ze)return Ze(pe,{depth:pn-Be});if(vt!=="symbol"&&typeof pe.inspect=="function")return pe.inspect()}if(z(pe)){var bi=[];return d.call(pe,function(Nr,Gr){bi.push(Or(Gr,pe,!0)+" => "+Or(Nr,pe))}),O("Map",x.call(pe),bi,Dr)}if(Ie(pe)){var qr=[];return L.call(pe,function(Nr){qr.push(Or(Nr,pe))}),O("Set",g.call(pe),qr,Dr)}if($(pe))return T("WeakMap");if(Ge(pe))return T("WeakSet");if(Se(pe))return T("WeakRef");if(Rt(pe))return K(Or(Number(pe)));if(Wt(pe))return K(Or(he.call(pe)));if(kt(pe))return K(X.call(pe));if(pt(pe))return K(Or(String(pe)));if(!ut(pe)&&!yt(pe)){var vn=de(pe,Or),Un=Pe?Pe(pe)===Object.prototype:pe instanceof Object||pe.constructor===Object,jn=pe instanceof Object?"":"null prototype",gn=!Un&&Le&&Object(pe)===pe&&Le in pe?J.call(St(pe),8,-1):jn?"Object":"",Xn=Un||typeof pe.constructor!="function"?"":pe.constructor.name?pe.constructor.name+" ":"",wi=Xn+(gn||jn?"["+ie.call(ee.call([],gn||[],jn||[]),": ")+"] ":"");return vn.length===0?wi+"{}":Dr?wi+"{"+re(vn,Dr)+"}":wi+"{ "+ie.call(vn,", ")+" }"}return String(pe)};function ht(ae,pe,Ae){var Be=(Ae.quoteStyle||pe)==="double"?'"':"'";return Be+ae+Be}function bt(ae){return _.call(String(ae),/"/g,""")}function nt(ae){return St(ae)==="[object Array]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function ut(ae){return St(ae)==="[object Date]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function yt(ae){return St(ae)==="[object RegExp]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function mt(ae){return St(ae)==="[object Error]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function pt(ae){return St(ae)==="[object String]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function Rt(ae){return St(ae)==="[object Number]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function kt(ae){return St(ae)==="[object Boolean]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function Ct(ae){if(Fe)return ae&&typeof ae=="object"&&ae instanceof Symbol;if(typeof ae=="symbol")return!0;if(!ae||typeof ae!="object"||!oe)return!1;try{return oe.call(ae),!0}catch(pe){}return!1}function Wt(ae){if(!ae||typeof ae!="object"||!he)return!1;try{return he.call(ae),!0}catch(pe){}return!1}var jt=Object.prototype.hasOwnProperty||function(ae){return ae in this};function Vt(ae,pe){return jt.call(ae,pe)}function St(ae){return M.call(ae)}function Dt(ae){if(ae.name)return ae.name;var pe=V.call(C.call(ae),/^function\s*([\w$]+)/);return pe?pe[1]:null}function ve(ae,pe){if(ae.indexOf)return ae.indexOf(pe);for(var Ae=0,Be=ae.length;Ae<Be;Ae++)if(ae[Ae]===pe)return Ae;return-1}function z(ae){if(!x||!ae||typeof ae!="object")return!1;try{x.call(ae);try{g.call(ae)}catch(pe){return!0}return ae instanceof Map}catch(pe){}return!1}function $(ae){if(!B||!ae||typeof ae!="object")return!1;try{B.call(ae,B);try{q.call(ae,q)}catch(pe){return!0}return ae instanceof WeakMap}catch(pe){}return!1}function Se(ae){if(!R||!ae||typeof ae!="object")return!1;try{return R.call(ae),!0}catch(pe){}return!1}function Ie(ae){if(!g||!ae||typeof ae!="object")return!1;try{g.call(ae);try{x.call(ae)}catch(pe){return!0}return ae instanceof Set}catch(pe){}return!1}function Ge(ae){if(!q||!ae||typeof ae!="object")return!1;try{q.call(ae,q);try{B.call(ae,B)}catch(pe){return!0}return ae instanceof WeakSet}catch(pe){}return!1}function Ke(ae){return!ae||typeof ae!="object"?!1:typeof HTMLElement!="undefined"&&ae instanceof HTMLElement?!0:typeof ae.nodeName=="string"&&typeof ae.getAttribute=="function"}function P(ae,pe){if(ae.length>pe.maxStringLength){var Ae=ae.length-pe.maxStringLength,Be="... "+Ae+" more character"+(Ae>1?"s":"");return P(J.call(ae,0,pe.maxStringLength),pe)+Be}var Ue=_.call(_.call(ae,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Me);return ht(Ue,"single",pe)}function Me(ae){var pe=ae.charCodeAt(0),Ae={8:"b",9:"t",10:"n",12:"f",13:"r"}[pe];return Ae?"\\"+Ae:"\\x"+(pe<16?"0":"")+Q.call(pe.toString(16))}function K(ae){return"Object("+ae+")"}function T(ae){return ae+" { ? }"}function O(ae,pe,Ae,Be){var Ue=Be?re(Ae,Be):ie.call(Ae,", ");return ae+" ("+pe+") {"+Ue+"}"}function se(ae){for(var pe=0;pe<ae.length;pe++)if(ve(ae[pe],`
|
|
537
|
-
`)>=0)return!1;return!0}function N(
|
|
538
|
-
`+pe.prev+pe.base;return Ae+ie.call(
|
|
539
|
-
`+pe.prev}function de(ae,pe){var Ae=nt(ae),Be=[];if(Ae){Be.length=ae.length;for(var Ue=0;Ue<ae.length;Ue++)Be[Ue]=Vt(ae,Ue)?pe(ae[Ue],ae):""}var Qe=typeof ue=="function"?ue(ae):[],vt;if(Fe){vt={};for(var Et=0;Et<Qe.length;Et++)vt["$"+Qe[Et]]=Qe[Et]}for(var Bt in ae)!Vt(ae,Bt)||Ae&&String(Number(Bt))===Bt&&Bt<ae.length||Fe&&vt["$"+Bt]instanceof Symbol||(ce.call(/[^\w$]/,Bt)?Be.push(pe(Bt,ae)+": "+pe(ae[Bt],ae)):Be.push(Bt+": "+pe(ae[Bt],ae)));if(typeof ue=="function")for(var Pt=0;Pt<Qe.length;Pt++)Re.call(ae,Qe[Pt])&&Be.push("["+pe(Qe[Pt])+"]: "+pe(ae[Qe[Pt]],ae));return Be}},9779:(h,I,a)=>{"use strict";var c=I,v=a(48764).Buffer;c.unescapeBuffer=function(L,D){for(var B=new v(L.length),j=0,q,W,R,X=0,M=0;X<=L.length;X++){var C=X<L.length?L.charCodeAt(X):NaN;switch(j){case 0:switch(C){case 37:q=0,W=0,j=1;break;case 43:D&&(C=32);default:B[M++]=C;break}break;case 1:if(R=C,C>=48&&C<=57)q=C-48;else if(C>=65&&C<=70)q=C-65+10;else if(C>=97&&C<=102)q=C-97+10;else{B[M++]=37,B[M++]=C,j=0;break}j=2;break;case 2:if(j=0,C>=48&&C<=57)W=C-48;else if(C>=65&&C<=70)W=C-65+10;else if(C>=97&&C<=102)W=C-97+10;else{B[M++]=37,B[M++]=R,B[M++]=C;break}B[M++]=16*q+W;break}}return B.slice(0,M-1)};function x(L,D){try{return decodeURIComponent(L)}catch(B){return c.unescapeBuffer(L,D).toString()}}c.unescape=x;for(var d=new Array(256),b=0;b<256;++b)d[b]="%"+((b<16?"0":"")+b.toString(16)).toUpperCase();c.escape=function(L){typeof L!="string"&&(L+="");for(var D="",B=0,j=0;j<L.length;++j){var q=L.charCodeAt(j);if(!(q===33||q===45||q===46||q===95||q===126||q>=39&&q<=42||q>=48&&q<=57||q>=65&&q<=90||q>=97&&q<=122)){if(j-B>0&&(D+=L.slice(B,j)),q<128){B=j+1,D+=d[q];continue}if(q<2048){B=j+1,D+=d[192|q>>6]+d[128|q&63];continue}if(q<55296||q>=57344){B=j+1,D+=d[224|q>>12]+d[128|q>>6&63]+d[128|q&63];continue}++j;var W;if(j<L.length)W=L.charCodeAt(j)&1023;else throw new URIError("URI malformed");B=j+1,q=65536+((q&1023)<<10|W),D+=d[240|q>>18]+d[128|q>>12&63]+d[128|q>>6&63]+d[128|q&63]}}return B===0?L:B<L.length?D+L.slice(B):D};var S=function(L){return typeof L=="string"?L:typeof L=="number"&&isFinite(L)?""+L:typeof L=="boolean"?L?"true":"false":""};c.stringify=c.encode=function(L,D,B,j){D=D||"&",B=B||"=";var q=c.escape;if(j&&typeof j.encodeURIComponent=="function"&&(q=j.encodeURIComponent),L!==null&&typeof L=="object"){for(var W=Object.keys(L),R=W.length,X=R-1,M="",C=0;C<R;++C){var V=W[C],J=L[V],_=q(S(V))+B;if(Array.isArray(J)){for(var Q=J.length,Y=Q-1,ce=0;ce<Q;++ce)M+=_+q(S(J[ce])),ce<Y&&(M+=D);Q&&C<X&&(M+=D)}else M+=_+q(S(J)),C<X&&(M+=D)}return M}return""},c.parse=c.decode=function(L,D,B,j){D=D||"&",B=B||"=";var q={};if(typeof L!="string"||L.length===0)return q;typeof D!="string"&&(D+="");var W=B.length,R=D.length,X=1e3;j&&typeof j.maxKeys=="number"&&(X=j.maxKeys);var M=1/0;X>0&&(M=X);var C=c.unescape;j&&typeof j.decodeURIComponent=="function"&&(C=j.decodeURIComponent);for(var V=C!==x,J=[],_=0,Q=0,Y=0,ce="",ee="",ie=V,me=V,be=0,he=0;he<L.length;++he){var ue=L.charCodeAt(he);if(ue===D.charCodeAt(Q)){if(++Q===R){var oe=he-Q+1;if(Y<W?_<oe&&(ce+=L.slice(_,oe)):_<oe&&(ee+=L.slice(_,oe)),ie&&(ce=g(ce,C)),me&&(ee=g(ee,C)),J.indexOf(ce)===-1)q[ce]=ee,J[J.length]=ce;else{var Fe=q[ce];Fe instanceof Array?Fe[Fe.length]=ee:q[ce]=[Fe,ee]}if(--M==0)break;ie=me=V,be=0,ce=ee="",_=he+1,Q=Y=0}continue}else Q=0,me||(ue===37?be=1:be>0&&(ue>=48&&ue<=57||ue>=65&&ue<=70||ue>=97&&ue<=102)?++be==3&&(me=!0):be=0);if(Y<W)if(ue===B.charCodeAt(Y)){if(++Y===W){var oe=he-Y+1;_<oe&&(ce+=L.slice(_,oe)),be=0,_=he+1}continue}else Y=0,ie||(ue===37?be=1:be>0&&(ue>=48&&ue<=57||ue>=65&&ue<=70||ue>=97&&ue<=102)?++be==3&&(ie=!0):be=0);ue===43&&(Y<W?(he-_>0&&(ce+=L.slice(_,he)),ce+="%20",ie=!0):(he-_>0&&(ee+=L.slice(_,he)),ee+="%20",me=!0),_=he+1)}if(M>0&&(_<L.length||Y>0))if(_<L.length&&(Y<W?ce+=L.slice(_):Q<R&&(ee+=L.slice(_))),ie&&(ce=g(ce,C)),me&&(ee=g(ee,C)),J.indexOf(ce)===-1)q[ce]=ee,J[J.length]=ce;else{var Fe=q[ce];Fe instanceof Array?Fe[Fe.length]=ee:q[ce]=[Fe,ee]}return q};function g(L,D){try{return D(L)}catch(B){return c.unescape(L,!0)}}},35310:(h,I,a)=>{"use strict";var c;function v(){return v=Object.assign||function(q){for(var W=1;W<arguments.length;W++){var R=arguments[W];for(var X in R)Object.prototype.hasOwnProperty.call(R,X)&&(q[X]=R[X])}return q},v.apply(this,arguments)}function x(q){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(R){return typeof R}:x=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},x(q)}var d=function(){var q=function(R,X){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,C){M.__proto__=C}||function(M,C){for(var V in C)C.hasOwnProperty(V)&&(M[V]=C[V])},q(R,X)};return function(W,R){q(W,R);function X(){this.constructor=W}W.prototype=R===null?Object.create(R):(X.prototype=R.prototype,new X)}}();c={value:!0},c=I.fk=void 0;var b=a(67294),S=typeof navigator=="undefined"||a.g.PREVENT_CODEMIRROR_RENDER===!0,g;S||(g=a(4631));var L=function(){function q(){}return q.equals=function(W,R){var X=this,M=Object.keys,C=x(W),V=x(R);return W&&R&&C==="object"&&C===V?M(W).length===M(R).length&&M(W).every(function(J){return X.equals(W[J],R[J])}):W===R},q}(),D=function(){function q(W,R){this.editor=W,this.props=R}return q.prototype.delegateCursor=function(W,R,X){var M=this.editor.getDoc();X&&this.editor.focus(),R?M.setCursor(W):M.setCursor(W,null,{scroll:!1})},q.prototype.delegateScroll=function(W){this.editor.scrollTo(W.x,W.y)},q.prototype.delegateSelection=function(W,R){var X=this.editor.getDoc();X.setSelections(W),R&&this.editor.focus()},q.prototype.apply=function(W){W&&W.selection&&W.selection.ranges&&this.delegateSelection(W.selection.ranges,W.selection.focus||!1),W&&W.cursor&&this.delegateCursor(W.cursor,W.autoScroll||!1,this.editor.getOption("autofocus")||!1),W&&W.scroll&&this.delegateScroll(W.scroll)},q.prototype.applyNext=function(W,R,X){W&&W.selection&&W.selection.ranges&&R&&R.selection&&R.selection.ranges&&!L.equals(W.selection.ranges,R.selection.ranges)&&this.delegateSelection(R.selection.ranges,R.selection.focus||!1),W&&W.cursor&&R&&R.cursor&&!L.equals(W.cursor,R.cursor)&&this.delegateCursor(X.cursor||R.cursor,R.autoScroll||!1,R.autoCursor||!1),W&&W.scroll&&R&&R.scroll&&!L.equals(W.scroll,R.scroll)&&this.delegateScroll(R.scroll)},q.prototype.applyUserDefined=function(W,R){R&&R.cursor&&this.delegateCursor(R.cursor,W.autoScroll||!1,this.editor.getOption("autofocus")||!1)},q.prototype.wire=function(W){var R=this;Object.keys(W||{}).filter(function(X){return/^on/.test(X)}).forEach(function(X){switch(X){case"onBlur":R.editor.on("blur",function(M,C){R.props.onBlur(R.editor,C)});break;case"onContextMenu":{R.editor.on("contextmenu",function(M,C){R.props.onContextMenu(R.editor,C)});break}case"onCopy":{R.editor.on("copy",function(M,C){R.props.onCopy(R.editor,C)});break}case"onCursor":R.editor.on("cursorActivity",function(M){R.props.onCursor(R.editor,R.editor.getDoc().getCursor())});break;case"onCursorActivity":R.editor.on("cursorActivity",function(M){R.props.onCursorActivity(R.editor)});break;case"onCut":{R.editor.on("cut",function(M,C){R.props.onCut(R.editor,C)});break}case"onDblClick":{R.editor.on("dblclick",function(M,C){R.props.onDblClick(R.editor,C)});break}case"onDragEnter":R.editor.on("dragenter",function(M,C){R.props.onDragEnter(R.editor,C)});break;case"onDragLeave":{R.editor.on("dragleave",function(M,C){R.props.onDragLeave(R.editor,C)});break}case"onDragOver":R.editor.on("dragover",function(M,C){R.props.onDragOver(R.editor,C)});break;case"onDragStart":{R.editor.on("dragstart",function(M,C){R.props.onDragStart(R.editor,C)});break}case"onDrop":R.editor.on("drop",function(M,C){R.props.onDrop(R.editor,C)});break;case"onFocus":R.editor.on("focus",function(M,C){R.props.onFocus(R.editor,C)});break;case"onGutterClick":R.editor.on("gutterClick",function(M,C,V,J){R.props.onGutterClick(R.editor,C,V,J)});break;case"onInputRead":R.editor.on("inputRead",function(M,C){R.props.onInputRead(R.editor,C)});break;case"onKeyDown":R.editor.on("keydown",function(M,C){R.props.onKeyDown(R.editor,C)});break;case"onKeyHandled":R.editor.on("keyHandled",function(M,C,V){R.props.onKeyHandled(R.editor,C,V)});break;case"onKeyPress":R.editor.on("keypress",function(M,C){R.props.onKeyPress(R.editor,C)});break;case"onKeyUp":R.editor.on("keyup",function(M,C){R.props.onKeyUp(R.editor,C)});break;case"onMouseDown":{R.editor.on("mousedown",function(M,C){R.props.onMouseDown(R.editor,C)});break}case"onPaste":{R.editor.on("paste",function(M,C){R.props.onPaste(R.editor,C)});break}case"onRenderLine":{R.editor.on("renderLine",function(M,C,V){R.props.onRenderLine(R.editor,C,V)});break}case"onScroll":R.editor.on("scroll",function(M){R.props.onScroll(R.editor,R.editor.getScrollInfo())});break;case"onSelection":R.editor.on("beforeSelectionChange",function(M,C){R.props.onSelection(R.editor,C)});break;case"onTouchStart":{R.editor.on("touchstart",function(M,C){R.props.onTouchStart(R.editor,C)});break}case"onUpdate":R.editor.on("update",function(M){R.props.onUpdate(R.editor)});break;case"onViewportChange":R.editor.on("viewportChange",function(M,C,V){R.props.onViewportChange(R.editor,C,V)});break}})},q}(),B=function(q){d(W,q);function W(R){var X=q.call(this,R)||this;return S||(X.applied=!1,X.appliedNext=!1,X.appliedUserDefined=!1,X.deferred=null,X.emulating=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1),X}return W.prototype.hydrate=function(R){var X=this,M=R&&R.options?R.options:{},C=v({},g.defaults,this.editor.options,M),V=Object.keys(C).some(function(J){return X.editor.getOption(J)!==C[J]});V&&Object.keys(C).forEach(function(J){M.hasOwnProperty(J)&&X.editor.getOption(J)!==C[J]&&(X.editor.setOption(J,C[J]),X.mirror.setOption(J,C[J]))}),this.hydrated||(this.deferred?this.resolveChange(R.value):this.initChange(R.value||"")),this.hydrated=!0},W.prototype.initChange=function(R){this.emulating=!0;var X=this.editor.getDoc(),M=X.lastLine(),C=X.getLine(X.lastLine()).length;X.replaceRange(R||"",{line:0,ch:0},{line:M,ch:C}),this.mirror.setValue(R),X.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},W.prototype.resolveChange=function(R){this.emulating=!0;var X=this.editor.getDoc();if(this.deferred.origin==="undo"?X.undo():this.deferred.origin==="redo"?X.redo():X.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),R&&R!==X.getValue()){var M=X.getCursor();X.setValue(R),X.setCursor(M)}this.emulating=!1,this.deferred=null},W.prototype.mirrorChange=function(R){var X=this.editor.getDoc();return R.origin==="undo"?(X.setHistory(this.mirror.getHistory()),this.mirror.undo()):R.origin==="redo"?(X.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(R.text,R.from,R.to,R.origin),this.mirror.getValue()},W.prototype.componentDidMount=function(){var R=this;S||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new D(this.editor,this.props),this.mirror=g(function(){},this.props.options),this.editor.on("electricInput",function(){R.mirror.setHistory(R.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){R.mirror.setCursor(R.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(X,M){if(!R.emulating){M.cancel(),R.deferred=M;var C=R.mirrorChange(R.deferred);R.props.onBeforeChange&&R.props.onBeforeChange(R.editor,R.deferred,C)}}),this.editor.on("change",function(X,M){!R.mounted||R.props.onChange&&R.props.onChange(R.editor,M,R.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},W.prototype.componentDidUpdate=function(R){if(!S){var X={cursor:null};this.props.value!==R.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(R,this.props,X),this.appliedNext=!0),this.shared.applyUserDefined(R,X),this.appliedUserDefined=!0}},W.prototype.componentWillUnmount=function(){S||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},W.prototype.shouldComponentUpdate=function(R,X){return!S},W.prototype.render=function(){var R=this;if(S)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return R.ref=C}})},W}(b.Component);I.fk=B;var j=function(q){d(W,q);function W(R){var X=q.call(this,R)||this;return S||(X.applied=!1,X.appliedUserDefined=!1,X.continueChange=!1,X.detached=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1,X.onBeforeChangeCb=function(){X.continueChange=!0}),X}return W.prototype.hydrate=function(R){var X=this,M=R&&R.options?R.options:{},C=v({},g.defaults,this.editor.options,M),V=Object.keys(C).some(function(Y){return X.editor.getOption(Y)!==C[Y]});if(V&&Object.keys(C).forEach(function(Y){M.hasOwnProperty(Y)&&X.editor.getOption(Y)!==C[Y]&&X.editor.setOption(Y,C[Y])}),!this.hydrated){var J=this.editor.getDoc(),_=J.lastLine(),Q=J.getLine(J.lastLine()).length;J.replaceRange(R.value||"",{line:0,ch:0},{line:_,ch:Q})}this.hydrated=!0},W.prototype.componentDidMount=function(){var R=this;S||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new D(this.editor,this.props),this.editor.on("beforeChange",function(X,M){R.props.onBeforeChange&&R.props.onBeforeChange(R.editor,M,R.editor.getValue(),R.onBeforeChangeCb)}),this.editor.on("change",function(X,M){!R.mounted||!R.props.onChange||(R.props.onBeforeChange?R.continueChange&&R.props.onChange(R.editor,M,R.editor.getValue()):R.props.onChange(R.editor,M,R.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},W.prototype.componentDidUpdate=function(R){if(this.detached&&this.props.detach===!1&&(this.detached=!1,R.editorDidAttach&&R.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,R.editorDidDetach&&R.editorDidDetach(this.editor)),!(S||this.detached)){var X={cursor:null};this.props.value!==R.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!R.autoCursor&&R.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(R),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(R,X),this.appliedUserDefined=!0)}},W.prototype.componentWillUnmount=function(){S||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},W.prototype.shouldComponentUpdate=function(R,X){var M=!0;return S&&(M=!1),this.detached&&R.detach&&(M=!1),M},W.prototype.render=function(){var R=this;if(S)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return R.ref=C}})},W}(b.Component);c=j},35666:h=>{var I=function(a){"use strict";var c=Object.prototype,v=c.hasOwnProperty,x,d=typeof Symbol=="function"?Symbol:{},b=d.iterator||"@@iterator",S=d.asyncIterator||"@@asyncIterator",g=d.toStringTag||"@@toStringTag";function L(Le,Re,Pe){return Object.defineProperty(Le,Re,{value:Pe,enumerable:!0,configurable:!0,writable:!0}),Le[Re]}try{L({},"")}catch(Le){L=function(Re,Pe,rt){return Re[Pe]=rt}}function D(Le,Re,Pe,rt){var Ze=Re&&Re.prototype instanceof M?Re:M,Xe=Object.create(Ze.prototype),ft=new ue(rt||[]);return Xe._invoke=ie(Le,Pe,ft),Xe}a.wrap=D;function B(Le,Re,Pe){try{return{type:"normal",arg:Le.call(Re,Pe)}}catch(rt){return{type:"throw",arg:rt}}}var j="suspendedStart",q="suspendedYield",W="executing",R="completed",X={};function M(){}function C(){}function V(){}var J={};J[b]=function(){return this};var _=Object.getPrototypeOf,Q=_&&_(_(oe([])));Q&&Q!==c&&v.call(Q,b)&&(J=Q);var Y=V.prototype=M.prototype=Object.create(J);C.prototype=Y.constructor=V,V.constructor=C,C.displayName=L(V,g,"GeneratorFunction");function ce(Le){["next","throw","return"].forEach(function(Re){L(Le,Re,function(Pe){return this._invoke(Re,Pe)})})}a.isGeneratorFunction=function(Le){var Re=typeof Le=="function"&&Le.constructor;return Re?Re===C||(Re.displayName||Re.name)==="GeneratorFunction":!1},a.mark=function(Le){return Object.setPrototypeOf?Object.setPrototypeOf(Le,V):(Le.__proto__=V,L(Le,g,"GeneratorFunction")),Le.prototype=Object.create(Y),Le},a.awrap=function(Le){return{__await:Le}};function ee(Le,Re){function Pe(Xe,ft,ht,bt){var nt=B(Le[Xe],Le,ft);if(nt.type==="throw")bt(nt.arg);else{var ut=nt.arg,yt=ut.value;return yt&&typeof yt=="object"&&v.call(yt,"__await")?Re.resolve(yt.__await).then(function(mt){Pe("next",mt,ht,bt)},function(mt){Pe("throw",mt,ht,bt)}):Re.resolve(yt).then(function(mt){ut.value=mt,ht(ut)},function(mt){return Pe("throw",mt,ht,bt)})}}var rt;function Ze(Xe,ft){function ht(){return new Re(function(bt,nt){Pe(Xe,ft,bt,nt)})}return rt=rt?rt.then(ht,ht):ht()}this._invoke=Ze}ce(ee.prototype),ee.prototype[S]=function(){return this},a.AsyncIterator=ee,a.async=function(Le,Re,Pe,rt,Ze){Ze===void 0&&(Ze=Promise);var Xe=new ee(D(Le,Re,Pe,rt),Ze);return a.isGeneratorFunction(Re)?Xe:Xe.next().then(function(ft){return ft.done?ft.value:Xe.next()})};function ie(Le,Re,Pe){var rt=j;return function(Xe,ft){if(rt===W)throw new Error("Generator is already running");if(rt===R){if(Xe==="throw")throw ft;return Fe()}for(Pe.method=Xe,Pe.arg=ft;;){var ht=Pe.delegate;if(ht){var bt=me(ht,Pe);if(bt){if(bt===X)continue;return bt}}if(Pe.method==="next")Pe.sent=Pe._sent=Pe.arg;else if(Pe.method==="throw"){if(rt===j)throw rt=R,Pe.arg;Pe.dispatchException(Pe.arg)}else Pe.method==="return"&&Pe.abrupt("return",Pe.arg);rt=W;var nt=B(Le,Re,Pe);if(nt.type==="normal"){if(rt=Pe.done?R:q,nt.arg===X)continue;return{value:nt.arg,done:Pe.done}}else nt.type==="throw"&&(rt=R,Pe.method="throw",Pe.arg=nt.arg)}}}function me(Le,Re){var Pe=Le.iterator[Re.method];if(Pe===x){if(Re.delegate=null,Re.method==="throw"){if(Le.iterator.return&&(Re.method="return",Re.arg=x,me(Le,Re),Re.method==="throw"))return X;Re.method="throw",Re.arg=new TypeError("The iterator does not provide a 'throw' method")}return X}var rt=B(Pe,Le.iterator,Re.arg);if(rt.type==="throw")return Re.method="throw",Re.arg=rt.arg,Re.delegate=null,X;var Ze=rt.arg;if(!Ze)return Re.method="throw",Re.arg=new TypeError("iterator result is not an object"),Re.delegate=null,X;if(Ze.done)Re[Le.resultName]=Ze.value,Re.next=Le.nextLoc,Re.method!=="return"&&(Re.method="next",Re.arg=x);else return Ze;return Re.delegate=null,X}ce(Y),L(Y,g,"Generator"),Y[b]=function(){return this},Y.toString=function(){return"[object Generator]"};function be(Le){var Re={tryLoc:Le[0]};1 in Le&&(Re.catchLoc=Le[1]),2 in Le&&(Re.finallyLoc=Le[2],Re.afterLoc=Le[3]),this.tryEntries.push(Re)}function he(Le){var Re=Le.completion||{};Re.type="normal",delete Re.arg,Le.completion=Re}function ue(Le){this.tryEntries=[{tryLoc:"root"}],Le.forEach(be,this),this.reset(!0)}a.keys=function(Le){var Re=[];for(var Pe in Le)Re.push(Pe);return Re.reverse(),function rt(){for(;Re.length;){var Ze=Re.pop();if(Ze in Le)return rt.value=Ze,rt.done=!1,rt}return rt.done=!0,rt}};function oe(Le){if(Le){var Re=Le[b];if(Re)return Re.call(Le);if(typeof Le.next=="function")return Le;if(!isNaN(Le.length)){var Pe=-1,rt=function Ze(){for(;++Pe<Le.length;)if(v.call(Le,Pe))return Ze.value=Le[Pe],Ze.done=!1,Ze;return Ze.value=x,Ze.done=!0,Ze};return rt.next=rt}}return{next:Fe}}a.values=oe;function Fe(){return{value:x,done:!0}}return ue.prototype={constructor:ue,reset:function(Le){if(this.prev=0,this.next=0,this.sent=this._sent=x,this.done=!1,this.delegate=null,this.method="next",this.arg=x,this.tryEntries.forEach(he),!Le)for(var Re in this)Re.charAt(0)==="t"&&v.call(this,Re)&&!isNaN(+Re.slice(1))&&(this[Re]=x)},stop:function(){this.done=!0;var Le=this.tryEntries[0],Re=Le.completion;if(Re.type==="throw")throw Re.arg;return this.rval},dispatchException:function(Le){if(this.done)throw Le;var Re=this;function Pe(bt,nt){return Xe.type="throw",Xe.arg=Le,Re.next=bt,nt&&(Re.method="next",Re.arg=x),!!nt}for(var rt=this.tryEntries.length-1;rt>=0;--rt){var Ze=this.tryEntries[rt],Xe=Ze.completion;if(Ze.tryLoc==="root")return Pe("end");if(Ze.tryLoc<=this.prev){var ft=v.call(Ze,"catchLoc"),ht=v.call(Ze,"finallyLoc");if(ft&&ht){if(this.prev<Ze.catchLoc)return Pe(Ze.catchLoc,!0);if(this.prev<Ze.finallyLoc)return Pe(Ze.finallyLoc)}else if(ft){if(this.prev<Ze.catchLoc)return Pe(Ze.catchLoc,!0)}else if(ht){if(this.prev<Ze.finallyLoc)return Pe(Ze.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Le,Re){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var rt=this.tryEntries[Pe];if(rt.tryLoc<=this.prev&&v.call(rt,"finallyLoc")&&this.prev<rt.finallyLoc){var Ze=rt;break}}Ze&&(Le==="break"||Le==="continue")&&Ze.tryLoc<=Re&&Re<=Ze.finallyLoc&&(Ze=null);var Xe=Ze?Ze.completion:{};return Xe.type=Le,Xe.arg=Re,Ze?(this.method="next",this.next=Ze.finallyLoc,X):this.complete(Xe)},complete:function(Le,Re){if(Le.type==="throw")throw Le.arg;return Le.type==="break"||Le.type==="continue"?this.next=Le.arg:Le.type==="return"?(this.rval=this.arg=Le.arg,this.method="return",this.next="end"):Le.type==="normal"&&Re&&(this.next=Re),X},finish:function(Le){for(var Re=this.tryEntries.length-1;Re>=0;--Re){var Pe=this.tryEntries[Re];if(Pe.finallyLoc===Le)return this.complete(Pe.completion,Pe.afterLoc),he(Pe),X}},catch:function(Le){for(var Re=this.tryEntries.length-1;Re>=0;--Re){var Pe=this.tryEntries[Re];if(Pe.tryLoc===Le){var rt=Pe.completion;if(rt.type==="throw"){var Ze=rt.arg;he(Pe)}return Ze}}throw new Error("illegal catch attempt")},delegateYield:function(Le,Re,Pe){return this.delegate={iterator:oe(Le),resultName:Re,nextLoc:Pe},this.method==="next"&&(this.arg=x),X}},a}(h.exports);try{regeneratorRuntime=I}catch(a){Function("r","regeneratorRuntime = r")(I)}},37478:(h,I,a)=>{"use strict";var c=a(40210),v=a(21924),x=a(70631),d=c("%TypeError%"),b=c("%WeakMap%",!0),S=c("%Map%",!0),g=v("WeakMap.prototype.get",!0),L=v("WeakMap.prototype.set",!0),D=v("WeakMap.prototype.has",!0),B=v("Map.prototype.get",!0),j=v("Map.prototype.set",!0),q=v("Map.prototype.has",!0),W=function(C,V){for(var J=C,_;(_=J.next)!==null;J=_)if(_.key===V)return J.next=_.next,_.next=C.next,C.next=_,_},R=function(C,V){var J=W(C,V);return J&&J.value},X=function(C,V,J){var _=W(C,V);_?_.value=J:C.next={key:V,next:C.next,value:J}},M=function(C,V){return!!W(C,V)};h.exports=function(){var V,J,_,Q={assert:function(Y){if(!Q.has(Y))throw new d("Side channel does not contain "+x(Y))},get:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return g(V,Y)}else if(S){if(J)return B(J,Y)}else if(_)return R(_,Y)},has:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return D(V,Y)}else if(S){if(J)return q(J,Y)}else if(_)return M(_,Y);return!1},set:function(Y,ce){b&&Y&&(typeof Y=="object"||typeof Y=="function")?(V||(V=new b),L(V,Y,ce)):S?(J||(J=new S),j(J,Y,ce)):(_||(_={key:{},next:null}),X(_,Y,ce))}};return Q}},13837:(h,I,a)=>{var c=a(93379),v=a(17438);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},75019:(h,I,a)=>{var c=a(93379),v=a(58635);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},86081:(h,I,a)=>{var c=a(93379),v=a(45272);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},44254:(h,I,a)=>{var c=a(93379),v=a(40961);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},88996:(h,I,a)=>{"use strict";/*!
|
|
535
|
+
`+b)),S},h.exports=v},82409:(h,I,o)=>{"use strict";var c=o(25596),v=o(14884),x=o(53899);function d(g,L,D){var B=[];return g.include.forEach(function(j){D=d(j,L,D)}),g[L].forEach(function(j){D.forEach(function(q,W){q.tag===j.tag&&q.kind===j.kind&&B.push(W)}),D.push(j)}),D.filter(function(j,q){return B.indexOf(q)===-1})}function b(){var g={scalar:{},sequence:{},mapping:{},fallback:{}},L,D;function B(j){g[j.kind][j.tag]=g.fallback[j.tag]=j}for(L=0,D=arguments.length;L<D;L+=1)arguments[L].forEach(B);return g}function S(g){this.include=g.include||[],this.implicit=g.implicit||[],this.explicit=g.explicit||[],this.implicit.forEach(function(L){if(L.loadKind&&L.loadKind!=="scalar")throw new v("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=d(this,"implicit",[]),this.compiledExplicit=d(this,"explicit",[]),this.compiledTypeMap=b(this.compiledImplicit,this.compiledExplicit)}S.DEFAULT=null,S.create=function(){var L,D;switch(arguments.length){case 1:L=S.DEFAULT,D=arguments[0];break;case 2:L=arguments[0],D=arguments[1];break;default:throw new v("Wrong number of arguments for Schema.create function")}if(L=c.toArray(L),D=c.toArray(D),!L.every(function(B){return B instanceof S}))throw new v("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!D.every(function(B){return B instanceof x}))throw new v("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new S({include:L,explicit:D})},h.exports=S},17318:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({include:[o(65796)]})},19321:(h,I,o)=>{"use strict";var c=o(82409);h.exports=c.DEFAULT=new c({include:[o(5972)],explicit:[o(70575),o(97287),o(89811)]})},5972:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({include:[o(17318)],implicit:[o(56145),o(243)],explicit:[o(18964),o(3878),o(68244),o(67300)]})},75322:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({explicit:[o(79483),o(43745),o(86553)]})},65796:(h,I,o)=>{"use strict";var c=o(82409);h.exports=new c({include:[o(75322)],implicit:[o(3022),o(2648),o(95979),o(53456)]})},53899:(h,I,o)=>{"use strict";var c=o(14884),v=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],x=["scalar","sequence","mapping"];function d(S){var g={};return S!==null&&Object.keys(S).forEach(function(L){S[L].forEach(function(D){g[String(D)]=L})}),g}function b(S,g){if(g=g||{},Object.keys(g).forEach(function(L){if(v.indexOf(L)===-1)throw new c('Unknown option "'+L+'" is met in definition of "'+S+'" YAML type.')}),this.tag=S,this.kind=g.kind||null,this.resolve=g.resolve||function(){return!0},this.construct=g.construct||function(L){return L},this.instanceOf=g.instanceOf||null,this.predicate=g.predicate||null,this.represent=g.represent||null,this.defaultStyle=g.defaultStyle||null,this.styleAliases=d(g.styleAliases||null),x.indexOf(this.kind)===-1)throw new c('Unknown kind "'+this.kind+'" is specified for "'+S+'" YAML type.')}h.exports=b},18964:(h,I,o)=>{"use strict";var c;try{var v=void 0;c=o(48764).Buffer}catch(D){}var x=o(53899),d=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
536
|
+
\r`;function b(D){if(D===null)return!1;var B,j,q=0,W=D.length,M=d;for(j=0;j<W;j++)if(B=M.indexOf(D.charAt(j)),!(B>64)){if(B<0)return!1;q+=6}return q%8==0}function S(D){var B,j,q=D.replace(/[\r\n=]/g,""),W=q.length,M=d,X=0,R=[];for(B=0;B<W;B++)B%4==0&&B&&(R.push(X>>16&255),R.push(X>>8&255),R.push(X&255)),X=X<<6|M.indexOf(q.charAt(B));return j=W%4*6,j===0?(R.push(X>>16&255),R.push(X>>8&255),R.push(X&255)):j===18?(R.push(X>>10&255),R.push(X>>2&255)):j===12&&R.push(X>>4&255),c?c.from?c.from(R):new c(R):R}function g(D){var B="",j=0,q,W,M=D.length,X=d;for(q=0;q<M;q++)q%3==0&&q&&(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]),j=(j<<8)+D[q];return W=M%3,W===0?(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]):W===2?(B+=X[j>>10&63],B+=X[j>>4&63],B+=X[j<<2&63],B+=X[64]):W===1&&(B+=X[j>>2&63],B+=X[j<<4&63],B+=X[64],B+=X[64]),B}function L(D){return c&&c.isBuffer(D)}h.exports=new x("tag:yaml.org,2002:binary",{kind:"scalar",resolve:b,construct:S,predicate:L,represent:g})},2648:(h,I,o)=>{"use strict";var c=o(53899);function v(b){if(b===null)return!1;var S=b.length;return S===4&&(b==="true"||b==="True"||b==="TRUE")||S===5&&(b==="false"||b==="False"||b==="FALSE")}function x(b){return b==="true"||b==="True"||b==="TRUE"}function d(b){return Object.prototype.toString.call(b)==="[object Boolean]"}h.exports=new c("tag:yaml.org,2002:bool",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{lowercase:function(b){return b?"true":"false"},uppercase:function(b){return b?"TRUE":"FALSE"},camelcase:function(b){return b?"True":"False"}},defaultStyle:"lowercase"})},53456:(h,I,o)=>{"use strict";var c=o(25596),v=o(53899),x=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function d(D){return!(D===null||!x.test(D)||D[D.length-1]==="_")}function b(D){var B,j,q,W;return B=D.replace(/_/g,"").toLowerCase(),j=B[0]==="-"?-1:1,W=[],"+-".indexOf(B[0])>=0&&(B=B.slice(1)),B===".inf"?j===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:B===".nan"?NaN:B.indexOf(":")>=0?(B.split(":").forEach(function(M){W.unshift(parseFloat(M,10))}),B=0,q=1,W.forEach(function(M){B+=M*q,q*=60}),j*B):j*parseFloat(B,10)}var S=/^[-+]?[0-9]+e/;function g(D,B){var j;if(isNaN(D))switch(B){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===D)switch(B){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===D)switch(B){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c.isNegativeZero(D))return"-0.0";return j=D.toString(10),S.test(j)?j.replace("e",".e"):j}function L(D){return Object.prototype.toString.call(D)==="[object Number]"&&(D%1!=0||c.isNegativeZero(D))}h.exports=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:d,construct:b,predicate:L,represent:g,defaultStyle:"lowercase"})},95979:(h,I,o)=>{"use strict";var c=o(25596),v=o(53899);function x(D){return 48<=D&&D<=57||65<=D&&D<=70||97<=D&&D<=102}function d(D){return 48<=D&&D<=55}function b(D){return 48<=D&&D<=57}function S(D){if(D===null)return!1;var B=D.length,j=0,q=!1,W;if(!B)return!1;if(W=D[j],(W==="-"||W==="+")&&(W=D[++j]),W==="0"){if(j+1===B)return!0;if(W=D[++j],W==="b"){for(j++;j<B;j++)if(W=D[j],W!=="_"){if(W!=="0"&&W!=="1")return!1;q=!0}return q&&W!=="_"}if(W==="x"){for(j++;j<B;j++)if(W=D[j],W!=="_"){if(!x(D.charCodeAt(j)))return!1;q=!0}return q&&W!=="_"}for(;j<B;j++)if(W=D[j],W!=="_"){if(!d(D.charCodeAt(j)))return!1;q=!0}return q&&W!=="_"}if(W==="_")return!1;for(;j<B;j++)if(W=D[j],W!=="_"){if(W===":")break;if(!b(D.charCodeAt(j)))return!1;q=!0}return!q||W==="_"?!1:W!==":"?!0:/^(:[0-5]?[0-9])+$/.test(D.slice(j))}function g(D){var B=D,j=1,q,W,M=[];return B.indexOf("_")!==-1&&(B=B.replace(/_/g,"")),q=B[0],(q==="-"||q==="+")&&(q==="-"&&(j=-1),B=B.slice(1),q=B[0]),B==="0"?0:q==="0"?B[1]==="b"?j*parseInt(B.slice(2),2):B[1]==="x"?j*parseInt(B,16):j*parseInt(B,8):B.indexOf(":")!==-1?(B.split(":").forEach(function(X){M.unshift(parseInt(X,10))}),B=0,W=1,M.forEach(function(X){B+=X*W,W*=60}),j*B):j*parseInt(B,10)}function L(D){return Object.prototype.toString.call(D)==="[object Number]"&&D%1==0&&!c.isNegativeZero(D)}h.exports=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:S,construct:g,predicate:L,represent:{binary:function(D){return D>=0?"0b"+D.toString(2):"-0b"+D.toString(2).slice(1)},octal:function(D){return D>=0?"0"+D.toString(8):"-0"+D.toString(8).slice(1)},decimal:function(D){return D.toString(10)},hexadecimal:function(D){return D>=0?"0x"+D.toString(16).toUpperCase():"-0x"+D.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},89811:(h,I,o)=>{"use strict";var c;try{var v=void 0;c=o(88150)}catch(L){typeof window!="undefined"&&(c=window.esprima)}var x=o(53899);function d(L){if(L===null)return!1;try{var D="("+L+")",B=c.parse(D,{range:!0});return!(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")}catch(j){return!1}}function b(L){var D="("+L+")",B=c.parse(D,{range:!0}),j=[],q;if(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return B.body[0].expression.params.forEach(function(W){j.push(W.name)}),q=B.body[0].expression.body.range,B.body[0].expression.body.type==="BlockStatement"?new Function(j,D.slice(q[0]+1,q[1]-1)):new Function(j,"return "+D.slice(q[0],q[1]))}function S(L){return L.toString()}function g(L){return Object.prototype.toString.call(L)==="[object Function]"}h.exports=new x("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:d,construct:b,predicate:g,represent:S})},97287:(h,I,o)=>{"use strict";var c=o(53899);function v(S){if(S===null||S.length===0)return!1;var g=S,L=/\/([gim]*)$/.exec(S),D="";return!(g[0]==="/"&&(L&&(D=L[1]),D.length>3||g[g.length-D.length-1]!=="/"))}function x(S){var g=S,L=/\/([gim]*)$/.exec(S),D="";return g[0]==="/"&&(L&&(D=L[1]),g=g.slice(1,g.length-D.length-1)),new RegExp(g,D)}function d(S){var g="/"+S.source+"/";return S.global&&(g+="g"),S.multiline&&(g+="m"),S.ignoreCase&&(g+="i"),g}function b(S){return Object.prototype.toString.call(S)==="[object RegExp]"}h.exports=new c("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},70575:(h,I,o)=>{"use strict";var c=o(53899);function v(){return!0}function x(){}function d(){return""}function b(S){return typeof S=="undefined"}h.exports=new c("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},86553:(h,I,o)=>{"use strict";var c=o(53899);h.exports=new c("tag:yaml.org,2002:map",{kind:"mapping",construct:function(v){return v!==null?v:{}}})},243:(h,I,o)=>{"use strict";var c=o(53899);function v(x){return x==="<<"||x===null}h.exports=new c("tag:yaml.org,2002:merge",{kind:"scalar",resolve:v})},3022:(h,I,o)=>{"use strict";var c=o(53899);function v(b){if(b===null)return!0;var S=b.length;return S===1&&b==="~"||S===4&&(b==="null"||b==="Null"||b==="NULL")}function x(){return null}function d(b){return b===null}h.exports=new c("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},3878:(h,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.hasOwnProperty,x=Object.prototype.toString;function d(S){if(S===null)return!0;var g=[],L,D,B,j,q,W=S;for(L=0,D=W.length;L<D;L+=1){if(B=W[L],q=!1,x.call(B)!=="[object Object]")return!1;for(j in B)if(v.call(B,j))if(!q)q=!0;else return!1;if(!q)return!1;if(g.indexOf(j)===-1)g.push(j);else return!1}return!0}function b(S){return S!==null?S:[]}h.exports=new c("tag:yaml.org,2002:omap",{kind:"sequence",resolve:d,construct:b})},68244:(h,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.toString;function x(b){if(b===null)return!0;var S,g,L,D,B,j=b;for(B=new Array(j.length),S=0,g=j.length;S<g;S+=1){if(L=j[S],v.call(L)!=="[object Object]"||(D=Object.keys(L),D.length!==1))return!1;B[S]=[D[0],L[D[0]]]}return!0}function d(b){if(b===null)return[];var S,g,L,D,B,j=b;for(B=new Array(j.length),S=0,g=j.length;S<g;S+=1)L=j[S],D=Object.keys(L),B[S]=[D[0],L[D[0]]];return B}h.exports=new c("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:x,construct:d})},43745:(h,I,o)=>{"use strict";var c=o(53899);h.exports=new c("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(v){return v!==null?v:[]}})},67300:(h,I,o)=>{"use strict";var c=o(53899),v=Object.prototype.hasOwnProperty;function x(b){if(b===null)return!0;var S,g=b;for(S in g)if(v.call(g,S)&&g[S]!==null)return!1;return!0}function d(b){return b!==null?b:{}}h.exports=new c("tag:yaml.org,2002:set",{kind:"mapping",resolve:x,construct:d})},79483:(h,I,o)=>{"use strict";var c=o(53899);h.exports=new c("tag:yaml.org,2002:str",{kind:"scalar",construct:function(v){return v!==null?v:""}})},56145:(h,I,o)=>{"use strict";var c=o(53899),v=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),x=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function d(g){return g===null?!1:v.exec(g)!==null||x.exec(g)!==null}function b(g){var L,D,B,j,q,W,M,X=0,R=null,C,V,J;if(L=v.exec(g),L===null&&(L=x.exec(g)),L===null)throw new Error("Date resolve error");if(D=+L[1],B=+L[2]-1,j=+L[3],!L[4])return new Date(Date.UTC(D,B,j));if(q=+L[4],W=+L[5],M=+L[6],L[7]){for(X=L[7].slice(0,3);X.length<3;)X+="0";X=+X}return L[9]&&(C=+L[10],V=+(L[11]||0),R=(C*60+V)*6e4,L[9]==="-"&&(R=-R)),J=new Date(Date.UTC(D,B,j,q,W,M,X)),R&&J.setTime(J.getTime()-R),J}function S(g){return g.toISOString()}h.exports=new c("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:d,construct:b,instanceOf:Date,represent:S})},18552:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"DataView");h.exports=x},1989:(h,I,o)=>{var c=o(51789),v=o(80401),x=o(57667),d=o(21327),b=o(81866);function S(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},38407:(h,I,o)=>{var c=o(27040),v=o(14125),x=o(82117),d=o(67518),b=o(13399);function S(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},57071:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Map");h.exports=x},83369:(h,I,o)=>{var c=o(24785),v=o(11285),x=o(96e3),d=o(49916),b=o(95265);function S(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},53818:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Promise");h.exports=x},58525:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"Set");h.exports=x},88668:(h,I,o)=>{var c=o(83369),v=o(90619),x=o(72385);function d(b){var S=-1,g=b==null?0:b.length;for(this.__data__=new c;++S<g;)this.add(b[S])}d.prototype.add=d.prototype.push=v,d.prototype.has=x,h.exports=d},46384:(h,I,o)=>{var c=o(38407),v=o(37465),x=o(63779),d=o(67599),b=o(44758),S=o(34309);function g(L){var D=this.__data__=new c(L);this.size=D.size}g.prototype.clear=v,g.prototype.delete=x,g.prototype.get=d,g.prototype.has=b,g.prototype.set=S,h.exports=g},62705:(h,I,o)=>{var c=o(55639),v=c.Symbol;h.exports=v},11149:(h,I,o)=>{var c=o(55639),v=c.Uint8Array;h.exports=v},70577:(h,I,o)=>{var c=o(10852),v=o(55639),x=c(v,"WeakMap");h.exports=x},96874:h=>{function I(o,c,v){switch(v.length){case 0:return o.call(c);case 1:return o.call(c,v[0]);case 2:return o.call(c,v[0],v[1]);case 3:return o.call(c,v[0],v[1],v[2])}return o.apply(c,v)}h.exports=I},77412:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length;++v<x&&c(o[v],v,o)!==!1;);return o}h.exports=I},34963:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length,d=0,b=[];++v<x;){var S=o[v];c(S,v,o)&&(b[d++]=S)}return b}h.exports=I},14636:(h,I,o)=>{var c=o(22545),v=o(35694),x=o(1469),d=o(44144),b=o(65776),S=o(36719),g=Object.prototype,L=g.hasOwnProperty;function D(B,j){var q=x(B),W=!q&&v(B),M=!q&&!W&&d(B),X=!q&&!W&&!M&&S(B),R=q||W||M||X,C=R?c(B.length,String):[],V=C.length;for(var J in B)(j||L.call(B,J))&&!(R&&(J=="length"||M&&(J=="offset"||J=="parent")||X&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||b(J,V)))&&C.push(J);return C}h.exports=D},29932:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length,d=Array(x);++v<x;)d[v]=c(o[v],v,o);return d}h.exports=I},62488:h=>{function I(o,c){for(var v=-1,x=c.length,d=o.length;++v<x;)o[d+v]=c[v];return o}h.exports=I},82908:h=>{function I(o,c){for(var v=-1,x=o==null?0:o.length;++v<x;)if(c(o[v],v,o))return!0;return!1}h.exports=I},34865:(h,I,o)=>{var c=o(89465),v=o(77813),x=Object.prototype,d=x.hasOwnProperty;function b(S,g,L){var D=S[g];(!(d.call(S,g)&&v(D,L))||L===void 0&&!(g in S))&&c(S,g,L)}h.exports=b},18470:(h,I,o)=>{var c=o(77813);function v(x,d){for(var b=x.length;b--;)if(c(x[b][0],d))return b;return-1}h.exports=v},44037:(h,I,o)=>{var c=o(98363),v=o(3674);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},63886:(h,I,o)=>{var c=o(98363),v=o(81704);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},89465:(h,I,o)=>{var c=o(38777);function v(x,d,b){d=="__proto__"&&c?c(x,d,{configurable:!0,enumerable:!0,value:b,writable:!0}):x[d]=b}h.exports=v},29750:h=>{function I(o,c,v){return o===o&&(v!==void 0&&(o=o<=v?o:v),c!==void 0&&(o=o>=c?o:c)),o}h.exports=I},85990:(h,I,o)=>{var c=o(46384),v=o(77412),x=o(34865),d=o(44037),b=o(63886),S=o(64626),g=o(278),L=o(18805),D=o(1911),B=o(58234),j=o(46904),q=o(98882),W=o(43824),M=o(29148),X=o(38517),R=o(1469),C=o(44144),V=o(56688),J=o(13218),_=o(72928),Q=o(3674),Y=o(81704),ce=1,ee=2,ie=4,xe="[object Arguments]",we="[object Array]",he="[object Boolean]",fe="[object Date]",ae="[object Error]",Fe="[object Function]",Le="[object GeneratorFunction]",Me="[object Map]",Te="[object Number]",rt="[object Object]",Ze="[object RegExp]",Xe="[object Set]",ft="[object String]",ht="[object Symbol]",bt="[object WeakMap]",nt="[object ArrayBuffer]",ut="[object DataView]",yt="[object Float32Array]",mt="[object Float64Array]",pt="[object Int8Array]",Mt="[object Int16Array]",kt="[object Int32Array]",Ct="[object Uint8Array]",Wt="[object Uint8ClampedArray]",jt="[object Uint16Array]",Vt="[object Uint32Array]",St={};St[xe]=St[we]=St[nt]=St[ut]=St[he]=St[fe]=St[yt]=St[mt]=St[pt]=St[Mt]=St[kt]=St[Me]=St[Te]=St[rt]=St[Ze]=St[Xe]=St[ft]=St[ht]=St[Ct]=St[Wt]=St[jt]=St[Vt]=!0,St[ae]=St[Fe]=St[bt]=!1;function Dt(ve,z,$,Se,Ie,$e){var Ke,P=z&ce,Re=z&ee,K=z&ie;if($&&(Ke=Ie?$(ve,Se,Ie,$e):$(ve)),Ke!==void 0)return Ke;if(!J(ve))return ve;var T=R(ve);if(T){if(Ke=W(ve),!P)return g(ve,Ke)}else{var O=q(ve),le=O==Fe||O==Le;if(C(ve))return S(ve,P);if(O==rt||O==xe||le&&!Ie){if(Ke=Re||le?{}:X(ve),!P)return Re?D(ve,b(Ke,ve)):L(ve,d(Ke,ve))}else{if(!St[O])return Ie?ve:{};Ke=M(ve,O,P)}}$e||($e=new c);var N=$e.get(ve);if(N)return N;$e.set(ve,Ke),_(ve)?ve.forEach(function(oe){Ke.add(Dt(oe,z,$,oe,ve,$e))}):V(ve)&&ve.forEach(function(oe,pe){Ke.set(pe,Dt(oe,z,$,pe,ve,$e))});var te=K?Re?j:B:Re?Y:Q,de=T?void 0:te(ve);return v(de||ve,function(oe,pe){de&&(pe=oe,oe=ve[pe]),x(Ke,pe,Dt(oe,z,$,pe,ve,$e))}),Ke}h.exports=Dt},3118:(h,I,o)=>{var c=o(13218),v=Object.create,x=function(){function d(){}return function(b){if(!c(b))return{};if(v)return v(b);d.prototype=b;var S=new d;return d.prototype=void 0,S}}();h.exports=x},41848:h=>{function I(o,c,v,x){for(var d=o.length,b=v+(x?1:-1);x?b--:++b<d;)if(c(o[b],b,o))return b;return-1}h.exports=I},35764:(h,I,o)=>{var c=o(62488),v=o(37285);function x(d,b,S,g,L){var D=-1,B=d.length;for(S||(S=v),L||(L=[]);++D<B;){var j=d[D];b>0&&S(j)?b>1?x(j,b-1,S,g,L):c(L,j):g||(L[L.length]=j)}return L}h.exports=x},97786:(h,I,o)=>{var c=o(71811),v=o(40327);function x(d,b){b=c(b,d);for(var S=0,g=b.length;d!=null&&S<g;)d=d[v(b[S++])];return S&&S==g?d:void 0}h.exports=x},68866:(h,I,o)=>{var c=o(62488),v=o(1469);function x(d,b,S){var g=b(d);return v(d)?g:c(g,S(d))}h.exports=x},44239:(h,I,o)=>{var c=o(62705),v=o(89607),x=o(2333),d="[object Null]",b="[object Undefined]",S=c?c.toStringTag:void 0;function g(L){return L==null?L===void 0?b:d:S&&S in Object(L)?v(L):x(L)}h.exports=g},13:h=>{function I(o,c){return o!=null&&c in Object(o)}h.exports=I},9454:(h,I,o)=>{var c=o(44239),v=o(37005),x="[object Arguments]";function d(b){return v(b)&&c(b)==x}h.exports=d},90939:(h,I,o)=>{var c=o(2492),v=o(37005);function x(d,b,S,g,L){return d===b?!0:d==null||b==null||!v(d)&&!v(b)?d!==d&&b!==b:c(d,b,S,g,x,L)}h.exports=x},2492:(h,I,o)=>{var c=o(46384),v=o(67114),x=o(18351),d=o(16096),b=o(98882),S=o(1469),g=o(44144),L=o(36719),D=1,B="[object Arguments]",j="[object Array]",q="[object Object]",W=Object.prototype,M=W.hasOwnProperty;function X(R,C,V,J,_,Q){var Y=S(R),ce=S(C),ee=Y?j:b(R),ie=ce?j:b(C);ee=ee==B?q:ee,ie=ie==B?q:ie;var xe=ee==q,we=ie==q,he=ee==ie;if(he&&g(R)){if(!g(C))return!1;Y=!0,xe=!1}if(he&&!xe)return Q||(Q=new c),Y||L(R)?v(R,C,V,J,_,Q):x(R,C,ee,V,J,_,Q);if(!(V&D)){var fe=xe&&M.call(R,"__wrapped__"),ae=we&&M.call(C,"__wrapped__");if(fe||ae){var Fe=fe?R.value():R,Le=ae?C.value():C;return Q||(Q=new c),_(Fe,Le,V,J,Q)}}return he?(Q||(Q=new c),d(R,C,V,J,_,Q)):!1}h.exports=X},25588:(h,I,o)=>{var c=o(98882),v=o(37005),x="[object Map]";function d(b){return v(b)&&c(b)==x}h.exports=d},2958:(h,I,o)=>{var c=o(46384),v=o(90939),x=1,d=2;function b(S,g,L,D){var B=L.length,j=B,q=!D;if(S==null)return!j;for(S=Object(S);B--;){var W=L[B];if(q&&W[2]?W[1]!==S[W[0]]:!(W[0]in S))return!1}for(;++B<j;){W=L[B];var M=W[0],X=S[M],R=W[1];if(q&&W[2]){if(X===void 0&&!(M in S))return!1}else{var C=new c;if(D)var V=D(X,R,M,S,g,C);if(!(V===void 0?v(R,X,x|d,D,C):V))return!1}}return!0}h.exports=b},28458:(h,I,o)=>{var c=o(23560),v=o(15346),x=o(13218),d=o(80346),b=/[\\^$.*+?()[\]{}|]/g,S=/^\[object .+?Constructor\]$/,g=Function.prototype,L=Object.prototype,D=g.toString,B=L.hasOwnProperty,j=RegExp("^"+D.call(B).replace(b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function q(W){if(!x(W)||v(W))return!1;var M=c(W)?j:S;return M.test(d(W))}h.exports=q},29221:(h,I,o)=>{var c=o(98882),v=o(37005),x="[object Set]";function d(b){return v(b)&&c(b)==x}h.exports=d},38749:(h,I,o)=>{var c=o(44239),v=o(41780),x=o(37005),d="[object Arguments]",b="[object Array]",S="[object Boolean]",g="[object Date]",L="[object Error]",D="[object Function]",B="[object Map]",j="[object Number]",q="[object Object]",W="[object RegExp]",M="[object Set]",X="[object String]",R="[object WeakMap]",C="[object ArrayBuffer]",V="[object DataView]",J="[object Float32Array]",_="[object Float64Array]",Q="[object Int8Array]",Y="[object Int16Array]",ce="[object Int32Array]",ee="[object Uint8Array]",ie="[object Uint8ClampedArray]",xe="[object Uint16Array]",we="[object Uint32Array]",he={};he[J]=he[_]=he[Q]=he[Y]=he[ce]=he[ee]=he[ie]=he[xe]=he[we]=!0,he[d]=he[b]=he[C]=he[S]=he[V]=he[g]=he[L]=he[D]=he[B]=he[j]=he[q]=he[W]=he[M]=he[X]=he[R]=!1;function fe(ae){return x(ae)&&v(ae.length)&&!!he[c(ae)]}h.exports=fe},67206:(h,I,o)=>{var c=o(91573),v=o(16432),x=o(6557),d=o(1469),b=o(39601);function S(g){return typeof g=="function"?g:g==null?x:typeof g=="object"?d(g)?v(g[0],g[1]):c(g):b(g)}h.exports=S},280:(h,I,o)=>{var c=o(25726),v=o(86916),x=Object.prototype,d=x.hasOwnProperty;function b(S){if(!c(S))return v(S);var g=[];for(var L in Object(S))d.call(S,L)&&L!="constructor"&&g.push(L);return g}h.exports=b},10313:(h,I,o)=>{var c=o(13218),v=o(25726),x=o(33498),d=Object.prototype,b=d.hasOwnProperty;function S(g){if(!c(g))return x(g);var L=v(g),D=[];for(var B in g)B=="constructor"&&(L||!b.call(g,B))||D.push(B);return D}h.exports=S},91573:(h,I,o)=>{var c=o(2958),v=o(1499),x=o(42634);function d(b){var S=v(b);return S.length==1&&S[0][2]?x(S[0][0],S[0][1]):function(g){return g===b||c(g,b,S)}}h.exports=d},16432:(h,I,o)=>{var c=o(90939),v=o(27361),x=o(79095),d=o(15403),b=o(89162),S=o(42634),g=o(40327),L=1,D=2;function B(j,q){return d(j)&&b(q)?S(g(j),q):function(W){var M=v(W,j);return M===void 0&&M===q?x(W,j):c(q,M,L|D)}}h.exports=B},25970:(h,I,o)=>{var c=o(63012),v=o(79095);function x(d,b){return c(d,b,function(S,g){return v(d,g)})}h.exports=x},63012:(h,I,o)=>{var c=o(97786),v=o(10611),x=o(71811);function d(b,S,g){for(var L=-1,D=S.length,B={};++L<D;){var j=S[L],q=c(b,j);g(q,j)&&v(B,x(j,b),q)}return B}h.exports=d},40371:h=>{function I(o){return function(c){return c==null?void 0:c[o]}}h.exports=I},79152:(h,I,o)=>{var c=o(97786);function v(x){return function(d){return c(d,x)}}h.exports=v},5976:(h,I,o)=>{var c=o(6557),v=o(45357),x=o(30061);function d(b,S){return x(v(b,S,c),b+"")}h.exports=d},10611:(h,I,o)=>{var c=o(34865),v=o(71811),x=o(65776),d=o(13218),b=o(40327);function S(g,L,D,B){if(!d(g))return g;L=v(L,g);for(var j=-1,q=L.length,W=q-1,M=g;M!=null&&++j<q;){var X=b(L[j]),R=D;if(X==="__proto__"||X==="constructor"||X==="prototype")return g;if(j!=W){var C=M[X];R=B?B(C,X,M):void 0,R===void 0&&(R=d(C)?C:x(L[j+1])?[]:{})}c(M,X,R),M=M[X]}return g}h.exports=S},56560:(h,I,o)=>{var c=o(75703),v=o(38777),x=o(6557),d=v?function(b,S){return v(b,"toString",{configurable:!0,enumerable:!1,value:c(S),writable:!0})}:x;h.exports=d},22545:h=>{function I(o,c){for(var v=-1,x=Array(o);++v<o;)x[v]=c(v);return x}h.exports=I},80531:(h,I,o)=>{var c=o(62705),v=o(29932),x=o(1469),d=o(33448),b=1/0,S=c?c.prototype:void 0,g=S?S.toString:void 0;function L(D){if(typeof D=="string")return D;if(x(D))return v(D,L)+"";if(d(D))return g?g.call(D):"";var B=D+"";return B=="0"&&1/D==-b?"-0":B}h.exports=L},27561:(h,I,o)=>{var c=o(67990),v=/^\s+/;function x(d){return d&&d.slice(0,c(d)+1).replace(v,"")}h.exports=x},7518:h=>{function I(o){return function(c){return o(c)}}h.exports=I},74757:h=>{function I(o,c){return o.has(c)}h.exports=I},71811:(h,I,o)=>{var c=o(1469),v=o(15403),x=o(55514),d=o(79833);function b(S,g){return c(S)?S:v(S,g)?[S]:x(d(S))}h.exports=b},74318:(h,I,o)=>{var c=o(11149);function v(x){var d=new x.constructor(x.byteLength);return new c(d).set(new c(x)),d}h.exports=v},64626:(h,I,o)=>{h=o.nmd(h);var c=o(55639),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d?c.Buffer:void 0,S=b?b.allocUnsafe:void 0;function g(L,D){if(D)return L.slice();var B=L.length,j=S?S(B):new L.constructor(B);return L.copy(j),j}h.exports=g},57157:(h,I,o)=>{var c=o(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.byteLength)}h.exports=v},93147:h=>{var I=/\w*$/;function o(c){var v=new c.constructor(c.source,I.exec(c));return v.lastIndex=c.lastIndex,v}h.exports=o},40419:(h,I,o)=>{var c=o(62705),v=c?c.prototype:void 0,x=v?v.valueOf:void 0;function d(b){return x?Object(x.call(b)):{}}h.exports=d},77133:(h,I,o)=>{var c=o(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.length)}h.exports=v},278:h=>{function I(o,c){var v=-1,x=o.length;for(c||(c=Array(x));++v<x;)c[v]=o[v];return c}h.exports=I},98363:(h,I,o)=>{var c=o(34865),v=o(89465);function x(d,b,S,g){var L=!S;S||(S={});for(var D=-1,B=b.length;++D<B;){var j=b[D],q=g?g(S[j],d[j],j,S,d):void 0;q===void 0&&(q=d[j]),L?v(S,j,q):c(S,j,q)}return S}h.exports=x},18805:(h,I,o)=>{var c=o(98363),v=o(99551);function x(d,b){return c(d,v(d),b)}h.exports=x},1911:(h,I,o)=>{var c=o(98363),v=o(51442);function x(d,b){return c(d,v(d),b)}h.exports=x},14429:(h,I,o)=>{var c=o(55639),v=c["__core-js_shared__"];h.exports=v},21463:(h,I,o)=>{var c=o(5976),v=o(16612);function x(d){return c(function(b,S){var g=-1,L=S.length,D=L>1?S[L-1]:void 0,B=L>2?S[2]:void 0;for(D=d.length>3&&typeof D=="function"?(L--,D):void 0,B&&v(S[0],S[1],B)&&(D=L<3?void 0:D,L=1),b=Object(b);++g<L;){var j=S[g];j&&d(b,j,g,D)}return b})}h.exports=x},67740:(h,I,o)=>{var c=o(67206),v=o(98612),x=o(3674);function d(b){return function(S,g,L){var D=Object(S);if(!v(S)){var B=c(g,3);S=x(S),g=function(q){return B(D[q],q,D)}}var j=b(S,g,L);return j>-1?D[B?S[j]:j]:void 0}}h.exports=d},38777:(h,I,o)=>{var c=o(10852),v=function(){try{var x=c(Object,"defineProperty");return x({},"",{}),x}catch(d){}}();h.exports=v},67114:(h,I,o)=>{var c=o(88668),v=o(82908),x=o(74757),d=1,b=2;function S(g,L,D,B,j,q){var W=D&d,M=g.length,X=L.length;if(M!=X&&!(W&&X>M))return!1;var R=q.get(g),C=q.get(L);if(R&&C)return R==L&&C==g;var V=-1,J=!0,_=D&b?new c:void 0;for(q.set(g,L),q.set(L,g);++V<M;){var Q=g[V],Y=L[V];if(B)var ce=W?B(Y,Q,V,L,g,q):B(Q,Y,V,g,L,q);if(ce!==void 0){if(ce)continue;J=!1;break}if(_){if(!v(L,function(ee,ie){if(!x(_,ie)&&(Q===ee||j(Q,ee,D,B,q)))return _.push(ie)})){J=!1;break}}else if(!(Q===Y||j(Q,Y,D,B,q))){J=!1;break}}return q.delete(g),q.delete(L),J}h.exports=S},18351:(h,I,o)=>{var c=o(62705),v=o(11149),x=o(77813),d=o(67114),b=o(68776),S=o(21814),g=1,L=2,D="[object Boolean]",B="[object Date]",j="[object Error]",q="[object Map]",W="[object Number]",M="[object RegExp]",X="[object Set]",R="[object String]",C="[object Symbol]",V="[object ArrayBuffer]",J="[object DataView]",_=c?c.prototype:void 0,Q=_?_.valueOf:void 0;function Y(ce,ee,ie,xe,we,he,fe){switch(ie){case J:if(ce.byteLength!=ee.byteLength||ce.byteOffset!=ee.byteOffset)return!1;ce=ce.buffer,ee=ee.buffer;case V:return!(ce.byteLength!=ee.byteLength||!he(new v(ce),new v(ee)));case D:case B:case W:return x(+ce,+ee);case j:return ce.name==ee.name&&ce.message==ee.message;case M:case R:return ce==ee+"";case q:var ae=b;case X:var Fe=xe&g;if(ae||(ae=S),ce.size!=ee.size&&!Fe)return!1;var Le=fe.get(ce);if(Le)return Le==ee;xe|=L,fe.set(ce,ee);var Me=d(ae(ce),ae(ee),xe,we,he,fe);return fe.delete(ce),Me;case C:if(Q)return Q.call(ce)==Q.call(ee)}return!1}h.exports=Y},16096:(h,I,o)=>{var c=o(58234),v=1,x=Object.prototype,d=x.hasOwnProperty;function b(S,g,L,D,B,j){var q=L&v,W=c(S),M=W.length,X=c(g),R=X.length;if(M!=R&&!q)return!1;for(var C=M;C--;){var V=W[C];if(!(q?V in g:d.call(g,V)))return!1}var J=j.get(S),_=j.get(g);if(J&&_)return J==g&&_==S;var Q=!0;j.set(S,g),j.set(g,S);for(var Y=q;++C<M;){V=W[C];var ce=S[V],ee=g[V];if(D)var ie=q?D(ee,ce,V,g,S,j):D(ce,ee,V,S,g,j);if(!(ie===void 0?ce===ee||B(ce,ee,L,D,j):ie)){Q=!1;break}Y||(Y=V=="constructor")}if(Q&&!Y){var xe=S.constructor,we=g.constructor;xe!=we&&"constructor"in S&&"constructor"in g&&!(typeof xe=="function"&&xe instanceof xe&&typeof we=="function"&&we instanceof we)&&(Q=!1)}return j.delete(S),j.delete(g),Q}h.exports=b},99021:(h,I,o)=>{var c=o(85564),v=o(45357),x=o(30061);function d(b){return x(v(b,void 0,c),b+"")}h.exports=d},31957:(h,I,o)=>{var c=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g;h.exports=c},58234:(h,I,o)=>{var c=o(68866),v=o(99551),x=o(3674);function d(b){return c(b,x,v)}h.exports=d},46904:(h,I,o)=>{var c=o(68866),v=o(51442),x=o(81704);function d(b){return c(b,x,v)}h.exports=d},45050:(h,I,o)=>{var c=o(37019);function v(x,d){var b=x.__data__;return c(d)?b[typeof d=="string"?"string":"hash"]:b.map}h.exports=v},1499:(h,I,o)=>{var c=o(89162),v=o(3674);function x(d){for(var b=v(d),S=b.length;S--;){var g=b[S],L=d[g];b[S]=[g,L,c(L)]}return b}h.exports=x},10852:(h,I,o)=>{var c=o(28458),v=o(47801);function x(d,b){var S=v(d,b);return c(S)?S:void 0}h.exports=x},85924:(h,I,o)=>{var c=o(5569),v=c(Object.getPrototypeOf,Object);h.exports=v},89607:(h,I,o)=>{var c=o(62705),v=Object.prototype,x=v.hasOwnProperty,d=v.toString,b=c?c.toStringTag:void 0;function S(g){var L=x.call(g,b),D=g[b];try{g[b]=void 0;var B=!0}catch(q){}var j=d.call(g);return B&&(L?g[b]=D:delete g[b]),j}h.exports=S},99551:(h,I,o)=>{var c=o(34963),v=o(70479),x=Object.prototype,d=x.propertyIsEnumerable,b=Object.getOwnPropertySymbols,S=b?function(g){return g==null?[]:(g=Object(g),c(b(g),function(L){return d.call(g,L)}))}:v;h.exports=S},51442:(h,I,o)=>{var c=o(62488),v=o(85924),x=o(99551),d=o(70479),b=Object.getOwnPropertySymbols,S=b?function(g){for(var L=[];g;)c(L,x(g)),g=v(g);return L}:d;h.exports=S},98882:(h,I,o)=>{var c=o(18552),v=o(57071),x=o(53818),d=o(58525),b=o(70577),S=o(44239),g=o(80346),L="[object Map]",D="[object Object]",B="[object Promise]",j="[object Set]",q="[object WeakMap]",W="[object DataView]",M=g(c),X=g(v),R=g(x),C=g(d),V=g(b),J=S;(c&&J(new c(new ArrayBuffer(1)))!=W||v&&J(new v)!=L||x&&J(x.resolve())!=B||d&&J(new d)!=j||b&&J(new b)!=q)&&(J=function(_){var Q=S(_),Y=Q==D?_.constructor:void 0,ce=Y?g(Y):"";if(ce)switch(ce){case M:return W;case X:return L;case R:return B;case C:return j;case V:return q}return Q}),h.exports=J},47801:h=>{function I(o,c){return o==null?void 0:o[c]}h.exports=I},222:(h,I,o)=>{var c=o(71811),v=o(35694),x=o(1469),d=o(65776),b=o(41780),S=o(40327);function g(L,D,B){D=c(D,L);for(var j=-1,q=D.length,W=!1;++j<q;){var M=S(D[j]);if(!(W=L!=null&&B(L,M)))break;L=L[M]}return W||++j!=q?W:(q=L==null?0:L.length,!!q&&b(q)&&d(M,q)&&(x(L)||v(L)))}h.exports=g},51789:(h,I,o)=>{var c=o(94536);function v(){this.__data__=c?c(null):{},this.size=0}h.exports=v},80401:h=>{function I(o){var c=this.has(o)&&delete this.__data__[o];return this.size-=c?1:0,c}h.exports=I},57667:(h,I,o)=>{var c=o(94536),v="__lodash_hash_undefined__",x=Object.prototype,d=x.hasOwnProperty;function b(S){var g=this.__data__;if(c){var L=g[S];return L===v?void 0:L}return d.call(g,S)?g[S]:void 0}h.exports=b},21327:(h,I,o)=>{var c=o(94536),v=Object.prototype,x=v.hasOwnProperty;function d(b){var S=this.__data__;return c?S[b]!==void 0:x.call(S,b)}h.exports=d},81866:(h,I,o)=>{var c=o(94536),v="__lodash_hash_undefined__";function x(d,b){var S=this.__data__;return this.size+=this.has(d)?0:1,S[d]=c&&b===void 0?v:b,this}h.exports=x},43824:h=>{var I=Object.prototype,o=I.hasOwnProperty;function c(v){var x=v.length,d=new v.constructor(x);return x&&typeof v[0]=="string"&&o.call(v,"index")&&(d.index=v.index,d.input=v.input),d}h.exports=c},29148:(h,I,o)=>{var c=o(74318),v=o(57157),x=o(93147),d=o(40419),b=o(77133),S="[object Boolean]",g="[object Date]",L="[object Map]",D="[object Number]",B="[object RegExp]",j="[object Set]",q="[object String]",W="[object Symbol]",M="[object ArrayBuffer]",X="[object DataView]",R="[object Float32Array]",C="[object Float64Array]",V="[object Int8Array]",J="[object Int16Array]",_="[object Int32Array]",Q="[object Uint8Array]",Y="[object Uint8ClampedArray]",ce="[object Uint16Array]",ee="[object Uint32Array]";function ie(xe,we,he){var fe=xe.constructor;switch(we){case M:return c(xe);case S:case g:return new fe(+xe);case X:return v(xe,he);case R:case C:case V:case J:case _:case Q:case Y:case ce:case ee:return b(xe,he);case L:return new fe;case D:case q:return new fe(xe);case B:return x(xe);case j:return new fe;case W:return d(xe)}}h.exports=ie},38517:(h,I,o)=>{var c=o(3118),v=o(85924),x=o(25726);function d(b){return typeof b.constructor=="function"&&!x(b)?c(v(b)):{}}h.exports=d},37285:(h,I,o)=>{var c=o(62705),v=o(35694),x=o(1469),d=c?c.isConcatSpreadable:void 0;function b(S){return x(S)||v(S)||!!(d&&S&&S[d])}h.exports=b},65776:h=>{var I=9007199254740991,o=/^(?:0|[1-9]\d*)$/;function c(v,x){var d=typeof v;return x=x==null?I:x,!!x&&(d=="number"||d!="symbol"&&o.test(v))&&v>-1&&v%1==0&&v<x}h.exports=c},16612:(h,I,o)=>{var c=o(77813),v=o(98612),x=o(65776),d=o(13218);function b(S,g,L){if(!d(L))return!1;var D=typeof g;return(D=="number"?v(L)&&x(g,L.length):D=="string"&&g in L)?c(L[g],S):!1}h.exports=b},15403:(h,I,o)=>{var c=o(1469),v=o(33448),x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/;function b(S,g){if(c(S))return!1;var L=typeof S;return L=="number"||L=="symbol"||L=="boolean"||S==null||v(S)?!0:d.test(S)||!x.test(S)||g!=null&&S in Object(g)}h.exports=b},37019:h=>{function I(o){var c=typeof o;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?o!=="__proto__":o===null}h.exports=I},15346:(h,I,o)=>{var c=o(14429),v=function(){var d=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}();function x(d){return!!v&&v in d}h.exports=x},25726:h=>{var I=Object.prototype;function o(c){var v=c&&c.constructor,x=typeof v=="function"&&v.prototype||I;return c===x}h.exports=o},89162:(h,I,o)=>{var c=o(13218);function v(x){return x===x&&!c(x)}h.exports=v},27040:h=>{function I(){this.__data__=[],this.size=0}h.exports=I},14125:(h,I,o)=>{var c=o(18470),v=Array.prototype,x=v.splice;function d(b){var S=this.__data__,g=c(S,b);if(g<0)return!1;var L=S.length-1;return g==L?S.pop():x.call(S,g,1),--this.size,!0}h.exports=d},82117:(h,I,o)=>{var c=o(18470);function v(x){var d=this.__data__,b=c(d,x);return b<0?void 0:d[b][1]}h.exports=v},67518:(h,I,o)=>{var c=o(18470);function v(x){return c(this.__data__,x)>-1}h.exports=v},13399:(h,I,o)=>{var c=o(18470);function v(x,d){var b=this.__data__,S=c(b,x);return S<0?(++this.size,b.push([x,d])):b[S][1]=d,this}h.exports=v},24785:(h,I,o)=>{var c=o(1989),v=o(38407),x=o(57071);function d(){this.size=0,this.__data__={hash:new c,map:new(x||v),string:new c}}h.exports=d},11285:(h,I,o)=>{var c=o(45050);function v(x){var d=c(this,x).delete(x);return this.size-=d?1:0,d}h.exports=v},96e3:(h,I,o)=>{var c=o(45050);function v(x){return c(this,x).get(x)}h.exports=v},49916:(h,I,o)=>{var c=o(45050);function v(x){return c(this,x).has(x)}h.exports=v},95265:(h,I,o)=>{var c=o(45050);function v(x,d){var b=c(this,x),S=b.size;return b.set(x,d),this.size+=b.size==S?0:1,this}h.exports=v},68776:h=>{function I(o){var c=-1,v=Array(o.size);return o.forEach(function(x,d){v[++c]=[d,x]}),v}h.exports=I},42634:h=>{function I(o,c){return function(v){return v==null?!1:v[o]===c&&(c!==void 0||o in Object(v))}}h.exports=I},24523:(h,I,o)=>{var c=o(88306),v=500;function x(d){var b=c(d,function(g){return S.size===v&&S.clear(),g}),S=b.cache;return b}h.exports=x},94536:(h,I,o)=>{var c=o(10852),v=c(Object,"create");h.exports=v},86916:(h,I,o)=>{var c=o(5569),v=c(Object.keys,Object);h.exports=v},33498:h=>{function I(o){var c=[];if(o!=null)for(var v in Object(o))c.push(v);return c}h.exports=I},31167:(h,I,o)=>{h=o.nmd(h);var c=o(31957),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d&&c.process,S=function(){try{var g=x&&x.require&&x.require("util").types;return g||b&&b.binding&&b.binding("util")}catch(L){}}();h.exports=S},2333:h=>{var I=Object.prototype,o=I.toString;function c(v){return o.call(v)}h.exports=c},5569:h=>{function I(o,c){return function(v){return o(c(v))}}h.exports=I},45357:(h,I,o)=>{var c=o(96874),v=Math.max;function x(d,b,S){return b=v(b===void 0?d.length-1:b,0),function(){for(var g=arguments,L=-1,D=v(g.length-b,0),B=Array(D);++L<D;)B[L]=g[b+L];L=-1;for(var j=Array(b+1);++L<b;)j[L]=g[L];return j[b]=S(B),c(d,this,j)}}h.exports=x},55639:(h,I,o)=>{var c=o(31957),v=typeof self=="object"&&self&&self.Object===Object&&self,x=c||v||Function("return this")();h.exports=x},90619:h=>{var I="__lodash_hash_undefined__";function o(c){return this.__data__.set(c,I),this}h.exports=o},72385:h=>{function I(o){return this.__data__.has(o)}h.exports=I},21814:h=>{function I(o){var c=-1,v=Array(o.size);return o.forEach(function(x){v[++c]=x}),v}h.exports=I},30061:(h,I,o)=>{var c=o(56560),v=o(21275),x=v(c);h.exports=x},21275:h=>{var I=800,o=16,c=Date.now;function v(x){var d=0,b=0;return function(){var S=c(),g=o-(S-b);if(b=S,g>0){if(++d>=I)return arguments[0]}else d=0;return x.apply(void 0,arguments)}}h.exports=v},37465:(h,I,o)=>{var c=o(38407);function v(){this.__data__=new c,this.size=0}h.exports=v},63779:h=>{function I(o){var c=this.__data__,v=c.delete(o);return this.size=c.size,v}h.exports=I},67599:h=>{function I(o){return this.__data__.get(o)}h.exports=I},44758:h=>{function I(o){return this.__data__.has(o)}h.exports=I},34309:(h,I,o)=>{var c=o(38407),v=o(57071),x=o(83369),d=200;function b(S,g){var L=this.__data__;if(L instanceof c){var D=L.__data__;if(!v||D.length<d-1)return D.push([S,g]),this.size=++L.size,this;L=this.__data__=new x(D)}return L.set(S,g),this.size=L.size,this}h.exports=b},55514:(h,I,o)=>{var c=o(24523),v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,d=c(function(b){var S=[];return b.charCodeAt(0)===46&&S.push(""),b.replace(v,function(g,L,D,B){S.push(D?B.replace(x,"$1"):L||g)}),S});h.exports=d},40327:(h,I,o)=>{var c=o(33448),v=1/0;function x(d){if(typeof d=="string"||c(d))return d;var b=d+"";return b=="0"&&1/d==-v?"-0":b}h.exports=x},80346:h=>{var I=Function.prototype,o=I.toString;function c(v){if(v!=null){try{return o.call(v)}catch(x){}try{return v+""}catch(x){}}return""}h.exports=c},67990:h=>{var I=/\s/;function o(c){for(var v=c.length;v--&&I.test(c.charAt(v)););return v}h.exports=o},28583:(h,I,o)=>{var c=o(34865),v=o(98363),x=o(21463),d=o(98612),b=o(25726),S=o(3674),g=Object.prototype,L=g.hasOwnProperty,D=x(function(B,j){if(b(j)||d(j)){v(j,S(j),B);return}for(var q in j)L.call(j,q)&&c(B,q,j[q])});h.exports=D},50361:(h,I,o)=>{var c=o(85990),v=1,x=4;function d(b){return c(b,v|x)}h.exports=d},75703:h=>{function I(o){return function(){return o}}h.exports=I},77813:h=>{function I(o,c){return o===c||o!==o&&c!==c}h.exports=I},13311:(h,I,o)=>{var c=o(67740),v=o(30998),x=c(v);h.exports=x},30998:(h,I,o)=>{var c=o(41848),v=o(67206),x=o(40554),d=Math.max;function b(S,g,L){var D=S==null?0:S.length;if(!D)return-1;var B=L==null?0:x(L);return B<0&&(B=d(D+B,0)),c(S,v(g,3),B)}h.exports=b},85564:(h,I,o)=>{var c=o(35764);function v(x){var d=x==null?0:x.length;return d?c(x,1):[]}h.exports=v},27361:(h,I,o)=>{var c=o(97786);function v(x,d,b){var S=x==null?void 0:c(x,d);return S===void 0?b:S}h.exports=v},79095:(h,I,o)=>{var c=o(13),v=o(222);function x(d,b){return d!=null&&v(d,b,c)}h.exports=x},6557:h=>{function I(o){return o}h.exports=I},35694:(h,I,o)=>{var c=o(9454),v=o(37005),x=Object.prototype,d=x.hasOwnProperty,b=x.propertyIsEnumerable,S=c(function(){return arguments}())?c:function(g){return v(g)&&d.call(g,"callee")&&!b.call(g,"callee")};h.exports=S},1469:h=>{var I=Array.isArray;h.exports=I},98612:(h,I,o)=>{var c=o(23560),v=o(41780);function x(d){return d!=null&&v(d.length)&&!c(d)}h.exports=x},44144:(h,I,o)=>{h=o.nmd(h);var c=o(55639),v=o(95062),x=I&&!I.nodeType&&I,d=x&&!0&&h&&!h.nodeType&&h,b=d&&d.exports===x,S=b?c.Buffer:void 0,g=S?S.isBuffer:void 0,L=g||v;h.exports=L},41609:(h,I,o)=>{var c=o(280),v=o(98882),x=o(35694),d=o(1469),b=o(98612),S=o(44144),g=o(25726),L=o(36719),D="[object Map]",B="[object Set]",j=Object.prototype,q=j.hasOwnProperty;function W(M){if(M==null)return!0;if(b(M)&&(d(M)||typeof M=="string"||typeof M.splice=="function"||S(M)||L(M)||x(M)))return!M.length;var X=v(M);if(X==D||X==B)return!M.size;if(g(M))return!c(M).length;for(var R in M)if(q.call(M,R))return!1;return!0}h.exports=W},23560:(h,I,o)=>{var c=o(44239),v=o(13218),x="[object AsyncFunction]",d="[object Function]",b="[object GeneratorFunction]",S="[object Proxy]";function g(L){if(!v(L))return!1;var D=c(L);return D==d||D==b||D==x||D==S}h.exports=g},41780:h=>{var I=9007199254740991;function o(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=I}h.exports=o},56688:(h,I,o)=>{var c=o(25588),v=o(7518),x=o(31167),d=x&&x.isMap,b=d?v(d):c;h.exports=b},13218:h=>{function I(o){var c=typeof o;return o!=null&&(c=="object"||c=="function")}h.exports=I},37005:h=>{function I(o){return o!=null&&typeof o=="object"}h.exports=I},68630:(h,I,o)=>{var c=o(44239),v=o(85924),x=o(37005),d="[object Object]",b=Function.prototype,S=Object.prototype,g=b.toString,L=S.hasOwnProperty,D=g.call(Object);function B(j){if(!x(j)||c(j)!=d)return!1;var q=v(j);if(q===null)return!0;var W=L.call(q,"constructor")&&q.constructor;return typeof W=="function"&&W instanceof W&&g.call(W)==D}h.exports=B},72928:(h,I,o)=>{var c=o(29221),v=o(7518),x=o(31167),d=x&&x.isSet,b=d?v(d):c;h.exports=b},47037:(h,I,o)=>{var c=o(44239),v=o(1469),x=o(37005),d="[object String]";function b(S){return typeof S=="string"||!v(S)&&x(S)&&c(S)==d}h.exports=b},33448:(h,I,o)=>{var c=o(44239),v=o(37005),x="[object Symbol]";function d(b){return typeof b=="symbol"||v(b)&&c(b)==x}h.exports=d},36719:(h,I,o)=>{var c=o(38749),v=o(7518),x=o(31167),d=x&&x.isTypedArray,b=d?v(d):c;h.exports=b},3674:(h,I,o)=>{var c=o(14636),v=o(280),x=o(98612);function d(b){return x(b)?c(b):v(b)}h.exports=d},81704:(h,I,o)=>{var c=o(14636),v=o(10313),x=o(98612);function d(b){return x(b)?c(b,!0):v(b)}h.exports=d},88306:(h,I,o)=>{var c=o(83369),v="Expected a function";function x(d,b){if(typeof d!="function"||b!=null&&typeof b!="function")throw new TypeError(v);var S=function(){var g=arguments,L=b?b.apply(this,g):g[0],D=S.cache;if(D.has(L))return D.get(L);var B=d.apply(this,g);return S.cache=D.set(L,B)||D,B};return S.cache=new(x.Cache||c),S}x.Cache=c,h.exports=x},50308:h=>{function I(){}h.exports=I},78718:(h,I,o)=>{var c=o(25970),v=o(99021),x=v(function(d,b){return d==null?{}:c(d,b)});h.exports=x},39601:(h,I,o)=>{var c=o(40371),v=o(79152),x=o(15403),d=o(40327);function b(S){return x(S)?c(d(S)):v(S)}h.exports=b},10240:(h,I,o)=>{var c=o(29750),v=o(80531),x=o(40554),d=o(79833);function b(S,g,L){return S=d(S),L=L==null?0:c(x(L),0,S.length),g=v(g),S.slice(L,L+g.length)==g}h.exports=b},70479:h=>{function I(){return[]}h.exports=I},95062:h=>{function I(){return!1}h.exports=I},18601:(h,I,o)=>{var c=o(14841),v=1/0,x=17976931348623157e292;function d(b){if(!b)return b===0?b:0;if(b=c(b),b===v||b===-v){var S=b<0?-1:1;return S*x}return b===b?b:0}h.exports=d},40554:(h,I,o)=>{var c=o(18601);function v(x){var d=c(x),b=d%1;return d===d?b?d-b:d:0}h.exports=v},14841:(h,I,o)=>{var c=o(27561),v=o(13218),x=o(33448),d=0/0,b=/^[-+]0x[0-9a-f]+$/i,S=/^0b[01]+$/i,g=/^0o[0-7]+$/i,L=parseInt;function D(B){if(typeof B=="number")return B;if(x(B))return d;if(v(B)){var j=typeof B.valueOf=="function"?B.valueOf():B;B=v(j)?j+"":j}if(typeof B!="string")return B===0?B:+B;B=c(B);var q=S.test(B);return q||g.test(B)?L(B.slice(2),q?2:8):b.test(B)?d:+B}h.exports=D},79833:(h,I,o)=>{var c=o(80531);function v(x){return x==null?"":c(x)}h.exports=v},70631:(h,I,o)=>{var c=typeof Map=="function"&&Map.prototype,v=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,x=c&&v&&typeof v.get=="function"?v.get:null,d=c&&Map.prototype.forEach,b=typeof Set=="function"&&Set.prototype,S=Object.getOwnPropertyDescriptor&&b?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,g=b&&S&&typeof S.get=="function"?S.get:null,L=b&&Set.prototype.forEach,D=typeof WeakMap=="function"&&WeakMap.prototype,B=D?WeakMap.prototype.has:null,j=typeof WeakSet=="function"&&WeakSet.prototype,q=j?WeakSet.prototype.has:null,W=typeof WeakRef=="function"&&WeakRef.prototype,M=W?WeakRef.prototype.deref:null,X=Boolean.prototype.valueOf,R=Object.prototype.toString,C=Function.prototype.toString,V=String.prototype.match,J=String.prototype.slice,_=String.prototype.replace,Q=String.prototype.toUpperCase,Y=String.prototype.toLowerCase,ce=RegExp.prototype.test,ee=Array.prototype.concat,ie=Array.prototype.join,xe=Array.prototype.slice,we=Math.floor,he=typeof BigInt=="function"?BigInt.prototype.valueOf:null,fe=Object.getOwnPropertySymbols,ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Le=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fe?"object":"symbol")?Symbol.toStringTag:null,Me=Object.prototype.propertyIsEnumerable,Te=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(oe){return oe.__proto__}:null);function rt(oe,pe){if(oe===1/0||oe===-1/0||oe!==oe||oe&&oe>-1e3&&oe<1e3||ce.call(/e/,pe))return pe;var Ae=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof oe=="number"){var Be=oe<0?-we(-oe):we(oe);if(Be!==oe){var Ue=String(Be),Qe=J.call(pe,Ue.length+1);return _.call(Ue,Ae,"$&_")+"."+_.call(_.call(Qe,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(pe,Ae,"$&_")}var Ze=o(24654),Xe=Ze.custom,ft=Ct(Xe)?Xe:null;h.exports=function oe(pe,Ae,Be,Ue){var Qe=Ae||{};if(Vt(Qe,"quoteStyle")&&Qe.quoteStyle!=="single"&&Qe.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Vt(Qe,"maxStringLength")&&(typeof Qe.maxStringLength=="number"?Qe.maxStringLength<0&&Qe.maxStringLength!==1/0:Qe.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var vt=Vt(Qe,"customInspect")?Qe.customInspect:!0;if(typeof vt!="boolean"&&vt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Vt(Qe,"indent")&&Qe.indent!==null&&Qe.indent!==" "&&!(parseInt(Qe.indent,10)===Qe.indent&&Qe.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Vt(Qe,"numericSeparator")&&typeof Qe.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Et=Qe.numericSeparator;if(typeof pe=="undefined")return"undefined";if(pe===null)return"null";if(typeof pe=="boolean")return pe?"true":"false";if(typeof pe=="string")return P(pe,Qe);if(typeof pe=="number"){if(pe===0)return 1/0/pe>0?"0":"-0";var Bt=String(pe);return Et?rt(pe,Bt):Bt}if(typeof pe=="bigint"){var Pt=String(pe)+"n";return Et?rt(pe,Pt):Pt}var pn=typeof Qe.depth=="undefined"?5:Qe.depth;if(typeof Be=="undefined"&&(Be=0),Be>=pn&&pn>0&&typeof pe=="object")return nt(pe)?"[Array]":"[Object]";var Nr=N(Qe,Be);if(typeof Ue=="undefined")Ue=[];else if(ve(Ue,pe)>=0)return"[Circular]";function Or(Br,$r,Qn){if($r&&(Ue=xe.call(Ue),Ue.push($r)),Qn){var ur={depth:Qe.depth};return Vt(Qe,"quoteStyle")&&(ur.quoteStyle=Qe.quoteStyle),oe(Br,ur,Be+1,Ue)}return oe(Br,Qe,Be+1,Ue)}if(typeof pe=="function"&&!yt(pe)){var mi=Dt(pe),zr=de(pe,Or);return"[Function"+(mi?": "+mi:" (anonymous)")+"]"+(zr.length>0?" { "+ie.call(zr,", ")+" }":"")}if(Ct(pe)){var Bi=Fe?_.call(String(pe),/^(Symbol\(.*\))_[^)]*$/,"$1"):ae.call(pe);return typeof pe=="object"&&!Fe?K(Bi):Bi}if(Ke(pe)){for(var Bn="<"+Y.call(String(pe.nodeName)),hn=pe.attributes||[],Tn=0;Tn<hn.length;Tn++)Bn+=" "+hn[Tn].name+"="+ht(bt(hn[Tn].value),"double",Qe);return Bn+=">",pe.childNodes&&pe.childNodes.length&&(Bn+="..."),Bn+="</"+Y.call(String(pe.nodeName))+">",Bn}if(nt(pe)){if(pe.length===0)return"[]";var Gr=de(pe,Or);return Nr&&!le(Gr)?"["+te(Gr,Nr)+"]":"[ "+ie.call(Gr,", ")+" ]"}if(mt(pe)){var xi=de(pe,Or);return!("cause"in Error.prototype)&&"cause"in pe&&!Me.call(pe,"cause")?"{ ["+String(pe)+"] "+ie.call(ee.call("[cause]: "+Or(pe.cause),xi),", ")+" }":xi.length===0?"["+String(pe)+"]":"{ ["+String(pe)+"] "+ie.call(xi,", ")+" }"}if(typeof pe=="object"&&vt){if(ft&&typeof pe[ft]=="function"&&Ze)return Ze(pe,{depth:pn-Be});if(vt!=="symbol"&&typeof pe.inspect=="function")return pe.inspect()}if(z(pe)){var bi=[];return d.call(pe,function(Br,$r){bi.push(Or($r,pe,!0)+" => "+Or(Br,pe))}),O("Map",x.call(pe),bi,Nr)}if(Ie(pe)){var qr=[];return L.call(pe,function(Br){qr.push(Or(Br,pe))}),O("Set",g.call(pe),qr,Nr)}if($(pe))return T("WeakMap");if($e(pe))return T("WeakSet");if(Se(pe))return T("WeakRef");if(Mt(pe))return K(Or(Number(pe)));if(Wt(pe))return K(Or(he.call(pe)));if(kt(pe))return K(X.call(pe));if(pt(pe))return K(Or(String(pe)));if(!ut(pe)&&!yt(pe)){var vn=de(pe,Or),Un=Te?Te(pe)===Object.prototype:pe instanceof Object||pe.constructor===Object,jn=pe instanceof Object?"":"null prototype",gn=!Un&&Le&&Object(pe)===pe&&Le in pe?J.call(St(pe),8,-1):jn?"Object":"",Xn=Un||typeof pe.constructor!="function"?"":pe.constructor.name?pe.constructor.name+" ":"",wi=Xn+(gn||jn?"["+ie.call(ee.call([],gn||[],jn||[]),": ")+"] ":"");return vn.length===0?wi+"{}":Nr?wi+"{"+te(vn,Nr)+"}":wi+"{ "+ie.call(vn,", ")+" }"}return String(pe)};function ht(oe,pe,Ae){var Be=(Ae.quoteStyle||pe)==="double"?'"':"'";return Be+oe+Be}function bt(oe){return _.call(String(oe),/"/g,""")}function nt(oe){return St(oe)==="[object Array]"&&(!Le||!(typeof oe=="object"&&Le in oe))}function ut(oe){return St(oe)==="[object Date]"&&(!Le||!(typeof oe=="object"&&Le in oe))}function yt(oe){return St(oe)==="[object RegExp]"&&(!Le||!(typeof oe=="object"&&Le in oe))}function mt(oe){return St(oe)==="[object Error]"&&(!Le||!(typeof oe=="object"&&Le in oe))}function pt(oe){return St(oe)==="[object String]"&&(!Le||!(typeof oe=="object"&&Le in oe))}function Mt(oe){return St(oe)==="[object Number]"&&(!Le||!(typeof oe=="object"&&Le in oe))}function kt(oe){return St(oe)==="[object Boolean]"&&(!Le||!(typeof oe=="object"&&Le in oe))}function Ct(oe){if(Fe)return oe&&typeof oe=="object"&&oe instanceof Symbol;if(typeof oe=="symbol")return!0;if(!oe||typeof oe!="object"||!ae)return!1;try{return ae.call(oe),!0}catch(pe){}return!1}function Wt(oe){if(!oe||typeof oe!="object"||!he)return!1;try{return he.call(oe),!0}catch(pe){}return!1}var jt=Object.prototype.hasOwnProperty||function(oe){return oe in this};function Vt(oe,pe){return jt.call(oe,pe)}function St(oe){return R.call(oe)}function Dt(oe){if(oe.name)return oe.name;var pe=V.call(C.call(oe),/^function\s*([\w$]+)/);return pe?pe[1]:null}function ve(oe,pe){if(oe.indexOf)return oe.indexOf(pe);for(var Ae=0,Be=oe.length;Ae<Be;Ae++)if(oe[Ae]===pe)return Ae;return-1}function z(oe){if(!x||!oe||typeof oe!="object")return!1;try{x.call(oe);try{g.call(oe)}catch(pe){return!0}return oe instanceof Map}catch(pe){}return!1}function $(oe){if(!B||!oe||typeof oe!="object")return!1;try{B.call(oe,B);try{q.call(oe,q)}catch(pe){return!0}return oe instanceof WeakMap}catch(pe){}return!1}function Se(oe){if(!M||!oe||typeof oe!="object")return!1;try{return M.call(oe),!0}catch(pe){}return!1}function Ie(oe){if(!g||!oe||typeof oe!="object")return!1;try{g.call(oe);try{x.call(oe)}catch(pe){return!0}return oe instanceof Set}catch(pe){}return!1}function $e(oe){if(!q||!oe||typeof oe!="object")return!1;try{q.call(oe,q);try{B.call(oe,B)}catch(pe){return!0}return oe instanceof WeakSet}catch(pe){}return!1}function Ke(oe){return!oe||typeof oe!="object"?!1:typeof HTMLElement!="undefined"&&oe instanceof HTMLElement?!0:typeof oe.nodeName=="string"&&typeof oe.getAttribute=="function"}function P(oe,pe){if(oe.length>pe.maxStringLength){var Ae=oe.length-pe.maxStringLength,Be="... "+Ae+" more character"+(Ae>1?"s":"");return P(J.call(oe,0,pe.maxStringLength),pe)+Be}var Ue=_.call(_.call(oe,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Re);return ht(Ue,"single",pe)}function Re(oe){var pe=oe.charCodeAt(0),Ae={8:"b",9:"t",10:"n",12:"f",13:"r"}[pe];return Ae?"\\"+Ae:"\\x"+(pe<16?"0":"")+Q.call(pe.toString(16))}function K(oe){return"Object("+oe+")"}function T(oe){return oe+" { ? }"}function O(oe,pe,Ae,Be){var Ue=Be?te(Ae,Be):ie.call(Ae,", ");return oe+" ("+pe+") {"+Ue+"}"}function le(oe){for(var pe=0;pe<oe.length;pe++)if(ve(oe[pe],`
|
|
537
|
+
`)>=0)return!1;return!0}function N(oe,pe){var Ae;if(oe.indent===" ")Ae=" ";else if(typeof oe.indent=="number"&&oe.indent>0)Ae=ie.call(Array(oe.indent+1)," ");else return null;return{base:Ae,prev:ie.call(Array(pe+1),Ae)}}function te(oe,pe){if(oe.length===0)return"";var Ae=`
|
|
538
|
+
`+pe.prev+pe.base;return Ae+ie.call(oe,","+Ae)+`
|
|
539
|
+
`+pe.prev}function de(oe,pe){var Ae=nt(oe),Be=[];if(Ae){Be.length=oe.length;for(var Ue=0;Ue<oe.length;Ue++)Be[Ue]=Vt(oe,Ue)?pe(oe[Ue],oe):""}var Qe=typeof fe=="function"?fe(oe):[],vt;if(Fe){vt={};for(var Et=0;Et<Qe.length;Et++)vt["$"+Qe[Et]]=Qe[Et]}for(var Bt in oe)!Vt(oe,Bt)||Ae&&String(Number(Bt))===Bt&&Bt<oe.length||Fe&&vt["$"+Bt]instanceof Symbol||(ce.call(/[^\w$]/,Bt)?Be.push(pe(Bt,oe)+": "+pe(oe[Bt],oe)):Be.push(Bt+": "+pe(oe[Bt],oe)));if(typeof fe=="function")for(var Pt=0;Pt<Qe.length;Pt++)Me.call(oe,Qe[Pt])&&Be.push("["+pe(Qe[Pt])+"]: "+pe(oe[Qe[Pt]],oe));return Be}},9779:(h,I,o)=>{"use strict";var c=I,v=o(48764).Buffer;c.unescapeBuffer=function(L,D){for(var B=new v(L.length),j=0,q,W,M,X=0,R=0;X<=L.length;X++){var C=X<L.length?L.charCodeAt(X):NaN;switch(j){case 0:switch(C){case 37:q=0,W=0,j=1;break;case 43:D&&(C=32);default:B[R++]=C;break}break;case 1:if(M=C,C>=48&&C<=57)q=C-48;else if(C>=65&&C<=70)q=C-65+10;else if(C>=97&&C<=102)q=C-97+10;else{B[R++]=37,B[R++]=C,j=0;break}j=2;break;case 2:if(j=0,C>=48&&C<=57)W=C-48;else if(C>=65&&C<=70)W=C-65+10;else if(C>=97&&C<=102)W=C-97+10;else{B[R++]=37,B[R++]=M,B[R++]=C;break}B[R++]=16*q+W;break}}return B.slice(0,R-1)};function x(L,D){try{return decodeURIComponent(L)}catch(B){return c.unescapeBuffer(L,D).toString()}}c.unescape=x;for(var d=new Array(256),b=0;b<256;++b)d[b]="%"+((b<16?"0":"")+b.toString(16)).toUpperCase();c.escape=function(L){typeof L!="string"&&(L+="");for(var D="",B=0,j=0;j<L.length;++j){var q=L.charCodeAt(j);if(!(q===33||q===45||q===46||q===95||q===126||q>=39&&q<=42||q>=48&&q<=57||q>=65&&q<=90||q>=97&&q<=122)){if(j-B>0&&(D+=L.slice(B,j)),q<128){B=j+1,D+=d[q];continue}if(q<2048){B=j+1,D+=d[192|q>>6]+d[128|q&63];continue}if(q<55296||q>=57344){B=j+1,D+=d[224|q>>12]+d[128|q>>6&63]+d[128|q&63];continue}++j;var W;if(j<L.length)W=L.charCodeAt(j)&1023;else throw new URIError("URI malformed");B=j+1,q=65536+((q&1023)<<10|W),D+=d[240|q>>18]+d[128|q>>12&63]+d[128|q>>6&63]+d[128|q&63]}}return B===0?L:B<L.length?D+L.slice(B):D};var S=function(L){return typeof L=="string"?L:typeof L=="number"&&isFinite(L)?""+L:typeof L=="boolean"?L?"true":"false":""};c.stringify=c.encode=function(L,D,B,j){D=D||"&",B=B||"=";var q=c.escape;if(j&&typeof j.encodeURIComponent=="function"&&(q=j.encodeURIComponent),L!==null&&typeof L=="object"){for(var W=Object.keys(L),M=W.length,X=M-1,R="",C=0;C<M;++C){var V=W[C],J=L[V],_=q(S(V))+B;if(Array.isArray(J)){for(var Q=J.length,Y=Q-1,ce=0;ce<Q;++ce)R+=_+q(S(J[ce])),ce<Y&&(R+=D);Q&&C<X&&(R+=D)}else R+=_+q(S(J)),C<X&&(R+=D)}return R}return""},c.parse=c.decode=function(L,D,B,j){D=D||"&",B=B||"=";var q={};if(typeof L!="string"||L.length===0)return q;typeof D!="string"&&(D+="");var W=B.length,M=D.length,X=1e3;j&&typeof j.maxKeys=="number"&&(X=j.maxKeys);var R=1/0;X>0&&(R=X);var C=c.unescape;j&&typeof j.decodeURIComponent=="function"&&(C=j.decodeURIComponent);for(var V=C!==x,J=[],_=0,Q=0,Y=0,ce="",ee="",ie=V,xe=V,we=0,he=0;he<L.length;++he){var fe=L.charCodeAt(he);if(fe===D.charCodeAt(Q)){if(++Q===M){var ae=he-Q+1;if(Y<W?_<ae&&(ce+=L.slice(_,ae)):_<ae&&(ee+=L.slice(_,ae)),ie&&(ce=g(ce,C)),xe&&(ee=g(ee,C)),J.indexOf(ce)===-1)q[ce]=ee,J[J.length]=ce;else{var Fe=q[ce];Fe instanceof Array?Fe[Fe.length]=ee:q[ce]=[Fe,ee]}if(--R==0)break;ie=xe=V,we=0,ce=ee="",_=he+1,Q=Y=0}continue}else Q=0,xe||(fe===37?we=1:we>0&&(fe>=48&&fe<=57||fe>=65&&fe<=70||fe>=97&&fe<=102)?++we==3&&(xe=!0):we=0);if(Y<W)if(fe===B.charCodeAt(Y)){if(++Y===W){var ae=he-Y+1;_<ae&&(ce+=L.slice(_,ae)),we=0,_=he+1}continue}else Y=0,ie||(fe===37?we=1:we>0&&(fe>=48&&fe<=57||fe>=65&&fe<=70||fe>=97&&fe<=102)?++we==3&&(ie=!0):we=0);fe===43&&(Y<W?(he-_>0&&(ce+=L.slice(_,he)),ce+="%20",ie=!0):(he-_>0&&(ee+=L.slice(_,he)),ee+="%20",xe=!0),_=he+1)}if(R>0&&(_<L.length||Y>0))if(_<L.length&&(Y<W?ce+=L.slice(_):Q<M&&(ee+=L.slice(_))),ie&&(ce=g(ce,C)),xe&&(ee=g(ee,C)),J.indexOf(ce)===-1)q[ce]=ee,J[J.length]=ce;else{var Fe=q[ce];Fe instanceof Array?Fe[Fe.length]=ee:q[ce]=[Fe,ee]}return q};function g(L,D){try{return D(L)}catch(B){return c.unescape(L,!0)}}},35310:(h,I,o)=>{"use strict";var c;function v(){return v=Object.assign||function(q){for(var W=1;W<arguments.length;W++){var M=arguments[W];for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&(q[X]=M[X])}return q},v.apply(this,arguments)}function x(q){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(M){return typeof M}:x=function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},x(q)}var d=function(){var q=function(M,X){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,C){R.__proto__=C}||function(R,C){for(var V in C)C.hasOwnProperty(V)&&(R[V]=C[V])},q(M,X)};return function(W,M){q(W,M);function X(){this.constructor=W}W.prototype=M===null?Object.create(M):(X.prototype=M.prototype,new X)}}();c={value:!0},c=I.fk=void 0;var b=o(67294),S=typeof navigator=="undefined"||o.g.PREVENT_CODEMIRROR_RENDER===!0,g;S||(g=o(4631));var L=function(){function q(){}return q.equals=function(W,M){var X=this,R=Object.keys,C=x(W),V=x(M);return W&&M&&C==="object"&&C===V?R(W).length===R(M).length&&R(W).every(function(J){return X.equals(W[J],M[J])}):W===M},q}(),D=function(){function q(W,M){this.editor=W,this.props=M}return q.prototype.delegateCursor=function(W,M,X){var R=this.editor.getDoc();X&&this.editor.focus(),M?R.setCursor(W):R.setCursor(W,null,{scroll:!1})},q.prototype.delegateScroll=function(W){this.editor.scrollTo(W.x,W.y)},q.prototype.delegateSelection=function(W,M){var X=this.editor.getDoc();X.setSelections(W),M&&this.editor.focus()},q.prototype.apply=function(W){W&&W.selection&&W.selection.ranges&&this.delegateSelection(W.selection.ranges,W.selection.focus||!1),W&&W.cursor&&this.delegateCursor(W.cursor,W.autoScroll||!1,this.editor.getOption("autofocus")||!1),W&&W.scroll&&this.delegateScroll(W.scroll)},q.prototype.applyNext=function(W,M,X){W&&W.selection&&W.selection.ranges&&M&&M.selection&&M.selection.ranges&&!L.equals(W.selection.ranges,M.selection.ranges)&&this.delegateSelection(M.selection.ranges,M.selection.focus||!1),W&&W.cursor&&M&&M.cursor&&!L.equals(W.cursor,M.cursor)&&this.delegateCursor(X.cursor||M.cursor,M.autoScroll||!1,M.autoCursor||!1),W&&W.scroll&&M&&M.scroll&&!L.equals(W.scroll,M.scroll)&&this.delegateScroll(M.scroll)},q.prototype.applyUserDefined=function(W,M){M&&M.cursor&&this.delegateCursor(M.cursor,W.autoScroll||!1,this.editor.getOption("autofocus")||!1)},q.prototype.wire=function(W){var M=this;Object.keys(W||{}).filter(function(X){return/^on/.test(X)}).forEach(function(X){switch(X){case"onBlur":M.editor.on("blur",function(R,C){M.props.onBlur(M.editor,C)});break;case"onContextMenu":{M.editor.on("contextmenu",function(R,C){M.props.onContextMenu(M.editor,C)});break}case"onCopy":{M.editor.on("copy",function(R,C){M.props.onCopy(M.editor,C)});break}case"onCursor":M.editor.on("cursorActivity",function(R){M.props.onCursor(M.editor,M.editor.getDoc().getCursor())});break;case"onCursorActivity":M.editor.on("cursorActivity",function(R){M.props.onCursorActivity(M.editor)});break;case"onCut":{M.editor.on("cut",function(R,C){M.props.onCut(M.editor,C)});break}case"onDblClick":{M.editor.on("dblclick",function(R,C){M.props.onDblClick(M.editor,C)});break}case"onDragEnter":M.editor.on("dragenter",function(R,C){M.props.onDragEnter(M.editor,C)});break;case"onDragLeave":{M.editor.on("dragleave",function(R,C){M.props.onDragLeave(M.editor,C)});break}case"onDragOver":M.editor.on("dragover",function(R,C){M.props.onDragOver(M.editor,C)});break;case"onDragStart":{M.editor.on("dragstart",function(R,C){M.props.onDragStart(M.editor,C)});break}case"onDrop":M.editor.on("drop",function(R,C){M.props.onDrop(M.editor,C)});break;case"onFocus":M.editor.on("focus",function(R,C){M.props.onFocus(M.editor,C)});break;case"onGutterClick":M.editor.on("gutterClick",function(R,C,V,J){M.props.onGutterClick(M.editor,C,V,J)});break;case"onInputRead":M.editor.on("inputRead",function(R,C){M.props.onInputRead(M.editor,C)});break;case"onKeyDown":M.editor.on("keydown",function(R,C){M.props.onKeyDown(M.editor,C)});break;case"onKeyHandled":M.editor.on("keyHandled",function(R,C,V){M.props.onKeyHandled(M.editor,C,V)});break;case"onKeyPress":M.editor.on("keypress",function(R,C){M.props.onKeyPress(M.editor,C)});break;case"onKeyUp":M.editor.on("keyup",function(R,C){M.props.onKeyUp(M.editor,C)});break;case"onMouseDown":{M.editor.on("mousedown",function(R,C){M.props.onMouseDown(M.editor,C)});break}case"onPaste":{M.editor.on("paste",function(R,C){M.props.onPaste(M.editor,C)});break}case"onRenderLine":{M.editor.on("renderLine",function(R,C,V){M.props.onRenderLine(M.editor,C,V)});break}case"onScroll":M.editor.on("scroll",function(R){M.props.onScroll(M.editor,M.editor.getScrollInfo())});break;case"onSelection":M.editor.on("beforeSelectionChange",function(R,C){M.props.onSelection(M.editor,C)});break;case"onTouchStart":{M.editor.on("touchstart",function(R,C){M.props.onTouchStart(M.editor,C)});break}case"onUpdate":M.editor.on("update",function(R){M.props.onUpdate(M.editor)});break;case"onViewportChange":M.editor.on("viewportChange",function(R,C,V){M.props.onViewportChange(M.editor,C,V)});break}})},q}(),B=function(q){d(W,q);function W(M){var X=q.call(this,M)||this;return S||(X.applied=!1,X.appliedNext=!1,X.appliedUserDefined=!1,X.deferred=null,X.emulating=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1),X}return W.prototype.hydrate=function(M){var X=this,R=M&&M.options?M.options:{},C=v({},g.defaults,this.editor.options,R),V=Object.keys(C).some(function(J){return X.editor.getOption(J)!==C[J]});V&&Object.keys(C).forEach(function(J){R.hasOwnProperty(J)&&X.editor.getOption(J)!==C[J]&&(X.editor.setOption(J,C[J]),X.mirror.setOption(J,C[J]))}),this.hydrated||(this.deferred?this.resolveChange(M.value):this.initChange(M.value||"")),this.hydrated=!0},W.prototype.initChange=function(M){this.emulating=!0;var X=this.editor.getDoc(),R=X.lastLine(),C=X.getLine(X.lastLine()).length;X.replaceRange(M||"",{line:0,ch:0},{line:R,ch:C}),this.mirror.setValue(M),X.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},W.prototype.resolveChange=function(M){this.emulating=!0;var X=this.editor.getDoc();if(this.deferred.origin==="undo"?X.undo():this.deferred.origin==="redo"?X.redo():X.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),M&&M!==X.getValue()){var R=X.getCursor();X.setValue(M),X.setCursor(R)}this.emulating=!1,this.deferred=null},W.prototype.mirrorChange=function(M){var X=this.editor.getDoc();return M.origin==="undo"?(X.setHistory(this.mirror.getHistory()),this.mirror.undo()):M.origin==="redo"?(X.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(M.text,M.from,M.to,M.origin),this.mirror.getValue()},W.prototype.componentDidMount=function(){var M=this;S||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new D(this.editor,this.props),this.mirror=g(function(){},this.props.options),this.editor.on("electricInput",function(){M.mirror.setHistory(M.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){M.mirror.setCursor(M.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(X,R){if(!M.emulating){R.cancel(),M.deferred=R;var C=M.mirrorChange(M.deferred);M.props.onBeforeChange&&M.props.onBeforeChange(M.editor,M.deferred,C)}}),this.editor.on("change",function(X,R){!M.mounted||M.props.onChange&&M.props.onChange(M.editor,R,M.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},W.prototype.componentDidUpdate=function(M){if(!S){var X={cursor:null};this.props.value!==M.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(M,this.props,X),this.appliedNext=!0),this.shared.applyUserDefined(M,X),this.appliedUserDefined=!0}},W.prototype.componentWillUnmount=function(){S||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},W.prototype.shouldComponentUpdate=function(M,X){return!S},W.prototype.render=function(){var M=this;if(S)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return M.ref=C}})},W}(b.Component);I.fk=B;var j=function(q){d(W,q);function W(M){var X=q.call(this,M)||this;return S||(X.applied=!1,X.appliedUserDefined=!1,X.continueChange=!1,X.detached=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1,X.onBeforeChangeCb=function(){X.continueChange=!0}),X}return W.prototype.hydrate=function(M){var X=this,R=M&&M.options?M.options:{},C=v({},g.defaults,this.editor.options,R),V=Object.keys(C).some(function(Y){return X.editor.getOption(Y)!==C[Y]});if(V&&Object.keys(C).forEach(function(Y){R.hasOwnProperty(Y)&&X.editor.getOption(Y)!==C[Y]&&X.editor.setOption(Y,C[Y])}),!this.hydrated){var J=this.editor.getDoc(),_=J.lastLine(),Q=J.getLine(J.lastLine()).length;J.replaceRange(M.value||"",{line:0,ch:0},{line:_,ch:Q})}this.hydrated=!0},W.prototype.componentDidMount=function(){var M=this;S||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new D(this.editor,this.props),this.editor.on("beforeChange",function(X,R){M.props.onBeforeChange&&M.props.onBeforeChange(M.editor,R,M.editor.getValue(),M.onBeforeChangeCb)}),this.editor.on("change",function(X,R){!M.mounted||!M.props.onChange||(M.props.onBeforeChange?M.continueChange&&M.props.onChange(M.editor,R,M.editor.getValue()):M.props.onChange(M.editor,R,M.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},W.prototype.componentDidUpdate=function(M){if(this.detached&&this.props.detach===!1&&(this.detached=!1,M.editorDidAttach&&M.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,M.editorDidDetach&&M.editorDidDetach(this.editor)),!(S||this.detached)){var X={cursor:null};this.props.value!==M.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!M.autoCursor&&M.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(M),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(M,X),this.appliedUserDefined=!0)}},W.prototype.componentWillUnmount=function(){S||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},W.prototype.shouldComponentUpdate=function(M,X){var R=!0;return S&&(R=!1),this.detached&&M.detach&&(R=!1),R},W.prototype.render=function(){var M=this;if(S)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return M.ref=C}})},W}(b.Component);c=j},35666:h=>{var I=function(o){"use strict";var c=Object.prototype,v=c.hasOwnProperty,x,d=typeof Symbol=="function"?Symbol:{},b=d.iterator||"@@iterator",S=d.asyncIterator||"@@asyncIterator",g=d.toStringTag||"@@toStringTag";function L(Le,Me,Te){return Object.defineProperty(Le,Me,{value:Te,enumerable:!0,configurable:!0,writable:!0}),Le[Me]}try{L({},"")}catch(Le){L=function(Me,Te,rt){return Me[Te]=rt}}function D(Le,Me,Te,rt){var Ze=Me&&Me.prototype instanceof R?Me:R,Xe=Object.create(Ze.prototype),ft=new fe(rt||[]);return Xe._invoke=ie(Le,Te,ft),Xe}o.wrap=D;function B(Le,Me,Te){try{return{type:"normal",arg:Le.call(Me,Te)}}catch(rt){return{type:"throw",arg:rt}}}var j="suspendedStart",q="suspendedYield",W="executing",M="completed",X={};function R(){}function C(){}function V(){}var J={};J[b]=function(){return this};var _=Object.getPrototypeOf,Q=_&&_(_(ae([])));Q&&Q!==c&&v.call(Q,b)&&(J=Q);var Y=V.prototype=R.prototype=Object.create(J);C.prototype=Y.constructor=V,V.constructor=C,C.displayName=L(V,g,"GeneratorFunction");function ce(Le){["next","throw","return"].forEach(function(Me){L(Le,Me,function(Te){return this._invoke(Me,Te)})})}o.isGeneratorFunction=function(Le){var Me=typeof Le=="function"&&Le.constructor;return Me?Me===C||(Me.displayName||Me.name)==="GeneratorFunction":!1},o.mark=function(Le){return Object.setPrototypeOf?Object.setPrototypeOf(Le,V):(Le.__proto__=V,L(Le,g,"GeneratorFunction")),Le.prototype=Object.create(Y),Le},o.awrap=function(Le){return{__await:Le}};function ee(Le,Me){function Te(Xe,ft,ht,bt){var nt=B(Le[Xe],Le,ft);if(nt.type==="throw")bt(nt.arg);else{var ut=nt.arg,yt=ut.value;return yt&&typeof yt=="object"&&v.call(yt,"__await")?Me.resolve(yt.__await).then(function(mt){Te("next",mt,ht,bt)},function(mt){Te("throw",mt,ht,bt)}):Me.resolve(yt).then(function(mt){ut.value=mt,ht(ut)},function(mt){return Te("throw",mt,ht,bt)})}}var rt;function Ze(Xe,ft){function ht(){return new Me(function(bt,nt){Te(Xe,ft,bt,nt)})}return rt=rt?rt.then(ht,ht):ht()}this._invoke=Ze}ce(ee.prototype),ee.prototype[S]=function(){return this},o.AsyncIterator=ee,o.async=function(Le,Me,Te,rt,Ze){Ze===void 0&&(Ze=Promise);var Xe=new ee(D(Le,Me,Te,rt),Ze);return o.isGeneratorFunction(Me)?Xe:Xe.next().then(function(ft){return ft.done?ft.value:Xe.next()})};function ie(Le,Me,Te){var rt=j;return function(Xe,ft){if(rt===W)throw new Error("Generator is already running");if(rt===M){if(Xe==="throw")throw ft;return Fe()}for(Te.method=Xe,Te.arg=ft;;){var ht=Te.delegate;if(ht){var bt=xe(ht,Te);if(bt){if(bt===X)continue;return bt}}if(Te.method==="next")Te.sent=Te._sent=Te.arg;else if(Te.method==="throw"){if(rt===j)throw rt=M,Te.arg;Te.dispatchException(Te.arg)}else Te.method==="return"&&Te.abrupt("return",Te.arg);rt=W;var nt=B(Le,Me,Te);if(nt.type==="normal"){if(rt=Te.done?M:q,nt.arg===X)continue;return{value:nt.arg,done:Te.done}}else nt.type==="throw"&&(rt=M,Te.method="throw",Te.arg=nt.arg)}}}function xe(Le,Me){var Te=Le.iterator[Me.method];if(Te===x){if(Me.delegate=null,Me.method==="throw"){if(Le.iterator.return&&(Me.method="return",Me.arg=x,xe(Le,Me),Me.method==="throw"))return X;Me.method="throw",Me.arg=new TypeError("The iterator does not provide a 'throw' method")}return X}var rt=B(Te,Le.iterator,Me.arg);if(rt.type==="throw")return Me.method="throw",Me.arg=rt.arg,Me.delegate=null,X;var Ze=rt.arg;if(!Ze)return Me.method="throw",Me.arg=new TypeError("iterator result is not an object"),Me.delegate=null,X;if(Ze.done)Me[Le.resultName]=Ze.value,Me.next=Le.nextLoc,Me.method!=="return"&&(Me.method="next",Me.arg=x);else return Ze;return Me.delegate=null,X}ce(Y),L(Y,g,"Generator"),Y[b]=function(){return this},Y.toString=function(){return"[object Generator]"};function we(Le){var Me={tryLoc:Le[0]};1 in Le&&(Me.catchLoc=Le[1]),2 in Le&&(Me.finallyLoc=Le[2],Me.afterLoc=Le[3]),this.tryEntries.push(Me)}function he(Le){var Me=Le.completion||{};Me.type="normal",delete Me.arg,Le.completion=Me}function fe(Le){this.tryEntries=[{tryLoc:"root"}],Le.forEach(we,this),this.reset(!0)}o.keys=function(Le){var Me=[];for(var Te in Le)Me.push(Te);return Me.reverse(),function rt(){for(;Me.length;){var Ze=Me.pop();if(Ze in Le)return rt.value=Ze,rt.done=!1,rt}return rt.done=!0,rt}};function ae(Le){if(Le){var Me=Le[b];if(Me)return Me.call(Le);if(typeof Le.next=="function")return Le;if(!isNaN(Le.length)){var Te=-1,rt=function Ze(){for(;++Te<Le.length;)if(v.call(Le,Te))return Ze.value=Le[Te],Ze.done=!1,Ze;return Ze.value=x,Ze.done=!0,Ze};return rt.next=rt}}return{next:Fe}}o.values=ae;function Fe(){return{value:x,done:!0}}return fe.prototype={constructor:fe,reset:function(Le){if(this.prev=0,this.next=0,this.sent=this._sent=x,this.done=!1,this.delegate=null,this.method="next",this.arg=x,this.tryEntries.forEach(he),!Le)for(var Me in this)Me.charAt(0)==="t"&&v.call(this,Me)&&!isNaN(+Me.slice(1))&&(this[Me]=x)},stop:function(){this.done=!0;var Le=this.tryEntries[0],Me=Le.completion;if(Me.type==="throw")throw Me.arg;return this.rval},dispatchException:function(Le){if(this.done)throw Le;var Me=this;function Te(bt,nt){return Xe.type="throw",Xe.arg=Le,Me.next=bt,nt&&(Me.method="next",Me.arg=x),!!nt}for(var rt=this.tryEntries.length-1;rt>=0;--rt){var Ze=this.tryEntries[rt],Xe=Ze.completion;if(Ze.tryLoc==="root")return Te("end");if(Ze.tryLoc<=this.prev){var ft=v.call(Ze,"catchLoc"),ht=v.call(Ze,"finallyLoc");if(ft&&ht){if(this.prev<Ze.catchLoc)return Te(Ze.catchLoc,!0);if(this.prev<Ze.finallyLoc)return Te(Ze.finallyLoc)}else if(ft){if(this.prev<Ze.catchLoc)return Te(Ze.catchLoc,!0)}else if(ht){if(this.prev<Ze.finallyLoc)return Te(Ze.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Le,Me){for(var Te=this.tryEntries.length-1;Te>=0;--Te){var rt=this.tryEntries[Te];if(rt.tryLoc<=this.prev&&v.call(rt,"finallyLoc")&&this.prev<rt.finallyLoc){var Ze=rt;break}}Ze&&(Le==="break"||Le==="continue")&&Ze.tryLoc<=Me&&Me<=Ze.finallyLoc&&(Ze=null);var Xe=Ze?Ze.completion:{};return Xe.type=Le,Xe.arg=Me,Ze?(this.method="next",this.next=Ze.finallyLoc,X):this.complete(Xe)},complete:function(Le,Me){if(Le.type==="throw")throw Le.arg;return Le.type==="break"||Le.type==="continue"?this.next=Le.arg:Le.type==="return"?(this.rval=this.arg=Le.arg,this.method="return",this.next="end"):Le.type==="normal"&&Me&&(this.next=Me),X},finish:function(Le){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var Te=this.tryEntries[Me];if(Te.finallyLoc===Le)return this.complete(Te.completion,Te.afterLoc),he(Te),X}},catch:function(Le){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var Te=this.tryEntries[Me];if(Te.tryLoc===Le){var rt=Te.completion;if(rt.type==="throw"){var Ze=rt.arg;he(Te)}return Ze}}throw new Error("illegal catch attempt")},delegateYield:function(Le,Me,Te){return this.delegate={iterator:ae(Le),resultName:Me,nextLoc:Te},this.method==="next"&&(this.arg=x),X}},o}(h.exports);try{regeneratorRuntime=I}catch(o){Function("r","regeneratorRuntime = r")(I)}},37478:(h,I,o)=>{"use strict";var c=o(40210),v=o(21924),x=o(70631),d=c("%TypeError%"),b=c("%WeakMap%",!0),S=c("%Map%",!0),g=v("WeakMap.prototype.get",!0),L=v("WeakMap.prototype.set",!0),D=v("WeakMap.prototype.has",!0),B=v("Map.prototype.get",!0),j=v("Map.prototype.set",!0),q=v("Map.prototype.has",!0),W=function(C,V){for(var J=C,_;(_=J.next)!==null;J=_)if(_.key===V)return J.next=_.next,_.next=C.next,C.next=_,_},M=function(C,V){var J=W(C,V);return J&&J.value},X=function(C,V,J){var _=W(C,V);_?_.value=J:C.next={key:V,next:C.next,value:J}},R=function(C,V){return!!W(C,V)};h.exports=function(){var V,J,_,Q={assert:function(Y){if(!Q.has(Y))throw new d("Side channel does not contain "+x(Y))},get:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return g(V,Y)}else if(S){if(J)return B(J,Y)}else if(_)return M(_,Y)},has:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return D(V,Y)}else if(S){if(J)return q(J,Y)}else if(_)return R(_,Y);return!1},set:function(Y,ce){b&&Y&&(typeof Y=="object"||typeof Y=="function")?(V||(V=new b),L(V,Y,ce)):S?(J||(J=new S),j(J,Y,ce)):(_||(_={key:{},next:null}),X(_,Y,ce))}};return Q}},13837:(h,I,o)=>{var c=o(93379),v=o(17438);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},75019:(h,I,o)=>{var c=o(93379),v=o(58635);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},86081:(h,I,o)=>{var c=o(93379),v=o(45272);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},44254:(h,I,o)=>{var c=o(93379),v=o(40961);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},88996:(h,I,o)=>{"use strict";/*!
|
|
540
540
|
* The buffer module from node.js, for the browser.
|
|
541
541
|
*
|
|
542
542
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
543
543
|
* @license MIT
|
|
544
|
-
*/const c=a(79742),v=a(80645),x=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;I.Buffer=g,I.SlowBuffer=V,I.INSPECT_MAX_BYTES=50;const d=2147483647;I.kMaxLength=d,g.TYPED_ARRAY_SUPPORT=b(),!g.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function b(){try{const K=new Uint8Array(1),T={foo:function(){return 42}};return Object.setPrototypeOf(T,Uint8Array.prototype),Object.setPrototypeOf(K,T),K.foo()===42}catch(K){return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.byteOffset}});function S(K){if(K>d)throw new RangeError('The value "'+K+'" is invalid for option "size"');const T=new Uint8Array(K);return Object.setPrototypeOf(T,g.prototype),T}function g(K,T,O){if(typeof K=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(K)}return L(K,T,O)}g.poolSize=8192;function L(K,T,O){if(typeof K=="string")return q(K,T);if(ArrayBuffer.isView(K))return R(K);if(K==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K);if(Ie(K,ArrayBuffer)||K&&Ie(K.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ie(K,SharedArrayBuffer)||K&&Ie(K.buffer,SharedArrayBuffer)))return X(K,T,O);if(typeof K=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const se=K.valueOf&&K.valueOf();if(se!=null&&se!==K)return g.from(se,T,O);const N=M(K);if(N)return N;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof K[Symbol.toPrimitive]=="function")return g.from(K[Symbol.toPrimitive]("string"),T,O);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K)}g.from=function(K,T,O){return L(K,T,O)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function D(K){if(typeof K!="number")throw new TypeError('"size" argument must be of type number');if(K<0)throw new RangeError('The value "'+K+'" is invalid for option "size"')}function B(K,T,O){return D(K),K<=0?S(K):T!==void 0?typeof O=="string"?S(K).fill(T,O):S(K).fill(T):S(K)}g.alloc=function(K,T,O){return B(K,T,O)};function j(K){return D(K),S(K<0?0:C(K)|0)}g.allocUnsafe=function(K){return j(K)},g.allocUnsafeSlow=function(K){return j(K)};function q(K,T){if((typeof T!="string"||T==="")&&(T="utf8"),!g.isEncoding(T))throw new TypeError("Unknown encoding: "+T);const O=J(K,T)|0;let se=S(O);const N=se.write(K,T);return N!==O&&(se=se.slice(0,N)),se}function W(K){const T=K.length<0?0:C(K.length)|0,O=S(T);for(let se=0;se<T;se+=1)O[se]=K[se]&255;return O}function R(K){if(Ie(K,Uint8Array)){const T=new Uint8Array(K);return X(T.buffer,T.byteOffset,T.byteLength)}return W(K)}function X(K,T,O){if(T<0||K.byteLength<T)throw new RangeError('"offset" is outside of buffer bounds');if(K.byteLength<T+(O||0))throw new RangeError('"length" is outside of buffer bounds');let se;return T===void 0&&O===void 0?se=new Uint8Array(K):O===void 0?se=new Uint8Array(K,T):se=new Uint8Array(K,T,O),Object.setPrototypeOf(se,g.prototype),se}function M(K){if(g.isBuffer(K)){const T=C(K.length)|0,O=S(T);return O.length===0||K.copy(O,0,0,T),O}if(K.length!==void 0)return typeof K.length!="number"||Ge(K.length)?S(0):W(K);if(K.type==="Buffer"&&Array.isArray(K.data))return W(K.data)}function C(K){if(K>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return K|0}function V(K){return+K!=K&&(K=0),g.alloc(+K)}g.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==g.prototype},g.compare=function(T,O){if(Ie(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),Ie(O,Uint8Array)&&(O=g.from(O,O.offset,O.byteLength)),!g.isBuffer(T)||!g.isBuffer(O))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===O)return 0;let se=T.length,N=O.length;for(let re=0,de=Math.min(se,N);re<de;++re)if(T[re]!==O[re]){se=T[re],N=O[re];break}return se<N?-1:N<se?1:0},g.isEncoding=function(T){switch(String(T).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(T,O){if(!Array.isArray(T))throw new TypeError('"list" argument must be an Array of Buffers');if(T.length===0)return g.alloc(0);let se;if(O===void 0)for(O=0,se=0;se<T.length;++se)O+=T[se].length;const N=g.allocUnsafe(O);let re=0;for(se=0;se<T.length;++se){let de=T[se];if(Ie(de,Uint8Array))re+de.length>N.length?(g.isBuffer(de)||(de=g.from(de)),de.copy(N,re)):Uint8Array.prototype.set.call(N,de,re);else if(g.isBuffer(de))de.copy(N,re);else throw new TypeError('"list" argument must be an Array of Buffers');re+=de.length}return N};function J(K,T){if(g.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||Ie(K,ArrayBuffer))return K.byteLength;if(typeof K!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof K);const O=K.length,se=arguments.length>2&&arguments[2]===!0;if(!se&&O===0)return 0;let N=!1;for(;;)switch(T){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":return Dt(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O*2;case"hex":return O>>>1;case"base64":return $(K).length;default:if(N)return se?-1:Dt(K).length;T=(""+T).toLowerCase(),N=!0}}g.byteLength=J;function _(K,T,O){let se=!1;if((T===void 0||T<0)&&(T=0),T>this.length||((O===void 0||O>this.length)&&(O=this.length),O<=0)||(O>>>=0,T>>>=0,O<=T))return"";for(K||(K="utf8");;)switch(K){case"hex":return rt(this,T,O);case"utf8":case"utf-8":return oe(this,T,O);case"ascii":return Re(this,T,O);case"latin1":case"binary":return Pe(this,T,O);case"base64":return ue(this,T,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,T,O);default:if(se)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),se=!0}}g.prototype._isBuffer=!0;function Q(K,T,O){const se=K[T];K[T]=K[O],K[O]=se}g.prototype.swap16=function(){const T=this.length;if(T%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let O=0;O<T;O+=2)Q(this,O,O+1);return this},g.prototype.swap32=function(){const T=this.length;if(T%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let O=0;O<T;O+=4)Q(this,O,O+3),Q(this,O+1,O+2);return this},g.prototype.swap64=function(){const T=this.length;if(T%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let O=0;O<T;O+=8)Q(this,O,O+7),Q(this,O+1,O+6),Q(this,O+2,O+5),Q(this,O+3,O+4);return this},g.prototype.toString=function(){const T=this.length;return T===0?"":arguments.length===0?oe(this,0,T):_.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(T){if(!g.isBuffer(T))throw new TypeError("Argument must be a Buffer");return this===T?!0:g.compare(this,T)===0},g.prototype.inspect=function(){let T="";const O=I.INSPECT_MAX_BYTES;return T=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O&&(T+=" ... "),"<Buffer "+T+">"},x&&(g.prototype[x]=g.prototype.inspect),g.prototype.compare=function(T,O,se,N,re){if(Ie(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),!g.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(O===void 0&&(O=0),se===void 0&&(se=T?T.length:0),N===void 0&&(N=0),re===void 0&&(re=this.length),O<0||se>T.length||N<0||re>this.length)throw new RangeError("out of range index");if(N>=re&&O>=se)return 0;if(N>=re)return-1;if(O>=se)return 1;if(O>>>=0,se>>>=0,N>>>=0,re>>>=0,this===T)return 0;let de=re-N,ae=se-O;const pe=Math.min(de,ae),Ae=this.slice(N,re),Be=T.slice(O,se);for(let Ue=0;Ue<pe;++Ue)if(Ae[Ue]!==Be[Ue]){de=Ae[Ue],ae=Be[Ue];break}return de<ae?-1:ae<de?1:0};function Y(K,T,O,se,N){if(K.length===0)return-1;if(typeof O=="string"?(se=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,Ge(O)&&(O=N?0:K.length-1),O<0&&(O=K.length+O),O>=K.length){if(N)return-1;O=K.length-1}else if(O<0)if(N)O=0;else return-1;if(typeof T=="string"&&(T=g.from(T,se)),g.isBuffer(T))return T.length===0?-1:ce(K,T,O,se,N);if(typeof T=="number")return T=T&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(K,T,O):Uint8Array.prototype.lastIndexOf.call(K,T,O):ce(K,[T],O,se,N);throw new TypeError("val must be string, number or Buffer")}function ce(K,T,O,se,N){let re=1,de=K.length,ae=T.length;if(se!==void 0&&(se=String(se).toLowerCase(),se==="ucs2"||se==="ucs-2"||se==="utf16le"||se==="utf-16le")){if(K.length<2||T.length<2)return-1;re=2,de/=2,ae/=2,O/=2}function pe(Be,Ue){return re===1?Be[Ue]:Be.readUInt16BE(Ue*re)}let Ae;if(N){let Be=-1;for(Ae=O;Ae<de;Ae++)if(pe(K,Ae)===pe(T,Be===-1?0:Ae-Be)){if(Be===-1&&(Be=Ae),Ae-Be+1===ae)return Be*re}else Be!==-1&&(Ae-=Ae-Be),Be=-1}else for(O+ae>de&&(O=de-ae),Ae=O;Ae>=0;Ae--){let Be=!0;for(let Ue=0;Ue<ae;Ue++)if(pe(K,Ae+Ue)!==pe(T,Ue)){Be=!1;break}if(Be)return Ae}return-1}g.prototype.includes=function(T,O,se){return this.indexOf(T,O,se)!==-1},g.prototype.indexOf=function(T,O,se){return Y(this,T,O,se,!0)},g.prototype.lastIndexOf=function(T,O,se){return Y(this,T,O,se,!1)};function ee(K,T,O,se){O=Number(O)||0;const N=K.length-O;se?(se=Number(se),se>N&&(se=N)):se=N;const re=T.length;se>re/2&&(se=re/2);let de;for(de=0;de<se;++de){const ae=parseInt(T.substr(de*2,2),16);if(Ge(ae))return de;K[O+de]=ae}return de}function ie(K,T,O,se){return Se(Dt(T,K.length-O),K,O,se)}function me(K,T,O,se){return Se(ve(T),K,O,se)}function be(K,T,O,se){return Se($(T),K,O,se)}function he(K,T,O,se){return Se(z(T,K.length-O),K,O,se)}g.prototype.write=function(T,O,se,N){if(O===void 0)N="utf8",se=this.length,O=0;else if(se===void 0&&typeof O=="string")N=O,se=this.length,O=0;else if(isFinite(O))O=O>>>0,isFinite(se)?(se=se>>>0,N===void 0&&(N="utf8")):(N=se,se=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const re=this.length-O;if((se===void 0||se>re)&&(se=re),T.length>0&&(se<0||O<0)||O>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");let de=!1;for(;;)switch(N){case"hex":return ee(this,T,O,se);case"utf8":case"utf-8":return ie(this,T,O,se);case"ascii":case"latin1":case"binary":return me(this,T,O,se);case"base64":return be(this,T,O,se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,T,O,se);default:if(de)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),de=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(K,T,O){return T===0&&O===K.length?c.fromByteArray(K):c.fromByteArray(K.slice(T,O))}function oe(K,T,O){O=Math.min(K.length,O);const se=[];let N=T;for(;N<O;){const re=K[N];let de=null,ae=re>239?4:re>223?3:re>191?2:1;if(N+ae<=O){let pe,Ae,Be,Ue;switch(ae){case 1:re<128&&(de=re);break;case 2:pe=K[N+1],(pe&192)==128&&(Ue=(re&31)<<6|pe&63,Ue>127&&(de=Ue));break;case 3:pe=K[N+1],Ae=K[N+2],(pe&192)==128&&(Ae&192)==128&&(Ue=(re&15)<<12|(pe&63)<<6|Ae&63,Ue>2047&&(Ue<55296||Ue>57343)&&(de=Ue));break;case 4:pe=K[N+1],Ae=K[N+2],Be=K[N+3],(pe&192)==128&&(Ae&192)==128&&(Be&192)==128&&(Ue=(re&15)<<18|(pe&63)<<12|(Ae&63)<<6|Be&63,Ue>65535&&Ue<1114112&&(de=Ue))}}de===null?(de=65533,ae=1):de>65535&&(de-=65536,se.push(de>>>10&1023|55296),de=56320|de&1023),se.push(de),N+=ae}return Le(se)}const Fe=4096;function Le(K){const T=K.length;if(T<=Fe)return String.fromCharCode.apply(String,K);let O="",se=0;for(;se<T;)O+=String.fromCharCode.apply(String,K.slice(se,se+=Fe));return O}function Re(K,T,O){let se="";O=Math.min(K.length,O);for(let N=T;N<O;++N)se+=String.fromCharCode(K[N]&127);return se}function Pe(K,T,O){let se="";O=Math.min(K.length,O);for(let N=T;N<O;++N)se+=String.fromCharCode(K[N]);return se}function rt(K,T,O){const se=K.length;(!T||T<0)&&(T=0),(!O||O<0||O>se)&&(O=se);let N="";for(let re=T;re<O;++re)N+=Ke[K[re]];return N}function Ze(K,T,O){const se=K.slice(T,O);let N="";for(let re=0;re<se.length-1;re+=2)N+=String.fromCharCode(se[re]+se[re+1]*256);return N}g.prototype.slice=function(T,O){const se=this.length;T=~~T,O=O===void 0?se:~~O,T<0?(T+=se,T<0&&(T=0)):T>se&&(T=se),O<0?(O+=se,O<0&&(O=0)):O>se&&(O=se),O<T&&(O=T);const N=this.subarray(T,O);return Object.setPrototypeOf(N,g.prototype),N};function Xe(K,T,O){if(K%1!=0||K<0)throw new RangeError("offset is not uint");if(K+T>O)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(T,O,se){T=T>>>0,O=O>>>0,se||Xe(T,O,this.length);let N=this[T],re=1,de=0;for(;++de<O&&(re*=256);)N+=this[T+de]*re;return N},g.prototype.readUintBE=g.prototype.readUIntBE=function(T,O,se){T=T>>>0,O=O>>>0,se||Xe(T,O,this.length);let N=this[T+--O],re=1;for(;O>0&&(re*=256);)N+=this[T+--O]*re;return N},g.prototype.readUint8=g.prototype.readUInt8=function(T,O){return T=T>>>0,O||Xe(T,1,this.length),this[T]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(T,O){return T=T>>>0,O||Xe(T,2,this.length),this[T]|this[T+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(T,O){return T=T>>>0,O||Xe(T,2,this.length),this[T]<<8|this[T+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+this[T+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),this[T]*16777216+(this[T+1]<<16|this[T+2]<<8|this[T+3])},g.prototype.readBigUInt64LE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],se=this[T+7];(O===void 0||se===void 0)&&jt(T,this.length-8);const N=O+this[++T]*xr(2,8)+this[++T]*xr(2,16)+this[++T]*xr(2,24),re=this[++T]+this[++T]*xr(2,8)+this[++T]*xr(2,16)+se*xr(2,24);return BigInt(N)+(BigInt(re)<<BigInt(32))}),g.prototype.readBigUInt64BE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],se=this[T+7];(O===void 0||se===void 0)&&jt(T,this.length-8);const N=O*xr(2,24)+this[++T]*xr(2,16)+this[++T]*xr(2,8)+this[++T],re=this[++T]*xr(2,24)+this[++T]*xr(2,16)+this[++T]*xr(2,8)+se;return(BigInt(N)<<BigInt(32))+BigInt(re)}),g.prototype.readIntLE=function(T,O,se){T=T>>>0,O=O>>>0,se||Xe(T,O,this.length);let N=this[T],re=1,de=0;for(;++de<O&&(re*=256);)N+=this[T+de]*re;return re*=128,N>=re&&(N-=Math.pow(2,8*O)),N},g.prototype.readIntBE=function(T,O,se){T=T>>>0,O=O>>>0,se||Xe(T,O,this.length);let N=O,re=1,de=this[T+--N];for(;N>0&&(re*=256);)de+=this[T+--N]*re;return re*=128,de>=re&&(de-=Math.pow(2,8*O)),de},g.prototype.readInt8=function(T,O){return T=T>>>0,O||Xe(T,1,this.length),this[T]&128?(255-this[T]+1)*-1:this[T]},g.prototype.readInt16LE=function(T,O){T=T>>>0,O||Xe(T,2,this.length);const se=this[T]|this[T+1]<<8;return se&32768?se|4294901760:se},g.prototype.readInt16BE=function(T,O){T=T>>>0,O||Xe(T,2,this.length);const se=this[T+1]|this[T]<<8;return se&32768?se|4294901760:se},g.prototype.readInt32LE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},g.prototype.readInt32BE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},g.prototype.readBigInt64LE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],se=this[T+7];(O===void 0||se===void 0)&&jt(T,this.length-8);const N=this[T+4]+this[T+5]*xr(2,8)+this[T+6]*xr(2,16)+(se<<24);return(BigInt(N)<<BigInt(32))+BigInt(O+this[++T]*xr(2,8)+this[++T]*xr(2,16)+this[++T]*xr(2,24))}),g.prototype.readBigInt64BE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],se=this[T+7];(O===void 0||se===void 0)&&jt(T,this.length-8);const N=(O<<24)+this[++T]*xr(2,16)+this[++T]*xr(2,8)+this[++T];return(BigInt(N)<<BigInt(32))+BigInt(this[++T]*xr(2,24)+this[++T]*xr(2,16)+this[++T]*xr(2,8)+se)}),g.prototype.readFloatLE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),v.read(this,T,!0,23,4)},g.prototype.readFloatBE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),v.read(this,T,!1,23,4)},g.prototype.readDoubleLE=function(T,O){return T=T>>>0,O||Xe(T,8,this.length),v.read(this,T,!0,52,8)},g.prototype.readDoubleBE=function(T,O){return T=T>>>0,O||Xe(T,8,this.length),v.read(this,T,!1,52,8)};function ft(K,T,O,se,N,re){if(!g.isBuffer(K))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>N||T<re)throw new RangeError('"value" argument is out of bounds');if(O+se>K.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(T,O,se,N){if(T=+T,O=O>>>0,se=se>>>0,!N){const ae=Math.pow(2,8*se)-1;ft(this,T,O,se,ae,0)}let re=1,de=0;for(this[O]=T&255;++de<se&&(re*=256);)this[O+de]=T/re&255;return O+se},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(T,O,se,N){if(T=+T,O=O>>>0,se=se>>>0,!N){const ae=Math.pow(2,8*se)-1;ft(this,T,O,se,ae,0)}let re=se-1,de=1;for(this[O+re]=T&255;--re>=0&&(de*=256);)this[O+re]=T/de&255;return O+se},g.prototype.writeUint8=g.prototype.writeUInt8=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,1,255,0),this[O]=T&255,O+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,2,65535,0),this[O]=T&255,this[O+1]=T>>>8,O+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,2,65535,0),this[O]=T>>>8,this[O+1]=T&255,O+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,4,4294967295,0),this[O+3]=T>>>24,this[O+2]=T>>>16,this[O+1]=T>>>8,this[O]=T&255,O+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,4,4294967295,0),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4};function ht(K,T,O,se,N){Ct(T,se,N,K,O,7);let re=Number(T&BigInt(4294967295));K[O++]=re,re=re>>8,K[O++]=re,re=re>>8,K[O++]=re,re=re>>8,K[O++]=re;let de=Number(T>>BigInt(32)&BigInt(4294967295));return K[O++]=de,de=de>>8,K[O++]=de,de=de>>8,K[O++]=de,de=de>>8,K[O++]=de,O}function bt(K,T,O,se,N){Ct(T,se,N,K,O,7);let re=Number(T&BigInt(4294967295));K[O+7]=re,re=re>>8,K[O+6]=re,re=re>>8,K[O+5]=re,re=re>>8,K[O+4]=re;let de=Number(T>>BigInt(32)&BigInt(4294967295));return K[O+3]=de,de=de>>8,K[O+2]=de,de=de>>8,K[O+1]=de,de=de>>8,K[O]=de,O+8}g.prototype.writeBigUInt64LE=P(function(T,O=0){return ht(this,T,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=P(function(T,O=0){return bt(this,T,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(T,O,se,N){if(T=+T,O=O>>>0,!N){const pe=Math.pow(2,8*se-1);ft(this,T,O,se,pe-1,-pe)}let re=0,de=1,ae=0;for(this[O]=T&255;++re<se&&(de*=256);)T<0&&ae===0&&this[O+re-1]!==0&&(ae=1),this[O+re]=(T/de>>0)-ae&255;return O+se},g.prototype.writeIntBE=function(T,O,se,N){if(T=+T,O=O>>>0,!N){const pe=Math.pow(2,8*se-1);ft(this,T,O,se,pe-1,-pe)}let re=se-1,de=1,ae=0;for(this[O+re]=T&255;--re>=0&&(de*=256);)T<0&&ae===0&&this[O+re+1]!==0&&(ae=1),this[O+re]=(T/de>>0)-ae&255;return O+se},g.prototype.writeInt8=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,1,127,-128),T<0&&(T=255+T+1),this[O]=T&255,O+1},g.prototype.writeInt16LE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,2,32767,-32768),this[O]=T&255,this[O+1]=T>>>8,O+2},g.prototype.writeInt16BE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,2,32767,-32768),this[O]=T>>>8,this[O+1]=T&255,O+2},g.prototype.writeInt32LE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,4,2147483647,-2147483648),this[O]=T&255,this[O+1]=T>>>8,this[O+2]=T>>>16,this[O+3]=T>>>24,O+4},g.prototype.writeInt32BE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4},g.prototype.writeBigInt64LE=P(function(T,O=0){return ht(this,T,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=P(function(T,O=0){return bt(this,T,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function nt(K,T,O,se,N,re){if(O+se>K.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function ut(K,T,O,se,N){return T=+T,O=O>>>0,N||nt(K,T,O,4,34028234663852886e22,-34028234663852886e22),v.write(K,T,O,se,23,4),O+4}g.prototype.writeFloatLE=function(T,O,se){return ut(this,T,O,!0,se)},g.prototype.writeFloatBE=function(T,O,se){return ut(this,T,O,!1,se)};function yt(K,T,O,se,N){return T=+T,O=O>>>0,N||nt(K,T,O,8,17976931348623157e292,-17976931348623157e292),v.write(K,T,O,se,52,8),O+8}g.prototype.writeDoubleLE=function(T,O,se){return yt(this,T,O,!0,se)},g.prototype.writeDoubleBE=function(T,O,se){return yt(this,T,O,!1,se)},g.prototype.copy=function(T,O,se,N){if(!g.isBuffer(T))throw new TypeError("argument should be a Buffer");if(se||(se=0),!N&&N!==0&&(N=this.length),O>=T.length&&(O=T.length),O||(O=0),N>0&&N<se&&(N=se),N===se||T.length===0||this.length===0)return 0;if(O<0)throw new RangeError("targetStart out of bounds");if(se<0||se>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),T.length-O<N-se&&(N=T.length-O+se);const re=N-se;return this===T&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(O,se,N):Uint8Array.prototype.set.call(T,this.subarray(se,N),O),re},g.prototype.fill=function(T,O,se,N){if(typeof T=="string"){if(typeof O=="string"?(N=O,O=0,se=this.length):typeof se=="string"&&(N=se,se=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!g.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(T.length===1){const de=T.charCodeAt(0);(N==="utf8"&&de<128||N==="latin1")&&(T=de)}}else typeof T=="number"?T=T&255:typeof T=="boolean"&&(T=Number(T));if(O<0||this.length<O||this.length<se)throw new RangeError("Out of range index");if(se<=O)return this;O=O>>>0,se=se===void 0?this.length:se>>>0,T||(T=0);let re;if(typeof T=="number")for(re=O;re<se;++re)this[re]=T;else{const de=g.isBuffer(T)?T:g.from(T,N),ae=de.length;if(ae===0)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(re=0;re<se-O;++re)this[re+O]=de[re%ae]}return this};const mt={};function pt(K,T,O){mt[K]=class extends O{constructor(){super();Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${K}]`,this.stack,delete this.name}get code(){return K}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${K}]: ${this.message}`}}}pt("ERR_BUFFER_OUT_OF_BOUNDS",function(K){return K?`${K} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),pt("ERR_INVALID_ARG_TYPE",function(K,T){return`The "${K}" argument must be of type number. Received type ${typeof T}`},TypeError),pt("ERR_OUT_OF_RANGE",function(K,T,O){let se=`The value of "${K}" is out of range.`,N=O;return Number.isInteger(O)&&Math.abs(O)>xr(2,32)?N=Rt(String(O)):typeof O=="bigint"&&(N=String(O),(O>xr(BigInt(2),BigInt(32))||O<-xr(BigInt(2),BigInt(32)))&&(N=Rt(N)),N+="n"),se+=` It must be ${T}. Received ${N}`,se},RangeError);function Rt(K){let T="",O=K.length;const se=K[0]==="-"?1:0;for(;O>=se+4;O-=3)T=`_${K.slice(O-3,O)}${T}`;return`${K.slice(0,O)}${T}`}function kt(K,T,O){Wt(T,"offset"),(K[T]===void 0||K[T+O]===void 0)&&jt(T,K.length-(O+1))}function Ct(K,T,O,se,N,re){if(K>O||K<T){const de=typeof T=="bigint"?"n":"";let ae;throw re>3?T===0||T===BigInt(0)?ae=`>= 0${de} and < 2${de} ** ${(re+1)*8}${de}`:ae=`>= -(2${de} ** ${(re+1)*8-1}${de}) and < 2 ** ${(re+1)*8-1}${de}`:ae=`>= ${T}${de} and <= ${O}${de}`,new mt.ERR_OUT_OF_RANGE("value",ae,K)}kt(se,N,re)}function Wt(K,T){if(typeof K!="number")throw new mt.ERR_INVALID_ARG_TYPE(T,"number",K)}function jt(K,T,O){throw Math.floor(K)!==K?(Wt(K,O),new mt.ERR_OUT_OF_RANGE(O||"offset","an integer",K)):T<0?new mt.ERR_BUFFER_OUT_OF_BOUNDS:new mt.ERR_OUT_OF_RANGE(O||"offset",`>= ${O?1:0} and <= ${T}`,K)}const Vt=/[^+/0-9A-Za-z-_]/g;function St(K){if(K=K.split("=")[0],K=K.trim().replace(Vt,""),K.length<2)return"";for(;K.length%4!=0;)K=K+"=";return K}function Dt(K,T){T=T||1/0;let O;const se=K.length;let N=null;const re=[];for(let de=0;de<se;++de){if(O=K.charCodeAt(de),O>55295&&O<57344){if(!N){if(O>56319){(T-=3)>-1&&re.push(239,191,189);continue}else if(de+1===se){(T-=3)>-1&&re.push(239,191,189);continue}N=O;continue}if(O<56320){(T-=3)>-1&&re.push(239,191,189),N=O;continue}O=(N-55296<<10|O-56320)+65536}else N&&(T-=3)>-1&&re.push(239,191,189);if(N=null,O<128){if((T-=1)<0)break;re.push(O)}else if(O<2048){if((T-=2)<0)break;re.push(O>>6|192,O&63|128)}else if(O<65536){if((T-=3)<0)break;re.push(O>>12|224,O>>6&63|128,O&63|128)}else if(O<1114112){if((T-=4)<0)break;re.push(O>>18|240,O>>12&63|128,O>>6&63|128,O&63|128)}else throw new Error("Invalid code point")}return re}function ve(K){const T=[];for(let O=0;O<K.length;++O)T.push(K.charCodeAt(O)&255);return T}function z(K,T){let O,se,N;const re=[];for(let de=0;de<K.length&&!((T-=2)<0);++de)O=K.charCodeAt(de),se=O>>8,N=O%256,re.push(N),re.push(se);return re}function $(K){return c.toByteArray(St(K))}function Se(K,T,O,se){let N;for(N=0;N<se&&!(N+O>=T.length||N>=K.length);++N)T[N+O]=K[N];return N}function Ie(K,T){return K instanceof T||K!=null&&K.constructor!=null&&K.constructor.name!=null&&K.constructor.name===T.name}function Ge(K){return K!==K}const Ke=function(){const K="0123456789abcdef",T=new Array(256);for(let O=0;O<16;++O){const se=O*16;for(let N=0;N<16;++N)T[se+N]=K[O]+K[N]}return T}();function P(K){return typeof BigInt=="undefined"?Me:K}function Me(){throw new Error("BigInt not supported")}},24269:h=>{"use strict";var I=String.prototype.replace,a=/%20/g,c={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:c.RFC3986,formatters:{RFC1738:function(v){return I.call(v,a,"+")},RFC3986:function(v){return String(v)}},RFC1738:c.RFC1738,RFC3986:c.RFC3986}},92495:(h,I,a)=>{"use strict";var c=a(57347),v=a(73777),x=a(24269);h.exports={formats:x,parse:v,stringify:c}},73777:(h,I,a)=>{"use strict";var c=a(58760),v=Object.prototype.hasOwnProperty,x=Array.isArray,d={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:c.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},b=function(W){return W.replace(/&#(\d+);/g,function(R,X){return String.fromCharCode(parseInt(X,10))})},S=function(W,R){return W&&typeof W=="string"&&R.comma&&W.indexOf(",")>-1?W.split(","):W},g="utf8=%26%2310003%3B",L="utf8=%E2%9C%93",D=function(R,X){var M={},C=X.ignoreQueryPrefix?R.replace(/^\?/,""):R,V=X.parameterLimit===1/0?void 0:X.parameterLimit,J=C.split(X.delimiter,V),_=-1,Q,Y=X.charset;if(X.charsetSentinel)for(Q=0;Q<J.length;++Q)J[Q].indexOf("utf8=")===0&&(J[Q]===L?Y="utf-8":J[Q]===g&&(Y="iso-8859-1"),_=Q,Q=J.length);for(Q=0;Q<J.length;++Q)if(Q!==_){var ce=J[Q],ee=ce.indexOf("]="),ie=ee===-1?ce.indexOf("="):ee+1,me,be;ie===-1?(me=X.decoder(ce,d.decoder,Y,"key"),be=X.strictNullHandling?null:""):(me=X.decoder(ce.slice(0,ie),d.decoder,Y,"key"),be=c.maybeMap(S(ce.slice(ie+1),X),function(he){return X.decoder(he,d.decoder,Y,"value")})),be&&X.interpretNumericEntities&&Y==="iso-8859-1"&&(be=b(be)),ce.indexOf("[]=")>-1&&(be=x(be)?[be]:be),v.call(M,me)?M[me]=c.combine(M[me],be):M[me]=be}return M},B=function(W,R,X,M){for(var C=M?R:S(R,X),V=W.length-1;V>=0;--V){var J,_=W[V];if(_==="[]"&&X.parseArrays)J=[].concat(C);else{J=X.plainObjects?Object.create(null):{};var Q=_.charAt(0)==="["&&_.charAt(_.length-1)==="]"?_.slice(1,-1):_,Y=parseInt(Q,10);!X.parseArrays&&Q===""?J={0:C}:!isNaN(Y)&&_!==Q&&String(Y)===Q&&Y>=0&&X.parseArrays&&Y<=X.arrayLimit?(J=[],J[Y]=C):J[Q]=C}C=J}return C},j=function(R,X,M,C){if(!!R){var V=M.allowDots?R.replace(/\.([^.[]+)/g,"[$1]"):R,J=/(\[[^[\]]*])/,_=/(\[[^[\]]*])/g,Q=M.depth>0&&J.exec(V),Y=Q?V.slice(0,Q.index):V,ce=[];if(Y){if(!M.plainObjects&&v.call(Object.prototype,Y)&&!M.allowPrototypes)return;ce.push(Y)}for(var ee=0;M.depth>0&&(Q=_.exec(V))!==null&&ee<M.depth;){if(ee+=1,!M.plainObjects&&v.call(Object.prototype,Q[1].slice(1,-1))&&!M.allowPrototypes)return;ce.push(Q[1])}return Q&&ce.push("["+V.slice(Q.index)+"]"),B(ce,X,M,C)}},q=function(R){if(!R)return d;if(R.decoder!==null&&R.decoder!==void 0&&typeof R.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof R.charset!="undefined"&&R.charset!=="utf-8"&&R.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var X=typeof R.charset=="undefined"?d.charset:R.charset;return{allowDots:typeof R.allowDots=="undefined"?d.allowDots:!!R.allowDots,allowPrototypes:typeof R.allowPrototypes=="boolean"?R.allowPrototypes:d.allowPrototypes,allowSparse:typeof R.allowSparse=="boolean"?R.allowSparse:d.allowSparse,arrayLimit:typeof R.arrayLimit=="number"?R.arrayLimit:d.arrayLimit,charset:X,charsetSentinel:typeof R.charsetSentinel=="boolean"?R.charsetSentinel:d.charsetSentinel,comma:typeof R.comma=="boolean"?R.comma:d.comma,decoder:typeof R.decoder=="function"?R.decoder:d.decoder,delimiter:typeof R.delimiter=="string"||c.isRegExp(R.delimiter)?R.delimiter:d.delimiter,depth:typeof R.depth=="number"||R.depth===!1?+R.depth:d.depth,ignoreQueryPrefix:R.ignoreQueryPrefix===!0,interpretNumericEntities:typeof R.interpretNumericEntities=="boolean"?R.interpretNumericEntities:d.interpretNumericEntities,parameterLimit:typeof R.parameterLimit=="number"?R.parameterLimit:d.parameterLimit,parseArrays:R.parseArrays!==!1,plainObjects:typeof R.plainObjects=="boolean"?R.plainObjects:d.plainObjects,strictNullHandling:typeof R.strictNullHandling=="boolean"?R.strictNullHandling:d.strictNullHandling}};h.exports=function(W,R){var X=q(R);if(W===""||W===null||typeof W=="undefined")return X.plainObjects?Object.create(null):{};for(var M=typeof W=="string"?D(W,X):W,C=X.plainObjects?Object.create(null):{},V=Object.keys(M),J=0;J<V.length;++J){var _=V[J],Q=j(_,M[_],X,typeof W=="string");C=c.merge(C,Q,X)}return X.allowSparse===!0?C:c.compact(C)}},57347:(h,I,a)=>{"use strict";var c=a(37478),v=a(58760),x=a(24269),d=Object.prototype.hasOwnProperty,b={brackets:function(M){return M+"[]"},comma:"comma",indices:function(M,C){return M+"["+C+"]"},repeat:function(M){return M}},S=Array.isArray,g=Array.prototype.push,L=function(X,M){g.apply(X,S(M)?M:[M])},D=Date.prototype.toISOString,B=x.default,j={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:v.encode,encodeValuesOnly:!1,format:B,formatter:x.formatters[B],indices:!1,serializeDate:function(M){return D.call(M)},skipNulls:!1,strictNullHandling:!1},q=function(M){return typeof M=="string"||typeof M=="number"||typeof M=="boolean"||typeof M=="symbol"||typeof M=="bigint"},W=function X(M,C,V,J,_,Q,Y,ce,ee,ie,me,be,he,ue,oe){var Fe=M;if(oe.has(M))throw new RangeError("Cyclic object value");if(typeof Y=="function"?Fe=Y(C,Fe):Fe instanceof Date?Fe=ie(Fe):V==="comma"&&S(Fe)&&(Fe=v.maybeMap(Fe,function(nt){return nt instanceof Date?ie(nt):nt})),Fe===null){if(J)return Q&&!he?Q(C,j.encoder,ue,"key",me):C;Fe=""}if(q(Fe)||v.isBuffer(Fe)){if(Q){var Le=he?C:Q(C,j.encoder,ue,"key",me);return[be(Le)+"="+be(Q(Fe,j.encoder,ue,"value",me))]}return[be(C)+"="+be(String(Fe))]}var Re=[];if(typeof Fe=="undefined")return Re;var Pe;if(V==="comma"&&S(Fe))Pe=[{value:Fe.length>0?Fe.join(",")||null:void 0}];else if(S(Y))Pe=Y;else{var rt=Object.keys(Fe);Pe=ce?rt.sort(ce):rt}for(var Ze=0;Ze<Pe.length;++Ze){var Xe=Pe[Ze],ft=typeof Xe=="object"&&Xe.value!==void 0?Xe.value:Fe[Xe];if(!(_&&ft===null)){var ht=S(Fe)?typeof V=="function"?V(C,Xe):C:C+(ee?"."+Xe:"["+Xe+"]");oe.set(M,!0);var bt=c();L(Re,X(ft,ht,V,J,_,Q,Y,ce,ee,ie,me,be,he,ue,bt))}}return Re},R=function(M){if(!M)return j;if(M.encoder!==null&&M.encoder!==void 0&&typeof M.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=M.charset||j.charset;if(typeof M.charset!="undefined"&&M.charset!=="utf-8"&&M.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var V=x.default;if(typeof M.format!="undefined"){if(!d.call(x.formatters,M.format))throw new TypeError("Unknown format option provided.");V=M.format}var J=x.formatters[V],_=j.filter;return(typeof M.filter=="function"||S(M.filter))&&(_=M.filter),{addQueryPrefix:typeof M.addQueryPrefix=="boolean"?M.addQueryPrefix:j.addQueryPrefix,allowDots:typeof M.allowDots=="undefined"?j.allowDots:!!M.allowDots,charset:C,charsetSentinel:typeof M.charsetSentinel=="boolean"?M.charsetSentinel:j.charsetSentinel,delimiter:typeof M.delimiter=="undefined"?j.delimiter:M.delimiter,encode:typeof M.encode=="boolean"?M.encode:j.encode,encoder:typeof M.encoder=="function"?M.encoder:j.encoder,encodeValuesOnly:typeof M.encodeValuesOnly=="boolean"?M.encodeValuesOnly:j.encodeValuesOnly,filter:_,format:V,formatter:J,serializeDate:typeof M.serializeDate=="function"?M.serializeDate:j.serializeDate,skipNulls:typeof M.skipNulls=="boolean"?M.skipNulls:j.skipNulls,sort:typeof M.sort=="function"?M.sort:null,strictNullHandling:typeof M.strictNullHandling=="boolean"?M.strictNullHandling:j.strictNullHandling}};h.exports=function(X,M){var C=X,V=R(M),J,_;typeof V.filter=="function"?(_=V.filter,C=_("",C)):S(V.filter)&&(_=V.filter,J=_);var Q=[];if(typeof C!="object"||C===null)return"";var Y;M&&M.arrayFormat in b?Y=M.arrayFormat:M&&"indices"in M?Y=M.indices?"indices":"repeat":Y="indices";var ce=b[Y];J||(J=Object.keys(C)),V.sort&&J.sort(V.sort);for(var ee=c(),ie=0;ie<J.length;++ie){var me=J[ie];V.skipNulls&&C[me]===null||L(Q,W(C[me],me,ce,V.strictNullHandling,V.skipNulls,V.encode?V.encoder:null,V.filter,V.sort,V.allowDots,V.serializeDate,V.format,V.formatter,V.encodeValuesOnly,V.charset,ee))}var be=Q.join(V.delimiter),he=V.addQueryPrefix===!0?"?":"";return V.charsetSentinel&&(V.charset==="iso-8859-1"?he+="utf8=%26%2310003%3B&":he+="utf8=%E2%9C%93&"),be.length>0?he+be:""}},58760:(h,I,a)=>{"use strict";var c=a(24269),v=Object.prototype.hasOwnProperty,x=Array.isArray,d=function(){for(var M=[],C=0;C<256;++C)M.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return M}(),b=function(C){for(;C.length>1;){var V=C.pop(),J=V.obj[V.prop];if(x(J)){for(var _=[],Q=0;Q<J.length;++Q)typeof J[Q]!="undefined"&&_.push(J[Q]);V.obj[V.prop]=_}}},S=function(C,V){for(var J=V&&V.plainObjects?Object.create(null):{},_=0;_<C.length;++_)typeof C[_]!="undefined"&&(J[_]=C[_]);return J},g=function M(C,V,J){if(!V)return C;if(typeof V!="object"){if(x(C))C.push(V);else if(C&&typeof C=="object")(J&&(J.plainObjects||J.allowPrototypes)||!v.call(Object.prototype,V))&&(C[V]=!0);else return[C,V];return C}if(!C||typeof C!="object")return[C].concat(V);var _=C;return x(C)&&!x(V)&&(_=S(C,J)),x(C)&&x(V)?(V.forEach(function(Q,Y){if(v.call(C,Y)){var ce=C[Y];ce&&typeof ce=="object"&&Q&&typeof Q=="object"?C[Y]=M(ce,Q,J):C.push(Q)}else C[Y]=Q}),C):Object.keys(V).reduce(function(Q,Y){var ce=V[Y];return v.call(Q,Y)?Q[Y]=M(Q[Y],ce,J):Q[Y]=ce,Q},_)},L=function(C,V){return Object.keys(V).reduce(function(J,_){return J[_]=V[_],J},C)},D=function(M,C,V){var J=M.replace(/\+/g," ");if(V==="iso-8859-1")return J.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(J)}catch(_){return J}},B=function(C,V,J,_,Q){if(C.length===0)return C;var Y=C;if(typeof C=="symbol"?Y=Symbol.prototype.toString.call(C):typeof C!="string"&&(Y=String(C)),J==="iso-8859-1")return escape(Y).replace(/%u[0-9a-f]{4}/gi,function(me){return"%26%23"+parseInt(me.slice(2),16)+"%3B"});for(var ce="",ee=0;ee<Y.length;++ee){var ie=Y.charCodeAt(ee);if(ie===45||ie===46||ie===95||ie===126||ie>=48&&ie<=57||ie>=65&&ie<=90||ie>=97&&ie<=122||Q===c.RFC1738&&(ie===40||ie===41)){ce+=Y.charAt(ee);continue}if(ie<128){ce=ce+d[ie];continue}if(ie<2048){ce=ce+(d[192|ie>>6]+d[128|ie&63]);continue}if(ie<55296||ie>=57344){ce=ce+(d[224|ie>>12]+d[128|ie>>6&63]+d[128|ie&63]);continue}ee+=1,ie=65536+((ie&1023)<<10|Y.charCodeAt(ee)&1023),ce+=d[240|ie>>18]+d[128|ie>>12&63]+d[128|ie>>6&63]+d[128|ie&63]}return ce},j=function(C){for(var V=[{obj:{o:C},prop:"o"}],J=[],_=0;_<V.length;++_)for(var Q=V[_],Y=Q.obj[Q.prop],ce=Object.keys(Y),ee=0;ee<ce.length;++ee){var ie=ce[ee],me=Y[ie];typeof me=="object"&&me!==null&&J.indexOf(me)===-1&&(V.push({obj:Y,prop:ie}),J.push(me))}return b(V),C},q=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},W=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},R=function(C,V){return[].concat(C,V)},X=function(C,V){if(x(C)){for(var J=[],_=0;_<C.length;_+=1)J.push(V(C[_]));return J}return V(C)};h.exports={arrayToObject:S,assign:L,combine:R,compact:j,decode:D,encode:B,isBuffer:W,isRegExp:q,maybeMap:X,merge:g}},13692:h=>{var I=h.exports=function(R){return new a(R)};function a(R){this.value=R}a.prototype.get=function(R){for(var X=this.value,M=0;M<R.length;M++){var C=R[M];if(!X||!W.call(X,C)){X=void 0;break}X=X[C]}return X},a.prototype.has=function(R){for(var X=this.value,M=0;M<R.length;M++){var C=R[M];if(!X||!W.call(X,C))return!1;X=X[C]}return!0},a.prototype.set=function(R,X){for(var M=this.value,C=0;C<R.length-1;C++){var V=R[C];W.call(M,V)||(M[V]={}),M=M[V]}return M[R[C]]=X,X},a.prototype.map=function(R){return c(this.value,R,!0)},a.prototype.forEach=function(R){return this.value=c(this.value,R,!1),this.value},a.prototype.reduce=function(R,X){var M=arguments.length===1,C=M?this.value:X;return this.forEach(function(V){(!this.isRoot||!M)&&(C=R.call(this,C,V))}),C},a.prototype.paths=function(){var R=[];return this.forEach(function(X){R.push(this.path)}),R},a.prototype.nodes=function(){var R=[];return this.forEach(function(X){R.push(this.node)}),R},a.prototype.clone=function(){var R=[],X=[];return function M(C){for(var V=0;V<R.length;V++)if(R[V]===C)return X[V];if(typeof C=="object"&&C!==null){var J=v(C);return R.push(C),X.push(J),q(x(C),function(_){J[_]=M(C[_])}),R.pop(),X.pop(),J}else return C}(this.value)};function c(R,X,M){var C=[],V=[],J=!0;return function _(Q){var Y=M?v(Q):Q,ce={},ee=!0,ie={node:Y,node_:Q,path:[].concat(C),parent:V[V.length-1],parents:V,key:C.slice(-1)[0],isRoot:C.length===0,level:C.length,circular:null,update:function(he,ue){ie.isRoot||(ie.parent.node[ie.key]=he),ie.node=he,ue&&(ee=!1)},delete:function(he){delete ie.parent.node[ie.key],he&&(ee=!1)},remove:function(he){j(ie.parent.node)?ie.parent.node.splice(ie.key,1):delete ie.parent.node[ie.key],he&&(ee=!1)},keys:null,before:function(he){ce.before=he},after:function(he){ce.after=he},pre:function(he){ce.pre=he},post:function(he){ce.post=he},stop:function(){J=!1},block:function(){ee=!1}};if(!J)return ie;function me(){if(typeof ie.node=="object"&&ie.node!==null){(!ie.keys||ie.node_!==ie.node)&&(ie.keys=x(ie.node)),ie.isLeaf=ie.keys.length==0;for(var he=0;he<V.length;he++)if(V[he].node_===Q){ie.circular=V[he];break}}else ie.isLeaf=!0,ie.keys=null;ie.notLeaf=!ie.isLeaf,ie.notRoot=!ie.isRoot}me();var be=X.call(ie,ie.node);return be!==void 0&&ie.update&&ie.update(be),ce.before&&ce.before.call(ie,ie.node),ee&&(typeof ie.node=="object"&&ie.node!==null&&!ie.circular&&(V.push(ie),me(),q(ie.keys,function(he,ue){C.push(he),ce.pre&&ce.pre.call(ie,ie.node[he],he);var oe=_(ie.node[he]);M&&W.call(ie.node,he)&&(ie.node[he]=oe.node),oe.isLast=ue==ie.keys.length-1,oe.isFirst=ue==0,ce.post&&ce.post.call(ie,oe),C.pop()}),V.pop()),ce.after&&ce.after.call(ie,ie.node)),ie}(R).node}function v(R){if(typeof R=="object"&&R!==null){var X;if(j(R))X=[];else if(b(R))X=new Date(R.getTime?R.getTime():R);else if(S(R))X=new RegExp(R);else if(g(R))X={message:R.message};else if(L(R))X=new Boolean(R);else if(D(R))X=new Number(R);else if(B(R))X=new String(R);else if(Object.create&&Object.getPrototypeOf)X=Object.create(Object.getPrototypeOf(R));else if(R.constructor===Object)X={};else{var M=R.constructor&&R.constructor.prototype||R.__proto__||{},C=function(){};C.prototype=M,X=new C}return q(x(R),function(V){X[V]=R[V]}),X}else return R}var x=Object.keys||function(X){var M=[];for(var C in X)M.push(C);return M};function d(R){return Object.prototype.toString.call(R)}function b(R){return d(R)==="[object Date]"}function S(R){return d(R)==="[object RegExp]"}function g(R){return d(R)==="[object Error]"}function L(R){return d(R)==="[object Boolean]"}function D(R){return d(R)==="[object Number]"}function B(R){return d(R)==="[object String]"}var j=Array.isArray||function(X){return Object.prototype.toString.call(X)==="[object Array]"},q=function(R,X){if(R.forEach)return R.forEach(X);for(var M=0;M<R.length;M++)X(R[M],M,R)};q(x(a.prototype),function(R){I[R]=function(X){var M=[].slice.call(arguments,1),C=new a(X);return C[R].apply(C,M)}});var W=Object.hasOwnProperty||function(R,X){return X in R}},56089:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},24654:()=>{}}]);
|
|
544
|
+
*/const c=o(79742),v=o(80645),x=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;I.Buffer=g,I.SlowBuffer=V,I.INSPECT_MAX_BYTES=50;const d=2147483647;I.kMaxLength=d,g.TYPED_ARRAY_SUPPORT=b(),!g.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function b(){try{const K=new Uint8Array(1),T={foo:function(){return 42}};return Object.setPrototypeOf(T,Uint8Array.prototype),Object.setPrototypeOf(K,T),K.foo()===42}catch(K){return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.byteOffset}});function S(K){if(K>d)throw new RangeError('The value "'+K+'" is invalid for option "size"');const T=new Uint8Array(K);return Object.setPrototypeOf(T,g.prototype),T}function g(K,T,O){if(typeof K=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(K)}return L(K,T,O)}g.poolSize=8192;function L(K,T,O){if(typeof K=="string")return q(K,T);if(ArrayBuffer.isView(K))return M(K);if(K==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K);if(Ie(K,ArrayBuffer)||K&&Ie(K.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ie(K,SharedArrayBuffer)||K&&Ie(K.buffer,SharedArrayBuffer)))return X(K,T,O);if(typeof K=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const le=K.valueOf&&K.valueOf();if(le!=null&&le!==K)return g.from(le,T,O);const N=R(K);if(N)return N;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof K[Symbol.toPrimitive]=="function")return g.from(K[Symbol.toPrimitive]("string"),T,O);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K)}g.from=function(K,T,O){return L(K,T,O)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function D(K){if(typeof K!="number")throw new TypeError('"size" argument must be of type number');if(K<0)throw new RangeError('The value "'+K+'" is invalid for option "size"')}function B(K,T,O){return D(K),K<=0?S(K):T!==void 0?typeof O=="string"?S(K).fill(T,O):S(K).fill(T):S(K)}g.alloc=function(K,T,O){return B(K,T,O)};function j(K){return D(K),S(K<0?0:C(K)|0)}g.allocUnsafe=function(K){return j(K)},g.allocUnsafeSlow=function(K){return j(K)};function q(K,T){if((typeof T!="string"||T==="")&&(T="utf8"),!g.isEncoding(T))throw new TypeError("Unknown encoding: "+T);const O=J(K,T)|0;let le=S(O);const N=le.write(K,T);return N!==O&&(le=le.slice(0,N)),le}function W(K){const T=K.length<0?0:C(K.length)|0,O=S(T);for(let le=0;le<T;le+=1)O[le]=K[le]&255;return O}function M(K){if(Ie(K,Uint8Array)){const T=new Uint8Array(K);return X(T.buffer,T.byteOffset,T.byteLength)}return W(K)}function X(K,T,O){if(T<0||K.byteLength<T)throw new RangeError('"offset" is outside of buffer bounds');if(K.byteLength<T+(O||0))throw new RangeError('"length" is outside of buffer bounds');let le;return T===void 0&&O===void 0?le=new Uint8Array(K):O===void 0?le=new Uint8Array(K,T):le=new Uint8Array(K,T,O),Object.setPrototypeOf(le,g.prototype),le}function R(K){if(g.isBuffer(K)){const T=C(K.length)|0,O=S(T);return O.length===0||K.copy(O,0,0,T),O}if(K.length!==void 0)return typeof K.length!="number"||$e(K.length)?S(0):W(K);if(K.type==="Buffer"&&Array.isArray(K.data))return W(K.data)}function C(K){if(K>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return K|0}function V(K){return+K!=K&&(K=0),g.alloc(+K)}g.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==g.prototype},g.compare=function(T,O){if(Ie(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),Ie(O,Uint8Array)&&(O=g.from(O,O.offset,O.byteLength)),!g.isBuffer(T)||!g.isBuffer(O))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===O)return 0;let le=T.length,N=O.length;for(let te=0,de=Math.min(le,N);te<de;++te)if(T[te]!==O[te]){le=T[te],N=O[te];break}return le<N?-1:N<le?1:0},g.isEncoding=function(T){switch(String(T).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(T,O){if(!Array.isArray(T))throw new TypeError('"list" argument must be an Array of Buffers');if(T.length===0)return g.alloc(0);let le;if(O===void 0)for(O=0,le=0;le<T.length;++le)O+=T[le].length;const N=g.allocUnsafe(O);let te=0;for(le=0;le<T.length;++le){let de=T[le];if(Ie(de,Uint8Array))te+de.length>N.length?(g.isBuffer(de)||(de=g.from(de)),de.copy(N,te)):Uint8Array.prototype.set.call(N,de,te);else if(g.isBuffer(de))de.copy(N,te);else throw new TypeError('"list" argument must be an Array of Buffers');te+=de.length}return N};function J(K,T){if(g.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||Ie(K,ArrayBuffer))return K.byteLength;if(typeof K!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof K);const O=K.length,le=arguments.length>2&&arguments[2]===!0;if(!le&&O===0)return 0;let N=!1;for(;;)switch(T){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":return Dt(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O*2;case"hex":return O>>>1;case"base64":return $(K).length;default:if(N)return le?-1:Dt(K).length;T=(""+T).toLowerCase(),N=!0}}g.byteLength=J;function _(K,T,O){let le=!1;if((T===void 0||T<0)&&(T=0),T>this.length||((O===void 0||O>this.length)&&(O=this.length),O<=0)||(O>>>=0,T>>>=0,O<=T))return"";for(K||(K="utf8");;)switch(K){case"hex":return rt(this,T,O);case"utf8":case"utf-8":return ae(this,T,O);case"ascii":return Me(this,T,O);case"latin1":case"binary":return Te(this,T,O);case"base64":return fe(this,T,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,T,O);default:if(le)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),le=!0}}g.prototype._isBuffer=!0;function Q(K,T,O){const le=K[T];K[T]=K[O],K[O]=le}g.prototype.swap16=function(){const T=this.length;if(T%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let O=0;O<T;O+=2)Q(this,O,O+1);return this},g.prototype.swap32=function(){const T=this.length;if(T%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let O=0;O<T;O+=4)Q(this,O,O+3),Q(this,O+1,O+2);return this},g.prototype.swap64=function(){const T=this.length;if(T%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let O=0;O<T;O+=8)Q(this,O,O+7),Q(this,O+1,O+6),Q(this,O+2,O+5),Q(this,O+3,O+4);return this},g.prototype.toString=function(){const T=this.length;return T===0?"":arguments.length===0?ae(this,0,T):_.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(T){if(!g.isBuffer(T))throw new TypeError("Argument must be a Buffer");return this===T?!0:g.compare(this,T)===0},g.prototype.inspect=function(){let T="";const O=I.INSPECT_MAX_BYTES;return T=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O&&(T+=" ... "),"<Buffer "+T+">"},x&&(g.prototype[x]=g.prototype.inspect),g.prototype.compare=function(T,O,le,N,te){if(Ie(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),!g.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(O===void 0&&(O=0),le===void 0&&(le=T?T.length:0),N===void 0&&(N=0),te===void 0&&(te=this.length),O<0||le>T.length||N<0||te>this.length)throw new RangeError("out of range index");if(N>=te&&O>=le)return 0;if(N>=te)return-1;if(O>=le)return 1;if(O>>>=0,le>>>=0,N>>>=0,te>>>=0,this===T)return 0;let de=te-N,oe=le-O;const pe=Math.min(de,oe),Ae=this.slice(N,te),Be=T.slice(O,le);for(let Ue=0;Ue<pe;++Ue)if(Ae[Ue]!==Be[Ue]){de=Ae[Ue],oe=Be[Ue];break}return de<oe?-1:oe<de?1:0};function Y(K,T,O,le,N){if(K.length===0)return-1;if(typeof O=="string"?(le=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,$e(O)&&(O=N?0:K.length-1),O<0&&(O=K.length+O),O>=K.length){if(N)return-1;O=K.length-1}else if(O<0)if(N)O=0;else return-1;if(typeof T=="string"&&(T=g.from(T,le)),g.isBuffer(T))return T.length===0?-1:ce(K,T,O,le,N);if(typeof T=="number")return T=T&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(K,T,O):Uint8Array.prototype.lastIndexOf.call(K,T,O):ce(K,[T],O,le,N);throw new TypeError("val must be string, number or Buffer")}function ce(K,T,O,le,N){let te=1,de=K.length,oe=T.length;if(le!==void 0&&(le=String(le).toLowerCase(),le==="ucs2"||le==="ucs-2"||le==="utf16le"||le==="utf-16le")){if(K.length<2||T.length<2)return-1;te=2,de/=2,oe/=2,O/=2}function pe(Be,Ue){return te===1?Be[Ue]:Be.readUInt16BE(Ue*te)}let Ae;if(N){let Be=-1;for(Ae=O;Ae<de;Ae++)if(pe(K,Ae)===pe(T,Be===-1?0:Ae-Be)){if(Be===-1&&(Be=Ae),Ae-Be+1===oe)return Be*te}else Be!==-1&&(Ae-=Ae-Be),Be=-1}else for(O+oe>de&&(O=de-oe),Ae=O;Ae>=0;Ae--){let Be=!0;for(let Ue=0;Ue<oe;Ue++)if(pe(K,Ae+Ue)!==pe(T,Ue)){Be=!1;break}if(Be)return Ae}return-1}g.prototype.includes=function(T,O,le){return this.indexOf(T,O,le)!==-1},g.prototype.indexOf=function(T,O,le){return Y(this,T,O,le,!0)},g.prototype.lastIndexOf=function(T,O,le){return Y(this,T,O,le,!1)};function ee(K,T,O,le){O=Number(O)||0;const N=K.length-O;le?(le=Number(le),le>N&&(le=N)):le=N;const te=T.length;le>te/2&&(le=te/2);let de;for(de=0;de<le;++de){const oe=parseInt(T.substr(de*2,2),16);if($e(oe))return de;K[O+de]=oe}return de}function ie(K,T,O,le){return Se(Dt(T,K.length-O),K,O,le)}function xe(K,T,O,le){return Se(ve(T),K,O,le)}function we(K,T,O,le){return Se($(T),K,O,le)}function he(K,T,O,le){return Se(z(T,K.length-O),K,O,le)}g.prototype.write=function(T,O,le,N){if(O===void 0)N="utf8",le=this.length,O=0;else if(le===void 0&&typeof O=="string")N=O,le=this.length,O=0;else if(isFinite(O))O=O>>>0,isFinite(le)?(le=le>>>0,N===void 0&&(N="utf8")):(N=le,le=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const te=this.length-O;if((le===void 0||le>te)&&(le=te),T.length>0&&(le<0||O<0)||O>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");let de=!1;for(;;)switch(N){case"hex":return ee(this,T,O,le);case"utf8":case"utf-8":return ie(this,T,O,le);case"ascii":case"latin1":case"binary":return xe(this,T,O,le);case"base64":return we(this,T,O,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,T,O,le);default:if(de)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),de=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(K,T,O){return T===0&&O===K.length?c.fromByteArray(K):c.fromByteArray(K.slice(T,O))}function ae(K,T,O){O=Math.min(K.length,O);const le=[];let N=T;for(;N<O;){const te=K[N];let de=null,oe=te>239?4:te>223?3:te>191?2:1;if(N+oe<=O){let pe,Ae,Be,Ue;switch(oe){case 1:te<128&&(de=te);break;case 2:pe=K[N+1],(pe&192)==128&&(Ue=(te&31)<<6|pe&63,Ue>127&&(de=Ue));break;case 3:pe=K[N+1],Ae=K[N+2],(pe&192)==128&&(Ae&192)==128&&(Ue=(te&15)<<12|(pe&63)<<6|Ae&63,Ue>2047&&(Ue<55296||Ue>57343)&&(de=Ue));break;case 4:pe=K[N+1],Ae=K[N+2],Be=K[N+3],(pe&192)==128&&(Ae&192)==128&&(Be&192)==128&&(Ue=(te&15)<<18|(pe&63)<<12|(Ae&63)<<6|Be&63,Ue>65535&&Ue<1114112&&(de=Ue))}}de===null?(de=65533,oe=1):de>65535&&(de-=65536,le.push(de>>>10&1023|55296),de=56320|de&1023),le.push(de),N+=oe}return Le(le)}const Fe=4096;function Le(K){const T=K.length;if(T<=Fe)return String.fromCharCode.apply(String,K);let O="",le=0;for(;le<T;)O+=String.fromCharCode.apply(String,K.slice(le,le+=Fe));return O}function Me(K,T,O){let le="";O=Math.min(K.length,O);for(let N=T;N<O;++N)le+=String.fromCharCode(K[N]&127);return le}function Te(K,T,O){let le="";O=Math.min(K.length,O);for(let N=T;N<O;++N)le+=String.fromCharCode(K[N]);return le}function rt(K,T,O){const le=K.length;(!T||T<0)&&(T=0),(!O||O<0||O>le)&&(O=le);let N="";for(let te=T;te<O;++te)N+=Ke[K[te]];return N}function Ze(K,T,O){const le=K.slice(T,O);let N="";for(let te=0;te<le.length-1;te+=2)N+=String.fromCharCode(le[te]+le[te+1]*256);return N}g.prototype.slice=function(T,O){const le=this.length;T=~~T,O=O===void 0?le:~~O,T<0?(T+=le,T<0&&(T=0)):T>le&&(T=le),O<0?(O+=le,O<0&&(O=0)):O>le&&(O=le),O<T&&(O=T);const N=this.subarray(T,O);return Object.setPrototypeOf(N,g.prototype),N};function Xe(K,T,O){if(K%1!=0||K<0)throw new RangeError("offset is not uint");if(K+T>O)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(T,O,le){T=T>>>0,O=O>>>0,le||Xe(T,O,this.length);let N=this[T],te=1,de=0;for(;++de<O&&(te*=256);)N+=this[T+de]*te;return N},g.prototype.readUintBE=g.prototype.readUIntBE=function(T,O,le){T=T>>>0,O=O>>>0,le||Xe(T,O,this.length);let N=this[T+--O],te=1;for(;O>0&&(te*=256);)N+=this[T+--O]*te;return N},g.prototype.readUint8=g.prototype.readUInt8=function(T,O){return T=T>>>0,O||Xe(T,1,this.length),this[T]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(T,O){return T=T>>>0,O||Xe(T,2,this.length),this[T]|this[T+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(T,O){return T=T>>>0,O||Xe(T,2,this.length),this[T]<<8|this[T+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+this[T+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),this[T]*16777216+(this[T+1]<<16|this[T+2]<<8|this[T+3])},g.prototype.readBigUInt64LE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&jt(T,this.length-8);const N=O+this[++T]*xr(2,8)+this[++T]*xr(2,16)+this[++T]*xr(2,24),te=this[++T]+this[++T]*xr(2,8)+this[++T]*xr(2,16)+le*xr(2,24);return BigInt(N)+(BigInt(te)<<BigInt(32))}),g.prototype.readBigUInt64BE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&jt(T,this.length-8);const N=O*xr(2,24)+this[++T]*xr(2,16)+this[++T]*xr(2,8)+this[++T],te=this[++T]*xr(2,24)+this[++T]*xr(2,16)+this[++T]*xr(2,8)+le;return(BigInt(N)<<BigInt(32))+BigInt(te)}),g.prototype.readIntLE=function(T,O,le){T=T>>>0,O=O>>>0,le||Xe(T,O,this.length);let N=this[T],te=1,de=0;for(;++de<O&&(te*=256);)N+=this[T+de]*te;return te*=128,N>=te&&(N-=Math.pow(2,8*O)),N},g.prototype.readIntBE=function(T,O,le){T=T>>>0,O=O>>>0,le||Xe(T,O,this.length);let N=O,te=1,de=this[T+--N];for(;N>0&&(te*=256);)de+=this[T+--N]*te;return te*=128,de>=te&&(de-=Math.pow(2,8*O)),de},g.prototype.readInt8=function(T,O){return T=T>>>0,O||Xe(T,1,this.length),this[T]&128?(255-this[T]+1)*-1:this[T]},g.prototype.readInt16LE=function(T,O){T=T>>>0,O||Xe(T,2,this.length);const le=this[T]|this[T+1]<<8;return le&32768?le|4294901760:le},g.prototype.readInt16BE=function(T,O){T=T>>>0,O||Xe(T,2,this.length);const le=this[T+1]|this[T]<<8;return le&32768?le|4294901760:le},g.prototype.readInt32LE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},g.prototype.readInt32BE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},g.prototype.readBigInt64LE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&jt(T,this.length-8);const N=this[T+4]+this[T+5]*xr(2,8)+this[T+6]*xr(2,16)+(le<<24);return(BigInt(N)<<BigInt(32))+BigInt(O+this[++T]*xr(2,8)+this[++T]*xr(2,16)+this[++T]*xr(2,24))}),g.prototype.readBigInt64BE=P(function(T){T=T>>>0,Wt(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&jt(T,this.length-8);const N=(O<<24)+this[++T]*xr(2,16)+this[++T]*xr(2,8)+this[++T];return(BigInt(N)<<BigInt(32))+BigInt(this[++T]*xr(2,24)+this[++T]*xr(2,16)+this[++T]*xr(2,8)+le)}),g.prototype.readFloatLE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),v.read(this,T,!0,23,4)},g.prototype.readFloatBE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),v.read(this,T,!1,23,4)},g.prototype.readDoubleLE=function(T,O){return T=T>>>0,O||Xe(T,8,this.length),v.read(this,T,!0,52,8)},g.prototype.readDoubleBE=function(T,O){return T=T>>>0,O||Xe(T,8,this.length),v.read(this,T,!1,52,8)};function ft(K,T,O,le,N,te){if(!g.isBuffer(K))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>N||T<te)throw new RangeError('"value" argument is out of bounds');if(O+le>K.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(T,O,le,N){if(T=+T,O=O>>>0,le=le>>>0,!N){const oe=Math.pow(2,8*le)-1;ft(this,T,O,le,oe,0)}let te=1,de=0;for(this[O]=T&255;++de<le&&(te*=256);)this[O+de]=T/te&255;return O+le},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(T,O,le,N){if(T=+T,O=O>>>0,le=le>>>0,!N){const oe=Math.pow(2,8*le)-1;ft(this,T,O,le,oe,0)}let te=le-1,de=1;for(this[O+te]=T&255;--te>=0&&(de*=256);)this[O+te]=T/de&255;return O+le},g.prototype.writeUint8=g.prototype.writeUInt8=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,1,255,0),this[O]=T&255,O+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,2,65535,0),this[O]=T&255,this[O+1]=T>>>8,O+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,2,65535,0),this[O]=T>>>8,this[O+1]=T&255,O+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,4,4294967295,0),this[O+3]=T>>>24,this[O+2]=T>>>16,this[O+1]=T>>>8,this[O]=T&255,O+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,4,4294967295,0),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4};function ht(K,T,O,le,N){Ct(T,le,N,K,O,7);let te=Number(T&BigInt(4294967295));K[O++]=te,te=te>>8,K[O++]=te,te=te>>8,K[O++]=te,te=te>>8,K[O++]=te;let de=Number(T>>BigInt(32)&BigInt(4294967295));return K[O++]=de,de=de>>8,K[O++]=de,de=de>>8,K[O++]=de,de=de>>8,K[O++]=de,O}function bt(K,T,O,le,N){Ct(T,le,N,K,O,7);let te=Number(T&BigInt(4294967295));K[O+7]=te,te=te>>8,K[O+6]=te,te=te>>8,K[O+5]=te,te=te>>8,K[O+4]=te;let de=Number(T>>BigInt(32)&BigInt(4294967295));return K[O+3]=de,de=de>>8,K[O+2]=de,de=de>>8,K[O+1]=de,de=de>>8,K[O]=de,O+8}g.prototype.writeBigUInt64LE=P(function(T,O=0){return ht(this,T,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=P(function(T,O=0){return bt(this,T,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(T,O,le,N){if(T=+T,O=O>>>0,!N){const pe=Math.pow(2,8*le-1);ft(this,T,O,le,pe-1,-pe)}let te=0,de=1,oe=0;for(this[O]=T&255;++te<le&&(de*=256);)T<0&&oe===0&&this[O+te-1]!==0&&(oe=1),this[O+te]=(T/de>>0)-oe&255;return O+le},g.prototype.writeIntBE=function(T,O,le,N){if(T=+T,O=O>>>0,!N){const pe=Math.pow(2,8*le-1);ft(this,T,O,le,pe-1,-pe)}let te=le-1,de=1,oe=0;for(this[O+te]=T&255;--te>=0&&(de*=256);)T<0&&oe===0&&this[O+te+1]!==0&&(oe=1),this[O+te]=(T/de>>0)-oe&255;return O+le},g.prototype.writeInt8=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,1,127,-128),T<0&&(T=255+T+1),this[O]=T&255,O+1},g.prototype.writeInt16LE=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,2,32767,-32768),this[O]=T&255,this[O+1]=T>>>8,O+2},g.prototype.writeInt16BE=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,2,32767,-32768),this[O]=T>>>8,this[O+1]=T&255,O+2},g.prototype.writeInt32LE=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,4,2147483647,-2147483648),this[O]=T&255,this[O+1]=T>>>8,this[O+2]=T>>>16,this[O+3]=T>>>24,O+4},g.prototype.writeInt32BE=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4},g.prototype.writeBigInt64LE=P(function(T,O=0){return ht(this,T,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=P(function(T,O=0){return bt(this,T,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function nt(K,T,O,le,N,te){if(O+le>K.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function ut(K,T,O,le,N){return T=+T,O=O>>>0,N||nt(K,T,O,4,34028234663852886e22,-34028234663852886e22),v.write(K,T,O,le,23,4),O+4}g.prototype.writeFloatLE=function(T,O,le){return ut(this,T,O,!0,le)},g.prototype.writeFloatBE=function(T,O,le){return ut(this,T,O,!1,le)};function yt(K,T,O,le,N){return T=+T,O=O>>>0,N||nt(K,T,O,8,17976931348623157e292,-17976931348623157e292),v.write(K,T,O,le,52,8),O+8}g.prototype.writeDoubleLE=function(T,O,le){return yt(this,T,O,!0,le)},g.prototype.writeDoubleBE=function(T,O,le){return yt(this,T,O,!1,le)},g.prototype.copy=function(T,O,le,N){if(!g.isBuffer(T))throw new TypeError("argument should be a Buffer");if(le||(le=0),!N&&N!==0&&(N=this.length),O>=T.length&&(O=T.length),O||(O=0),N>0&&N<le&&(N=le),N===le||T.length===0||this.length===0)return 0;if(O<0)throw new RangeError("targetStart out of bounds");if(le<0||le>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),T.length-O<N-le&&(N=T.length-O+le);const te=N-le;return this===T&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(O,le,N):Uint8Array.prototype.set.call(T,this.subarray(le,N),O),te},g.prototype.fill=function(T,O,le,N){if(typeof T=="string"){if(typeof O=="string"?(N=O,O=0,le=this.length):typeof le=="string"&&(N=le,le=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!g.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(T.length===1){const de=T.charCodeAt(0);(N==="utf8"&&de<128||N==="latin1")&&(T=de)}}else typeof T=="number"?T=T&255:typeof T=="boolean"&&(T=Number(T));if(O<0||this.length<O||this.length<le)throw new RangeError("Out of range index");if(le<=O)return this;O=O>>>0,le=le===void 0?this.length:le>>>0,T||(T=0);let te;if(typeof T=="number")for(te=O;te<le;++te)this[te]=T;else{const de=g.isBuffer(T)?T:g.from(T,N),oe=de.length;if(oe===0)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(te=0;te<le-O;++te)this[te+O]=de[te%oe]}return this};const mt={};function pt(K,T,O){mt[K]=class extends O{constructor(){super();Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${K}]`,this.stack,delete this.name}get code(){return K}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${K}]: ${this.message}`}}}pt("ERR_BUFFER_OUT_OF_BOUNDS",function(K){return K?`${K} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),pt("ERR_INVALID_ARG_TYPE",function(K,T){return`The "${K}" argument must be of type number. Received type ${typeof T}`},TypeError),pt("ERR_OUT_OF_RANGE",function(K,T,O){let le=`The value of "${K}" is out of range.`,N=O;return Number.isInteger(O)&&Math.abs(O)>xr(2,32)?N=Mt(String(O)):typeof O=="bigint"&&(N=String(O),(O>xr(BigInt(2),BigInt(32))||O<-xr(BigInt(2),BigInt(32)))&&(N=Mt(N)),N+="n"),le+=` It must be ${T}. Received ${N}`,le},RangeError);function Mt(K){let T="",O=K.length;const le=K[0]==="-"?1:0;for(;O>=le+4;O-=3)T=`_${K.slice(O-3,O)}${T}`;return`${K.slice(0,O)}${T}`}function kt(K,T,O){Wt(T,"offset"),(K[T]===void 0||K[T+O]===void 0)&&jt(T,K.length-(O+1))}function Ct(K,T,O,le,N,te){if(K>O||K<T){const de=typeof T=="bigint"?"n":"";let oe;throw te>3?T===0||T===BigInt(0)?oe=`>= 0${de} and < 2${de} ** ${(te+1)*8}${de}`:oe=`>= -(2${de} ** ${(te+1)*8-1}${de}) and < 2 ** ${(te+1)*8-1}${de}`:oe=`>= ${T}${de} and <= ${O}${de}`,new mt.ERR_OUT_OF_RANGE("value",oe,K)}kt(le,N,te)}function Wt(K,T){if(typeof K!="number")throw new mt.ERR_INVALID_ARG_TYPE(T,"number",K)}function jt(K,T,O){throw Math.floor(K)!==K?(Wt(K,O),new mt.ERR_OUT_OF_RANGE(O||"offset","an integer",K)):T<0?new mt.ERR_BUFFER_OUT_OF_BOUNDS:new mt.ERR_OUT_OF_RANGE(O||"offset",`>= ${O?1:0} and <= ${T}`,K)}const Vt=/[^+/0-9A-Za-z-_]/g;function St(K){if(K=K.split("=")[0],K=K.trim().replace(Vt,""),K.length<2)return"";for(;K.length%4!=0;)K=K+"=";return K}function Dt(K,T){T=T||1/0;let O;const le=K.length;let N=null;const te=[];for(let de=0;de<le;++de){if(O=K.charCodeAt(de),O>55295&&O<57344){if(!N){if(O>56319){(T-=3)>-1&&te.push(239,191,189);continue}else if(de+1===le){(T-=3)>-1&&te.push(239,191,189);continue}N=O;continue}if(O<56320){(T-=3)>-1&&te.push(239,191,189),N=O;continue}O=(N-55296<<10|O-56320)+65536}else N&&(T-=3)>-1&&te.push(239,191,189);if(N=null,O<128){if((T-=1)<0)break;te.push(O)}else if(O<2048){if((T-=2)<0)break;te.push(O>>6|192,O&63|128)}else if(O<65536){if((T-=3)<0)break;te.push(O>>12|224,O>>6&63|128,O&63|128)}else if(O<1114112){if((T-=4)<0)break;te.push(O>>18|240,O>>12&63|128,O>>6&63|128,O&63|128)}else throw new Error("Invalid code point")}return te}function ve(K){const T=[];for(let O=0;O<K.length;++O)T.push(K.charCodeAt(O)&255);return T}function z(K,T){let O,le,N;const te=[];for(let de=0;de<K.length&&!((T-=2)<0);++de)O=K.charCodeAt(de),le=O>>8,N=O%256,te.push(N),te.push(le);return te}function $(K){return c.toByteArray(St(K))}function Se(K,T,O,le){let N;for(N=0;N<le&&!(N+O>=T.length||N>=K.length);++N)T[N+O]=K[N];return N}function Ie(K,T){return K instanceof T||K!=null&&K.constructor!=null&&K.constructor.name!=null&&K.constructor.name===T.name}function $e(K){return K!==K}const Ke=function(){const K="0123456789abcdef",T=new Array(256);for(let O=0;O<16;++O){const le=O*16;for(let N=0;N<16;++N)T[le+N]=K[O]+K[N]}return T}();function P(K){return typeof BigInt=="undefined"?Re:K}function Re(){throw new Error("BigInt not supported")}},24269:h=>{"use strict";var I=String.prototype.replace,o=/%20/g,c={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:c.RFC3986,formatters:{RFC1738:function(v){return I.call(v,o,"+")},RFC3986:function(v){return String(v)}},RFC1738:c.RFC1738,RFC3986:c.RFC3986}},92495:(h,I,o)=>{"use strict";var c=o(57347),v=o(73777),x=o(24269);h.exports={formats:x,parse:v,stringify:c}},73777:(h,I,o)=>{"use strict";var c=o(58760),v=Object.prototype.hasOwnProperty,x=Array.isArray,d={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:c.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},b=function(W){return W.replace(/&#(\d+);/g,function(M,X){return String.fromCharCode(parseInt(X,10))})},S=function(W,M){return W&&typeof W=="string"&&M.comma&&W.indexOf(",")>-1?W.split(","):W},g="utf8=%26%2310003%3B",L="utf8=%E2%9C%93",D=function(M,X){var R={},C=X.ignoreQueryPrefix?M.replace(/^\?/,""):M,V=X.parameterLimit===1/0?void 0:X.parameterLimit,J=C.split(X.delimiter,V),_=-1,Q,Y=X.charset;if(X.charsetSentinel)for(Q=0;Q<J.length;++Q)J[Q].indexOf("utf8=")===0&&(J[Q]===L?Y="utf-8":J[Q]===g&&(Y="iso-8859-1"),_=Q,Q=J.length);for(Q=0;Q<J.length;++Q)if(Q!==_){var ce=J[Q],ee=ce.indexOf("]="),ie=ee===-1?ce.indexOf("="):ee+1,xe,we;ie===-1?(xe=X.decoder(ce,d.decoder,Y,"key"),we=X.strictNullHandling?null:""):(xe=X.decoder(ce.slice(0,ie),d.decoder,Y,"key"),we=c.maybeMap(S(ce.slice(ie+1),X),function(he){return X.decoder(he,d.decoder,Y,"value")})),we&&X.interpretNumericEntities&&Y==="iso-8859-1"&&(we=b(we)),ce.indexOf("[]=")>-1&&(we=x(we)?[we]:we),v.call(R,xe)?R[xe]=c.combine(R[xe],we):R[xe]=we}return R},B=function(W,M,X,R){for(var C=R?M:S(M,X),V=W.length-1;V>=0;--V){var J,_=W[V];if(_==="[]"&&X.parseArrays)J=[].concat(C);else{J=X.plainObjects?Object.create(null):{};var Q=_.charAt(0)==="["&&_.charAt(_.length-1)==="]"?_.slice(1,-1):_,Y=parseInt(Q,10);!X.parseArrays&&Q===""?J={0:C}:!isNaN(Y)&&_!==Q&&String(Y)===Q&&Y>=0&&X.parseArrays&&Y<=X.arrayLimit?(J=[],J[Y]=C):J[Q]=C}C=J}return C},j=function(M,X,R,C){if(!!M){var V=R.allowDots?M.replace(/\.([^.[]+)/g,"[$1]"):M,J=/(\[[^[\]]*])/,_=/(\[[^[\]]*])/g,Q=R.depth>0&&J.exec(V),Y=Q?V.slice(0,Q.index):V,ce=[];if(Y){if(!R.plainObjects&&v.call(Object.prototype,Y)&&!R.allowPrototypes)return;ce.push(Y)}for(var ee=0;R.depth>0&&(Q=_.exec(V))!==null&&ee<R.depth;){if(ee+=1,!R.plainObjects&&v.call(Object.prototype,Q[1].slice(1,-1))&&!R.allowPrototypes)return;ce.push(Q[1])}return Q&&ce.push("["+V.slice(Q.index)+"]"),B(ce,X,R,C)}},q=function(M){if(!M)return d;if(M.decoder!==null&&M.decoder!==void 0&&typeof M.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof M.charset!="undefined"&&M.charset!=="utf-8"&&M.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var X=typeof M.charset=="undefined"?d.charset:M.charset;return{allowDots:typeof M.allowDots=="undefined"?d.allowDots:!!M.allowDots,allowPrototypes:typeof M.allowPrototypes=="boolean"?M.allowPrototypes:d.allowPrototypes,allowSparse:typeof M.allowSparse=="boolean"?M.allowSparse:d.allowSparse,arrayLimit:typeof M.arrayLimit=="number"?M.arrayLimit:d.arrayLimit,charset:X,charsetSentinel:typeof M.charsetSentinel=="boolean"?M.charsetSentinel:d.charsetSentinel,comma:typeof M.comma=="boolean"?M.comma:d.comma,decoder:typeof M.decoder=="function"?M.decoder:d.decoder,delimiter:typeof M.delimiter=="string"||c.isRegExp(M.delimiter)?M.delimiter:d.delimiter,depth:typeof M.depth=="number"||M.depth===!1?+M.depth:d.depth,ignoreQueryPrefix:M.ignoreQueryPrefix===!0,interpretNumericEntities:typeof M.interpretNumericEntities=="boolean"?M.interpretNumericEntities:d.interpretNumericEntities,parameterLimit:typeof M.parameterLimit=="number"?M.parameterLimit:d.parameterLimit,parseArrays:M.parseArrays!==!1,plainObjects:typeof M.plainObjects=="boolean"?M.plainObjects:d.plainObjects,strictNullHandling:typeof M.strictNullHandling=="boolean"?M.strictNullHandling:d.strictNullHandling}};h.exports=function(W,M){var X=q(M);if(W===""||W===null||typeof W=="undefined")return X.plainObjects?Object.create(null):{};for(var R=typeof W=="string"?D(W,X):W,C=X.plainObjects?Object.create(null):{},V=Object.keys(R),J=0;J<V.length;++J){var _=V[J],Q=j(_,R[_],X,typeof W=="string");C=c.merge(C,Q,X)}return X.allowSparse===!0?C:c.compact(C)}},57347:(h,I,o)=>{"use strict";var c=o(37478),v=o(58760),x=o(24269),d=Object.prototype.hasOwnProperty,b={brackets:function(R){return R+"[]"},comma:"comma",indices:function(R,C){return R+"["+C+"]"},repeat:function(R){return R}},S=Array.isArray,g=Array.prototype.push,L=function(X,R){g.apply(X,S(R)?R:[R])},D=Date.prototype.toISOString,B=x.default,j={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:v.encode,encodeValuesOnly:!1,format:B,formatter:x.formatters[B],indices:!1,serializeDate:function(R){return D.call(R)},skipNulls:!1,strictNullHandling:!1},q=function(R){return typeof R=="string"||typeof R=="number"||typeof R=="boolean"||typeof R=="symbol"||typeof R=="bigint"},W=function X(R,C,V,J,_,Q,Y,ce,ee,ie,xe,we,he,fe,ae){var Fe=R;if(ae.has(R))throw new RangeError("Cyclic object value");if(typeof Y=="function"?Fe=Y(C,Fe):Fe instanceof Date?Fe=ie(Fe):V==="comma"&&S(Fe)&&(Fe=v.maybeMap(Fe,function(nt){return nt instanceof Date?ie(nt):nt})),Fe===null){if(J)return Q&&!he?Q(C,j.encoder,fe,"key",xe):C;Fe=""}if(q(Fe)||v.isBuffer(Fe)){if(Q){var Le=he?C:Q(C,j.encoder,fe,"key",xe);return[we(Le)+"="+we(Q(Fe,j.encoder,fe,"value",xe))]}return[we(C)+"="+we(String(Fe))]}var Me=[];if(typeof Fe=="undefined")return Me;var Te;if(V==="comma"&&S(Fe))Te=[{value:Fe.length>0?Fe.join(",")||null:void 0}];else if(S(Y))Te=Y;else{var rt=Object.keys(Fe);Te=ce?rt.sort(ce):rt}for(var Ze=0;Ze<Te.length;++Ze){var Xe=Te[Ze],ft=typeof Xe=="object"&&Xe.value!==void 0?Xe.value:Fe[Xe];if(!(_&&ft===null)){var ht=S(Fe)?typeof V=="function"?V(C,Xe):C:C+(ee?"."+Xe:"["+Xe+"]");ae.set(R,!0);var bt=c();L(Me,X(ft,ht,V,J,_,Q,Y,ce,ee,ie,xe,we,he,fe,bt))}}return Me},M=function(R){if(!R)return j;if(R.encoder!==null&&R.encoder!==void 0&&typeof R.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=R.charset||j.charset;if(typeof R.charset!="undefined"&&R.charset!=="utf-8"&&R.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var V=x.default;if(typeof R.format!="undefined"){if(!d.call(x.formatters,R.format))throw new TypeError("Unknown format option provided.");V=R.format}var J=x.formatters[V],_=j.filter;return(typeof R.filter=="function"||S(R.filter))&&(_=R.filter),{addQueryPrefix:typeof R.addQueryPrefix=="boolean"?R.addQueryPrefix:j.addQueryPrefix,allowDots:typeof R.allowDots=="undefined"?j.allowDots:!!R.allowDots,charset:C,charsetSentinel:typeof R.charsetSentinel=="boolean"?R.charsetSentinel:j.charsetSentinel,delimiter:typeof R.delimiter=="undefined"?j.delimiter:R.delimiter,encode:typeof R.encode=="boolean"?R.encode:j.encode,encoder:typeof R.encoder=="function"?R.encoder:j.encoder,encodeValuesOnly:typeof R.encodeValuesOnly=="boolean"?R.encodeValuesOnly:j.encodeValuesOnly,filter:_,format:V,formatter:J,serializeDate:typeof R.serializeDate=="function"?R.serializeDate:j.serializeDate,skipNulls:typeof R.skipNulls=="boolean"?R.skipNulls:j.skipNulls,sort:typeof R.sort=="function"?R.sort:null,strictNullHandling:typeof R.strictNullHandling=="boolean"?R.strictNullHandling:j.strictNullHandling}};h.exports=function(X,R){var C=X,V=M(R),J,_;typeof V.filter=="function"?(_=V.filter,C=_("",C)):S(V.filter)&&(_=V.filter,J=_);var Q=[];if(typeof C!="object"||C===null)return"";var Y;R&&R.arrayFormat in b?Y=R.arrayFormat:R&&"indices"in R?Y=R.indices?"indices":"repeat":Y="indices";var ce=b[Y];J||(J=Object.keys(C)),V.sort&&J.sort(V.sort);for(var ee=c(),ie=0;ie<J.length;++ie){var xe=J[ie];V.skipNulls&&C[xe]===null||L(Q,W(C[xe],xe,ce,V.strictNullHandling,V.skipNulls,V.encode?V.encoder:null,V.filter,V.sort,V.allowDots,V.serializeDate,V.format,V.formatter,V.encodeValuesOnly,V.charset,ee))}var we=Q.join(V.delimiter),he=V.addQueryPrefix===!0?"?":"";return V.charsetSentinel&&(V.charset==="iso-8859-1"?he+="utf8=%26%2310003%3B&":he+="utf8=%E2%9C%93&"),we.length>0?he+we:""}},58760:(h,I,o)=>{"use strict";var c=o(24269),v=Object.prototype.hasOwnProperty,x=Array.isArray,d=function(){for(var R=[],C=0;C<256;++C)R.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return R}(),b=function(C){for(;C.length>1;){var V=C.pop(),J=V.obj[V.prop];if(x(J)){for(var _=[],Q=0;Q<J.length;++Q)typeof J[Q]!="undefined"&&_.push(J[Q]);V.obj[V.prop]=_}}},S=function(C,V){for(var J=V&&V.plainObjects?Object.create(null):{},_=0;_<C.length;++_)typeof C[_]!="undefined"&&(J[_]=C[_]);return J},g=function R(C,V,J){if(!V)return C;if(typeof V!="object"){if(x(C))C.push(V);else if(C&&typeof C=="object")(J&&(J.plainObjects||J.allowPrototypes)||!v.call(Object.prototype,V))&&(C[V]=!0);else return[C,V];return C}if(!C||typeof C!="object")return[C].concat(V);var _=C;return x(C)&&!x(V)&&(_=S(C,J)),x(C)&&x(V)?(V.forEach(function(Q,Y){if(v.call(C,Y)){var ce=C[Y];ce&&typeof ce=="object"&&Q&&typeof Q=="object"?C[Y]=R(ce,Q,J):C.push(Q)}else C[Y]=Q}),C):Object.keys(V).reduce(function(Q,Y){var ce=V[Y];return v.call(Q,Y)?Q[Y]=R(Q[Y],ce,J):Q[Y]=ce,Q},_)},L=function(C,V){return Object.keys(V).reduce(function(J,_){return J[_]=V[_],J},C)},D=function(R,C,V){var J=R.replace(/\+/g," ");if(V==="iso-8859-1")return J.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(J)}catch(_){return J}},B=function(C,V,J,_,Q){if(C.length===0)return C;var Y=C;if(typeof C=="symbol"?Y=Symbol.prototype.toString.call(C):typeof C!="string"&&(Y=String(C)),J==="iso-8859-1")return escape(Y).replace(/%u[0-9a-f]{4}/gi,function(xe){return"%26%23"+parseInt(xe.slice(2),16)+"%3B"});for(var ce="",ee=0;ee<Y.length;++ee){var ie=Y.charCodeAt(ee);if(ie===45||ie===46||ie===95||ie===126||ie>=48&&ie<=57||ie>=65&&ie<=90||ie>=97&&ie<=122||Q===c.RFC1738&&(ie===40||ie===41)){ce+=Y.charAt(ee);continue}if(ie<128){ce=ce+d[ie];continue}if(ie<2048){ce=ce+(d[192|ie>>6]+d[128|ie&63]);continue}if(ie<55296||ie>=57344){ce=ce+(d[224|ie>>12]+d[128|ie>>6&63]+d[128|ie&63]);continue}ee+=1,ie=65536+((ie&1023)<<10|Y.charCodeAt(ee)&1023),ce+=d[240|ie>>18]+d[128|ie>>12&63]+d[128|ie>>6&63]+d[128|ie&63]}return ce},j=function(C){for(var V=[{obj:{o:C},prop:"o"}],J=[],_=0;_<V.length;++_)for(var Q=V[_],Y=Q.obj[Q.prop],ce=Object.keys(Y),ee=0;ee<ce.length;++ee){var ie=ce[ee],xe=Y[ie];typeof xe=="object"&&xe!==null&&J.indexOf(xe)===-1&&(V.push({obj:Y,prop:ie}),J.push(xe))}return b(V),C},q=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},W=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},M=function(C,V){return[].concat(C,V)},X=function(C,V){if(x(C)){for(var J=[],_=0;_<C.length;_+=1)J.push(V(C[_]));return J}return V(C)};h.exports={arrayToObject:S,assign:L,combine:M,compact:j,decode:D,encode:B,isBuffer:W,isRegExp:q,maybeMap:X,merge:g}},13692:h=>{var I=h.exports=function(M){return new o(M)};function o(M){this.value=M}o.prototype.get=function(M){for(var X=this.value,R=0;R<M.length;R++){var C=M[R];if(!X||!W.call(X,C)){X=void 0;break}X=X[C]}return X},o.prototype.has=function(M){for(var X=this.value,R=0;R<M.length;R++){var C=M[R];if(!X||!W.call(X,C))return!1;X=X[C]}return!0},o.prototype.set=function(M,X){for(var R=this.value,C=0;C<M.length-1;C++){var V=M[C];W.call(R,V)||(R[V]={}),R=R[V]}return R[M[C]]=X,X},o.prototype.map=function(M){return c(this.value,M,!0)},o.prototype.forEach=function(M){return this.value=c(this.value,M,!1),this.value},o.prototype.reduce=function(M,X){var R=arguments.length===1,C=R?this.value:X;return this.forEach(function(V){(!this.isRoot||!R)&&(C=M.call(this,C,V))}),C},o.prototype.paths=function(){var M=[];return this.forEach(function(X){M.push(this.path)}),M},o.prototype.nodes=function(){var M=[];return this.forEach(function(X){M.push(this.node)}),M},o.prototype.clone=function(){var M=[],X=[];return function R(C){for(var V=0;V<M.length;V++)if(M[V]===C)return X[V];if(typeof C=="object"&&C!==null){var J=v(C);return M.push(C),X.push(J),q(x(C),function(_){J[_]=R(C[_])}),M.pop(),X.pop(),J}else return C}(this.value)};function c(M,X,R){var C=[],V=[],J=!0;return function _(Q){var Y=R?v(Q):Q,ce={},ee=!0,ie={node:Y,node_:Q,path:[].concat(C),parent:V[V.length-1],parents:V,key:C.slice(-1)[0],isRoot:C.length===0,level:C.length,circular:null,update:function(he,fe){ie.isRoot||(ie.parent.node[ie.key]=he),ie.node=he,fe&&(ee=!1)},delete:function(he){delete ie.parent.node[ie.key],he&&(ee=!1)},remove:function(he){j(ie.parent.node)?ie.parent.node.splice(ie.key,1):delete ie.parent.node[ie.key],he&&(ee=!1)},keys:null,before:function(he){ce.before=he},after:function(he){ce.after=he},pre:function(he){ce.pre=he},post:function(he){ce.post=he},stop:function(){J=!1},block:function(){ee=!1}};if(!J)return ie;function xe(){if(typeof ie.node=="object"&&ie.node!==null){(!ie.keys||ie.node_!==ie.node)&&(ie.keys=x(ie.node)),ie.isLeaf=ie.keys.length==0;for(var he=0;he<V.length;he++)if(V[he].node_===Q){ie.circular=V[he];break}}else ie.isLeaf=!0,ie.keys=null;ie.notLeaf=!ie.isLeaf,ie.notRoot=!ie.isRoot}xe();var we=X.call(ie,ie.node);return we!==void 0&&ie.update&&ie.update(we),ce.before&&ce.before.call(ie,ie.node),ee&&(typeof ie.node=="object"&&ie.node!==null&&!ie.circular&&(V.push(ie),xe(),q(ie.keys,function(he,fe){C.push(he),ce.pre&&ce.pre.call(ie,ie.node[he],he);var ae=_(ie.node[he]);R&&W.call(ie.node,he)&&(ie.node[he]=ae.node),ae.isLast=fe==ie.keys.length-1,ae.isFirst=fe==0,ce.post&&ce.post.call(ie,ae),C.pop()}),V.pop()),ce.after&&ce.after.call(ie,ie.node)),ie}(M).node}function v(M){if(typeof M=="object"&&M!==null){var X;if(j(M))X=[];else if(b(M))X=new Date(M.getTime?M.getTime():M);else if(S(M))X=new RegExp(M);else if(g(M))X={message:M.message};else if(L(M))X=new Boolean(M);else if(D(M))X=new Number(M);else if(B(M))X=new String(M);else if(Object.create&&Object.getPrototypeOf)X=Object.create(Object.getPrototypeOf(M));else if(M.constructor===Object)X={};else{var R=M.constructor&&M.constructor.prototype||M.__proto__||{},C=function(){};C.prototype=R,X=new C}return q(x(M),function(V){X[V]=M[V]}),X}else return M}var x=Object.keys||function(X){var R=[];for(var C in X)R.push(C);return R};function d(M){return Object.prototype.toString.call(M)}function b(M){return d(M)==="[object Date]"}function S(M){return d(M)==="[object RegExp]"}function g(M){return d(M)==="[object Error]"}function L(M){return d(M)==="[object Boolean]"}function D(M){return d(M)==="[object Number]"}function B(M){return d(M)==="[object String]"}var j=Array.isArray||function(X){return Object.prototype.toString.call(X)==="[object Array]"},q=function(M,X){if(M.forEach)return M.forEach(X);for(var R=0;R<M.length;R++)X(M[R],R,M)};q(x(o.prototype),function(M){I[M]=function(X){var R=[].slice.call(arguments,1),C=new o(X);return C[M].apply(C,R)}});var W=Object.hasOwnProperty||function(M,X){return X in M}},56089:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},24654:()=>{}}]);
|