From f54da51abbc013784b8e7747eb4f1f2c70ac8d81 Mon Sep 17 00:00:00 2001 From: Chronostasys Date: Wed, 13 Nov 2024 06:10:23 +0000 Subject: [PATCH] deploy: 07a93fb061584171e8b9dd9c69f1468ab3ddc45b --- assets/cssMode-3f2eed6f.js | 4 - assets/cssMode-d72d4421.js | 9 + ...r2-f59b9bf4.js => freemarker2-f9103699.js} | 11 +- assets/handlebars-17060dc1.js | 6 + assets/handlebars-1e178fc8.js | 1 - assets/html-36fdb4fb.js | 6 + assets/html-aae5b404.js | 1 - assets/htmlMode-14b6b722.js | 9 + assets/htmlMode-8ac43aa5.js | 4 - assets/index-217cde21.js | 61 + assets/index-26445b65.js | 555 + assets/index-713b12db.js | 555 - assets/index-a62fcf84.js | 154 + assets/index-a97cc803.js | 193 - .../{index-98f94ad6.js => index-fbc129af.js} | 315 +- assets/javascript-114f66ab.js | 6 + assets/javascript-242ba704.js | 1 - assets/jsonMode-74a5d41f.js | 11 + assets/jsonMode-9a36e5c0.js | 6 - assets/liquid-77b174a1.js | 6 + assets/liquid-e4691b92.js | 1 - assets/python-2b8d6e25.js | 6 + assets/python-b56a764e.js | 1 - assets/razor-09fc2592.js | 6 + assets/razor-866ae5c3.js | 1 - assets/tsMode-2e4e2e61.js | 16 + assets/tsMode-364f8d6a.js | 11 - assets/typescript-049267fb.js | 1 - assets/typescript-1e7f5d21.js | 6 + assets/worker-2a8dabc3.js | 2 + assets/xml-4e4264cc.js | 1 - assets/xml-69d21c44.js | 6 + assets/yaml-0305093e.js | 1 - assets/yaml-5e7f0fb1.js | 6 + index.html | 32 +- monacoeditorwork/css.worker.bundle.js | 53516 --- monacoeditorwork/editor.worker.bundle.js | 13573 - monacoeditorwork/html.worker.bundle.js | 29716 -- monacoeditorwork/json.worker.bundle.js | 21374 -- monacoeditorwork/ts.worker.bundle.js | 256407 --------------- 40 files changed, 1037 insertions(+), 375560 deletions(-) delete mode 100644 assets/cssMode-3f2eed6f.js create mode 100644 assets/cssMode-d72d4421.js rename assets/{freemarker2-f59b9bf4.js => freemarker2-f9103699.js} (83%) create mode 100644 assets/handlebars-17060dc1.js delete mode 100644 assets/handlebars-1e178fc8.js create mode 100644 assets/html-36fdb4fb.js delete mode 100644 assets/html-aae5b404.js create mode 100644 assets/htmlMode-14b6b722.js delete mode 100644 assets/htmlMode-8ac43aa5.js create mode 100644 assets/index-217cde21.js create mode 100644 assets/index-26445b65.js delete mode 100644 assets/index-713b12db.js create mode 100644 assets/index-a62fcf84.js delete mode 100644 assets/index-a97cc803.js rename assets/{index-98f94ad6.js => index-fbc129af.js} (64%) create mode 100644 assets/javascript-114f66ab.js delete mode 100644 assets/javascript-242ba704.js create mode 100644 assets/jsonMode-74a5d41f.js delete mode 100644 assets/jsonMode-9a36e5c0.js create mode 100644 assets/liquid-77b174a1.js delete mode 100644 assets/liquid-e4691b92.js create mode 100644 assets/python-2b8d6e25.js delete mode 100644 assets/python-b56a764e.js create mode 100644 assets/razor-09fc2592.js delete mode 100644 assets/razor-866ae5c3.js create mode 100644 assets/tsMode-2e4e2e61.js delete mode 100644 assets/tsMode-364f8d6a.js delete mode 100644 assets/typescript-049267fb.js create mode 100644 assets/typescript-1e7f5d21.js create mode 100644 assets/worker-2a8dabc3.js delete mode 100644 assets/xml-4e4264cc.js create mode 100644 assets/xml-69d21c44.js delete mode 100644 assets/yaml-0305093e.js create mode 100644 assets/yaml-5e7f0fb1.js delete mode 100644 monacoeditorwork/css.worker.bundle.js delete mode 100644 monacoeditorwork/editor.worker.bundle.js delete mode 100644 monacoeditorwork/html.worker.bundle.js delete mode 100644 monacoeditorwork/json.worker.bundle.js delete mode 100644 monacoeditorwork/ts.worker.bundle.js diff --git a/assets/cssMode-3f2eed6f.js b/assets/cssMode-3f2eed6f.js deleted file mode 100644 index 2b7ab1e..0000000 --- a/assets/cssMode-3f2eed6f.js +++ /dev/null @@ -1,4 +0,0 @@ -var vn=Object.defineProperty;var mn=(A,y,S)=>y in A?vn(A,y,{enumerable:!0,configurable:!0,writable:!0,value:S}):A[y]=S;var b=(A,y,S)=>(mn(A,typeof y!="symbol"?y+"":y,S),S);import{m as _n,__tla as wn}from"./index-98f94ad6.js";import{__tla as kn}from"./index-713b12db.js";let ee,ne,te,re,ie,oe,Ze,ae,se,ue,ce,de,ge,le,fe,x,$,en,_,R,bn=Promise.all([(()=>{try{return wn}catch{}})(),(()=>{try{return kn}catch{}})()]).then(async()=>{var A=Object.defineProperty,y=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,nn=Object.prototype.hasOwnProperty,he=(n,r,i,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of S(r))!nn.call(n,e)&&e!==i&&A(n,e,{get:()=>r[e],enumerable:!(t=y(r,e))||t.enumerable});return n},tn=(n,r,i)=>(he(n,r,"default"),i&&he(i,r,"default")),c={};tn(c,_n);let pe,ve;pe=2*60*1e3,fe=class{constructor(n){b(this,"_defaults");b(this,"_idleCheckInterval");b(this,"_lastUsedTime");b(this,"_configChangeListener");b(this,"_worker");b(this,"_client");this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>pe&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let r;return this._getClient().then(i=>{r=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(i=>r)}},function(n){n.MIN_VALUE=-2147483648,n.MAX_VALUE=2147483647}(ve||(ve={}));var W;(function(n){n.MIN_VALUE=0,n.MAX_VALUE=2147483647})(W||(W={}));var k;(function(n){function r(t,e){return t===Number.MAX_VALUE&&(t=W.MAX_VALUE),e===Number.MAX_VALUE&&(e=W.MAX_VALUE),{line:t,character:e}}n.create=r;function i(t){var e=t;return s.objectLiteral(e)&&s.uinteger(e.line)&&s.uinteger(e.character)}n.is=i})(k||(k={}));var v;(function(n){function r(t,e,o,a){if(s.uinteger(t)&&s.uinteger(e)&&s.uinteger(o)&&s.uinteger(a))return{start:k.create(t,e),end:k.create(o,a)};if(k.is(t)&&k.is(e))return{start:t,end:e};throw new Error("Range#create called with invalid arguments["+t+", "+e+", "+o+", "+a+"]")}n.create=r;function i(t){var e=t;return s.objectLiteral(e)&&k.is(e.start)&&k.is(e.end)}n.is=i})(v||(v={}));var q;(function(n){function r(t,e){return{uri:t,range:e}}n.create=r;function i(t){var e=t;return s.defined(e)&&v.is(e.range)&&(s.string(e.uri)||s.undefined(e.uri))}n.is=i})(q||(q={}));var me;(function(n){function r(t,e,o,a){return{targetUri:t,targetRange:e,targetSelectionRange:o,originSelectionRange:a}}n.create=r;function i(t){var e=t;return s.defined(e)&&v.is(e.targetRange)&&s.string(e.targetUri)&&(v.is(e.targetSelectionRange)||s.undefined(e.targetSelectionRange))&&(v.is(e.originSelectionRange)||s.undefined(e.originSelectionRange))}n.is=i})(me||(me={}));var Q;(function(n){function r(t,e,o,a){return{red:t,green:e,blue:o,alpha:a}}n.create=r;function i(t){var e=t;return s.numberRange(e.red,0,1)&&s.numberRange(e.green,0,1)&&s.numberRange(e.blue,0,1)&&s.numberRange(e.alpha,0,1)}n.is=i})(Q||(Q={}));var _e;(function(n){function r(t,e){return{range:t,color:e}}n.create=r;function i(t){var e=t;return v.is(e.range)&&Q.is(e.color)}n.is=i})(_e||(_e={}));var we;(function(n){function r(t,e,o){return{label:t,textEdit:e,additionalTextEdits:o}}n.create=r;function i(t){var e=t;return s.string(e.label)&&(s.undefined(e.textEdit)||C.is(e))&&(s.undefined(e.additionalTextEdits)||s.typedArray(e.additionalTextEdits,C.is))}n.is=i})(we||(we={}));var P;(function(n){n.Comment="comment",n.Imports="imports",n.Region="region"})(P||(P={}));var ke;(function(n){function r(t,e,o,a,u){var l={startLine:t,endLine:e};return s.defined(o)&&(l.startCharacter=o),s.defined(a)&&(l.endCharacter=a),s.defined(u)&&(l.kind=u),l}n.create=r;function i(t){var e=t;return s.uinteger(e.startLine)&&s.uinteger(e.startLine)&&(s.undefined(e.startCharacter)||s.uinteger(e.startCharacter))&&(s.undefined(e.endCharacter)||s.uinteger(e.endCharacter))&&(s.undefined(e.kind)||s.string(e.kind))}n.is=i})(ke||(ke={}));var G;(function(n){function r(t,e){return{location:t,message:e}}n.create=r;function i(t){var e=t;return s.defined(e)&&q.is(e.location)&&s.string(e.message)}n.is=i})(G||(G={}));var T;(function(n){n.Error=1,n.Warning=2,n.Information=3,n.Hint=4})(T||(T={}));var be;(function(n){n.Unnecessary=1,n.Deprecated=2})(be||(be={}));var ye;(function(n){function r(i){var t=i;return t!=null&&s.string(t.href)}n.is=r})(ye||(ye={}));var V;(function(n){function r(t,e,o,a,u,l){var d={range:t,message:e};return s.defined(o)&&(d.severity=o),s.defined(a)&&(d.code=a),s.defined(u)&&(d.source=u),s.defined(l)&&(d.relatedInformation=l),d}n.create=r;function i(t){var e,o=t;return s.defined(o)&&v.is(o.range)&&s.string(o.message)&&(s.number(o.severity)||s.undefined(o.severity))&&(s.integer(o.code)||s.string(o.code)||s.undefined(o.code))&&(s.undefined(o.codeDescription)||s.string((e=o.codeDescription)===null||e===void 0?void 0:e.href))&&(s.string(o.source)||s.undefined(o.source))&&(s.undefined(o.relatedInformation)||s.typedArray(o.relatedInformation,G.is))}n.is=i})(V||(V={}));var F;(function(n){function r(t,e){for(var o=[],a=2;a0&&(u.arguments=o),u}n.create=r;function i(t){var e=t;return s.defined(e)&&s.string(e.title)&&s.string(e.command)}n.is=i})(F||(F={}));var C;(function(n){function r(o,a){return{range:o,newText:a}}n.replace=r;function i(o,a){return{range:{start:o,end:o},newText:a}}n.insert=i;function t(o){return{range:o,newText:""}}n.del=t;function e(o){var a=o;return s.objectLiteral(a)&&s.string(a.newText)&&v.is(a.range)}n.is=e})(C||(C={}));var D;(function(n){function r(t,e,o){var a={label:t};return e!==void 0&&(a.needsConfirmation=e),o!==void 0&&(a.description=o),a}n.create=r;function i(t){var e=t;return e!==void 0&&s.objectLiteral(e)&&s.string(e.label)&&(s.boolean(e.needsConfirmation)||e.needsConfirmation===void 0)&&(s.string(e.description)||e.description===void 0)}n.is=i})(D||(D={}));var m;(function(n){function r(i){var t=i;return typeof t=="string"}n.is=r})(m||(m={}));var I;(function(n){function r(o,a,u){return{range:o,newText:a,annotationId:u}}n.replace=r;function i(o,a,u){return{range:{start:o,end:o},newText:a,annotationId:u}}n.insert=i;function t(o,a){return{range:o,newText:"",annotationId:a}}n.del=t;function e(o){var a=o;return C.is(a)&&(D.is(a.annotationId)||m.is(a.annotationId))}n.is=e})(I||(I={}));var H;(function(n){function r(t,e){return{textDocument:t,edits:e}}n.create=r;function i(t){var e=t;return s.defined(e)&&z.is(e.textDocument)&&Array.isArray(e.edits)}n.is=i})(H||(H={}));var L;(function(n){function r(t,e,o){var a={kind:"create",uri:t};return e!==void 0&&(e.overwrite!==void 0||e.ignoreIfExists!==void 0)&&(a.options=e),o!==void 0&&(a.annotationId=o),a}n.create=r;function i(t){var e=t;return e&&e.kind==="create"&&s.string(e.uri)&&(e.options===void 0||(e.options.overwrite===void 0||s.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||s.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||m.is(e.annotationId))}n.is=i})(L||(L={}));var j;(function(n){function r(t,e,o,a){var u={kind:"rename",oldUri:t,newUri:e};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(u.options=o),a!==void 0&&(u.annotationId=a),u}n.create=r;function i(t){var e=t;return e&&e.kind==="rename"&&s.string(e.oldUri)&&s.string(e.newUri)&&(e.options===void 0||(e.options.overwrite===void 0||s.boolean(e.options.overwrite))&&(e.options.ignoreIfExists===void 0||s.boolean(e.options.ignoreIfExists)))&&(e.annotationId===void 0||m.is(e.annotationId))}n.is=i})(j||(j={}));var O;(function(n){function r(t,e,o){var a={kind:"delete",uri:t};return e!==void 0&&(e.recursive!==void 0||e.ignoreIfNotExists!==void 0)&&(a.options=e),o!==void 0&&(a.annotationId=o),a}n.create=r;function i(t){var e=t;return e&&e.kind==="delete"&&s.string(e.uri)&&(e.options===void 0||(e.options.recursive===void 0||s.boolean(e.options.recursive))&&(e.options.ignoreIfNotExists===void 0||s.boolean(e.options.ignoreIfNotExists)))&&(e.annotationId===void 0||m.is(e.annotationId))}n.is=i})(O||(O={}));var J;(function(n){function r(i){var t=i;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(function(e){return s.string(e.kind)?L.is(e)||j.is(e)||O.is(e):H.is(e)}))}n.is=r})(J||(J={}));var K=function(){function n(r,i){this.edits=r,this.changeAnnotations=i}return n.prototype.insert=function(r,i,t){var e,o;if(t===void 0?e=C.insert(r,i):m.is(t)?(o=t,e=I.insert(r,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(t),e=I.insert(r,i,o)),this.edits.push(e),o!==void 0)return o},n.prototype.replace=function(r,i,t){var e,o;if(t===void 0?e=C.replace(r,i):m.is(t)?(o=t,e=I.replace(r,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(t),e=I.replace(r,i,o)),this.edits.push(e),o!==void 0)return o},n.prototype.delete=function(r,i){var t,e;if(i===void 0?t=C.del(r):m.is(i)?(e=i,t=I.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),e=this.changeAnnotations.manage(i),t=I.del(r,e)),this.edits.push(t),e!==void 0)return e},n.prototype.add=function(r){this.edits.push(r)},n.prototype.all=function(){return this.edits},n.prototype.clear=function(){this.edits.splice(0,this.edits.length)},n.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},n}(),Ee=function(){function n(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return n.prototype.all=function(){return this._annotations},Object.defineProperty(n.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),n.prototype.manage=function(r,i){var t;if(m.is(r)?t=r:(t=this.nextId(),i=r),this._annotations[t]!==void 0)throw new Error("Id "+t+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+t);return this._annotations[t]=i,this._size++,t},n.prototype.nextId=function(){return this._counter++,this._counter.toString()},n}();(function(){function n(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new Ee(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(t){if(H.is(t)){var e=new K(t.edits,i._changeAnnotations);i._textEditChanges[t.textDocument.uri]=e}})):r.changes&&Object.keys(r.changes).forEach(function(t){var e=new K(r.changes[t]);i._textEditChanges[t]=e})):this._workspaceEdit={}}return Object.defineProperty(n.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}),n.prototype.getTextEditChange=function(r){if(z.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},t=this._textEditChanges[i.uri];if(!t){var e=[],o={textDocument:i,edits:e};this._workspaceEdit.documentChanges.push(o),t=new K(e,this._changeAnnotations),this._textEditChanges[i.uri]=t}return t}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var t=this._textEditChanges[r];if(!t){var e=[];this._workspaceEdit.changes[r]=e,t=new K(e),this._textEditChanges[r]=t}return t}},n.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Ee,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},n.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},n.prototype.createFile=function(r,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;D.is(i)||m.is(i)?e=i:t=i;var o,a;if(e===void 0?o=L.create(r,t):(a=m.is(e)?e:this._changeAnnotations.manage(e),o=L.create(r,t,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},n.prototype.renameFile=function(r,i,t,e){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;D.is(t)||m.is(t)?o=t:e=t;var a,u;if(o===void 0?a=j.create(r,i,e):(u=m.is(o)?o:this._changeAnnotations.manage(o),a=j.create(r,i,e,u)),this._workspaceEdit.documentChanges.push(a),u!==void 0)return u},n.prototype.deleteFile=function(r,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var e;D.is(i)||m.is(i)?e=i:t=i;var o,a;if(e===void 0?o=O.create(r,t):(a=m.is(e)?e:this._changeAnnotations.manage(e),o=O.create(r,t,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},n})();var xe;(function(n){function r(t){return{uri:t}}n.create=r;function i(t){var e=t;return s.defined(e)&&s.string(e.uri)}n.is=i})(xe||(xe={}));var Ce;(function(n){function r(t,e){return{uri:t,version:e}}n.create=r;function i(t){var e=t;return s.defined(e)&&s.string(e.uri)&&s.integer(e.version)}n.is=i})(Ce||(Ce={}));var z;(function(n){function r(t,e){return{uri:t,version:e}}n.create=r;function i(t){var e=t;return s.defined(e)&&s.string(e.uri)&&(e.version===null||s.integer(e.version))}n.is=i})(z||(z={}));var Ie;(function(n){function r(t,e,o,a){return{uri:t,languageId:e,version:o,text:a}}n.create=r;function i(t){var e=t;return s.defined(e)&&s.string(e.uri)&&s.string(e.languageId)&&s.integer(e.version)&&s.string(e.text)}n.is=i})(Ie||(Ie={}));var N;(function(n){n.PlainText="plaintext",n.Markdown="markdown"})(N||(N={})),function(n){function r(i){var t=i;return t===n.PlainText||t===n.Markdown}n.is=r}(N||(N={}));var Y;(function(n){function r(i){var t=i;return s.objectLiteral(i)&&N.is(t.kind)&&s.string(t.value)}n.is=r})(Y||(Y={}));var f;(function(n){n.Text=1,n.Method=2,n.Function=3,n.Constructor=4,n.Field=5,n.Variable=6,n.Class=7,n.Interface=8,n.Module=9,n.Property=10,n.Unit=11,n.Value=12,n.Enum=13,n.Keyword=14,n.Snippet=15,n.Color=16,n.File=17,n.Reference=18,n.Folder=19,n.EnumMember=20,n.Constant=21,n.Struct=22,n.Event=23,n.Operator=24,n.TypeParameter=25})(f||(f={}));var Z;(function(n){n.PlainText=1,n.Snippet=2})(Z||(Z={}));var Ae;(function(n){n.Deprecated=1})(Ae||(Ae={}));var Se;(function(n){function r(t,e,o){return{newText:t,insert:e,replace:o}}n.create=r;function i(t){var e=t;return e&&s.string(e.newText)&&v.is(e.insert)&&v.is(e.replace)}n.is=i})(Se||(Se={}));var Re;(function(n){n.asIs=1,n.adjustIndentation=2})(Re||(Re={}));var Te;(function(n){function r(i){return{label:i}}n.create=r})(Te||(Te={}));var De;(function(n){function r(i,t){return{items:i||[],isIncomplete:!!t}}n.create=r})(De||(De={}));var X;(function(n){function r(t){return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}n.fromPlainText=r;function i(t){var e=t;return s.string(e)||s.objectLiteral(e)&&s.string(e.language)&&s.string(e.value)}n.is=i})(X||(X={}));var Me;(function(n){function r(i){var t=i;return!!t&&s.objectLiteral(t)&&(Y.is(t.contents)||X.is(t.contents)||s.typedArray(t.contents,X.is))&&(i.range===void 0||v.is(i.range))}n.is=r})(Me||(Me={}));var Pe;(function(n){function r(i,t){return t?{label:i,documentation:t}:{label:i}}n.create=r})(Pe||(Pe={}));var Fe;(function(n){function r(i,t){for(var e=[],o=2;o=0;p--){var w=l[p],E=o.offsetAt(w.range.start),g=o.offsetAt(w.range.end);if(g<=d)u=u.substring(0,E)+w.newText+u.substring(g,u.length);else throw new Error("Overlapping edit");d=E}return u}n.applyEdits=t;function e(o,a){if(o.length<=1)return o;var u=o.length/2|0,l=o.slice(0,u),d=o.slice(u);e(l,a),e(d,a);for(var p=0,w=0,E=0;p0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets},n.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),t=0,e=i.length;if(e===0)return k.create(0,r);for(;tr?e=o:t=o+1}var a=t-1;return k.create(a,r-i[a])},n.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var t=i[r.line],e=r.line+1"u"}n.undefined=t;function e(g){return g===!0||g===!1}n.boolean=e;function o(g){return r.call(g)==="[object String]"}n.string=o;function a(g){return r.call(g)==="[object Number]"}n.number=a;function u(g,M,B){return r.call(g)==="[object Number]"&&M<=g&&g<=B}n.numberRange=u;function l(g){return r.call(g)==="[object Number]"&&-2147483648<=g&&g<=2147483647}n.integer=l;function d(g){return r.call(g)==="[object Number]"&&0<=g&&g<=2147483647}n.uinteger=d;function p(g){return r.call(g)==="[object Function]"}n.func=p;function w(g){return g!==null&&typeof g=="object"}n.objectLiteral=w;function E(g,M){return Array.isArray(g)&&g.every(M)}n.typedArray=E})(s||(s={})),te=class{constructor(n,r,i){b(this,"_disposables",[]);b(this,"_listener",Object.create(null));this._languageId=n,this._worker=r;const t=o=>{let a=o.getLanguageId();if(a!==this._languageId)return;let u;this._listener[o.uri.toString()]=o.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(o.uri,a),500)}),this._doValidate(o.uri,a)},e=o=>{c.editor.setModelMarkers(o,this._languageId,[]);let a=o.uri.toString(),u=this._listener[a];u&&(u.dispose(),delete this._listener[a])};this._disposables.push(c.editor.onDidCreateModel(t)),this._disposables.push(c.editor.onWillDisposeModel(e)),this._disposables.push(c.editor.onDidChangeModelLanguage(o=>{e(o.model),t(o.model)})),this._disposables.push(i(o=>{c.editor.getModels().forEach(a=>{a.getLanguageId()===this._languageId&&(e(a),t(a))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(e);for(let o in this._listener)this._listener[o].dispose()}}),c.editor.getModels().forEach(t)}dispose(){this._disposables.forEach(n=>n&&n.dispose()),this._disposables.length=0}_doValidate(n,r){this._worker(n).then(i=>i.doValidation(n.toString())).then(i=>{const t=i.map(o=>an(n,o));let e=c.editor.getModel(n);e&&e.getLanguageId()===r&&c.editor.setModelMarkers(e,r,t)}).then(void 0,i=>{console.error(i)})}};function on(n){switch(n){case T.Error:return c.MarkerSeverity.Error;case T.Warning:return c.MarkerSeverity.Warning;case T.Information:return c.MarkerSeverity.Info;case T.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function an(n,r){let i=typeof r.code=="number"?String(r.code):r.code;return{severity:on(r.severity),startLineNumber:r.range.start.line+1,startColumn:r.range.start.character+1,endLineNumber:r.range.end.line+1,endColumn:r.range.end.character+1,message:r.message,code:i,source:r.source}}ee=class{constructor(n,r){this._worker=n,this._triggerCharacters=r}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(n,r,i,t){const e=n.uri;return this._worker(e).then(o=>o.doComplete(e.toString(),x(r))).then(o=>{if(!o)return;const a=n.getWordUntilPosition(r),u=new c.Range(r.lineNumber,a.startColumn,r.lineNumber,a.endColumn),l=o.items.map(d=>{const p={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:cn(d.command),range:u,kind:un(d.kind)};return d.textEdit&&(sn(d.textEdit)?p.range={insert:_(d.textEdit.insert),replace:_(d.textEdit.replace)}:p.range=_(d.textEdit.range),p.insertText=d.textEdit.newText),d.additionalTextEdits&&(p.additionalTextEdits=d.additionalTextEdits.map(R)),d.insertTextFormat===Z.Snippet&&(p.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),p});return{isIncomplete:o.isIncomplete,suggestions:l}})}},x=function(n){if(n)return{character:n.column-1,line:n.lineNumber-1}},$=function(n){if(n)return{start:{line:n.startLineNumber-1,character:n.startColumn-1},end:{line:n.endLineNumber-1,character:n.endColumn-1}}},_=function(n){if(n)return new c.Range(n.start.line+1,n.start.character+1,n.end.line+1,n.end.character+1)};function sn(n){return typeof n.insert<"u"&&typeof n.replace<"u"}function un(n){const r=c.languages.CompletionItemKind;switch(n){case f.Text:return r.Text;case f.Method:return r.Method;case f.Function:return r.Function;case f.Constructor:return r.Constructor;case f.Field:return r.Field;case f.Variable:return r.Variable;case f.Class:return r.Class;case f.Interface:return r.Interface;case f.Module:return r.Module;case f.Property:return r.Property;case f.Unit:return r.Unit;case f.Value:return r.Value;case f.Enum:return r.Enum;case f.Keyword:return r.Keyword;case f.Snippet:return r.Snippet;case f.Color:return r.Color;case f.File:return r.File;case f.Reference:return r.Reference}return r.Property}R=function(n){if(n)return{range:_(n.range),text:n.newText}};function cn(n){return n&&n.command==="editor.action.triggerSuggest"?{id:n.command,title:n.title,arguments:n.arguments}:void 0}ce=class{constructor(n){this._worker=n}provideHover(n,r,i){let t=n.uri;return this._worker(t).then(e=>e.doHover(t.toString(),x(r))).then(e=>{if(e)return{range:_(e.range),contents:gn(e.contents)}})}};function dn(n){return n&&typeof n=="object"&&typeof n.kind=="string"}function $e(n){return typeof n=="string"?{value:n}:dn(n)?n.kind==="plaintext"?{value:n.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:n.value}:{value:"```"+n.language+` -`+n.value+"\n```\n"}}function gn(n){if(n)return Array.isArray(n)?n.map($e):[$e(n)]}oe=class{constructor(n){this._worker=n}provideDocumentHighlights(n,r,i){const t=n.uri;return this._worker(t).then(e=>e.findDocumentHighlights(t.toString(),x(r))).then(e=>{if(e)return e.map(o=>({range:_(o.range),kind:ln(o.kind)}))})}};function ln(n){switch(n){case U.Read:return c.languages.DocumentHighlightKind.Read;case U.Write:return c.languages.DocumentHighlightKind.Write;case U.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}ne=class{constructor(n){this._worker=n}provideDefinition(n,r,i){const t=n.uri;return this._worker(t).then(e=>e.findDefinition(t.toString(),x(r))).then(e=>{if(e)return[qe(e)]})}};function qe(n){return{uri:c.Uri.parse(n.uri),range:_(n.range)}}de=class{constructor(n){this._worker=n}provideReferences(n,r,i,t){const e=n.uri;return this._worker(e).then(o=>o.findReferences(e.toString(),x(r))).then(o=>{if(o)return o.map(qe)})}},ge=class{constructor(n){this._worker=n}provideRenameEdits(n,r,i,t){const e=n.uri;return this._worker(e).then(o=>o.doRename(e.toString(),x(r),i)).then(o=>fn(o))}};function fn(n){if(!n||!n.changes)return;let r=[];for(let i in n.changes){const t=c.Uri.parse(i);for(let e of n.changes[i])r.push({resource:t,versionId:void 0,textEdit:{range:_(e.range),text:e.newText}})}return{edits:r}}se=class{constructor(n){this._worker=n}provideDocumentSymbols(n,r){const i=n.uri;return this._worker(i).then(t=>t.findDocumentSymbols(i.toString())).then(t=>{if(t)return t.map(e=>({name:e.name,detail:"",containerName:e.containerName,kind:hn(e.kind),range:_(e.location.range),selectionRange:_(e.location.range),tags:[]}))})}};function hn(n){let r=c.languages.SymbolKind;switch(n){case h.File:return r.Array;case h.Module:return r.Module;case h.Namespace:return r.Namespace;case h.Package:return r.Package;case h.Class:return r.Class;case h.Method:return r.Method;case h.Property:return r.Property;case h.Field:return r.Field;case h.Constructor:return r.Constructor;case h.Enum:return r.Enum;case h.Interface:return r.Interface;case h.Function:return r.Function;case h.Variable:return r.Variable;case h.Constant:return r.Constant;case h.String:return r.String;case h.Number:return r.Number;case h.Boolean:return r.Boolean;case h.Array:return r.Array}return r.Function}Ze=class{constructor(n){this._worker=n}provideLinks(n,r){const i=n.uri;return this._worker(i).then(t=>t.findDocumentLinks(i.toString())).then(t=>{if(t)return{links:t.map(e=>({range:_(e.range),url:e.target}))}})}},ie=class{constructor(n){this._worker=n}provideDocumentFormattingEdits(n,r,i){const t=n.uri;return this._worker(t).then(e=>e.format(t.toString(),null,Qe(r)).then(o=>{if(!(!o||o.length===0))return o.map(R)}))}},ae=class{constructor(n){b(this,"canFormatMultipleRanges",!1);this._worker=n}provideDocumentRangeFormattingEdits(n,r,i,t){const e=n.uri;return this._worker(e).then(o=>o.format(e.toString(),$(r),Qe(i)).then(a=>{if(!(!a||a.length===0))return a.map(R)}))}};function Qe(n){return{tabSize:n.tabSize,insertSpaces:n.insertSpaces}}re=class{constructor(n){this._worker=n}provideDocumentColors(n,r){const i=n.uri;return this._worker(i).then(t=>t.findDocumentColors(i.toString())).then(t=>{if(t)return t.map(e=>({color:e.color,range:_(e.range)}))})}provideColorPresentations(n,r,i){const t=n.uri;return this._worker(t).then(e=>e.getColorPresentations(t.toString(),r.color,$(r.range))).then(e=>{if(e)return e.map(o=>{let a={label:o.label};return o.textEdit&&(a.textEdit=R(o.textEdit)),o.additionalTextEdits&&(a.additionalTextEdits=o.additionalTextEdits.map(R)),a})})}},ue=class{constructor(n){this._worker=n}provideFoldingRanges(n,r,i){const t=n.uri;return this._worker(t).then(e=>e.getFoldingRanges(t.toString(),r)).then(e=>{if(e)return e.map(o=>{const a={start:o.startLine+1,end:o.endLine+1};return typeof o.kind<"u"&&(a.kind=pn(o.kind)),a})})}};function pn(n){switch(n){case P.Comment:return c.languages.FoldingRangeKind.Comment;case P.Imports:return c.languages.FoldingRangeKind.Imports;case P.Region:return c.languages.FoldingRangeKind.Region}}le=class{constructor(n){this._worker=n}provideSelectionRanges(n,r,i){const t=n.uri;return this._worker(t).then(e=>e.getSelectionRanges(t.toString(),r.map(x))).then(e=>{if(e)return e.map(o=>{const a=[];for(;o;)a.push({range:_(o.range)}),o=o.parent;return a})})}},en=function(n){const r=[],i=[],t=new fe(n);r.push(t);const e=(...a)=>t.getLanguageServiceWorker(...a);function o(){const{languageId:a,modeConfiguration:u}=n;Je(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(a,new ee(e,["/","-",":"]))),u.hovers&&i.push(c.languages.registerHoverProvider(a,new ce(e))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(a,new oe(e))),u.definitions&&i.push(c.languages.registerDefinitionProvider(a,new ne(e))),u.references&&i.push(c.languages.registerReferenceProvider(a,new de(e))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(a,new se(e))),u.rename&&i.push(c.languages.registerRenameProvider(a,new ge(e))),u.colors&&i.push(c.languages.registerColorProvider(a,new re(e))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(a,new ue(e))),u.diagnostics&&i.push(new te(a,e,n.onDidChange)),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(a,new le(e))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(a,new ie(e))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(a,new ae(e)))}return o(),r.push(Ge(i)),Ge(r)};function Ge(n){return{dispose:()=>Je(n)}}function Je(n){for(;n.length;)n.pop().dispose()}});export{ee as CompletionAdapter,ne as DefinitionAdapter,te as DiagnosticsAdapter,re as DocumentColorAdapter,ie as DocumentFormattingEditProvider,oe as DocumentHighlightAdapter,Ze as DocumentLinkAdapter,ae as DocumentRangeFormattingEditProvider,se as DocumentSymbolAdapter,ue as FoldingRangeAdapter,ce as HoverAdapter,de as ReferenceAdapter,ge as RenameAdapter,le as SelectionRangeAdapter,fe as WorkerManager,bn as __tla,x as fromPosition,$ as fromRange,en as setupMode,_ as toRange,R as toTextEdit}; diff --git a/assets/cssMode-d72d4421.js b/assets/cssMode-d72d4421.js new file mode 100644 index 0000000..f7dcf1f --- /dev/null +++ b/assets/cssMode-d72d4421.js @@ -0,0 +1,9 @@ +var Qe=Object.defineProperty;var Ge=(e,r,i)=>r in e?Qe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[r]=i;var k=(e,r,i)=>(Ge(e,typeof r!="symbol"?r+"":r,i),i);import{m as Je}from"./index-fbc129af.js";import"./index-26445b65.js";import"./index-a62fcf84.js";/*!----------------------------------------------------------------------------- +* Copyright (c) Microsoft Corporation. All rights reserved. +* Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773) +* Released under the MIT license +* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt +*-----------------------------------------------------------------------------*/var Ye=Object.defineProperty,Ze=Object.getOwnPropertyDescriptor,en=Object.getOwnPropertyNames,nn=Object.prototype.hasOwnProperty,Y=(e,r,i,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of en(r))!nn.call(e,n)&&n!==i&&Ye(e,n,{get:()=>r[n],enumerable:!(t=Ze(r,n))||t.enumerable});return e},tn=(e,r,i)=>(Y(e,r,"default"),i&&Y(i,r,"default")),c={};tn(c,Je);var rn=2*60*1e3,Z=class{constructor(e){k(this,"_defaults");k(this,"_idleCheckInterval");k(this,"_lastUsedTime");k(this,"_configChangeListener");k(this,"_worker");k(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>rn&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/css/cssWorker",label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let r;return this._getClient().then(i=>{r=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>r)}},ee;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(ee||(ee={}));var N;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(N||(N={}));var b;(function(e){function r(t,n){return t===Number.MAX_VALUE&&(t=N.MAX_VALUE),n===Number.MAX_VALUE&&(n=N.MAX_VALUE),{line:t,character:n}}e.create=r;function i(t){var n=t;return s.objectLiteral(n)&&s.uinteger(n.line)&&s.uinteger(n.character)}e.is=i})(b||(b={}));var v;(function(e){function r(t,n,o,a){if(s.uinteger(t)&&s.uinteger(n)&&s.uinteger(o)&&s.uinteger(a))return{start:b.create(t,n),end:b.create(o,a)};if(b.is(t)&&b.is(n))return{start:t,end:n};throw new Error("Range#create called with invalid arguments["+t+", "+n+", "+o+", "+a+"]")}e.create=r;function i(t){var n=t;return s.objectLiteral(n)&&b.is(n.start)&&b.is(n.end)}e.is=i})(v||(v={}));var z;(function(e){function r(t,n){return{uri:t,range:n}}e.create=r;function i(t){var n=t;return s.defined(n)&&v.is(n.range)&&(s.string(n.uri)||s.undefined(n.uri))}e.is=i})(z||(z={}));var ne;(function(e){function r(t,n,o,a){return{targetUri:t,targetRange:n,targetSelectionRange:o,originSelectionRange:a}}e.create=r;function i(t){var n=t;return s.defined(n)&&v.is(n.targetRange)&&s.string(n.targetUri)&&(v.is(n.targetSelectionRange)||s.undefined(n.targetSelectionRange))&&(v.is(n.originSelectionRange)||s.undefined(n.originSelectionRange))}e.is=i})(ne||(ne={}));var X;(function(e){function r(t,n,o,a){return{red:t,green:n,blue:o,alpha:a}}e.create=r;function i(t){var n=t;return s.numberRange(n.red,0,1)&&s.numberRange(n.green,0,1)&&s.numberRange(n.blue,0,1)&&s.numberRange(n.alpha,0,1)}e.is=i})(X||(X={}));var te;(function(e){function r(t,n){return{range:t,color:n}}e.create=r;function i(t){var n=t;return v.is(n.range)&&X.is(n.color)}e.is=i})(te||(te={}));var re;(function(e){function r(t,n,o){return{label:t,textEdit:n,additionalTextEdits:o}}e.create=r;function i(t){var n=t;return s.string(n.label)&&(s.undefined(n.textEdit)||E.is(n))&&(s.undefined(n.additionalTextEdits)||s.typedArray(n.additionalTextEdits,E.is))}e.is=i})(re||(re={}));var T;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(T||(T={}));var ie;(function(e){function r(t,n,o,a,u){var l={startLine:t,endLine:n};return s.defined(o)&&(l.startCharacter=o),s.defined(a)&&(l.endCharacter=a),s.defined(u)&&(l.kind=u),l}e.create=r;function i(t){var n=t;return s.uinteger(n.startLine)&&s.uinteger(n.startLine)&&(s.undefined(n.startCharacter)||s.uinteger(n.startCharacter))&&(s.undefined(n.endCharacter)||s.uinteger(n.endCharacter))&&(s.undefined(n.kind)||s.string(n.kind))}e.is=i})(ie||(ie={}));var B;(function(e){function r(t,n){return{location:t,message:n}}e.create=r;function i(t){var n=t;return s.defined(n)&&z.is(n.location)&&s.string(n.message)}e.is=i})(B||(B={}));var A;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(A||(A={}));var oe;(function(e){e.Unnecessary=1,e.Deprecated=2})(oe||(oe={}));var ae;(function(e){function r(i){var t=i;return t!=null&&s.string(t.href)}e.is=r})(ae||(ae={}));var U;(function(e){function r(t,n,o,a,u,l){var d={range:t,message:n};return s.defined(o)&&(d.severity=o),s.defined(a)&&(d.code=a),s.defined(u)&&(d.source=u),s.defined(l)&&(d.relatedInformation=l),d}e.create=r;function i(t){var n,o=t;return s.defined(o)&&v.is(o.range)&&s.string(o.message)&&(s.number(o.severity)||s.undefined(o.severity))&&(s.integer(o.code)||s.string(o.code)||s.undefined(o.code))&&(s.undefined(o.codeDescription)||s.string((n=o.codeDescription)===null||n===void 0?void 0:n.href))&&(s.string(o.source)||s.undefined(o.source))&&(s.undefined(o.relatedInformation)||s.typedArray(o.relatedInformation,B.is))}e.is=i})(U||(U={}));var D;(function(e){function r(t,n){for(var o=[],a=2;a0&&(u.arguments=o),u}e.create=r;function i(t){var n=t;return s.defined(n)&&s.string(n.title)&&s.string(n.command)}e.is=i})(D||(D={}));var E;(function(e){function r(o,a){return{range:o,newText:a}}e.replace=r;function i(o,a){return{range:{start:o,end:o},newText:a}}e.insert=i;function t(o){return{range:o,newText:""}}e.del=t;function n(o){var a=o;return s.objectLiteral(a)&&s.string(a.newText)&&v.is(a.range)}e.is=n})(E||(E={}));var S;(function(e){function r(t,n,o){var a={label:t};return n!==void 0&&(a.needsConfirmation=n),o!==void 0&&(a.description=o),a}e.create=r;function i(t){var n=t;return n!==void 0&&s.objectLiteral(n)&&s.string(n.label)&&(s.boolean(n.needsConfirmation)||n.needsConfirmation===void 0)&&(s.string(n.description)||n.description===void 0)}e.is=i})(S||(S={}));var m;(function(e){function r(i){var t=i;return typeof t=="string"}e.is=r})(m||(m={}));var C;(function(e){function r(o,a,u){return{range:o,newText:a,annotationId:u}}e.replace=r;function i(o,a,u){return{range:{start:o,end:o},newText:a,annotationId:u}}e.insert=i;function t(o,a){return{range:o,newText:"",annotationId:a}}e.del=t;function n(o){var a=o;return E.is(a)&&(S.is(a.annotationId)||m.is(a.annotationId))}e.is=n})(C||(C={}));var W;(function(e){function r(t,n){return{textDocument:t,edits:n}}e.create=r;function i(t){var n=t;return s.defined(n)&&H.is(n.textDocument)&&Array.isArray(n.edits)}e.is=i})(W||(W={}));var M;(function(e){function r(t,n,o){var a={kind:"create",uri:t};return n!==void 0&&(n.overwrite!==void 0||n.ignoreIfExists!==void 0)&&(a.options=n),o!==void 0&&(a.annotationId=o),a}e.create=r;function i(t){var n=t;return n&&n.kind==="create"&&s.string(n.uri)&&(n.options===void 0||(n.options.overwrite===void 0||s.boolean(n.options.overwrite))&&(n.options.ignoreIfExists===void 0||s.boolean(n.options.ignoreIfExists)))&&(n.annotationId===void 0||m.is(n.annotationId))}e.is=i})(M||(M={}));var P;(function(e){function r(t,n,o,a){var u={kind:"rename",oldUri:t,newUri:n};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(u.options=o),a!==void 0&&(u.annotationId=a),u}e.create=r;function i(t){var n=t;return n&&n.kind==="rename"&&s.string(n.oldUri)&&s.string(n.newUri)&&(n.options===void 0||(n.options.overwrite===void 0||s.boolean(n.options.overwrite))&&(n.options.ignoreIfExists===void 0||s.boolean(n.options.ignoreIfExists)))&&(n.annotationId===void 0||m.is(n.annotationId))}e.is=i})(P||(P={}));var F;(function(e){function r(t,n,o){var a={kind:"delete",uri:t};return n!==void 0&&(n.recursive!==void 0||n.ignoreIfNotExists!==void 0)&&(a.options=n),o!==void 0&&(a.annotationId=o),a}e.create=r;function i(t){var n=t;return n&&n.kind==="delete"&&s.string(n.uri)&&(n.options===void 0||(n.options.recursive===void 0||s.boolean(n.options.recursive))&&(n.options.ignoreIfNotExists===void 0||s.boolean(n.options.ignoreIfNotExists)))&&(n.annotationId===void 0||m.is(n.annotationId))}e.is=i})(F||(F={}));var $;(function(e){function r(i){var t=i;return t&&(t.changes!==void 0||t.documentChanges!==void 0)&&(t.documentChanges===void 0||t.documentChanges.every(function(n){return s.string(n.kind)?M.is(n)||P.is(n)||F.is(n):W.is(n)}))}e.is=r})($||($={}));var V=function(){function e(r,i){this.edits=r,this.changeAnnotations=i}return e.prototype.insert=function(r,i,t){var n,o;if(t===void 0?n=E.insert(r,i):m.is(t)?(o=t,n=C.insert(r,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(t),n=C.insert(r,i,o)),this.edits.push(n),o!==void 0)return o},e.prototype.replace=function(r,i,t){var n,o;if(t===void 0?n=E.replace(r,i):m.is(t)?(o=t,n=C.replace(r,i,t)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(t),n=C.replace(r,i,o)),this.edits.push(n),o!==void 0)return o},e.prototype.delete=function(r,i){var t,n;if(i===void 0?t=E.del(r):m.is(i)?(n=i,t=C.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(i),t=C.del(r,n)),this.edits.push(t),n!==void 0)return n},e.prototype.add=function(r){this.edits.push(r)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),se=function(){function e(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(r,i){var t;if(m.is(r)?t=r:(t=this.nextId(),i=r),this._annotations[t]!==void 0)throw new Error("Id "+t+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+t);return this._annotations[t]=i,this._size++,t},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new se(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(t){if(W.is(t)){var n=new V(t.edits,i._changeAnnotations);i._textEditChanges[t.textDocument.uri]=n}})):r.changes&&Object.keys(r.changes).forEach(function(t){var n=new V(r.changes[t]);i._textEditChanges[t]=n})):this._workspaceEdit={}}return Object.defineProperty(e.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}),e.prototype.getTextEditChange=function(r){if(H.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},t=this._textEditChanges[i.uri];if(!t){var n=[],o={textDocument:i,edits:n};this._workspaceEdit.documentChanges.push(o),t=new V(n,this._changeAnnotations),this._textEditChanges[i.uri]=t}return t}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var t=this._textEditChanges[r];if(!t){var n=[];this._workspaceEdit.changes[r]=n,t=new V(n),this._textEditChanges[r]=t}return t}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new se,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(r,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n;S.is(i)||m.is(i)?n=i:t=i;var o,a;if(n===void 0?o=M.create(r,t):(a=m.is(n)?n:this._changeAnnotations.manage(n),o=M.create(r,t,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},e.prototype.renameFile=function(r,i,t,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;S.is(t)||m.is(t)?o=t:n=t;var a,u;if(o===void 0?a=P.create(r,i,n):(u=m.is(o)?o:this._changeAnnotations.manage(o),a=P.create(r,i,n,u)),this._workspaceEdit.documentChanges.push(a),u!==void 0)return u},e.prototype.deleteFile=function(r,i,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n;S.is(i)||m.is(i)?n=i:t=i;var o,a;if(n===void 0?o=F.create(r,t):(a=m.is(n)?n:this._changeAnnotations.manage(n),o=F.create(r,t,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},e})();var ue;(function(e){function r(t){return{uri:t}}e.create=r;function i(t){var n=t;return s.defined(n)&&s.string(n.uri)}e.is=i})(ue||(ue={}));var ce;(function(e){function r(t,n){return{uri:t,version:n}}e.create=r;function i(t){var n=t;return s.defined(n)&&s.string(n.uri)&&s.integer(n.version)}e.is=i})(ce||(ce={}));var H;(function(e){function r(t,n){return{uri:t,version:n}}e.create=r;function i(t){var n=t;return s.defined(n)&&s.string(n.uri)&&(n.version===null||s.integer(n.version))}e.is=i})(H||(H={}));var de;(function(e){function r(t,n,o,a){return{uri:t,languageId:n,version:o,text:a}}e.create=r;function i(t){var n=t;return s.defined(n)&&s.string(n.uri)&&s.string(n.languageId)&&s.integer(n.version)&&s.string(n.text)}e.is=i})(de||(de={}));var L;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(L||(L={})),function(e){function r(i){var t=i;return t===e.PlainText||t===e.Markdown}e.is=r}(L||(L={}));var q;(function(e){function r(i){var t=i;return s.objectLiteral(i)&&L.is(t.kind)&&s.string(t.value)}e.is=r})(q||(q={}));var f;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(f||(f={}));var Q;(function(e){e.PlainText=1,e.Snippet=2})(Q||(Q={}));var ge;(function(e){e.Deprecated=1})(ge||(ge={}));var le;(function(e){function r(t,n,o){return{newText:t,insert:n,replace:o}}e.create=r;function i(t){var n=t;return n&&s.string(n.newText)&&v.is(n.insert)&&v.is(n.replace)}e.is=i})(le||(le={}));var fe;(function(e){e.asIs=1,e.adjustIndentation=2})(fe||(fe={}));var he;(function(e){function r(i){return{label:i}}e.create=r})(he||(he={}));var pe;(function(e){function r(i,t){return{items:i||[],isIncomplete:!!t}}e.create=r})(pe||(pe={}));var K;(function(e){function r(t){return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=r;function i(t){var n=t;return s.string(n)||s.objectLiteral(n)&&s.string(n.language)&&s.string(n.value)}e.is=i})(K||(K={}));var ve;(function(e){function r(i){var t=i;return!!t&&s.objectLiteral(t)&&(q.is(t.contents)||K.is(t.contents)||s.typedArray(t.contents,K.is))&&(i.range===void 0||v.is(i.range))}e.is=r})(ve||(ve={}));var me;(function(e){function r(i,t){return t?{label:i,documentation:t}:{label:i}}e.create=r})(me||(me={}));var _e;(function(e){function r(i,t){for(var n=[],o=2;o=0;p--){var w=l[p],y=o.offsetAt(w.range.start),g=o.offsetAt(w.range.end);if(g<=d)u=u.substring(0,y)+w.newText+u.substring(g,u.length);else throw new Error("Overlapping edit");d=y}return u}e.applyEdits=t;function n(o,a){if(o.length<=1)return o;var u=o.length/2|0,l=o.slice(0,u),d=o.slice(u);n(l,a),n(d,a);for(var p=0,w=0,y=0;p0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets},e.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),t=0,n=i.length;if(n===0)return b.create(0,r);for(;tr?n=o:t=o+1}var a=t-1;return b.create(a,r-i[a])},e.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var t=i[r.line],n=r.line+1"u"}e.undefined=t;function n(g){return g===!0||g===!1}e.boolean=n;function o(g){return r.call(g)==="[object String]"}e.string=o;function a(g){return r.call(g)==="[object Number]"}e.number=a;function u(g,I,O){return r.call(g)==="[object Number]"&&I<=g&&g<=O}e.numberRange=u;function l(g){return r.call(g)==="[object Number]"&&-2147483648<=g&&g<=2147483647}e.integer=l;function d(g){return r.call(g)==="[object Number]"&&0<=g&&g<=2147483647}e.uinteger=d;function p(g){return r.call(g)==="[object Function]"}e.func=p;function w(g){return g!==null&&typeof g=="object"}e.objectLiteral=w;function y(g,I){return Array.isArray(g)&&g.every(I)}e.typedArray=y})(s||(s={}));var De=class{constructor(e,r,i){k(this,"_disposables",[]);k(this,"_listener",Object.create(null));this._languageId=e,this._worker=r;const t=o=>{let a=o.getLanguageId();if(a!==this._languageId)return;let u;this._listener[o.uri.toString()]=o.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(o.uri,a),500)}),this._doValidate(o.uri,a)},n=o=>{c.editor.setModelMarkers(o,this._languageId,[]);let a=o.uri.toString(),u=this._listener[a];u&&(u.dispose(),delete this._listener[a])};this._disposables.push(c.editor.onDidCreateModel(t)),this._disposables.push(c.editor.onWillDisposeModel(n)),this._disposables.push(c.editor.onDidChangeModelLanguage(o=>{n(o.model),t(o.model)})),this._disposables.push(i(o=>{c.editor.getModels().forEach(a=>{a.getLanguageId()===this._languageId&&(n(a),t(a))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(n);for(let o in this._listener)this._listener[o].dispose()}}),c.editor.getModels().forEach(t)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,r){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const t=i.map(o=>sn(e,o));let n=c.editor.getModel(e);n&&n.getLanguageId()===r&&c.editor.setModelMarkers(n,r,t)}).then(void 0,i=>{console.error(i)})}};function an(e){switch(e){case A.Error:return c.MarkerSeverity.Error;case A.Warning:return c.MarkerSeverity.Warning;case A.Information:return c.MarkerSeverity.Info;case A.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function sn(e,r){let i=typeof r.code=="number"?String(r.code):r.code;return{severity:an(r.severity),startLineNumber:r.range.start.line+1,startColumn:r.range.start.character+1,endLineNumber:r.range.end.line+1,endColumn:r.range.end.character+1,message:r.message,code:i,source:r.source}}var Me=class{constructor(e,r){this._worker=e,this._triggerCharacters=r}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,r,i,t){const n=e.uri;return this._worker(n).then(o=>o.doComplete(n.toString(),x(r))).then(o=>{if(!o)return;const a=e.getWordUntilPosition(r),u=new c.Range(r.lineNumber,a.startColumn,r.lineNumber,a.endColumn),l=o.items.map(d=>{const p={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:dn(d.command),range:u,kind:cn(d.kind)};return d.textEdit&&(un(d.textEdit)?p.range={insert:_(d.textEdit.insert),replace:_(d.textEdit.replace)}:p.range=_(d.textEdit.range),p.insertText=d.textEdit.newText),d.additionalTextEdits&&(p.additionalTextEdits=d.additionalTextEdits.map(R)),d.insertTextFormat===Q.Snippet&&(p.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),p});return{isIncomplete:o.isIncomplete,suggestions:l}})}};function x(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function G(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function _(e){if(e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function un(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function cn(e){const r=c.languages.CompletionItemKind;switch(e){case f.Text:return r.Text;case f.Method:return r.Method;case f.Function:return r.Function;case f.Constructor:return r.Constructor;case f.Field:return r.Field;case f.Variable:return r.Variable;case f.Class:return r.Class;case f.Interface:return r.Interface;case f.Module:return r.Module;case f.Property:return r.Property;case f.Unit:return r.Unit;case f.Value:return r.Value;case f.Enum:return r.Enum;case f.Keyword:return r.Keyword;case f.Snippet:return r.Snippet;case f.Color:return r.Color;case f.File:return r.File;case f.Reference:return r.Reference}return r.Property}function R(e){if(e)return{range:_(e.range),text:e.newText}}function dn(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Pe=class{constructor(e){this._worker=e}provideHover(e,r,i){let t=e.uri;return this._worker(t).then(n=>n.doHover(t.toString(),x(r))).then(n=>{if(n)return{range:_(n.range),contents:ln(n.contents)}})}};function gn(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Fe(e){return typeof e=="string"?{value:e}:gn(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` +`+e.value+"\n```\n"}}function ln(e){if(e)return Array.isArray(e)?e.map(Fe):[Fe(e)]}var Le=class{constructor(e){this._worker=e}provideDocumentHighlights(e,r,i){const t=e.uri;return this._worker(t).then(n=>n.findDocumentHighlights(t.toString(),x(r))).then(n=>{if(n)return n.map(o=>({range:_(o.range),kind:fn(o.kind)}))})}};function fn(e){switch(e){case j.Read:return c.languages.DocumentHighlightKind.Read;case j.Write:return c.languages.DocumentHighlightKind.Write;case j.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var je=class{constructor(e){this._worker=e}provideDefinition(e,r,i){const t=e.uri;return this._worker(t).then(n=>n.findDefinition(t.toString(),x(r))).then(n=>{if(n)return[Oe(n)]})}};function Oe(e){return{uri:c.Uri.parse(e.uri),range:_(e.range)}}var Ne=class{constructor(e){this._worker=e}provideReferences(e,r,i,t){const n=e.uri;return this._worker(n).then(o=>o.findReferences(n.toString(),x(r))).then(o=>{if(o)return o.map(Oe)})}},Ue=class{constructor(e){this._worker=e}provideRenameEdits(e,r,i,t){const n=e.uri;return this._worker(n).then(o=>o.doRename(n.toString(),x(r),i)).then(o=>hn(o))}};function hn(e){if(!e||!e.changes)return;let r=[];for(let i in e.changes){const t=c.Uri.parse(i);for(let n of e.changes[i])r.push({resource:t,versionId:void 0,textEdit:{range:_(n.range),text:n.newText}})}return{edits:r}}var We=class{constructor(e){this._worker=e}provideDocumentSymbols(e,r){const i=e.uri;return this._worker(i).then(t=>t.findDocumentSymbols(i.toString())).then(t=>{if(t)return t.map(n=>({name:n.name,detail:"",containerName:n.containerName,kind:pn(n.kind),range:_(n.location.range),selectionRange:_(n.location.range),tags:[]}))})}};function pn(e){let r=c.languages.SymbolKind;switch(e){case h.File:return r.Array;case h.Module:return r.Module;case h.Namespace:return r.Namespace;case h.Package:return r.Package;case h.Class:return r.Class;case h.Method:return r.Method;case h.Property:return r.Property;case h.Field:return r.Field;case h.Constructor:return r.Constructor;case h.Enum:return r.Enum;case h.Interface:return r.Interface;case h.Function:return r.Function;case h.Variable:return r.Variable;case h.Constant:return r.Constant;case h.String:return r.String;case h.Number:return r.Number;case h.Boolean:return r.Boolean;case h.Array:return r.Array}return r.Function}var vn=class{constructor(e){this._worker=e}provideLinks(e,r){const i=e.uri;return this._worker(i).then(t=>t.findDocumentLinks(i.toString())).then(t=>{if(t)return{links:t.map(n=>({range:_(n.range),url:n.target}))}})}},Ve=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,r,i){const t=e.uri;return this._worker(t).then(n=>n.format(t.toString(),null,Ke(r)).then(o=>{if(!(!o||o.length===0))return o.map(R)}))}},He=class{constructor(e){k(this,"canFormatMultipleRanges",!1);this._worker=e}provideDocumentRangeFormattingEdits(e,r,i,t){const n=e.uri;return this._worker(n).then(o=>o.format(n.toString(),G(r),Ke(i)).then(a=>{if(!(!a||a.length===0))return a.map(R)}))}};function Ke(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var ze=class{constructor(e){this._worker=e}provideDocumentColors(e,r){const i=e.uri;return this._worker(i).then(t=>t.findDocumentColors(i.toString())).then(t=>{if(t)return t.map(n=>({color:n.color,range:_(n.range)}))})}provideColorPresentations(e,r,i){const t=e.uri;return this._worker(t).then(n=>n.getColorPresentations(t.toString(),r.color,G(r.range))).then(n=>{if(n)return n.map(o=>{let a={label:o.label};return o.textEdit&&(a.textEdit=R(o.textEdit)),o.additionalTextEdits&&(a.additionalTextEdits=o.additionalTextEdits.map(R)),a})})}},Xe=class{constructor(e){this._worker=e}provideFoldingRanges(e,r,i){const t=e.uri;return this._worker(t).then(n=>n.getFoldingRanges(t.toString(),r)).then(n=>{if(n)return n.map(o=>{const a={start:o.startLine+1,end:o.endLine+1};return typeof o.kind<"u"&&(a.kind=mn(o.kind)),a})})}};function mn(e){switch(e){case T.Comment:return c.languages.FoldingRangeKind.Comment;case T.Imports:return c.languages.FoldingRangeKind.Imports;case T.Region:return c.languages.FoldingRangeKind.Region}}var Be=class{constructor(e){this._worker=e}provideSelectionRanges(e,r,i){const t=e.uri;return this._worker(t).then(n=>n.getSelectionRanges(t.toString(),r.map(x))).then(n=>{if(n)return n.map(o=>{const a=[];for(;o;)a.push({range:_(o.range)}),o=o.parent;return a})})}};function _n(e){const r=[],i=[],t=new Z(e);r.push(t);const n=(...a)=>t.getLanguageServiceWorker(...a);function o(){const{languageId:a,modeConfiguration:u}=e;qe(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(a,new Me(n,["/","-",":"]))),u.hovers&&i.push(c.languages.registerHoverProvider(a,new Pe(n))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(a,new Le(n))),u.definitions&&i.push(c.languages.registerDefinitionProvider(a,new je(n))),u.references&&i.push(c.languages.registerReferenceProvider(a,new Ne(n))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(a,new We(n))),u.rename&&i.push(c.languages.registerRenameProvider(a,new Ue(n))),u.colors&&i.push(c.languages.registerColorProvider(a,new ze(n))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(a,new Xe(n))),u.diagnostics&&i.push(new De(a,n,e.onDidChange)),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(a,new Be(n))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(a,new Ve(n))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(a,new He(n)))}return o(),r.push($e(i)),$e(r)}function $e(e){return{dispose:()=>qe(e)}}function qe(e){for(;e.length;)e.pop().dispose()}export{Me as CompletionAdapter,je as DefinitionAdapter,De as DiagnosticsAdapter,ze as DocumentColorAdapter,Ve as DocumentFormattingEditProvider,Le as DocumentHighlightAdapter,vn as DocumentLinkAdapter,He as DocumentRangeFormattingEditProvider,We as DocumentSymbolAdapter,Xe as FoldingRangeAdapter,Pe as HoverAdapter,Ne as ReferenceAdapter,Ue as RenameAdapter,Be as SelectionRangeAdapter,Z as WorkerManager,x as fromPosition,G as fromRange,_n as setupMode,_ as toRange,R as toTextEdit}; diff --git a/assets/freemarker2-f59b9bf4.js b/assets/freemarker2-f9103699.js similarity index 83% rename from assets/freemarker2-f59b9bf4.js rename to assets/freemarker2-f9103699.js index dcb2b01..3b2da5e 100644 --- a/assets/freemarker2-f59b9bf4.js +++ b/assets/freemarker2-f9103699.js @@ -1,3 +1,8 @@ -import{m as S,__tla as P}from"./index-98f94ad6.js";import{__tla as I}from"./index-713b12db.js";let f,F,b,x,$,D,y=Promise.all([(()=>{try{return P}catch{}})(),(()=>{try{return I}catch{}})()]).then(async()=>{var E=Object.defineProperty,B=Object.getOwnPropertyDescriptor,C=Object.getOwnPropertyNames,v=Object.prototype.hasOwnProperty,g=(t,n,i,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of C(n))!v.call(t,o)&&o!==i&&E(t,o,{get:()=>n[o],enumerable:!(e=B(n,o))||e.enumerable});return t},w=(t,n,i)=>(g(t,n,"default"),i&&g(i,n,"default")),r={};w(r,S);var u=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],c=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},s={close:"\\]",id:"bracket",open:"\\["},h={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function d(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:` -\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${c.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${c.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${u.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${u.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function A(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:` -\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${c.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${c.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${u.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${u.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function _(t,n){const i=`_${t.id}_${n.id}`,e=l=>l.replace(/__id__/g,i),o=l=>{const T=l.source.replace(/__id__/g,i);return new RegExp(T,l.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function m(t){const n=_(a,t),i=_(s,t),e=_(h,t);return{...n,...i,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,...i.tokenizer,...e.tokenizer}}}F={conf:d(a),language:_(a,k)},D={conf:d(s),language:_(s,k)},f={conf:d(a),language:_(a,p)},$={conf:d(s),language:_(s,p)},x={conf:A(),language:m(k)},b={conf:A(),language:m(p)}});export{f as TagAngleInterpolationBracket,F as TagAngleInterpolationDollar,b as TagAutoInterpolationBracket,x as TagAutoInterpolationDollar,$ as TagBracketInterpolationBracket,D as TagBracketInterpolationDollar,y as __tla}; +import{m as F}from"./index-fbc129af.js";import"./index-26445b65.js";import"./index-a62fcf84.js";/*!----------------------------------------------------------------------------- +* Copyright (c) Microsoft Corporation. All rights reserved. +* Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773) +* Released under the MIT license +* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt +*-----------------------------------------------------------------------------*/var b=Object.defineProperty,x=Object.getOwnPropertyDescriptor,$=Object.getOwnPropertyNames,D=Object.prototype.hasOwnProperty,g=(t,n,i,e)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of $(n))!D.call(t,o)&&o!==i&&b(t,o,{get:()=>n[o],enumerable:!(e=x(n,o))||e.enumerable});return t},E=(t,n,i)=>(g(t,n,"default"),i&&g(i,n,"default")),r={};E(r,F);var c=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},s={close:"\\]",id:"bracket",open:"\\["},B={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:` +\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${d.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${c.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${c.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function A(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:` +\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${d.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${c.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${c.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:r.languages.IndentAction.Indent}}]}}function _(t,n){const i=`_${t.id}_${n.id}`,e=u=>u.replace(/__id__/g,i),o=u=>{const f=u.source.replace(/__id__/g,i);return new RegExp(f,u.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function m(t){const n=_(a,t),i=_(s,t),e=_(B,t);return{...n,...i,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,...i.tokenizer,...e.tokenizer}}}var C={conf:l(a),language:_(a,k)},v={conf:l(s),language:_(s,k)},w={conf:l(a),language:_(a,p)},h={conf:l(s),language:_(s,p)},T={conf:A(),language:m(k)},S={conf:A(),language:m(p)};export{w as TagAngleInterpolationBracket,C as TagAngleInterpolationDollar,S as TagAutoInterpolationBracket,T as TagAutoInterpolationDollar,h as TagBracketInterpolationBracket,v as TagBracketInterpolationDollar}; diff --git a/assets/handlebars-17060dc1.js b/assets/handlebars-17060dc1.js new file mode 100644 index 0000000..cac5c26 --- /dev/null +++ b/assets/handlebars-17060dc1.js @@ -0,0 +1,6 @@ +import{m as i}from"./index-fbc129af.js";import"./index-26445b65.js";import"./index-a62fcf84.js";/*!----------------------------------------------------------------------------- +* Copyright (c) Microsoft Corporation. All rights reserved. +* Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773) +* Released under the MIT license +* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt +*-----------------------------------------------------------------------------*/var s=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,l=(t,e,a,m)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of c(e))!p.call(t,n)&&n!==a&&s(t,n,{get:()=>e[n],enumerable:!(m=d(e,n))||m.enumerable});return t},h=(t,e,a)=>(l(t,e,"default"),a&&l(a,e,"default")),r={};h(r,i);var o=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],b={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:r.languages.IndentAction.Indent}}]},u={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{b as conf,u as language}; diff --git a/assets/handlebars-1e178fc8.js b/assets/handlebars-1e178fc8.js deleted file mode 100644 index 2f53249..0000000 --- a/assets/handlebars-1e178fc8.js +++ /dev/null @@ -1 +0,0 @@ -import{m as u,__tla as y}from"./index-98f94ad6.js";import{__tla as k}from"./index-713b12db.js";let i,s,x=Promise.all([(()=>{try{return y}catch{}})(),(()=>{try{return k}catch{}})()]).then(async()=>{var d=Object.defineProperty,c=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,h=Object.prototype.hasOwnProperty,m=(t,e,a,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of p(e))!h.call(t,n)&&n!==a&&d(t,n,{get:()=>e[n],enumerable:!(o=c(e,n))||o.enumerable});return t},b=(t,e,a)=>(m(t,e,"default"),a&&m(a,e,"default")),r={};b(r,u);let l;l=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[[""],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:r.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${l.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:r.languages.IndentAction.Indent}}]},s={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}}});export{x as __tla,i as conf,s as language}; diff --git a/assets/html-36fdb4fb.js b/assets/html-36fdb4fb.js new file mode 100644 index 0000000..7278fca --- /dev/null +++ b/assets/html-36fdb4fb.js @@ -0,0 +1,6 @@ +import{m as d}from"./index-fbc129af.js";import"./index-26445b65.js";import"./index-a62fcf84.js";/*!----------------------------------------------------------------------------- +* Copyright (c) Microsoft Corporation. All rights reserved. +* Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773) +* Released under the MIT license +* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt +*-----------------------------------------------------------------------------*/var m=Object.defineProperty,p=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,a=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of l(e))!c.call(t,n)&&n!==r&&m(t,n,{get:()=>e[n],enumerable:!(o=p(e,n))||o.enumerable});return t},u=(t,e,r)=>(a(t,e,"default"),r&&a(r,e,"default")),i={};u(i,d);var s=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],b={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${s.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${s.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},x={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{b as conf,x as language}; diff --git a/assets/html-aae5b404.js b/assets/html-aae5b404.js deleted file mode 100644 index a93df24..0000000 --- a/assets/html-aae5b404.js +++ /dev/null @@ -1 +0,0 @@ -import{m as y,__tla as x}from"./index-98f94ad6.js";import{__tla as k}from"./index-713b12db.js";let d,l,g=Promise.all([(()=>{try{return x}catch{}})(),(()=>{try{return k}catch{}})()]).then(async()=>{var m=Object.defineProperty,p=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,a=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of c(e))!u.call(t,n)&&n!==r&&m(t,n,{get:()=>e[n],enumerable:!(s=p(e,n))||s.enumerable});return t},b=(t,e,r)=>(a(t,e,"default"),r&&a(r,e,"default")),i={};b(i,y);let o;o=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],d={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:[""]},brackets:[[""],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${o.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:i.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${o.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:i.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*"),end:new RegExp("^\\s*")}}},l={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}});export{g as __tla,d as conf,l as language}; diff --git a/assets/htmlMode-14b6b722.js b/assets/htmlMode-14b6b722.js new file mode 100644 index 0000000..2333bed --- /dev/null +++ b/assets/htmlMode-14b6b722.js @@ -0,0 +1,9 @@ +var $e=Object.defineProperty;var qe=(e,r,i)=>r in e?$e(e,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[r]=i;var k=(e,r,i)=>(qe(e,typeof r!="symbol"?r+"":r,i),i);import{m as Qe}from"./index-fbc129af.js";import"./index-26445b65.js";import"./index-a62fcf84.js";/*!----------------------------------------------------------------------------- +* Copyright (c) Microsoft Corporation. All rights reserved. +* Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773) +* Released under the MIT license +* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt +*-----------------------------------------------------------------------------*/var Ge=Object.defineProperty,Je=Object.getOwnPropertyDescriptor,Ye=Object.getOwnPropertyNames,Ze=Object.prototype.hasOwnProperty,ue=(e,r,i,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of Ye(r))!Ze.call(e,t)&&t!==i&&Ge(e,t,{get:()=>r[t],enumerable:!(n=Je(r,t))||n.enumerable});return e},et=(e,r,i)=>(ue(e,r,"default"),i&&ue(i,r,"default")),c={};et(c,Qe);var tt=2*60*1e3,z=class{constructor(e){k(this,"_defaults");k(this,"_idleCheckInterval");k(this,"_lastUsedTime");k(this,"_configChangeListener");k(this,"_worker");k(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>tt&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let r;return this._getClient().then(i=>{r=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>r)}},ce;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647})(ce||(ce={}));var N;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(N||(N={}));var b;(function(e){function r(n,t){return n===Number.MAX_VALUE&&(n=N.MAX_VALUE),t===Number.MAX_VALUE&&(t=N.MAX_VALUE),{line:n,character:t}}e.create=r;function i(n){var t=n;return s.objectLiteral(t)&&s.uinteger(t.line)&&s.uinteger(t.character)}e.is=i})(b||(b={}));var p;(function(e){function r(n,t,o,a){if(s.uinteger(n)&&s.uinteger(t)&&s.uinteger(o)&&s.uinteger(a))return{start:b.create(n,t),end:b.create(o,a)};if(b.is(n)&&b.is(t))return{start:n,end:t};throw new Error("Range#create called with invalid arguments["+n+", "+t+", "+o+", "+a+"]")}e.create=r;function i(n){var t=n;return s.objectLiteral(t)&&b.is(t.start)&&b.is(t.end)}e.is=i})(p||(p={}));var X;(function(e){function r(n,t){return{uri:n,range:t}}e.create=r;function i(n){var t=n;return s.defined(t)&&p.is(t.range)&&(s.string(t.uri)||s.undefined(t.uri))}e.is=i})(X||(X={}));var de;(function(e){function r(n,t,o,a){return{targetUri:n,targetRange:t,targetSelectionRange:o,originSelectionRange:a}}e.create=r;function i(n){var t=n;return s.defined(t)&&p.is(t.targetRange)&&s.string(t.targetUri)&&(p.is(t.targetSelectionRange)||s.undefined(t.targetSelectionRange))&&(p.is(t.originSelectionRange)||s.undefined(t.originSelectionRange))}e.is=i})(de||(de={}));var B;(function(e){function r(n,t,o,a){return{red:n,green:t,blue:o,alpha:a}}e.create=r;function i(n){var t=n;return s.numberRange(t.red,0,1)&&s.numberRange(t.green,0,1)&&s.numberRange(t.blue,0,1)&&s.numberRange(t.alpha,0,1)}e.is=i})(B||(B={}));var ge;(function(e){function r(n,t){return{range:n,color:t}}e.create=r;function i(n){var t=n;return p.is(t.range)&&B.is(t.color)}e.is=i})(ge||(ge={}));var le;(function(e){function r(n,t,o){return{label:n,textEdit:t,additionalTextEdits:o}}e.create=r;function i(n){var t=n;return s.string(t.label)&&(s.undefined(t.textEdit)||E.is(t))&&(s.undefined(t.additionalTextEdits)||s.typedArray(t.additionalTextEdits,E.is))}e.is=i})(le||(le={}));var T;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(T||(T={}));var fe;(function(e){function r(n,t,o,a,u){var l={startLine:n,endLine:t};return s.defined(o)&&(l.startCharacter=o),s.defined(a)&&(l.endCharacter=a),s.defined(u)&&(l.kind=u),l}e.create=r;function i(n){var t=n;return s.uinteger(t.startLine)&&s.uinteger(t.startLine)&&(s.undefined(t.startCharacter)||s.uinteger(t.startCharacter))&&(s.undefined(t.endCharacter)||s.uinteger(t.endCharacter))&&(s.undefined(t.kind)||s.string(t.kind))}e.is=i})(fe||(fe={}));var $;(function(e){function r(n,t){return{location:n,message:t}}e.create=r;function i(n){var t=n;return s.defined(t)&&X.is(t.location)&&s.string(t.message)}e.is=i})($||($={}));var A;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(A||(A={}));var he;(function(e){e.Unnecessary=1,e.Deprecated=2})(he||(he={}));var ve;(function(e){function r(i){var n=i;return n!=null&&s.string(n.href)}e.is=r})(ve||(ve={}));var U;(function(e){function r(n,t,o,a,u,l){var d={range:n,message:t};return s.defined(o)&&(d.severity=o),s.defined(a)&&(d.code=a),s.defined(u)&&(d.source=u),s.defined(l)&&(d.relatedInformation=l),d}e.create=r;function i(n){var t,o=n;return s.defined(o)&&p.is(o.range)&&s.string(o.message)&&(s.number(o.severity)||s.undefined(o.severity))&&(s.integer(o.code)||s.string(o.code)||s.undefined(o.code))&&(s.undefined(o.codeDescription)||s.string((t=o.codeDescription)===null||t===void 0?void 0:t.href))&&(s.string(o.source)||s.undefined(o.source))&&(s.undefined(o.relatedInformation)||s.typedArray(o.relatedInformation,$.is))}e.is=i})(U||(U={}));var D;(function(e){function r(n,t){for(var o=[],a=2;a0&&(u.arguments=o),u}e.create=r;function i(n){var t=n;return s.defined(t)&&s.string(t.title)&&s.string(t.command)}e.is=i})(D||(D={}));var E;(function(e){function r(o,a){return{range:o,newText:a}}e.replace=r;function i(o,a){return{range:{start:o,end:o},newText:a}}e.insert=i;function n(o){return{range:o,newText:""}}e.del=n;function t(o){var a=o;return s.objectLiteral(a)&&s.string(a.newText)&&p.is(a.range)}e.is=t})(E||(E={}));var S;(function(e){function r(n,t,o){var a={label:n};return t!==void 0&&(a.needsConfirmation=t),o!==void 0&&(a.description=o),a}e.create=r;function i(n){var t=n;return t!==void 0&&s.objectLiteral(t)&&s.string(t.label)&&(s.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(s.string(t.description)||t.description===void 0)}e.is=i})(S||(S={}));var m;(function(e){function r(i){var n=i;return typeof n=="string"}e.is=r})(m||(m={}));var C;(function(e){function r(o,a,u){return{range:o,newText:a,annotationId:u}}e.replace=r;function i(o,a,u){return{range:{start:o,end:o},newText:a,annotationId:u}}e.insert=i;function n(o,a){return{range:o,newText:"",annotationId:a}}e.del=n;function t(o){var a=o;return E.is(a)&&(S.is(a.annotationId)||m.is(a.annotationId))}e.is=t})(C||(C={}));var W;(function(e){function r(n,t){return{textDocument:n,edits:t}}e.create=r;function i(n){var t=n;return s.defined(t)&&H.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(W||(W={}));var P;(function(e){function r(n,t,o){var a={kind:"create",uri:n};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(a.options=t),o!==void 0&&(a.annotationId=o),a}e.create=r;function i(n){var t=n;return t&&t.kind==="create"&&s.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(P||(P={}));var M;(function(e){function r(n,t,o,a){var u={kind:"rename",oldUri:n,newUri:t};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(u.options=o),a!==void 0&&(u.annotationId=a),u}e.create=r;function i(n){var t=n;return t&&t.kind==="rename"&&s.string(t.oldUri)&&s.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(M||(M={}));var F;(function(e){function r(n,t,o){var a={kind:"delete",uri:n};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(a.options=t),o!==void 0&&(a.annotationId=o),a}e.create=r;function i(n){var t=n;return t&&t.kind==="delete"&&s.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||s.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||s.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(F||(F={}));var q;(function(e){function r(i){var n=i;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(function(t){return s.string(t.kind)?P.is(t)||M.is(t)||F.is(t):W.is(t)}))}e.is=r})(q||(q={}));var V=function(){function e(r,i){this.edits=r,this.changeAnnotations=i}return e.prototype.insert=function(r,i,n){var t,o;if(n===void 0?t=E.insert(r,i):m.is(n)?(o=n,t=C.insert(r,i,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),t=C.insert(r,i,o)),this.edits.push(t),o!==void 0)return o},e.prototype.replace=function(r,i,n){var t,o;if(n===void 0?t=E.replace(r,i):m.is(n)?(o=n,t=C.replace(r,i,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),t=C.replace(r,i,o)),this.edits.push(t),o!==void 0)return o},e.prototype.delete=function(r,i){var n,t;if(i===void 0?n=E.del(r):m.is(i)?(t=i,n=C.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),n=C.del(r,t)),this.edits.push(n),t!==void 0)return t},e.prototype.add=function(r){this.edits.push(r)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),pe=function(){function e(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(r,i){var n;if(m.is(r)?n=r:(n=this.nextId(),i=r),this._annotations[n]!==void 0)throw new Error("Id "+n+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+n);return this._annotations[n]=i,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new pe(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(n){if(W.is(n)){var t=new V(n.edits,i._changeAnnotations);i._textEditChanges[n.textDocument.uri]=t}})):r.changes&&Object.keys(r.changes).forEach(function(n){var t=new V(r.changes[n]);i._textEditChanges[n]=t})):this._workspaceEdit={}}return Object.defineProperty(e.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}),e.prototype.getTextEditChange=function(r){if(H.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},n=this._textEditChanges[i.uri];if(!n){var t=[],o={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(o),n=new V(t,this._changeAnnotations),this._textEditChanges[i.uri]=n}return n}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var n=this._textEditChanges[r];if(!n){var t=[];this._workspaceEdit.changes[r]=t,n=new V(t),this._textEditChanges[r]=n}return n}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new pe,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(r,i,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;S.is(i)||m.is(i)?t=i:n=i;var o,a;if(t===void 0?o=P.create(r,n):(a=m.is(t)?t:this._changeAnnotations.manage(t),o=P.create(r,n,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},e.prototype.renameFile=function(r,i,n,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;S.is(n)||m.is(n)?o=n:t=n;var a,u;if(o===void 0?a=M.create(r,i,t):(u=m.is(o)?o:this._changeAnnotations.manage(o),a=M.create(r,i,t,u)),this._workspaceEdit.documentChanges.push(a),u!==void 0)return u},e.prototype.deleteFile=function(r,i,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;S.is(i)||m.is(i)?t=i:n=i;var o,a;if(t===void 0?o=F.create(r,n):(a=m.is(t)?t:this._changeAnnotations.manage(t),o=F.create(r,n,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},e})();var me;(function(e){function r(n){return{uri:n}}e.create=r;function i(n){var t=n;return s.defined(t)&&s.string(t.uri)}e.is=i})(me||(me={}));var _e;(function(e){function r(n,t){return{uri:n,version:t}}e.create=r;function i(n){var t=n;return s.defined(t)&&s.string(t.uri)&&s.integer(t.version)}e.is=i})(_e||(_e={}));var H;(function(e){function r(n,t){return{uri:n,version:t}}e.create=r;function i(n){var t=n;return s.defined(t)&&s.string(t.uri)&&(t.version===null||s.integer(t.version))}e.is=i})(H||(H={}));var we;(function(e){function r(n,t,o,a){return{uri:n,languageId:t,version:o,text:a}}e.create=r;function i(n){var t=n;return s.defined(t)&&s.string(t.uri)&&s.string(t.languageId)&&s.integer(t.version)&&s.string(t.text)}e.is=i})(we||(we={}));var L;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(L||(L={})),function(e){function r(i){var n=i;return n===e.PlainText||n===e.Markdown}e.is=r}(L||(L={}));var Q;(function(e){function r(i){var n=i;return s.objectLiteral(i)&&L.is(n.kind)&&s.string(n.value)}e.is=r})(Q||(Q={}));var f;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(f||(f={}));var G;(function(e){e.PlainText=1,e.Snippet=2})(G||(G={}));var ke;(function(e){e.Deprecated=1})(ke||(ke={}));var be;(function(e){function r(n,t,o){return{newText:n,insert:t,replace:o}}e.create=r;function i(n){var t=n;return t&&s.string(t.newText)&&p.is(t.insert)&&p.is(t.replace)}e.is=i})(be||(be={}));var ye;(function(e){e.asIs=1,e.adjustIndentation=2})(ye||(ye={}));var Ee;(function(e){function r(i){return{label:i}}e.create=r})(Ee||(Ee={}));var Ce;(function(e){function r(i,n){return{items:i||[],isIncomplete:!!n}}e.create=r})(Ce||(Ce={}));var K;(function(e){function r(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=r;function i(n){var t=n;return s.string(t)||s.objectLiteral(t)&&s.string(t.language)&&s.string(t.value)}e.is=i})(K||(K={}));var xe;(function(e){function r(i){var n=i;return!!n&&s.objectLiteral(n)&&(Q.is(n.contents)||K.is(n.contents)||s.typedArray(n.contents,K.is))&&(i.range===void 0||p.is(i.range))}e.is=r})(xe||(xe={}));var Ie;(function(e){function r(i,n){return n?{label:i,documentation:n}:{label:i}}e.create=r})(Ie||(Ie={}));var Ae;(function(e){function r(i,n){for(var t=[],o=2;o=0;v--){var w=l[v],y=o.offsetAt(w.range.start),g=o.offsetAt(w.range.end);if(g<=d)u=u.substring(0,y)+w.newText+u.substring(g,u.length);else throw new Error("Overlapping edit");d=y}return u}e.applyEdits=n;function t(o,a){if(o.length<=1)return o;var u=o.length/2|0,l=o.slice(0,u),d=o.slice(u);t(l,a),t(d,a);for(var v=0,w=0,y=0;v0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets},e.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),n=0,t=i.length;if(t===0)return b.create(0,r);for(;nr?t=o:n=o+1}var a=n-1;return b.create(a,r-i[a])},e.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var n=i[r.line],t=r.line+1"u"}e.undefined=n;function t(g){return g===!0||g===!1}e.boolean=t;function o(g){return r.call(g)==="[object String]"}e.string=o;function a(g){return r.call(g)==="[object Number]"}e.number=a;function u(g,I,O){return r.call(g)==="[object Number]"&&I<=g&&g<=O}e.numberRange=u;function l(g){return r.call(g)==="[object Number]"&&-2147483648<=g&&g<=2147483647}e.integer=l;function d(g){return r.call(g)==="[object Number]"&&0<=g&&g<=2147483647}e.uinteger=d;function v(g){return r.call(g)==="[object Function]"}e.func=v;function w(g){return g!==null&&typeof g=="object"}e.objectLiteral=w;function y(g,I){return Array.isArray(g)&&g.every(I)}e.typedArray=y})(s||(s={}));var rt=class{constructor(e,r,i){k(this,"_disposables",[]);k(this,"_listener",Object.create(null));this._languageId=e,this._worker=r;const n=o=>{let a=o.getLanguageId();if(a!==this._languageId)return;let u;this._listener[o.uri.toString()]=o.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(o.uri,a),500)}),this._doValidate(o.uri,a)},t=o=>{c.editor.setModelMarkers(o,this._languageId,[]);let a=o.uri.toString(),u=this._listener[a];u&&(u.dispose(),delete this._listener[a])};this._disposables.push(c.editor.onDidCreateModel(n)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(o=>{t(o.model),n(o.model)})),this._disposables.push(i(o=>{c.editor.getModels().forEach(a=>{a.getLanguageId()===this._languageId&&(t(a),n(a))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let o in this._listener)this._listener[o].dispose()}}),c.editor.getModels().forEach(n)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,r){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const n=i.map(o=>ot(e,o));let t=c.editor.getModel(e);t&&t.getLanguageId()===r&&c.editor.setModelMarkers(t,r,n)}).then(void 0,i=>{console.error(i)})}};function it(e){switch(e){case A.Error:return c.MarkerSeverity.Error;case A.Warning:return c.MarkerSeverity.Warning;case A.Information:return c.MarkerSeverity.Info;case A.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function ot(e,r){let i=typeof r.code=="number"?String(r.code):r.code;return{severity:it(r.severity),startLineNumber:r.range.start.line+1,startColumn:r.range.start.character+1,endLineNumber:r.range.end.line+1,endColumn:r.range.end.character+1,message:r.message,code:i,source:r.source}}var We=class{constructor(e,r){this._worker=e,this._triggerCharacters=r}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,r,i,n){const t=e.uri;return this._worker(t).then(o=>o.doComplete(t.toString(),x(r))).then(o=>{if(!o)return;const a=e.getWordUntilPosition(r),u=new c.Range(r.lineNumber,a.startColumn,r.lineNumber,a.endColumn),l=o.items.map(d=>{const v={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:ut(d.command),range:u,kind:st(d.kind)};return d.textEdit&&(at(d.textEdit)?v.range={insert:_(d.textEdit.insert),replace:_(d.textEdit.replace)}:v.range=_(d.textEdit.range),v.insertText=d.textEdit.newText),d.additionalTextEdits&&(v.additionalTextEdits=d.additionalTextEdits.map(R)),d.insertTextFormat===G.Snippet&&(v.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),v});return{isIncomplete:o.isIncomplete,suggestions:l}})}};function x(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function J(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function _(e){if(e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function at(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function st(e){const r=c.languages.CompletionItemKind;switch(e){case f.Text:return r.Text;case f.Method:return r.Method;case f.Function:return r.Function;case f.Constructor:return r.Constructor;case f.Field:return r.Field;case f.Variable:return r.Variable;case f.Class:return r.Class;case f.Interface:return r.Interface;case f.Module:return r.Module;case f.Property:return r.Property;case f.Unit:return r.Unit;case f.Value:return r.Value;case f.Enum:return r.Enum;case f.Keyword:return r.Keyword;case f.Snippet:return r.Snippet;case f.Color:return r.Color;case f.File:return r.File;case f.Reference:return r.Reference}return r.Property}function R(e){if(e)return{range:_(e.range),text:e.newText}}function ut(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}var Y=class{constructor(e){this._worker=e}provideHover(e,r,i){let n=e.uri;return this._worker(n).then(t=>t.doHover(n.toString(),x(r))).then(t=>{if(t)return{range:_(t.range),contents:dt(t.contents)}})}};function ct(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Ve(e){return typeof e=="string"?{value:e}:ct(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` +`+e.value+"\n```\n"}}function dt(e){if(e)return Array.isArray(e)?e.map(Ve):[Ve(e)]}var Z=class{constructor(e){this._worker=e}provideDocumentHighlights(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.findDocumentHighlights(n.toString(),x(r))).then(t=>{if(t)return t.map(o=>({range:_(o.range),kind:gt(o.kind)}))})}};function gt(e){switch(e){case j.Read:return c.languages.DocumentHighlightKind.Read;case j.Write:return c.languages.DocumentHighlightKind.Write;case j.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}var lt=class{constructor(e){this._worker=e}provideDefinition(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.findDefinition(n.toString(),x(r))).then(t=>{if(t)return[He(t)]})}};function He(e){return{uri:c.Uri.parse(e.uri),range:_(e.range)}}var ft=class{constructor(e){this._worker=e}provideReferences(e,r,i,n){const t=e.uri;return this._worker(t).then(o=>o.findReferences(t.toString(),x(r))).then(o=>{if(o)return o.map(He)})}},ee=class{constructor(e){this._worker=e}provideRenameEdits(e,r,i,n){const t=e.uri;return this._worker(t).then(o=>o.doRename(t.toString(),x(r),i)).then(o=>ht(o))}};function ht(e){if(!e||!e.changes)return;let r=[];for(let i in e.changes){const n=c.Uri.parse(i);for(let t of e.changes[i])r.push({resource:n,versionId:void 0,textEdit:{range:_(t.range),text:t.newText}})}return{edits:r}}var te=class{constructor(e){this._worker=e}provideDocumentSymbols(e,r){const i=e.uri;return this._worker(i).then(n=>n.findDocumentSymbols(i.toString())).then(n=>{if(n)return n.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:vt(t.kind),range:_(t.location.range),selectionRange:_(t.location.range),tags:[]}))})}};function vt(e){let r=c.languages.SymbolKind;switch(e){case h.File:return r.Array;case h.Module:return r.Module;case h.Namespace:return r.Namespace;case h.Package:return r.Package;case h.Class:return r.Class;case h.Method:return r.Method;case h.Property:return r.Property;case h.Field:return r.Field;case h.Constructor:return r.Constructor;case h.Enum:return r.Enum;case h.Interface:return r.Interface;case h.Function:return r.Function;case h.Variable:return r.Variable;case h.Constant:return r.Constant;case h.String:return r.String;case h.Number:return r.Number;case h.Boolean:return r.Boolean;case h.Array:return r.Array}return r.Function}var ne=class{constructor(e){this._worker=e}provideLinks(e,r){const i=e.uri;return this._worker(i).then(n=>n.findDocumentLinks(i.toString())).then(n=>{if(n)return{links:n.map(t=>({range:_(t.range),url:t.target}))}})}},re=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.format(n.toString(),null,Ke(r)).then(o=>{if(!(!o||o.length===0))return o.map(R)}))}},ie=class{constructor(e){k(this,"canFormatMultipleRanges",!1);this._worker=e}provideDocumentRangeFormattingEdits(e,r,i,n){const t=e.uri;return this._worker(t).then(o=>o.format(t.toString(),J(r),Ke(i)).then(a=>{if(!(!a||a.length===0))return a.map(R)}))}};function Ke(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var pt=class{constructor(e){this._worker=e}provideDocumentColors(e,r){const i=e.uri;return this._worker(i).then(n=>n.findDocumentColors(i.toString())).then(n=>{if(n)return n.map(t=>({color:t.color,range:_(t.range)}))})}provideColorPresentations(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.getColorPresentations(n.toString(),r.color,J(r.range))).then(t=>{if(t)return t.map(o=>{let a={label:o.label};return o.textEdit&&(a.textEdit=R(o.textEdit)),o.additionalTextEdits&&(a.additionalTextEdits=o.additionalTextEdits.map(R)),a})})}},oe=class{constructor(e){this._worker=e}provideFoldingRanges(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.getFoldingRanges(n.toString(),r)).then(t=>{if(t)return t.map(o=>{const a={start:o.startLine+1,end:o.endLine+1};return typeof o.kind<"u"&&(a.kind=mt(o.kind)),a})})}};function mt(e){switch(e){case T.Comment:return c.languages.FoldingRangeKind.Comment;case T.Imports:return c.languages.FoldingRangeKind.Imports;case T.Region:return c.languages.FoldingRangeKind.Region}}var ae=class{constructor(e){this._worker=e}provideSelectionRanges(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.getSelectionRanges(n.toString(),r.map(x))).then(t=>{if(t)return t.map(o=>{const a=[];for(;o;)a.push({range:_(o.range)}),o=o.parent;return a})})}},ze=class extends We{constructor(e){super(e,[".",":","<",'"',"=","/"])}};function _t(e){const r=new z(e),i=(...t)=>r.getLanguageServiceWorker(...t);let n=e.languageId;c.languages.registerCompletionItemProvider(n,new ze(i)),c.languages.registerHoverProvider(n,new Y(i)),c.languages.registerDocumentHighlightProvider(n,new Z(i)),c.languages.registerLinkProvider(n,new ne(i)),c.languages.registerFoldingRangeProvider(n,new oe(i)),c.languages.registerDocumentSymbolProvider(n,new te(i)),c.languages.registerSelectionRangeProvider(n,new ae(i)),c.languages.registerRenameProvider(n,new ee(i)),n==="html"&&(c.languages.registerDocumentFormattingEditProvider(n,new re(i)),c.languages.registerDocumentRangeFormattingEditProvider(n,new ie(i)))}function wt(e){const r=[],i=[],n=new z(e);r.push(n);const t=(...a)=>n.getLanguageServiceWorker(...a);function o(){const{languageId:a,modeConfiguration:u}=e;Be(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(a,new ze(t))),u.hovers&&i.push(c.languages.registerHoverProvider(a,new Y(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(a,new Z(t))),u.links&&i.push(c.languages.registerLinkProvider(a,new ne(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(a,new te(t))),u.rename&&i.push(c.languages.registerRenameProvider(a,new ee(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(a,new oe(t))),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(a,new ae(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(a,new re(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(a,new ie(t)))}return o(),r.push(Xe(i)),Xe(r)}function Xe(e){return{dispose:()=>Be(e)}}function Be(e){for(;e.length;)e.pop().dispose()}export{We as CompletionAdapter,lt as DefinitionAdapter,rt as DiagnosticsAdapter,pt as DocumentColorAdapter,re as DocumentFormattingEditProvider,Z as DocumentHighlightAdapter,ne as DocumentLinkAdapter,ie as DocumentRangeFormattingEditProvider,te as DocumentSymbolAdapter,oe as FoldingRangeAdapter,Y as HoverAdapter,ft as ReferenceAdapter,ee as RenameAdapter,ae as SelectionRangeAdapter,z as WorkerManager,x as fromPosition,J as fromRange,wt as setupMode,_t as setupMode1,_ as toRange,R as toTextEdit}; diff --git a/assets/htmlMode-8ac43aa5.js b/assets/htmlMode-8ac43aa5.js deleted file mode 100644 index db0b8aa..0000000 --- a/assets/htmlMode-8ac43aa5.js +++ /dev/null @@ -1,4 +0,0 @@ -var mt=Object.defineProperty;var _t=(A,y,S)=>y in A?mt(A,y,{enumerable:!0,configurable:!0,writable:!0,value:S}):A[y]=S;var b=(A,y,S)=>(_t(A,typeof y!="symbol"?y+"":y,S),S);import{m as wt,__tla as kt}from"./index-98f94ad6.js";import{__tla as bt}from"./index-713b12db.js";let ge,Je,Ye,Ze,$,q,Q,G,J,Y,Z,et,ee,te,ne,x,re,tt,nt,_,R,yt=Promise.all([(()=>{try{return kt}catch{}})(),(()=>{try{return bt}catch{}})()]).then(async()=>{var A=Object.defineProperty,y=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,rt=Object.prototype.hasOwnProperty,le=(e,r,i,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of S(r))!rt.call(e,t)&&t!==i&&A(e,t,{get:()=>r[t],enumerable:!(n=y(r,t))||n.enumerable});return e},it=(e,r,i)=>(le(e,r,"default"),i&&le(i,r,"default")),c={};it(c,wt);let fe,he;fe=2*60*1e3,ne=class{constructor(e){b(this,"_defaults");b(this,"_idleCheckInterval");b(this,"_lastUsedTime");b(this,"_configChangeListener");b(this,"_worker");b(this,"_client");this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>fe&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=c.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let r;return this._getClient().then(i=>{r=i}).then(i=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(i=>r)}},function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647}(he||(he={}));var W;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647})(W||(W={}));var k;(function(e){function r(n,t){return n===Number.MAX_VALUE&&(n=W.MAX_VALUE),t===Number.MAX_VALUE&&(t=W.MAX_VALUE),{line:n,character:t}}e.create=r;function i(n){var t=n;return s.objectLiteral(t)&&s.uinteger(t.line)&&s.uinteger(t.character)}e.is=i})(k||(k={}));var v;(function(e){function r(n,t,o,a){if(s.uinteger(n)&&s.uinteger(t)&&s.uinteger(o)&&s.uinteger(a))return{start:k.create(n,t),end:k.create(o,a)};if(k.is(n)&&k.is(t))return{start:n,end:t};throw new Error("Range#create called with invalid arguments["+n+", "+t+", "+o+", "+a+"]")}e.create=r;function i(n){var t=n;return s.objectLiteral(t)&&k.is(t.start)&&k.is(t.end)}e.is=i})(v||(v={}));var ie;(function(e){function r(n,t){return{uri:n,range:t}}e.create=r;function i(n){var t=n;return s.defined(t)&&v.is(t.range)&&(s.string(t.uri)||s.undefined(t.uri))}e.is=i})(ie||(ie={}));var pe;(function(e){function r(n,t,o,a){return{targetUri:n,targetRange:t,targetSelectionRange:o,originSelectionRange:a}}e.create=r;function i(n){var t=n;return s.defined(t)&&v.is(t.targetRange)&&s.string(t.targetUri)&&(v.is(t.targetSelectionRange)||s.undefined(t.targetSelectionRange))&&(v.is(t.originSelectionRange)||s.undefined(t.originSelectionRange))}e.is=i})(pe||(pe={}));var oe;(function(e){function r(n,t,o,a){return{red:n,green:t,blue:o,alpha:a}}e.create=r;function i(n){var t=n;return s.numberRange(t.red,0,1)&&s.numberRange(t.green,0,1)&&s.numberRange(t.blue,0,1)&&s.numberRange(t.alpha,0,1)}e.is=i})(oe||(oe={}));var ve;(function(e){function r(n,t){return{range:n,color:t}}e.create=r;function i(n){var t=n;return v.is(t.range)&&oe.is(t.color)}e.is=i})(ve||(ve={}));var me;(function(e){function r(n,t,o){return{label:n,textEdit:t,additionalTextEdits:o}}e.create=r;function i(n){var t=n;return s.string(t.label)&&(s.undefined(t.textEdit)||C.is(t))&&(s.undefined(t.additionalTextEdits)||s.typedArray(t.additionalTextEdits,C.is))}e.is=i})(me||(me={}));var M;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(M||(M={}));var _e;(function(e){function r(n,t,o,a,u){var l={startLine:n,endLine:t};return s.defined(o)&&(l.startCharacter=o),s.defined(a)&&(l.endCharacter=a),s.defined(u)&&(l.kind=u),l}e.create=r;function i(n){var t=n;return s.uinteger(t.startLine)&&s.uinteger(t.startLine)&&(s.undefined(t.startCharacter)||s.uinteger(t.startCharacter))&&(s.undefined(t.endCharacter)||s.uinteger(t.endCharacter))&&(s.undefined(t.kind)||s.string(t.kind))}e.is=i})(_e||(_e={}));var ae;(function(e){function r(n,t){return{location:n,message:t}}e.create=r;function i(n){var t=n;return s.defined(t)&&ie.is(t.location)&&s.string(t.message)}e.is=i})(ae||(ae={}));var T;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(T||(T={}));var we;(function(e){e.Unnecessary=1,e.Deprecated=2})(we||(we={}));var ke;(function(e){function r(i){var n=i;return n!=null&&s.string(n.href)}e.is=r})(ke||(ke={}));var V;(function(e){function r(n,t,o,a,u,l){var d={range:n,message:t};return s.defined(o)&&(d.severity=o),s.defined(a)&&(d.code=a),s.defined(u)&&(d.source=u),s.defined(l)&&(d.relatedInformation=l),d}e.create=r;function i(n){var t,o=n;return s.defined(o)&&v.is(o.range)&&s.string(o.message)&&(s.number(o.severity)||s.undefined(o.severity))&&(s.integer(o.code)||s.string(o.code)||s.undefined(o.code))&&(s.undefined(o.codeDescription)||s.string((t=o.codeDescription)===null||t===void 0?void 0:t.href))&&(s.string(o.source)||s.undefined(o.source))&&(s.undefined(o.relatedInformation)||s.typedArray(o.relatedInformation,ae.is))}e.is=i})(V||(V={}));var F;(function(e){function r(n,t){for(var o=[],a=2;a0&&(u.arguments=o),u}e.create=r;function i(n){var t=n;return s.defined(t)&&s.string(t.title)&&s.string(t.command)}e.is=i})(F||(F={}));var C;(function(e){function r(o,a){return{range:o,newText:a}}e.replace=r;function i(o,a){return{range:{start:o,end:o},newText:a}}e.insert=i;function n(o){return{range:o,newText:""}}e.del=n;function t(o){var a=o;return s.objectLiteral(a)&&s.string(a.newText)&&v.is(a.range)}e.is=t})(C||(C={}));var P;(function(e){function r(n,t,o){var a={label:n};return t!==void 0&&(a.needsConfirmation=t),o!==void 0&&(a.description=o),a}e.create=r;function i(n){var t=n;return t!==void 0&&s.objectLiteral(t)&&s.string(t.label)&&(s.boolean(t.needsConfirmation)||t.needsConfirmation===void 0)&&(s.string(t.description)||t.description===void 0)}e.is=i})(P||(P={}));var m;(function(e){function r(i){var n=i;return typeof n=="string"}e.is=r})(m||(m={}));var I;(function(e){function r(o,a,u){return{range:o,newText:a,annotationId:u}}e.replace=r;function i(o,a,u){return{range:{start:o,end:o},newText:a,annotationId:u}}e.insert=i;function n(o,a){return{range:o,newText:"",annotationId:a}}e.del=n;function t(o){var a=o;return C.is(a)&&(P.is(a.annotationId)||m.is(a.annotationId))}e.is=t})(I||(I={}));var H;(function(e){function r(n,t){return{textDocument:n,edits:t}}e.create=r;function i(n){var t=n;return s.defined(t)&&z.is(t.textDocument)&&Array.isArray(t.edits)}e.is=i})(H||(H={}));var L;(function(e){function r(n,t,o){var a={kind:"create",uri:n};return t!==void 0&&(t.overwrite!==void 0||t.ignoreIfExists!==void 0)&&(a.options=t),o!==void 0&&(a.annotationId=o),a}e.create=r;function i(n){var t=n;return t&&t.kind==="create"&&s.string(t.uri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(L||(L={}));var j;(function(e){function r(n,t,o,a){var u={kind:"rename",oldUri:n,newUri:t};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(u.options=o),a!==void 0&&(u.annotationId=a),u}e.create=r;function i(n){var t=n;return t&&t.kind==="rename"&&s.string(t.oldUri)&&s.string(t.newUri)&&(t.options===void 0||(t.options.overwrite===void 0||s.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===void 0||s.boolean(t.options.ignoreIfExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(j||(j={}));var O;(function(e){function r(n,t,o){var a={kind:"delete",uri:n};return t!==void 0&&(t.recursive!==void 0||t.ignoreIfNotExists!==void 0)&&(a.options=t),o!==void 0&&(a.annotationId=o),a}e.create=r;function i(n){var t=n;return t&&t.kind==="delete"&&s.string(t.uri)&&(t.options===void 0||(t.options.recursive===void 0||s.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===void 0||s.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===void 0||m.is(t.annotationId))}e.is=i})(O||(O={}));var se;(function(e){function r(i){var n=i;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(function(t){return s.string(t.kind)?L.is(t)||j.is(t)||O.is(t):H.is(t)}))}e.is=r})(se||(se={}));var K=function(){function e(r,i){this.edits=r,this.changeAnnotations=i}return e.prototype.insert=function(r,i,n){var t,o;if(n===void 0?t=C.insert(r,i):m.is(n)?(o=n,t=I.insert(r,i,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),t=I.insert(r,i,o)),this.edits.push(t),o!==void 0)return o},e.prototype.replace=function(r,i,n){var t,o;if(n===void 0?t=C.replace(r,i):m.is(n)?(o=n,t=I.replace(r,i,n)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(n),t=I.replace(r,i,o)),this.edits.push(t),o!==void 0)return o},e.prototype.delete=function(r,i){var n,t;if(i===void 0?n=C.del(r):m.is(i)?(t=i,n=I.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),t=this.changeAnnotations.manage(i),n=I.del(r,t)),this.edits.push(n),t!==void 0)return t},e.prototype.add=function(r){this.edits.push(r)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),be=function(){function e(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(r,i){var n;if(m.is(r)?n=r:(n=this.nextId(),i=r),this._annotations[n]!==void 0)throw new Error("Id "+n+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+n);return this._annotations[n]=i,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new be(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(n){if(H.is(n)){var t=new K(n.edits,i._changeAnnotations);i._textEditChanges[n.textDocument.uri]=t}})):r.changes&&Object.keys(r.changes).forEach(function(n){var t=new K(r.changes[n]);i._textEditChanges[n]=t})):this._workspaceEdit={}}return Object.defineProperty(e.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}),e.prototype.getTextEditChange=function(r){if(z.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},n=this._textEditChanges[i.uri];if(!n){var t=[],o={textDocument:i,edits:t};this._workspaceEdit.documentChanges.push(o),n=new K(t,this._changeAnnotations),this._textEditChanges[i.uri]=n}return n}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var n=this._textEditChanges[r];if(!n){var t=[];this._workspaceEdit.changes[r]=t,n=new K(t),this._textEditChanges[r]=n}return n}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new be,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(r,i,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;P.is(i)||m.is(i)?t=i:n=i;var o,a;if(t===void 0?o=L.create(r,n):(a=m.is(t)?t:this._changeAnnotations.manage(t),o=L.create(r,n,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},e.prototype.renameFile=function(r,i,n,t){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var o;P.is(n)||m.is(n)?o=n:t=n;var a,u;if(o===void 0?a=j.create(r,i,t):(u=m.is(o)?o:this._changeAnnotations.manage(o),a=j.create(r,i,t,u)),this._workspaceEdit.documentChanges.push(a),u!==void 0)return u},e.prototype.deleteFile=function(r,i,n){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var t;P.is(i)||m.is(i)?t=i:n=i;var o,a;if(t===void 0?o=O.create(r,n):(a=m.is(t)?t:this._changeAnnotations.manage(t),o=O.create(r,n,a)),this._workspaceEdit.documentChanges.push(o),a!==void 0)return a},e})();var ye;(function(e){function r(n){return{uri:n}}e.create=r;function i(n){var t=n;return s.defined(t)&&s.string(t.uri)}e.is=i})(ye||(ye={}));var Ee;(function(e){function r(n,t){return{uri:n,version:t}}e.create=r;function i(n){var t=n;return s.defined(t)&&s.string(t.uri)&&s.integer(t.version)}e.is=i})(Ee||(Ee={}));var z;(function(e){function r(n,t){return{uri:n,version:t}}e.create=r;function i(n){var t=n;return s.defined(t)&&s.string(t.uri)&&(t.version===null||s.integer(t.version))}e.is=i})(z||(z={}));var xe;(function(e){function r(n,t,o,a){return{uri:n,languageId:t,version:o,text:a}}e.create=r;function i(n){var t=n;return s.defined(t)&&s.string(t.uri)&&s.string(t.languageId)&&s.integer(t.version)&&s.string(t.text)}e.is=i})(xe||(xe={}));var N;(function(e){e.PlainText="plaintext",e.Markdown="markdown"})(N||(N={})),function(e){function r(i){var n=i;return n===e.PlainText||n===e.Markdown}e.is=r}(N||(N={}));var ue;(function(e){function r(i){var n=i;return s.objectLiteral(i)&&N.is(n.kind)&&s.string(n.value)}e.is=r})(ue||(ue={}));var f;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(f||(f={}));var ce;(function(e){e.PlainText=1,e.Snippet=2})(ce||(ce={}));var Ce;(function(e){e.Deprecated=1})(Ce||(Ce={}));var Ie;(function(e){function r(n,t,o){return{newText:n,insert:t,replace:o}}e.create=r;function i(n){var t=n;return t&&s.string(t.newText)&&v.is(t.insert)&&v.is(t.replace)}e.is=i})(Ie||(Ie={}));var Ae;(function(e){e.asIs=1,e.adjustIndentation=2})(Ae||(Ae={}));var Se;(function(e){function r(i){return{label:i}}e.create=r})(Se||(Se={}));var Re;(function(e){function r(i,n){return{items:i||[],isIncomplete:!!n}}e.create=r})(Re||(Re={}));var X;(function(e){function r(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=r;function i(n){var t=n;return s.string(t)||s.objectLiteral(t)&&s.string(t.language)&&s.string(t.value)}e.is=i})(X||(X={}));var Te;(function(e){function r(i){var n=i;return!!n&&s.objectLiteral(n)&&(ue.is(n.contents)||X.is(n.contents)||s.typedArray(n.contents,X.is))&&(i.range===void 0||v.is(i.range))}e.is=r})(Te||(Te={}));var Pe;(function(e){function r(i,n){return n?{label:i,documentation:n}:{label:i}}e.create=r})(Pe||(Pe={}));var De;(function(e){function r(i,n){for(var t=[],o=2;o=0;p--){var w=l[p],E=o.offsetAt(w.range.start),g=o.offsetAt(w.range.end);if(g<=d)u=u.substring(0,E)+w.newText+u.substring(g,u.length);else throw new Error("Overlapping edit");d=E}return u}e.applyEdits=n;function t(o,a){if(o.length<=1)return o;var u=o.length/2|0,l=o.slice(0,u),d=o.slice(u);t(l,a),t(d,a);for(var p=0,w=0,E=0;p0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets},e.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),n=0,t=i.length;if(t===0)return k.create(0,r);for(;nr?t=o:n=o+1}var a=n-1;return k.create(a,r-i[a])},e.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var n=i[r.line],t=r.line+1"u"}e.undefined=n;function t(g){return g===!0||g===!1}e.boolean=t;function o(g){return r.call(g)==="[object String]"}e.string=o;function a(g){return r.call(g)==="[object Number]"}e.number=a;function u(g,D,B){return r.call(g)==="[object Number]"&&D<=g&&g<=B}e.numberRange=u;function l(g){return r.call(g)==="[object Number]"&&-2147483648<=g&&g<=2147483647}e.integer=l;function d(g){return r.call(g)==="[object Number]"&&0<=g&&g<=2147483647}e.uinteger=d;function p(g){return r.call(g)==="[object Function]"}e.func=p;function w(g){return g!==null&&typeof g=="object"}e.objectLiteral=w;function E(g,D){return Array.isArray(g)&&g.every(D)}e.typedArray=E})(s||(s={})),Ye=class{constructor(e,r,i){b(this,"_disposables",[]);b(this,"_listener",Object.create(null));this._languageId=e,this._worker=r;const n=o=>{let a=o.getLanguageId();if(a!==this._languageId)return;let u;this._listener[o.uri.toString()]=o.onDidChangeContent(()=>{window.clearTimeout(u),u=window.setTimeout(()=>this._doValidate(o.uri,a),500)}),this._doValidate(o.uri,a)},t=o=>{c.editor.setModelMarkers(o,this._languageId,[]);let a=o.uri.toString(),u=this._listener[a];u&&(u.dispose(),delete this._listener[a])};this._disposables.push(c.editor.onDidCreateModel(n)),this._disposables.push(c.editor.onWillDisposeModel(t)),this._disposables.push(c.editor.onDidChangeModelLanguage(o=>{t(o.model),n(o.model)})),this._disposables.push(i(o=>{c.editor.getModels().forEach(a=>{a.getLanguageId()===this._languageId&&(t(a),n(a))})})),this._disposables.push({dispose:()=>{c.editor.getModels().forEach(t);for(let o in this._listener)this._listener[o].dispose()}}),c.editor.getModels().forEach(n)}dispose(){this._disposables.forEach(e=>e&&e.dispose()),this._disposables.length=0}_doValidate(e,r){this._worker(e).then(i=>i.doValidation(e.toString())).then(i=>{const n=i.map(o=>st(e,o));let t=c.editor.getModel(e);t&&t.getLanguageId()===r&&c.editor.setModelMarkers(t,r,n)}).then(void 0,i=>{console.error(i)})}};function at(e){switch(e){case T.Error:return c.MarkerSeverity.Error;case T.Warning:return c.MarkerSeverity.Warning;case T.Information:return c.MarkerSeverity.Info;case T.Hint:return c.MarkerSeverity.Hint;default:return c.MarkerSeverity.Info}}function st(e,r){let i=typeof r.code=="number"?String(r.code):r.code;return{severity:at(r.severity),startLineNumber:r.range.start.line+1,startColumn:r.range.start.character+1,endLineNumber:r.range.end.line+1,endColumn:r.range.end.character+1,message:r.message,code:i,source:r.source}}ge=class{constructor(e,r){this._worker=e,this._triggerCharacters=r}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(e,r,i,n){const t=e.uri;return this._worker(t).then(o=>o.doComplete(t.toString(),x(r))).then(o=>{if(!o)return;const a=e.getWordUntilPosition(r),u=new c.Range(r.lineNumber,a.startColumn,r.lineNumber,a.endColumn),l=o.items.map(d=>{const p={label:d.label,insertText:d.insertText||d.label,sortText:d.sortText,filterText:d.filterText,documentation:d.documentation,detail:d.detail,command:dt(d.command),range:u,kind:ct(d.kind)};return d.textEdit&&(ut(d.textEdit)?p.range={insert:_(d.textEdit.insert),replace:_(d.textEdit.replace)}:p.range=_(d.textEdit.range),p.insertText=d.textEdit.newText),d.additionalTextEdits&&(p.additionalTextEdits=d.additionalTextEdits.map(R)),d.insertTextFormat===ce.Snippet&&(p.insertTextRules=c.languages.CompletionItemInsertTextRule.InsertAsSnippet),p});return{isIncomplete:o.isIncomplete,suggestions:l}})}},x=function(e){if(e)return{character:e.column-1,line:e.lineNumber-1}},re=function(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}},_=function(e){if(e)return new c.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)};function ut(e){return typeof e.insert<"u"&&typeof e.replace<"u"}function ct(e){const r=c.languages.CompletionItemKind;switch(e){case f.Text:return r.Text;case f.Method:return r.Method;case f.Function:return r.Function;case f.Constructor:return r.Constructor;case f.Field:return r.Field;case f.Variable:return r.Variable;case f.Class:return r.Class;case f.Interface:return r.Interface;case f.Module:return r.Module;case f.Property:return r.Property;case f.Unit:return r.Unit;case f.Value:return r.Value;case f.Enum:return r.Enum;case f.Keyword:return r.Keyword;case f.Snippet:return r.Snippet;case f.Color:return r.Color;case f.File:return r.File;case f.Reference:return r.Reference}return r.Property}R=function(e){if(e)return{range:_(e.range),text:e.newText}};function dt(e){return e&&e.command==="editor.action.triggerSuggest"?{id:e.command,title:e.title,arguments:e.arguments}:void 0}Z=class{constructor(e){this._worker=e}provideHover(e,r,i){let n=e.uri;return this._worker(n).then(t=>t.doHover(n.toString(),x(r))).then(t=>{if(t)return{range:_(t.range),contents:lt(t.contents)}})}};function gt(e){return e&&typeof e=="object"&&typeof e.kind=="string"}function Xe(e){return typeof e=="string"?{value:e}:gt(e)?e.kind==="plaintext"?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+` -`+e.value+"\n```\n"}}function lt(e){if(e)return Array.isArray(e)?e.map(Xe):[Xe(e)]}q=class{constructor(e){this._worker=e}provideDocumentHighlights(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.findDocumentHighlights(n.toString(),x(r))).then(t=>{if(t)return t.map(o=>({range:_(o.range),kind:ft(o.kind)}))})}};function ft(e){switch(e){case U.Read:return c.languages.DocumentHighlightKind.Read;case U.Write:return c.languages.DocumentHighlightKind.Write;case U.Text:return c.languages.DocumentHighlightKind.Text}return c.languages.DocumentHighlightKind.Text}Je=class{constructor(e){this._worker=e}provideDefinition(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.findDefinition(n.toString(),x(r))).then(t=>{if(t)return[Be(t)]})}};function Be(e){return{uri:c.Uri.parse(e.uri),range:_(e.range)}}et=class{constructor(e){this._worker=e}provideReferences(e,r,i,n){const t=e.uri;return this._worker(t).then(o=>o.findReferences(t.toString(),x(r))).then(o=>{if(o)return o.map(Be)})}},ee=class{constructor(e){this._worker=e}provideRenameEdits(e,r,i,n){const t=e.uri;return this._worker(t).then(o=>o.doRename(t.toString(),x(r),i)).then(o=>ht(o))}};function ht(e){if(!e||!e.changes)return;let r=[];for(let i in e.changes){const n=c.Uri.parse(i);for(let t of e.changes[i])r.push({resource:n,versionId:void 0,textEdit:{range:_(t.range),text:t.newText}})}return{edits:r}}J=class{constructor(e){this._worker=e}provideDocumentSymbols(e,r){const i=e.uri;return this._worker(i).then(n=>n.findDocumentSymbols(i.toString())).then(n=>{if(n)return n.map(t=>({name:t.name,detail:"",containerName:t.containerName,kind:pt(t.kind),range:_(t.location.range),selectionRange:_(t.location.range),tags:[]}))})}};function pt(e){let r=c.languages.SymbolKind;switch(e){case h.File:return r.Array;case h.Module:return r.Module;case h.Namespace:return r.Namespace;case h.Package:return r.Package;case h.Class:return r.Class;case h.Method:return r.Method;case h.Property:return r.Property;case h.Field:return r.Field;case h.Constructor:return r.Constructor;case h.Enum:return r.Enum;case h.Interface:return r.Interface;case h.Function:return r.Function;case h.Variable:return r.Variable;case h.Constant:return r.Constant;case h.String:return r.String;case h.Number:return r.Number;case h.Boolean:return r.Boolean;case h.Array:return r.Array}return r.Function}Q=class{constructor(e){this._worker=e}provideLinks(e,r){const i=e.uri;return this._worker(i).then(n=>n.findDocumentLinks(i.toString())).then(n=>{if(n)return{links:n.map(t=>({range:_(t.range),url:t.target}))}})}},$=class{constructor(e){this._worker=e}provideDocumentFormattingEdits(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.format(n.toString(),null,$e(r)).then(o=>{if(!(!o||o.length===0))return o.map(R)}))}},G=class{constructor(e){b(this,"canFormatMultipleRanges",!1);this._worker=e}provideDocumentRangeFormattingEdits(e,r,i,n){const t=e.uri;return this._worker(t).then(o=>o.format(t.toString(),re(r),$e(i)).then(a=>{if(!(!a||a.length===0))return a.map(R)}))}};function $e(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}Ze=class{constructor(e){this._worker=e}provideDocumentColors(e,r){const i=e.uri;return this._worker(i).then(n=>n.findDocumentColors(i.toString())).then(n=>{if(n)return n.map(t=>({color:t.color,range:_(t.range)}))})}provideColorPresentations(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.getColorPresentations(n.toString(),r.color,re(r.range))).then(t=>{if(t)return t.map(o=>{let a={label:o.label};return o.textEdit&&(a.textEdit=R(o.textEdit)),o.additionalTextEdits&&(a.additionalTextEdits=o.additionalTextEdits.map(R)),a})})}},Y=class{constructor(e){this._worker=e}provideFoldingRanges(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.getFoldingRanges(n.toString(),r)).then(t=>{if(t)return t.map(o=>{const a={start:o.startLine+1,end:o.endLine+1};return typeof o.kind<"u"&&(a.kind=vt(o.kind)),a})})}};function vt(e){switch(e){case M.Comment:return c.languages.FoldingRangeKind.Comment;case M.Imports:return c.languages.FoldingRangeKind.Imports;case M.Region:return c.languages.FoldingRangeKind.Region}}let de;te=class{constructor(e){this._worker=e}provideSelectionRanges(e,r,i){const n=e.uri;return this._worker(n).then(t=>t.getSelectionRanges(n.toString(),r.map(x))).then(t=>{if(t)return t.map(o=>{const a=[];for(;o;)a.push({range:_(o.range)}),o=o.parent;return a})})}},de=class extends ge{constructor(e){super(e,[".",":","<",'"',"=","/"])}},nt=function(e){const r=new ne(e),i=(...t)=>r.getLanguageServiceWorker(...t);let n=e.languageId;c.languages.registerCompletionItemProvider(n,new de(i)),c.languages.registerHoverProvider(n,new Z(i)),c.languages.registerDocumentHighlightProvider(n,new q(i)),c.languages.registerLinkProvider(n,new Q(i)),c.languages.registerFoldingRangeProvider(n,new Y(i)),c.languages.registerDocumentSymbolProvider(n,new J(i)),c.languages.registerSelectionRangeProvider(n,new te(i)),c.languages.registerRenameProvider(n,new ee(i)),n==="html"&&(c.languages.registerDocumentFormattingEditProvider(n,new $(i)),c.languages.registerDocumentRangeFormattingEditProvider(n,new G(i)))},tt=function(e){const r=[],i=[],n=new ne(e);r.push(n);const t=(...a)=>n.getLanguageServiceWorker(...a);function o(){const{languageId:a,modeConfiguration:u}=e;Qe(i),u.completionItems&&i.push(c.languages.registerCompletionItemProvider(a,new de(t))),u.hovers&&i.push(c.languages.registerHoverProvider(a,new Z(t))),u.documentHighlights&&i.push(c.languages.registerDocumentHighlightProvider(a,new q(t))),u.links&&i.push(c.languages.registerLinkProvider(a,new Q(t))),u.documentSymbols&&i.push(c.languages.registerDocumentSymbolProvider(a,new J(t))),u.rename&&i.push(c.languages.registerRenameProvider(a,new ee(t))),u.foldingRanges&&i.push(c.languages.registerFoldingRangeProvider(a,new Y(t))),u.selectionRanges&&i.push(c.languages.registerSelectionRangeProvider(a,new te(t))),u.documentFormattingEdits&&i.push(c.languages.registerDocumentFormattingEditProvider(a,new $(t))),u.documentRangeFormattingEdits&&i.push(c.languages.registerDocumentRangeFormattingEditProvider(a,new G(t)))}return o(),r.push(qe(i)),qe(r)};function qe(e){return{dispose:()=>Qe(e)}}function Qe(e){for(;e.length;)e.pop().dispose()}});export{ge as CompletionAdapter,Je as DefinitionAdapter,Ye as DiagnosticsAdapter,Ze as DocumentColorAdapter,$ as DocumentFormattingEditProvider,q as DocumentHighlightAdapter,Q as DocumentLinkAdapter,G as DocumentRangeFormattingEditProvider,J as DocumentSymbolAdapter,Y as FoldingRangeAdapter,Z as HoverAdapter,et as ReferenceAdapter,ee as RenameAdapter,te as SelectionRangeAdapter,ne as WorkerManager,yt as __tla,x as fromPosition,re as fromRange,tt as setupMode,nt as setupMode1,_ as toRange,R as toTextEdit}; diff --git a/assets/index-217cde21.js b/assets/index-217cde21.js new file mode 100644 index 0000000..586331d --- /dev/null +++ b/assets/index-217cde21.js @@ -0,0 +1,61 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var ep=function(n,e){return ep=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])},ep(n,e)};function N(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ep(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var $D=function(){function n(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return n}(),QD=function(){function n(){this.browser=new $D,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return n}(),so=new QD;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(so.wxa=!0,so.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?so.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(so.node=!0,so.svgSupported=!0):JD(navigator.userAgent,so);function JD(n,e){var t=e.browser,i=n.match(/Firefox\/([\d.]+)/),o=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),r=n.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(n);i&&(t.firefox=!0,t.version=i[1]),o&&(t.ie=!0,t.version=o[1]),r&&(t.edge=!0,t.version=r[1],t.newEdge=+r[1].split(".")[0]>18),a&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const It=so;var np=12,Rm="sans-serif",wi=np+"px "+Rm,tk=20,ek=100,nk="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function ik(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=a*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",o[u]+":0",i[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),n.appendChild(a),t.push(a)}return t}function Ck(n,e,t){for(var i=t?"invTrans":"trans",o=e[i],r=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=n[u].getBoundingClientRect(),c=2*u,p=h.left,d=h.top;a.push(p,d),l=l&&r&&p===r[c]&&d===r[c+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&o?o:(e.srcCoords=a,e[i]=t?jm(s,a):jm(a,s))}function Km(n){return n.nodeName.toUpperCase()==="CANVAS"}var Ak=/([&<>"'])/g,Dk={"&":"&","<":"<",">":">",'"':""","'":"'"};function ye(n){return n==null?"":(n+"").replace(Ak,function(e,t){return Dk[t]})}var kk=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fp=[],Lk=It.browser.firefox&&+It.browser.version.split(".")[0]<39;function gp(n,e,t,i){return t=t||{},i?$m(n,e,t):Lk&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):$m(n,e,t),t}function $m(n,e,t){if(It.domSupported&&n.getBoundingClientRect){var i=e.clientX,o=e.clientY;if(Km(n)){var r=n.getBoundingClientRect();t.zrX=i-r.left,t.zrY=o-r.top;return}else if(dp(fp,n,i,o)){t.zrX=fp[0],t.zrY=fp[1];return}}t.zrX=t.zrY=0}function yp(n){return n||window.event}function Ke(n,e,t){if(e=yp(e),e.zrX!=null)return e;var i=e.type,o=i&&i.indexOf("touch")>=0;if(o){var r=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];r&&gp(n,r,e,t)}else{gp(n,e,e,t);var a=Pk(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&kk.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Pk(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,i=n.deltaY;if(t==null||i==null)return e;var o=Math.abs(i!==0?i:t),r=i>0?-1:i<0?1:t>0?-1:1;return 3*o*r}function vp(n,e,t,i){n.addEventListener(e,t,i)}function Ok(n,e,t,i){n.removeEventListener(e,t,i)}var ii=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function Qm(n){return n.which===2||n.which===3}var Nk=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,i){var o=e.touches;if(o){for(var r={points:[],touches:[],target:t,event:e},a=0,s=o.length;a1&&i&&i.length>1){var r=Jm(i)/Jm(o);!isFinite(r)&&(r=1),e.pinchScale=r;var a=Rk(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:n[0].target,event:e}}}}};function Ne(){return[1,0,0,1,0,0]}function Ua(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function Jl(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function On(n,e,t){var i=e[0]*t[0]+e[2]*t[1],o=e[1]*t[0]+e[3]*t[1],r=e[0]*t[2]+e[2]*t[3],a=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=i,n[1]=o,n[2]=r,n[3]=a,n[4]=s,n[5]=l,n}function vn(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function Ti(n,e,t,i){i===void 0&&(i=[0,0]);var o=e[0],r=e[2],a=e[4],s=e[1],l=e[3],u=e[5],h=Math.sin(t),c=Math.cos(t);return n[0]=o*c+s*h,n[1]=-o*h+s*c,n[2]=r*c+l*h,n[3]=-r*h+c*l,n[4]=c*(a-i[0])+h*(u-i[1])+i[0],n[5]=c*(u-i[1])-h*(a-i[0])+i[1],n}function tu(n,e,t){var i=t[0],o=t[1];return n[0]=e[0]*i,n[1]=e[1]*o,n[2]=e[2]*i,n[3]=e[3]*o,n[4]=e[4]*i,n[5]=e[5]*o,n}function ho(n,e){var t=e[0],i=e[2],o=e[4],r=e[1],a=e[3],s=e[5],l=t*a-r*i;return l?(l=1/l,n[0]=a*l,n[1]=-r*l,n[2]=-i*l,n[3]=t*l,n[4]=(i*s-a*o)*l,n[5]=(r*o-t*s)*l,n):null}function t0(n){var e=Ne();return Jl(e,n),e}const zk=Object.freeze(Object.defineProperty({__proto__:null,clone:t0,copy:Jl,create:Ne,identity:Ua,invert:ho,mul:On,rotate:Ti,scale:tu,translate:vn},Symbol.toStringTag,{value:"Module"}));var Ek=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,i=this.y;return this.x=e[0]*t+e[2]*i+e[4],this.y=e[1]*t+e[3]*i+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,i){e.x=t,e.y=i},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,i){e.x=t.x+i.x,e.y=t.y+i.y},n.sub=function(e,t,i){e.x=t.x-i.x,e.y=t.y-i.y},n.scale=function(e,t,i){e.x=t.x*i,e.y=t.y*i},n.scaleAndAdd=function(e,t,i,o){e.x=t.x+i.x*o,e.y=t.y+i.y*o},n.lerp=function(e,t,i,o){var r=1-o;e.x=r*t.x+o*i.x,e.y=r*t.y+o*i.y},n}();const ht=Ek;var eu=Math.min,nu=Math.max,co=new ht,po=new ht,fo=new ht,go=new ht,ja=new ht,qa=new ht,Vk=function(){function n(e,t,i,o){i<0&&(e=e+i,i=-i),o<0&&(t=t+o,o=-o),this.x=e,this.y=t,this.width=i,this.height=o}return n.prototype.union=function(e){var t=eu(e.x,this.x),i=eu(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=nu(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=nu(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=t,this.y=i},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,i=e.width/t.width,o=e.height/t.height,r=Ne();return vn(r,r,[-t.x,-t.y]),tu(r,r,[i,o]),vn(r,r,[e.x,e.y]),r},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var i=this,o=i.x,r=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,p=!(rf&&(f=x,gf&&(f=_,v=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,i){if(!i){e!==t&&n.copy(e,t);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var o=i[0],r=i[3],a=i[4],s=i[5];e.x=t.x*o+a,e.y=t.y*r+s,e.width=t.width*o,e.height=t.height*r,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}co.x=fo.x=t.x,co.y=go.y=t.y,po.x=go.x=t.x+t.width,po.y=fo.y=t.y+t.height,co.transform(i),go.transform(i),po.transform(i),fo.transform(i),e.x=eu(co.x,po.x,fo.x,go.x),e.y=eu(co.y,po.y,fo.y,go.y);var l=nu(co.x,po.x,fo.x,go.x),u=nu(co.y,po.y,fo.y,go.y);e.width=l-e.x,e.height=u-e.y},n}();const ct=Vk;var e0="silent";function Bk(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Gk}}function Gk(){ii(this.event)}var Fk=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(qe),Ka=function(){function n(e,t){this.x=e,this.y=t}return n}(),Wk=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],xp=new ct(0,0,0,0),n0=function(n){N(e,n);function e(t,i,o,r,a){var s=n.call(this)||this;return s._hovered=new Ka(0,0),s.storage=t,s.painter=i,s.painterRoot=r,s._pointerSize=a,o=o||new Fk,s.proxy=null,s.setHandlerProxy(o),s._draggingMgr=new wk(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(T(Wk,function(i){t.on&&t.on(i,this[i],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var i=t.zrX,o=t.zrY,r=o0(this,i,o),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=r?new Ka(i,o):this.findHover(i,o),u=l.target,h=this.proxy;h.setCursor&&h.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(a,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var i=t.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Ka(0,0)},e.prototype.dispatch=function(t,i){var o=this[t];o&&o.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var i=this.proxy;i.setCursor&&i.setCursor(t)},e.prototype.dispatchToElement=function(t,i,o){t=t||{};var r=t.target;if(!(r&&r.silent)){for(var a="on"+i,s=Bk(i,t,o);r&&(r[a]&&(s.cancelBubble=!!r[a].call(r,s)),r.trigger(i,s),r=r.__hostTarget?r.__hostTarget:r.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(t,i,o){var r=this.storage.getDisplayList(),a=new Ka(t,i);if(i0(r,a,t,i,o),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,h=new ct(t-u,i-u,l,l),c=r.length-1;c>=0;c--){var p=r[c];p!==o&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(xp.copy(p.getBoundingRect()),p.transform&&xp.applyTransform(p.transform),xp.intersect(h)&&s.push(p))}if(s.length)for(var d=4,f=Math.PI/12,g=Math.PI*2,y=0;y4)return;this._downPoint=null}this.dispatchToElement(r,n,e)}});function Hk(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var i=n,o=void 0,r=!1;i;){if(i.ignoreClip&&(r=!0),!r){var a=i.getClipPath();if(a&&!a.contain(e,t))return!1}i.silent&&(o=!0);var s=i.__hostTarget;i=s||i.parent}return o?e0:!0}return!1}function i0(n,e,t,i,o){for(var r=n.length-1;r>=0;r--){var a=n[r],s=void 0;if(a!==o&&!a.ignore&&(s=Hk(a,t,i))&&(!e.topTarget&&(e.topTarget=a),s!==e0)){e.target=a;break}}}function o0(n,e,t){var i=n.painter;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}const Yk=n0;var r0=32,$a=7;function Xk(n){for(var e=0;n>=r0;)e|=n&1,n>>=1;return n+e}function a0(n,e,t,i){var o=e+1;if(o===t)return 1;if(i(n[o++],n[e])<0){for(;o=0;)o++;return o-e}function Zk(n,e,t){for(t--;e>>1,o(r,n[l])<0?s=l:a=l+1;var u=i-a;switch(u){case 3:n[a+3]=n[a+2];case 2:n[a+2]=n[a+1];case 1:n[a+1]=n[a];break;default:for(;u>0;)n[a+u]=n[a+u-1],u--}n[a]=r}}function _p(n,e,t,i,o,r){var a=0,s=0,l=1;if(r(n,e[t+o])>0){for(s=i-o;l0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}else{for(s=o+1;ls&&(l=s);var u=a;a=o-l,l=o-u}for(a++;a>>1);r(n,e[t+h])>0?a=h+1:l=h}return l}function bp(n,e,t,i,o,r){var a=0,s=0,l=1;if(r(n,e[t+o])<0){for(s=o+1;ls&&(l=s);var u=a;a=o-l,l=o-u}else{for(s=i-o;l=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}for(a++;a>>1);r(n,e[t+h])<0?l=h:a=h+1}return l}function Uk(n,e){var t=$a,i,o,r=0,a=[];i=[],o=[];function s(d,f){i[r]=d,o[r]=f,r+=1}function l(){for(;r>1;){var d=r-2;if(d>=1&&o[d-1]<=o[d]+o[d+1]||d>=2&&o[d-2]<=o[d]+o[d-1])o[d-1]o[d+1])break;h(d)}}function u(){for(;r>1;){var d=r-2;d>0&&o[d-1]=$a||S>=$a);if(M)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),f===1){for(v=0;v=0;v--)n[b+v]=n[w+v];n[_]=a[x];return}for(var S=t;;){var M=0,I=0,C=!1;do if(e(a[x],n[m])<0){if(n[_--]=n[m--],M++,I=0,--f===0){C=!0;break}}else if(n[_--]=a[x--],I++,M=0,--y===1){C=!0;break}while((M|I)=0;v--)n[b+v]=n[w+v];if(f===0){C=!0;break}}if(n[_--]=a[x--],--y===1){C=!0;break}if(I=y-_p(n[m],a,0,y,y-1,e),I!==0){for(_-=I,x-=I,y-=I,b=_+1,w=x+1,v=0;v=$a||I>=$a);if(C)break;S<0&&(S=0),S+=2}if(t=S,t<1&&(t=1),y===1){for(_-=f,m-=f,b=_+1,w=m+1,v=f-1;v>=0;v--)n[b+v]=n[w+v];n[_]=a[x]}else{if(y===0)throw new Error;for(w=_-(y-1),v=0;vs&&(l=s),s0(n,t,t+l,t+r,e),r=l}a.pushRun(t,r),a.mergeRuns(),o-=r,t+=r}while(o!==0);a.forceMergeRuns()}}var Ge=1,Qa=2,Ar=4,l0=!1;function wp(){l0||(l0=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function u0(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var jk=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=u0}return n.prototype.traverse=function(e,t){for(var i=0;i0&&(h.__clipPaths=[]),isNaN(h.z)&&(wp(),h.z=0),isNaN(h.z2)&&(wp(),h.z2=0),isNaN(h.zlevel)&&(wp(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,i);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,t,i);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,i)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,i=e.length;t=0&&this._roots.splice(o,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const qk=jk;var h0;h0=It.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const Sp=h0;var ou={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,i=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/i)))},elasticOut:function(n){var e,t=.1,i=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/i)+1)},elasticInOut:function(n){var e,t=.1,i=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/i)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/i)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-ou.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?ou.bounceIn(n*2)*.5:ou.bounceOut(n*2-1)*.5+.5}};const c0=ou;var ru=Math.pow,Ci=Math.sqrt,au=1e-8,p0=1e-4,d0=Ci(3),su=1/3,Nn=Si(),$e=Si(),Dr=Si();function Ai(n){return n>-au&&nau||n<-au}function te(n,e,t,i,o){var r=1-o;return r*r*(r*n+3*o*e)+o*o*(o*i+3*r*t)}function g0(n,e,t,i,o){var r=1-o;return 3*(((e-n)*r+2*(t-e)*o)*r+(i-t)*o*o)}function lu(n,e,t,i,o,r){var a=i+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-o,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,d=0;if(Ai(h)&&Ai(c))if(Ai(s))r[0]=0;else{var f=-l/s;f>=0&&f<=1&&(r[d++]=f)}else{var g=c*c-4*h*p;if(Ai(g)){var y=c/h,f=-s/a+y,v=-y/2;f>=0&&f<=1&&(r[d++]=f),v>=0&&v<=1&&(r[d++]=v)}else if(g>0){var m=Ci(g),x=h*s+1.5*a*(-c+m),_=h*s+1.5*a*(-c-m);x<0?x=-ru(-x,su):x=ru(x,su),_<0?_=-ru(-_,su):_=ru(_,su);var f=(-s-(x+_))/(3*a);f>=0&&f<=1&&(r[d++]=f)}else{var w=(2*h*s-3*a*c)/(2*Ci(h*h*h)),b=Math.acos(w)/3,S=Ci(h),M=Math.cos(b),f=(-s-2*S*M)/(3*a),v=(-s+S*(M+d0*Math.sin(b)))/(3*a),I=(-s+S*(M-d0*Math.sin(b)))/(3*a);f>=0&&f<=1&&(r[d++]=f),v>=0&&v<=1&&(r[d++]=v),I>=0&&I<=1&&(r[d++]=I)}}return d}function y0(n,e,t,i,o){var r=6*t-12*e+6*n,a=9*e+3*i-3*n-9*t,s=3*e-3*n,l=0;if(Ai(a)){if(f0(r)){var u=-s/r;u>=0&&u<=1&&(o[l++]=u)}}else{var h=r*r-4*a*s;if(Ai(h))o[0]=-r/(2*a);else if(h>0){var c=Ci(h),u=(-r+c)/(2*a),p=(-r-c)/(2*a);u>=0&&u<=1&&(o[l++]=u),p>=0&&p<=1&&(o[l++]=p)}}return l}function Di(n,e,t,i,o,r){var a=(e-n)*o+n,s=(t-e)*o+e,l=(i-t)*o+t,u=(s-a)*o+a,h=(l-s)*o+s,c=(h-u)*o+u;r[0]=n,r[1]=a,r[2]=u,r[3]=c,r[4]=c,r[5]=h,r[6]=l,r[7]=i}function v0(n,e,t,i,o,r,a,s,l,u,h){var c,p=.005,d=1/0,f,g,y,v;Nn[0]=l,Nn[1]=u;for(var m=0;m<1;m+=.05)$e[0]=te(n,t,o,a,m),$e[1]=te(e,i,r,s,m),y=Ii(Nn,$e),y=0&&y=0&&u<=1&&(o[l++]=u)}}else{var h=a*a-4*r*s;if(Ai(h)){var u=-a/(2*r);u>=0&&u<=1&&(o[l++]=u)}else if(h>0){var c=Ci(h),u=(-a+c)/(2*r),p=(-a-c)/(2*r);u>=0&&u<=1&&(o[l++]=u),p>=0&&p<=1&&(o[l++]=p)}}return l}function m0(n,e,t){var i=n+t-2*e;return i===0?.5:(n-e)/i}function Ja(n,e,t,i,o){var r=(e-n)*i+n,a=(t-e)*i+e,s=(a-r)*i+r;o[0]=n,o[1]=r,o[2]=s,o[3]=s,o[4]=a,o[5]=t}function x0(n,e,t,i,o,r,a,s,l){var u,h=.005,c=1/0;Nn[0]=a,Nn[1]=s;for(var p=0;p<1;p+=.05){$e[0]=ae(n,t,o,p),$e[1]=ae(e,i,r,p);var d=Ii(Nn,$e);d=0&&d=1?1:lu(0,i,r,1,l,s)&&te(0,o,a,1,s[0])}}}var tL=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Zt,this.ondestroy=e.ondestroy||Zt,this.onrestart=e.onrestart||Zt,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var i=this._life,o=e-this._startTime-this._pausedTime,r=o/i;r<0&&(r=0),r=Math.min(r,1);var a=this.easingFunc,s=a?a(r):r;if(this.onframe(s),r===1)if(this.loop){var l=o%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=K(e)?e:c0[e]||Ip(e)},n}();const eL=tL;var _0=function(){function n(e){this.value=e}return n}(),nL=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new _0(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),iL=function(){function n(e){this._list=new nL,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var i=this._list,o=this._map,r=null;if(o[e]==null){var a=i.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=i.head;i.remove(l),delete o[l.key],r=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new _0(t),s.key=e,i.insertEntry(s),o[e]=s}return r},n.prototype.get=function(e){var t=this._map[e],i=this._list;if(t!=null)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const ts=iL;var b0={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function mn(n){return n=Math.round(n),n<0?0:n>255?255:n}function oL(n){return n=Math.round(n),n<0?0:n>360?360:n}function es(n){return n<0?0:n>1?1:n}function Tp(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?mn(parseFloat(e)/100*255):mn(parseInt(e,10))}function yo(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?es(parseFloat(e)/100):es(parseFloat(e))}function Cp(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function ki(n,e,t){return n+(e-n)*t}function Qe(n,e,t,i,o){return n[0]=e,n[1]=t,n[2]=i,n[3]=o,n}function Ap(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var w0=new ts(20),uu=null;function kr(n,e){uu&&Ap(uu,e),uu=w0.put(n,uu||e.slice())}function Se(n,e){if(n){e=e||[];var t=w0.get(n);if(t)return Ap(e,t);n=n+"";var i=n.replace(/ /g,"").toLowerCase();if(i in b0)return Ap(e,b0[i]),kr(n,e),e;var o=i.length;if(i.charAt(0)==="#"){if(o===4||o===5){var r=parseInt(i.slice(1,4),16);if(!(r>=0&&r<=4095)){Qe(e,0,0,0,1);return}return Qe(e,(r&3840)>>4|(r&3840)>>8,r&240|(r&240)>>4,r&15|(r&15)<<4,o===5?parseInt(i.slice(4),16)/15:1),kr(n,e),e}else if(o===7||o===9){var r=parseInt(i.slice(1,7),16);if(!(r>=0&&r<=16777215)){Qe(e,0,0,0,1);return}return Qe(e,(r&16711680)>>16,(r&65280)>>8,r&255,o===9?parseInt(i.slice(7),16)/255:1),kr(n,e),e}return}var a=i.indexOf("("),s=i.indexOf(")");if(a!==-1&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Qe(e,+u[0],+u[1],+u[2],1):Qe(e,0,0,0,1);h=yo(u.pop());case"rgb":if(u.length>=3)return Qe(e,Tp(u[0]),Tp(u[1]),Tp(u[2]),u.length===3?h:yo(u[3])),kr(n,e),e;Qe(e,0,0,0,1);return;case"hsla":if(u.length!==4){Qe(e,0,0,0,1);return}return u[3]=yo(u[3]),Dp(u,e),kr(n,e),e;case"hsl":if(u.length!==3){Qe(e,0,0,0,1);return}return Dp(u,e),kr(n,e),e;default:return}}Qe(e,0,0,0,1)}}function Dp(n,e){var t=(parseFloat(n[0])%360+360)%360/360,i=yo(n[1]),o=yo(n[2]),r=o<=.5?o*(i+1):o+i-o*i,a=o*2-r;return e=e||[],Qe(e,mn(Cp(a,r,t+1/3)*255),mn(Cp(a,r,t)*255),mn(Cp(a,r,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function rL(n){if(n){var e=n[0]/255,t=n[1]/255,i=n[2]/255,o=Math.min(e,t,i),r=Math.max(e,t,i),a=r-o,s=(r+o)/2,l,u;if(a===0)l=0,u=0;else{s<.5?u=a/(r+o):u=a/(2-r-o);var h=((r-e)/6+a/2)/a,c=((r-t)/6+a/2)/a,p=((r-i)/6+a/2)/a;e===r?l=p-c:t===r?l=1/3+h-p:i===r&&(l=2/3+c-h),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return n[3]!=null&&d.push(n[3]),d}}function hu(n,e){var t=Se(n);if(t){for(var i=0;i<3;i++)e<0?t[i]=t[i]*(1-e)|0:t[i]=(255-t[i])*e+t[i]|0,t[i]>255?t[i]=255:t[i]<0&&(t[i]=0);return xn(t,t.length===4?"rgba":"rgb")}}function aL(n){var e=Se(n);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function ns(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var i=n*(e.length-1),o=Math.floor(i),r=Math.ceil(i),a=e[o],s=e[r],l=i-o;return t[0]=mn(ki(a[0],s[0],l)),t[1]=mn(ki(a[1],s[1],l)),t[2]=mn(ki(a[2],s[2],l)),t[3]=es(ki(a[3],s[3],l)),t}}var sL=ns;function kp(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var i=n*(e.length-1),o=Math.floor(i),r=Math.ceil(i),a=Se(e[o]),s=Se(e[r]),l=i-o,u=xn([mn(ki(a[0],s[0],l)),mn(ki(a[1],s[1],l)),mn(ki(a[2],s[2],l)),es(ki(a[3],s[3],l))],"rgba");return t?{color:u,leftIndex:o,rightIndex:r,value:i}:u}}var lL=kp;function Lr(n,e,t,i){var o=Se(n);if(n)return o=rL(o),e!=null&&(o[0]=oL(e)),t!=null&&(o[1]=yo(t)),i!=null&&(o[2]=yo(i)),xn(Dp(o),"rgba")}function is(n,e){var t=Se(n);if(t&&e!=null)return t[3]=es(e),xn(t,"rgba")}function xn(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function os(n,e){var t=Se(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function uL(){return xn([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var S0=new ts(100);function cu(n){if(Y(n)){var e=S0.get(n);return e||(e=hu(n,-.1),S0.put(n,e)),e}else if(Ba(n)){var t=V({},n);return t.colorStops=G(n.colorStops,function(i){return{offset:i.offset,color:hu(i.color,-.1)}}),t}return n}const hL=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:ns,fastMapToColor:sL,lerp:kp,lift:hu,liftColor:cu,lum:os,mapToColor:lL,modifyAlpha:is,modifyHSL:Lr,parse:Se,random:uL,stringify:xn,toHex:aL},Symbol.toStringTag,{value:"Module"}));var pu=Math.round;function rs(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=Se(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e??1}}var M0=1e-4;function Li(n){return n-M0}function du(n){return pu(n*1e3)/1e3}function Lp(n){return pu(n*1e4)/1e4}function cL(n){return"matrix("+du(n[0])+","+du(n[1])+","+du(n[2])+","+du(n[3])+","+Lp(n[4])+","+Lp(n[5])+")"}var pL={left:"start",right:"end",center:"middle",middle:"middle"};function dL(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function fL(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function gL(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function I0(n){return n&&!!n.image}function yL(n){return n&&!!n.svgElement}function Pp(n){return I0(n)||yL(n)}function T0(n){return n.type==="linear"}function C0(n){return n.type==="radial"}function A0(n){return n&&(n.type==="linear"||n.type==="radial")}function fu(n){return"url(#"+n+")"}function D0(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function k0(n){var e=n.x||0,t=n.y||0,i=(n.rotation||0)*Ha,o=at(n.scaleX,1),r=at(n.scaleY,1),a=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),i&&l.push("rotate("+i+")"),(o!==1||r!==1)&&l.push("scale("+o+","+r+")"),(a||s)&&l.push("skew("+pu(a*Ha)+"deg, "+pu(s*Ha)+"deg)"),l.join(" ")}var vL=function(){return It.hasGlobalWindow&&K(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),Op=Array.prototype.slice;function oi(n,e,t){return(e-n)*t+n}function Np(n,e,t,i){for(var o=e.length,r=0;ri?e:n,r=Math.min(t,i),a=o[r-1]||{color:[0,0,0,0],offset:0},s=r;sa;if(s)i.length=a;else for(var l=r;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,i){this._needsSort=!0;var o=this.keyframes,r=o.length,a=!1,s=O0,l=t;if(le(t)){var u=bL(t);s=u,(u===1&&!Tt(t[0])||u===2&&!Tt(t[0][0]))&&(a=!0)}else if(Tt(t)&&!Ir(t))s=vu;else if(Y(t))if(!isNaN(+t))s=vu;else{var h=Se(t);h&&(l=h,s=ss)}else if(Ba(t)){var c=V({},l);c.colorStops=G(t.colorStops,function(d){return{offset:d.offset,color:Se(d.color)}}),T0(t)?s=Rp:C0(t)&&(s=zp),l=c}r===0?this.valType=s:(s!==this.valType||s===O0)&&(a=!0),this.discrete=this.discrete||a;var p={time:e,value:l,rawValue:t,percent:0};return i&&(p.easing=i,p.easingFunc=K(i)?i:c0[i]||Ip(i)),o.push(p),p},n.prototype.prepare=function(e,t){var i=this.keyframes;this._needsSort&&i.sort(function(g,y){return g.time-y.time});for(var o=this.valType,r=i.length,a=i[r-1],s=this.discrete,l=xu(o),u=N0(o),h=0;h=0&&!(a[h].percent<=t);h--);h=p(h,s-2)}else{for(h=c;ht);h++);h=p(h-1,s-2)}f=a[h+1],d=a[h]}if(d&&f){this._lastFr=h,this._lastFrP=t;var y=f.percent-d.percent,v=y===0?1:p((t-d.percent)/y,1);f.easingFunc&&(v=f.easingFunc(v));var m=i?this._additiveValue:u?ls:e[l];if((xu(r)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=v<1?d.rawValue:f.rawValue;else if(xu(r))r===mu?Np(m,d[o],f[o],v):mL(m,d[o],f[o],v);else if(N0(r)){var x=d[o],_=f[o],w=r===Rp;e[l]={type:w?"linear":"radial",x:oi(x.x,_.x,v),y:oi(x.y,_.y,v),colorStops:G(x.colorStops,function(S,M){var I=_.colorStops[M];return{offset:oi(S.offset,I.offset,v),color:yu(Np([],S.color,I.color,v))}}),global:_.global},w?(e[l].x2=oi(x.x2,_.x2,v),e[l].y2=oi(x.y2,_.y2,v)):e[l].r=oi(x.r,_.r,v)}else if(u)Np(m,d[o],f[o],v),i||(e[l]=yu(m));else{var b=oi(d[o],f[o],v);i?this._additiveValue=b:e[l]=b}i&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,o=this._additiveValue;t===vu?e[i]=e[i]+o:t===ss?(Se(e[i],ls),gu(ls,ls,o,1),e[i]=yu(ls)):t===mu?gu(e[i],e[i],o,1):t===P0&&L0(e[i],e[i],o,1)},n}(),SL=function(){function n(e,t,i,o){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&o){Zl("Can' use additive animation on looped animation.");return}this._additiveAnimators=o,this._allowDiscrete=i}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,i){return this.whenWithKeys(e,t,mt(t),i)},n.prototype.whenWithKeys=function(e,t,i,o){for(var r=this._tracks,a=0;a0&&l.addKeyframe(0,as(u),o),this._trackKeys.push(s)}l.addKeyframe(e,as(t[s]),o)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,i=0;i0)){this._started=1;for(var t=this,i=[],o=this._maxTime||0,r=0;r1){var s=a.pop();r.addKeyframe(s.time,e[o]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},n}();const Ep=SL;function Pr(){return new Date().getTime()}var ML=function(n){N(e,n);function e(t){var i=n.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,t=t||{},i.stage=t.stage||{},i}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var i=t.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(t){if(t.animation){var i=t.prev,o=t.next;i?i.next=o:this._head=o,o?o.prev=i:this._tail=i,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var i=t.getClip();i&&this.removeClip(i),t.animation=null},e.prototype.update=function(t){for(var i=Pr()-this._pausedTime,o=i-this._time,r=this._head;r;){var a=r.next,s=r.step(i,o);s&&(r.ondestroy(),this.removeClip(r)),r=a}this._time=i,t||(this.trigger("frame",o),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function i(){t._running&&(Sp(i),!t._paused&&t.update())}Sp(i)},e.prototype.start=function(){this._running||(this._time=Pr(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Pr(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Pr()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var i=t.next;t.prev=t.next=t.animation=null,t=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,i){i=i||{},this.start();var o=new Ep(t,i.loop);return this.addAnimator(o),o},e}(qe);const IL=ML;var TL=300,Vp=It.domSupported,Bp=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=G(n,function(o){var r=o.replace("mouse","pointer");return t.hasOwnProperty(r)?r:o});return{mouse:n,touch:e,pointer:i}}(),R0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},z0=!1;function Gp(n){var e=n.pointerType;return e==="pen"||e==="touch"}function CL(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function Fp(n){n&&(n.zrByTouch=!0)}function AL(n,e){return Ke(n.dom,new DL(n,e),!0)}function E0(n,e){for(var t=e,i=!1;t&&t.nodeType!==9&&!(i=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return i}var DL=function(){function n(e,t){this.stopPropagation=Zt,this.stopImmediatePropagation=Zt,this.preventDefault=Zt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),_n={mousedown:function(n){n=Ke(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=Ke(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=Ke(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=Ke(this.dom,n);var e=n.toElement||n.relatedTarget;E0(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){z0=!0,n=Ke(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){z0||(n=Ke(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=Ke(this.dom,n),Fp(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),_n.mousemove.call(this,n),_n.mousedown.call(this,n)},touchmove:function(n){n=Ke(this.dom,n),Fp(n),this.handler.processGesture(n,"change"),_n.mousemove.call(this,n)},touchend:function(n){n=Ke(this.dom,n),Fp(n),this.handler.processGesture(n,"end"),_n.mouseup.call(this,n),+new Date-+this.__lastTouchMomentF0||n<-F0}var mo=[],Or=[],Up=Ne(),jp=Math.abs,RL=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return vo(this.rotation)||vo(this.x)||vo(this.y)||vo(this.scaleX-1)||vo(this.scaleY-1)||vo(this.skewX)||vo(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;if(!(t||e)){i&&(G0(i),this.invTransform=null);return}i=i||Ne(),t?this.getLocalTransform(i):G0(i),e&&(t?On(i,e,i):Jl(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(mo);var i=mo[0]<0?-1:1,o=mo[1]<0?-1:1,r=((mo[0]-i)*t+i)/mo[0]||0,a=((mo[1]-o)*t+o)/mo[1]||0;e[0]*=r,e[1]*=r,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||Ne(),ho(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],o=Math.atan2(e[1],e[0]),r=Math.PI/2+o-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(r),t=Math.sqrt(t),this.skewX=r,this.skewY=0,this.rotation=-o,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=i,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Ne(),On(Or,e.invTransform,t),t=Or);var i=this.originX,o=this.originY;(i||o)&&(Up[4]=i,Up[5]=o,On(Or,t,Up),Or[4]-=i,Or[5]-=o,t=Or),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var i=[e,t],o=this.invTransform;return o&&re(i,i,o),i},n.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],o=this.transform;return o&&re(i,i,o),i},n.prototype.getLineScale=function(){var e=this.transform;return e&&jp(e[0]-1)>1e-10&&jp(e[3]-1)>1e-10?Math.sqrt(jp(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){W0(this,e)},n.getLocalTransform=function(e,t){t=t||[];var i=e.originX||0,o=e.originY||0,r=e.scaleX,a=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,h=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(i||o||s||l){var f=i+s,g=o+l;t[4]=-f*r-p*g*a,t[5]=-g*a-d*f*r}else t[4]=t[5]=0;return t[0]=r,t[3]=a,t[1]=d*r,t[2]=p*a,u&&Ti(t,t,u),t[4]+=i+h,t[5]+=o+c,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),Rn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function W0(n,e){for(var t=0;t=0?parseFloat(n)/100*e:parseFloat(n):n}function Su(n,e,t){var i=e.position||"inside",o=e.distance!=null?e.distance:5,r=t.height,a=t.width,s=r/2,l=t.x,u=t.y,h="left",c="top";if(i instanceof Array)l+=bn(i[0],t.width),u+=bn(i[1],t.height),h=null,c=null;else switch(i){case"left":l-=o,u+=s,h="right",c="middle";break;case"right":l+=o+a,u+=s,c="middle";break;case"top":l+=a/2,u-=o,h="center",c="bottom";break;case"bottom":l+=a/2,u+=r+o,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=o,u+=s,c="middle";break;case"insideRight":l+=a-o,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=o,h="center";break;case"insideBottom":l+=a/2,u+=r-o,h="center",c="bottom";break;case"insideTopLeft":l+=o,u+=o;break;case"insideTopRight":l+=a-o,u+=o,h="right";break;case"insideBottomLeft":l+=o,u+=r-o,c="bottom";break;case"insideBottomRight":l+=a-o,u+=r-o,h="right",c="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=h,n.verticalAlign=c,n}var qp="__zr_normal__",Kp=Rn.concat(["ignore"]),zL=Ue(Rn,function(n,e){return n[e]=!0,n},{ignore:!1}),Rr={},EL=new ct(0,0,0,0),$p=function(){function n(e){this.id=rp(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,i){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var o=this.transform;o||(o=this.transform=[1,0,0,1,0,0]),o[4]+=e,o[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,o=i.local,r=t.innerTransformable,a=void 0,s=void 0,l=!1;r.parent=o?this:null;var u=!1;if(r.copyTransform(t),i.position!=null){var h=EL;i.layoutRect?h.copy(i.layoutRect):h.copy(this.getBoundingRect()),o||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Rr,i,h):Su(Rr,i,h),r.x=Rr.x,r.y=Rr.y,a=Rr.align,s=Rr.verticalAlign;var c=i.origin;if(c&&i.rotation!=null){var p=void 0,d=void 0;c==="center"?(p=h.width*.5,d=h.height*.5):(p=bn(c[0],h.width),d=bn(c[1],h.height)),u=!0,r.originX=-r.x+p+(o?0:h.x),r.originY=-r.y+d+(o?0:h.y)}}i.rotation!=null&&(r.rotation=i.rotation);var f=i.offset;f&&(r.x+=f[0],r.y+=f[1],u||(r.originX=-f[0],r.originY=-f[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,m=void 0,x=void 0;g&&this.canBeInsideText()?(v=i.insideFill,m=i.insideStroke,(v==null||v==="auto")&&(v=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(v),x=!0)):(v=i.outsideFill,m=i.outsideStroke,(v==null||v==="auto")&&(v=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(v),x=!0)),v=v||"#000",(v!==y.fill||m!==y.stroke||x!==y.autoStroke||a!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=v,y.stroke=m,y.autoStroke=x,y.align=a,y.verticalAlign=s,t.setDefaultTextStyle(y)),t.__dirty|=Ge,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Zp:Xp},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i=typeof t=="string"&&Se(t);i||(i=[255,255,255,1]);for(var o=i[3],r=this.__zr.isDarkMode(),a=0;a<3;a++)i[a]=i[a]*o+(r?0:255)*(1-o);return i[3]=1,xn(i,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},V(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(tt(e))for(var i=e,o=mt(i),r=0;r0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(qp,!1,e)},n.prototype.useState=function(e,t,i,o){var r=e===qp,a=this.hasState();if(!(!a&&r)){var s=this.currentStates,l=this.stateTransition;if(!(pt(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!r&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!r){Zl("State "+e+" not exists.");return}r||this.saveCurrentToNormalState(u);var h=!!(u&&u.hoverLayer||o);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!i&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,p=this._textGuide;return c&&c.useState(e,t,i,h),p&&p.useState(e,t,i,h),r?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ge),u}}},n.prototype.useStates=function(e,t,i){if(!e.length)this.clearStates();else{var o=[],r=this.currentStates,a=e.length,s=a===r.length;if(s){for(var l=0;l0,f);var g=this._textContent,y=this._textGuide;g&&g.useStates(e,t,p),y&&y.useStates(e,t,p),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ge)}},n.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var i=this.currentStates.slice();i.splice(t,1),this.useStates(i)}},n.prototype.replaceState=function(e,t,i){var o=this.currentStates.slice(),r=pt(o,e),a=pt(o,t)>=0;r>=0?a?o.splice(r,1):o[r]=t:i&&!a&&o.push(t),this.useStates(o)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},i,o=0;o=0&&r.splice(a,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var i=this.animators,o=i.length,r=[],a=0;a0&&t.during&&r[0].during(function(f,g){t.during(g)});for(var p=0;p0||o.force&&!a.length){var M=void 0,I=void 0,C=void 0;if(s){I={},p&&(M={});for(var _=0;_=0&&(o.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,i){var o=pt(this._children,t);return o>=0&&this.replaceAt(i,o),this},e.prototype.replaceAt=function(t,i){var o=this._children,r=o[i];if(t&&t!==this&&t.parent!==this&&t!==r){o[i]=t,r.parent=null;var a=this.__zr;a&&r.removeSelfFromZr(a),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var i=this.__zr;i&&i!==t.__zr&&t.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(t){var i=this.__zr,o=this._children,r=pt(o,t);return r<0?this:(o.splice(r,1),t.parent=null,i&&t.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,i=this.__zr,o=0;o0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},n.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},n.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},n.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},n.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},n.prototype.on=function(e,t,i){return this._disposed||this.handler.on(e,t,i),this},n.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},n.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},n.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t0){if(n<=o)return a;if(n>=r)return s}else{if(n>=o)return a;if(n<=r)return s}else{if(n===o)return a;if(n===r)return s}return(n-o)/l*u+a}function H(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return Y(n)?KL(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Wt(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),Q0),n=(+n).toFixed(e),t?n:+n}function We(n){return n.sort(function(e,t){return e-t}),n}function wn(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return J0(n)}function J0(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),i=t>0?+e.slice(t+1):0,o=t>0?t:e.length,r=e.indexOf("."),a=r<0?0:o-1-r;return Math.max(0,a-i)}function nd(n,e){var t=Math.log,i=Math.LN10,o=Math.floor(t(n[1]-n[0])/i),r=Math.round(t(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-o+r,0),20);return isFinite(a)?a:20}function $L(n,e,t){if(!n[e])return 0;var i=t1(n,t);return i[e]||0}function t1(n,e){var t=Ue(n,function(d,f){return d+(isNaN(f)?0:f)},0);if(t===0)return[];for(var i=Math.pow(10,e),o=G(n,function(d){return(isNaN(d)?0:d)/t*i*100}),r=i*100,a=G(o,function(d){return Math.floor(d)}),s=Ue(a,function(d,f){return d+f},0),l=G(o,function(d,f){return d-a[f]});su&&(u=l[c],h=c);++a[h],l[h]=0,++s}return G(a,function(d){return d/i})}function QL(n,e){var t=Math.max(wn(n),wn(e)),i=n+e;return t>Q0?i:Wt(i,t)}var id=9007199254740991;function od(n){var e=Math.PI*2;return(n%e+e)%e}function zr(n){return n>-$0&&n<$0}var JL=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function He(n){if(n instanceof Date)return n;if(Y(n)){var e=JL.exec(n);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(n==null)return new Date(NaN);return new Date(Math.round(n))}function e1(n){return Math.pow(10,Iu(n))}function Iu(n){if(n===0)return 0;var e=Math.floor(Math.log(n)/Math.LN10);return n/Math.pow(10,e)>=10&&e++,e}function rd(n,e){var t=Iu(n),i=Math.pow(10,t),o=n/i,r;return e?o<1.5?r=1:o<2.5?r=2:o<4?r=3:o<7?r=5:r=10:o<1?r=1:o<2?r=2:o<3?r=3:o<5?r=5:r=10,n=r*i,t>=-20?+n.toFixed(t<0?-t:0):n}function Tu(n,e){var t=(n.length-1)*e+1,i=Math.floor(t),o=+n[i-1],r=t-i;return r?o+r*(n[i]-o):o}function ad(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,i=0;i=0||r&&pt(r,l)<0)){var u=i.getShallow(l,e);u!=null&&(a[n[s][0]]=u)}}return a}}var SP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],MP=So(SP),IP=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return MP(this,e,t)},n}(),pd=new ts(50);function TP(n){if(typeof n=="string"){var e=pd.get(n);return e&&e.image}else return n}function dd(n,e,t,i,o){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var r=pd.get(n),a={hostEl:t,cb:i,cbPayload:o};return r?(e=r.image,!Au(e)&&r.pending.push(a)):(e=gn.loadImage(n,g1,g1),e.__zrImageSrc=n,pd.put(n,e.__cachedImgObj={image:e,pending:[a]})),e}else return n;else return e}function g1(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=Fe(t,e);return u>s&&(t="",u=0),s=n-u,o.ellipsis=t,o.ellipsisWidth=u,o.contentWidth=s,o.containerWidth=n,o}function m1(n,e){var t=e.containerWidth,i=e.font,o=e.contentWidth;if(!t)return"";var r=Fe(n,i);if(r<=t)return n;for(var a=0;;a++){if(r<=o||a>=e.maxIterations){n+=e.ellipsis;break}var s=a===0?CP(n,o,e.ascCharWidth,e.cnCharWidth):r>0?Math.floor(n.length*o/r):0;n=n.substr(0,s),r=Fe(n,i)}return n===""&&(n=e.placeholder),n}function CP(n,e,t,i){for(var o=0,r=0,a=n.length;rd&&u){var f=Math.floor(d/s);c=c.slice(0,f)}if(n&&r&&h!=null)for(var g=v1(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;ys&&gd(t,n.substring(s,u),e,a),gd(t,l[2],e,a,l[1]),s=fd.lastIndex}so){w>0?(m.tokens=m.tokens.slice(0,w),y(m,_,x),t.lines=t.lines.slice(0,v+1)):t.lines=t.lines.slice(0,v);break t}var D=S.width,k=D==null||D==="auto";if(typeof D=="string"&&D.charAt(D.length-1)==="%")b.percentWidth=D,h.push(b),b.contentWidth=Fe(b.text,C);else{if(k){var L=S.backgroundColor,P=L&&L.image;P&&(P=TP(P),Au(P)&&(b.width=Math.max(b.width,P.width*A/P.height)))}var O=f&&i!=null?i-_:null;O!=null&&O0&&f+i.accumWidth>i.width&&(h=e.split(` +`),u=!0),i.accumWidth=f}else{var g=_1(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,c=g.linesWidths,h=g.lines}}else h=e.split(` +`);for(var y=0;y=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var OP=Ue(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function NP(n){return PP(n)?!!OP[n]:!0}function _1(n,e,t,i,o){for(var r=[],a=[],s="",l="",u=0,h=0,c=0;ct:o+h+d>t){h?(s||l)&&(f?(s||(s=l,l="",u=0,h=u),r.push(s),a.push(h-u),l+=p,u+=d,s="",h=u):(l&&(s+=l,l="",u=0),r.push(s),a.push(h),s=p,h=d)):f?(r.push(l),a.push(u),l=p,u=d):(r.push(p),a.push(d));continue}h+=d,f?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p)}return!r.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(r.push(s),a.push(h)),r.length===1&&(h+=o),{accumWidth:h,lines:r,linesWidths:a}}var yd="__zr_style_"+Math.round(Math.random()*10),Mo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Du={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Mo[yd]=!0;var b1=["z","z2","invisible"],RP=["invisible"],zP=function(n){N(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var i=mt(t),o=0;o1e-4){s[0]=n-t,s[1]=e-i,l[0]=n+t,l[1]=e+i;return}if(ku[0]=_d(o)*t+n,ku[1]=xd(o)*i+e,Lu[0]=_d(r)*t+n,Lu[1]=xd(r)*i+e,u(s,ku,Lu),h(l,ku,Lu),o=o%Io,o<0&&(o=o+Io),r=r%Io,r<0&&(r=r+Io),o>r&&!a?r+=Io:oo&&(Pu[0]=_d(d)*t+n,Pu[1]=xd(d)*i+e,u(s,Pu,s),h(l,Pu,l))}var Nt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},To=[],Co=[],Vn=[],Pi=[],Bn=[],Gn=[],bd=Math.min,wd=Math.max,Ao=Math.cos,Do=Math.sin,ai=Math.abs,Sd=Math.PI,Oi=Sd*2,Md=typeof Float32Array<"u",gs=[];function Id(n){var e=Math.round(n/Sd*1e8)/1e8;return e%2*Sd}function Td(n,e){var t=Id(n[0]);t<0&&(t+=Oi);var i=t-n[0],o=n[1];o+=i,!e&&o-t>=Oi?o=t+Oi:e&&t-o>=Oi?o=t-Oi:!e&&t>o?o=t+(Oi-Id(t-o)):e&&t0&&(this._ux=ai(i/bu/e)||0,this._uy=ai(i/bu/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Nt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var i=ai(e-this._xi),o=ai(t-this._yi),r=i>this._ux||o>this._uy;if(this.addData(Nt.L,e,t),this._ctx&&r&&this._ctx.lineTo(e,t),r)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=i*i+o*o;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},n.prototype.bezierCurveTo=function(e,t,i,o,r,a){return this._drawPendingPt(),this.addData(Nt.C,e,t,i,o,r,a),this._ctx&&this._ctx.bezierCurveTo(e,t,i,o,r,a),this._xi=r,this._yi=a,this},n.prototype.quadraticCurveTo=function(e,t,i,o){return this._drawPendingPt(),this.addData(Nt.Q,e,t,i,o),this._ctx&&this._ctx.quadraticCurveTo(e,t,i,o),this._xi=i,this._yi=o,this},n.prototype.arc=function(e,t,i,o,r,a){this._drawPendingPt(),gs[0]=o,gs[1]=r,Td(gs,a),o=gs[0],r=gs[1];var s=r-o;return this.addData(Nt.A,e,t,i,i,o,s,0,a?0:1),this._ctx&&this._ctx.arc(e,t,i,o,r,a),this._xi=Ao(r)*i+e,this._yi=Do(r)*i+t,this},n.prototype.arcTo=function(e,t,i,o,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,i,o,r),this},n.prototype.rect=function(e,t,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,i,o),this.addData(Nt.R,e,t,i,o),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(Nt.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&e.closePath(),this._xi=t,this._yi=i,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&Md&&(this.data=new Float32Array(t));for(var i=0;ih.length&&(this._expandData(),h=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){Vn[0]=Vn[1]=Bn[0]=Bn[1]=Number.MAX_VALUE,Pi[0]=Pi[1]=Gn[0]=Gn[1]=-Number.MAX_VALUE;var e=this.data,t=0,i=0,o=0,r=0,a;for(a=0;ai||ai(x)>o||p===t-1)&&(g=Math.sqrt(m*m+x*x),r=y,a=v);break}case Nt.C:{var _=e[p++],w=e[p++],y=e[p++],v=e[p++],b=e[p++],S=e[p++];g=Kk(r,a,_,w,y,v,b,S,10),r=b,a=S;break}case Nt.Q:{var _=e[p++],w=e[p++],y=e[p++],v=e[p++];g=Qk(r,a,_,w,y,v,10),r=y,a=v;break}case Nt.A:var M=e[p++],I=e[p++],C=e[p++],A=e[p++],D=e[p++],k=e[p++],L=k+D;p+=1,f&&(s=Ao(D)*C+M,l=Do(D)*A+I),g=wd(C,A)*bd(Oi,Math.abs(k)),r=Ao(L)*C+M,a=Do(L)*A+I;break;case Nt.R:{s=r=e[p++],l=a=e[p++];var P=e[p++],O=e[p++];g=P*2+O*2;break}case Nt.Z:{var m=s-r,x=l-a;g=Math.sqrt(m*m+x*x),r=s,a=l;break}}g>=0&&(u[c++]=g,h+=g)}return this._pathLen=h,h},n.prototype.rebuildPath=function(e,t){var i=this.data,o=this._ux,r=this._uy,a=this._len,s,l,u,h,c,p,d=t<1,f,g,y=0,v=0,m,x=0,_,w;if(!(d&&(this._pathSegLen||this._calculateLength(),f=this._pathSegLen,g=this._pathLen,m=t*g,!m)))t:for(var b=0;b0&&(e.lineTo(_,w),x=0),S){case Nt.M:s=u=i[b++],l=h=i[b++],e.moveTo(u,h);break;case Nt.L:{c=i[b++],p=i[b++];var I=ai(c-u),C=ai(p-h);if(I>o||C>r){if(d){var A=f[v++];if(y+A>m){var D=(m-y)/A;e.lineTo(u*(1-D)+c*D,h*(1-D)+p*D);break t}y+=A}e.lineTo(c,p),u=c,h=p,x=0}else{var k=I*I+C*C;k>x&&(_=c,w=p,x=k)}break}case Nt.C:{var L=i[b++],P=i[b++],O=i[b++],z=i[b++],R=i[b++],E=i[b++];if(d){var A=f[v++];if(y+A>m){var D=(m-y)/A;Di(u,L,O,R,D,To),Di(h,P,z,E,D,Co),e.bezierCurveTo(To[1],Co[1],To[2],Co[2],To[3],Co[3]);break t}y+=A}e.bezierCurveTo(L,P,O,z,R,E),u=R,h=E;break}case Nt.Q:{var L=i[b++],P=i[b++],O=i[b++],z=i[b++];if(d){var A=f[v++];if(y+A>m){var D=(m-y)/A;Ja(u,L,O,D,To),Ja(h,P,z,D,Co),e.quadraticCurveTo(To[1],Co[1],To[2],Co[2]);break t}y+=A}e.quadraticCurveTo(L,P,O,z),u=O,h=z;break}case Nt.A:var F=i[b++],W=i[b++],X=i[b++],$=i[b++],J=i[b++],ft=i[b++],xt=i[b++],gt=!i[b++],nt=X>$?X:$,yt=ai(X-$)>.001,lt=J+ft,q=!1;if(d){var A=f[v++];y+A>m&&(lt=J+ft*(m-y)/A,q=!0),y+=A}if(yt&&e.ellipse?e.ellipse(F,W,X,$,xt,J,lt,gt):e.arc(F,W,nt,J,lt,gt),q)break t;M&&(s=Ao(J)*X+F,l=Do(J)*$+W),u=Ao(lt)*X+F,h=Do(lt)*$+W;break;case Nt.R:s=u=i[b],l=h=i[b+1],c=i[b++],p=i[b++];var ut=i[b++],Gt=i[b++];if(d){var A=f[v++];if(y+A>m){var Mt=m-y;e.moveTo(c,p),e.lineTo(c+bd(Mt,ut),p),Mt-=ut,Mt>0&&e.lineTo(c+ut,p+bd(Mt,Gt)),Mt-=Gt,Mt>0&&e.lineTo(c+wd(ut-Mt,0),p+Gt),Mt-=ut,Mt>0&&e.lineTo(c,p+wd(Gt-Mt,0));break t}y+=A}e.rect(c,p,ut,Gt);break;case Nt.Z:if(d){var A=f[v++];if(y+A>m){var D=(m-y)/A;e.lineTo(u*(1-D)+s*D,h*(1-D)+l*D);break t}y+=A}e.closePath(),u=s,h=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=Nt,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();const Fn=FP;function Ni(n,e,t,i,o,r,a){if(o===0)return!1;var s=o,l=0,u=n;if(a>e+s&&a>i+s||an+s&&r>t+s||re+c&&h>i+c&&h>r+c&&h>s+c||hn+c&&u>t+c&&u>o+c&&u>a+c||ue+u&&l>i+u&&l>r+u||ln+u&&s>t+u&&s>o+u||st||h+uo&&(o+=ys);var p=Math.atan2(l,s);return p<0&&(p+=ys),p>=i&&p<=o||p+ys>=i&&p+ys<=o}function si(n,e,t,i,o,r){if(r>e&&r>i||ro?s:0}var Ri=Fn.CMD,ko=Math.PI*2,YP=1e-4;function XP(n,e){return Math.abs(n-e)e&&u>i&&u>r&&u>s||u1&&ZP(),d=te(e,i,r,s,tn[0]),p>1&&(f=te(e,i,r,s,tn[1]))),p===2?ye&&s>i&&s>r||s=0&&u<=1){for(var h=0,c=ae(e,i,r,u),p=0;pt||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Me[0]=-l,Me[1]=l;var u=Math.abs(i-o);if(u<1e-4)return 0;if(u>=ko-1e-4){i=0,o=ko;var h=r?1:-1;return a>=Me[0]+n&&a<=Me[1]+n?h:0}if(i>o){var c=i;i=o,o=c}i<0&&(i+=ko,o+=ko);for(var p=0,d=0;d<2;d++){var f=Me[d];if(f+n>a){var g=Math.atan2(s,f),h=r?1:-1;g<0&&(g=ko+g),(g>=i&&g<=o||g+ko>=i&&g+ko<=o)&&(g>Math.PI/2&&g1&&(t||(s+=si(l,u,h,c,i,o))),y&&(l=r[f],u=r[f+1],h=l,c=u),g){case Ri.M:h=r[f++],c=r[f++],l=h,u=c;break;case Ri.L:if(t){if(Ni(l,u,r[f],r[f+1],e,i,o))return!0}else s+=si(l,u,r[f],r[f+1],i,o)||0;l=r[f++],u=r[f++];break;case Ri.C:if(t){if(WP(l,u,r[f++],r[f++],r[f++],r[f++],r[f],r[f+1],e,i,o))return!0}else s+=UP(l,u,r[f++],r[f++],r[f++],r[f++],r[f],r[f+1],i,o)||0;l=r[f++],u=r[f++];break;case Ri.Q:if(t){if(I1(l,u,r[f++],r[f++],r[f],r[f+1],e,i,o))return!0}else s+=jP(l,u,r[f++],r[f++],r[f],r[f+1],i,o)||0;l=r[f++],u=r[f++];break;case Ri.A:var v=r[f++],m=r[f++],x=r[f++],_=r[f++],w=r[f++],b=r[f++];f+=1;var S=!!(1-r[f++]);p=Math.cos(w)*x+v,d=Math.sin(w)*_+m,y?(h=p,c=d):s+=si(l,u,p,d,i,o);var M=(i-v)*_/x+v;if(t){if(HP(v,m,_,w,w+b,S,e,M,o))return!0}else s+=qP(v,m,_,w,w+b,S,M,o);l=Math.cos(w+b)*x+v,u=Math.sin(w+b)*_+m;break;case Ri.R:h=l=r[f++],c=u=r[f++];var I=r[f++],C=r[f++];if(p=h+I,d=c+C,t){if(Ni(h,c,p,c,e,i,o)||Ni(p,c,p,d,e,i,o)||Ni(p,d,h,d,e,i,o)||Ni(h,d,h,c,e,i,o))return!0}else s+=si(p,c,p,d,i,o),s+=si(h,d,h,c,i,o);break;case Ri.Z:if(t){if(Ni(l,u,h,c,e,i,o))return!0}else s+=si(l,u,h,c,i,o);l=h,u=c;break}}return!t&&!XP(u,c)&&(s+=si(l,u,h,c,i,o)||0),s!==0}function KP(n,e,t){return C1(n,0,!1,e,t)}function $P(n,e,t,i){return C1(n,e,!0,t,i)}var Nu=Q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Mo),QP={style:Q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Du.style)},Cd=Rn.concat(["invisible","culling","z","z2","zlevel","parent"]),JP=function(n){N(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var i=this.style;if(i.decal){var o=this._decalEl=this._decalEl||new e;o.buildPath===e.prototype.buildPath&&(o.buildPath=function(l){t.buildPath(l,t.shape)}),o.silent=!0;var r=o.style;for(var a in i)r[a]!==i[a]&&(r[a]=i[a]);r.fill=i.fill?i.decal:null,r.decal=null,r.shadowColor=null,i.strokeFirst&&(r.stroke=null);for(var s=0;s.5?Xp:i>.2?NL:Zp}else if(t)return Zp}return Xp},e.prototype.getInsideTextStroke=function(t){var i=this.style.fill;if(Y(i)){var o=this.__zr,r=!!(o&&o.isDarkMode()),a=os(t,0)0))},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,i=this.style,o=!t;if(o){var r=!1;this.path||(r=!0,this.createPathProxy());var a=this.path;(r||this.__dirty&Ar)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),t=a.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||o){s.copy(t);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var h=this.strokeContainThreshold;u=Math.max(u,h??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,i){var o=this.transformCoordToLocal(t,i),r=this.getBoundingRect(),a=this.style;if(t=o[0],i=o[1],r.contain(t,i)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,u=a.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),$P(s,l/u,t,i)))return!0}if(this.hasFill())return KP(s,t,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Ar,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,i){t==="shape"?this.setShape(i):n.prototype.attrKV.call(this,t,i)},e.prototype.setShape=function(t,i){var o=this.shape;return o||(o=this.shape={}),typeof t=="string"?o[t]=i:V(o,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Ar)},e.prototype.createStyle=function(t){return Wa(Nu,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.shape&&!i.shape&&(i.shape=V({},this.shape))},e.prototype._applyStateObj=function(t,i,o,r,a,s){n.prototype._applyStateObj.call(this,t,i,o,r,a,s);var l=!(i&&r),u;if(i&&i.shape?a?r?u=i.shape:(u=V({},o.shape),V(u,i.shape)):(u=V({},r?this.shape:o.shape),V(u,i.shape)):l&&(u=o.shape),u)if(a){this.shape=V({},this.shape);for(var h={},c=mt(u),p=0;p0},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(t){return Wa(tO,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var i=t.text;i!=null?i+="":i="";var o=us(i,t.font,t.textAlign,t.textBaseline);if(o.x+=t.x||0,o.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;o.x-=r/2,o.y-=r/2,o.width+=r,o.height+=r}this._rect=o}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Je);A1.prototype.type="tspan";const vs=A1;var eO=Q({x:0,y:0},Mo),nO={style:Q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Du.style)};function iO(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var D1=function(n){N(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Wa(eO,t)},e.prototype._getSize=function(t){var i=this.style,o=i[t];if(o!=null)return o;var r=iO(i.image)?i.image:this.__image;if(!r)return 0;var a=t==="width"?"height":"width",s=i[a];return s==null?r[t]:r[t]/r[a]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return nO},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ct(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Je);D1.prototype.type="image";const se=D1;function oO(n,e){var t=e.x,i=e.y,o=e.width,r=e.height,a=e.r,s,l,u,h;o<0&&(t=t+o,o=-o),r<0&&(i=i+r,r=-r),typeof a=="number"?s=l=u=h=a:a instanceof Array?a.length===1?s=l=u=h=a[0]:a.length===2?(s=u=a[0],l=h=a[1]):a.length===3?(s=a[0],l=h=a[1],u=a[2]):(s=a[0],l=a[1],u=a[2],h=a[3]):s=l=u=h=0;var c;s+l>o&&(c=s+l,s*=o/c,l*=o/c),u+h>o&&(c=u+h,u*=o/c,h*=o/c),l+u>r&&(c=l+u,l*=r/c,u*=r/c),s+h>r&&(c=s+h,s*=r/c,h*=r/c),n.moveTo(t+s,i),n.lineTo(t+o-l,i),l!==0&&n.arc(t+o-l,i+l,l,-Math.PI/2,0),n.lineTo(t+o,i+r-u),u!==0&&n.arc(t+o-u,i+r-u,u,0,Math.PI/2),n.lineTo(t+h,i+r),h!==0&&n.arc(t+h,i+r-h,h,Math.PI/2,Math.PI),n.lineTo(t,i+s),s!==0&&n.arc(t+s,i+s,s,Math.PI,Math.PI*1.5)}var Vr=Math.round;function k1(n,e,t){if(e){var i=e.x1,o=e.x2,r=e.y1,a=e.y2;n.x1=i,n.x2=o,n.y1=r,n.y2=a;var s=t&&t.lineWidth;return s&&(Vr(i*2)===Vr(o*2)&&(n.x1=n.x2=Lo(i,s,!0)),Vr(r*2)===Vr(a*2)&&(n.y1=n.y2=Lo(r,s,!0))),n}}function L1(n,e,t){if(e){var i=e.x,o=e.y,r=e.width,a=e.height;n.x=i,n.y=o,n.width=r,n.height=a;var s=t&&t.lineWidth;return s&&(n.x=Lo(i,s,!0),n.y=Lo(o,s,!0),n.width=Math.max(Lo(i+r,s,!1)-n.x,r===0?0:1),n.height=Math.max(Lo(o+a,s,!1)-n.y,a===0?0:1)),n}}function Lo(n,e,t){if(!e)return n;var i=Vr(n*2);return(i+Vr(e))%2===0?i/2:(i+(t?1:-1))/2}var rO=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),aO={},P1=function(n){N(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new rO},e.prototype.buildPath=function(t,i){var o,r,a,s;if(this.subPixelOptimize){var l=L1(aO,i,this.style);o=l.x,r=l.y,a=l.width,s=l.height,l.r=i.r,i=l}else o=i.x,r=i.y,a=i.width,s=i.height;i.r?oO(t,i):t.rect(o,r,a,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(vt);P1.prototype.type="rect";const wt=P1;var O1={fill:"#000"},N1=2,sO={style:Q({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Du.style)},R1=function(n){N(e,n);function e(t){var i=n.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=O1,i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,D=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),k=a.calculatedLineHeight,L=0;L=0&&(L=b[k],L.align==="right");)this._placeToken(L,t,M,v,D,"right",x),I-=L.width,D-=L.width,k--;for(A+=(r-(A-y)-(m-D)-I)/2;C<=k;)L=b[C],this._placeToken(L,t,M,v,A+L.width/2,"center",x),A+=L.width,C++;v+=M}},e.prototype._placeToken=function(t,i,o,r,a,s,l){var u=i.rich[t.styleName]||{};u.text=t.text;var h=t.verticalAlign,c=r+o/2;h==="top"?c=r+t.height/2:h==="bottom"&&(c=r+o-t.height/2);var p=!t.isLineHolder&&Ad(u);p&&this._renderBackground(u,i,s==="right"?a-t.width:s==="center"?a-t.width/2:a,c-t.height/2,t.width,t.height);var d=!!u.backgroundColor,f=t.textPadding;f&&(a=H1(a,s,f),c-=t.height/2-f[0]-t.innerHeight/2);var g=this._getOrCreateChild(vs),y=g.createStyle();g.useStyle(y);var v=this._defaultStyle,m=!1,x=0,_=W1("fill"in u?u.fill:"fill"in i?i.fill:(m=!0,v.fill)),w=F1("stroke"in u?u.stroke:"stroke"in i?i.stroke:!d&&!l&&(!v.autoStroke||m)?(x=N1,v.stroke):null),b=u.textShadowBlur>0||i.textShadowBlur>0;y.text=t.text,y.x=a,y.y=c,b&&(y.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,y.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",y.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,y.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),y.textAlign=s,y.textBaseline="middle",y.font=t.font||wi,y.opacity=yn(u.opacity,i.opacity,1),V1(y,u),w&&(y.lineWidth=yn(u.lineWidth,i.lineWidth,x),y.lineDash=at(u.lineDash,i.lineDash),y.lineDashOffset=i.lineDashOffset||0,y.stroke=w),_&&(y.fill=_);var S=t.contentWidth,M=t.contentHeight;g.setBoundingRect(new ct(hs(y.x,S,y.textAlign),Nr(y.y,M,y.textBaseline),S,M))},e.prototype._renderBackground=function(t,i,o,r,a,s){var l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,c=l&&l.image,p=l&&!c,d=t.borderRadius,f=this,g,y;if(p||t.lineHeight||u&&h){g=this._getOrCreateChild(wt),g.useStyle(g.createStyle()),g.style.fill=null;var v=g.shape;v.x=o,v.y=r,v.width=a,v.height=s,v.r=d,g.dirtyShape()}if(p){var m=g.style;m.fill=l||null,m.fillOpacity=at(t.fillOpacity,1)}else if(c){y=this._getOrCreateChild(se),y.onload=function(){f.dirtyStyle()};var x=y.style;x.image=l.image,x.x=o,x.y=r,x.width=a,x.height=s}if(u&&h){var m=g.style;m.lineWidth=u,m.stroke=h,m.strokeOpacity=at(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var _=(g||y).style;_.shadowBlur=t.shadowBlur||0,_.shadowColor=t.shadowColor||"transparent",_.shadowOffsetX=t.shadowOffsetX||0,_.shadowOffsetY=t.shadowOffsetY||0,_.opacity=yn(t.opacity,i.opacity,1)},e.makeFont=function(t){var i="";return B1(t)&&(i=[t.fontStyle,t.fontWeight,E1(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),i&&je(i)||t.textFont||t.font},e}(Je),lO={left:!0,right:1,center:1},uO={top:1,bottom:1,middle:1},z1=["fontStyle","fontWeight","fontSize","fontFamily"];function E1(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?np+"px":n+"px"}function V1(n,e){for(var t=0;t=0,r=!1;if(n instanceof vt){var a=U1(n),s=o&&a.selectFill||a.normalFill,l=o&&a.selectStroke||a.normalStroke;if(Gr(s)||Gr(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(r=!0,i=V({},i),u=V({},u),u.fill=s):!Gr(u.fill)&&Gr(s)?(r=!0,i=V({},i),u=V({},u),u.fill=cu(s)):!Gr(u.stroke)&&Gr(l)&&(r||(i=V({},i),u=V({},u)),u.stroke=cu(l)),i.style=u}}if(i&&i.z2==null){r||(i=V({},i));var h=n.z2EmphasisLift;i.z2=n.z2+(h??Br)}return i}function yO(n,e,t){if(t&&t.z2==null){t=V({},t);var i=n.z2SelectLift;t.z2=n.z2+(i??cO)}return t}function vO(n,e,t){var i=pt(n.currentStates,e)>=0,o=n.style.opacity,r=i?null:fO(n,["opacity"],e,{opacity:1});t=t||{};var a=t.style||{};return a.opacity==null&&(t=V({},t),a=V({opacity:i?o:r.opacity*.1},a),t.style=a),t}function Od(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return gO(this,n,e,t);if(n==="blur")return vO(this,n,t);if(n==="select")return yO(this,n,t)}return t}function Oo(n){n.stateProxy=Od;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=Od),t&&(t.stateProxy=Od)}function Q1(n,e){!ix(n,e)&&!n.__highByOuter&&li(n,j1)}function J1(n,e){!ix(n,e)&&!n.__highByOuter&&li(n,q1)}function ui(n,e){n.__highByOuter|=1<<(e||0),li(n,j1)}function hi(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&li(n,q1)}function tx(n){li(n,Pd)}function Nd(n){li(n,K1)}function ex(n){li(n,pO)}function nx(n){li(n,dO)}function ix(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function ox(n){var e=n.getModel(),t=[],i=[];e.eachComponent(function(o,r){var a=kd(r),s=o==="series",l=s?n.getViewOfSeriesModel(r):n.getViewOfComponentModel(r);!s&&i.push(l),a.isBlured&&(l.group.traverse(function(u){K1(u)}),s&&t.push(r)),a.isBlured=!1}),T(i,function(o){o&&o.toggleBlurSeries&&o.toggleBlurSeries(t,!1,e)})}function Rd(n,e,t,i){var o=i.getModel();t=t||"coordinateSystem";function r(u,h){for(var c=0;c0){var s={dataIndex:a,seriesIndex:t.seriesIndex};r!=null&&(s.dataType=r),e.push(s)}})}),e}function zi(n,e,t){No(n,!0),li(n,Oo),Vd(n,e,t)}function SO(n){No(n,!1)}function Ht(n,e,t,i){i?SO(n):zi(n,e,t)}function Vd(n,e,t){var i=ot(n);e!=null?(i.focus=e,i.blurScope=t):i.focus&&(i.focus=null)}var ax=["emphasis","blur","select"],MO={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ue(n,e,t,i){t=t||"itemStyle";for(var o=0;o1&&(a*=Gd(f),s*=Gd(f));var g=(o===r?-1:1)*Gd((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,y=g*a*d/s,v=g*-s*p/a,m=(n+t)/2+Fu(c)*y-Gu(c)*v,x=(e+i)/2+Gu(c)*y+Fu(c)*v,_=cx([1,0],[(p-y)/a,(d-v)/s]),w=[(p-y)/a,(d-v)/s],b=[(-1*p-y)/a,(-1*d-v)/s],S=cx(w,b);if(Fd(w,b)<=-1&&(S=Ss),Fd(w,b)>=1&&(S=0),S<0){var M=Math.round(S/Ss*1e6)/1e6;S=Ss*2+M%2*Ss}h.addData(u,m,x,a,s,_,S,c,r)}var kO=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,LO=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function PO(n){var e=new Fn;if(!n)return e;var t=0,i=0,o=t,r=i,a,s=Fn.CMD,l=n.match(kO);if(!l)return e;for(var u=0;uL*L+P*P&&(M=C,I=A),{cx:M,cy:I,x0:-h,y0:-c,x1:M*(o/w-1),y1:I*(o/w-1)}}function BO(n){var e;if(B(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function GO(n,e){var t,i=Is(e.r,0),o=Is(e.r0||0,0),r=i>0,a=o>0;if(!(!r&&!a)){if(r||(i=o,o=0),o>i){var s=i;i=o,o=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var h=e.cx,c=e.cy,p=!!e.clockwise,d=_x(u-l),f=d>Hd&&d%Hd;if(f>Sn&&(d=f),!(i>Sn))n.moveTo(h,c);else if(d>Hd-Sn)n.moveTo(h+i*Wr(l),c+i*Ro(l)),n.arc(h,c,i,l,u,!p),o>Sn&&(n.moveTo(h+o*Wr(u),c+o*Ro(u)),n.arc(h,c,o,u,l,p));else{var g=void 0,y=void 0,v=void 0,m=void 0,x=void 0,_=void 0,w=void 0,b=void 0,S=void 0,M=void 0,I=void 0,C=void 0,A=void 0,D=void 0,k=void 0,L=void 0,P=i*Wr(l),O=i*Ro(l),z=o*Wr(u),R=o*Ro(u),E=d>Sn;if(E){var F=e.cornerRadius;F&&(t=BO(F),g=t[0],y=t[1],v=t[2],m=t[3]);var W=_x(i-o)/2;if(x=Wn(W,v),_=Wn(W,m),w=Wn(W,g),b=Wn(W,y),I=S=Is(x,_),C=M=Is(w,b),(S>Sn||M>Sn)&&(A=i*Wr(u),D=i*Ro(u),k=o*Wr(l),L=o*Ro(l),dSn){var yt=Wn(v,I),lt=Wn(m,I),q=Hu(k,L,P,O,i,yt,p),ut=Hu(A,D,z,R,i,lt,p);n.moveTo(h+q.cx+q.x0,c+q.cy+q.y0),I0&&n.arc(h+q.cx,c+q.cy,yt,ve(q.y0,q.x0),ve(q.y1,q.x1),!p),n.arc(h,c,i,ve(q.cy+q.y1,q.cx+q.x1),ve(ut.cy+ut.y1,ut.cx+ut.x1),!p),lt>0&&n.arc(h+ut.cx,c+ut.cy,lt,ve(ut.y1,ut.x1),ve(ut.y0,ut.x0),!p))}else n.moveTo(h+P,c+O),n.arc(h,c,i,l,u,!p);if(!(o>Sn)||!E)n.lineTo(h+z,c+R);else if(C>Sn){var yt=Wn(g,C),lt=Wn(y,C),q=Hu(z,R,A,D,o,-lt,p),ut=Hu(P,O,k,L,o,-yt,p);n.lineTo(h+q.cx+q.x0,c+q.cy+q.y0),C0&&n.arc(h+q.cx,c+q.cy,lt,ve(q.y0,q.x0),ve(q.y1,q.x1),!p),n.arc(h,c,o,ve(q.cy+q.y1,q.cx+q.x1),ve(ut.cy+ut.y1,ut.cx+ut.x1),p),yt>0&&n.arc(h+ut.cx,c+ut.cy,yt,ve(ut.y1,ut.x1),ve(ut.y0,ut.x0),!p))}else n.lineTo(h+z,c+R),n.arc(h,c,o,u,l,p)}n.closePath()}}}var FO=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),bx=function(n){N(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new FO},e.prototype.buildPath=function(t,i){GO(t,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(vt);bx.prototype.type="sector";const Te=bx;var WO=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),Sx=function(n){N(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new WO},e.prototype.buildPath=function(t,i){var o=i.cx,r=i.cy,a=Math.PI*2;t.moveTo(o+i.r,r),t.arc(o,r,i.r,0,a,!1),t.moveTo(o+i.r0,r),t.arc(o,r,i.r0,0,a,!0)},e}(vt);Sx.prototype.type="ring";const Ts=Sx;function HO(n,e,t,i){var o=[],r=[],a=[],s=[],l,u,h,c;if(i){h=[1/0,1/0],c=[-1/0,-1/0];for(var p=0,d=n.length;p=2){if(i){var r=HO(o,i,t,e.smoothConstraint);n.moveTo(o[0][0],o[0][1]);for(var a=o.length,s=0;s<(t?a:a-1);s++){var l=r[s*2],u=r[s*2+1],h=o[(s+1)%a];n.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{n.moveTo(o[0][0],o[0][1]);for(var s=1,c=o.length;sEo[1]){if(s=!1,r)return s;var h=Math.abs(Eo[0]-zo[1]),c=Math.abs(zo[0]-Eo[1]);Math.min(h,c)>o.len()&&(h0){var c=h.duration,p=h.delay,d=h.easing,f={duration:c,delay:p||0,easing:d,done:r,force:!!r||!!a,setToFinal:!u,scope:n,during:a};s?e.animateFrom(t,f):e.animateTo(t,f)}else e.stopAnimation(),!s&&e.attr(t),a&&a(1),r&&r()}function Ct(n,e,t,i,o,r){Xd("update",n,e,t,i,o,r)}function Vt(n,e,t,i,o,r){Xd("enter",n,e,t,i,o,r)}function Xr(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"}function Vx(n){return!n.isGroup}function aN(n){return n.shape!=null}function ks(n,e,t){if(!n||!e)return;function i(a){var s={};return a.traverse(function(l){Vx(l)&&l.anid&&(s[l.anid]=l)}),s}function o(a){var s={x:a.x,y:a.y,rotation:a.rotation};return aN(a)&&(s.shape=V({},a.shape)),s}var r=i(n);e.traverse(function(a){if(Vx(a)&&a.anid){var s=r[a.anid];if(s){var l=o(a);a.attr(o(s)),Ct(a,l,t,ot(a).dataIndex)}}})}function qd(n,e){return G(n,function(t){var i=t[0];i=qu(i,e.x),i=Ku(i,e.x+e.width);var o=t[1];return o=qu(o,e.y),o=Ku(o,e.y+e.height),[i,o]})}function Bx(n,e){var t=qu(n.x,e.x),i=Ku(n.x+n.width,e.x+e.width),o=qu(n.y,e.y),r=Ku(n.y+n.height,e.y+e.height);if(i>=t&&r>=o)return{x:t,y:o,width:i-t,height:r-o}}function Ur(n,e,t){var i=V({rectHover:!0},e),o=i.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(o.image=n.slice(8),Q(o,t),new se(i)):Ds(n.replace("path://",""),i,t,"center")}function Ls(n,e,t,i,o){for(var r=0,a=o[o.length-1];r1)return!1;var y=Kd(d,f,h,c)/p;return!(y<0||y>1)}function Kd(n,e,t,i){return n*i-t*e}function sN(n){return n<=1e-6&&n>=-1e-6}function jr(n){var e=n.itemTooltipOption,t=n.componentModel,i=n.itemName,o=Y(e)?{formatter:e}:e,r=t.mainType,a=t.componentIndex,s={componentType:r,name:i,$vars:["name"]};s[r+"Index"]=a;var l=n.formatterParamsExtra;l&&T(mt(l),function(h){U(s,h)||(s[h]=l[h],s.$vars.push(h))});var u=ot(n.el);u.componentMainType=r,u.componentIndex=a,u.tooltipConfig={name:i,option:Q({content:i,encodeHTMLContent:!0,formatterParams:s},o)}}function Fx(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Bi(n,e){if(n)if(B(n))for(var t=0;t=0&&s.push(l)}),s}}function Gi(n,e){return st(st({},n,!0),e,!0)}const _N={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},bN={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var nh="ZH",ef="EN",$r=ef,ih={},nf={},$x=It.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage||$r).toUpperCase();return n.indexOf(nh)>-1?nh:$r}():$r;function of(n,e){n=n.toUpperCase(),nf[n]=new Pt(e),ih[n]=e}function wN(n){if(Y(n)){var e=ih[n.toUpperCase()]||{};return n===nh||n===ef?et(e):st(et(e),et(ih[$r]),!1)}else return st(et(n),et(ih[$r]),!1)}function rf(n){return nf[n]}function SN(){return nf[$r]}of(ef,_N),of(nh,bN);var af=1e3,sf=af*60,Ps=sf*60,nn=Ps*24,Qx=nn*365,Os={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},oh="{yyyy}-{MM}-{dd}",Jx={year:"{yyyy}",month:"{yyyy}-{MM}",day:oh,hour:oh+" "+Os.hour,minute:oh+" "+Os.minute,second:oh+" "+Os.second,millisecond:Os.none},lf=["year","month","day","hour","minute","second","millisecond"],t_=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function De(n,e){return n+="","0000".substr(0,e-n.length)+n}function Qr(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function MN(n){return n===Qr(n)}function IN(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Ns(n,e,t,i){var o=He(n),r=o[uf(t)](),a=o[Jr(t)]()+1,s=Math.floor((a-1)/3)+1,l=o[rh(t)](),u=o["get"+(t?"UTC":"")+"Day"](),h=o[Rs(t)](),c=(h-1)%12+1,p=o[ah(t)](),d=o[sh(t)](),f=o[lh(t)](),g=h>=12?"pm":"am",y=g.toUpperCase(),v=i instanceof Pt?i:rf(i||$x)||SN(),m=v.getModel("time"),x=m.get("month"),_=m.get("monthAbbr"),w=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,r+"").replace(/{yy}/g,De(r%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[a-1]).replace(/{MMM}/g,_[a-1]).replace(/{MM}/g,De(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,De(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,De(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,De(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,De(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,De(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,De(f,3)).replace(/{S}/g,f+"")}function TN(n,e,t,i,o){var r=null;if(Y(t))r=t;else if(K(t))r=t(n.value,e,{level:n.level});else{var a=V({},Os);if(n.level>0)for(var s=0;s=0;--s)if(l[u]){r=l[u];break}r=r||a.none}if(B(r)){var c=n.level==null?0:n.level>=0?n.level:r.length+n.level;c=Math.min(c,r.length-1),r=r[c]}}return Ns(new Date(n.value),r,o,i)}function e_(n,e){var t=He(n),i=t[Jr(e)]()+1,o=t[rh(e)](),r=t[Rs(e)](),a=t[ah(e)](),s=t[sh(e)](),l=t[lh(e)](),u=l===0,h=u&&s===0,c=h&&a===0,p=c&&r===0,d=p&&o===1,f=d&&i===1;return f?"year":d?"month":p?"day":c?"hour":h?"minute":u?"second":"millisecond"}function n_(n,e,t){var i=Tt(n)?He(n):n;switch(e=e||e_(n,t),e){case"year":return i[uf(t)]();case"half-year":return i[Jr(t)]()>=6?1:0;case"quarter":return Math.floor((i[Jr(t)]()+1)/4);case"month":return i[Jr(t)]();case"day":return i[rh(t)]();case"half-day":return i[Rs(t)]()/24;case"hour":return i[Rs(t)]();case"minute":return i[ah(t)]();case"second":return i[sh(t)]();case"millisecond":return i[lh(t)]()}}function uf(n){return n?"getUTCFullYear":"getFullYear"}function Jr(n){return n?"getUTCMonth":"getMonth"}function rh(n){return n?"getUTCDate":"getDate"}function Rs(n){return n?"getUTCHours":"getHours"}function ah(n){return n?"getUTCMinutes":"getMinutes"}function sh(n){return n?"getUTCSeconds":"getSeconds"}function lh(n){return n?"getUTCMilliseconds":"getMilliseconds"}function CN(n){return n?"setUTCFullYear":"setFullYear"}function i_(n){return n?"setUTCMonth":"setMonth"}function o_(n){return n?"setUTCDate":"setDate"}function r_(n){return n?"setUTCHours":"setHours"}function a_(n){return n?"setUTCMinutes":"setMinutes"}function s_(n){return n?"setUTCSeconds":"setSeconds"}function l_(n){return n?"setUTCMilliseconds":"setMilliseconds"}function AN(n,e,t,i,o,r,a,s){var l=new St({style:{text:n,font:e,align:t,verticalAlign:i,padding:o,rich:r,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function hf(n){if(!sd(n))return Y(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function cf(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,i){return i.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var Go=Kl;function pf(n,e,t){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function o(h){return h&&je(h)?h:"-"}function r(h){return!!(h!=null&&!isNaN(h)&&isFinite(h))}var a=e==="time",s=n instanceof Date;if(a||s){var l=a?He(n):n;if(isNaN(+l)){if(s)return"-"}else return Ns(l,i,t)}if(e==="ordinal")return jl(n)?o(n):Tt(n)&&r(n)?n+"":"-";var u=zn(n);return r(u)?hf(u):jl(n)?o(n):typeof n=="boolean"?n+"":"-"}var u_=["a","b","c","d","e","f","g"],df=function(n,e){return"{"+n+(e??"")+"}"};function ff(n,e,t){B(e)||(e=[e]);var i=e.length;if(!i)return"";for(var o=e[0].$vars||[],r=0;r':'';var a=t.markerId||"markerX";return{renderMode:r,content:"{"+a+"|} ",style:o==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function kN(n,e,t){(n==="week"||n==="month"||n==="quarter"||n==="half-year"||n==="year")&&(n=`MM-dd +yyyy`);var i=He(e),o=t?"getUTC":"get",r=i[o+"FullYear"](),a=i[o+"Month"]()+1,s=i[o+"Date"](),l=i[o+"Hours"](),u=i[o+"Minutes"](),h=i[o+"Seconds"](),c=i[o+"Milliseconds"]();return n=n.replace("MM",De(a,2)).replace("M",a).replace("yyyy",r).replace("yy",De(r%100+"",2)).replace("dd",De(s,2)).replace("d",s).replace("hh",De(l,2)).replace("h",l).replace("mm",De(u,2)).replace("m",u).replace("ss",De(h,2)).replace("s",h).replace("SSS",De(c,3)),n}function LN(n){return n&&n.charAt(0).toUpperCase()+n.substr(1)}function Fo(n,e){return e=e||"transparent",Y(n)?n:tt(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function uh(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var hh=T,c_=["left","right","top","bottom","width","height"],Wo=[["width","left","right"],["height","top","bottom"]];function gf(n,e,t,i,o){var r=0,a=0;i==null&&(i=1/0),o==null&&(o=1/0);var s=0;e.eachChild(function(l,u){var h=l.getBoundingRect(),c=e.childAt(u+1),p=c&&c.getBoundingRect(),d,f;if(n==="horizontal"){var g=h.width+(p?-p.x+h.x:0);d=r+g,d>i||l.newline?(r=0,d=g,a+=s+t,s=h.height):s=Math.max(s,h.height)}else{var y=h.height+(p?-p.y+h.y:0);f=a+y,f>o||l.newline?(r+=s+t,a=0,f=y,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=r,l.y=a,l.markRedraw(),n==="horizontal"?r=d+t:a=f+t)})}var Ho=gf;rt(gf,"vertical"),rt(gf,"horizontal");function PN(n,e,t){var i=e.width,o=e.height,r=H(n.left,i),a=H(n.top,o),s=H(n.right,i),l=H(n.bottom,o);return(isNaN(r)||isNaN(parseFloat(n.left)))&&(r=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(n.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=o),t=Go(t||0),{width:Math.max(s-r-t[1]-t[3],0),height:Math.max(l-a-t[0]-t[2],0)}}function Kt(n,e,t){t=Go(t||0);var i=e.width,o=e.height,r=H(n.left,i),a=H(n.top,o),s=H(n.right,i),l=H(n.bottom,o),u=H(n.width,i),h=H(n.height,o),c=t[2]+t[0],p=t[1]+t[3],d=n.aspect;switch(isNaN(u)&&(u=i-s-p-r),isNaN(h)&&(h=o-l-c-a),d!=null&&(isNaN(u)&&isNaN(h)&&(d>i/o?u=i*.8:h=o*.8),isNaN(u)&&(u=d*h),isNaN(h)&&(h=u/d)),isNaN(r)&&(r=i-s-u-p),isNaN(a)&&(a=o-l-h-c),n.left||n.right){case"center":r=i/2-u/2-t[3];break;case"right":r=i-u-p;break}switch(n.top||n.bottom){case"middle":case"center":a=o/2-h/2-t[0];break;case"bottom":a=o-h-c;break}r=r||0,a=a||0,isNaN(u)&&(u=i-p-r-(s||0)),isNaN(h)&&(h=o-c-a-(l||0));var f=new ct(r+t[3],a+t[0],u,h);return f.margin=t,f}function ch(n,e,t,i,o,r){var a=!o||!o.hv||o.hv[0],s=!o||!o.hv||o.hv[1],l=o&&o.boundingMode||"all";if(r=r||n,r.x=n.x,r.y=n.y,!a&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new ct(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var h=n.getLocalTransform();u=u.clone(),u.applyTransform(h)}var c=Kt(Q({width:u.width,height:u.height},e),t,i),p=a?c.x-u.x:0,d=s?c.y-u.y:0;return l==="raw"?(r.x=p,r.y=d):(r.x+=p,r.y+=d),r===n&&n.markRedraw(),!0}function ON(n,e){return n[Wo[e][0]]!=null||n[Wo[e][1]]!=null&&n[Wo[e][2]]!=null}function zs(n){var e=n.layoutMode||n.constructor.layoutMode;return tt(e)?e:e?{type:e}:null}function Fi(n,e,t){var i=t&&t.ignoreSize;!B(i)&&(i=[i,i]);var o=a(Wo[0],0),r=a(Wo[1],1);u(Wo[0],n,o),u(Wo[1],n,r);function a(h,c){var p={},d=0,f={},g=0,y=2;if(hh(h,function(x){f[x]=n[x]}),hh(h,function(x){s(e,x)&&(p[x]=f[x]=e[x]),l(p,x)&&d++,l(f,x)&&g++}),i[c])return l(e,h[1])?f[h[2]]=null:l(e,h[2])&&(f[h[1]]=null),f;if(g===y||!d)return f;if(d>=y)return p;for(var v=0;v=0;l--)s=st(s,o[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(t,i){var o=t+"Index",r=t+"Id";return fs(this.ecModel,t,{index:this.get(o,!0),id:this.get(r,!0)},i)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Pt);f1(ea,Pt),Cu(ea),mN(ea),xN(ea,RN);function RN(n){var e=[];return T(ea.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=G(e,function(t){return En(t).main}),n!=="dataset"&&pt(e,"dataset")<=0&&e.unshift("dataset"),e}const _t=ea;var d_="";typeof navigator<"u"&&(d_=navigator.platform||"");var na="rgba(0, 0, 0, 0.2)";const zN={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:na,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:na,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:na,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:na,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:na,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:na,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:d_.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var f_=j(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),on="original",me="arrayRows",rn="objectRows",Hn="keyedColumns",Wi="typedArray",g_="unknown",Yn="column",ia="row",ce={Must:1,Might:2,Not:3},y_=bt();function EN(n){y_(n).datasetMap=j()}function v_(n,e,t){var i={},o=vf(e);if(!o||!n)return i;var r=[],a=[],s=e.ecModel,l=y_(s).datasetMap,u=o.uid+"_"+t.seriesLayoutBy,h,c;n=n.slice(),T(n,function(g,y){var v=tt(g)?g:n[y]={name:g};v.type==="ordinal"&&h==null&&(h=y,c=f(v)),i[v.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});T(n,function(g,y){var v=g.name,m=f(g);if(h==null){var x=p.valueWayDim;d(i[v],x,m),d(a,x,m),p.valueWayDim+=m}else if(h===y)d(i[v],0,m),d(r,0,m);else{var x=p.categoryWayDim;d(i[v],x,m),d(a,x,m),p.categoryWayDim+=m}});function d(g,y,v){for(var m=0;me)return n[i];return n[t-1]}function b_(n,e,t,i,o,r,a){r=r||n;var s=e(r),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(o))return u[o];var h=a==null||!i?t:WN(i,a);if(h=h||t,!(!h||!h.length)){var c=h[l];return o&&(u[o]=c),s.paletteIdx=(l+1)%h.length,c}}function HN(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var ph,Es,w_,S_="\0_ec_inner",YN=1,M_=function(n){N(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,i,o,r,a,s){r=r||{},this.option=null,this._theme=new Pt(r),this._locale=new Pt(a),this._optionManager=s},e.prototype.setOption=function(t,i,o){var r=C_(i);this._optionManager.setOption(t,o,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,i){return this._resetOption(t,C_(i))},e.prototype._resetOption=function(t,i){var o=!1,r=this._optionManager;if(!t||t==="recreate"){var a=r.mountOption(t==="recreate");!this.option||t==="recreate"?w_(this,a):(this.restoreData(),this._mergeOption(a,i)),o=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=r.getTimelineOption(this);s&&(o=!0,this._mergeOption(s,i))}if(!t||t==="recreate"||t==="media"){var l=r.getMediaOption(this);l.length&&T(l,function(u){o=!0,this._mergeOption(u,i)},this)}return o},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,i){var o=this.option,r=this._componentsMap,a=this._componentsCount,s=[],l=j(),u=i&&i.replaceMergeMainTypeMap;EN(this),T(t,function(c,p){c!=null&&(_t.hasClass(p)?p&&(s.push(p),l.set(p,!0)):o[p]=o[p]==null?et(c):st(o[p],c,!0))}),u&&u.each(function(c,p){_t.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),_t.topologicalTravel(s,_t.getAllClassMainTypes(),h,this);function h(c){var p=GN(this,c,Lt(t[c])),d=r.get(c),f=d?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",g=u1(d,p,f);lP(g,c,_t),o[c]=null,r.set(c,null),a.set(c,0);var y=[],v=[],m=0,x;T(g,function(_,w){var b=_.existing,S=_.newOption;if(!S)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var M=c==="series",I=_t.getClass(c,_.keyInfo.subType,!M);if(!I)return;if(c==="tooltip"){if(x)return;x=!0}if(b&&b.constructor===I)b.name=_.keyInfo.name,b.mergeOption(S,this),b.optionUpdated(S,!1);else{var C=V({componentIndex:w},_.keyInfo);b=new I(S,this,this,C),V(b,C),_.brandNew&&(b.__requireNewView=!0),b.init(S,this,this),b.optionUpdated(null,!0)}}b?(y.push(b.option),v.push(b),m++):(y.push(void 0),v.push(void 0))},this),o[c]=y,r.set(c,v),a.set(c,m),c==="series"&&ph(this)}this._seriesIndices||ph(this)},e.prototype.getOption=function(){var t=et(this.option);return T(t,function(i,o){if(_t.hasClass(o)){for(var r=Lt(i),a=r.length,s=!1,l=a-1;l>=0;l--)r[l]&&!ps(r[l])?s=!0:(r[l]=null,!s&&a--);r.length=a,t[o]=r}}),delete t[S_],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,i){var o=this._componentsMap.get(t);if(o){var r=o[i||0];if(r)return r;if(i==null){for(var a=0;a=e:t==="max"?n<=e:n===e}function eR(n,e){return n.join(",")===e.join(",")}const nR=$N;var Tn=T,Vs=tt,k_=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function wf(n){var e=n&&n.itemStyle;if(e)for(var t=0,i=k_.length;t=0;y--){var v=n[y];if(s||(f=v.data.rawIndexOf(v.stackedByDimension,d)),f>=0){var m=v.data.getByRawIndex(v.stackResultDimension,f);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&p>=0&&m>0||l==="samesign"&&p<=0&&m<0){p=QL(p,m),g=m;break}}}return i[0]=p,i[1]=g,i})})}var dh=function(){function n(e){this.data=e.data||(e.sourceFormat===Hn?{}:[]),this.sourceFormat=e.sourceFormat||g_,this.seriesLayoutBy=e.seriesLayoutBy||Yn,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var i=0;ig&&(g=x)}d[0]=f,d[1]=g}},o=function(){return this._data?this._data.length/this._dimSize:0};F_=(e={},e[me+"_"+Yn]={pure:!0,appendData:r},e[me+"_"+ia]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[rn]={pure:!0,appendData:r},e[Hn]={pure:!0,appendData:function(a){var s=this._data;T(a,function(l,u){for(var h=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)h.push(l[c])})}},e[on]={appendData:r},e[Wi]={persistent:!1,pure:!0,appendData:function(a){this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},e);function r(a){for(var s=0;s=0&&(g=a.interpolatedValue[y])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(e,t){return ra(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,i){},n}();function q_(n){var e,t;return tt(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function Fs(n){return new xR(n)}var xR=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,i=e&&e.skip;if(this._dirty&&t){var o=this.context;o.data=o.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var r;this._plan&&!i&&(r=this._plan(this.context));var a=h(this._modBy),s=this._modDataCount||0,l=h(e&&e.modBy),u=e&&e.modDataCount||0;(a!==l||s!==u)&&(r="reset");function h(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||r==="reset")&&(this._dirty=!1,c=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(c||d1&&i>0?s:a}};return r;function a(){return e=n?null:le},gte:function(n,e){return n>=e}},bR=function(){function n(e,t){if(!Tt(t)){var i="";At(i)}this._opFn=Q_[e],this._rvalFloat=zn(t)}return n.prototype.evaluate=function(e){return Tt(e)?this._opFn(e,this._rvalFloat):this._opFn(zn(e),this._rvalFloat)},n}(),J_=function(){function n(e,t){var i=e==="desc";this._resultLT=i?1:-1,t==null&&(t=i?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var i=Tt(e)?e:zn(e),o=Tt(t)?t:zn(t),r=isNaN(i),a=isNaN(o);if(r&&(i=this._incomparable),a&&(o=this._incomparable),r&&a){var s=Y(e),l=Y(t);s&&(i=l?e:0),l&&(o=s?t:0)}return io?-this._resultLT:0},n}(),wR=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=zn(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(t=zn(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function SR(n,e){return n==="eq"||n==="ne"?new wR(n==="eq",e):U(Q_,n)?new bR(n,e):null}var MR=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return Hi(e,t)},n}();function IR(n,e){var t=new MR,i=n.data,o=t.sourceFormat=n.sourceFormat,r=n.startIndex,a="";n.seriesLayoutBy!==Yn&&At(a);var s=[],l={},u=n.dimensionsDefine;if(u)T(u,function(g,y){var v=g.name,m={index:y,name:v,displayName:g.displayName};if(s.push(m),v!=null){var x="";U(l,v)&&At(x),l[v]=m}});else for(var h=0;h65535?OR:NR}function aa(){return[1/0,-1/0]}function RR(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function ob(n,e,t,i,o){var r=ib[t||"float"];if(o){var a=n[e],s=a&&a.length;if(s!==i){for(var l=new r(i),u=0;uy[1]&&(y[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,i){for(var o=this._provider,r=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=G(a,function(m){return m.property}),h=0;hv[1]&&(v[1]=y)}}!o.persistent&&o.clean&&o.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(i!=null&&ie)r=a-1;else return a}return-1},n.prototype.indicesOfNearest=function(e,t,i){var o=this._chunks,r=o[e],a=[];if(!r)return a;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,h=0,c=this.count();h=0&&l<0)&&(s=f,l=d,u=0),d===l&&(a[u++]=h))}return a.length=u,a},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,o=this._count;if(i===Array){e=new i(o);for(var r=0;r=c&&m<=p||isNaN(m))&&(l[u++]=g),g++}f=!0}else if(r===2){for(var y=d[o[0]],x=d[o[1]],_=e[o[1]][0],w=e[o[1]][1],v=0;v=c&&m<=p||isNaN(m))&&(b>=_&&b<=w||isNaN(b))&&(l[u++]=g),g++}f=!0}}if(!f)if(r===1)for(var v=0;v=c&&m<=p||isNaN(m))&&(l[u++]=S)}else for(var v=0;ve[C][1])&&(M=!1)}M&&(l[u++]=t.getRawIndex(v))}return uv[1]&&(v[1]=y)}}}},n.prototype.lttbDownSample=function(e,t){var i=this.clone([e],!0),o=i._chunks,r=o[e],a=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),h,c,p,d=new(Ws(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));d[s++]=u;for(var f=1;fh&&(h=c,p=_)}A>0&&Ah-f&&(l=h-f,s.length=l);for(var g=0;gc[1]&&(c[1]=v),p[d++]=m}return r._count=d,r._indices=p,r._updateGetRawIdx(),r},n.prototype.each=function(e,t){if(this._count)for(var i=e.length,o=this._chunks,r=0,a=this.count();rl&&(l=c)}return a=[s,l],this._extent[e]=a,a},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var i=[],o=this._chunks,r=0;r=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,i,o,r){return Hi(t[r],this._dimensions[r])}kf={arrayRows:e,objectRows:function(t,i,o,r){return Hi(t[i],this._dimensions[r])},keyedColumns:e,original:function(t,i,o,r){var a=t&&(t.value==null?t:t.value);return Hi(a instanceof Array?a[r]:a,this._dimensions[r])},typedArray:function(t,i,o,r){return t[r]}}}(),n}();const Lf=zR;var rb=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),i=!!t.length,o,r;if(yh(e)){var a=e,s=void 0,l=void 0,u=void 0;if(i){var h=t[0];h.prepareSource(),u=h.getSource(),s=u.data,l=u.sourceFormat,r=[h._getVersionSign()]}else s=a.get("data",!0),l=we(s)?Wi:on,r=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},d=at(c.seriesLayoutBy,p.seriesLayoutBy)||null,f=at(c.sourceHeader,p.sourceHeader),g=at(c.dimensions,p.dimensions),y=d!==p.seriesLayoutBy||!!f!=!!p.sourceHeader||g;o=y?[If(s,{seriesLayoutBy:d,sourceHeader:f,dimensions:g},l)]:[]}else{var v=e;if(i){var m=this._applyTransform(t);o=m.sourceList,r=m.upstreamSignList}else{var x=v.get("source",!0);o=[If(x,this._getSourceMetaRawOption(),null)],r=[]}}this._setLocalSource(o,r)},n.prototype._applyTransform=function(e){var t=this._sourceHost,i=t.get("transform",!0),o=t.get("fromTransformResult",!0);if(o!=null){var r="";e.length!==1&&sb(r)}var a,s=[],l=[];return T(e,function(u){u.prepareSource();var h=u.getSource(o||0),c="";o!=null&&!h&&sb(c),s.push(h),l.push(u._getVersionSign())}),i?a=LR(i,s,{datasetIndex:t.componentIndex}):o!=null&&(a=[pR(s[0])]),{sourceList:a,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!n.noHeader;return T(n.blocks,function(o){var r=cb(o);r>=e&&(e=r+ +(i&&(!r||Pf(o)&&!o.noHeader)))}),e}return 0}function BR(n,e,t,i){var o=e.noHeader,r=FR(cb(e)),a=[],s=e.blocks||[];fe(!s||B(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(U(u,l)){var h=new J_(u[l],null);s.sort(function(f,g){return h.evaluate(f.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}T(s,function(f,g){var y=e.valueFormatter,v=hb(f)(y?V(V({},n),{valueFormatter:y}):n,f,g>0?r.html:0,i);v!=null&&a.push(v)});var c=n.renderMode==="richText"?a.join(r.richText):Of(a.join(""),o?t:r.html);if(o)return c;var p=pf(e.header,"ordinal",n.useUTC),d=ub(i,n.renderMode).nameStyle;return n.renderMode==="richText"?db(n,p,d)+r.richText+c:Of('
'+ye(p)+"
"+c,t)}function GR(n,e,t,i){var o=n.renderMode,r=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,h=e.valueFormatter||n.valueFormatter||function(_){return _=B(_)?_:[_],G(_,function(w,b){return pf(w,B(d)?d[b]:d,u)})};if(!(r&&a)){var c=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",o),p=r?"":pf(l,"ordinal",u),d=e.valueType,f=a?[]:h(e.value,e.dataIndex),g=!s||!r,y=!s&&r,v=ub(i,o),m=v.nameStyle,x=v.valueStyle;return o==="richText"?(s?"":c)+(r?"":db(n,p,m))+(a?"":YR(n,f,g,y,x)):Of((s?"":c)+(r?"":WR(p,!s,m))+(a?"":HR(f,g,y,x)),t)}}function pb(n,e,t,i,o,r){if(n){var a=hb(n),s={useUTC:o,renderMode:t,orderMode:i,markupStyleCreator:e,valueFormatter:n.valueFormatter};return a(s,n,0,r)}}function FR(n){return{html:ER[n],richText:VR[n]}}function Of(n,e){var t='
',i="margin: "+e+"px 0 0";return'
'+n+t+"
"}function WR(n,e,t){var i=e?"margin-left:2px":"";return''+ye(n)+""}function HR(n,e,t,i){var o=t?"10px":"20px",r=e?"float:right;margin-left:"+o:"";return n=B(n)?n:[n],''+G(n,function(a){return ye(a)}).join("  ")+""}function db(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function YR(n,e,t,i,o){var r=[o],a=i?10:20;return t&&r.push({padding:[0,0,0,a],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(B(e)?e.join(" "):e,r)}function fb(n,e){var t=n.getData().getItemVisual(e,"style"),i=t[n.visualDrawType];return Fo(i)}function gb(n,e){var t=n.get("padding");return t??(e==="richText"?[8,10]:10)}var Nf=function(){function n(){this.richTextStyles={},this._nextStyleNameId=n1()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,i){var o=i==="richText"?this._generateStyleName():null,r=h_({color:t,type:e,renderMode:i,markerId:o});return Y(r)?r:(this.richTextStyles[o]=r.style,r.content)},n.prototype.wrapRichTextStyle=function(e,t){var i={};B(t)?T(t,function(r){return V(i,r)}):V(i,t);var o=this._generateStyleName();return this.richTextStyles[o]=i,"{"+o+"|"+e+"}"},n}();function yb(n){var e=n.series,t=n.dataIndex,i=n.multipleSeries,o=e.getData(),r=o.mapDimensionsAll("defaultedTooltip"),a=r.length,s=e.getRawValue(t),l=B(s),u=fb(e,t),h,c,p,d;if(a>1||l&&!a){var f=XR(s,e,t,r,u);h=f.inlineValues,c=f.inlineValueTypes,p=f.blocks,d=f.inlineValues[0]}else if(a){var g=o.getDimensionInfo(r[0]);d=h=ra(o,t,r[0]),c=g.type}else d=h=l?s[0]:s;var y=ld(e),v=y&&e.name||"",m=o.getName(t),x=i?v:m;return ie("section",{header:v,noHeader:i||!y,sortParam:d,blocks:[ie("nameValue",{markerType:"item",markerColor:u,name:x,noName:!je(x),value:h,valueType:c,dataIndex:t})].concat(p||[])})}function XR(n,e,t,i,o){var r=e.getData(),a=Ue(n,function(c,p,d){var f=r.getDimensionInfo(d);return c=c||f&&f.tooltip!==!1&&f.displayName!=null},!1),s=[],l=[],u=[];i.length?T(i,function(c){h(ra(r,t,c),c)}):T(n,h);function h(c,p){var d=r.getDimensionInfo(p);!d||d.otherDims.tooltip===!1||(a?u.push(ie("nameValue",{markerType:"subItem",markerColor:o,name:d.displayName,value:c,valueType:d.type})):(s.push(c),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Yi=bt();function vh(n,e){return n.getName(e)||n.getId(e)}var mh="__universalTransitionEnabled",xh=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,i,o){this.seriesIndex=this.componentIndex,this.dataTask=Fs({count:UR,reset:jR}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,o);var r=Yi(this).sourceManager=new rb(this);r.prepareSource();var a=this.getInitialData(t,o);mb(a,this),this.dataTask.context.data=a,Yi(this).dataBeforeProcessed=a,vb(this),this._initSelectedMapFromData(a)},e.prototype.mergeDefaultAndTheme=function(t,i){var o=zs(this),r=o?ta(t):{},a=this.subType;_t.hasClass(a)&&(a+="Series"),st(t,i.getTheme().get(this.subType)),st(t,this.getDefaultOption()),_o(t,"label",["show"]),this.fillDataTextStyle(t.data),o&&Fi(t,r,o)},e.prototype.mergeOption=function(t,i){t=st(this.option,t,!0),this.fillDataTextStyle(t.data);var o=zs(this);o&&Fi(this.option,t,o);var r=Yi(this).sourceManager;r.dirty(),r.prepareSource();var a=this.getInitialData(t,i);mb(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,Yi(this).dataBeforeProcessed=a,vb(this),this._initSelectedMapFromData(a)},e.prototype.fillDataTextStyle=function(t){if(t&&!we(t))for(var i=["show"],o=0;othis.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,i,o){var r=this.ecModel,a=xf.prototype.getColorFromPalette.call(this,t,i,o);return a||(a=r.getColorFromPalette(t,i,o)),a},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,i){this._innerSelect(this.getData(i),t)},e.prototype.unselect=function(t,i){var o=this.option.selectedMap;if(o){var r=this.option.selectedMode,a=this.getData(i);if(r==="series"||o==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&o.push(a)}return o},e.prototype.isSelected=function(t,i){var o=this.option.selectedMap;if(!o)return!1;var r=this.getData(i);return(o==="all"||o[vh(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[mh])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,i){var o,r,a=this.option,s=a.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){tt(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,h=0;h0&&this._innerSelect(t,i)}},e.registerClass=function(t){return _t.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(_t);Xt(xh,fh),Xt(xh,xf),f1(xh,_t);function vb(n){var e=n.name;ld(n)||(n.name=ZR(n)||e)}function ZR(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),i=[];return T(t,function(o){var r=e.getDimensionInfo(o);r.displayName&&i.push(r.displayName)}),i.join(" ")}function UR(n){return n.model.getRawData().count()}function jR(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),qR}function qR(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function mb(n,e){T(Fa(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,rt(KR,e))})}function KR(n,e){var t=Rf(n);return t&&t.setOutputEnd((e||this).count()),e}function Rf(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var i=t.currentTask;if(i){var o=i.agentStubMap;o&&(i=o.get(n.uid))}return i}}const zt=xh;var zf=function(){function n(){this.group=new it,this.uid=Kr("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,i,o){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,i,o){},n.prototype.updateLayout=function(e,t,i,o){},n.prototype.updateVisual=function(e,t,i,o){},n.prototype.toggleBlurSeries=function(e,t,i){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();cd(zf),Cu(zf);const Bt=zf;function sa(){var n=bt();return function(e){var t=n(e),i=e.pipelineContext,o=!!t.large,r=!!t.progressiveRender,a=t.large=!!(i&&i.large),s=t.progressiveRender=!!(i&&i.progressiveRender);return(o!==a||r!==s)&&"reset"}}var xb=bt(),$R=sa(),Ef=function(){function n(){this.group=new it,this.uid=Kr("viewChart"),this.renderTask=Fs({plan:QR,reset:JR}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,i,o){},n.prototype.highlight=function(e,t,i,o){var r=e.getData(o&&o.dataType);r&&bb(r,o,"emphasis")},n.prototype.downplay=function(e,t,i,o){var r=e.getData(o&&o.dataType);r&&bb(r,o,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,i,o){this.render(e,t,i,o)},n.prototype.updateLayout=function(e,t,i,o){this.render(e,t,i,o)},n.prototype.updateVisual=function(e,t,i,o){this.render(e,t,i,o)},n.prototype.eachRendered=function(e){Bi(this.group,e)},n.markUpdateMethod=function(e,t){xb(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function _b(n,e,t){n&&ws(n)&&(e==="emphasis"?ui:hi)(n,t)}function bb(n,e,t){var i=bo(n,e),o=e&&e.highlightKey!=null?TO(e.highlightKey):null;i!=null?T(Lt(i),function(r){_b(n.getItemGraphicEl(r),t,o)}):n.eachItemGraphicEl(function(r){_b(r,t,o)})}cd(Ef),Cu(Ef);function QR(n){return $R(n.model)}function JR(n){var e=n.model,t=n.ecModel,i=n.api,o=n.payload,r=e.pipelineContext.progressiveRender,a=n.view,s=o&&xb(o).updateMethod,l=r?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](e,t,i,o),tz[l]}var tz={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Ot=Ef;var _h="\0__throttleOriginMethod",wb="\0__throttleRate",Sb="\0__throttleType";function bh(n,e,t){var i,o=0,r=0,a=null,s,l,u,h;e=e||0;function c(){r=new Date().getTime(),a=null,n.apply(l,u||[])}var p=function(){for(var d=[],f=0;f=0?c():a=setTimeout(c,-s),o=i};return p.clear=function(){a&&(clearTimeout(a),a=null)},p.debounceNextCall=function(d){h=d},p}function la(n,e,t,i){var o=n[e];if(o){var r=o[_h]||o,a=o[Sb],s=o[wb];if(s!==t||a!==i){if(t==null||!i)return n[e]=r;o=n[e]=bh(r,t,i==="debounce"),o[_h]=r,o[Sb]=i,o[wb]=t}return o}}function Hs(n,e){var t=n[e];t&&t[_h]&&(t.clear&&t.clear(),n[e]=t[_h])}var Mb=bt(),Ib={itemStyle:So(Kx,!0),lineStyle:So(qx,!0)},ez={lineStyle:"stroke",itemStyle:"fill"};function Tb(n,e){var t=n.visualStyleMapper||Ib[e];return t||(console.warn("Unknown style type '"+e+"'."),Ib.itemStyle)}function Cb(n,e){var t=n.visualDrawType||ez[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var nz={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),i=n.visualStyleAccessPath||"itemStyle",o=n.getModel(i),r=Tb(n,i),a=r(o),s=o.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Cb(n,i),u=a[l],h=K(u)?u:null,c=a.fill==="auto"||a.stroke==="auto";if(!a[l]||h||c){var p=n.getColorFromPalette(n.name,null,e.getSeriesCount());a[l]||(a[l]=p,t.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||K(a.fill)?p:a.fill,a.stroke=a.stroke==="auto"||K(a.stroke)?p:a.stroke}if(t.setVisual("style",a),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&h)return t.setVisual("colorFromPalette",!1),{dataEach:function(d,f){var g=n.getDataParams(f),y=V({},a);y[l]=h(g),d.setItemVisual(f,"style",y)}}}},Ys=new Pt,iz={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),i=n.visualStyleAccessPath||"itemStyle",o=Tb(n,i),r=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[i]){Ys.option=l[i];var u=o(Ys),h=a.ensureUniqueItemVisual(s,"style");V(h,u),Ys.option.decal&&(a.setItemVisual(s,"decal",Ys.option.decal),Ys.option.decal.dirty=!0),r in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},oz={performRawSeries:!0,overallReset:function(n){var e=j();n.eachSeries(function(t){var i=t.getColorBy();if(!t.isColorBySeries()){var o=t.type+"-"+i,r=e.get(o);r||(r={},e.set(o,r)),Mb(t).scope=r}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var i=t.getRawData(),o={},r=t.getData(),a=Mb(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Cb(t,s);r.each(function(u){var h=r.getRawIndex(u);o[h]=u}),i.each(function(u){var h=o[u],c=r.getItemVisual(h,"colorFromPalette");if(c){var p=r.ensureUniqueItemVisual(h,"style"),d=i.getName(u)||u+"",f=i.count();p[l]=t.getColorFromPalette(d,a,f)}})}})}},wh=Math.PI;function rz(n,e){e=e||{},Q(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new it,i=new wt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(i);var o=new St({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),r=new wt({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(r);var a;return e.showSpinner&&(a=new Yu({shape:{startAngle:-wh/2,endAngle:-wh/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:wh*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:wh*3/2}).delay(300).start("circularInOut"),t.add(a)),t.resize=function(){var s=o.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),h=n.getHeight()/2;e.showSpinner&&a.setShape({cx:u,cy:h}),r.setShape({x:u-l,y:h-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var az=function(){function n(e,t,i,o){this._stageTaskMap=j(),this.ecInstance=e,this.api=t,i=this._dataProcessorHandlers=i.slice(),o=this._visualHandlers=o.slice(),this._allHandlers=i.concat(o)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(i){var o=i.overallTask;o&&o.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),o=i.context,r=!t&&i.progressiveEnabled&&(!o||o.progressiveRender)&&e.__idxInPipeline>i.blockIndex,a=r?i.step:null,s=o&&o.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),o=e.getData(),r=o.count(),a=i.progressiveEnabled&&t.incrementalPrepareRender&&r>=i.threshold,s=e.get("large")&&r>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?r:null;e.pipelineContext=i.context={progressiveRender:a,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,i=t._pipelineMap=j();e.eachSeries(function(o){var r=o.getProgressive(),a=o.uid;i.set(a,{id:a,head:null,tail:null,threshold:o.getProgressiveThreshold(),progressiveEnabled:r&&!(o.preventIncremental&&o.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(o,o.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),i=this.api;T(this._allHandlers,function(o){var r=e.get(o.uid)||e.set(o.uid,{}),a="";fe(!(o.reset&&o.overallReset),a),o.reset&&this._createSeriesStageTask(o,r,t,i),o.overallReset&&this._createOverallStageTask(o,r,t,i)},this)},n.prototype.prepareView=function(e,t,i,o){var r=e.renderTask,a=r.context;a.model=t,a.ecModel=i,a.api=o,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,i){this._performStageTasks(this._visualHandlers,e,t,i)},n.prototype._performStageTasks=function(e,t,i,o){o=o||{};var r=!1,a=this;T(e,function(l,u){if(!(o.visualType&&o.visualType!==l.visualType)){var h=a._stageTaskMap.get(l.uid),c=h.seriesTaskMap,p=h.overallTask;if(p){var d,f=p.agentStubMap;f.each(function(y){s(o,y)&&(y.dirty(),d=!0)}),d&&p.dirty(),a.updatePayload(p,i);var g=a.getPerformArgs(p,o.block);f.each(function(y){y.perform(g)}),p.perform(g)&&(r=!0)}else c&&c.each(function(y,v){s(o,y)&&y.dirty();var m=a.getPerformArgs(y,o.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(y.context.model),a.updatePayload(y,i),y.perform(m)&&(r=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=r||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(i){t=i.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=j(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(h):l?i.eachRawSeriesByType(l,h):u&&u(i,o).each(h);function h(c){var p=c.uid,d=s.set(p,a&&a.get(p)||Fs({plan:cz,reset:pz,count:fz}));d.context={model:c,ecModel:i,api:o,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(c,d)}},n.prototype._createOverallStageTask=function(e,t,i,o){var r=this,a=t.overallTask=t.overallTask||Fs({reset:sz});a.context={ecModel:i,api:o,overallReset:e.overallReset,scheduler:r};var s=a.agentStubMap,l=a.agentStubMap=j(),u=e.seriesType,h=e.getTargetSeries,c=!0,p=!1,d="";fe(!e.createOnAllSeries,d),u?i.eachRawSeriesByType(u,f):h?h(i,o).each(f):(c=!1,T(i.getSeries(),f));function f(g){var y=g.uid,v=l.set(y,s&&s.get(y)||(p=!0,Fs({reset:lz,onDirty:hz})));v.context={model:g,overallProgress:c},v.agent=a,v.__block=c,r._pipe(g,v)}p&&a.dirty()},n.prototype._pipe=function(e,t){var i=e.uid,o=this._pipelineMap.get(i);!o.head&&(o.head=t),o.tail&&o.tail.pipe(t),o.tail=t,t.__idxInPipeline=o.count++,t.__pipeline=o},n.wrapStageHandler=function(e,t){return K(e)&&(e={overallReset:e,seriesType:gz(e)}),e.uid=Kr("stageHandler"),t&&(e.visualType=t),e},n}();function sz(n){n.overallReset(n.ecModel,n.api,n.payload)}function lz(n){return n.overallProgress&&uz}function uz(){this.agent.dirty(),this.getDownstream().dirty()}function hz(){this.agent&&this.agent.dirty()}function cz(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function pz(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=Lt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?G(e,function(t,i){return Ab(i)}):dz}var dz=Ab(0);function Ab(n){return function(e,t){var i=t.data,o=t.resetDefines[n];if(o&&o.dataEach)for(var r=e.start;r0&&d===u.length-p.length){var f=u.slice(0,d);f!=="data"&&(t.mainType=f,t[p.toLowerCase()]=l,h=!0)}}s.hasOwnProperty(u)&&(i[u]=l,h=!0),h||(o[u]=l)})}return{cptQuery:t,dataQuery:i,otherQuery:o}},n.prototype.filter=function(e,t){var i=this.eventInfo;if(!i)return!0;var o=i.targetEl,r=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return h(l,a,"mainType")&&h(l,a,"subType")&&h(l,a,"index","componentIndex")&&h(l,a,"name")&&h(l,a,"id")&&h(u,r,"name")&&h(u,r,"dataIndex")&&h(u,r,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,o,r));function h(c,p,d,f){return c[d]==null||p[f||d]===c[d]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),Vf=["symbol","symbolSize","symbolRotate","symbolOffset"],zb=Vf.concat(["symbolKeepAspect"]),xz={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var i={},o={},r=!1,a=0;a=0&&qo(l)?l:.5;var u=n.createRadialGradient(a,s,0,a,s,l);return u}function Gf(n,e,t){for(var i=e.type==="radial"?Rz(n,e,t):Nz(n,e,t),o=e.colorStops,r=0;r0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:Tt(n)?[n]:B(n)?n:null}function Ff(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&Ez(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(t){var o=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;o&&o!==1&&(t=G(t,function(r){return r/o}),i/=o)}return[t,i]}var Vz=new Fn(!0);function Ch(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function Bb(n){return typeof n=="string"&&n!=="none"}function Ah(n){var e=n.fill;return e!=null&&e!=="none"}function Gb(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function Fb(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function Wf(n,e,t){var i=dd(e.image,e.__image,t);if(Au(i)){var o=n.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&o&&o.setTransform){var r=new DOMMatrix;r.translateSelf(e.x||0,e.y||0),r.rotateSelf(0,0,(e.rotation||0)*Ha),r.scaleSelf(e.scaleX||1,e.scaleY||1),o.setTransform(r)}return o}}function Bz(n,e,t,i){var o,r=Ch(t),a=Ah(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var h=e.path||Vz,c=e.__dirty;if(!i){var p=t.fill,d=t.stroke,f=a&&!!p.colorStops,g=r&&!!d.colorStops,y=a&&!!p.image,v=r&&!!d.image,m=void 0,x=void 0,_=void 0,w=void 0,b=void 0;(f||g)&&(b=e.getBoundingRect()),f&&(m=c?Gf(n,p,b):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(x=c?Gf(n,d,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),y&&(_=c||!e.__canvasFillPattern?Wf(n,p,e):e.__canvasFillPattern,e.__canvasFillPattern=_),v&&(w=c||!e.__canvasStrokePattern?Wf(n,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),f?n.fillStyle=m:y&&(_?n.fillStyle=_:a=!1),g?n.strokeStyle=x:v&&(w?n.strokeStyle=w:r=!1)}var S=e.getGlobalScale();h.setScale(S[0],S[1],e.segmentIgnoreThreshold);var M,I;n.setLineDash&&t.lineDash&&(o=Ff(e),M=o[0],I=o[1]);var C=!0;(u||c&Ar)&&(h.setDPR(n.dpr),l?h.setContext(null):(h.setContext(n),C=!1),h.reset(),e.buildPath(h,e.shape,i),h.toStatic(),e.pathUpdated()),C&&h.rebuildPath(n,l?s:1),M&&(n.setLineDash(M),n.lineDashOffset=I),i||(t.strokeFirst?(r&&Fb(n,t),a&&Gb(n,t)):(a&&Gb(n,t),r&&Fb(n,t))),M&&n.setLineDash([])}function Gz(n,e,t){var i=e.__image=dd(t.image,e.__image,e,e.onload);if(!(!i||!Au(i))){var o=t.x||0,r=t.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=i.width,s=i.height),t.sWidth&&t.sHeight){var u=t.sx||0,h=t.sy||0;n.drawImage(i,u,h,t.sWidth,t.sHeight,o,r,a,s)}else if(t.sx&&t.sy){var u=t.sx,h=t.sy,c=a-u,p=s-h;n.drawImage(i,u,h,c,p,o,r,a,s)}else n.drawImage(i,o,r,a,s)}}function Fz(n,e,t){var i,o=t.text;if(o!=null&&(o+=""),o){n.font=t.font||wi,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var r=void 0,a=void 0;n.setLineDash&&t.lineDash&&(i=Ff(e),r=i[0],a=i[1]),r&&(n.setLineDash(r),n.lineDashOffset=a),t.strokeFirst?(Ch(t)&&n.strokeText(o,t.x,t.y),Ah(t)&&n.fillText(o,t.x,t.y)):(Ah(t)&&n.fillText(o,t.x,t.y),Ch(t)&&n.strokeText(o,t.x,t.y)),r&&n.setLineDash([])}}var Wb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Hb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Yb(n,e,t,i,o){var r=!1;if(!i&&(t=t||{},e===t))return!1;if(i||e.opacity!==t.opacity){Ve(n,o),r=!0;var a=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(a)?Mo.opacity:a}(i||e.blend!==t.blend)&&(r||(Ve(n,o),r=!0),n.globalCompositeOperation=e.blend||Mo.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,i,o){if(!this[_e]){if(this._disposed){this.id;return}var r,a,s;if(tt(i)&&(o=i.lazyUpdate,r=i.silent,a=i.replaceMerge,s=i.transition,i=i.notMerge),this[_e]=!0,!this._model||i){var l=new nR(this._api),u=this._theme,h=this._model=new A_;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:a},eg);var c={seriesTransition:s,optionChanged:!0};if(o)this[Be]={silent:r,updateParams:c},this[_e]=!1,this.getZr().wakeUp();else{try{da(this),Xi.update.call(this,null,c)}catch(p){throw this[Be]=null,this[_e]=!1,p}this._ssr||this._zr.flush(),this[Be]=null,this[_e]=!1,js.call(this,r),qs.call(this,r)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||It.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var i=this._zr.painter;return i.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(It.svgSupported){var t=this._zr,i=t.storage.getDisplayList();return T(i,function(o){o.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var i=t.excludeComponents,o=this._model,r=[],a=this;T(i,function(l){o.eachComponent({mainType:l},function(u){var h=a._componentsMap[u.__viewId];h.group.ignore||(r.push(h),h.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return T(r,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var i=t.type==="svg",o=this.group,r=Math.min,a=Math.max,s=1/0;if(Rh[o]){var l=s,u=s,h=-s,c=-s,p=[],d=t&&t.pixelRatio||this.getDevicePixelRatio();T($o,function(x,_){if(x.group===o){var w=i?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(et(t)),b=x.getDom().getBoundingClientRect();l=r(b.left,l),u=r(b.top,u),h=a(b.right,h),c=a(b.bottom,c),p.push({dom:w,left:b.left,top:b.top})}}),l*=d,u*=d,h*=d,c*=d;var f=h-l,g=c-u,y=gn.createCanvas(),v=td(y,{renderer:i?"svg":"canvas"});if(v.resize({width:f,height:g}),i){var m="";return T(p,function(x){var _=x.left-l,w=x.top-u;m+=''+x.dom+""}),v.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}else return t.connectedBackgroundColor&&v.add(new wt({shape:{x:0,y:0,width:f,height:g},style:{fill:t.connectedBackgroundColor}})),T(p,function(x){var _=new se({style:{x:x.left*d-l,y:x.top*d-u,image:x.dom}});v.add(_)}),v.refreshImmediately(),y.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,i){return qf(this,"convertToPixel",t,i)},e.prototype.convertFromPixel=function(t,i){return qf(this,"convertFromPixel",t,i)},e.prototype.containPixel=function(t,i){if(this._disposed){this.id;return}var o=this._model,r,a=ds(o,t);return T(a,function(s,l){l.indexOf("Models")>=0&&T(s,function(u){var h=u.coordinateSystem;if(h&&h.containPoint)r=r||!!h.containPoint(i);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(r=r||c.containPoint(i,u))}},this)},this),!!r},e.prototype.getVisual=function(t,i){var o=this._model,r=ds(o,t,{defaultMainType:"series"}),a=r.seriesModel,s=a.getData(),l=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?s.indexOfRawIndex(r.dataIndex):null;return l!=null?Bf(s,l,i):Zs(s,i)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;T(d5,function(i){var o=function(r){var a=t.getModel(),s=r.target,l,u=i==="globalout";if(u?l={}:s&&Uo(s,function(f){var g=ot(f);if(g&&g.dataIndex!=null){var y=g.dataModel||a.getSeriesByIndex(g.seriesIndex);return l=y&&y.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=V({},g.eventData),!0},!0),l){var h=l.componentType,c=l.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",c=l.seriesIndex);var p=h&&c!=null&&a.getComponent(h,c),d=p&&t[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];l.event=r,l.type=i,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:p,view:d},t.trigger(i,l)}};o.zrEventfulCallAtLast=!0,t._zr.on(i,o,t)}),T(Ks,function(i,o){t._messageCenter.on(o,function(r){this.trigger(o,r)},t)}),T(["selectchanged"],function(i){t._messageCenter.on(i,function(o){this.trigger(i,o)},t)}),bz(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&c1(this.getDom(),ig,"");var i=this,o=i._api,r=i._model;T(i._componentsViews,function(a){a.dispose(r,o)}),T(i._chartsViews,function(a){a.dispose(r,o)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete $o[i.id]},e.prototype.resize=function(t){if(!this[_e]){if(this._disposed){this.id;return}this._zr.resize(t);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var o=i.resetOption("media"),r=t&&t.silent;this[Be]&&(r==null&&(r=this[Be].silent),o=!0,this[Be]=null),this[_e]=!0;try{o&&da(this),Xi.update.call(this,{type:"resize",animation:V({duration:0},t&&t.animation)})}catch(a){throw this[_e]=!1,a}this[_e]=!1,js.call(this,r),qs.call(this,r)}}},e.prototype.showLoading=function(t,i){if(this._disposed){this.id;return}if(tt(t)&&(i=t,t=""),t=t||"default",this.hideLoading(),!!ng[t]){var o=ng[t](this._api,i),r=this._zr;this._loadingFX=o,r.add(o)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var i=V({},t);return i.type=Ks[t.type],i},e.prototype.dispatchAction=function(t,i){if(this._disposed){this.id;return}if(tt(i)||(i={silent:!!i}),!!Oh[t.type]&&this._model){if(this[_e]){this._pendingActions.push(t);return}var o=i.silent;$f.call(this,t,o);var r=i.flush;r?this._zr.flush():r!==!1&&It.browser.weChat&&this._throttledZrFlush(),js.call(this,o),qs.call(this,o)}},e.prototype.updateLabelLayout=function(){Cn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var i=t.seriesIndex,o=this.getModel(),r=o.getSeriesByIndex(i);r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){da=function(c){var p=c._scheduler;p.restorePipelines(c._model),p.prepareStageTasks(),jf(c,!0),jf(c,!1),p.plan()},jf=function(c,p){for(var d=c._model,f=c._scheduler,g=p?c._componentsViews:c._chartsViews,y=p?c._componentsMap:c._chartsMap,v=c._zr,m=c._api,x=0;xp.get("hoverLayerThreshold")&&!It.node&&!It.worker&&p.eachSeries(function(y){if(!y.preventUsingHoverLayer){var v=c._chartsMap[y.__viewId];v.__alive&&v.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function a(c,p){var d=c.get("blendMode")||null;p.eachRendered(function(f){f.isGroup||(f.style.blend=d)})}function s(c,p){if(!c.preventAutoZ){var d=c.get("z")||0,f=c.get("zlevel")||0;p.eachRendered(function(g){return l(g,d,f,-1/0),!0})}}function l(c,p,d,f){var g=c.getTextContent(),y=c.getTextGuideLine(),v=c.isGroup;if(v)for(var m=c.childrenRef(),x=0;x0?{duration:g,delay:d.get("delay"),easing:d.get("easing")}:null;p.eachRendered(function(v){if(v.states&&v.states.emphasis){if(Xr(v))return;if(v instanceof vt&&CO(v),v.__dirty){var m=v.prevStates;m&&v.useStates(m)}if(f){v.stateTransition=y;var x=v.getTextContent(),_=v.getTextGuideLine();x&&(x.stateTransition=y),_&&(_.stateTransition=y)}v.__dirty&&o(v)}})}mw=function(c){return new(function(p){N(d,p);function d(){return p!==null&&p.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(f){for(;f;){var g=f.__ecComponentInfo;if(g!=null)return c._model.getComponent(g.mainType,g.index);f=f.parent}},d.prototype.enterEmphasis=function(f,g){ui(f,g),sn(c)},d.prototype.leaveEmphasis=function(f,g){hi(f,g),sn(c)},d.prototype.enterBlur=function(f){tx(f),sn(c)},d.prototype.leaveBlur=function(f){Nd(f),sn(c)},d.prototype.enterSelect=function(f){ex(f),sn(c)},d.prototype.leaveSelect=function(f){nx(f),sn(c)},d.prototype.getModel=function(){return c.getModel()},d.prototype.getViewOfComponentModel=function(f){return c.getViewOfComponentModel(f)},d.prototype.getViewOfSeriesModel=function(f){return c.getViewOfSeriesModel(f)},d}(D_))(c)},xw=function(c){function p(d,f){for(var g=0;g=0)){Cw.push(t);var r=Lb.wrapStageHandler(t,o);r.__prio=e,r.__raw=t,n.push(r)}}function ug(n,e){ng[n]=e}function w5(n){zm({createCanvas:n})}function Aw(n,e,t){var i=iw("registerMap");i&&i(n,e,t)}function S5(n){var e=iw("getMap");return e&&e(n)}var Dw=kR;Zi(Xf,nz),Zi(Dh,iz),Zi(Dh,oz),Zi(Xf,xz),Zi(Dh,_z),Zi(aw,qz),ag(z_),sg(n5,hR),ug("default",rz),An({type:Po,event:Po,update:Po},Zt),An({type:zu,event:zu,update:zu},Zt),An({type:_s,event:_s,update:_s},Zt),An({type:Eu,event:Eu,update:Eu},Zt),An({type:bs,event:bs,update:bs},Zt),rg("light",yz),rg("dark",vz);var M5={},kw=[],I5={registerPreprocessor:ag,registerProcessor:sg,registerPostInit:Sw,registerPostUpdate:Mw,registerUpdateLifecycle:zh,registerAction:An,registerCoordinateSystem:Iw,registerLayout:Tw,registerVisual:Zi,registerTransform:Dw,registerLoading:ug,registerMap:Aw,registerImpl:$z,PRIORITY:sw,ComponentModel:_t,ComponentView:Bt,SeriesModel:zt,ChartView:Ot,registerComponentModel:function(n){_t.registerClass(n)},registerComponentView:function(n){Bt.registerClass(n)},registerSeriesModel:function(n){zt.registerClass(n)},registerChartView:function(n){Ot.registerClass(n)},registerSubTypeDefaulter:function(n,e){_t.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){j0(n,e)}};function dt(n){if(B(n)){T(n,function(e){dt(e)});return}pt(kw,n)>=0||(kw.push(n),K(n)&&(n={install:n}),n.install(I5))}function $s(n){return n==null?0:n.length||1}function Lw(n){return n}var T5=function(){function n(e,t,i,o,r,a){this._old=e,this._new=t,this._oldKeyGetter=i||Lw,this._newKeyGetter=o||Lw,this.context=r,this._diffModeMultiple=a==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,i={},o=new Array(e.length),r=new Array(t.length);this._initIndexMap(e,null,o,"_oldKeyGetter"),this._initIndexMap(t,i,r,"_newKeyGetter");for(var a=0;a1){var h=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(h,a)}else u===1?(i[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(r,i)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,i={},o={},r=[],a=[];this._initIndexMap(e,i,r,"_oldKeyGetter"),this._initIndexMap(t,o,a,"_newKeyGetter");for(var s=0;s1&&p===1)this._updateManyToOne&&this._updateManyToOne(h,u),o[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(h,u),o[l]=null;else if(c===1&&p===1)this._update&&this._update(h,u),o[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(h,u),o[l]=null;else if(c>1)for(var d=0;d1)for(var s=0;s30}var Qs=tt,Ui=G,O5=typeof Int32Array>"u"?Array:Int32Array,N5="e\0\0",Ew=-1,R5=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],z5=["_approximateExtent"],Vw,Bh,Js,tl,cg,Gh,pg,E5=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,o=!1;Ow(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(o=!0,i=e),i=i||["x","y"];for(var r={},a=[],s={},l=!1,u={},h=0;h=t)){var i=this._store,o=i.getProvider();this._updateOrdinalMeta();var r=this._nameList,a=this._idList,s=o.getSource().sourceFormat,l=s===on;if(l&&!o.pure)for(var u=[],h=e;h0},n.prototype.ensureUniqueItemVisual=function(e,t){var i=this._itemVisuals,o=i[e];o||(o=i[e]={});var r=o[t];return r==null&&(r=this.getVisual(t),B(r)?r=r.slice():Qs(r)&&(r=V({},r)),o[t]=r),r},n.prototype.setItemVisual=function(e,t,i){var o=this._itemVisuals[e]||{};this._itemVisuals[e]=o,Qs(t)?V(o,t):o[t]=i},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){Qs(e)?V(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?V(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var i=this.hostModel&&this.hostModel.seriesIndex;Dd(i,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){T(this._graphicEls,function(i,o){i&&e&&e.call(t,i,o)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:Ui(this.dimensions,this._getDimInfo,this),this.hostModel)),cg(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var i=this[e];K(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var o=i.apply(this,arguments);return t.apply(this,[o].concat(ql(arguments)))})},n.internalField=function(){Vw=function(e){var t=e._invertedIndicesMap;T(t,function(i,o){var r=e._dimInfos[o],a=r.ordinalMeta,s=e._store;if(a){i=t[o]=new O5(a.categories.length);for(var l=0;l1&&(l+="__ec__"+h),o[t]=l}}}(),n}();const be=E5;function V5(n,e){return fa(n,e).dimensions}function fa(n,e){Mf(n)||(n=Tf(n)),e=e||{};var t=e.coordDimensions||[],i=e.dimensionsDefine||n.dimensionsDefine||[],o=j(),r=[],a=G5(n,t,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&zw(a),l=i===n.dimensionsDefine,u=l?Rw(n):Nw(i),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(n,a));for(var c=j(h),p=new eb(a),d=0;d0&&(i.name=o+(r-1)),r++,e.set(o,r)}}function G5(n,e,t,i){var o=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,i||0);return T(e,function(r){var a;tt(r)&&(a=r.dimsDef)&&(o=Math.max(o,a.length))}),o}function F5(n,e,t){if(t||e.hasKey(n)){for(var i=0;e.hasKey(n+i);)i++;n+=i}return e.set(n,!0),n}var W5=function(){function n(e){this.coordSysDims=[],this.axisMap=j(),this.categoryAxisMap=j(),this.coordSysName=e}return n}();function H5(n){var e=n.get("coordinateSystem"),t=new W5(e),i=Y5[e];if(i)return i(n,t,t.axisMap,t.categoryAxisMap),t}var Y5={cartesian2d:function(n,e,t,i){var o=n.getReferringComponents("xAxis",qt).models[0],r=n.getReferringComponents("yAxis",qt).models[0];e.coordSysDims=["x","y"],t.set("x",o),t.set("y",r),ga(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),ga(r)&&(i.set("y",r),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,i){var o=n.getReferringComponents("singleAxis",qt).models[0];e.coordSysDims=["single"],t.set("single",o),ga(o)&&(i.set("single",o),e.firstCategoryDimIndex=0)},polar:function(n,e,t,i){var o=n.getReferringComponents("polar",qt).models[0],r=o.findAxisModel("radiusAxis"),a=o.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",r),t.set("angle",a),ga(r)&&(i.set("radius",r),e.firstCategoryDimIndex=0),ga(a)&&(i.set("angle",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,i){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,i){var o=n.ecModel,r=o.getComponent("parallel",n.get("parallelIndex")),a=e.coordSysDims=r.dimensions.slice();T(r.parallelAxisIndex,function(s,l){var u=o.getComponent("parallelAxis",s),h=a[l];t.set(h,u),ga(u)&&(i.set(h,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function ga(n){return n.get("type")==="category"}function Bw(n,e,t){t=t||{};var i=t.byIndex,o=t.stackedCoordDimension,r,a,s;X5(e)?r=e:(a=e.schema,r=a.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,h,c,p;if(T(r,function(m,x){Y(m)&&(r[x]=m={name:m}),l&&!m.isExtraCoord&&(!i&&!u&&m.ordinalMeta&&(u=m),!h&&m.type!=="ordinal"&&m.type!=="time"&&(!o||o===m.coordDim)&&(h=m))}),h&&!i&&!u&&(i=!0),h){c="__\0ecstackresult_"+n.id,p="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var d=h.coordDim,f=h.type,g=0;T(r,function(m){m.coordDim===d&&g++});var y={name:c,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},v={name:p,coordDim:p,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};a?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,f),v.storeDimIndex=s.ensureCalculationDimension(c,f)),a.appendCalculationDimension(y),a.appendCalculationDimension(v)):(r.push(y),r.push(v))}return{stackedDimension:h&&h.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:c}}function X5(n){return!Ow(n.schema)}function fi(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function dg(n,e){return fi(n,e)?n.getCalculationInfo("stackResultDimension"):e}function Z5(n,e){var t=n.get("coordinateSystem"),i=oa.get(t),o;return e&&e.coordSysDims&&(o=G(e.coordSysDims,function(r){var a={name:r},s=e.axisMap.get(r);if(s){var l=s.get("type");a.type=Eh(l)}return a})),o||(o=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),o}function U5(n,e,t){var i,o;return t&&T(n,function(r,a){var s=r.coordDim,l=t.categoryAxisMap.get(s);l&&(i==null&&(i=a),r.ordinalMeta=l.getOrdinalMeta(),e&&(r.createInvertedIndices=!0)),r.otherDims.itemName!=null&&(o=!0)}),!o&&i!=null&&(n[i].otherDims.itemName=0),i}function Xn(n,e,t){t=t||{};var i=e.getSourceManager(),o,r=!1;n?(r=!0,o=Tf(n)):(o=i.getSource(),r=o.sourceFormat===on);var a=H5(e),s=Z5(e,a),l=t.useEncodeDefaulter,u=K(l)?l:l?rt(v_,s,e):null,h={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!r},c=fa(o,h),p=U5(c.dimensions,t.createInvertedIndices,a),d=r?null:i.getSharedDataStore(c),f=Bw(e,{schema:c,store:d}),g=new be(c,e);g.setCalculationInfo(f);var y=p!=null&&j5(o)?function(v,m,x,_){return _===p?x:this.defaultDimValueGetter(v,m,x,_)}:null;return g.hasItemOption=!1,g.initData(r?o:d,null,y),g}function j5(n){if(n.sourceFormat===on){var e=q5(n.data||[]);return!B(Er(e))}}function q5(n){for(var e=0;et[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var i=this._extent;isNaN(e)||(i[0]=e),isNaN(t)||(i[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Cu(Gw);const gi=Gw;var K5=0,$5=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++K5}return n.createByAxisModel=function(e){var t=e.option,i=t.data,o=i&&G(i,Q5);return new n({categories:o,needCollect:!o,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,i=this._needCollect;if(!Y(e)&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var o=this._getOrCreateMap();return t=o.get(e),t==null&&(i?(t=this.categories.length,this.categories[t]=e,o.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=j(this.categories))},n}();function Q5(n){return tt(n)&&n.value!=null?n.value:n+""}const fg=$5;function gg(n){return n.type==="interval"||n.type==="log"}function J5(n,e,t,i){var o={},r=n[1]-n[0],a=o.interval=rd(r/e,!0);t!=null&&ai&&(a=o.interval=i);var s=o.intervalPrecision=Fw(a),l=o.niceTickExtent=[Wt(Math.ceil(n[0]/a)*a,s),Wt(Math.floor(n[1]/a)*a,s)];return tE(l,n),o}function yg(n){var e=Math.pow(10,Iu(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Wt(t*e)}function Fw(n){return wn(n)+2}function Ww(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function tE(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),Ww(n,0,e),Ww(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function Fh(n,e){return n>=e[0]&&n<=e[1]}function Wh(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Hh(n,e){return n*(e[1]-e[0])+e[0]}var Hw=function(n){N(e,n);function e(t){var i=n.call(this,t)||this;i.type="ordinal";var o=i.getSetting("ordinalMeta");return o||(o=new fg({})),B(o)&&(o=new fg({categories:G(o,function(r){return tt(r)?r.value:r})})),i._ordinalMeta=o,i._extent=i.getSetting("extent")||[0,o.categories.length-1],i}return e.prototype.parse=function(t){return t==null?NaN:Y(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Fh(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Wh(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Hh(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],i=this._extent,o=i[0];o<=i[1];)t.push({value:o}),o++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=t.ordinalNumbers,o=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);a=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(gi);gi.registerClass(Hw);const vg=Hw;var Qo=Wt,Yw=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Fh(t,this._extent)},e.prototype.normalize=function(t){return Wh(t,this._extent)},e.prototype.scale=function(t){return Hh(t,this._extent)},e.prototype.setExtent=function(t,i){var o=this._extent;isNaN(t)||(o[0]=parseFloat(t)),isNaN(i)||(o[1]=parseFloat(i))},e.prototype.unionExtent=function(t){var i=this._extent;t[0]i[1]&&(i[1]=t[1]),this.setExtent(i[0],i[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Fw(t)},e.prototype.getTicks=function(t){var i=this._interval,o=this._extent,r=this._niceExtent,a=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;o[0]l)return[];var h=s.length?s[s.length-1].value:r[1];return o[1]>h&&(t?s.push({value:Qo(h+i,a)}):s.push({value:o[1]})),s},e.prototype.getMinorTicks=function(t){for(var i=this.getTicks(!0),o=[],r=this.getExtent(),a=1;ar[0]&&d0&&(r=r===null?s:Math.min(r,s))}t[i]=r}}return t}function Uw(n){var e=iE(n),t=[];return T(n,function(i){var o=i.coordinateSystem,r=o.getBaseAxis(),a=r.getExtent(),s;if(r.type==="category")s=r.getBandWidth();else if(r.type==="value"||r.type==="time"){var l=r.dim+"_"+r.index,u=e[l],h=Math.abs(a[1]-a[0]),c=r.scale.getExtent(),p=Math.abs(c[1]-c[0]);s=u?h/p*u:h}else{var d=i.getData();s=Math.abs(a[1]-a[0])/d.count()}var f=H(i.get("barWidth"),s),g=H(i.get("barMaxWidth"),s),y=H(i.get("barMinWidth")||(Qw(i)?.5:1),s),v=i.get("barGap"),m=i.get("barCategoryGap");t.push({bandWidth:s,barWidth:f,barMaxWidth:g,barMinWidth:y,barGap:v,barCategoryGap:m,axisKey:_g(r),stackId:xg(i)})}),jw(t)}function jw(n){var e={};T(n,function(i,o){var r=i.axisKey,a=i.bandWidth,s=e[r]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[r]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var h=i.barWidth;h&&!l[u].width&&(l[u].width=h,h=Math.min(s.remainedWidth,h),s.remainedWidth-=h);var c=i.barMaxWidth;c&&(l[u].maxWidth=c);var p=i.barMinWidth;p&&(l[u].minWidth=p);var d=i.barGap;d!=null&&(s.gap=d);var f=i.barCategoryGap;f!=null&&(s.categoryGap=f)});var t={};return T(e,function(i,o){t[o]={};var r=i.stacks,a=i.bandWidth,s=i.categoryGap;if(s==null){var l=mt(r).length;s=Math.max(35-l*4,15)+"%"}var u=H(s,a),h=H(i.gap,1),c=i.remainedWidth,p=i.autoWidthCount,d=(c-u)/(p+(p-1)*h);d=Math.max(d,0),T(r,function(v){var m=v.maxWidth,x=v.minWidth;if(v.width){var _=v.width;m&&(_=Math.min(_,m)),x&&(_=Math.max(_,x)),v.width=_,c-=_+h*_,p--}else{var _=d;m&&m<_&&(_=Math.min(m,c)),x&&x>_&&(_=x),_!==d&&(v.width=_,c-=_+h*_,p--)}}),d=(c-u)/(p+(p-1)*h),d=Math.max(d,0);var f=0,g;T(r,function(v,m){v.width||(v.width=d),g=v,f+=v.width*(1+h)}),g&&(f-=g.width*h);var y=-f/2;T(r,function(v,m){t[o][m]=t[o][m]||{bandWidth:a,offset:y,width:v.width},y+=v.width*(1+h)})}),t}function oE(n,e,t){if(n&&e){var i=n[_g(e)];return i!=null&&t!=null?i[xg(t)]:i}}function qw(n,e){var t=Zw(n,e),i=Uw(t);T(t,function(o){var r=o.getData(),a=o.coordinateSystem,s=a.getBaseAxis(),l=xg(o),u=i[_g(s)][l],h=u.offset,c=u.width;r.setLayout({bandWidth:u.bandWidth,offset:h,size:c})})}function Kw(n){return{seriesType:n,plan:sa(),reset:function(e){if($w(e)){var t=e.getData(),i=e.coordinateSystem,o=i.getBaseAxis(),r=i.getOtherAxis(o),a=t.getDimensionIndex(t.mapDimension(r.dim)),s=t.getDimensionIndex(t.mapDimension(o.dim)),l=e.get("showBackground",!0),u=t.mapDimension(r.dim),h=t.getCalculationInfo("stackResultDimension"),c=fi(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),p=r.isHorizontal(),d=rE(o,r),f=Qw(e),g=e.get("barMinHeight")||0,y=h&&t.getDimensionIndex(h),v=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(x,_){for(var w=x.count,b=f&&Zn(w*3),S=f&&l&&Zn(w*3),M=f&&Zn(w),I=i.master.getRect(),C=p?I.width:I.height,A,D=_.getStore(),k=0;(A=x.next())!=null;){var L=D.get(c?y:a,A),P=D.get(s,A),O=d,z=void 0;c&&(z=+L-D.get(a,A));var R=void 0,E=void 0,F=void 0,W=void 0;if(p){var X=i.dataToPoint([L,P]);if(c){var $=i.dataToPoint([z,P]);O=$[0]}R=O,E=X[1]+m,F=X[0]-O,W=v,Math.abs(F)0?t:1:t))}var aE=function(n,e,t,i){for(;t>>1;n[o][1]o&&(this._approxInterval=o);var s=Yh.length,l=Math.min(aE(Yh,this._approxInterval,0,s),s-1);this._interval=Yh[l][1],this._minLevelUnit=Yh[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return Tt(t)?t:+He(t)},e.prototype.contain=function(t){return Fh(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Wh(this.parse(t),this._extent)},e.prototype.scale=function(t){return Hh(t,this._extent)},e.type="time",e}(ji),Yh=[["second",af],["minute",sf],["hour",Ps],["quarter-day",Ps*6],["half-day",Ps*12],["day",nn*1.2],["half-week",nn*3.5],["week",nn*7],["month",nn*31],["quarter",nn*95],["half-year",Qx/2],["year",Qx]];function sE(n,e,t,i){var o=He(e),r=He(t),a=function(f){return n_(o,f,i)===n_(r,f,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},h=function(){return u()&&a("hour")},c=function(){return h()&&a("minute")},p=function(){return c()&&a("second")},d=function(){return p()&&a("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return h();case"minute":return c();case"second":return p();case"millisecond":return d()}}function lE(n,e){return n/=nn,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function uE(n){var e=30*nn;return n/=e,n>6?6:n>3?3:n>2?2:1}function hE(n){return n/=Ps,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function tS(n,e){return n/=e?sf:af,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function cE(n){return rd(n,!0)}function pE(n,e,t){var i=new Date(n);switch(Qr(e)){case"year":case"month":i[i_(t)](0);case"day":i[o_(t)](1);case"hour":i[r_(t)](0);case"minute":i[a_(t)](0);case"second":i[s_(t)](0),i[l_(t)](0)}return i.getTime()}function dE(n,e,t,i){var o=1e4,r=t_,a=0;function s(C,A,D,k,L,P,O){for(var z=new Date(A),R=A,E=z[k]();R1&&P===0&&D.unshift({value:D[0].value-R})}}for(var P=0;P=i[0]&&m<=i[1]&&c++)}var x=(i[1]-i[0])/e;if(c>x*1.5&&p>x/1.5||(u.push(y),c>x||n===r[d]))break}h=[]}}}for(var _=Dt(G(u,function(A){return Dt(A,function(D){return D.value>=i[0]&&D.value<=i[1]&&!D.notAdd})}),function(A){return A.length>0}),w=[],b=_.length-1,d=0;d<_.length;++d)for(var S=_[d],M=0;M0;)r*=10;var s=[Wt(yE(i[0]/r)*r),Wt(gE(i[1]/r)*r)];this._interval=r,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){el.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Dn(t)/Dn(this.base),Fh(t,this._extent)},e.prototype.normalize=function(t){return t=Dn(t)/Dn(this.base),Wh(t,this._extent)},e.prototype.scale=function(t){return t=Hh(t,this._extent),Xh(this.base,t)},e.type="log",e}(gi),iS=bg.prototype;iS.getMinorTicks=el.getMinorTicks,iS.getLabel=el.getLabel;function Zh(n,e){return fE(n,wn(e))}gi.registerClass(bg);const vE=bg;var mE=function(){function n(e,t,i){this._prepareParams(e,t,i)}return n.prototype._prepareParams=function(e,t,i){i[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!h&&(l=0));var p=this._determinedMin,d=this._determinedMax;return p!=null&&(s=p,u=!0),d!=null&&(l=d,h=!0),{min:s,max:l,minFixed:u,maxFixed:h,isBlank:c}},n.prototype.modifyDataMinMax=function(e,t){this[_E[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var i=xE[e];this[i]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),xE={min:"_determinedMin",max:"_determinedMax"},_E={min:"_dataMin",max:"_dataMax"};function oS(n,e,t){var i=n.rawExtentInfo;return i||(i=new mE(n,e,t),n.rawExtentInfo=i,i)}function Uh(n,e){return e==null?null:Ir(e)?NaN:n.parse(e)}function rS(n,e){var t=n.type,i=oS(n,e,n.getExtent()).calculate();n.setBlank(i.isBlank);var o=i.min,r=i.max,a=e.ecModel;if(a&&t==="time"){var s=Zw("bar",a),l=!1;if(T(s,function(c){l=l||c.getBaseAxis()===e.axis}),l){var u=Uw(s),h=bE(o,r,e,u);o=h.min,r=h.max}}return{extent:[o,r],fixMin:i.minFixed,fixMax:i.maxFixed}}function bE(n,e,t,i){var o=t.axis.getExtent(),r=o[1]-o[0],a=oE(i,t.axis);if(a===void 0)return{min:n,max:e};var s=1/0;T(a,function(d){s=Math.min(d.offset,s)});var l=-1/0;T(a,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-n,c=1-(s+l)/r,p=h/c-h;return e+=p*(l/u),n-=p*(s/u),{min:n,max:e}}function Jo(n,e){var t=e,i=rS(n,t),o=i.extent,r=t.get("splitNumber");n instanceof vE&&(n.base=t.get("logBase"));var a=n.type,s=t.get("interval"),l=a==="interval"||a==="time";n.setExtent(o[0],o[1]),n.calcNiceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function nl(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new vg({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new eS({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(gi.getClass(e)||ji)}}function wE(n){var e=n.scale.getExtent(),t=e[0],i=e[1];return!(t>0&&i>0||t<0&&i<0)}function ya(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(i){return function(o,r){return n.scale.getFormattedLabel(o,r,i)}}(e):Y(e)?function(i){return function(o){var r=n.scale.getLabel(o),a=i.replace("{value}",r??"");return a}}(e):K(e)?function(i){return function(o,r){return t!=null&&(r=o.value-t),i(wg(n,o),r,o.level!=null?{level:o.level}:null)}}(e):function(i){return n.scale.getLabel(i)}}function wg(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function SE(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var i,o,r=t.getExtent();t instanceof vg?o=t.count():(i=t.getTicks(),o=i.length);var a=n.getLabelModel(),s=ya(n),l,u=1;o>40&&(u=Math.ceil(o/40));for(var h=0;hn[1]&&(n[1]=o[1])})}var va=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}();function TE(n){return Xn(null,n)}var CE={isDimensionStacked:fi,enableDataStack:Bw,getStackedDimension:dg};function AE(n,e){var t=e;e instanceof Pt||(t=new Pt(e));var i=nl(t);return i.setExtent(n[0],n[1]),Jo(i,t),i}function DE(n){Xt(n,va)}function kE(n,e){return e=e||{},Rt(n,null,null,e.state!=="normal")}const LE=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:V5,createList:TE,createScale:AE,createSymbol:Ut,createTextStyle:kE,dataStack:CE,enableHoverEmphasis:zi,getECData:ot,getLayoutRect:Kt,mixinAxisModelCommonMethods:DE},Symbol.toStringTag,{value:"Module"}));var PE=1e-8;function sS(n,e){return Math.abs(n-e)o&&(i=a,o=l)}if(i)return NE(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var i=this._rect;if(i&&!t)return i;var o=[1/0,1/0],r=[-1/0,-1/0],a=this.geometries;return T(a,function(s){s.type==="polygon"?lS(s.exterior,o,r,t):T(s.points,function(l){lS(l,o,r,t)})}),isFinite(o[0])&&isFinite(o[1])&&isFinite(r[0])&&isFinite(r[1])||(o[0]=o[1]=r[0]=r[1]=0),i=new ct(o[0],o[1],r[0]-o[0],r[1]-o[1]),t||(this._rect=i),i},e.prototype.contain=function(t){var i=this.getBoundingRect(),o=this.geometries;if(!i.contain(t[0],t[1]))return!1;t:for(var r=0,a=o.length;r>1^-(s&1),l=l>>1^-(l&1),s+=o,l+=r,o=s,r=l,i.push([s/t,l/t])}return i}function Tg(n,e){return n=zE(n),G(Dt(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var i=t.properties,o=t.geometry,r=[];switch(o.type){case"Polygon":var a=o.coordinates;r.push(new hS(a[0],a.slice(1)));break;case"MultiPolygon":T(o.coordinates,function(l){l[0]&&r.push(new hS(l[0],l.slice(1)))});break;case"LineString":r.push(new cS([o.coordinates]));break;case"MultiLineString":r.push(new cS(o.coordinates))}var s=new pS(i[e||"name"],r,i.cp);return s.properties=i,s})}const EE=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:id,asc:We,getPercentWithPrecision:$L,getPixelPrecision:nd,getPrecision:wn,getPrecisionSafe:J0,isNumeric:sd,isRadianAroundZero:zr,linearMap:kt,nice:rd,numericToNumber:zn,parseDate:He,quantile:Tu,quantity:e1,quantityExponent:Iu,reformIntervals:ad,remRadian:od,round:Wt},Symbol.toStringTag,{value:"Module"})),VE=Object.freeze(Object.defineProperty({__proto__:null,format:Ns,parse:He},Symbol.toStringTag,{value:"Module"})),BE=Object.freeze(Object.defineProperty({__proto__:null,Arc:Yu,BezierCurve:Cs,BoundingRect:ct,Circle:ci,CompoundPath:Xu,Ellipse:Wu,Group:it,Image:se,IncrementalDisplayable:Px,Line:ee,LinearGradient:Hr,Polygon:Ce,Polyline:Ae,RadialGradient:Yd,Rect:wt,Ring:Ts,Sector:Te,Text:St,clipPointsByRect:qd,clipRectByRect:Bx,createIcon:Ur,extendPath:zx,extendShape:Rx,getShapeClass:$u,getTransform:Vi,initProps:Vt,makeImage:Ud,makePath:Ds,mergePath:Xe,registerShape:en,resizePath:jd,updateProps:Ct},Symbol.toStringTag,{value:"Module"})),GE=Object.freeze(Object.defineProperty({__proto__:null,addCommas:hf,capitalFirst:LN,encodeHTML:ye,formatTime:kN,formatTpl:ff,getTextRect:AN,getTooltipMarker:h_,normalizeCssArray:Go,toCamelCase:cf,truncateText:y1},Symbol.toStringTag,{value:"Module"})),FE=Object.freeze(Object.defineProperty({__proto__:null,bind:Z,clone:et,curry:rt,defaults:Q,each:T,extend:V,filter:Dt,indexOf:pt,inherits:ap,isArray:B,isFunction:K,isObject:tt,isString:Y,map:G,merge:st,reduce:Ue},Symbol.toStringTag,{value:"Module"}));var il=bt();function fS(n,e){var t=G(e,function(i){return n.scale.parse(i)});return n.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function WE(n){var e=n.getLabelModel().get("customValues");if(e){var t=ya(n);return{labels:fS(n,e).map(function(i){var o={value:i};return{formattedLabel:t(o),rawLabel:n.scale.getLabel(o),tickValue:i}})}}return n.type==="category"?YE(n):ZE(n)}function HE(n,e){var t=n.getTickModel().get("customValues");return t?{ticks:fS(n,t)}:n.type==="category"?XE(n,e):{ticks:G(n.scale.getTicks(),function(i){return i.value})}}function YE(n){var e=n.getLabelModel(),t=gS(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function gS(n,e){var t=yS(n,"labels"),i=Sg(e),o=vS(t,i);if(o)return o;var r,a;return K(i)?r=_S(n,i):(a=i==="auto"?UE(n):i,r=xS(n,a)),mS(t,i,{labels:r,labelCategoryInterval:a})}function XE(n,e){var t=yS(n,"ticks"),i=Sg(e),o=vS(t,i);if(o)return o;var r,a;if((!e.get("show")||n.scale.isBlank())&&(r=[]),K(i))r=_S(n,i,!0);else if(i==="auto"){var s=gS(n,n.getLabelModel());a=s.labelCategoryInterval,r=G(s.labels,function(l){return l.tickValue})}else a=i,r=xS(n,a,!0);return mS(t,i,{ticks:r,tickCategoryInterval:a})}function ZE(n){var e=n.scale.getTicks(),t=ya(n);return{labels:G(e,function(i,o){return{level:i.level,formattedLabel:t(i,o),rawLabel:n.scale.getLabel(i),tickValue:i.value}})}}function yS(n,e){return il(n)[e]||(il(n)[e]=[])}function vS(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(a/40)));for(var l=r[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),p=0,d=0;l<=r[1];l+=s){var f=0,g=0,y=us(t({value:l}),e.font,"center","top");f=y.width*1.3,g=y.height*1.3,p=Math.max(p,f,7),d=Math.max(d,g,7)}var v=p/h,m=d/c;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var x=Math.max(0,Math.floor(Math.min(v,m))),_=il(n.model),w=n.getExtent(),b=_.lastAutoInterval,S=_.lastTickCount;return b!=null&&S!=null&&Math.abs(b-x)<=1&&Math.abs(S-a)<=1&&b>x&&_.axisExtent0===w[0]&&_.axisExtent1===w[1]?x=b:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=w[0],_.axisExtent1=w[1]),x}function qE(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function xS(n,e,t){var i=ya(n),o=n.scale,r=o.getExtent(),a=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=r[0],h=o.count();u!==0&&l>1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=aS(n),p=a.get("showMinLabel")||c,d=a.get("showMaxLabel")||c;p&&u!==r[0]&&g(r[0]);for(var f=u;f<=r[1];f+=l)g(f);d&&f-l!==r[1]&&g(r[1]);function g(y){var v={value:y};s.push(t?y:{formattedLabel:i(v),rawLabel:o.getLabel(v),tickValue:y})}return s}function _S(n,e,t){var i=n.scale,o=ya(n),r=[];return T(i.getTicks(),function(a){var s=i.getLabel(a),l=a.value;e(a.value,s)&&r.push(t?l:{formattedLabel:o(a),rawLabel:s,tickValue:l})}),r}var bS=[0,1],KE=function(){function n(e,t,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=i||[0,0]}return n.prototype.contain=function(e){var t=this._extent,i=Math.min(t[0],t[1]),o=Math.max(t[0],t[1]);return e>=i&&e<=o},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return nd(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var i=this._extent;i[0]=e,i[1]=t},n.prototype.dataToCoord=function(e,t){var i=this._extent,o=this.scale;return e=o.normalize(e),this.onBand&&o.type==="ordinal"&&(i=i.slice(),wS(i,o.count())),kt(e,bS,i,t)},n.prototype.coordToData=function(e,t){var i=this._extent,o=this.scale;this.onBand&&o.type==="ordinal"&&(i=i.slice(),wS(i,o.count()));var r=kt(e,i,bS,t);return this.scale.scale(r)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=HE(this,t),o=i.ticks,r=G(o,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=t.get("alignWithLabel");return $E(this,r,a,e.clamp),r},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var i=this.scale.getMinorTicks(t),o=G(i,function(r){return G(r,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return o},n.prototype.getViewLabels=function(){return WE(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),i=t[1]-t[0]+(this.onBand?1:0);i===0&&(i=1);var o=Math.abs(e[1]-e[0]);return Math.abs(o)/i},n.prototype.calculateCategoryInterval=function(){return jE(this)},n}();function wS(n,e){var t=n[1]-n[0],i=e,o=t/i/2;n[0]+=o,n[1]-=o}function $E(n,e,t,i){var o=e.length;if(!n.onBand||t||!o)return;var r=n.getExtent(),a,s;if(o===1)e[0].coord=r[0],a=e[1]={coord:r[1]};else{var l=e[o-1].tickValue-e[0].tickValue,u=(e[o-1].coord-e[0].coord)/l;T(e,function(d){d.coord-=u/2});var h=n.scale.getExtent();s=1+h[1]-e[o-1].tickValue,a={coord:e[o-1].coord+u*s},e.push(a)}var c=r[0]>r[1];p(e[0].coord,r[0])&&(i?e[0].coord=r[0]:e.shift()),i&&p(r[0],e[0].coord)&&e.unshift({coord:r[0]}),p(r[1],a.coord)&&(i?a.coord=r[1]:e.pop()),i&&p(a.coord,r[1])&&e.push({coord:r[1]});function p(d,f){return d=Wt(d),f=Wt(f),c?d>f:do&&(o+=ol);var d=Math.atan2(s,a);if(d<0&&(d+=ol),d>=i&&d<=o||d+ol>=i&&d+ol<=o)return l[0]=h,l[1]=c,u-t;var f=t*Math.cos(i)+n,g=t*Math.sin(i)+e,y=t*Math.cos(o)+n,v=t*Math.sin(o)+e,m=(f-a)*(f-a)+(g-s)*(g-s),x=(y-a)*(y-a)+(v-s)*(v-s);return m0){e=e/180*Math.PI,Ln.fromArray(n[0]),Et.fromArray(n[1]),jt.fromArray(n[2]),ht.sub(Un,Ln,Et),ht.sub(jn,jt,Et);var t=Un.len(),i=jn.len();if(!(t<.001||i<.001)){Un.scale(1/t),jn.scale(1/i);var o=Un.dot(jn),r=Math.cos(e);if(r1&&ht.copy(Le,jt),Le.toArray(n[1])}}}}function sV(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ln.fromArray(n[0]),Et.fromArray(n[1]),jt.fromArray(n[2]),ht.sub(Un,Et,Ln),ht.sub(jn,jt,Et);var i=Un.len(),o=jn.len();if(!(i<.001||o<.001)){Un.scale(1/i),jn.scale(1/o);var r=Un.dot(e),a=Math.cos(t);if(r=l)ht.copy(Le,jt);else{Le.scaleAndAdd(jn,s/Math.tan(Math.PI/2-h));var c=jt.x!==Et.x?(Le.x-Et.x)/(jt.x-Et.x):(Le.y-Et.y)/(jt.y-Et.y);if(isNaN(c))return;c<0?ht.copy(Le,Et):c>1&&ht.copy(Le,jt)}Le.toArray(n[1])}}}}function Cg(n,e,t,i){var o=t==="normal",r=o?n:n.ensureState(t);r.ignore=e;var a=i.get("smooth");a&&a===!0&&(a=.3),r.shape=r.shape||{},a>0&&(r.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();o?n.useStyle(s):r.style=s}function lV(n,e){var t=e.smooth,i=e.points;if(i)if(n.moveTo(i[0][0],i[0][1]),t>0&&i.length>=3){var o=ti(i[0],i[1]),r=ti(i[1],i[2]);if(!o||!r){n.lineTo(i[1][0],i[1][1]),n.lineTo(i[2][0],i[2][1]);return}var a=Math.min(o,r)*t,s=Za([],i[1],i[0],a/o),l=Za([],i[1],i[2],a/r),u=Za([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var h=1;h0&&r&&w(-h/a,0,a);var g=n[0],y=n[a-1],v,m;x(),v<0&&b(-v,.8),m<0&&b(m,.8),x(),_(v,m,1),_(m,v,-1),x(),v<0&&S(-v),m<0&&S(m);function x(){v=g.rect[e]-i,m=o-y.rect[e]-y.rect[t]}function _(M,I,C){if(M<0){var A=Math.min(I,-M);if(A>0){w(A*C,0,a);var D=A+M;D<0&&b(-D*C,1)}else b(-M*C,1)}}function w(M,I,C){M!==0&&(u=!0);for(var A=I;A0)for(var D=0;D0;D--){var O=C[D-1]*P;w(-O,D,a)}}}function S(M){var I=M<0?-1:1;M=Math.abs(M);for(var C=Math.ceil(M/(a-1)),A=0;A0?w(C,0,A+1):w(-C,a-A-1,a),M-=C,M<=0)return}return u}function uV(n,e,t,i){return CS(n,"x","width",e,t,i)}function AS(n,e,t,i){return CS(n,"y","height",e,t,i)}function DS(n){var e=[];n.sort(function(g,y){return y.priority-g.priority});var t=new ct(0,0,0,0);function i(g){if(!g.ignore){var y=g.ensureState("emphasis");y.ignore==null&&(y.ignore=!1)}g.ignore=!0}for(var o=0;o=0&&i.attr(r.oldLayoutSelect),pt(c,"emphasis")>=0&&i.attr(r.oldLayoutEmphasis)),Ct(i,u,t,l)}else if(i.attr(u),!qr(i).valueAnimation){var p=at(i.style.opacity,1);i.style.opacity=0,Vt(i,{style:{opacity:p}},t,l)}if(r.oldLayout=u,i.states.select){var d=r.oldLayoutSelect={};$h(d,u,Qh),$h(d,i.states.select,Qh)}if(i.states.emphasis){var f=r.oldLayoutEmphasis={};$h(f,u,Qh),$h(f,i.states.emphasis,Qh)}jx(i,l,h,t,t)}if(o&&!o.ignore&&!o.invisible){var r=pV(o),a=r.oldLayout,g={points:o.shape.points};a?(o.attr({shape:a}),Ct(o,{shape:g},t)):(o.setShape(g),o.style.strokePercent=0,Vt(o,{style:{strokePercent:1}},t)),r.oldLayout=g}},n}();const fV=dV;var Lg=bt();function gV(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){var o=Lg(t).labelManager;o||(o=Lg(t).labelManager=new fV),o.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,i){var o=Lg(t).labelManager;i.updatedSeries.forEach(function(r){o.addLabelsOfSeries(t.getViewOfSeriesModel(r))}),o.updateLayoutConfig(t),o.layout(t),o.processLabelsOverall()})}var Pg=Math.sin,Og=Math.cos,LS=Math.PI,nr=Math.PI*2,yV=180/LS,vV=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,i,o,r,a){this._add("C",e,t,i,o,r,a)},n.prototype.quadraticCurveTo=function(e,t,i,o){this._add("Q",e,t,i,o)},n.prototype.arc=function(e,t,i,o,r,a){this.ellipse(e,t,i,i,0,o,r,a)},n.prototype.ellipse=function(e,t,i,o,r,a,s,l){var u=s-a,h=!l,c=Math.abs(u),p=Li(c-nr)||(h?u>=nr:-u>=nr),d=u>0?u%nr:u%nr+nr,f=!1;p?f=!0:Li(c)?f=!1:f=d>=LS==!!h;var g=e+i*Og(a),y=t+o*Pg(a);this._start&&this._add("M",g,y);var v=Math.round(r*yV);if(p){var m=1/this._p,x=(h?1:-1)*(nr-m);this._add("A",i,o,v,1,+h,e+i*Og(a+x),t+o*Pg(a+x)),m>.01&&this._add("A",i,o,v,0,+h,g,y)}else{var _=e+i*Og(s),w=t+o*Pg(s);this._add("A",i,o,v,+f,+h,_,w)}},n.prototype.rect=function(e,t,i,o){this._add("M",e,t),this._add("l",i,0),this._add("l",0,o),this._add("l",-i,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,i,o,r,a,s,l,u){for(var h=[],c=this._p,p=1;p"}function TV(n){return""}function Rg(n,e){e=e||{};var t=e.newline?` +`:"";function i(o){var r=o.children,a=o.tag,s=o.attrs,l=o.text;return IV(a,s)+(a!=="style"?ye(l):l||"")+(r?""+t+G(r,function(u){return i(u)}).join(t)+t:"")+TV(a)}return i(n)}function CV(n,e,t){t=t||{};var i=t.newline?` +`:"",o=" {"+i,r=i+"}",a=G(mt(n),function(l){return l+o+G(mt(n[l]),function(u){return u+":"+n[l][u]+";"}).join(i)+r}).join(i),s=G(mt(e),function(l){return"@keyframes "+l+o+G(mt(e[l]),function(u){return u+o+G(mt(e[l][u]),function(h){var c=e[l][u][h];return h==="d"&&(c='path("'+c+'")'),h+":"+c+";"}).join(i)+r}).join(i)+r}).join(i);return!a&&!s?"":[""].join(i)}function zg(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function ES(n,e,t,i){return oe("svg","root",{width:n,height:e,xmlns:OS,"xmlns:xlink":NS,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+n+" "+e:!1},t)}var AV=0;function VS(){return AV++}var BS={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},ir="transform-origin";function DV(n,e,t){var i=V({},n.shape);V(i,e),n.buildPath(t,i);var o=new PS;return o.reset(D0(n)),t.rebuildPath(o,1),o.generateStr(),o.getStr()}function kV(n,e){var t=e.originX,i=e.originY;(t||i)&&(n[ir]=t+"px "+i+"px")}var LV={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function GS(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function PV(n,e,t){var i=n.shape.paths,o={},r,a;if(T(i,function(l){var u=zg(t.zrId);u.animation=!0,Jh(l,{},u,!0);var h=u.cssAnims,c=u.cssNodes,p=mt(h),d=p.length;if(d){a=p[d-1];var f=h[a];for(var g in f){var y=f[g];o[g]=o[g]||{d:""},o[g].d+=y.d||""}for(var v in c){var m=c[v].animation;m.indexOf(a)>=0&&(r=m)}}}),!!r){e.d=!1;var s=GS(o,t);return r.replace(a,s)}}function FS(n){return Y(n)?BS[n]?"cubic-bezier("+BS[n]+")":Ip(n)?n:"":""}function Jh(n,e,t,i){var o=n.animators,r=o.length,a=[];if(n instanceof Xu){var s=PV(n,e,t);if(s)a.push(s);else if(!r)return}else if(!r)return;for(var l={},u=0;u0}).length){var gt=GS(S,t);return gt+" "+m[0]+" both"}}for(var y in l){var s=g(l[y]);s&&a.push(s)}if(a.length){var v=t.zrId+"-cls-"+VS();t.cssNodes["."+v]={animation:a.join(",")},e.class=v}}function OV(n,e,t){if(!n.ignore)if(n.isSilent()){var i={"pointer-events":"none"};WS(i,e,t,!0)}else{var o=n.states.emphasis&&n.states.emphasis.style?n.states.emphasis.style:{},r=o.fill;if(!r){var a=n.style&&n.style.fill,s=n.states.select&&n.states.select.style&&n.states.select.style.fill,l=n.currentStates.indexOf("select")>=0&&s||a;l&&(r=cu(l))}var u=o.lineWidth;if(u){var h=!o.strokeNoScale&&n.transform?n.transform[0]:1;u=u/h}var i={cursor:"pointer"};r&&(i.fill=r),o.stroke&&(i.stroke=o.stroke),u&&(i["stroke-width"]=u),WS(i,e,t,!0)}}function WS(n,e,t,i){var o=JSON.stringify(n),r=t.cssStyleCache[o];r||(r=t.zrId+"-cls-"+VS(),t.cssStyleCache[o]=r,t.cssNodes["."+r+(i?":hover":"")]=n),e.class=e.class?e.class+" "+r:r}var al=Math.round;function HS(n){return n&&Y(n.src)}function YS(n){return n&&K(n.toDataURL)}function Eg(n,e,t,i){wV(function(o,r){var a=o==="fill"||o==="stroke";a&&A0(r)?KS(e,n,o,i):a&&Pp(r)?$S(t,n,o,i):a&&r==="none"?n[o]="transparent":n[o]=r},e,t,!1),GV(t,n,i)}function Vg(n,e){var t=q0(e);t&&(t.each(function(i,o){i!=null&&(n[(RS+o).toLowerCase()]=i+"")}),e.isSilent()&&(n[RS+"silent"]="true"))}function XS(n){return Li(n[0]-1)&&Li(n[1])&&Li(n[2])&&Li(n[3]-1)}function NV(n){return Li(n[4])&&Li(n[5])}function Bg(n,e,t){if(e&&!(NV(e)&&XS(e))){var i=t?10:1e4;n.transform=XS(e)?"translate("+al(e[4]*i)/i+" "+al(e[5]*i)/i+")":cL(e)}}function ZS(n,e,t){for(var i=n.points,o=[],r=0;r"u"){var y="Image width/height must been given explictly in svg-ssr renderer.";fe(p,y),fe(d,y)}else if(p==null||d==null){var v=function(C,A){if(C){var D=C.elm,k=p||A.width,L=d||A.height;C.tag==="pattern"&&(u?(L=1,k/=r.width):h&&(k=1,L/=r.height)),C.attrs.width=k,C.attrs.height=L,D&&(D.setAttribute("width",k),D.setAttribute("height",L))}},m=dd(f,null,n,function(C){l||v(b,C),v(c,C)});m&&m.width&&m.height&&(p=p||m.width,d=d||m.height)}c=oe("image","img",{href:f,width:p,height:d}),a.width=p,a.height=d}else o.svgElement&&(c=et(o.svgElement),a.width=o.svgWidth,a.height=o.svgHeight);if(c){var x,_;l?x=_=1:u?(_=1,x=a.width/r.width):h?(x=1,_=a.height/r.height):a.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(a.width=x),_!=null&&!isNaN(_)&&(a.height=_);var w=k0(o);w&&(a.patternTransform=w);var b=oe("pattern","",a,[c]),S=Rg(b),M=i.patternCache,I=M[S];I||(I=i.zrId+"-p"+i.patternIdx++,M[S]=I,a.id=I,b=i.defs[I]=oe("pattern",I,a,[c])),e[t]=fu(I)}}function FV(n,e,t){var i=t.clipPathCache,o=t.defs,r=i[n.id];if(!r){r=t.zrId+"-c"+t.clipPathIdx++;var a={id:r};i[n.id]=r,o[r]=oe("clipPath",r,a,[jS(n,t)])}e["clip-path"]=fu(r)}function QS(n){return document.createTextNode(n)}function or(n,e,t){n.insertBefore(e,t)}function JS(n,e){n.removeChild(e)}function tM(n,e){n.appendChild(e)}function eM(n){return n.parentNode}function nM(n){return n.nextSibling}function Gg(n,e){n.textContent=e}var iM=58,WV=120,HV=oe("","");function Fg(n){return n===void 0}function qn(n){return n!==void 0}function YV(n,e,t){for(var i={},o=e;o<=t;++o){var r=n[o].key;r!==void 0&&(i[r]=o)}return i}function sl(n,e){var t=n.key===e.key,i=n.tag===e.tag;return i&&t}function ll(n){var e,t=n.children,i=n.tag;if(qn(i)){var o=n.elm=zS(i);if(Wg(HV,n),B(t))for(e=0;er?(f=t[l+1]==null?null:t[l+1].elm,oM(n,f,t,o,l)):tc(n,e,i,r))}function ma(n,e){var t=e.elm=n.elm,i=n.children,o=e.children;n!==e&&(Wg(n,e),Fg(e.text)?qn(i)&&qn(o)?i!==o&&XV(t,i,o):qn(o)?(qn(n.text)&&Gg(t,""),oM(t,null,o,0,o.length-1)):qn(i)?tc(t,i,0,i.length-1):qn(n.text)&&Gg(t,""):n.text!==e.text&&(qn(i)&&tc(t,i,0,i.length-1),Gg(t,e.text)))}function ZV(n,e){if(sl(n,e))ma(n,e);else{var t=n.elm,i=eM(t);ll(e),i!==null&&(or(i,e.elm,nM(t)),tc(i,[n],0,0))}return e}var UV=0,jV=function(){function n(e,t,i){if(this.type="svg",this.refreshHover=rM(),this.configLayer=rM(),this.storage=t,this._opts=i=V({},i),this.root=e,this._id="zr"+UV++,this._oldVNode=ES(i.width,i.height),e&&!i.ssr){var o=this._viewport=document.createElement("div");o.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=zS("svg");Wg(null,this._oldVNode),o.appendChild(r),e.appendChild(o)}this.resize(i.width,i.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",ZV(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return qS(e,zg(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),i=this._width,o=this._height,r=zg(this._id);r.animation=e.animation,r.willUpdate=e.willUpdate,r.compress=e.compress,r.emphasis=e.emphasis;var a=[],s=this._bgVNode=qV(i,o,this._backgroundColor,r);s&&a.push(s);var l=e.compress?null:this._mainVNode=oe("g","main",{},[]);this._paintList(t,r,l?l.children:a),l&&a.push(l);var u=G(mt(r.defs),function(p){return r.defs[p]});if(u.length&&a.push(oe("defs","defs",{},u)),e.animation){var h=CV(r.cssNodes,r.cssAnims,{newline:!0});if(h){var c=oe("style","stl",{},[],h);a.push(c)}}return ES(i,o,a,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},Rg(this.renderToVNode({animation:at(e.cssAnimation,!0),emphasis:at(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:at(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,i){for(var o=e.length,r=[],a=0,s,l,u=0,h=0;h=0&&!(p&&l&&p[g]===l[g]);g--);for(var y=f-1;y>g;y--)a--,s=r[a-1];for(var v=g+1;v=s)}}for(var c=this.__startIndex;c15)break}}L.prevElClipPaths&&v.restore()};if(m)if(m.length===0)M=y.__endIndex;else for(var C=d.dpr,A=0;A0&&e>o[0]){for(l=0;le);l++);s=i[o[l]]}if(o.splice(l+1,0,e),i[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(t.dom,u.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||(t.painter=this)}},n.prototype.eachLayer=function(e,t){for(var i=this._zlevelList,o=0;o0?ec:0),this._needsManuallyCompositing),h.__builtin__||Zl("ZLevel "+u+" has been used by unkown layer "+h.id),h!==r&&(h.__used=!0,h.__startIndex!==l&&(h.__dirty=!0),h.__startIndex=l,h.incremental?h.__drawIndex=-1:h.__drawIndex=l,t(l),r=h),o.__dirty&Ge&&!o.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(c,p){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,T(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var i=this._layerConfig;i[e]?st(i[e],t,!0):i[e]=t;for(var o=0;o-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(zt);const aB=rB;function xa(n,e){var t=n.mapDimensionsAll("defaultedLabel"),i=t.length;if(i===1){var o=ra(n,e,t[0]);return o!=null?o+"":null}else if(i){for(var r=[],a=0;a=0&&i.push(e[r])}return i.join(" ")}var sB=function(n){N(e,n);function e(t,i,o,r){var a=n.call(this)||this;return a.updateData(t,i,o,r),a}return e.prototype._createSymbol=function(t,i,o,r,a){this.removeAll();var s=Ut(t,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),s.drift=lB,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ui(this.childAt(0))},e.prototype.downplay=function(){hi(this.childAt(0))},e.prototype.setZ=function(t,i){var o=this.childAt(0);o.zlevel=t,o.z=i},e.prototype.setDraggable=function(t,i){var o=this.childAt(0);o.draggable=t,o.cursor=!i&&t?"move":o.cursor},e.prototype.updateData=function(t,i,o,r){this.silent=!1;var a=t.getItemVisual(i,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,i),u=a!==this._symbolType,h=r&&r.disableAnimation;if(u){var c=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(a,t,i,l,c)}else{var p=this.childAt(0);p.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};h?p.attr(d):Ct(p,d,s,i),Mn(p)}if(this._updateCommon(t,i,l,o,r),u){var p=this.childAt(0);if(!h){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,Vt(p,d,s,i)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,i,o,r,a){var s=this.childAt(0),l=t.hostModel,u,h,c,p,d,f,g,y,v;if(r&&(u=r.emphasisItemStyle,h=r.blurItemStyle,c=r.selectItemStyle,p=r.focus,d=r.blurScope,g=r.labelStatesModels,y=r.hoverScale,v=r.cursorStyle,f=r.emphasisDisabled),!r||t.hasItemOption){var m=r&&r.itemModel?r.itemModel:t.getItemModel(i),x=m.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),h=m.getModel(["blur","itemStyle"]).getItemStyle(),p=x.get("focus"),d=x.get("blurScope"),f=x.get("disabled"),g=ne(m),y=x.getShallow("scale"),v=m.getShallow("cursor")}var _=t.getItemVisual(i,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var w=jo(t.getItemVisual(i,"symbolOffset"),o);w&&(s.x=w[0],s.y=w[1]),v&&s.attr("cursor",v);var b=t.getItemVisual(i,"style"),S=b.fill;if(s instanceof se){var M=s.style;s.useStyle(V({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},b))}else s.__isEmptyBrush?s.useStyle(V({},b)):s.useStyle(b),s.style.decal=null,s.setColor(S,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var I=t.getItemVisual(i,"liftZ"),C=this._z2;I!=null?C==null&&(this._z2=s.z2,s.z2+=I):C!=null&&(s.z2=C,this._z2=null);var A=a&&a.useNameLabel;he(s,g,{labelFetcher:l,labelDataIndex:i,defaultText:D,inheritColor:S,defaultOpacity:b.opacity});function D(P){return A?t.getName(P):xa(t,P)}this._sizeX=o[0]/2,this._sizeY=o[1]/2;var k=s.ensureState("emphasis");k.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=h;var L=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;k.scaleX=this._sizeX*L,k.scaleY=this._sizeY*L,this.setSymbolScale(1),Ht(this,p,d,f)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,i,o){var r=this.childAt(0),a=ot(this).dataIndex,s=o&&o.animation;if(this.silent=r.silent=!0,o&&o.fadeLabel){var l=r.getTextContent();l&&Ei(l,{style:{opacity:0}},i,{dataIndex:a,removeOpt:s,cb:function(){r.removeTextContent()}})}else r.removeTextContent();Ei(r,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:a,cb:t,removeOpt:s})},e.getSymbolSize=function(t,i){return ha(t.getItemVisual(i,"symbolSize"))},e}(it);function lB(n,e){this.parent.drift(n,e)}const ul=sB;function Yg(n,e,t,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(t))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function uM(n){return n!=null&&!tt(n)&&(n={isIgnore:n}),n||{}}function hM(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:ne(e),cursorStyle:e.get("cursor")}}var uB=function(){function n(e){this.group=new it,this._SymbolCtor=e||ul}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=uM(t);var i=this.group,o=e.hostModel,r=this._data,a=this._SymbolCtor,s=t.disableAnimation,l=hM(e),u={disableAnimation:s},h=t.getSymbolPoint||function(c){return e.getItemLayout(c)};r||i.removeAll(),e.diff(r).add(function(c){var p=h(c);if(Yg(e,p,c,t)){var d=new a(e,c,l,u);d.setPosition(p),e.setItemGraphicEl(c,d),i.add(d)}}).update(function(c,p){var d=r.getItemGraphicEl(p),f=h(c);if(!Yg(e,f,c,t)){i.remove(d);return}var g=e.getItemVisual(c,"symbol")||"circle",y=d&&d.getSymbolType&&d.getSymbolType();if(!d||y&&y!==g)i.remove(d),d=new a(e,c,l,u),d.setPosition(f);else{d.updateData(e,c,l,u);var v={x:f[0],y:f[1]};s?d.attr(v):Ct(d,v,o)}i.add(d),e.setItemGraphicEl(c,d)}).remove(function(c){var p=r.getItemGraphicEl(c);p&&p.fadeOut(function(){i.remove(p)},o)}).execute(),this._getSymbolPoint=h,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(i,o){var r=e._getSymbolPoint(o);i.setPosition(r),i.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=hM(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,i){this._progressiveEls=[],i=uM(i);function o(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var r=e.start;r0?t=i[0]:i[1]<0&&(t=i[1]),t}function pM(n,e,t,i){var o=NaN;n.stacked&&(o=t.get(t.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=n.valueStart);var r=n.baseDataOffset,a=[];return a[r]=t.get(n.baseDim,i),a[1-r]=o,e.dataToPoint(a)}function cB(n,e){var t=[];return e.diff(n).add(function(i){t.push({cmd:"+",idx:i})}).update(function(i,o){t.push({cmd:"=",idx:o,idx1:i})}).remove(function(i){t.push({cmd:"-",idx:i})}).execute(),t}function pB(n,e,t,i,o,r,a,s){for(var l=cB(n,e),u=[],h=[],c=[],p=[],d=[],f=[],g=[],y=cM(o,e,a),v=n.getLayout("points")||[],m=e.getLayout("points")||[],x=0;x=o||g<0)break;if(ar(v,m)){if(l){g+=r;continue}break}if(g===t)n[r>0?"moveTo":"lineTo"](v,m),c=v,p=m;else{var x=v-u,_=m-h;if(x*x+_*_<.5){g+=r;continue}if(a>0){for(var w=g+r,b=e[w*2],S=e[w*2+1];b===v&&S===m&&y=i||ar(b,S))d=v,f=m;else{C=b-u,A=S-h;var L=v-u,P=b-v,O=m-h,z=S-m,R=void 0,E=void 0;if(s==="x"){R=Math.abs(L),E=Math.abs(P);var F=C>0?1:-1;d=v-F*R*a,f=m,D=v+F*E*a,k=m}else if(s==="y"){R=Math.abs(O),E=Math.abs(z);var W=A>0?1:-1;d=v,f=m-W*R*a,D=v,k=m+W*E*a}else R=Math.sqrt(L*L+O*O),E=Math.sqrt(P*P+z*z),I=E/(E+R),d=v-C*a*(1-I),f=m-A*a*(1-I),D=v+C*a*I,k=m+A*a*I,D=qi(D,Ki(b,v)),k=qi(k,Ki(S,m)),D=Ki(D,qi(b,v)),k=Ki(k,qi(S,m)),C=D-v,A=k-m,d=v-C*R/E,f=m-A*R/E,d=qi(d,Ki(u,v)),f=qi(f,Ki(h,m)),d=Ki(d,qi(u,v)),f=Ki(f,qi(h,m)),C=v-d,A=m-f,D=v+C*E/R,k=m+A*E/R}n.bezierCurveTo(c,p,d,f,v,m),c=D,p=k}else n.lineTo(v,m)}u=v,h=m,g+=r}return y}var dM=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),dB=function(n){N(e,n);function e(t){var i=n.call(this,t)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new dM},e.prototype.buildPath=function(t,i){var o=i.points,r=0,a=o.length/2;if(i.connectNulls){for(;a>0&&ar(o[a*2-2],o[a*2-1]);a--);for(;r=0){var _=u?(f-l)*x+l:(d-s)*x+s;return u?[t,_]:[_,t]}s=d,l=f;break;case a.C:d=r[c++],f=r[c++],g=r[c++],y=r[c++],v=r[c++],m=r[c++];var w=u?lu(s,d,g,v,t,h):lu(l,f,y,m,t,h);if(w>0)for(var b=0;b=0){var _=u?te(l,f,y,m,S):te(s,d,g,v,S);return u?[t,_]:[_,t]}}s=v,l=m;break}}},e}(vt),fB=function(n){N(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(dM),fM=function(n){N(e,n);function e(t){var i=n.call(this,t)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new fB},e.prototype.buildPath=function(t,i){var o=i.points,r=i.stackedOnPoints,a=0,s=o.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&ar(o[s*2-2],o[s*2-1]);s--);for(;ae){r?t.push(a(r,l,e)):o&&t.push(a(o,l,0),a(o,l,e));break}else o&&(t.push(a(o,l,0)),o=null),t.push(l),r=l}return t}function vB(n,e,t){var i=n.getVisual("visualMeta");if(!(!i||!i.length||!n.count())&&e.type==="cartesian2d"){for(var o,r,a=i.length-1;a>=0;a--){var s=n.getDimensionInfo(i[a].dimension);if(o=s&&s.coordDim,o==="x"||o==="y"){r=i[a];break}}if(r){var l=e.getAxis(o),u=G(r.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),h=u.length,c=r.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var p=yB(u,o==="x"?t.getWidth():t.getHeight()),d=p.length;if(!d&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=10,g=p[0].coord-f,y=p[d-1].coord+f,v=y-g;if(v<.001)return"transparent";T(p,function(x){x.offset=(x.coord-g)/v}),p.push({offset:d?p[d-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:c[0]||"transparent"});var m=new Hr(0,0,0,0,p,!0);return m[o]=g,m[o+"2"]=y,m}}}function mB(n,e,t){var i=n.get("showAllSymbol"),o=i==="auto";if(!(i&&!o)){var r=t.getAxesByScale("ordinal")[0];if(r&&!(o&&xB(r,e))){var a=e.mapDimension(r.dim),s={};return T(r.getViewLabels(),function(l){var u=r.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(a,l))}}}}function xB(n,e){var t=n.getExtent(),i=Math.abs(t[1]-t[0])/n.scale.count();isNaN(i)&&(i=0);for(var o=e.count(),r=Math.max(1,Math.round(o/5)),a=0;ai)return!1;return!0}function _B(n,e){return isNaN(n)||isNaN(e)}function bB(n){for(var e=n.length/2;e>0&&_B(n[e*2-2],n[e*2-1]);e--);return e-1}function bM(n,e){return[n[e*2],n[e*2+1]]}function wB(n,e,t){for(var i=n.length/2,o=t==="x"?0:1,r,a,s=0,l=-1,u=0;u=e||r>=e&&a<=e){l=u;break}s=u,r=a}return{range:[s,l],t:(e-r)/(a-r)}}function wM(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var F=g.getState("emphasis").style;F.lineWidth=+g.style.lineWidth+1}ot(g).seriesIndex=t.seriesIndex,Ht(g,z,R,E);var W=_M(t.get("smooth")),X=t.get("smoothMonotone");if(g.setShape({smooth:W,smoothMonotone:X,connectNulls:M}),y){var $=l.getCalculationInfo("stackedOnSeries"),J=0;y.useStyle(Q(h.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),$&&(J=_M($.get("smooth"))),y.setShape({smooth:W,stackedOnSmooth:J,smoothMonotone:X,connectNulls:M}),ue(y,t,"areaStyle"),ot(y).seriesIndex=t.seriesIndex,Ht(y,z,R,E)}var ft=function(xt){r._changePolyState(xt)};l.eachItemGraphicEl(function(xt){xt&&(xt.onHoverStateChange=ft)}),this._polyline.onHoverStateChange=ft,this._data=l,this._coordSys=a,this._stackedOnPoints=b,this._points=c,this._step=A,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,g),y&&this.packEventData(t,y))},e.prototype.packEventData=function(t,i){ot(i).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,i,o,r){var a=t.getData(),s=bo(a,r);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),u=a.getItemGraphicEl(s);if(!u){var h=l[s*2],c=l[s*2+1];if(isNaN(h)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,c))return;var p=t.get("zlevel")||0,d=t.get("z")||0;u=new ul(a,s),u.x=h,u.y=c,u.setZ(p,d);var f=u.getSymbolPath().getTextContent();f&&(f.zlevel=p,f.z=d,f.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ot.prototype.highlight.call(this,t,i,o,r)},e.prototype.downplay=function(t,i,o,r){var a=t.getData(),s=bo(a,r);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Ot.prototype.downplay.call(this,t,i,o,r)},e.prototype._changePolyState=function(t){var i=this._polygon;Bu(this._polyline,t),i&&Bu(i,t)},e.prototype._newPolyline=function(t){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new dB({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(t,i){var o=this._polygon;return o&&this._lineGroup.remove(o),o=new fM({shape:{points:t,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(o),this._polygon=o,o},e.prototype._initSymbolLabelAnimation=function(t,i,o){var r,a,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(r=s.isHorizontal(),a=!1):i.type==="polar"&&(r=s.dim==="angle",a=!0);var u=t.hostModel,h=u.get("animationDuration");K(h)&&(h=h(null));var c=u.get("animationDelay")||0,p=K(c)?c(null):c;t.eachItemGraphicEl(function(d,f){var g=d;if(g){var y=[d.x,d.y],v=void 0,m=void 0,x=void 0;if(o)if(a){var _=o,w=i.pointToCoord(y);r?(v=_.startAngle,m=_.endAngle,x=-w[1]/180*Math.PI):(v=_.r0,m=_.r,x=w[0])}else{var b=o;r?(v=b.x,m=b.x+b.width,x=d.x):(v=b.y+b.height,m=b.y,x=d.y)}var S=m===v?0:(x-v)/(m-v);l&&(S=1-S);var M=K(c)?c(f):h*S+p,I=g.getSymbolPath(),C=I.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:M}),I.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,i,o){var r=t.getModel("endLabel");if(wM(t)){var a=t.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new St({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var h=bB(l);h>=0&&(he(s,ne(t,"endLabel"),{inheritColor:o,labelFetcher:t,labelDataIndex:h,defaultText:function(c,p,d){return d!=null?lM(a,d):xa(a,c)},enableTextSetter:!0},SB(r,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,i,o,r,a,s,l){var u=this._endLabel,h=this._polyline;if(u){t<1&&r.originalX==null&&(r.originalX=u.x,r.originalY=u.y);var c=o.getLayout("points"),p=o.hostModel,d=p.get("connectNulls"),f=s.get("precision"),g=s.get("distance")||0,y=l.getBaseAxis(),v=y.isHorizontal(),m=y.inverse,x=i.shape,_=m?v?x.x:x.y+x.height:v?x.x+x.width:x.y,w=(v?g:0)*(m?-1:1),b=(v?0:-g)*(m?-1:1),S=v?"x":"y",M=wB(c,_,S),I=M.range,C=I[1]-I[0],A=void 0;if(C>=1){if(C>1&&!d){var D=bM(c,I[0]);u.attr({x:D[0]+w,y:D[1]+b}),a&&(A=p.getRawValue(I[0]))}else{var D=h.getPointOn(_,S);D&&u.attr({x:D[0]+w,y:D[1]+b});var k=p.getRawValue(I[0]),L=p.getRawValue(I[1]);a&&(A=p1(o,f,k,L,M.t))}r.lastFrameIndex=I[0]}else{var P=t===1||r.lastFrameIndex>0?I[0]:0,D=bM(c,P);a&&(A=p.getRawValue(P)),u.attr({x:D[0]+w,y:D[1]+b})}if(a){var O=qr(u);typeof O.setLabelText=="function"&&O.setLabelText(A)}}},e.prototype._doUpdateAnimation=function(t,i,o,r,a,s,l){var u=this._polyline,h=this._polygon,c=t.hostModel,p=pB(this._data,t,this._stackedOnPoints,i,this._coordSys,o,this._valueOrigin),d=p.current,f=p.stackedOnCurrent,g=p.next,y=p.stackedOnNext;if(a&&(d=$i(p.current,o,a,l),f=$i(p.stackedOnCurrent,o,a,l),g=$i(p.next,o,a,l),y=$i(p.stackedOnNext,o,a,l)),xM(d,g)>3e3||h&&xM(f,y)>3e3){u.stopAnimation(),u.setShape({points:g}),h&&(h.stopAnimation(),h.setShape({points:g,stackedOnPoints:y}));return}u.shape.__points=p.current,u.shape.points=d;var v={shape:{points:g}};p.current!==d&&(v.shape.__points=p.next),u.stopAnimation(),Ct(u,v,c),h&&(h.setShape({points:d,stackedOnPoints:f}),h.stopAnimation(),Ct(h,{shape:{stackedOnPoints:y}},c),u.shape.points!==h.shape.points&&(h.shape.points=u.shape.points));for(var m=[],x=p.status,_=0;_e&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;te&&(e=r,t=o)}return isFinite(t)?t:NaN},nearest:function(n){return n[0]}},CB=function(n){return Math.round(n.length/2)};function SM(n){return{seriesType:n,reset:function(e,t,i){var o=e.getData(),r=e.get("sampling"),a=e.coordinateSystem,s=o.count();if(s>10&&a.type==="cartesian2d"&&r){var l=a.getBaseAxis(),u=a.getOtherAxis(l),h=l.getExtent(),c=i.getDevicePixelRatio(),p=Math.abs(h[1]-h[0])*(c||1),d=Math.round(s/p);if(isFinite(d)&&d>1){r==="lttb"&&e.setData(o.lttbDownSample(o.mapDimension(u.dim),1/d));var f=void 0;Y(r)?f=TB[r]:K(r)&&(f=r),f&&e.setData(o.downSample(o.mapDimension(u.dim),1/d,f,CB))}}}}}function AB(n){n.registerChartView(IB),n.registerSeriesModel(aB),n.registerLayout(pl("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",i)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,SM("line"))}var MM=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return Xn(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,i,o){var r=this.coordinateSystem;if(r&&r.clampData){var a=r.clampData(t),s=r.dataToPoint(a);if(o)T(r.getAxes(),function(p,d){if(p.type==="category"&&i!=null){var f=p.getTicksCoords(),g=p.getTickModel().get("alignWithLabel"),y=a[d],v=i[d]==="x1"||i[d]==="y1";if(v&&!g&&(y+=1),f.length<2)return;if(f.length===2){s[d]=p.toGlobalCoord(p.getExtent()[v?1:0]);return}for(var m=void 0,x=void 0,_=1,w=0;wy){x=(b+m)/2;break}w===1&&(_=S-f[0].tickValue)}x==null&&(m?m&&(x=f[f.length-1].coord):x=f[0].coord),s[d]=p.toGlobalCoord(x)}});else{var l=this.getData(),u=l.getLayout("offset"),h=l.getLayout("size"),c=r.getBaseAxis().isHorizontal()?0:1;s[c]+=u+h/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(zt);zt.registerClass(MM);const nc=MM;var DB=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Xn(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>t&&(t=i),t},e.prototype.brushSelector=function(t,i,o){return o.rect(i.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Gi(nc.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(nc);const kB=DB;var LB=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),PB=function(n){N(e,n);function e(t){var i=n.call(this,t)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new LB},e.prototype.buildPath=function(t,i){var o=i.cx,r=i.cy,a=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-a)*.5,u=a+l,h=i.startAngle,c=i.endAngle,p=i.clockwise,d=Math.PI*2,f=p?c-hMath.PI/2&&hs)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(t,i){for(var o=i.scale,r=o.getExtent(),a=Math.max(0,r[0]),s=Math.min(r[1],o.getOrdinalMeta().categories.length-1);a<=s;++a)if(t.ordinalNumbers[a]!==o.getRawOrdinalNumber(a))return!0},e.prototype._updateSortWithinSameData=function(t,i,o,r){if(this._isOrderChangedWithinSameData(t,i,o)){var a=this._dataSort(t,o,i);this._isOrderDifferentInView(a,o)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",axisId:o.index,sortInfo:a}))}},e.prototype._dispatchInitSort=function(t,i,o){var r=i.baseAxis,a=this._dataSort(t,r,function(s){return t.get(t.mapDimension(i.otherAxis.dim),s)});o.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:a})},e.prototype.remove=function(t,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(t,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var i=this.group,o=this._data;t&&t.isAnimationEnabled()&&o&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],o.eachItemGraphicEl(function(r){As(r,t,ot(r).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Ot),IM={cartesian2d:function(n,e){var t=e.width<0?-1:1,i=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var o=n.x+n.width,r=n.y+n.height,a=Ug(e.x,n.x),s=jg(e.x+e.width,o),l=Ug(e.y,n.y),u=jg(e.y+e.height,r),h=so?s:a,e.y=c&&l>r?u:l,e.width=h?0:s-a,e.height=c?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}var o=jg(e.r,n.r),r=Ug(e.r0,n.r0);e.r=o,e.r0=r;var a=o-r<0;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}return a}},TM={cartesian2d:function(n,e,t,i,o,r,a,s,l){var u=new wt({shape:V({},i),z2:1});if(u.__dataIndex=t,u.name="item",r){var h=u.shape,c=o?"height":"width";h[c]=0}return u},polar:function(n,e,t,i,o,r,a,s,l){var u=!o&&l?ic:Te,h=new u({shape:i,z2:1});h.name="item";var c=kM(o);if(h.calculateTextPosition=OB(c,{isRoundCap:u===ic}),r){var p=h.shape,d=o?"r":"endAngle",f={};p[d]=o?i.r0:i.startAngle,f[d]=i[d],(s?Ct:Vt)(h,{shape:f},r)}return h}};function EB(n,e){var t=n.get("realtimeSort",!0),i=e.getBaseAxis();if(t&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function CM(n,e,t,i,o,r,a,s){var l,u;r?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Ct:Vt)(t,{shape:l},e,o,null);var h=e?n.baseAxis.model:null;(a?Ct:Vt)(t,{shape:u},h,o)}function AM(n,e){for(var t=0;t0?1:-1,a=i.height>0?1:-1;return{x:i.x+r*o/2,y:i.y+a*o/2,width:i.width-r*o,height:i.height-a*o}},polar:function(n,e,t){var i=n.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function GB(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function kM(n){return function(e){var t=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+t;default:return i}}}(n)}function LM(n,e,t,i,o,r,a,s){var l=e.getItemVisual(t,"style");if(s){if(!r.get("roundCap")){var u=n.shape,h=lr(i.getModel("itemStyle"),u,!0);V(u,h),n.setShape(u)}}else{var c=i.get(["itemStyle","borderRadius"])||0;n.setShape("r",c)}n.useStyle(l);var p=i.getShallow("cursor");p&&n.attr("cursor",p);var d=s?a?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":a?o.height>=0?"bottom":"top":o.width>=0?"right":"left",f=ne(i);he(n,f,{labelFetcher:r,labelDataIndex:t,defaultText:xa(r.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var g=n.getTextContent();if(s&&g){var y=i.get(["label","position"]);n.textConfig.inside=y==="middle"?!0:null,NB(n,y==="outside"?d:y,kM(a),i.get(["label","rotate"]))}Ux(g,f,r.getRawValue(t),function(m){return lM(e,m)});var v=i.getModel(["emphasis"]);Ht(n,v.get("focus"),v.get("blurScope"),v.get("disabled")),ue(n,i),GB(o)&&(n.style.fill="none",n.style.stroke="none",T(n.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function FB(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var i=n.get(["itemStyle","borderWidth"])||0,o=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,o,r)}var WB=function(){function n(){}return n}(),PM=function(n){N(e,n);function e(t){var i=n.call(this,t)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new WB},e.prototype.buildPath=function(t,i){for(var o=i.points,r=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,h=0;h=0?t:null},30,!1);function HB(n,e,t){for(var i=n.baseDimIdx,o=1-i,r=n.shape.points,a=n.largeDataIndices,s=[],l=[],u=n.barWidth,h=0,c=r.length/3;h=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return a[h]}return-1}function RM(n,e,t){if(sr(t,"cartesian2d")){var i=e,o=t.getArea();return{x:n?i.x:o.x,y:n?o.y:i.y,width:n?i.width:o.width,height:n?o.height:i.height}}else{var o=t.getArea(),r=e;return{cx:o.cx,cy:o.cy,r0:n?o.r0:r.r0,r:n?o.r:r.r,startAngle:n?r.startAngle:0,endAngle:n?r.endAngle:Math.PI*2}}}function YB(n,e,t){var i=n.type==="polar"?Te:wt;return new i({shape:RM(e,t,n),silent:!0,z2:0})}const XB=zB;function ZB(n){n.registerChartView(XB),n.registerSeriesModel(kB),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,rt(qw,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Kw("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,SM("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(o){e.sortInfo&&o.axis.setCategorySortInfo(e.sortInfo)})})}var zM=Math.PI*2,sc=Math.PI/180;function EM(n,e){return Kt(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function VM(n,e){var t=EM(n,e),i=n.get("center"),o=n.get("radius");B(o)||(o=[0,o]);var r=H(t.width,e.getWidth()),a=H(t.height,e.getHeight()),s=Math.min(r,a),l=H(o[0],s/2),u=H(o[1],s/2),h,c,p=n.coordinateSystem;if(p){var d=p.dataToPoint(i);h=d[0]||0,c=d[1]||0}else B(i)||(i=[i,i]),h=H(i[0],r)+t.x,c=H(i[1],a)+t.y;return{cx:h,cy:c,r0:l,r:u}}function UB(n,e,t){e.eachSeriesByType(n,function(i){var o=i.getData(),r=o.mapDimension("value"),a=EM(i,t),s=VM(i,t),l=s.cx,u=s.cy,h=s.r,c=s.r0,p=-i.get("startAngle")*sc,d=i.get("endAngle"),f=i.get("padAngle")*sc;d=d==="auto"?p-zM:-d*sc;var g=i.get("minAngle")*sc,y=g+f,v=0;o.each(r,function(z){!isNaN(z)&&v++});var m=o.getSum(r),x=Math.PI/(m||v)*2,_=i.get("clockwise"),w=i.get("roseType"),b=i.get("stillShowZeroSum"),S=o.getDataExtent(r);S[0]=0;var M=_?1:-1,I=[p,d],C=M*f/2;Td(I,!_),p=I[0],d=I[1];var A=BM(i);A.startAngle=p,A.endAngle=d,A.clockwise=_;var D=Math.abs(d-p),k=D,L=0,P=p;if(o.setLayout({viewRect:a,r:h}),o.each(r,function(z,R){var E;if(isNaN(z)){o.setItemLayout(R,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:l,cy:u,r0:c,r:w?NaN:h});return}w!=="area"?E=m===0&&b?x:z*x:E=D/v,EE?(W=P+M*E/2,X=W):(W=P+C,X=F-C),o.setItemLayout(R,{angle:E,startAngle:W,endAngle:X,clockwise:_,cx:l,cy:u,r0:c,r:w?kt(z,S,[c,h]):h}),P=F}),kt?v:y,w=Math.abs(x.label.y-t);if(w>=_.maxY){var b=x.label.x-e-x.len2*o,S=i+x.len,M=Math.abs(b)n.unconstrainedWidth?null:d:null;i.setStyle("width",f)}var g=i.getBoundingRect();r.width=g.width;var y=(i.style.margin||0)+2.1;r.height=g.height+y,r.y-=(r.height-c)/2}}}function qg(n){return n.position==="center"}function KB(n){var e=n.getData(),t=[],i,o,r=!1,a=(n.get("minShowLabelAngle")||0)*jB,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,h=s.x,c=s.y,p=s.height;function d(b){b.ignore=!0}function f(b){if(!b.ignore)return!0;for(var S in b.states)if(b.states[S].ignore===!1)return!0;return!1}e.each(function(b){var S=e.getItemGraphicEl(b),M=S.shape,I=S.getTextContent(),C=S.getTextGuideLine(),A=e.getItemModel(b),D=A.getModel("label"),k=D.get("position")||A.get(["emphasis","label","position"]),L=D.get("distanceToLabelLine"),P=D.get("alignTo"),O=H(D.get("edgeDistance"),u),z=D.get("bleedMargin"),R=A.getModel("labelLine"),E=R.get("length");E=H(E,u);var F=R.get("length2");if(F=H(F,u),Math.abs(M.endAngle-M.startAngle)0?"right":"left":X>0?"left":"right"}var Yt=Math.PI,Ft=0,de=D.get("rotate");if(Tt(de))Ft=de*(Yt/180);else if(k==="center")Ft=0;else if(de==="radial"||de===!0){var Jn=X<0?-W+Yt:-W;Ft=Jn}else if(de==="tangential"&&k!=="outside"&&k!=="outer"){var Oe=Math.atan2(X,$);Oe<0&&(Oe=Yt*2+Oe);var Hl=$>0;Hl&&(Oe=Yt+Oe),Ft=Oe-Yt}if(r=!!Ft,I.x=J,I.y=ft,I.rotation=Ft,I.setStyle({verticalAlign:"middle"}),nt){I.setStyle({align:gt});var Sr=I.states.select;Sr&&(Sr.x+=I.x,Sr.y+=I.y)}else{var Va=I.getBoundingRect().clone();Va.applyTransform(I.getComputedTransform());var Nm=(I.style.margin||0)+2.1;Va.y-=Nm/2,Va.height+=Nm,t.push({label:I,labelLine:C,position:k,len:E,len2:F,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new ht(X,$),linePoints:xt,textAlign:gt,labelDistance:L,labelAlignTo:P,edgeDistance:O,bleedMargin:z,rect:Va,unconstrainedWidth:Va.width,labelStyleWidth:I.style.width})}S.setTextConfig({inside:nt})}}),!r&&n.get("avoidLabelOverlap")&&qB(t,i,o,l,u,p,h,c);for(var g=0;g0){for(var h=a.getItemLayout(0),c=1;isNaN(h&&h.startAngle)&&c=r.r0}},e.type="pie",e}(Ot);const JB=QB;function _a(n,e,t){e=B(e)&&{coordDimensions:e}||V({encodeDefine:n.getEncode()},e);var i=n.getSource(),o=fa(i,e).dimensions,r=new be(o,n);return r.initData(i,t),r}var t3=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,t)},n}();const fl=t3;var e3=bt(),n3=function(n){N(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new fl(Z(this.getData,this),Z(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return _a(this,{coordDimensions:["value"],encodeDefaulter:rt(yf,this)})},e.prototype.getDataParams=function(t){var i=this.getData(),o=e3(i),r=o.seats;if(!r){var a=[];i.each(i.mapDimension("value"),function(l){a.push(l)}),r=o.seats=t1(a,i.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=r[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){_o(t,"labelLine",["show"]);var i=t.labelLine,o=t.emphasis.labelLine;i.show=i.show&&t.label.show,o.show=o.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(zt);const i3=n3;function o3(n){return{seriesType:n,reset:function(e,t){var i=e.getData();i.filterSelf(function(o){var r=i.mapDimension("value"),a=i.get(r,o);return!(Tt(a)&&!isNaN(a)&&a<0)})}}}function r3(n){n.registerChartView(JB),n.registerSeriesModel(i3),Vb("pie",n.registerAction),n.registerLayout(rt(UB,"pie")),n.registerProcessor(dl("pie")),n.registerProcessor(o3("pie"))}var a3=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return Xn(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,i,o){return o.point(i.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(zt);const s3=a3;var WM=4,l3=function(){function n(){}return n}(),u3=function(n){N(e,n);function e(t){var i=n.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new l3},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,i){var o=i.points,r=i.size,a=this.symbolProxy,s=a.shape,l=t.getContext?t.getContext():t,u=l&&r[0]=0;u--){var h=u*2,c=r[h]-s/2,p=r[h+1]-l/2;if(t>=c&&i>=p&&t<=c+s&&i<=p+l)return u}return-1},e.prototype.contain=function(t,i){var o=this.transformCoordToLocal(t,i),r=this.getBoundingRect();if(t=o[0],i=o[1],r.contain(t,i)){var a=this.hoverDataIdx=this.findDataIndex(t,i);return a>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,o=i.points,r=i.size,a=r[0],s=r[1],l=1/0,u=1/0,h=-1/0,c=-1/0,p=0;p=0&&(u.dataIndex=c+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const c3=h3;var p3=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=t.getData(),a=this._updateSymbolDraw(r,t);a.updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,o){var r=t.getData(),a=this._updateSymbolDraw(r,t);a.incrementalPrepareUpdate(r),this._finished=!1},e.prototype.incrementalRender=function(t,i,o){this._symbolDraw.incrementalUpdate(t,i.getData(),{clipShape:this._getClipShape(i)}),this._finished=t.end===i.getData().count()},e.prototype.updateTransform=function(t,i,o){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var a=pl("").reset(t,i,o);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var i=t.coordinateSystem;return i&&i.getArea&&i.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,i){var o=this._symbolDraw,r=i.pipelineContext,a=r.large;return(!o||a!==this._isLargeDraw)&&(o&&o.remove(),o=this._symbolDraw=a?new c3:new hl,this._isLargeDraw=a,this.group.removeAll()),this.group.add(o.group),o},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Ot);const d3=p3;var f3=function(n){N(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(_t);const g3=f3;var Kg=function(n){N(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",qt).models[0]},e.type="cartesian2dAxis",e}(_t);Xt(Kg,va);var HM={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},y3=st({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},HM),$g=st({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},HM),v3=st({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},$g),m3=Q({logBase:10},$g);const YM={category:y3,value:$g,time:v3,log:m3};var x3={value:1,category:1,time:1,log:1};function ba(n,e,t,i){T(x3,function(o,r){var a=st(st({},YM[r],!0),i,!0),s=function(l){N(u,l);function u(){var h=l!==null&&l.apply(this,arguments)||this;return h.type=e+"Axis."+r,h}return u.prototype.mergeDefaultAndTheme=function(h,c){var p=zs(this),d=p?ta(h):{},f=c.getTheme();st(h,f.get(r+"Axis")),st(h,this.getDefaultOption()),h.type=XM(h),p&&Fi(h,d,p)},u.prototype.optionUpdated=function(){var h=this.option;h.type==="category"&&(this.__ordinalMeta=fg.createByAxisModel(this))},u.prototype.getCategories=function(h){var c=this.option;if(c.type==="category")return h?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+r,u.defaultOption=a,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",XM)}function XM(n){return n.type||(n.data?"category":"value")}var _3=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return G(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Dt(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const b3=_3;var Qg=["x","y"];function ZM(n){return n.type==="interval"||n.type==="time"}var w3=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Qg,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!ZM(t)||!ZM(i))){var o=t.getExtent(),r=i.getExtent(),a=this.dataToPoint([o[0],r[0]]),s=this.dataToPoint([o[1],r[1]]),l=o[1]-o[0],u=r[1]-r[0];if(!(!l||!u)){var h=(s[0]-a[0])/l,c=(s[1]-a[1])/u,p=a[0]-o[0]*h,d=a[1]-r[0]*c,f=this._transform=[h,0,0,c,p,d];this._invTransform=ho([],f)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var i=this.getAxis("x"),o=this.getAxis("y");return i.contain(i.toLocalCoord(t[0]))&&o.contain(o.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,i){var o=this.dataToPoint(t),r=this.dataToPoint(i),a=this.getArea(),s=new ct(o[0],o[1],r[0]-o[0],r[1]-o[1]);return a.intersect(s)},e.prototype.dataToPoint=function(t,i,o){o=o||[];var r=t[0],a=t[1];if(this._transform&&r!=null&&isFinite(r)&&a!=null&&isFinite(a))return re(o,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return o[0]=s.toGlobalCoord(s.dataToCoord(r,i)),o[1]=l.toGlobalCoord(l.dataToCoord(a,i)),o},e.prototype.clampData=function(t,i){var o=this.getAxis("x").scale,r=this.getAxis("y").scale,a=o.getExtent(),s=r.getExtent(),l=o.parse(t[0]),u=r.parse(t[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(t,i){var o=[];if(this._invTransform)return re(o,t,this._invTransform);var r=this.getAxis("x"),a=this.getAxis("y");return o[0]=r.coordToData(r.toLocalCoord(t[0]),i),o[1]=a.coordToData(a.toLocalCoord(t[1]),i),o},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var i=this.getAxis("x").getGlobalExtent(),o=this.getAxis("y").getGlobalExtent(),r=Math.min(i[0],i[1])-t,a=Math.min(o[0],o[1])-t,s=Math.max(i[0],i[1])-r+t,l=Math.max(o[0],o[1])-a+t;return new ct(r,a,s,l)},e}(b3),S3=function(n){N(e,n);function e(t,i,o,r,a){var s=n.call(this,t,i,o)||this;return s.index=0,s.type=r||"value",s.position=a||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),t&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(t,i){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(ln);const M3=S3;function Jg(n,e,t){t=t||{};var i=n.coordinateSystem,o=e.axis,r={},a=o.getAxesOnZeroOf()[0],s=o.position,l=a?"onZero":s,u=o.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,f=u==="x"?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}r.position=[u==="y"?f[p[l]]:c[0],u==="x"?f[p[l]]:c[3]],r.rotation=Math.PI/2*(u==="x"?0:1);var y={top:-1,bottom:1,left:-1,right:1};r.labelDirection=r.tickDirection=r.nameDirection=y[s],r.labelOffset=a?f[p[s]]-f[p.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),Jt(t.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var v=e.get(["axisLabel","rotate"]);return r.labelRotate=l==="top"?-v:v,r.z2=1,r}function UM(n){return n.get("coordinateSystem")==="cartesian2d"}function jM(n){var e={xAxisModel:null,yAxisModel:null};return T(e,function(t,i){var o=i.replace(/Model$/,""),r=n.getReferringComponents(o,qt).models[0];e[i]=r}),e}var ty=Math.log;function qM(n,e,t){var i=ji.prototype,o=i.getTicks.call(t),r=i.getTicks.call(t,!0),a=o.length-1,s=i.getInterval.call(t),l=rS(n,e),u=l.extent,h=l.fixMin,c=l.fixMax;if(n.type==="log"){var p=ty(n.base);u=[ty(u[0])/p,ty(u[1])/p]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var d=i.getExtent.call(n);h&&(u[0]=d[0]),c&&(u[1]=d[1]);var f=i.getInterval.call(n),g=u[0],y=u[1];if(h&&c)f=(y-g)/a;else if(h)for(y=u[0]+f*a;yu[0]&&isFinite(g)&&isFinite(u[0]);)f=yg(f),g=u[1]-f*a;else{var v=n.getTicks().length-1;v>a&&(f=yg(f));var m=f*a;y=Math.ceil(u[1]/f)*f,g=Wt(y-m),g<0&&u[0]>=0?(g=0,y=Wt(m)):y>0&&u[1]<=0&&(y=0,g=-Wt(m))}var x=(o[0].value-r[0].value)/s,_=(o[a].value-r[a].value)/s;i.setExtent.call(n,g+f*x,y+f*_),i.setInterval.call(n,f),(x||_)&&i.setNiceExtent.call(n,g+f,y-f)}var I3=function(){function n(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Qg,this._initCartesian(e,t,i),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var i=this._axesMap;this._updateScale(e,this.model);function o(a){var s,l=mt(a),u=l.length;if(u){for(var h=[],c=u-1;c>=0;c--){var p=+l[c],d=a[p],f=d.model,g=d.scale;gg(g)&&f.get("alignTicks")&&f.get("interval")==null?h.push(d):(Jo(g,f),gg(g)&&(s=d))}h.length&&(s||(s=h.pop(),Jo(s.scale,s.model)),T(h,function(y){qM(y.scale,y.model,s.scale)}))}}o(i.x),o(i.y);var r={};T(i.x,function(a){KM(i,"y",a,r)}),T(i.y,function(a){KM(i,"x",a,r)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,i){var o=e.getBoxLayoutParams(),r=!i&&e.get("containLabel"),a=Kt(o,{width:t.getWidth(),height:t.getHeight()});this._rect=a;var s=this._axesList;l(),r&&(T(s,function(u){if(!u.model.get(["axisLabel","inside"])){var h=SE(u);if(h){var c=u.isHorizontal()?"height":"width",p=u.model.get(["axisLabel","margin"]);a[c]-=h[c]+p,u.position==="top"?a.y+=h.height+p:u.position==="left"&&(a.x+=h.width+p)}}}),l()),T(this._coordsList,function(u){u.calcAffineTransform()});function l(){T(s,function(u){var h=u.isHorizontal(),c=h?[0,a.width]:[0,a.height],p=u.inverse?1:0;u.setExtent(c[p],c[1-p]),T3(u,h?a.x:a.y)})}},n.prototype.getAxis=function(e,t){var i=this._axesMap[e];if(i!=null)return i[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var i="x"+e+"y"+t;return this._coordsMap[i]}tt(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var o=0,r=this._coordsList;o0?"top":"bottom",r="center"):zr(o-Qi)?(a=i>0?"bottom":"top",r="center"):(a="middle",o>0&&o0?"right":"left":r=i>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:a}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),QM={axisLine:function(n,e,t,i){var o=e.get(["axisLine","show"]);if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisLine")),!!o){var r=e.axis.getExtent(),a=i.transform,s=[r[0],0],l=[r[1],0],u=s[0]>l[0];a&&(re(s,s,a),re(l,l,a));var h=V({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new ee({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});Zr(c.shape,c.style.lineWidth),c.anid="line",t.add(c);var p=e.get(["axisLine","symbol"]);if(p!=null){var d=e.get(["axisLine","symbolSize"]);Y(p)&&(p=[p,p]),(Y(d)||Tt(d))&&(d=[d,d]);var f=jo(e.get(["axisLine","symbolOffset"])||0,d),g=d[0],y=d[1];T([{rotate:n.rotation+Math.PI/2,offset:f[0],r:0},{rotate:n.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(v,m){if(p[m]!=="none"&&p[m]!=null){var x=Ut(p[m],-g/2,-y/2,g,y,h.stroke,!0),_=v.r+v.offset,w=u?l:s;x.attr({rotation:v.rotate,x:w[0]+_*Math.cos(n.rotation),y:w[1]-_*Math.sin(n.rotation),silent:!0,z2:11}),t.add(x)}})}}},axisTickLabel:function(n,e,t,i){var o=k3(t,i,e,n),r=P3(t,i,e,n);if(D3(e,r,o),L3(t,i,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=TS(G(r,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));DS(a)}},axisName:function(n,e,t,i){var o=Jt(n.axisName,e.get("name"));if(o){var r=e.get("nameLocation"),a=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),h=u[0]>u[1]?-1:1,c=[r==="start"?u[0]-h*l:r==="end"?u[1]+h*l:(u[0]+u[1])/2,tI(r)?n.labelOffset+a*l:0],p,d=e.get("nameRotate");d!=null&&(d=d*Qi/180);var f;tI(r)?p=ur.innerTextLayout(n.rotation,d??n.rotation,a):(p=A3(n.rotation,r,d||0,u),f=n.axisNameAvailableWidth,f!=null&&(f=Math.abs(f/Math.sin(p.rotation)),!isFinite(f)&&(f=null)));var g=s.getFont(),y=e.get("nameTruncate",!0)||{},v=y.ellipsis,m=Jt(n.nameTruncateMaxWidth,y.maxWidth,f),x=new St({x:c[0],y:c[1],rotation:p.rotation,silent:ur.isLabelSilent(e),style:Rt(s,{text:o,font:g,overflow:"truncate",width:m,ellipsis:v,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||p.textAlign,verticalAlign:s.get("verticalAlign")||p.textVerticalAlign}),z2:1});if(jr({el:x,componentModel:e,itemName:o}),x.__fullText=o,x.anid="name",e.get("triggerEvent")){var _=ur.makeAxisEventDataBase(e);_.targetType="axisName",_.name=o,ot(x).eventData=_}i.add(x),x.updateTransform(),t.add(x),x.decomposeTransform()}}};function A3(n,e,t,i){var o=od(t-n),r,a,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return zr(o-Qi/2)?(a=l?"bottom":"top",r="center"):zr(o-Qi*1.5)?(a=l?"top":"bottom",r="center"):(a="middle",oQi/2?r=l?"left":"right":r=l?"right":"left"),{rotation:o,textAlign:r,textVerticalAlign:a}}function D3(n,e,t){if(!aS(n.axis)){var i=n.get(["axisLabel","showMinLabel"]),o=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var r=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],h=t[1],c=t[t.length-1],p=t[t.length-2];i===!1?(un(r),un(u)):JM(r,a)&&(i?(un(a),un(h)):(un(r),un(u))),o===!1?(un(s),un(c)):JM(l,s)&&(o?(un(l),un(p)):(un(s),un(c)))}}function un(n){n&&(n.ignore=!0)}function JM(n,e){var t=n&&n.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(!(!t||!i)){var o=Ua([]);return Ti(o,o,-n.rotation),t.applyTransform(On([],o,n.getLocalTransform())),i.applyTransform(On([],o,e.getLocalTransform())),t.intersect(i)}}function tI(n){return n==="middle"||n==="center"}function eI(n,e,t,i,o){for(var r=[],a=[],s=[],l=0;l=0||n===e}function V3(n){var e=iy(n);if(e){var t=e.axisPointerModel,i=e.axis.scale,o=t.option,r=t.get("status"),a=t.get("value");a!=null&&(a=i.parse(a));var s=oy(t);r==null&&(o.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),a0&&!f.min?f.min=0:f.min!=null&&f.min<0&&!f.max&&(f.max=0);var g=l;f.color!=null&&(g=Q({color:f.color},l));var y=st(et(f),{boundaryGap:t,splitNumber:i,scale:o,axisLine:r,axisTick:a,axisLabel:s,name:f.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:g,triggerEvent:p},!1);if(Y(h)){var v=y.name;y.name=h.replace("{value}",v??"")}else K(h)&&(y.name=h(y.name,y));var m=new Pt(y,null,this.ecModel);return Xt(m,va.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:st({lineStyle:{color:"#bbb"}},yl.axisLine),axisLabel:lc(yl.axisLabel,!1),axisTick:lc(yl.axisTick,!1),splitLine:lc(yl.splitLine,!0),splitArea:lc(yl.splitArea,!0),indicator:[]},e}(_t);const tG=J3;var eG=["axisLine","axisTickLabel","axisName"],nG=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=this.group;r.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var i=t.coordinateSystem,o=i.getIndicatorAxes(),r=G(o,function(a){var s=a.model.get("showName")?a.name:"",l=new yi(a.model,{axisName:s,position:[i.cx,i.cy],rotation:a.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});T(r,function(a){T(eG,a.add,a),this.group.add(a.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var i=t.coordinateSystem,o=i.getIndicatorAxes();if(!o.length)return;var r=t.get("shape"),a=t.getModel("splitLine"),s=t.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),h=a.get("show"),c=s.get("show"),p=l.get("color"),d=u.get("color"),f=B(p)?p:[p],g=B(d)?d:[d],y=[],v=[];function m(P,O,z){var R=z%O.length;return P[R]=P[R]||[],R}if(r==="circle")for(var x=o[0].getTicksCoords(),_=i.cx,w=i.cy,b=0;b3?1.4:a>1?1.2:1.1,h=r>0?u:1/u;sy(this,"zoom","zoomOnMouseWheel",t,{scale:h,originX:s,originY:l,isAvailableBehavior:null})}if(o){var c=Math.abs(r),p=(r>0?1:-1)*(c>3?.4:c>1?.15:.05);sy(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:p,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!pI(this._zr,"globalPan")){var i=t.pinchScale>1?1.1:.9090909090909091;sy(this,"zoom",null,t,{scale:i,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(qe);function sy(n,e,t,i,o){n.pointerChecker&&n.pointerChecker(i,o.originX,o.originY)&&(ii(i.event),dI(n,e,t,i,o))}function dI(n,e,t,i,o){o.isAvailableBehavior=Z(uc,null,t,i),n.trigger(e,o)}function uc(n,e,t){var i=t[n];return!n||i&&(!Y(i)||e.event[i+"Key"])}const vl=pG;function ly(n,e,t){var i=n.target;i.x+=e,i.y+=t,i.dirty()}function uy(n,e,t,i){var o=n.target,r=n.zoomLimit,a=n.zoom=n.zoom||1;if(a*=e,r){var s=r.min||0,l=r.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/n.zoom;n.zoom=a,o.x-=(t-o.x)*(u-1),o.y-=(i-o.y)*(u-1),o.scaleX*=u,o.scaleY*=u,o.dirty()}var dG={axisPointer:1,tooltip:1,brush:1};function hc(n,e,t){var i=e.getComponentByElement(n.topTarget),o=i&&i.coordinateSystem;return i&&i!==t&&!dG.hasOwnProperty(i.mainType)&&o&&o.model!==t}function fI(n){if(Y(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var hy,cc={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},gI=mt(cc),pc={"alignment-baseline":"textBaseline","stop-color":"stopColor"},yI=mt(pc),fG=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var i=fI(e);this._defsUsePending=[];var o=new it;this._root=o;var r=[],a=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||t.width),l=parseFloat(i.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Ze(i,o,null,!0,!1);for(var u=i.firstChild;u;)this._parseNode(u,o,r,null,!1,!1),u=u.nextSibling;vG(this._defs,this._defsUsePending),this._defsUsePending=[];var h,c;if(a){var p=dc(a);p.length>=4&&(h={x:parseFloat(p[0]||0),y:parseFloat(p[1]||0),width:parseFloat(p[2]),height:parseFloat(p[3])})}if(h&&s!=null&&l!=null&&(c=MI(h,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var d=o;o=new it,o.add(d),d.scaleX=d.scaleY=c.scale,d.x=c.x,d.y=c.y}return!t.ignoreRootClip&&s!=null&&l!=null&&o.setClipPath(new wt({shape:{x:0,y:0,width:s,height:l}})),{root:o,width:s,height:l,viewBoxRect:h,viewBoxTransform:c,named:r}},n.prototype._parseNode=function(e,t,i,o,r,a){var s=e.nodeName.toLowerCase(),l,u=o;if(s==="defs"&&(r=!0),s==="text"&&(a=!0),s==="defs"||s==="switch")l=t;else{if(!r){var h=hy[s];if(h&&U(hy,s)){l=h.call(this,e,t);var c=e.getAttribute("name");if(c){var p={name:c,namedFrom:null,svgNodeTagLower:s,el:l};i.push(p),s==="g"&&(u=p)}else o&&i.push({name:o.name,namedFrom:o,svgNodeTagLower:s,el:l});t.add(l)}}var d=vI[s];if(d&&U(vI,s)){var f=d.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=f)}}if(l&&l.isGroup)for(var y=e.firstChild;y;)y.nodeType===1?this._parseNode(y,l,i,u,r,a):y.nodeType===3&&a&&this._parseText(y,l),y=y.nextSibling},n.prototype._parseText=function(e,t){var i=new vs({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});hn(t,i),Ze(e,i,this._defsUsePending,!1,!1),gG(i,t);var o=i.style,r=o.fontSize;r&&r<9&&(o.fontSize=9,i.scaleX*=r/9,i.scaleY*=r/9);var a=(o.fontSize||o.fontFamily)&&[o.fontStyle,o.fontWeight,(o.fontSize||12)+"px",o.fontFamily||"sans-serif"].join(" ");o.font=a;var s=i.getBoundingRect();return this._textX+=s.width,t.add(i),i},n.internalField=function(){hy={g:function(e,t){var i=new it;return hn(t,i),Ze(e,i,this._defsUsePending,!1,!1),i},rect:function(e,t){var i=new wt;return hn(t,i),Ze(e,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(e,t){var i=new ci;return hn(t,i),Ze(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),i.silent=!0,i},line:function(e,t){var i=new ee;return hn(t,i),Ze(e,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(e,t){var i=new Wu;return hn(t,i),Ze(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(e,t){var i=e.getAttribute("points"),o;i&&(o=_I(i));var r=new Ce({shape:{points:o||[]},silent:!0});return hn(t,r),Ze(e,r,this._defsUsePending,!1,!1),r},polyline:function(e,t){var i=e.getAttribute("points"),o;i&&(o=_I(i));var r=new Ae({shape:{points:o||[]},silent:!0});return hn(t,r),Ze(e,r,this._defsUsePending,!1,!1),r},image:function(e,t){var i=new se;return hn(t,i),Ze(e,i,this._defsUsePending,!1,!1),i.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),i.silent=!0,i},text:function(e,t){var i=e.getAttribute("x")||"0",o=e.getAttribute("y")||"0",r=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(r),this._textY=parseFloat(o)+parseFloat(a);var s=new it;return hn(t,s),Ze(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var i=e.getAttribute("x"),o=e.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),o!=null&&(this._textY=parseFloat(o));var r=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0",s=new it;return hn(t,s),Ze(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(a),s},path:function(e,t){var i=e.getAttribute("d")||"",o=yx(i);return hn(t,o),Ze(e,o,this._defsUsePending,!1,!1),o.silent=!0,o}}}(),n}(),vI={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),i=parseInt(n.getAttribute("x2")||"10",10),o=parseInt(n.getAttribute("y2")||"0",10),r=new Hr(e,t,i,o);return mI(n,r),xI(n,r),r},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),i=parseInt(n.getAttribute("r")||"0",10),o=new Yd(e,t,i);return mI(n,o),xI(n,o),o}};function mI(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function xI(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var i=t.getAttribute("offset"),o=void 0;i&&i.indexOf("%")>0?o=parseInt(i,10)/100:i?o=parseFloat(i):o=0;var r={};SI(t,r,r);var a=r.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:o,color:a})}t=t.nextSibling}}function hn(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Q(e.__inheritedStyle,n.__inheritedStyle))}function _I(n){for(var e=dc(n),t=[],i=0;i0;r-=2){var a=i[r],s=i[r-1],l=dc(a);switch(o=o||Ne(),s){case"translate":vn(o,o,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":tu(o,o,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ti(o,o,-parseFloat(l[0])*cy,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*cy);On(o,[1,0,u,1,0,0],o);break;case"skewY":var h=Math.tan(parseFloat(l[0])*cy);On(o,[1,h,0,1,0,0],o);break;case"matrix":o[0]=parseFloat(l[0]),o[1]=parseFloat(l[1]),o[2]=parseFloat(l[2]),o[3]=parseFloat(l[3]),o[4]=parseFloat(l[4]),o[5]=parseFloat(l[5]);break}}e.setLocalTransform(o)}}var wI=/([^\s:;]+)\s*:\s*([^:;]+)/g;function SI(n,e,t){var i=n.getAttribute("style");if(i){wI.lastIndex=0;for(var o;(o=wI.exec(i))!=null;){var r=o[1],a=U(cc,r)?cc[r]:null;a&&(e[a]=o[2]);var s=U(pc,r)?pc[r]:null;s&&(t[s]=o[2])}}}function bG(n,e,t){for(var i=0;i0,y={api:i,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:a,transformInfoRaw:p};l.resourceType==="geoJSON"?this._buildGeoJSON(y):l.resourceType==="geoSVG"&&this._buildSVG(y),this._updateController(e,t,i),this._updateMapSelectHandler(e,u,i,o)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=j(),i=j(),o=this._regionsGroup,r=e.transformInfoRaw,a=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function h(d,f){return f&&(d=f(d)),d&&[d[0]*r.scaleX+r.x,d[1]*r.scaleY+r.y]}function c(d){for(var f=[],g=!u&&l&&l.project,y=0;y=0)&&(p=o);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;he(e,ne(i),{labelFetcher:p,labelDataIndex:c,defaultText:t},d);var f=e.getTextContent();if(f&&(TI(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function kI(n,e,t,i,o,r){n.data?n.data.setItemGraphicEl(r,e):ot(e).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:t,region:i&&i.option||{}}}function LI(n,e,t,i,o){n.data||jr({el:e,componentModel:o,itemName:t,itemTooltipOption:i.get("tooltip")})}function PI(n,e,t,i,o){e.highDownSilentOnTouch=!!o.get("selectedMode");var r=i.getModel("emphasis"),a=r.get("focus");return Ht(e,a,r.get("blurScope"),r.get("disabled")),n.isGeo&&IO(e,o,t),a}function OI(n,e,t){var i=[],o;function r(){o=[]}function a(){o.length&&(i.push(o),o=[])}var s=e({polygonStart:r,polygonEnd:a,lineStart:r,lineEnd:a,point:function(l,u){isFinite(l)&&isFinite(u)&&o.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),T(n,function(l){s.lineStart();for(var u=0;u-1&&(o.style.stroke=o.style.fill,o.style.fill="#fff",o.style.lineWidth=2),o},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(zt);const HG=WG;function YG(n,e){var t={};return T(n,function(i){i.each(i.mapDimension("value"),function(o,r){var a="ec-"+i.getName(r);t[a]=t[a]||[],isNaN(o)||t[a].push(o)})}),n[0].map(n[0].mapDimension("value"),function(i,o){for(var r="ec-"+n[0].getName(o),a=0,s=1/0,l=-1/0,u=t[r].length,h=0;h1?(_.width=x,_.height=x/y):(_.height=x,_.width=x*y),_.y=m[1]-_.height/2,_.x=m[0]-_.width/2;else{var w=n.getBoxLayoutParams();w.aspect=y,_=Kt(w,{width:f,height:g})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function qG(n,e){T(e.get("geoCoord"),function(t,i){n.addGeoCoord(i,t)})}var KG=function(){function n(){this.dimensions=EI}return n.prototype.create=function(e,t){var i=[];function o(a){return{nameProperty:a.get("nameProperty"),aspectScale:a.get("aspectScale"),projection:a.get("projection")}}e.eachComponent("geo",function(a,s){var l=a.get("map"),u=new GI(l+s,l,V({nameMap:a.get("nameMap")},o(a)));u.zoomLimit=a.get("scaleLimit"),i.push(u),a.coordinateSystem=u,u.model=a,u.resize=FI,u.resize(a,t)}),e.eachSeries(function(a){var s=a.get("coordinateSystem");if(s==="geo"){var l=a.get("geoIndex")||0;a.coordinateSystem=i[l]}});var r={};return e.eachSeriesByType("map",function(a){if(!a.getHostGeoModel()){var s=a.getMapType();r[s]=r[s]||[],r[s].push(a)}}),T(r,function(a,s){var l=G(a,function(h){return h.get("nameMap")}),u=new GI(s,s,V({nameMap:Ul(l)},o(a[0])));u.zoomLimit=Jt.apply(null,G(a,function(h){return h.get("scaleLimit")})),i.push(u),u.resize=FI,u.resize(a[0],t),T(a,function(h){h.coordinateSystem=u,qG(u,h)})}),i},n.prototype.getFilledRegions=function(e,t,i,o){for(var r=(e||[]).slice(),a=j(),s=0;s=0;a--){var s=o[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},t.push(s)}}function rF(n,e){var t=n.isExpand?n.children:[],i=n.parentNode.children,o=n.hierNode.i?i[n.hierNode.i-1]:null;if(t.length){lF(n);var r=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;o?(n.hierNode.prelim=o.hierNode.prelim+e(n,o),n.hierNode.modifier=n.hierNode.prelim-r):n.hierNode.prelim=r}else o&&(n.hierNode.prelim=o.hierNode.prelim+e(n,o));n.parentNode.hierNode.defaultAncestor=uF(n,o,n.parentNode.hierNode.defaultAncestor||i[0],e)}function aF(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function XI(n){return arguments.length?n:pF}function _l(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function sF(n,e){return Kt(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function lF(n){for(var e=n.children,t=e.length,i=0,o=0;--t>=0;){var r=e[t];r.hierNode.prelim+=i,r.hierNode.modifier+=i,o+=r.hierNode.change,i+=r.hierNode.shift+o}}function uF(n,e,t,i){if(e){for(var o=n,r=n,a=r.parentNode.children[0],s=e,l=o.hierNode.modifier,u=r.hierNode.modifier,h=a.hierNode.modifier,c=s.hierNode.modifier;s=gy(s),r=yy(r),s&&r;){o=gy(o),a=yy(a),o.hierNode.ancestor=n;var p=s.hierNode.prelim+c-r.hierNode.prelim-u+i(s,r);p>0&&(cF(hF(s,n,t),n,p),u+=p,l+=p),c+=s.hierNode.modifier,u+=r.hierNode.modifier,l+=o.hierNode.modifier,h+=a.hierNode.modifier}s&&!gy(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=c-l),r&&!yy(a)&&(a.hierNode.thread=r,a.hierNode.modifier+=u-h,t=n)}return t}function gy(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function yy(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function hF(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function cF(n,e,t){var i=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=i}function pF(n,e){return n.parentNode===e.parentNode?1:2}var dF=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),fF=function(n){N(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new dF},e.prototype.buildPath=function(t,i){var o=i.childPoints,r=o.length,a=i.parentPoint,s=o[0],l=o[r-1];if(r===1){t.moveTo(a[0],a[1]),t.lineTo(s[0],s[1]);return}var u=i.orient,h=u==="TB"||u==="BT"?0:1,c=1-h,p=H(i.forkPosition,1),d=[];d[h]=a[h],d[c]=a[c]+(l[c]-a[c])*p,t.moveTo(a[0],a[1]),t.lineTo(d[0],d[1]),t.moveTo(s[0],s[1]),d[h]=s[h],t.lineTo(d[0],d[1]),d[h]=l[h],t.lineTo(d[0],d[1]),t.lineTo(l[0],l[1]);for(var f=1;fm.x,w||(_=_-Math.PI));var S=w?"left":"right",M=s.getModel("label"),I=M.get("rotate"),C=I*(Math.PI/180),A=y.getTextContent();A&&(y.setTextConfig({position:M.get("position")||S,rotation:I==null?-_:C,origin:"center"}),A.setStyle("verticalAlign","middle"))}var D=s.get(["emphasis","focus"]),k=D==="relative"?Fa(a.getAncestorsIndices(),a.getDescendantIndices()):D==="ancestor"?a.getAncestorsIndices():D==="descendant"?a.getDescendantIndices():null;k&&(ot(t).focus=k),yF(o,a,h,t,f,d,g,i),t.__edge&&(t.onHoverStateChange=function(L){if(L!=="blur"){var P=a.parentNode&&n.getItemGraphicEl(a.parentNode.dataIndex);P&&P.hoverState===ms||Bu(t.__edge,L)}})}function yF(n,e,t,i,o,r,a,s){var l=e.getModel(),u=n.get("edgeShape"),h=n.get("layout"),c=n.getOrient(),p=n.get(["lineStyle","curveness"]),d=n.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=i.__edge=new Cs({shape:vy(h,c,p,o,o)})),Ct(g,{shape:vy(h,c,p,r,a)},n));else if(u==="polyline"&&h==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var y=e.children,v=[],m=0;mt&&(t=o.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,i=this.children,o=i.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var i=t.getData().tree.root,o=n.targetNode;if(Y(o)&&(o=i.getNodeById(o)),o&&i.contains(o))return{node:o};var r=n.targetNodeId;if(r!=null&&(o=i.getNodeById(r)))return{node:o}}}function JI(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function _y(n,e){var t=JI(n);return pt(t,e)>=0}function gc(n,e){for(var t=[];n;){var i=n.dataIndex;t.push({name:n.name,dataIndex:i,value:e.getRawValue(i)}),n=n.parentNode}return t.reverse(),t}var CF=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var i={name:t.name,children:t.data},o=t.leaves||{},r=new Pt(o,this,this.ecModel),a=xy.createTree(i,this,s);function s(c){c.wrapMethod("getItemModel",function(p,d){var f=a.getNodeByDataIndex(d);return f&&f.children.length&&f.isExpand||(p.parentModel=r),p})}var l=0;a.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=t.expandAndCollapse,h=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return a.root.eachNode("preorder",function(c){var p=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=p&&p.collapsed!=null?!p.collapsed:c.depth<=h}),a.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,i,o){for(var r=this.getData().tree,a=r.root.children[0],s=r.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==a;)u=s.parentNode.name+"."+u,s=s.parentNode;return ie("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var i=n.prototype.getDataParams.apply(this,arguments),o=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=gc(o,this),i.collapsed=!o.isExpand,i},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(zt);const AF=CF;function DF(n,e,t){for(var i=[n],o=[],r;r=i.pop();)if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s=0;r--)t.push(o[r])}}function kF(n,e){n.eachSeriesByType("tree",function(t){LF(t,e)})}function LF(n,e){var t=sF(n,e);n.layoutInfo=t;var i=n.get("layout"),o=0,r=0,a=null;i==="radial"?(o=2*Math.PI,r=Math.min(t.height,t.width)/2,a=XI(function(x,_){return(x.parentNode===_.parentNode?1:2)/x.depth})):(o=t.width,r=t.height,a=XI());var s=n.getData().tree.root,l=s.children[0];if(l){oF(s),DF(l,rF,a),s.hierNode.modifier=-l.hierNode.prelim,wl(l,aF);var u=l,h=l,c=l;wl(l,function(x){var _=x.getLayout().x;_h.getLayout().x&&(h=x),x.depth>c.depth&&(c=x)});var p=u===h?1:a(u,h)/2,d=p-u.getLayout().x,f=0,g=0,y=0,v=0;if(i==="radial")f=o/(h.getLayout().x+p+d),g=r/(c.depth-1||1),wl(l,function(x){y=(x.getLayout().x+d)*f,v=(x.depth-1)*g;var _=_l(y,v);x.setLayout({x:_.x,y:_.y,rawX:y,rawY:v},!0)});else{var m=n.getOrient();m==="RL"||m==="LR"?(g=r/(h.getLayout().x+p+d),f=o/(c.depth-1||1),wl(l,function(x){v=(x.getLayout().x+d)*g,y=m==="LR"?(x.depth-1)*f:o-(x.depth-1)*f,x.setLayout({x:y,y:v},!0)})):(m==="TB"||m==="BT")&&(f=o/(h.getLayout().x+p+d),g=r/(c.depth-1||1),wl(l,function(x){y=(x.getLayout().x+d)*f,v=m==="TB"?(x.depth-1)*g:r-(x.depth-1)*g,x.setLayout({x:y,y:v},!0)}))}}}function PF(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),i=t.tree;i.eachNode(function(o){var r=o.getModel(),a=r.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(o.dataIndex,"style");V(s,a)})})}function OF(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var o=e.dataIndex,r=i.getData().tree,a=r.getNodeByDataIndex(o);a.isExpand=!a.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,i){t.eachComponent({mainType:"series",subType:"tree",query:e},function(o){var r=o.coordinateSystem,a=fy(r,e,void 0,i);o.setCenter&&o.setCenter(a.center),o.setZoom&&o.setZoom(a.zoom)})})}function NF(n){n.registerChartView(vF),n.registerSeriesModel(AF),n.registerLayout(kF),n.registerVisual(PF),OF(n)}var t2=["treemapZoomToNode","treemapRender","treemapMove"];function RF(n){for(var e=0;e1;)r=r.parentNode;var a=_f(n.ecModel,r.name||r.dataIndex+"",i);o.setVisual("decal",a)})}var zF=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,i){var o={name:t.name,children:t.data};n2(o);var r=t.levels||[],a=this.designatedVisualItemStyle={},s=new Pt({itemStyle:a},this,i);r=t.levels=EF(r,i);var l=G(r||[],function(c){return new Pt(c,s,i)},this),u=xy.createTree(o,this,h);function h(c){c.wrapMethod("getItemModel",function(p,d){var f=u.getNodeByDataIndex(d),g=f?l[f.depth]:null;return p.parentModel=g||s,p})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,i,o){var r=this.getData(),a=this.getRawValue(t),s=r.getName(t);return ie("nameValue",{name:s,value:a})},e.prototype.getDataParams=function(t){var i=n.prototype.getDataParams.apply(this,arguments),o=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=gc(o,this),i.treePathInfo=i.treeAncestors,i},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},V(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var i=this._idIndexMap;i||(i=this._idIndexMap=j(),this._idIndexMapCount=0);var o=i.get(t);return o==null&&i.set(t,o=this._idIndexMapCount++),o},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){e2(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(zt);function n2(n){var e=0;T(n.children,function(i){n2(i);var o=i.value;B(o)&&(o=o[0]),e+=o});var t=n.value;B(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),B(n.value)?n.value[0]=t:n.value=t}function EF(n,e){var t=Lt(e.get("color")),i=Lt(e.get(["aria","decal","decals"]));if(t){n=n||[];var o,r;T(n,function(s){var l=new Pt(s),u=l.get("color"),h=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(o=!0),(l.get(["itemStyle","decal"])||h&&h!=="none")&&(r=!0)});var a=n[0]||(n[0]={});return o||(a.color=t.slice()),!r&&i&&(a.decal=i.slice()),n}}const VF=zF;var BF=8,i2=8,by=5,GF=function(){function n(e){this.group=new it,e.add(this.group)}return n.prototype.render=function(e,t,i,o){var r=e.getModel("breadcrumb"),a=this.group;if(a.removeAll(),!(!r.get("show")||!i)){var s=r.getModel("itemStyle"),l=r.getModel("emphasis"),u=s.getModel("textStyle"),h=l.getModel(["itemStyle","textStyle"]),c={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,c,u),this._renderContent(e,c,s,l,u,h,o),ch(a,c.pos,c.box)}},n.prototype._prepare=function(e,t,i){for(var o=e;o;o=o.parentNode){var r=Qt(o.getModel().get("name"),""),a=i.getTextRect(r),s=Math.max(a.width+BF*2,t.emptyItemWidth);t.totalWidth+=s+i2,t.renderList.push({node:o,text:r,width:s})}},n.prototype._renderContent=function(e,t,i,o,r,a,s){for(var l=0,u=t.emptyItemWidth,h=e.get(["breadcrumb","height"]),c=PN(t.pos,t.box),p=t.totalWidth,d=t.renderList,f=o.getModel("itemStyle").getItemStyle(),g=d.length-1;g>=0;g--){var y=d[g],v=y.node,m=y.width,x=y.text;p>c.width&&(p-=m-u,m=u,x=null);var _=new Ce({shape:{points:FF(l,0,m,h,g===d.length-1,g===0)},style:Q(i.getItemStyle(),{lineJoin:"bevel"}),textContent:new St({style:Rt(r,{text:x})}),textConfig:{position:"inside"},z2:Br*1e4,onclick:rt(s,v)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Rt(a,{text:x}),_.ensureState("emphasis").style=f,Ht(_,o.get("focus"),o.get("blurScope"),o.get("disabled")),this.group.add(_),WF(_,e,v),l+=m+i2}},n.prototype.remove=function(){this.group.removeAll()},n}();function FF(n,e,t,i,o,r){var a=[[o?n:n-by,e],[n+t,e],[n+t,e+i],[o?n:n-by,e+i]];return!r&&a.splice(2,0,[n+t+by,e+i/2]),!o&&a.push([n,e+i/2]),a}function WF(n,e,t){ot(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&gc(t,e)}}const HF=GF;var YF=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,i,o,r){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:i,delay:o,easing:r}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,i=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},o=0,r=this._storage.length;or2||Math.abs(t.dy)>r2)){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x+t.dx,y:o.y+t.dy,width:o.width,height:o.height}})}},e.prototype._onZoom=function(t){var i=t.originX,o=t.originY,r=t.scale;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var s=a.getLayout();if(!s)return;var l=new ct(s.x,s.y,s.width,s.height),u=null,h=this._controllerHost;u=h.zoomLimit;var c=h.zoom=h.zoom||1;if(c*=r,u){var p=u.min||0,d=u.max||1/0;c=Math.max(Math.min(d,c),p)}var f=c/h.zoom;h.zoom=c;var g=this.seriesModel.layoutInfo;i-=g.x,o-=g.y;var y=Ne();vn(y,y,[-i,-o]),tu(y,y,[f,f]),vn(y,y,[i,o]),l.applyTransform(y),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(t){var i=this;t.on("click",function(o){if(i._state==="ready"){var r=i.seriesModel.get("nodeClick",!0);if(r){var a=i.findTarget(o.offsetX,o.offsetY);if(a){var s=a.node;if(s.getLayout().isLeafRoot)i._rootToNode(a);else if(r==="zoomToNode")i._zoomToNode(a);else if(r==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),h=l.get("target",!0)||"blank";u&&uh(u,h)}}}}},this)},e.prototype._renderBreadcrumb=function(t,i,o){var r=this;o||(o=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(i.getWidth()/2,i.getHeight()/2),o||(o={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new HF(this.group))).render(t,i,o.node,function(a){r._state!=="animating"&&(_y(t.getViewRoot(),a)?r._rootToNode({node:a}):r._zoomToNode({node:a}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Sl(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,i){var o,r=this.seriesModel.getViewRoot();return r.eachNode({attr:"viewChildren",order:"preorder"},function(a){var s=this._storage.background[a.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,i),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)o={node:a,offsetX:l[0],offsetY:l[1]};else return!1}},this),o},e.type="treemap",e}(Ot);function Sl(){return{nodeGroup:[],background:[],content:[]}}function KF(n,e,t,i,o,r,a,s,l,u){if(!a)return;var h=a.getLayout(),c=n.getData(),p=a.getModel();if(c.setItemGraphicEl(a.dataIndex,null),!h||!h.isInView)return;var d=h.width,f=h.height,g=h.borderWidth,y=h.invisible,v=a.getRawIndex(),m=s&&s.getRawIndex(),x=a.viewChildren,_=h.upperHeight,w=x&&x.length,b=p.getModel("itemStyle"),S=p.getModel(["emphasis","itemStyle"]),M=p.getModel(["blur","itemStyle"]),I=p.getModel(["select","itemStyle"]),C=b.get("borderRadius")||0,A=J("nodeGroup",wy);if(!A)return;if(l.add(A),A.x=h.x||0,A.y=h.y||0,A.markRedraw(),yc(A).nodeWidth=d,yc(A).nodeHeight=f,h.isAboveViewRoot)return A;var D=J("background",o2,u,UF);D&&E(A,D,w&&h.upperLabelHeight);var k=p.getModel("emphasis"),L=k.get("focus"),P=k.get("blurScope"),O=k.get("disabled"),z=L==="ancestor"?a.getAncestorsIndices():L==="descendant"?a.getDescendantIndices():L;if(w)ws(A)&&No(A,!1),D&&(No(D,!O),c.setItemGraphicEl(a.dataIndex,D),Vd(D,z,P));else{var R=J("content",o2,u,jF);R&&F(A,R),D.disableMorphing=!0,D&&ws(D)&&No(D,!1),No(A,!O),c.setItemGraphicEl(a.dataIndex,A),Vd(A,z,P)}return A;function E(gt,nt,yt){var lt=ot(nt);if(lt.dataIndex=a.dataIndex,lt.seriesIndex=n.seriesIndex,nt.setShape({x:0,y:0,width:d,height:f,r:C}),y)W(nt);else{nt.invisible=!1;var q=a.getVisual("style"),ut=q.stroke,Gt=l2(b);Gt.fill=ut;var Mt=dr(S);Mt.fill=S.get("borderColor");var Yt=dr(M);Yt.fill=M.get("borderColor");var Ft=dr(I);if(Ft.fill=I.get("borderColor"),yt){var de=d-2*g;X(nt,ut,q.opacity,{x:g,y:0,width:de,height:_})}else nt.removeTextContent();nt.setStyle(Gt),nt.ensureState("emphasis").style=Mt,nt.ensureState("blur").style=Yt,nt.ensureState("select").style=Ft,Oo(nt)}gt.add(nt)}function F(gt,nt){var yt=ot(nt);yt.dataIndex=a.dataIndex,yt.seriesIndex=n.seriesIndex;var lt=Math.max(d-2*g,0),q=Math.max(f-2*g,0);if(nt.culling=!0,nt.setShape({x:g,y:g,width:lt,height:q,r:C}),y)W(nt);else{nt.invisible=!1;var ut=a.getVisual("style"),Gt=ut.fill,Mt=l2(b);Mt.fill=Gt,Mt.decal=ut.decal;var Yt=dr(S),Ft=dr(M),de=dr(I);X(nt,Gt,ut.opacity,null),nt.setStyle(Mt),nt.ensureState("emphasis").style=Yt,nt.ensureState("blur").style=Ft,nt.ensureState("select").style=de,Oo(nt)}gt.add(nt)}function W(gt){!gt.invisible&&r.push(gt)}function X(gt,nt,yt,lt){var q=p.getModel(lt?s2:a2),ut=Qt(p.get("name"),null),Gt=q.getShallow("show");he(gt,ne(p,lt?s2:a2),{defaultText:Gt?ut:null,inheritColor:nt,defaultOpacity:yt,labelFetcher:n,labelDataIndex:a.dataIndex});var Mt=gt.getTextContent();if(Mt){var Yt=Mt.style,Ft=Kl(Yt.padding||0);lt&&(gt.setTextConfig({layoutRect:lt}),Mt.disableLabelLayout=!0),Mt.beforeUpdate=function(){var Jn=Math.max((lt?lt.width:gt.shape.width)-Ft[1]-Ft[3],0),Oe=Math.max((lt?lt.height:gt.shape.height)-Ft[0]-Ft[2],0);(Yt.width!==Jn||Yt.height!==Oe)&&Mt.setStyle({width:Jn,height:Oe})},Yt.truncateMinChar=2,Yt.lineOverflow="truncate",$(Yt,lt,h);var de=Mt.getState("emphasis");$(de?de.style:null,lt,h)}}function $(gt,nt,yt){var lt=gt?gt.text:null;if(!nt&&yt.isLeafRoot&<!=null){var q=n.get("drillDownIcon",!0);gt.text=q?q+" "+lt:lt}}function J(gt,nt,yt,lt){var q=m!=null&&t[gt][m],ut=o[gt];return q?(t[gt][m]=null,ft(ut,q)):y||(q=new nt,q instanceof Je&&(q.z2=$F(yt,lt)),xt(ut,q)),e[gt][v]=q}function ft(gt,nt){var yt=gt[v]={};nt instanceof wy?(yt.oldX=nt.x,yt.oldY=nt.y):yt.oldShape=V({},nt.shape)}function xt(gt,nt){var yt=gt[v]={},lt=a.parentNode,q=nt instanceof it;if(lt&&(!i||i.direction==="drillDown")){var ut=0,Gt=0,Mt=o.background[lt.getRawIndex()];!i&&Mt&&Mt.oldShape&&(ut=Mt.oldShape.width,Gt=Mt.oldShape.height),q?(yt.oldX=0,yt.oldY=Gt):yt.oldShape={x:ut,y:Gt,width:0,height:0}}yt.fadein=!q}}function $F(n,e){return n*ZF+e}const QF=qF;var Ml=T,JF=tt,vc=-1,Sy=function(){function n(e){var t=e.mappingMethod,i=e.type,o=this.option=et(e);this.type=i,this.mappingMethod=t,this._normalizeData=n4[t];var r=n.visualHandlers[i];this.applyVisual=r.applyVisual,this.getColorMapper=r.getColorMapper,this._normalizedToVisual=r._normalizedToVisual[t],t==="piecewise"?(My(o),t4(o)):t==="category"?o.categories?e4(o):My(o,!0):(fe(t!=="linear"||o.dataExtent),My(o))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return Z(this._normalizeData,this)},n.listVisualTypes=function(){return mt(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,i){tt(e)?T(e,t,i):t.call(i,e)},n.mapVisual=function(e,t,i){var o,r=B(e)?[]:tt(e)?{}:(o=!0,null);return n.eachVisual(e,function(a,s){var l=t.call(i,a,s);o?r=l:r[s]=l}),r},n.retrieveVisuals=function(e){var t={},i;return e&&Ml(n.visualHandlers,function(o,r){e.hasOwnProperty(r)&&(t[r]=e[r],i=!0)}),i?t:null},n.prepareVisualTypes=function(e){if(B(e))e=e.slice();else if(JF(e)){var t=[];Ml(e,function(i,o){t.push(o)}),e=t}else return[];return e.sort(function(i,o){return o==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,i){for(var o,r=1/0,a=0,s=t.length;a=0;r--)i[r]==null&&(delete t[e[r]],e.pop())}function My(n,e){var t=n.visual,i=[];tt(t)?Ml(t,function(r){i.push(r)}):t!=null&&i.push(t);var o={color:1,symbol:1};!e&&i.length===1&&!o.hasOwnProperty(n.type)&&(i[1]=i[0]),h2(n,i)}function mc(n){return{applyVisual:function(e,t,i){var o=this.mapValueToVisual(e);i("color",n(t("color"),o))},_normalizedToVisual:Iy([0,1])}}function u2(n){var e=this.option.visual;return e[Math.round(kt(n,[0,1],[0,e.length-1],!0))]||{}}function Il(n){return function(e,t,i){i(n,this.mapValueToVisual(e))}}function Tl(n){var e=this.option.visual;return e[this.option.loop&&n!==vc?n%e.length:n]}function fr(){return this.option.visual[0]}function Iy(n){return{linear:function(e){return kt(e,n,this.option.visual,!0)},category:Tl,piecewise:function(e,t){var i=Ty.call(this,t);return i==null&&(i=kt(e,n,this.option.visual,!0)),i},fixed:fr}}function Ty(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var i=Sy.findPieceIndex(n,t),o=t[i];if(o&&o.visual)return o.visual[this.type]}}function h2(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=G(e,function(t){var i=Se(t);return i||[0,0,0,1]})),e}var n4={linear:function(n){return kt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=Sy.findPieceIndex(n,e,!0);if(t!=null)return kt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e??vc},fixed:Zt};function xc(n,e,t){return n?e<=t:e=t.length||g===t[g.depth]){var v=l4(o,l,g,y,f,i);p2(g,v,t,i)}})}}}function r4(n,e,t){var i=V({},e),o=t.designatedVisualItemStyle;return T(["color","colorAlpha","colorSaturation"],function(r){o[r]=e[r];var a=n.get(r);o[r]=null,a!=null&&(i[r]=a)}),i}function d2(n){var e=Cy(n,"color");if(e){var t=Cy(n,"colorAlpha"),i=Cy(n,"colorSaturation");return i&&(e=Lr(e,null,null,i)),t&&(e=is(e,t)),e}}function a4(n,e){return e!=null?Lr(e,null,null,n):null}function Cy(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function s4(n,e,t,i,o,r){if(!(!r||!r.length)){var a=Ay(e,"color")||o.color!=null&&o.color!=="none"&&(Ay(e,"colorAlpha")||Ay(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var h=e.get("colorMappingBy"),c={type:a.name,dataExtent:u,visual:a.range};c.type==="color"&&(h==="index"||h==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var p=new pe(c);return c2(p).drColorMappingBy=h,p}}}function Ay(n,e){var t=n.get(e);return B(t)&&t.length?{name:e,range:t}:null}function l4(n,e,t,i,o,r){var a=V({},e);if(o){var s=o.type,l=s==="color"&&c2(o).drColorMappingBy,u=l==="index"?i:l==="id"?r.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));a[s]=o.mapValueToVisual(u)}return a}var Cl=Math.max,_c=Math.min,f2=Jt,Dy=T,g2=["itemStyle","borderWidth"],u4=["itemStyle","gapWidth"],h4=["upperLabel","show"],c4=["upperLabel","height"];const p4={seriesType:"treemap",reset:function(n,e,t,i){var o=t.getWidth(),r=t.getHeight(),a=n.option,s=Kt(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=a.size||[],u=H(f2(s.width,l[0]),o),h=H(f2(s.height,l[1]),r),c=i&&i.type,p=["treemapZoomToNode","treemapRootToNode"],d=bl(i,p,n),f=c==="treemapRender"||c==="treemapMove"?i.rootRect:null,g=n.getViewRoot(),y=JI(g);if(c!=="treemapMove"){var v=c==="treemapZoomToNode"?m4(n,d,g,u,h):f?[f.width,f.height]:[u,h],m=a.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var x={squareRatio:a.squareRatio,sort:m,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var _={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};g.setLayout(_),y2(g,x,!1,0),_=g.getLayout(),Dy(y,function(b,S){var M=(y[S+1]||g).getValue();b.setLayout(V({dataExtent:[M,M],borderWidth:0,upperHeight:0},_))})}var w=n.getData().tree.root;w.setLayout(x4(s,f,d),!0),n.setLayoutInfo(s),m2(w,new ct(-s.x,-s.y,o,r),y,g,0)}};function y2(n,e,t,i){var o,r;if(!n.isRemoved()){var a=n.getLayout();o=a.width,r=a.height;var s=n.getModel(),l=s.get(g2),u=s.get(u4)/2,h=x2(s),c=Math.max(l,h),p=l-u,d=c-u;n.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:h},!0),o=Cl(o-2*p,0),r=Cl(r-p-d,0);var f=o*r,g=d4(n,s,f,e,t,i);if(g.length){var y={x:p,y:d,width:o,height:r},v=_c(o,r),m=1/0,x=[];x.area=0;for(var _=0,w=g.length;_=0;l--){var u=o[i==="asc"?a-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:i,dataExtent:s}}function v4(n,e,t){for(var i=0,o=1/0,r=0,a=void 0,s=n.length;ri&&(i=a));var l=n.area*n.area,u=e*e*t;return l?Cl(u*i/l,l/(u*o)):1/0}function v2(n,e,t,i,o){var r=e===t.width?0:1,a=1-r,s=["x","y"],l=["width","height"],u=t[s[r]],h=e?n.area/e:0;(o||h>t[l[a]])&&(h=t[l[a]]);for(var c=0,p=n.length;cid&&(u=id),r=s}ui&&(i=e);var r=i%2?i+2:i+3;o=[];for(var a=0;a0&&(w[0]=-w[0],w[1]=-w[1]);var S=_[0]<0?-1:1;if(r.__position!=="start"&&r.__position!=="end"){var M=-Math.atan2(_[1],_[0]);c[0].8?"left":p[0]<-.8?"right":"center",g=p[1]>.8?"top":p[1]<-.8?"bottom":"middle";break;case"start":r.x=-p[0]*v+h[0],r.y=-p[1]*m+h[1],f=p[0]>.8?"right":p[0]<-.8?"left":"center",g=p[1]>.8?"bottom":p[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=v*S+h[0],r.y=h[1]+I,f=_[0]<0?"right":"left",r.originX=-v*S,r.originY=-I;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=b[0],r.y=b[1]+I,f="center",r.originY=-I;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-v*S+c[0],r.y=c[1]+I,f=_[0]>=0?"right":"left",r.originX=v*S,r.originY=-I;break}r.scaleX=r.scaleY=a,r.setStyle({verticalAlign:r.__verticalAlign||g,align:r.__align||f})}},e}(it);const Gy=V4;var B4=function(){function n(e){this.group=new it,this._LineCtor=e||Gy}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var i=this,o=i.group,r=i._lineData;i._lineData=e,r||o.removeAll();var a=k2(e);e.diff(r).add(function(s){t._doAdd(e,s,a)}).update(function(s,l){t._doUpdate(r,e,l,s,a)}).remove(function(s){o.remove(r.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,i){t.updateLayout(e,i)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=k2(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function i(s){!s.isGroup&&!G4(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var o=e.start;o0}function k2(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:ne(e)}}function L2(n){return isNaN(n[0])||isNaN(n[1])}function Fy(n){return n&&!L2(n[0])&&!L2(n[1])}const Wy=B4;var Hy=[],Yy=[],Xy=[],Ma=ae,Zy=Ii,P2=Math.abs;function O2(n,e,t){for(var i=n[0],o=n[1],r=n[2],a=1/0,s,l=t*t,u=.1,h=.1;h<=.9;h+=.1){Hy[0]=Ma(i[0],o[0],r[0],h),Hy[1]=Ma(i[1],o[1],r[1],h);var c=P2(Zy(Hy,e)-l);c=0?s=s+u:s=s-u:f>=0?s=s-u:s=s+u}return s}function Uy(n,e){var t=[],i=Ja,o=[[],[],[]],r=[[],[]],a=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),h=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[Pn(u[0]),Pn(u[1])],u[2]&&u.__original.push(Pn(u[2])));var p=u.__original;if(u[2]!=null){if(ge(o[0],p[0]),ge(o[1],p[2]),ge(o[2],p[1]),h&&h!=="none"){var d=kl(s.node1),f=O2(o,p[0],d*e);i(o[0][0],o[1][0],o[2][0],f,t),o[0][0]=t[3],o[1][0]=t[4],i(o[0][1],o[1][1],o[2][1],f,t),o[0][1]=t[3],o[1][1]=t[4]}if(c&&c!=="none"){var d=kl(s.node2),f=O2(o,p[1],d*e);i(o[0][0],o[1][0],o[2][0],f,t),o[1][0]=t[1],o[2][0]=t[2],i(o[0][1],o[1][1],o[2][1],f,t),o[1][1]=t[1],o[2][1]=t[2]}ge(u[0],o[0]),ge(u[1],o[2]),ge(u[2],o[1])}else{if(ge(r[0],p[0]),ge(r[1],p[1]),Mi(a,r[1],r[0]),uo(a,a),h&&h!=="none"){var d=kl(s.node1);$l(r[0],r[0],a,d*e)}if(c&&c!=="none"){var d=kl(s.node2);$l(r[1],r[1],a,-d*e)}ge(u[0],r[0]),ge(u[1],r[1])}})}function N2(n){return n.type==="view"}var F4=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){var o=new hl,r=new Wy,a=this.group;this._controller=new vl(i.getZr()),this._controllerHost={target:a},a.add(o.group),a.add(r.group),this._symbolDraw=o,this._lineDraw=r,this._firstRender=!0},e.prototype.render=function(t,i,o){var r=this,a=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(N2(a)){var h={x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY};this._firstRender?u.attr(h):Ct(u,h,t)}Uy(t.getGraph(),Dl(t));var c=t.getData();s.updateData(c);var p=t.getEdgeData();l.updateData(p),this._updateNodeAndLinkScale(),this._updateController(t,i,o),clearTimeout(this._layoutTimeout);var d=t.forceLayout,f=t.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,f);var g=t.get("layout");c.graph.eachNode(function(x){var _=x.dataIndex,w=x.getGraphicEl(),b=x.getModel();if(w){w.off("drag").off("dragend");var S=b.get("draggable");S&&w.on("drag",function(I){switch(g){case"force":d.warmUp(),!r._layouting&&r._startForceLayoutIteration(d,f),d.setFixed(_),c.setItemLayout(_,[w.x,w.y]);break;case"circular":c.setItemLayout(_,[w.x,w.y]),x.setLayout({fixed:!0},!0),Ry(t,"symbolSize",x,[I.offsetX,I.offsetY]),r.updateLayout(t);break;case"none":default:c.setItemLayout(_,[w.x,w.y]),Oy(t.getGraph(),t),r.updateLayout(t);break}}).on("dragend",function(){d&&d.setUnfixed(_)}),w.setDraggable(S,!!b.get("cursor"));var M=b.get(["emphasis","focus"]);M==="adjacency"&&(ot(w).focus=x.getAdjacentDataIndices())}}),c.graph.eachEdge(function(x){var _=x.getGraphicEl(),w=x.getModel().get(["emphasis","focus"]);_&&w==="adjacency"&&(ot(_).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var y=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),v=c.getLayout("cx"),m=c.getLayout("cy");c.graph.eachNode(function(x){M2(x,y,v,m)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,i){var o=this;(function r(){t.step(function(a){o.updateLayout(o._model),(o._layouting=!a)&&(i?o._layoutTimeout=setTimeout(r,16):r())})})()},e.prototype._updateController=function(t,i,o){var r=this,a=this._controller,s=this._controllerHost,l=this.group;if(a.setPointerChecker(function(u,h,c){var p=l.getBoundingRect();return p.applyTransform(l.transform),p.contain(h,c)&&!hc(u,o,t)}),!N2(t.coordinateSystem)){a.disable();return}a.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(u){ly(s,u.dx,u.dy),o.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){uy(s,u.scale,u.originX,u.originY),o.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),r._updateNodeAndLinkScale(),Uy(t.getGraph(),Dl(t)),r._lineDraw.updateLayout(),o.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,i=t.getData(),o=Dl(t);i.eachItemGraphicEl(function(r,a){r&&r.setSymbolScale(o)})},e.prototype.updateLayout=function(t){Uy(t.getGraph(),Dl(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Ot);const W4=F4;function Ia(n){return"_EC_"+n}var H4=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var i=this._nodesMap;if(!i[Ia(e)]){var o=new gr(e,t);return o.hostGraph=this,this.nodes.push(o),i[Ia(e)]=o,o}},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[Ia(e)]},n.prototype.addEdge=function(e,t,i){var o=this._nodesMap,r=this._edgesMap;if(Tt(e)&&(e=this.nodes[e]),Tt(t)&&(t=this.nodes[t]),e instanceof gr||(e=o[Ia(e)]),t instanceof gr||(t=o[Ia(t)]),!(!e||!t)){var a=e.id+"-"+t.id,s=new R2(e,t,i);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),r[a]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof gr&&(e=e.id),t instanceof gr&&(t=t.id);var i=this._edgesMap;return this._directed?i[e+"-"+t]:i[e+"-"+t]||i[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var i=this.nodes,o=i.length,r=0;r=0&&e.call(t,i[r],r)},n.prototype.eachEdge=function(e,t){for(var i=this.edges,o=i.length,r=0;r=0&&i[r].node1.dataIndex>=0&&i[r].node2.dataIndex>=0&&e.call(t,i[r],r)},n.prototype.breadthFirstTraverse=function(e,t,i,o){if(t instanceof gr||(t=this._nodesMap[Ia(t)]),!!t){for(var r=i==="out"?"outEdges":i==="in"?"inEdges":"edges",a=0;a=0&&l.node2.dataIndex>=0});for(var r=0,a=o.length;r=0&&this[n][e].setItemVisual(this.dataIndex,t,i)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,i){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,i)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}Xt(gr,z2("hostGraph","data")),Xt(R2,z2("hostGraph","edgeData"));const Y4=H4;function E2(n,e,t,i,o){for(var r=new Y4(i),a=0;a "+p)),u++)}var d=t.get("coordinateSystem"),f;if(d==="cartesian2d"||d==="polar")f=Xn(n,t);else{var g=oa.get(d),y=g?g.dimensions||[]:[];pt(y,"value")<0&&y.concat(["value"]);var v=fa(n,{coordDimensions:y,encodeDefine:t.getEncode()}).dimensions;f=new be(v,t),f.initData(n)}var m=new be(["value"],t);return m.initData(l,s),o&&o(f,m),$I({mainData:f,struct:r,structAttr:"graph",datas:{node:f,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}var X4=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var i=this;function o(){return i._categoriesData}this.legendVisualProvider=new fl(o,o),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),_o(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,i){var o=t.edges||t.links||[],r=t.data||t.nodes||[],a=this;if(r&&o){T4(this);var s=E2(r,o,this,!0,l);return T(s.edges,function(u){C4(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,h){u.wrapMethod("getItemModel",function(f){var g=a._categoriesModels,y=f.getShallow("category"),v=g[y];return v&&(v.parentModel=f.parentModel,f.parentModel=v),f});var c=Pt.prototype.getModel;function p(f,g){var y=c.call(this,f,g);return y.resolveParentPath=d,y}h.wrapMethod("getItemModel",function(f){return f.resolveParentPath=d,f.getModel=p,f});function d(f){if(f&&(f[0]==="label"||f[1]==="label")){var g=f.slice();return f[0]==="label"?g[0]="edgeLabel":f[1]==="label"&&(g[1]="edgeLabel"),g}return f}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,i,o){if(o==="edge"){var r=this.getData(),a=this.getDataParams(t,o),s=r.graph.getEdgeByIndex(t),l=r.getName(s.node1.dataIndex),u=r.getName(s.node2.dataIndex),h=[];return l!=null&&h.push(l),u!=null&&h.push(u),ie("nameValue",{name:h.join(" > "),value:a.value,noValue:a.value==null})}var c=yb({series:this,dataIndex:t,multipleSeries:i});return c},e.prototype._updateCategoriesData=function(){var t=G(this.option.categories||[],function(o){return o.value!=null?o:V({value:0},o)}),i=new be(["value"],this);i.initData(t),this._categoriesData=i,this._categoriesModels=i.mapArray(function(o){return i.getItemModel(o)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(zt);const Z4=X4;var U4={type:"graphRoam",event:"graphRoam",update:"none"};function j4(n){n.registerChartView(W4),n.registerSeriesModel(Z4),n.registerProcessor(b4),n.registerVisual(w4),n.registerVisual(S4),n.registerLayout(A4),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,k4),n.registerLayout(P4),n.registerCoordinateSystem("graphView",{dimensions:xl.dimensions,create:N4}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Zt),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Zt),n.registerAction(U4,function(e,t,i){t.eachComponent({mainType:"series",query:e},function(o){var r=o.coordinateSystem,a=fy(r,e,void 0,i);o.setCenter&&o.setCenter(a.center),o.setZoom&&o.setZoom(a.zoom)})})}var q4=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),K4=function(n){N(e,n);function e(t){var i=n.call(this,t)||this;return i.type="pointer",i}return e.prototype.getDefaultShape=function(){return new q4},e.prototype.buildPath=function(t,i){var o=Math.cos,r=Math.sin,a=i.r,s=i.width,l=i.angle,u=i.x-o(l)*s*(s>=a/3?1:2),h=i.y-r(l)*s*(s>=a/3?1:2);l=i.angle-Math.PI/2,t.moveTo(u,h),t.lineTo(i.x+o(l)*s,i.y+r(l)*s),t.lineTo(i.x+o(i.angle)*a,i.y+r(i.angle)*a),t.lineTo(i.x-o(l)*s,i.y-r(l)*s),t.lineTo(u,h)},e}(vt);const $4=K4;function Q4(n,e){var t=n.get("center"),i=e.getWidth(),o=e.getHeight(),r=Math.min(i,o),a=H(t[0],e.getWidth()),s=H(t[1],e.getHeight()),l=H(n.get("radius"),r/2);return{cx:a,cy:s,r:l}}function Sc(n,e){var t=n==null?"":n+"";return e&&(Y(e)?t=e.replace("{value}",t):K(e)&&(t=e(n))),t}var J4=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){this.group.removeAll();var r=t.get(["axisLine","lineStyle","color"]),a=Q4(t,o);this._renderMain(t,i,o,r,a),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,i,o,r,a){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,h=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),p=c.get("roundCap"),d=p?ic:Te,f=c.get("show"),g=c.getModel("lineStyle"),y=g.get("width"),v=[u,h];Td(v,!l),u=v[0],h=v[1];for(var m=h-u,x=u,_=[],w=0;f&&w=I&&(C===0?0:r[C-1][0])Math.PI/2&&(J+=Math.PI)):$==="tangential"?J=-M-Math.PI/2:Tt($)&&(J=$*Math.PI/180),J===0?c.add(new St({style:Rt(x,{text:E,x:W,y:X,verticalAlign:P<-.8?"top":P>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:F}),silent:!0})):c.add(new St({style:Rt(x,{text:E,x:W,y:X,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:W,originY:X,rotation:J}))}if(m.get("show")&&O!==_){var z=m.get("distance");z=z?z+h:h;for(var ft=0;ft<=w;ft++){L=Math.cos(M),P=Math.sin(M);var xt=new ee({shape:{x1:L*(f-z)+p,y1:P*(f-z)+d,x2:L*(f-S-z)+p,y2:P*(f-S-z)+d},silent:!0,style:D});D.stroke==="auto"&&xt.setStyle({stroke:r((O+ft/w)/_)}),c.add(xt),M+=C}M-=C}else M+=I}},e.prototype._renderPointer=function(t,i,o,r,a,s,l,u,h){var c=this.group,p=this._data,d=this._progressEls,f=[],g=t.get(["pointer","show"]),y=t.getModel("progress"),v=y.get("show"),m=t.getData(),x=m.mapDimension("value"),_=+t.get("min"),w=+t.get("max"),b=[_,w],S=[s,l];function M(C,A){var D=m.getItemModel(C),k=D.getModel("pointer"),L=H(k.get("width"),a.r),P=H(k.get("length"),a.r),O=t.get(["pointer","icon"]),z=k.get("offsetCenter"),R=H(z[0],a.r),E=H(z[1],a.r),F=k.get("keepAspect"),W;return O?W=Ut(O,R-L/2,E-P,L,P,null,F):W=new $4({shape:{angle:-Math.PI/2,width:L,r:P,x:R,y:E}}),W.rotation=-(A+Math.PI/2),W.x=a.cx,W.y=a.cy,W}function I(C,A){var D=y.get("roundCap"),k=D?ic:Te,L=y.get("overlap"),P=L?y.get("width"):h/m.count(),O=L?a.r-P:a.r-(C+1)*P,z=L?a.r:a.r-C*P,R=new k({shape:{startAngle:s,endAngle:A,cx:a.cx,cy:a.cy,clockwise:u,r0:O,r:z}});return L&&(R.z2=w-m.get(x,C)%w),R}(v||g)&&(m.diff(p).add(function(C){var A=m.get(x,C);if(g){var D=M(C,s);Vt(D,{rotation:-((isNaN(+A)?S[0]:kt(A,b,S,!0))+Math.PI/2)},t),c.add(D),m.setItemGraphicEl(C,D)}if(v){var k=I(C,s),L=y.get("clip");Vt(k,{shape:{endAngle:kt(A,b,S,L)}},t),c.add(k),Dd(t.seriesIndex,m.dataType,C,k),f[C]=k}}).update(function(C,A){var D=m.get(x,C);if(g){var k=p.getItemGraphicEl(A),L=k?k.rotation:s,P=M(C,L);P.rotation=L,Ct(P,{rotation:-((isNaN(+D)?S[0]:kt(D,b,S,!0))+Math.PI/2)},t),c.add(P),m.setItemGraphicEl(C,P)}if(v){var O=d[A],z=O?O.shape.endAngle:s,R=I(C,z),E=y.get("clip");Ct(R,{shape:{endAngle:kt(D,b,S,E)}},t),c.add(R),Dd(t.seriesIndex,m.dataType,C,R),f[C]=R}}).execute(),m.each(function(C){var A=m.getItemModel(C),D=A.getModel("emphasis"),k=D.get("focus"),L=D.get("blurScope"),P=D.get("disabled");if(g){var O=m.getItemGraphicEl(C),z=m.getItemVisual(C,"style"),R=z.fill;if(O instanceof se){var E=O.style;O.useStyle(V({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},z))}else O.useStyle(z),O.type!=="pointer"&&O.setColor(R);O.setStyle(A.getModel(["pointer","itemStyle"]).getItemStyle()),O.style.fill==="auto"&&O.setStyle("fill",r(kt(m.get(x,C),b,[0,1],!0))),O.z2EmphasisLift=0,ue(O,A),Ht(O,k,L,P)}if(v){var F=f[C];F.useStyle(m.getItemVisual(C,"style")),F.setStyle(A.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,ue(F,A),Ht(F,k,L,P)}}),this._progressEls=f)},e.prototype._renderAnchor=function(t,i){var o=t.getModel("anchor"),r=o.get("show");if(r){var a=o.get("size"),s=o.get("icon"),l=o.get("offsetCenter"),u=o.get("keepAspect"),h=Ut(s,i.cx-a/2+H(l[0],i.r),i.cy-a/2+H(l[1],i.r),a,a,null,u);h.z2=o.get("showAbove")?1:0,h.setStyle(o.getModel("itemStyle").getItemStyle()),this.group.add(h)}},e.prototype._renderTitleAndDetail=function(t,i,o,r,a){var s=this,l=t.getData(),u=l.mapDimension("value"),h=+t.get("min"),c=+t.get("max"),p=new it,d=[],f=[],g=t.isAnimationEnabled(),y=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(v){d[v]=new St({silent:!0}),f[v]=new St({silent:!0})}).update(function(v,m){d[v]=s._titleEls[m],f[v]=s._detailEls[m]}).execute(),l.each(function(v){var m=l.getItemModel(v),x=l.get(u,v),_=new it,w=r(kt(x,[h,c],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var S=b.get("offsetCenter"),M=a.cx+H(S[0],a.r),I=a.cy+H(S[1],a.r),C=d[v];C.attr({z2:y?0:2,style:Rt(b,{x:M,y:I,text:l.getName(v),align:"center",verticalAlign:"middle"},{inheritColor:w})}),_.add(C)}var A=m.getModel("detail");if(A.get("show")){var D=A.get("offsetCenter"),k=a.cx+H(D[0],a.r),L=a.cy+H(D[1],a.r),P=H(A.get("width"),a.r),O=H(A.get("height"),a.r),z=t.get(["progress","show"])?l.getItemVisual(v,"style").fill:w,C=f[v],R=A.get("formatter");C.attr({z2:y?0:2,style:Rt(A,{x:k,y:L,text:Sc(x,R),width:isNaN(P)?null:P,height:isNaN(O)?null:O,align:"center",verticalAlign:"middle"},{inheritColor:z})}),Ux(C,{normal:A},x,function(F){return Sc(F,R)}),g&&jx(C,v,l,t,{getFormattedLabel:function(F,W,X,$,J,ft){return Sc(ft?ft.interpolatedValue:x,R)}}),_.add(C)}p.add(_)}),this.group.add(p),this._titleEls=d,this._detailEls=f},e.type="gauge",e}(Ot);const tW=J4;var eW=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,i){return _a(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(zt);const nW=eW;function iW(n){n.registerChartView(tW),n.registerSeriesModel(nW)}var oW=["itemStyle","opacity"],rW=function(n){N(e,n);function e(t,i){var o=n.call(this)||this,r=o,a=new Ae,s=new St;return r.setTextContent(s),o.setTextGuideLine(a),o.updateData(t,i,!0),o}return e.prototype.updateData=function(t,i,o){var r=this,a=t.hostModel,s=t.getItemModel(i),l=t.getItemLayout(i),u=s.getModel("emphasis"),h=s.get(oW);h=h??1,o||Mn(r),r.useStyle(t.getItemVisual(i,"style")),r.style.lineJoin="round",o?(r.setShape({points:l.points}),r.style.opacity=0,Vt(r,{style:{opacity:h}},a,i)):Ct(r,{style:{opacity:h},shape:{points:l.points}},a,i),ue(r,s),this._updateLabel(t,i),Ht(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i){var o=this,r=this.getTextGuideLine(),a=o.getTextContent(),s=t.hostModel,l=t.getItemModel(i),u=t.getItemLayout(i),h=u.label,c=t.getItemVisual(i,"style"),p=c.fill;he(a,ne(l),{labelFetcher:t.hostModel,labelDataIndex:i,defaultOpacity:c.opacity,defaultText:t.getName(i)},{normal:{align:h.textAlign,verticalAlign:h.verticalAlign}}),o.setTextConfig({local:!0,inside:!!h.inside,insideStroke:p,outsideFill:p});var d=h.linePoints;r.setShape({points:d}),o.textGuideLineConfig={anchor:d?new ht(d[0][0],d[0][1]):null},Ct(a,{style:{x:h.x,y:h.y}},s,i),a.attr({rotation:h.rotation,originX:h.x,originY:h.y,z2:10}),Ag(o,Dg(l),{stroke:p})},e}(Ce),aW=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,o){var r=t.getData(),a=this._data,s=this.group;r.diff(a).add(function(l){var u=new rW(r,l);r.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var h=a.getItemGraphicEl(u);h.updateData(r,l),s.add(h),r.setItemGraphicEl(l,h)}).remove(function(l){var u=a.getItemGraphicEl(l);As(u,t,l)}).execute(),this._data=r},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Ot);const sW=aW;var lW=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new fl(Z(this.getData,this),Z(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,i){return _a(this,{coordDimensions:["value"],encodeDefaulter:rt(yf,this)})},e.prototype._defaultLabelLine=function(t){_o(t,"labelLine",["show"]);var i=t.labelLine,o=t.emphasis.labelLine;i.show=i.show&&t.label.show,o.show=o.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var i=this.getData(),o=n.prototype.getDataParams.call(this,t),r=i.mapDimension("value"),a=i.getSum(r);return o.percent=a?+(i.get(r,t)/a*100).toFixed(2):0,o.$vars.push("percent"),o},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(zt);const uW=lW;function hW(n,e){return Kt(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function cW(n,e){for(var t=n.mapDimension("value"),i=n.mapArray(t,function(l){return l}),o=[],r=e==="ascending",a=0,s=n.count();akW)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);o.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!qy(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),i=t.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}}};function qy(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const OW=LW;var NW=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var i=this.option;t&&st(i,t,!0),this._initDimensions()},e.prototype.contains=function(t,i){var o=t.get("parallelIndex");return o!=null&&i.getComponent("parallel",o)===this},e.prototype.setAxisExpand=function(t){T(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){t.hasOwnProperty(i)&&(this.option[i]=t[i])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],i=this.parallelAxisIndex=[],o=Dt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(r){return(r.get("parallelIndex")||0)===this.componentIndex},this);T(o,function(r){t.push("dim"+r.get("dim")),i.push(r.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(_t);const RW=NW;var zW=function(n){N(e,n);function e(t,i,o,r,a){var s=n.call(this,t,i,o)||this;return s.type=r||"value",s.axisIndex=a,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(ln);const EW=zW;function yr(n,e,t,i,o,r){n=n||0;var a=t[1]-t[0];if(o!=null&&(o=Ta(o,[0,a])),r!=null&&(r=Math.max(r,o??0)),i==="all"){var s=Math.abs(e[1]-e[0]);s=Ta(s,[0,a]),o=r=Ta(s,[o,r]),i=0}e[0]=Ta(e[0],t),e[1]=Ta(e[1],t);var l=Ky(e,i);e[i]+=n;var u=o||0,h=t.slice();l.sign<0?h[0]+=u:h[1]-=u,e[i]=Ta(e[i],h);var c;return c=Ky(e,i),o!=null&&(c.sign!==l.sign||c.spanr&&(e[1-i]=e[i]+c.sign*r),e}function Ky(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Ta(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var $y=T,F2=Math.min,W2=Math.max,H2=Math.floor,VW=Math.ceil,Y2=Wt,BW=Math.PI,GW=function(){function n(e,t,i){this.type="parallel",this._axesMap=j(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,i)}return n.prototype._init=function(e,t,i){var o=e.dimensions,r=e.parallelAxisIndex;$y(o,function(a,s){var l=r[s],u=t.getComponent("parallelAxis",l),h=this._axesMap.set(a,new EW(a,nl(u),[0,0],u.get("type"),l)),c=h.type==="category";h.onBand=c&&u.get("boundaryGap"),h.inverse=u.get("inverse"),u.axis=h,h.model=u,h.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),i=t.axisBase,o=t.layoutBase,r=t.pixelDimIndex,a=e[1-r],s=e[r];return a>=i&&a<=i+t.axisLength&&s>=o&&s<=o+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(i){if(e.contains(i,t)){var o=i.getData();$y(this.dimensions,function(r){var a=this._axesMap.get(r);a.scale.unionExtentFromData(o,o.mapDimension(r)),Jo(a.scale,a.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=Kt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,i=["x","y"],o=["width","height"],r=e.get("layout"),a=r==="horizontal"?0:1,s=t[o[a]],l=[0,s],u=this.dimensions.length,h=Mc(e.get("axisExpandWidth"),l),c=Mc(e.get("axisExpandCount")||0,[0,u]),p=e.get("axisExpandable")&&u>3&&u>c&&c>1&&h>0&&s>0,d=e.get("axisExpandWindow"),f;if(d)f=Mc(d[1]-d[0],l),d[1]=d[0]+f;else{f=Mc(h*(c-1),l);var g=e.get("axisExpandCenter")||H2(u/2);d=[h*g-f/2],d[1]=d[0]+f}var y=(s-f)/(u-c);y<3&&(y=0);var v=[H2(Y2(d[0]/h,1))+1,VW(Y2(d[1]/h,1))-1],m=y/h*d[0];return{layout:r,pixelDimIndex:a,layoutBase:t[i[a]],layoutLength:s,axisBase:t[i[1-a]],axisLength:t[o[1-a]],axisExpandable:p,axisExpandWidth:h,axisCollapseWidth:y,axisExpandWindow:d,axisCount:u,winInnerIndices:v,axisExpandWindow0Pos:m}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,i=this.dimensions,o=this._makeLayoutInfo(),r=o.layout;t.each(function(a){var s=[0,o.axisLength],l=a.inverse?1:0;a.setExtent(s[l],s[1-l])}),$y(i,function(a,s){var l=(o.axisExpandable?WW:FW)(s,o),u={horizontal:{x:l.position,y:o.axisLength},vertical:{x:0,y:l.position}},h={horizontal:BW/2,vertical:0},c=[u[r].x+e.x,u[r].y+e.y],p=h[r],d=Ne();Ti(d,d,p),vn(d,d,c),this._axesLayout[a]={position:c,rotation:p,transform:d,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,i,o){i==null&&(i=0),o==null&&(o=e.count());var r=this._axesMap,a=this.dimensions,s=[],l=[];T(a,function(y){s.push(e.mapDimension(y)),l.push(r.get(y).model)});for(var u=this.hasAxisBrushed(),h=i;hr*(1-c[0])?(u="jump",l=s-r*(1-c[2])):(l=s-r*c[1])>=0&&(l=s-r*(1-c[1]))<=0&&(l=0),l*=t.axisExpandWidth/h,l?yr(l,o,a,"all"):u="none";else{var d=o[1]-o[0],f=a[1]*s/d;o=[W2(0,f-d/2)],o[1]=F2(a[1],o[0]+d),o[0]=o[1]-d}return{axisExpandWindow:o,behavior:u}},n}();function Mc(n,e){return F2(W2(n,e[0]),e[1])}function FW(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function WW(n,e){var t=e.layoutLength,i=e.axisExpandWidth,o=e.axisCount,r=e.axisCollapseWidth,a=e.winInnerIndices,s,l=r,u=!1,h;return n=0;o--)We(i[o])},e.prototype.getActiveState=function(t){var i=this.activeIntervals;if(!i.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(i.length===1){var o=i[0];if(o[0]<=t&&t<=o[1])return"active"}else for(var r=0,a=i.length;rqW}function tT(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function eT(n,e,t,i){var o=new it;return o.add(new wt({name:"main",style:iv(t),silent:!0,draggable:!0,cursor:"move",drift:rt(oT,n,e,o,["n","s","w","e"]),ondragend:rt(mr,e,{isEnd:!0})})),T(i,function(r){o.add(new wt({name:r.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:rt(oT,n,e,o,r),ondragend:rt(mr,e,{isEnd:!0})}))}),o}function nT(n,e,t,i){var o=i.brushStyle.lineWidth||0,r=Ca(o,KW),a=t[0][0],s=t[1][0],l=a-o/2,u=s-o/2,h=t[0][1],c=t[1][1],p=h-r+o/2,d=c-r+o/2,f=h-a,g=c-s,y=f+o,v=g+o;mi(n,e,"main",a,s,f,g),i.transformable&&(mi(n,e,"w",l,u,r,v),mi(n,e,"e",p,u,r,v),mi(n,e,"n",l,u,y,r),mi(n,e,"s",l,d,y,r),mi(n,e,"nw",l,u,r,r),mi(n,e,"ne",p,u,r,r),mi(n,e,"sw",l,d,r,r),mi(n,e,"se",p,d,r,r))}function nv(n,e){var t=e.__brushOption,i=t.transformable,o=e.childAt(0);o.useStyle(iv(t)),o.attr({silent:!i,cursor:i?"move":"default"}),T([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(r){var a=e.childOfName(r.join("")),s=r.length===1?ov(n,r[0]):iH(n,r);a&&a.attr({silent:!i,invisible:!i,cursor:i?QW[s]+"-resize":null})})}function mi(n,e,t,i,o,r,a){var s=e.childOfName(t);s&&s.setShape(rH(rv(n,e,[[i,o],[i+r,o+a]])))}function iv(n){return Q({strokeNoScale:!0},n.brushStyle)}function iT(n,e,t,i){var o=[Ll(n,t),Ll(e,i)],r=[Ca(n,t),Ca(e,i)];return[[o[0],r[0]],[o[1],r[1]]]}function nH(n){return Vi(n.group)}function ov(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},o=Ju(t[e],nH(n));return i[o]}function iH(n,e){var t=[ov(n,e[0]),ov(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function oT(n,e,t,i,o,r){var a=t.__brushOption,s=n.toRectRange(a.range),l=rT(e,o,r);T(i,function(u){var h=$W[u];s[h[0]][h[1]]+=l[h[0]]}),a.range=n.fromRectRange(iT(s[0][0],s[1][0],s[0][1],s[1][1])),Qy(e,t),mr(e,{isEnd:!1})}function oH(n,e,t,i){var o=e.__brushOption.range,r=rT(n,t,i);T(o,function(a){a[0]+=r[0],a[1]+=r[1]}),Qy(n,e),mr(n,{isEnd:!1})}function rT(n,e,t){var i=n.group,o=i.transformCoordToLocal(e,t),r=i.transformCoordToLocal(0,0);return[o[0]-r[0],o[1]-r[1]]}function rv(n,e,t){var i=J2(n,e);return i&&i!==vr?i.clipPath(t,n._transform):et(t)}function rH(n){var e=Ll(n[0][0],n[1][0]),t=Ll(n[0][1],n[1][1]),i=Ca(n[0][0],n[1][0]),o=Ca(n[0][1],n[1][1]);return{x:e,y:t,width:i-e,height:o-t}}function aH(n,e,t){if(!(!n._brushType||lH(n,e.offsetX,e.offsetY))){var i=n._zr,o=n._covers,r=tv(n,e,t);if(!n._dragging)for(var a=0;ai.getWidth()||t<0||t>i.getHeight()}var Ic={lineX:uT(0),lineY:uT(1),rect:{createCover:function(n,e){function t(i){return i}return eT({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=tT(n);return iT(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,i){nT(n,e,t,i)},updateCommon:nv,contain:sv},polygon:{createCover:function(n,e){var t=new it;return t.add(new Ae({name:"main",style:iv(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new Ce({name:"main",draggable:!0,drift:rt(oH,n,e),ondragend:rt(mr,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,i){e.childAt(0).setShape({points:rv(n,e,t)})},updateCommon:nv,contain:sv}};function uT(n){return{createCover:function(e,t){return eT({toRectRange:function(i){var o=[i,[0,100]];return n&&o.reverse(),o},fromRectRange:function(i){return i[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=tT(e),i=Ll(t[0][n],t[1][n]),o=Ca(t[0][n],t[1][n]);return[i,o]},updateCoverShape:function(e,t,i,o){var r,a=J2(e,t);if(a!==vr&&a.getLinearBrushOtherExtent)r=a.getLinearBrushOtherExtent(n);else{var s=e._zr;r=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[i,r];n&&l.reverse(),nT(e,t,l,o)},updateCommon:nv,contain:sv}}const lv=tH;function hT(n){return n=uv(n),function(e){return qd(e,n)}}function cT(n,e){return n=uv(n),function(t){var i=e??t,o=i?n.width:n.height,r=i?n.x:n.y;return[r,r+(o||0)]}}function pT(n,e,t){var i=uv(n);return function(o,r){return i.contain(r[0],r[1])&&!hc(o,e,t)}}function uv(n){return ct.create(n)}var uH=["axisLine","axisTickLabel","axisName"],hH=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){n.prototype.init.apply(this,arguments),(this._brushController=new lv(i.getZr())).on("brush",Z(this._onBrush,this))},e.prototype.render=function(t,i,o,r){if(!cH(t,i,r)){this.axisModel=t,this.api=o,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new it,this.group.add(this._axisGroup),!!t.get("show")){var s=dH(t,i),l=s.coordinateSystem,u=t.getAreaSelectStyle(),h=u.width,c=t.axis.dim,p=l.getAxisLayout(c),d=V({strokeContainThreshold:h},p),f=new yi(t,d);T(uH,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(d,u,t,s,h,o),ks(a,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,i,o,r,a,s){var l=o.axis.getExtent(),u=l[1]-l[0],h=Math.min(30,Math.abs(u)*.1),c=ct.create({x:l[0],y:-a/2,width:u,height:a});c.x-=h,c.width+=2*h,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:hT(c),isTargetByCursor:pT(c,s,r),getLinearBrushOtherExtent:cT(c,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers(pH(o))},e.prototype._onBrush=function(t){var i=t.areas,o=this.axisModel,r=o.axis,a=G(i,function(s){return[r.coordToData(s.range[0],!0),r.coordToData(s.range[1],!0)]});(!o.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:o.id,intervals:a})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Bt);function cH(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function pH(n){var e=n.axis;return G(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function dH(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const fH=hH;var gH={type:"axisAreaSelect",event:"axisAreaSelected"};function yH(n){n.registerAction(gH,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(i){i.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(i){i.setAxisExpand(e)})})}var vH={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function dT(n){n.registerComponentView(OW),n.registerComponentModel(RW),n.registerCoordinateSystem("parallel",ZW),n.registerPreprocessor(CW),n.registerComponentModel(Z2),n.registerComponentView(fH),ba(n,"parallel",Z2,vH),yH(n)}function mH(n){dt(dT),n.registerChartView(xW),n.registerSeriesModel(SW),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,TW)}var xH=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),_H=function(n){N(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new xH},e.prototype.buildPath=function(t,i){var o=i.extent;t.moveTo(i.x1,i.y1),t.bezierCurveTo(i.cpx1,i.cpy1,i.cpx2,i.cpy2,i.x2,i.y2),i.orient==="vertical"?(t.lineTo(i.x2+o,i.y2),t.bezierCurveTo(i.cpx2+o,i.cpy2,i.cpx1+o,i.cpy1,i.x1+o,i.y1)):(t.lineTo(i.x2,i.y2+o),t.bezierCurveTo(i.cpx2,i.cpy2+o,i.cpx1,i.cpy1+o,i.x1,i.y1+o)),t.closePath()},e.prototype.highlight=function(){ui(this)},e.prototype.downplay=function(){hi(this)},e}(vt),bH=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,i,o){var r=this,a=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,h=l.height,c=t.getData(),p=t.getData("edge"),d=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,a.eachEdge(function(f){var g=new _H,y=ot(g);y.dataIndex=f.dataIndex,y.seriesIndex=t.seriesIndex,y.dataType="edge";var v=f.getModel(),m=v.getModel("lineStyle"),x=m.get("curveness"),_=f.node1.getLayout(),w=f.node1.getModel(),b=w.get("localX"),S=w.get("localY"),M=f.node2.getLayout(),I=f.node2.getModel(),C=I.get("localX"),A=I.get("localY"),D=f.getLayout(),k,L,P,O,z,R,E,F;g.shape.extent=Math.max(1,D.dy),g.shape.orient=d,d==="vertical"?(k=(b!=null?b*u:_.x)+D.sy,L=(S!=null?S*h:_.y)+_.dy,P=(C!=null?C*u:M.x)+D.ty,O=A!=null?A*h:M.y,z=k,R=L*(1-x)+O*x,E=P,F=L*x+O*(1-x)):(k=(b!=null?b*u:_.x)+_.dx,L=(S!=null?S*h:_.y)+D.sy,P=C!=null?C*u:M.x,O=(A!=null?A*h:M.y)+D.ty,z=k*(1-x)+P*x,R=L,E=k*x+P*(1-x),F=O),g.setShape({x1:k,y1:L,x2:P,y2:O,cpx1:z,cpy1:R,cpx2:E,cpy2:F}),g.useStyle(m.getItemStyle()),fT(g.style,d,f);var W=""+v.get("value"),X=ne(v,"edgeLabel");he(g,X,{labelFetcher:{getFormattedLabel:function(ft,xt,gt,nt,yt,lt){return t.getFormattedLabel(ft,xt,"edge",nt,yn(yt,X.normal&&X.normal.get("formatter"),W),lt)}},labelDataIndex:f.dataIndex,defaultText:W}),g.setTextConfig({position:"inside"});var $=v.getModel("emphasis");ue(g,v,"lineStyle",function(ft){var xt=ft.getItemStyle();return fT(xt,d,f),xt}),s.add(g),p.setItemGraphicEl(f.dataIndex,g);var J=$.get("focus");Ht(g,J==="adjacency"?f.getAdjacentDataIndices():J==="trajectory"?f.getTrajectoryDataIndices():J,$.get("blurScope"),$.get("disabled"))}),a.eachNode(function(f){var g=f.getLayout(),y=f.getModel(),v=y.get("localX"),m=y.get("localY"),x=y.getModel("emphasis"),_=y.get(["itemStyle","borderRadius"])||0,w=new wt({shape:{x:v!=null?v*u:g.x,y:m!=null?m*h:g.y,width:g.dx,height:g.dy,r:_},style:y.getModel("itemStyle").getItemStyle(),z2:10});he(w,ne(y),{labelFetcher:{getFormattedLabel:function(S,M){return t.getFormattedLabel(S,M,"node")}},labelDataIndex:f.dataIndex,defaultText:f.id}),w.disableLabelAnimation=!0,w.setStyle("fill",f.getVisual("color")),w.setStyle("decal",f.getVisual("style").decal),ue(w,y),s.add(w),c.setItemGraphicEl(f.dataIndex,w),ot(w).dataType="node";var b=x.get("focus");Ht(w,b==="adjacency"?f.getAdjacentDataIndices():b==="trajectory"?f.getTrajectoryDataIndices():b,x.get("blurScope"),x.get("disabled"))}),c.eachItemGraphicEl(function(f,g){var y=c.getItemModel(g);y.get("draggable")&&(f.drift=function(v,m){r._focusAdjacencyDisabled=!0,this.shape.x+=v,this.shape.y+=m,this.dirty(),o.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/h})},f.ondragend=function(){r._focusAdjacencyDisabled=!1},f.draggable=!0,f.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(wH(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Ot);function fT(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var i=t.node1.getVisual("color"),o=t.node2.getVisual("color");Y(i)&&Y(o)&&(n.fill=new Hr(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:i,offset:0},{color:o,offset:1}]))}}function wH(n,e,t){var i=new wt({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return Vt(i,{shape:{width:n.width+20}},e,t),i}const SH=bH;var MH=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){var o=t.edges||t.links,r=t.data||t.nodes,a=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[a[l].depth]=new Pt(a[l],this,i));if(r&&o){var u=E2(r,o,this,!0,h);return u.data}function h(c,p){c.wrapMethod("getItemModel",function(d,f){var g=d.parentModel,y=g.getData().getItemLayout(f);if(y){var v=y.depth,m=g.levelModels[v];m&&(d.parentModel=m)}return d}),p.wrapMethod("getItemModel",function(d,f){var g=d.parentModel,y=g.getGraph().getEdgeByIndex(f),v=y.node1.getLayout();if(v){var m=v.depth,x=g.levelModels[m];x&&(d.parentModel=x)}return d})}},e.prototype.setNodePosition=function(t,i){var o=this.option.data||this.option.nodes,r=o[t];r.localX=i[0],r.localY=i[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,i,o){function r(d){return isNaN(d)||d==null}if(o==="edge"){var a=this.getDataParams(t,o),s=a.data,l=a.value,u=s.source+" -- "+s.target;return ie("nameValue",{name:u,value:l,noValue:r(l)})}else{var h=this.getGraph().getNodeByIndex(t),c=h.getLayout().value,p=this.getDataParams(t,o).data.name;return ie("nameValue",{name:p!=null?p+"":null,value:c,noValue:r(c)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,i){var o=n.prototype.getDataParams.call(this,t,i);if(o.value==null&&i==="node"){var r=this.getGraph().getNodeByIndex(t),a=r.getLayout().value;o.value=a}return o},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(zt);const IH=MH;function TH(n,e){n.eachSeriesByType("sankey",function(t){var i=t.get("nodeWidth"),o=t.get("nodeGap"),r=CH(t,e);t.layoutInfo=r;var a=r.width,s=r.height,l=t.getGraph(),u=l.nodes,h=l.edges;DH(u);var c=Dt(u,function(g){return g.getLayout().value===0}),p=c.length!==0?0:t.get("layoutIterations"),d=t.get("orient"),f=t.get("nodeAlign");AH(u,h,i,o,a,s,p,d,f)})}function CH(n,e){return Kt(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function AH(n,e,t,i,o,r,a,s,l){kH(n,e,t,o,r,s,l),NH(n,e,r,o,i,a,s),HH(n,s)}function DH(n){T(n,function(e){var t=to(e.outEdges,Tc),i=to(e.inEdges,Tc),o=e.getValue()||0,r=Math.max(t,i,o);e.setLayout({value:r},!0)})}function kH(n,e,t,i,o,r,a){for(var s=[],l=[],u=[],h=[],c=0,p=0;p=0;v&&y.depth>d&&(d=y.depth),g.setLayout({depth:v?y.depth:c},!0),r==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var m=0;mc-1?d:c-1;a&&a!=="left"&&LH(n,a,r,S);var M=r==="vertical"?(o-t)/S:(i-t)/S;OH(n,M,r)}function gT(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function LH(n,e,t,i){if(e==="right"){for(var o=[],r=n,a=0;r.length;){for(var s=0;s0;r--)l*=.99,EH(s,l,a),hv(s,o,t,i,a),WH(s,l,a),hv(s,o,t,i,a)}function RH(n,e){var t=[],i=e==="vertical"?"y":"x",o=hd(n,function(r){return r.getLayout()[i]});return o.keys.sort(function(r,a){return r-a}),T(o.keys,function(r){t.push(o.buckets.get(r))}),t}function zH(n,e,t,i,o,r){var a=1/0;T(n,function(s){var l=s.length,u=0;T(s,function(c){u+=c.getLayout().value});var h=r==="vertical"?(i-(l-1)*o)/u:(t-(l-1)*o)/u;h0&&(s=l.getLayout()[r]+u,o==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),h=l.getLayout()[r]+l.getLayout()[p]+e;var f=o==="vertical"?i:t;if(u=h-e-f,u>0){s=l.getLayout()[r]-u,o==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),h=s;for(var d=c-2;d>=0;--d)l=a[d],u=l.getLayout()[r]+l.getLayout()[p]+e-h,u>0&&(s=l.getLayout()[r]-u,o==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),h=l.getLayout()[r]}})}function EH(n,e,t){T(n.slice().reverse(),function(i){T(i,function(o){if(o.outEdges.length){var r=to(o.outEdges,VH,t)/to(o.outEdges,Tc);if(isNaN(r)){var a=o.outEdges.length;r=a?to(o.outEdges,BH,t)/a:0}if(t==="vertical"){var s=o.getLayout().x+(r-Ji(o,t))*e;o.setLayout({x:s},!0)}else{var l=o.getLayout().y+(r-Ji(o,t))*e;o.setLayout({y:l},!0)}}})})}function VH(n,e){return Ji(n.node2,e)*n.getValue()}function BH(n,e){return Ji(n.node2,e)}function GH(n,e){return Ji(n.node1,e)*n.getValue()}function FH(n,e){return Ji(n.node1,e)}function Ji(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function Tc(n){return n.getValue()}function to(n,e,t){for(var i=0,o=n.length,r=-1;++ra&&(a=l)}),T(i,function(s){var l=new pe({type:"color",mappingMethod:"linear",dataExtent:[r,a],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),h=s.getModel().get(["itemStyle","color"]);h!=null?(s.setVisual("color",h),s.setVisual("style",{fill:h})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}o.length&&T(o,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function XH(n){n.registerChartView(SH),n.registerSeriesModel(IH),n.registerLayout(TH),n.registerVisual(YH),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(i){i.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var yT=function(){function n(){}return n.prototype.getInitialData=function(e,t){var i,o=t.getComponent("xAxis",this.get("xAxisIndex")),r=t.getComponent("yAxis",this.get("yAxisIndex")),a=o.get("type"),s=r.get("type"),l;a==="category"?(e.layout="horizontal",i=o.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",i=r.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],h=e.layout==="horizontal"?0:1,c=this._baseAxisDim=u[h],p=u[1-h],d=[o,r],f=d[h].get("type"),g=d[1-h].get("type"),y=e.data;if(y&&l){var v=[];T(y,function(_,w){var b;B(_)?(b=_.slice(),_.unshift(w)):B(_.value)?(b=V({},_),b.value=b.value.slice(),_.value.unshift(w)):b=_,v.push(b)}),e.data=v}var m=this.defaultValueDimensions,x=[{name:c,type:Eh(f),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:p,type:Eh(g),dimsDef:m.slice()}];return _a(this,{coordDimensions:x,dimensionsCount:m.length+1,encodeDefaulter:rt(v_,x,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),vT=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(zt);Xt(vT,yT,!0);const ZH=vT;var UH=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=t.getData(),a=this.group,s=this._data;this._data||a.removeAll();var l=t.get("layout")==="horizontal"?1:0;r.diff(s).add(function(u){if(r.hasValue(u)){var h=r.getItemLayout(u),c=mT(h,r,u,l,!0);r.setItemGraphicEl(u,c),a.add(c)}}).update(function(u,h){var c=s.getItemGraphicEl(h);if(!r.hasValue(u)){a.remove(c);return}var p=r.getItemLayout(u);c?(Mn(c),xT(p,c,r,u)):c=mT(p,r,u,l),a.add(c),r.setItemGraphicEl(u,c)}).remove(function(u){var h=s.getItemGraphicEl(u);h&&a.remove(h)}).execute(),this._data=r},e.prototype.remove=function(t){var i=this.group,o=this._data;this._data=null,o&&o.eachItemGraphicEl(function(r){r&&i.remove(r)})},e.type="boxplot",e}(Ot),jH=function(){function n(){}return n}(),qH=function(n){N(e,n);function e(t){var i=n.call(this,t)||this;return i.type="boxplotBoxPath",i}return e.prototype.getDefaultShape=function(){return new jH},e.prototype.buildPath=function(t,i){var o=i.points,r=0;for(t.moveTo(o[r][0],o[r][1]),r++;r<4;r++)t.lineTo(o[r][0],o[r][1]);for(t.closePath();rg){var _=[v,x];i.push(_)}}}return{boxData:t,outliers:i}}var i6={type:"echarts:boxplot",transform:function(n){var e=n.upstream;if(e.sourceFormat!==me){var t="";At(t)}var i=n6(e.getRawData(),n.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function o6(n){n.registerSeriesModel(ZH),n.registerChartView($H),n.registerLayout(QH),n.registerTransform(i6)}var r6=["color","borderColor"],a6=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,i,o){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,i,o,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,i):this._incrementalRenderNormal(t,i)},e.prototype.eachRendered=function(t){Bi(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(t){var i=t.getData(),o=this._data,r=this.group,a=i.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||r.removeAll(),i.diff(o).add(function(h){if(i.hasValue(h)){var c=i.getItemLayout(h);if(s&&_T(u,c))return;var p=cv(c,h,!0);Vt(p,{shape:{points:c.ends}},t,h),pv(p,i,h,a),r.add(p),i.setItemGraphicEl(h,p)}}).update(function(h,c){var p=o.getItemGraphicEl(c);if(!i.hasValue(h)){r.remove(p);return}var d=i.getItemLayout(h);if(s&&_T(u,d)){r.remove(p);return}p?(Ct(p,{shape:{points:d.ends}},t,h),Mn(p)):p=cv(d),pv(p,i,h,a),r.add(p),i.setItemGraphicEl(h,p)}).remove(function(h){var c=o.getItemGraphicEl(h);c&&r.remove(c)}).execute(),this._data=i},e.prototype._renderLarge=function(t){this._clear(),bT(t,this.group);var i=t.get("clip",!0)?cl(t.coordinateSystem,!1,t):null;i?this.group.setClipPath(i):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,i){for(var o=i.getData(),r=o.getLayout("isSimpleBox"),a;(a=t.next())!=null;){var s=o.getItemLayout(a),l=cv(s);pv(l,o,a,r),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,i){bT(i,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Ot),s6=function(){function n(){}return n}(),l6=function(n){N(e,n);function e(t){var i=n.call(this,t)||this;return i.type="normalCandlestickBox",i}return e.prototype.getDefaultShape=function(){return new s6},e.prototype.buildPath=function(t,i){var o=i.points;this.__simpleBox?(t.moveTo(o[4][0],o[4][1]),t.lineTo(o[6][0],o[6][1])):(t.moveTo(o[0][0],o[0][1]),t.lineTo(o[1][0],o[1][1]),t.lineTo(o[2][0],o[2][1]),t.lineTo(o[3][0],o[3][1]),t.closePath(),t.moveTo(o[4][0],o[4][1]),t.lineTo(o[5][0],o[5][1]),t.moveTo(o[6][0],o[6][1]),t.lineTo(o[7][0],o[7][1]))},e}(vt);function cv(n,e,t){var i=n.ends;return new l6({shape:{points:t?u6(i,n):i},z2:100})}function _T(n,e){for(var t=!0,i=0;i0?"borderColor":"borderColor0"])||t.get(["itemStyle",n>0?"color":"color0"]);n===0&&(o=t.get(["itemStyle","borderColorDoji"]));var r=t.getModel("itemStyle").getItemStyle(r6);e.useStyle(r),e.style.fill=null,e.style.stroke=o}const c6=a6;var wT=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,i,o){var r=i.getItemLayout(t);return r&&o.rect(r.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(zt);Xt(wT,yT,!0);const p6=wT;function d6(n){!n||!B(n.series)||T(n.series,function(e){tt(e)&&e.type==="k"&&(e.type="candlestick")})}var f6=["itemStyle","borderColor"],g6=["itemStyle","borderColor0"],y6=["itemStyle","borderColorDoji"],v6=["itemStyle","color"],m6=["itemStyle","color0"],x6={seriesType:"candlestick",plan:sa(),performRawSeries:!0,reset:function(n,e){function t(r,a){return a.get(r>0?v6:m6)}function i(r,a){return a.get(r===0?y6:r>0?f6:g6)}if(!e.isSeriesFiltered(n)){var o=n.pipelineContext.large;return!o&&{progress:function(r,a){for(var s;(s=r.next())!=null;){var l=a.getItemModel(s),u=a.getItemLayout(s).sign,h=l.getItemStyle();h.fill=t(u,l),h.stroke=i(u,l)||h.fill;var c=a.ensureUniqueItemVisual(s,"style");V(c,h)}}}}}};const _6=x6;var b6={seriesType:"candlestick",plan:sa(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),i=w6(n,t),o=0,r=1,a=["x","y"],s=t.getDimensionIndex(t.mapDimension(a[o])),l=G(t.mapDimensionsAll(a[r]),t.getDimensionIndex,t),u=l[0],h=l[1],c=l[2],p=l[3];if(t.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?f:d};function d(g,y){for(var v,m=y.getStore();(v=g.next())!=null;){var x=m.get(s,v),_=m.get(u,v),w=m.get(h,v),b=m.get(c,v),S=m.get(p,v),M=Math.min(_,w),I=Math.max(_,w),C=z(M,x),A=z(I,x),D=z(b,x),k=z(S,x),L=[];R(L,A,0),R(L,C,1),L.push(F(k),F(A),F(D),F(C));var P=y.getItemModel(v),O=!!P.get(["itemStyle","borderColorDoji"]);y.setItemLayout(v,{sign:ST(m,v,_,w,h,O),initBaseline:_>w?A[r]:C[r],ends:L,brushRect:E(b,S,x)})}function z(W,X){var $=[];return $[o]=X,$[r]=W,isNaN(X)||isNaN(W)?[NaN,NaN]:e.dataToPoint($)}function R(W,X,$){var J=X.slice(),ft=X.slice();J[o]=Qu(J[o]+i/2,1,!1),ft[o]=Qu(ft[o]-i/2,1,!0),$?W.push(J,ft):W.push(ft,J)}function E(W,X,$){var J=z(W,$),ft=z(X,$);return J[o]-=i/2,ft[o]-=i/2,{x:J[0],y:J[1],width:i,height:ft[1]-J[1]}}function F(W){return W[o]=Qu(W[o],1),W}}function f(g,y){for(var v=Zn(g.count*4),m=0,x,_=[],w=[],b,S=y.getStore(),M=!!n.get(["itemStyle","borderColorDoji"]);(b=g.next())!=null;){var I=S.get(s,b),C=S.get(u,b),A=S.get(h,b),D=S.get(c,b),k=S.get(p,b);if(isNaN(I)||isNaN(D)||isNaN(k)){v[m++]=NaN,m+=3;continue}v[m++]=ST(S,b,C,A,h,M),_[o]=I,_[r]=D,x=e.dataToPoint(_,null,w),v[m++]=x?x[0]:NaN,v[m++]=x?x[1]:NaN,_[r]=k,x=e.dataToPoint(_,null,w),v[m++]=x?x[1]:NaN}y.setLayout("largePoints",v)}}};function ST(n,e,t,i,o,r){var a;return t>i?a=-1:t0?n.get(o,e-1)<=i?1:-1:1,a}function w6(n,e){var t=n.getBaseAxis(),i,o=t.type==="category"?t.getBandWidth():(i=t.getExtent(),Math.abs(i[1]-i[0])/e.count()),r=H(at(n.get("barMaxWidth"),o),o),a=H(at(n.get("barMinWidth"),1),o),s=n.get("barWidth");return s!=null?H(s,o):Math.max(Math.min(o/2,r),a)}const S6=b6;function M6(n){n.registerChartView(c6),n.registerSeriesModel(p6),n.registerPreprocessor(d6),n.registerVisual(_6),n.registerLayout(S6)}function MT(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(i){i.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var I6=function(n){N(e,n);function e(t,i){var o=n.call(this)||this,r=new ul(t,i),a=new it;return o.add(r),o.add(a),o.updateData(t,i),o}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var i=t.symbolType,o=t.color,r=t.rippleNumber,a=this.childAt(1),s=0;s0&&(s=this._getLineLength(r)/h*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){r.stopAnimation();var p=void 0;K(c)?p=c(o):p=c,r.__t>0&&(p=-s*r.__t),this._animateSymbol(r,s,p,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,i,o,r,a){if(i>0){t.__t=0;var s=this,l=t.animate("",r).when(a?i*2:i,{__t:a?2:1}).delay(o).during(function(){s._updateSymbolPosition(t)});r||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return ti(t.__p1,t.__cp1)+ti(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,i){t.__p1=i[0],t.__p2=i[1],t.__cp1=i[2]||[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2]},e.prototype.updateData=function(t,i,o){this.childAt(0).updateData(t,i,o),this._updateEffectSymbol(t,i)},e.prototype._updateSymbolPosition=function(t){var i=t.__p1,o=t.__p2,r=t.__cp1,a=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=ae,h=Mp;s[0]=u(i[0],r[0],o[0],a),s[1]=u(i[1],r[1],o[1],a);var c=t.__t<1?h(i[0],r[0],o[0],a):h(o[0],r[0],i[0],1-a),p=t.__t<1?h(i[1],r[1],o[1],a):h(o[1],r[1],i[1],1-a);t.rotation=-Math.atan2(p,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(r[l]<=i);l--);l=Math.min(l,a-2)}else{for(l=s;li);l++);l=Math.min(l-1,a-2)}var h=(i-r[l])/(r[l+1]-r[l]),c=o[l],p=o[l+1];t.x=c[0]*(1-h)+h*p[0],t.y=c[1]*(1-h)+h*p[1];var d=t.__t<1?p[0]-c[0]:c[0]-p[0],f=t.__t<1?p[1]-c[1]:c[1]-p[1];t.rotation=-Math.atan2(f,d)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=i,t.ignore=!1}},e}(IT);const R6=N6;var z6=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),E6=function(n){N(e,n);function e(t){var i=n.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new z6},e.prototype.buildPath=function(t,i){var o=i.segs,r=i.curveness,a;if(i.polyline)for(a=this._off;a0){t.moveTo(o[a++],o[a++]);for(var l=1;l0){var d=(u+c)/2-(h-p)*r,f=(h+p)/2-(c-u)*r;t.quadraticCurveTo(d,f,c,p)}else t.lineTo(c,p)}this.incremental&&(this._off=a,this.notClear=!0)},e.prototype.findDataIndex=function(t,i){var o=this.shape,r=o.segs,a=o.curveness,s=this.style.lineWidth;if(o.polyline)for(var l=0,u=0;u0)for(var c=r[u++],p=r[u++],d=1;d0){var y=(c+f)/2-(p-g)*a,v=(p+g)/2-(f-c)*a;if(I1(c,p,y,v,f,g,s,t,i))return l}else if(Ni(c,p,f,g,s,t,i))return l;l++}return-1},e.prototype.contain=function(t,i){var o=this.transformCoordToLocal(t,i),r=this.getBoundingRect();if(t=o[0],i=o[1],r.contain(t,i)){var a=this.hoverDataIdx=this.findDataIndex(t,i);return a>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,o=i.segs,r=1/0,a=1/0,s=-1/0,l=-1/0,u=0;u0&&(a.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const B6=V6;var G6={seriesType:"lines",plan:sa(),reset:function(n){var e=n.coordinateSystem;if(e){var t=n.get("polyline"),i=n.pipelineContext.large;return{progress:function(o,r){var a=[];if(i){var s=void 0,l=o.end-o.start;if(t){for(var u=0,h=o.start;h0&&(h||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),a.updateData(r);var c=t.get("clip",!0)&&cl(t.coordinateSystem,!1,t);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,o){var r=t.getData(),a=this._updateLineDraw(r,t);a.incrementalPrepareUpdate(r),this._clearLayer(o),this._finished=!1},e.prototype.incrementalRender=function(t,i,o){this._lineDraw.incrementalUpdate(t,i.getData()),this._finished=t.end===i.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,i,o){var r=t.getData(),a=t.pipelineContext;if(!this._finished||a.large||a.progressiveRender)return{update:!0};var s=CT.reset(t,i,o);s.progress&&s.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(o)},e.prototype._updateLineDraw=function(t,i){var o=this._lineDraw,r=this._showEffect(i),a=!!i.get("polyline"),s=i.pipelineContext,l=s.large;return(!o||r!==this._hasEffet||a!==this._isPolyline||l!==this._isLargeDraw)&&(o&&o.remove(),o=this._lineDraw=l?new B6:new Wy(a?r?R6:TT:r?IT:Gy),this._hasEffet=r,this._isPolyline=a,this._isLargeDraw=l),this.group.add(o.group),o},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var i=t.getZr(),o=i.painter.getType()==="svg";!o&&this._lastZlevel!=null&&i.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,i){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(i)},e.prototype.dispose=function(t,i){this.remove(t,i)},e.type="lines",e}(Ot);const W6=F6;var H6=typeof Uint32Array>"u"?Array:Uint32Array,Y6=typeof Float64Array>"u"?Array:Float64Array;function AT(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(n.data=G(e,function(t){var i=[t[0].coord,t[1].coord],o={coords:i};return t[0].name&&(o.fromName=t[0].name),t[1].name&&(o.toName=t[1].name),Ul([o,t[0],t[1]])}))}var X6=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],AT(t);var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(AT(t),t.data){var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var i=this._processFlatCoordsArray(t.data);i.flatCoords&&(this._flatCoords?(this._flatCoords=Fa(this._flatCoords,i.flatCoords),this._flatCoordsOffset=Fa(this._flatCoordsOffset,i.flatCoordsOffset)):(this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset),t.data=new Float32Array(i.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var i=this.getData().getItemModel(t),o=i.option instanceof Array?i.option:i.getShallow("coords");return o},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,i){if(this._flatCoordsOffset){for(var o=this._flatCoordsOffset[t*2],r=this._flatCoordsOffset[t*2+1],a=0;a ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),i=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&i>0?i+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(zt);const Z6=X6;function Cc(n){return n instanceof Array||(n=[n,n]),n}var U6={seriesType:"lines",reset:function(n){var e=Cc(n.get("symbol")),t=Cc(n.get("symbolSize")),i=n.getData();i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",t&&t[0]),i.setVisual("toSymbolSize",t&&t[1]);function o(r,a){var s=r.getItemModel(a),l=Cc(s.getShallow("symbol",!0)),u=Cc(s.getShallow("symbolSize",!0));l[0]&&r.setItemVisual(a,"fromSymbol",l[0]),l[1]&&r.setItemVisual(a,"toSymbol",l[1]),u[0]&&r.setItemVisual(a,"fromSymbolSize",u[0]),u[1]&&r.setItemVisual(a,"toSymbolSize",u[1])}return{dataEach:i.hasItemOption?o:null}}};const j6=U6;function q6(n){n.registerChartView(W6),n.registerSeriesModel(Z6),n.registerLayout(CT),n.registerVisual(j6)}var K6=256,$6=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=gn.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,i,o,r,a){var s=this._getBrush(),l=this._getGradient(r,"inRange"),u=this._getGradient(r,"outOfRange"),h=this.pointSize+this.blurSize,c=this.canvas,p=c.getContext("2d"),d=e.length;c.width=t,c.height=i;for(var f=0;f0){var D=a(x)?l:u;x>0&&(x=x*C+M),w[b++]=D[A],w[b++]=D[A+1],w[b++]=D[A+2],w[b++]=D[A+3]*x*256}else b+=4}return p.putImageData(_,0,0),c},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=gn.createCanvas()),t=this.pointSize+this.blurSize,i=t*2;e.width=i,e.height=i;var o=e.getContext("2d");return o.clearRect(0,0,i,i),o.shadowOffsetX=i,o.shadowBlur=this.blurSize,o.shadowColor="#000",o.beginPath(),o.arc(-t,t,this.pointSize,0,Math.PI*2,!0),o.closePath(),o.fill(),e},n.prototype._getGradient=function(e,t){for(var i=this._gradientPixels,o=i[t]||(i[t]=new Uint8ClampedArray(256*4)),r=[0,0,0,0],a=0,s=0;s<256;s++)e[t](s/255,!0,r),o[a++]=r[0],o[a++]=r[1],o[a++]=r[2],o[a++]=r[3];return o},n}();const Q6=$6;function J6(n,e,t){var i=n[1]-n[0];e=G(e,function(a){return{interval:[(a.interval[0]-n[0])/i,(a.interval[1]-n[0])/i]}});var o=e.length,r=0;return function(a){var s;for(s=r;s=0;s--){var l=e[s].interval;if(l[0]<=a&&a<=l[1]){r=s;break}}return s>=0&&s=e[0]&&i<=e[1]}}function DT(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var e8=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r;i.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(r=s)})}),this._progressiveEls=null,this.group.removeAll();var a=t.coordinateSystem;a.type==="cartesian2d"||a.type==="calendar"?this._renderOnCartesianAndCalendar(t,o,0,t.getData().count()):DT(a)&&this._renderOnGeo(a,t,r,o)},e.prototype.incrementalPrepareRender=function(t,i,o){this.group.removeAll()},e.prototype.incrementalRender=function(t,i,o,r){var a=i.coordinateSystem;a&&(DT(a)?this.render(i,o,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(i,r,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Bi(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,i,o,r,a){var s=t.coordinateSystem,l=sr(s,"cartesian2d"),u,h,c,p;if(l){var d=s.getAxis("x"),f=s.getAxis("y");u=d.getBandWidth()+.5,h=f.getBandWidth()+.5,c=d.scale.getExtent(),p=f.scale.getExtent()}for(var g=this.group,y=t.getData(),v=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),x=t.getModel(["select","itemStyle"]).getItemStyle(),_=t.get(["itemStyle","borderRadius"]),w=ne(t),b=t.getModel("emphasis"),S=b.get("focus"),M=b.get("blurScope"),I=b.get("disabled"),C=l?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],A=o;Ac[1]||Pp[1])continue;var O=s.dataToPoint([L,P]);D=new wt({shape:{x:O[0]-u/2,y:O[1]-h/2,width:u,height:h},style:k})}else{if(isNaN(y.get(C[1],A)))continue;D=new wt({z2:1,shape:s.dataToRect([y.get(C[0],A)]).contentShape,style:k})}if(y.hasItemOption){var z=y.getItemModel(A),R=z.getModel("emphasis");v=R.getModel("itemStyle").getItemStyle(),m=z.getModel(["blur","itemStyle"]).getItemStyle(),x=z.getModel(["select","itemStyle"]).getItemStyle(),_=z.get(["itemStyle","borderRadius"]),S=R.get("focus"),M=R.get("blurScope"),I=R.get("disabled"),w=ne(z)}D.shape.r=_;var E=t.getRawValue(A),F="-";E&&E[2]!=null&&(F=E[2]+""),he(D,w,{labelFetcher:t,labelDataIndex:A,defaultOpacity:k.opacity,defaultText:F}),D.ensureState("emphasis").style=v,D.ensureState("blur").style=m,D.ensureState("select").style=x,Ht(D,S,M,I),D.incremental=a,a&&(D.states.emphasis.hoverLayer=!0),g.add(D),y.setItemGraphicEl(A,D),this._progressiveEls&&this._progressiveEls.push(D)}},e.prototype._renderOnGeo=function(t,i,o,r){var a=o.targetVisuals.inRange,s=o.targetVisuals.outOfRange,l=i.getData(),u=this._hmLayer||this._hmLayer||new Q6;u.blurSize=i.get("blurSize"),u.pointSize=i.get("pointSize"),u.minOpacity=i.get("minOpacity"),u.maxOpacity=i.get("maxOpacity");var h=t.getViewRect().clone(),c=t.getRoamTransform();h.applyTransform(c);var p=Math.max(h.x,0),d=Math.max(h.y,0),f=Math.min(h.width+h.x,r.getWidth()),g=Math.min(h.height+h.y,r.getHeight()),y=f-p,v=g-d,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(m,function(S,M,I){var C=t.dataToPoint([S,M]);return C[0]-=p,C[1]-=d,C.push(I),C}),_=o.getExtent(),w=o.type==="visualMap.continuous"?t8(_,o.option.range):J6(_,o.getPieceList(),o.option.selected);u.update(x,y,v,a.color.getNormalizer(),{inRange:a.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var b=new se({style:{width:y,height:v,x:p,y:d,image:u.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e}(Ot);const n8=e8;var i8=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return Xn(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=oa.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(zt);const o8=i8;function r8(n){n.registerChartView(n8),n.registerSeriesModel(o8)}var a8=["itemStyle","borderWidth"],kT=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],gv=new ci,s8=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),h=u.isHorizontal(),c=l.master.getRect(),p={ecSize:{width:o.getWidth(),height:o.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:h,valueDim:kT[+h],categoryDim:kT[1-+h]};a.diff(s).add(function(f){if(a.hasValue(f)){var g=ET(a,f),y=LT(a,f,g,p),v=VT(a,p,y);a.setItemGraphicEl(f,v),r.add(v),FT(v,p,y)}}).update(function(f,g){var y=s.getItemGraphicEl(g);if(!a.hasValue(f)){r.remove(y);return}var v=ET(a,f),m=LT(a,f,v,p),x=GT(a,m);y&&x!==y.__pictorialShapeStr&&(r.remove(y),a.setItemGraphicEl(f,null),y=null),y?f8(y,p,m):y=VT(a,p,m,!0),a.setItemGraphicEl(f,y),y.__pictorialSymbolMeta=m,r.add(y),FT(y,p,m)}).remove(function(f){var g=s.getItemGraphicEl(f);g&&BT(s,f,g.__pictorialSymbolMeta.animationModel,g)}).execute();var d=t.get("clip",!0)?cl(t.coordinateSystem,!1,t):null;return d?r.setClipPath(d):r.removeClipPath(),this._data=a,this.group},e.prototype.remove=function(t,i){var o=this.group,r=this._data;t.get("animation")?r&&r.eachItemGraphicEl(function(a){BT(r,ot(a).dataIndex,t,a)}):o.removeAll()},e.type="pictorialBar",e}(Ot);function LT(n,e,t,i){var o=n.getItemLayout(e),r=t.get("symbolRepeat"),a=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,h=t.get("symbolPatternSize")||2,c=t.isAnimationEnabled(),p={dataIndex:e,layout:o,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:r,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:h,rotation:u,animationModel:c?t:null,hoverScale:c&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};l8(t,r,o,i,p),u8(n,e,o,r,a,p.boundingLength,p.pxSign,h,i,p),h8(t,p.symbolScale,u,i,p);var d=p.symbolSize,f=jo(t.get("symbolOffset"),d);return c8(t,d,o,r,a,f,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,i,p),p}function l8(n,e,t,i,o){var r=i.valueDim,a=n.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[r.wh]<=0),h;if(B(a)){var c=[yv(s,a[0])-l,yv(s,a[1])-l];c[1]0?1:-1}function yv(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function u8(n,e,t,i,o,r,a,s,l,u){var h=l.valueDim,c=l.categoryDim,p=Math.abs(t[c.wh]),d=n.getItemVisual(e,"symbolSize"),f;B(d)?f=d.slice():d==null?f=["100%","100%"]:f=[d,d],f[c.index]=H(f[c.index],p),f[h.index]=H(f[h.index],i?p:Math.abs(r)),u.symbolSize=f;var g=u.symbolScale=[f[0]/s,f[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*a}function h8(n,e,t,i,o){var r=n.get(a8)||0;r&&(gv.attr({scaleX:e[0],scaleY:e[1],rotation:t}),gv.updateTransform(),r/=gv.getLineScale(),r*=e[i.valueDim.index]),o.valueLineWidth=r||0}function c8(n,e,t,i,o,r,a,s,l,u,h,c){var p=h.categoryDim,d=h.valueDim,f=c.pxSign,g=Math.max(e[d.index]+s,0),y=g;if(i){var v=Math.abs(l),m=Jt(n.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var _=H(m,e[d.index]),w=Math.max(g+_*2,0),b=x?0:_*2,S=sd(i),M=S?i:WT((v+b)/w),I=v-M*g;_=I/2/(x?M:Math.max(M-1,1)),w=g+_*2,b=x?0:_*2,!S&&i!=="fixed"&&(M=u?WT((Math.abs(u)+b)/w):0),y=M*w-b,c.repeatTimes=M,c.symbolMargin=_}var C=f*(y/2),A=c.pathPosition=[];A[p.index]=t[p.wh]/2,A[d.index]=a==="start"?C:a==="end"?l-C:l/2,r&&(A[0]+=r[0],A[1]+=r[1]);var D=c.bundlePosition=[];D[p.index]=t[p.xy],D[d.index]=t[d.xy];var k=c.barRectShape=V({},t);k[d.wh]=f*Math.max(Math.abs(t[d.wh]),Math.abs(A[d.index]+C)),k[p.wh]=t[p.wh];var L=c.clipShape={};L[p.xy]=-t[p.xy],L[p.wh]=h.ecSize[p.wh],L[d.xy]=0,L[d.wh]=t[d.wh]}function PT(n){var e=n.symbolPatternSize,t=Ut(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function OT(n,e,t,i){var o=n.__pictorialBundle,r=t.symbolSize,a=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,h=0,c=r[e.valueDim.index]+a+t.symbolMargin*2;for(vv(n,function(g){g.__pictorialAnimationIndex=h,g.__pictorialRepeatTimes=u,h0:v<0)&&(m=u-1-g),y[l.index]=c*(m-u/2+.5)+s[l.index],{x:y[0],y:y[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function NT(n,e,t,i){var o=n.__pictorialBundle,r=n.__pictorialMainPath;r?Aa(r,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,i):(r=n.__pictorialMainPath=PT(t),o.add(r),Aa(r,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,i))}function RT(n,e,t){var i=V({},e.barRectShape),o=n.__pictorialBarRect;o?Aa(o,null,{shape:i},e,t):(o=n.__pictorialBarRect=new wt({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),o.disableMorphing=!0,n.add(o))}function zT(n,e,t,i){if(t.symbolClip){var o=n.__pictorialClipPath,r=V({},t.clipShape),a=e.valueDim,s=t.animationModel,l=t.dataIndex;if(o)Ct(o,{shape:r},s,l);else{r[a.wh]=0,o=new wt({shape:r}),n.__pictorialBundle.setClipPath(o),n.__pictorialClipPath=o;var u={};u[a.wh]=t.clipShape[a.wh],Vo[i?"updateProps":"initProps"](o,{shape:u},s,l)}}}function ET(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=p8,t.isAnimationEnabled=d8,t}function p8(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function d8(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function VT(n,e,t,i){var o=new it,r=new it;return o.add(r),o.__pictorialBundle=r,r.x=t.bundlePosition[0],r.y=t.bundlePosition[1],t.symbolRepeat?OT(o,e,t):NT(o,e,t),RT(o,t,i),zT(o,e,t,i),o.__pictorialShapeStr=GT(n,t),o.__pictorialSymbolMeta=t,o}function f8(n,e,t){var i=t.animationModel,o=t.dataIndex,r=n.__pictorialBundle;Ct(r,{x:t.bundlePosition[0],y:t.bundlePosition[1]},i,o),t.symbolRepeat?OT(n,e,t,!0):NT(n,e,t,!0),RT(n,t,!0),zT(n,e,t,!0)}function BT(n,e,t,i){var o=i.__pictorialBarRect;o&&o.removeTextContent();var r=[];vv(i,function(a){r.push(a)}),i.__pictorialMainPath&&r.push(i.__pictorialMainPath),i.__pictorialClipPath&&(t=null),T(r,function(a){Ei(a,{scaleX:0,scaleY:0},t,e,function(){i.parent&&i.parent.remove(i)})}),n.setItemGraphicEl(e,null)}function GT(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function vv(n,e,t){T(n.__pictorialBundle.children(),function(i){i!==n.__pictorialBarRect&&e.call(t,i)})}function Aa(n,e,t,i,o,r){e&&n.attr(e),i.symbolClip&&!o?t&&n.attr(t):t&&Vo[o?"updateProps":"initProps"](n,t,i.animationModel,i.dataIndex,r)}function FT(n,e,t){var i=t.dataIndex,o=t.itemModel,r=o.getModel("emphasis"),a=r.getModel("itemStyle").getItemStyle(),s=o.getModel(["blur","itemStyle"]).getItemStyle(),l=o.getModel(["select","itemStyle"]).getItemStyle(),u=o.getShallow("cursor"),h=r.get("focus"),c=r.get("blurScope"),p=r.get("scale");vv(n,function(g){if(g instanceof se){var y=g.style;g.useStyle(V({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},t.style))}else g.useStyle(t.style);var v=g.ensureState("emphasis");v.style=a,p&&(v.scaleX=g.scaleX*1.1,v.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var d=e.valueDim.posDesc[+(t.boundingLength>0)],f=n.__pictorialBarRect;f.ignoreClip=!0,he(f,ne(o),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:xa(e.seriesModel.getData(),i),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:d}),Ht(n,h,c,r.get("disabled"))}function WT(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const g8=s8;var y8=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Gi(nc.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(nc);const v8=y8;function m8(n){n.registerChartView(g8),n.registerSeriesModel(v8),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,rt(qw,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Kw("pictorialBar"))}var x8=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,i,o){var r=t.getData(),a=this,s=this.group,l=t.getLayerSeries(),u=r.getLayout("layoutInfo"),h=u.rect,c=u.boundaryGap;s.x=0,s.y=h.y+c[0];function p(y){return y.name}var d=new di(this._layersSeries||[],l,p,p),f=[];d.add(Z(g,this,"add")).update(Z(g,this,"update")).remove(Z(g,this,"remove")).execute();function g(y,v,m){var x=a._layers;if(y==="remove"){s.remove(x[v]);return}for(var _=[],w=[],b,S=l[v].indices,M=0;Mr&&(r=s),i.push(s)}for(var u=0;ur&&(r=c)}return{y0:o,max:r}}function T8(n){n.registerChartView(b8),n.registerSeriesModel(S8),n.registerLayout(M8),n.registerProcessor(dl("themeRiver"))}var C8=2,A8=4,D8=function(n){N(e,n);function e(t,i,o,r){var a=n.call(this)||this;a.z2=C8,a.textConfig={inside:!0},ot(a).seriesIndex=i.seriesIndex;var s=new St({z2:A8,silent:t.getModel().get(["label","silent"])});return a.setTextContent(s),a.updateData(!0,t,i,o,r),a}return e.prototype.updateData=function(t,i,o,r,a){this.node=i,i.piece=this,o=o||this._seriesModel,r=r||this._ecModel;var s=this;ot(s).dataIndex=i.dataIndex;var l=i.getModel(),u=l.getModel("emphasis"),h=i.getLayout(),c=V({},h);c.label=null;var p=i.getVisual("style");p.lineJoin="bevel";var d=i.getVisual("decal");d&&(p.decal=pa(d,a));var f=lr(l.getModel("itemStyle"),c,!0);V(c,f),T(Ie,function(m){var x=s.ensureState(m),_=l.getModel([m,"itemStyle"]);x.style=_.getItemStyle();var w=lr(_,c);w&&(x.shape=w)}),t?(s.setShape(c),s.shape.r=h.r0,Vt(s,{shape:{r:h.r}},o,i.dataIndex)):(Ct(s,{shape:c},o),Mn(s)),s.useStyle(p),this._updateLabel(o);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=o||this._seriesModel,this._ecModel=r||this._ecModel;var y=u.get("focus"),v=y==="ancestor"?i.getAncestorsIndices():y==="descendant"?i.getDescendantIndices():y;Ht(this,v,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var i=this,o=this.node.getModel(),r=o.getModel("label"),a=this.node.getLayout(),s=a.endAngle-a.startAngle,l=(a.startAngle+a.endAngle)/2,u=Math.cos(l),h=Math.sin(l),c=this,p=c.getTextContent(),d=this.node.dataIndex,f=r.get("minAngle")/180*Math.PI,g=r.get("show")&&!(f!=null&&Math.abs(s)L&&!zr(O-L)&&O0?(a.virtualPiece?a.virtualPiece.updateData(!1,m,t,i,o):(a.virtualPiece=new YT(m,t,i,o),h.add(a.virtualPiece)),x.piece.off("click"),a.virtualPiece.on("click",function(_){a._rootToNode(x.parentNode)})):a.virtualPiece&&(h.remove(a.virtualPiece),a.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(i){var o=!1,r=t.seriesModel.getViewRoot();r.eachNode(function(a){if(!o&&a.piece&&a.piece===i.target){var s=a.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(a);else if(s==="link"){var l=a.getModel(),u=l.get("link");if(u){var h=l.get("target",!0)||"_blank";uh(u,h)}}o=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:xv,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,i){var o=i.getData(),r=o.getItemLayout(0);if(r){var a=t[0]-r.cx,s=t[1]-r.cy,l=Math.sqrt(a*a+s*s);return l<=r.r&&l>=r.r0}},e.type="sunburst",e}(Ot);const O8=P8;var N8=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,i){var o={name:t.name,children:t.data};ZT(o);var r=this._levelModels=G(t.levels||[],function(l){return new Pt(l,this,i)},this),a=xy.createTree(o,this,s);function s(l){l.wrapMethod("getItemModel",function(u,h){var c=a.getNodeByDataIndex(h),p=r[c.depth];return p&&(u.parentModel=p),u})}return a.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var i=n.prototype.getDataParams.apply(this,arguments),o=this.getData().tree.getNodeByDataIndex(t);return i.treePathInfo=gc(o,this),i},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){e2(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(zt);function ZT(n){var e=0;T(n.children,function(i){ZT(i);var o=i.value;B(o)&&(o=o[0]),e+=o});var t=n.value;B(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),B(n.value)?n.value[0]=t:n.value=t}const R8=N8;var UT=Math.PI/180;function z8(n,e,t){e.eachSeriesByType(n,function(i){var o=i.get("center"),r=i.get("radius");B(r)||(r=[0,r]),B(o)||(o=[o,o]);var a=t.getWidth(),s=t.getHeight(),l=Math.min(a,s),u=H(o[0],a),h=H(o[1],s),c=H(r[0],l/2),p=H(r[1],l/2),d=-i.get("startAngle")*UT,f=i.get("minAngle")*UT,g=i.getData().tree.root,y=i.getViewRoot(),v=y.depth,m=i.get("sort");m!=null&&jT(y,m);var x=0;T(y.children,function(O){!isNaN(O.getValue())&&x++});var _=y.getValue(),w=Math.PI/(_||x)*2,b=y.depth>0,S=y.height-(b?-1:1),M=(p-c)/(S||1),I=i.get("clockwise"),C=i.get("stillShowZeroSum"),A=I?1:-1,D=function(O,z){if(O){var R=z;if(O!==g){var E=O.getValue(),F=_===0&&C?w:E*w;F1;)a=a.parentNode;var s=o.getColorFromPalette(a.name||a.dataIndex+"",e);return i.depth>1&&Y(s)&&(s=hu(s,(i.depth-1)/(r-1)*.5)),s}n.eachSeriesByType("sunburst",function(i){var o=i.getData(),r=o.tree;r.eachNode(function(a){var s=a.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(a,i,r.root.height));var u=o.ensureUniqueItemVisual(a.dataIndex,"style");V(u,l)})})}function B8(n){n.registerChartView(O8),n.registerSeriesModel(R8),n.registerLayout(rt(z8,"sunburst")),n.registerProcessor(rt(dl,"sunburst")),n.registerVisual(V8),L8(n)}var qT={color:"fill",borderColor:"stroke"},G8={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},xi=bt(),F8=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,i){return Xn(null,this)},e.prototype.getDataParams=function(t,i,o){var r=n.prototype.getDataParams.call(this,t,i);return o&&(r.info=xi(o).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(zt);const W8=F8;function H8(n,e){return e=e||[0,0],G(["x","y"],function(t,i){var o=this.getAxis(t),r=e[i],a=n[i]/2;return o.type==="category"?o.getBandWidth():Math.abs(o.dataToCoord(r-a)-o.dataToCoord(r+a))},this)}function Y8(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:Z(H8,n)}}}function X8(n,e){return e=e||[0,0],G([0,1],function(t){var i=e[t],o=n[t]/2,r=[],a=[];return r[t]=i-o,a[t]=i+o,r[1-t]=a[1-t]=e[1-t],Math.abs(this.dataToPoint(r)[t]-this.dataToPoint(a)[t])},this)}function Z8(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:Z(X8,n)}}}function U8(n,e){var t=this.getAxis(),i=e instanceof Array?e[0]:e,o=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(i-o)-t.dataToCoord(i+o))}function j8(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:Z(U8,n)}}}function q8(n,e){return e=e||[0,0],G(["Radius","Angle"],function(t,i){var o="get"+t+"Axis",r=this[o](),a=e[i],s=n[i]/2,l=r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(a-s)-r.dataToCoord(a+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function K8(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:i[1],r0:i[0]},api:{coord:function(o){var r=e.dataToRadius(o[0]),a=t.dataToAngle(o[1]),s=n.coordToPoint([r,a]);return s.push(r,a*Math.PI/180),s},size:Z(q8,n)}}}function $8(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(i,o){return n.dataToPoint(i,o)}}}}function KT(n,e,t,i){return n&&(n.legacy||n.legacy!==!1&&!t&&!i&&e!=="tspan"&&(e==="text"||U(n,"text")))}function $T(n,e,t){var i=n,o,r,a;if(e==="text")a=i;else{a={},U(i,"text")&&(a.text=i.text),U(i,"rich")&&(a.rich=i.rich),U(i,"textFill")&&(a.fill=i.textFill),U(i,"textStroke")&&(a.stroke=i.textStroke),U(i,"fontFamily")&&(a.fontFamily=i.fontFamily),U(i,"fontSize")&&(a.fontSize=i.fontSize),U(i,"fontStyle")&&(a.fontStyle=i.fontStyle),U(i,"fontWeight")&&(a.fontWeight=i.fontWeight),r={type:"text",style:a,silent:!0},o={};var s=U(i,"textPosition");t?o.position=s?i.textPosition:"inside":s&&(o.position=i.textPosition),U(i,"textPosition")&&(o.position=i.textPosition),U(i,"textOffset")&&(o.offset=i.textOffset),U(i,"textRotation")&&(o.rotation=i.textRotation),U(i,"textDistance")&&(o.distance=i.textDistance)}return QT(a,n),T(a.rich,function(l){QT(l,l)}),{textConfig:o,textContent:r}}function QT(n,e){e&&(e.font=e.textFont||e.font,U(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),U(e,"textAlign")&&(n.align=e.textAlign),U(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),U(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),U(e,"textWidth")&&(n.width=e.textWidth),U(e,"textHeight")&&(n.height=e.textHeight),U(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),U(e,"textPadding")&&(n.padding=e.textPadding),U(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),U(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),U(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),U(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),U(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),U(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),U(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function JT(n,e,t){var i=n;i.textPosition=i.textPosition||t.position||"inside",t.offset!=null&&(i.textOffset=t.offset),t.rotation!=null&&(i.textRotation=t.rotation),t.distance!=null&&(i.textDistance=t.distance);var o=i.textPosition.indexOf("inside")>=0,r=n.fill||"#000";tC(i,e);var a=i.textFill==null;return o?a&&(i.textFill=t.insideFill||"#fff",!i.textStroke&&t.insideStroke&&(i.textStroke=t.insideStroke),!i.textStroke&&(i.textStroke=r),i.textStrokeWidth==null&&(i.textStrokeWidth=2)):(a&&(i.textFill=n.fill||t.outsideFill||"#000"),!i.textStroke&&t.outsideStroke&&(i.textStroke=t.outsideStroke)),i.text=e.text,i.rich=e.rich,T(e.rich,function(s){tC(s,s)}),i}function tC(n,e){e&&(U(e,"fill")&&(n.textFill=e.fill),U(e,"stroke")&&(n.textStroke=e.fill),U(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),U(e,"font")&&(n.font=e.font),U(e,"fontStyle")&&(n.fontStyle=e.fontStyle),U(e,"fontWeight")&&(n.fontWeight=e.fontWeight),U(e,"fontSize")&&(n.fontSize=e.fontSize),U(e,"fontFamily")&&(n.fontFamily=e.fontFamily),U(e,"align")&&(n.textAlign=e.align),U(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),U(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),U(e,"width")&&(n.textWidth=e.width),U(e,"height")&&(n.textHeight=e.height),U(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),U(e,"padding")&&(n.textPadding=e.padding),U(e,"borderColor")&&(n.textBorderColor=e.borderColor),U(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),U(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),U(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),U(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),U(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),U(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),U(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),U(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),U(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),U(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}var eC={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},nC=mt(eC);Ue(Rn,function(n,e){return n[e]=1,n},{}),Rn.join(", ");var Ac=["","style","shape","extra"],Da=bt();function _v(n,e,t,i,o){var r=n+"Animation",a=Yr(n,i,o)||{},s=Da(e).userDuring;return a.duration>0&&(a.during=s?Z(n7,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=n),V(a,t[r]),a}function Dc(n,e,t,i){i=i||{};var o=i.dataIndex,r=i.isInit,a=i.clearStyle,s=t.isAnimationEnabled(),l=Da(n),u=e.style;l.userDuring=e.during;var h={},c={};if(o7(n,e,c),rC("shape",e,c),rC("extra",e,c),!r&&s&&(i7(n,e,h),oC("shape",n,e,h),oC("extra",n,e,h),r7(n,e,u,h)),c.style=u,Q8(n,c,a),t7(n,e),s)if(r){var p={};T(Ac,function(f){var g=f?e[f]:e;g&&g.enterFrom&&(f&&(p[f]=p[f]||{}),V(f?p[f]:p,g.enterFrom))});var d=_v("enter",n,e,t,o);d.duration>0&&n.animateFrom(p,d)}else J8(n,e,o||0,t,h);iC(n,e),u?n.dirty():n.markRedraw()}function iC(n,e){for(var t=Da(n).leaveToProps,i=0;i0&&n.animateFrom(o,r)}}function t7(n,e){U(e,"silent")&&(n.silent=e.silent),U(e,"ignore")&&(n.ignore=e.ignore),n instanceof Je&&U(e,"invisible")&&(n.invisible=e.invisible),n instanceof vt&&U(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var Kn={},e7={setTransform:function(n,e){return Kn.el[n]=e,this},getTransform:function(n){return Kn.el[n]},setShape:function(n,e){var t=Kn.el,i=t.shape||(t.shape={});return i[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=Kn.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=Kn.el,i=t.style;return i&&(i[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=Kn.el.style;if(e)return e[n]},setExtra:function(n,e){var t=Kn.el.extra||(Kn.el.extra={});return t[n]=e,this},getExtra:function(n){var e=Kn.el.extra;if(e)return e[n]}};function n7(){var n=this,e=n.el;if(e){var t=Da(e).userDuring,i=n.userDuring;if(t!==i){n.el=n.userDuring=null;return}Kn.el=e,i(e7)}}function oC(n,e,t,i){var o=t[n];if(o){var r=e[n],a;if(r){var s=t.transition,l=o.transition;if(l)if(!a&&(a=i[n]={}),xr(l))V(a,r);else for(var u=Lt(l),h=0;h=0){!a&&(a=i[n]={});for(var d=mt(r),h=0;h=0)){var p=n.getAnimationStyleProps(),d=p?p.style:null;if(d){!r&&(r=i.style={});for(var f=mt(t),u=0;u=0?e.getStore().get(z,P):void 0}var R=e.get(O.name,P),E=O&&O.ordinalMeta;return E?E.categories[R]:R}function b(L,P){P==null&&(P=u);var O=e.getItemVisual(P,"style"),z=O&&O.fill,R=O&&O.opacity,E=m(P,eo).getItemStyle();z!=null&&(E.fill=z),R!=null&&(E.opacity=R);var F={inheritColor:Y(z)?z:"#000"},W=x(P,eo),X=Rt(W,null,F,!1,!0);X.text=W.getShallow("show")?at(n.getFormattedLabel(P,eo),xa(e,P)):null;var $=eh(W,F,!1);return I(L,E),E=JT(E,X,$),L&&M(E,L),E.legacy=!0,E}function S(L,P){P==null&&(P=u);var O=m(P,_i).getItemStyle(),z=x(P,_i),R=Rt(z,null,null,!0,!0);R.text=z.getShallow("show")?yn(n.getFormattedLabel(P,_i),n.getFormattedLabel(P,eo),xa(e,P)):null;var E=eh(z,null,!0);return I(L,O),O=JT(O,R,E),L&&M(O,L),O.legacy=!0,O}function M(L,P){for(var O in P)U(P,O)&&(L[O]=P[O])}function I(L,P){L&&(L.textFill&&(P.textFill=L.textFill),L.textPosition&&(P.textPosition=L.textPosition))}function C(L,P){if(P==null&&(P=u),U(qT,L)){var O=e.getItemVisual(P,"style");return O?O[qT[L]]:null}if(U(G8,L))return e.getItemVisual(P,L)}function A(L){if(r.type==="cartesian2d"){var P=r.getBaseAxis();return nE(Q({axis:P},L))}}function D(){return t.getCurrentSeriesIndices()}function k(L){return Qd(L,t)}}function y7(n){var e={};return T(n.dimensions,function(t){var i=n.getDimensionInfo(t);if(!i.isExtraCoord){var o=i.coordDim,r=e[o]=e[o]||[];r[i.coordDimIndex]=n.getDimensionIndex(t)}}),e}function Dv(n,e,t,i,o,r,a){if(!i){r.remove(e);return}var s=kv(n,e,t,i,o,r);return s&&a.setItemGraphicEl(t,s),s&&Ht(s,i.focus,i.blurScope,i.emphasisDisabled),s}function kv(n,e,t,i,o,r){var a=-1,s=e;e&&hC(e,i,o)&&(a=pt(r.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=Cv(i),s&&c7(s,u)),i.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),pn.normal.cfg=pn.normal.conOpt=pn.emphasis.cfg=pn.emphasis.conOpt=pn.blur.cfg=pn.blur.conOpt=pn.select.cfg=pn.select.conOpt=null,pn.isLegacy=!1,m7(u,t,i,o,l,pn),v7(u,t,i,o,l),Av(n,u,t,i,pn,o,l),U(i,"info")&&(xi(u).info=i.info);for(var h=0;h=0?r.replaceAt(u,a):r.add(u),u}function hC(n,e,t){var i=xi(n),o=e.type,r=e.shape,a=e.style;return t.isUniversalTransitionEnabled()||o!=null&&o!==i.customGraphicType||o==="path"&&S7(r)&&fC(r)!==i.customPathData||o==="image"&&U(a,"image")&&a.image!==i.customImagePath}function v7(n,e,t,i,o){var r=t.clipPath;if(r===!1)n&&n.getClipPath()&&n.removeClipPath();else if(r){var a=n.getClipPath();a&&hC(a,r,i)&&(a=null),a||(a=Cv(r),n.setClipPath(a)),Av(null,a,e,r,null,i,o)}}function m7(n,e,t,i,o,r){if(!n.isGroup){cC(t,null,r),cC(t,_i,r);var a=r.normal.conOpt,s=r.emphasis.conOpt,l=r.blur.conOpt,u=r.select.conOpt;if(a!=null||s!=null||u!=null||l!=null){var h=n.getTextContent();if(a===!1)h&&n.removeTextContent();else{a=r.normal.conOpt=a||{type:"text"},h?h.clearStates():(h=Cv(a),n.setTextContent(h)),Av(null,h,e,a,null,i,o);for(var c=a&&a.style,p=0;p=h;d--){var f=e.childAt(d);_7(e,f,o)}}}function _7(n,e,t){e&&kc(e,xi(n).option,t)}function b7(n){new di(n.oldChildren,n.newChildren,pC,pC,n).add(dC).update(dC).remove(w7).execute()}function pC(n,e){var t=n&&n.name;return t??u7+e}function dC(n,e){var t=this.context,i=n!=null?t.newChildren[n]:null,o=e!=null?t.oldChildren[e]:null;kv(t.api,o,t.dataIndex,i,t.seriesModel,t.group)}function w7(n){var e=this.context,t=e.oldChildren[n];t&&kc(t,xi(t).option,e.seriesModel)}function fC(n){return n&&(n.pathData||n.d)}function S7(n){return n&&(U(n,"pathData")||U(n,"d"))}function M7(n){n.registerChartView(d7),n.registerSeriesModel(W8)}var _r=bt(),gC=et,Pv=Z,I7=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,i,o){var r=t.get("value"),a=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,!(!o&&this._lastValue===r&&this._lastStatus===a)){this._lastValue=r,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,r,e,t,i);var h=u.graphicKey;h!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=h;var c=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new it,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),i.getZr().add(s);else{var p=rt(yC,t,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,t)}xC(s,t,!0),this._renderHandle(r)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var i=t.get("animation"),o=e.axis,r=o.type==="category",a=t.get("snap");if(!a&&!r)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(r&&o.getBandWidth()>s)return!0;if(a){var l=iy(e).seriesDataCount,u=o.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},n.prototype.makeElOption=function(e,t,i,o,r){},n.prototype.createPointerEl=function(e,t,i,o){var r=t.pointer;if(r){var a=_r(e).pointerEl=new Vo[r.type](gC(t.pointer));e.add(a)}},n.prototype.createLabelEl=function(e,t,i,o){if(t.label){var r=_r(e).labelEl=new St(gC(t.label));e.add(r),mC(r,o)}},n.prototype.updatePointerEl=function(e,t,i){var o=_r(e).pointerEl;o&&t.pointer&&(o.setStyle(t.pointer.style),i(o,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,i,o){var r=_r(e).labelEl;r&&(r.setStyle(t.label.style),i(r,{x:t.label.x,y:t.label.y}),mC(r,o))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,i=this._api.getZr(),o=this._handle,r=t.getModel("handle"),a=t.get("status");if(!r.get("show")||!a||a==="hide"){o&&i.remove(o),this._handle=null;return}var s;this._handle||(s=!0,o=this._handle=Ur(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ii(u.event)},onmousedown:Pv(this._onHandleDragMove,this,0,0),drift:Pv(this._onHandleDragMove,this),ondragend:Pv(this._onHandleDragEnd,this)}),i.add(o)),xC(o,t,!1),o.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=r.get("size");B(l)||(l=[l,l]),o.scaleX=l[0]/2,o.scaleY=l[1]/2,la(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){yC(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Ov(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var i=this._handle;if(i){this._dragging=!0;var o=this.updateHandleTransform(Ov(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=o,i.stopAnimation(),i.attr(Ov(o)),_r(i).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,o=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),o&&t.remove(o),this._group=null,this._handle=null,this._payloadInfo=null),Hs(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}},n}();function yC(n,e,t,i){vC(_r(t).lastProp,i)||(_r(t).lastProp=i,e?Ct(t,i,n):(t.stopAnimation(),t.attr(i)))}function vC(n,e){if(tt(n)&&tt(e)){var t=!0;return T(e,function(i,o){t=t&&vC(n[o],i)}),!!t}else return n===e}function mC(n,e){n[e.get(["label","show"])?"show":"hide"]()}function Ov(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function xC(n,e,t){var i=e.get("z"),o=e.get("zlevel");n&&n.traverse(function(r){r.type!=="group"&&(i!=null&&(r.z=i),o!=null&&(r.zlevel=o),r.silent=t)})}const Nv=I7;function Rv(n){var e=n.get("type"),t=n.getModel(e+"Style"),i;return e==="line"?(i=t.getLineStyle(),i.fill=null):e==="shadow"&&(i=t.getAreaStyle(),i.stroke=null),i}function _C(n,e,t,i,o){var r=t.get("value"),a=bC(r,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Go(s.get("padding")||0),u=s.getFont(),h=us(a,u),c=o.position,p=h.width+l[1]+l[3],d=h.height+l[0]+l[2],f=o.align;f==="right"&&(c[0]-=p),f==="center"&&(c[0]-=p/2);var g=o.verticalAlign;g==="bottom"&&(c[1]-=d),g==="middle"&&(c[1]-=d/2),T7(c,p,d,i);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=e.get(["axisLine","lineStyle","color"])),n.label={x:c[0],y:c[1],style:Rt(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function T7(n,e,t,i){var o=i.getWidth(),r=i.getHeight();n[0]=Math.min(n[0]+e,o)-e,n[1]=Math.min(n[1]+t,r)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function bC(n,e,t,i,o){n=e.scale.parse(n);var r=e.scale.getLabel({value:n},{precision:o.precision}),a=o.formatter;if(a){var s={value:wg(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};T(i,function(l){var u=t.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,c=u&&u.getDataParams(h);c&&s.seriesData.push(c)}),Y(a)?r=a.replace("{value}",r):K(a)&&(r=a(s))}return r}function zv(n,e,t){var i=Ne();return Ti(i,i,t.rotation),vn(i,i,t.position),In([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],i)}function wC(n,e,t,i,o,r){var a=yi.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=o.get(["label","margin"]),_C(e,i,o,r,{position:zv(i.axis,n,t),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function Ev(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function SC(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function MC(n,e,t,i,o,r){return{cx:n,cy:e,r0:t,r:i,startAngle:o,endAngle:r,clockwise:!0}}var C7=function(n){N(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,o,r,a){var s=o.axis,l=s.grid,u=r.get("type"),h=IC(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var p=Rv(r),d=A7[u](s,c,h);d.style=p,t.graphicKey=d.type,t.pointer=d}var f=Jg(l.model,o);wC(i,t,f,o,r,a)},e.prototype.getHandleTransform=function(t,i,o){var r=Jg(i.axis.grid.model,i,{labelInside:!1});r.labelMargin=o.get(["handle","margin"]);var a=zv(i.axis,t,r);return{x:a[0],y:a[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,o,r){var a=o.axis,s=a.grid,l=a.getGlobalExtent(!0),u=IC(s,a).getOtherAxis(a).getGlobalExtent(),h=a.dim==="x"?0:1,c=[t.x,t.y];c[h]+=i[h],c[h]=Math.min(l[1],c[h]),c[h]=Math.max(l[0],c[h]);var p=(u[1]+u[0])/2,d=[p,p];d[h]=c[h];var f=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:d,tooltipOption:f[h]}},e}(Nv);function IC(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var A7={line:function(n,e,t){var i=Ev([e,t[0]],[e,t[1]],TC(n));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(n,e,t){var i=Math.max(1,n.getBandWidth()),o=t[1]-t[0];return{type:"Rect",shape:SC([e-i/2,t[0]],[i,o],TC(n))}}};function TC(n){return n.dim==="x"?0:1}const D7=C7;var k7=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(_t);const L7=k7;var bi=bt(),P7=T;function CC(n,e,t){if(!It.node){var i=e.getZr();bi(i).records||(bi(i).records={}),O7(i,e);var o=bi(i).records[n]||(bi(i).records[n]={});o.handler=t}}function O7(n,e){if(bi(n).initialized)return;bi(n).initialized=!0,t("click",rt(AC,"click")),t("mousemove",rt(AC,"mousemove")),t("globalout",R7);function t(i,o){n.on(i,function(r){var a=z7(e);P7(bi(n).records,function(s){s&&o(s,r,a.dispatchAction)}),N7(a.pendings,e)})}}function N7(n,e){var t=n.showTip.length,i=n.hideTip.length,o;t?o=n.showTip[t-1]:i&&(o=n.hideTip[i-1]),o&&(o.dispatchAction=null,e.dispatchAction(o))}function R7(n,e,t){n.handler("leave",null,t)}function AC(n,e,t,i){e.handler(n,t,i)}function z7(n){var e={showTip:[],hideTip:[]},t=function(i){var o=e[i.type];o?o.push(i):(i.dispatchAction=t,n.dispatchAction(i))};return{dispatchAction:t,pendings:e}}function Vv(n,e){if(!It.node){var t=e.getZr(),i=(bi(t).records||{})[n];i&&(bi(t).records[n]=null)}}var E7=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=i.getComponent("tooltip"),a=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";CC("axisPointer",o,function(s,l,u){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,i){Vv("axisPointer",i)},e.prototype.dispose=function(t,i){Vv("axisPointer",i)},e.type="axisPointer",e}(Bt);const V7=E7;function DC(n,e){var t=[],i=n.seriesIndex,o;if(i==null||!(o=e.getSeriesByIndex(i)))return{point:[]};var r=o.getData(),a=bo(r,n);if(a==null||a<0||B(a))return{point:[]};var s=r.getItemGraphicEl(a),l=o.coordinateSystem;if(o.getTooltipPosition)t=o.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u),c=h.dim,p=u.dim,d=c==="x"||c==="radius"?1:0,f=r.mapDimension(p),g=[];g[d]=r.get(f,a),g[1-d]=r.get(r.getCalculationInfo("stackResultDimension"),a),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(r.getValues(G(l.dimensions,function(v){return r.mapDimension(v)}),a))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),t=[y.x+y.width/2,y.y+y.height/2]}return{point:t,el:s}}var kC=bt();function B7(n,e,t){var i=n.currTrigger,o=[n.x,n.y],r=n,a=n.dispatchAction||Z(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Oc(o)&&(o=DC({seriesIndex:r.seriesIndex,dataIndex:r.dataIndex},e).point);var l=Oc(o),u=r.axesInfo,h=s.axesInfo,c=i==="leave"||Oc(o),p={},d={},f={list:[],map:{}},g={showPointer:rt(F7,d),showTooltip:rt(W7,f)};T(s.coordSysMap,function(v,m){var x=l||v.containPoint(o);T(s.coordSysAxesInfo[m],function(_,w){var b=_.axis,S=Z7(u,_);if(!c&&x&&(!u||S)){var M=S&&S.value;M==null&&!l&&(M=b.pointToData(o)),M!=null&&LC(_,M,g,!1,p)}})});var y={};return T(h,function(v,m){var x=v.linkGroup;x&&!d[m]&&T(x.axesInfo,function(_,w){var b=d[w];if(_!==v&&b){var S=b.value;x.mapper&&(S=v.axis.scale.parse(x.mapper(S,PC(_),PC(v)))),y[v.key]=S}})}),T(y,function(v,m){LC(h[m],v,g,!0,p)}),H7(d,h,p),Y7(f,o,n,a),X7(h,a,t),p}}function LC(n,e,t,i,o){var r=n.axis;if(!(r.scale.isBlank()||!r.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var a=G7(e,n),s=a.payloadBatch,l=a.snapToValue;s[0]&&o.seriesIndex==null&&V(o,s[0]),!i&&n.snap&&r.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,a,l)}}function G7(n,e){var t=e.axis,i=t.dim,o=n,r=[],a=Number.MAX_VALUE,s=-1;return T(e.seriesModels,function(l,u){var h=l.getData().mapDimensionsAll(i),c,p;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(h,n,t);p=d.dataIndices,c=d.nestestValue}else{if(p=l.getData().indicesOfNearest(h[0],n,t.type==="category"?.5:null),!p.length)return;c=l.getData().get(h[0],p[0])}if(!(c==null||!isFinite(c))){var f=n-c,g=Math.abs(f);g<=a&&((g=0&&s<0)&&(a=g,s=f,o=c,r.length=0),T(p,function(y){r.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:r,snapToValue:o}}function F7(n,e,t,i){n[e.key]={value:t,payloadBatch:i}}function W7(n,e,t,i){var o=t.payloadBatch,r=e.axis,a=r.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!o.length)){var l=e.coordSys.model,u=gl(l),h=n.map[u];h||(h=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(h)),h.dataByAxis.push({axisDim:r.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function H7(n,e,t){var i=t.axesInfo=[];T(e,function(o,r){var a=o.axisPointerModel.option,s=n[r];s?(!o.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!o.useHandle&&(a.status="hide"),a.status==="show"&&i.push({axisDim:o.axis.dim,axisIndex:o.axis.model.componentIndex,value:a.value})})}function Y7(n,e,t,i){if(Oc(e)||!n.list.length){i({type:"hideTip"});return}var o=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:n.list})}function X7(n,e,t){var i=t.getZr(),o="axisPointerLastHighlights",r=kC(i)[o]||{},a=kC(i)[o]={};T(n,function(u,h){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&T(c.seriesDataIndices,function(p){var d=p.seriesIndex+" | "+p.dataIndex;a[d]=p})});var s=[],l=[];T(r,function(u,h){!a[h]&&l.push(u)}),T(a,function(u,h){!r[h]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Z7(n,e){for(var t=0;t<(n||[]).length;t++){var i=n[t];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function PC(n){var e=n.axis.model,t={},i=t.axisDim=n.axis.dim;return t.axisIndex=t[i+"AxisIndex"]=e.componentIndex,t.axisName=t[i+"AxisName"]=e.name,t.axisId=t[i+"AxisId"]=e.id,t}function Oc(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function Ol(n){hr.registerAxisPointerClass("CartesianAxisPointer",D7),n.registerComponentModel(L7),n.registerComponentView(V7),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!B(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=O3(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},B7)}function U7(n){dt(lI),dt(Ol)}var j7=function(n){N(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,o,r,a){var s=o.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),h=u.getExtent(),c=s.dataToCoord(i),p=r.get("type");if(p&&p!=="none"){var d=Rv(r),f=K7[p](s,l,c,h);f.style=d,t.graphicKey=f.type,t.pointer=f}var g=r.get(["label","margin"]),y=q7(i,o,r,l,g);_C(t,o,r,a,y)},e}(Nv);function q7(n,e,t,i,o){var r=e.axis,a=r.dataToCoord(n),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=i.getRadiusAxis().getExtent(),u,h,c;if(r.dim==="radius"){var p=Ne();Ti(p,p,s),vn(p,p,[i.cx,i.cy]),u=In([a,-o],p);var d=e.getModel("axisLabel").get("rotate")||0,f=yi.innerTextLayout(s,d*Math.PI/180,-1);h=f.textAlign,c=f.textVerticalAlign}else{var g=l[1];u=i.coordToPoint([g+o,a]);var y=i.cx,v=i.cy;h=Math.abs(u[0]-y)/g<.3?"center":u[0]>y?"left":"right",c=Math.abs(u[1]-v)/g<.3?"middle":u[1]>v?"top":"bottom"}return{position:u,align:h,verticalAlign:c}}var K7={line:function(n,e,t,i){return n.dim==="angle"?{type:"Line",shape:Ev(e.coordToPoint([i[0],t]),e.coordToPoint([i[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,i){var o=Math.max(1,n.getBandWidth()),r=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:MC(e.cx,e.cy,i[0],i[1],(-t-o/2)*r,(-t+o/2)*r)}:{type:"Sector",shape:MC(e.cx,e.cy,t-o/2,t+o/2,0,Math.PI*2)}}};const $7=j7;var Q7=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var i,o=this.ecModel;return o.eachComponent(t,function(r){r.getCoordSysModel()===this&&(i=r)},this),i},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(_t);const J7=Q7;var Bv=function(n){N(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",qt).models[0]},e.type="polarAxis",e}(_t);Xt(Bv,va);var t9=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(Bv),e9=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(Bv),Gv=function(n){N(e,n);function e(t,i){return n.call(this,"radius",t,i)||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e}(ln);Gv.prototype.dataToRadius=ln.prototype.dataToCoord,Gv.prototype.radiusToData=ln.prototype.coordToData;const n9=Gv;var i9=bt(),Fv=function(n){N(e,n);function e(t,i){return n.call(this,"angle",t,i||[0,360])||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,i=t.getLabelModel(),o=t.scale,r=o.getExtent(),a=o.count();if(r[1]-r[0]<1)return 0;var s=r[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),h=us(s==null?"":s+"",i.getFont(),"center","top"),c=Math.max(h.height,7),p=c/u;isNaN(p)&&(p=1/0);var d=Math.max(0,Math.floor(p)),f=i9(t.model),g=f.lastAutoInterval,y=f.lastTickCount;return g!=null&&y!=null&&Math.abs(g-d)<=1&&Math.abs(y-a)<=1&&g>d?d=g:(f.lastTickCount=a,f.lastAutoInterval=d),d},e}(ln);Fv.prototype.dataToAngle=ln.prototype.dataToCoord,Fv.prototype.angleToData=ln.prototype.coordToData;const o9=Fv;var OC=["radius","angle"],r9=function(){function n(e){this.dimensions=OC,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new n9,this._angleAxis=new o9,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],i=this._angleAxis,o=this._radiusAxis;return i.scale.type===e&&t.push(i),o.scale.type===e&&t.push(o),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var i=this.pointToCoord(e);return[this._radiusAxis.radiusToData(i[0],t),this._angleAxis.angleToData(i[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,o=this.getAngleAxis(),r=o.getExtent(),a=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);o.inverse?a=s-360:s=a+360;var l=Math.sqrt(t*t+i*i);t/=l,i/=l;for(var u=Math.atan2(-i,t)/Math.PI*180,h=us;)u+=h*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],i=e[1]/180*Math.PI,o=Math.cos(i)*t+this.cx,r=-Math.sin(i)*t+this.cy;return[o,r]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),i=t.getExtent().slice();i[0]>i[1]&&i.reverse();var o=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-o[0]*r,endAngle:-o[1]*r,clockwise:e.inverse,contain:function(a,s){var l=a-this.cx,u=s-this.cy,h=l*l+u*u-1e-4,c=this.r,p=this.r0;return h<=c*c&&h>=p*p}}},n.prototype.convertToPixel=function(e,t,i){var o=NC(t);return o===this?this.dataToPoint(i):null},n.prototype.convertFromPixel=function(e,t,i){var o=NC(t);return o===this?this.pointToData(i):null},n}();function NC(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const a9=r9;function s9(n,e,t){var i=e.get("center"),o=t.getWidth(),r=t.getHeight();n.cx=H(i[0],o),n.cy=H(i[1],r);var a=n.getRadiusAxis(),s=Math.min(o,r)/2,l=e.get("radius");l==null?l=[0,"100%"]:B(l)||(l=[0,l]);var u=[H(l[0],s),H(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function l9(n,e){var t=this,i=t.getAngleAxis(),o=t.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();T(jh(l,"radius"),function(u){o.scale.unionExtentFromData(l,u)}),T(jh(l,"angle"),function(u){i.scale.unionExtentFromData(l,u)})}}),Jo(i.scale,i.model),Jo(o.scale,o.model),i.type==="category"&&!i.onBand){var r=i.getExtent(),a=360/i.scale.count();i.inverse?r[1]+=a:r[1]-=a,i.setExtent(r[0],r[1])}}function u9(n){return n.mainType==="angleAxis"}function RC(n,e){var t;if(n.type=e.get("type"),n.scale=nl(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),u9(e)){n.inverse=n.inverse!==e.get("clockwise");var i=e.get("startAngle"),o=(t=e.get("endAngle"))!==null&&t!==void 0?t:i+(n.inverse?-360:360);n.setExtent(i,o)}e.axis=n,n.model=e}var h9={dimensions:OC,create:function(n,e){var t=[];return n.eachComponent("polar",function(i,o){var r=new a9(o+"");r.update=l9;var a=r.getRadiusAxis(),s=r.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");RC(a,l),RC(s,u),s9(r,i,e),t.push(r),i.coordinateSystem=r,r.model=i}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="polar"){var o=i.getReferringComponents("polar",qt).models[0];i.coordinateSystem=o.coordinateSystem}}),t}};const c9=h9;var p9=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Nc(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var i=n.coordToPoint([e[0],t]),o=n.coordToPoint([e[1],t]);return{x1:i[0],y1:i[1],x2:o[0],y2:o[1]}}function Rc(n){var e=n.getRadiusAxis();return e.inverse?0:1}function zC(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var d9=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!!t.get("show")){var o=t.axis,r=o.polar,a=r.getRadiusAxis().getExtent(),s=o.getTicksCoords(),l=o.getMinorTicksCoords(),u=G(o.getViewLabels(),function(h){h=et(h);var c=o.scale,p=c.type==="ordinal"?c.getRawOrdinalNumber(h.tickValue):h.tickValue;return h.coord=o.dataToCoord(p),h});zC(u),zC(s),T(p9,function(h){t.get([h,"show"])&&(!o.scale.isBlank()||h==="axisLine")&&f9[h](this.group,t,r,s,l,a,u)},this)}},e.type="angleAxis",e}(hr),f9={axisLine:function(n,e,t,i,o,r){var a=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),h=Rc(t),c=h?0:1,p,d=Math.abs(u[1]-u[0])===360?"Circle":"Arc";r[c]===0?p=new Vo[d]({shape:{cx:t.cx,cy:t.cy,r:r[h],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:a.getLineStyle(),z2:1,silent:!0}):p=new Ts({shape:{cx:t.cx,cy:t.cy,r:r[h],r0:r[c]},style:a.getLineStyle(),z2:1,silent:!0}),p.style.fill=null,n.add(p)},axisTick:function(n,e,t,i,o,r){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=r[Rc(t)],u=G(i,function(h){return new ee({shape:Nc(t,[l,l+s],h.coord)})});n.add(Xe(u,{style:Q(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,i,o,r){if(o.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=r[Rc(t)],h=[],c=0;cv?"left":"right",_=Math.abs(y[1]-m)/g<.3?"middle":y[1]>m?"top":"bottom";if(s&&s[f]){var w=s[f];tt(w)&&w.textStyle&&(d=new Pt(w.textStyle,l,l.ecModel))}var b=new St({silent:yi.isLabelSilent(e),style:Rt(d,{x:y[0],y:y[1],fill:d.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:x,verticalAlign:_})});if(n.add(b),h){var S=yi.makeAxisEventDataBase(e);S.targetType="axisLabel",S.value=c.rawLabel,ot(b).eventData=S}},this)},splitLine:function(n,e,t,i,o,r){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var h=[],c=0;c=0?"p":"n",P=I;w&&(i[h][k]||(i[h][k]={p:I,n:I}),P=i[h][k][L]);var O=void 0,z=void 0,R=void 0,E=void 0;if(f.dim==="radius"){var F=f.dataToCoord(D)-I,W=l.dataToCoord(k);Math.abs(F)=E})}}})}function S9(n){var e={};T(n,function(i,o){var r=i.getData(),a=i.coordinateSystem,s=a.getBaseAxis(),l=VC(a,s),u=s.getExtent(),h=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/r.count(),c=e[l]||{bandWidth:h,remainedWidth:h,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},p=c.stacks;e[l]=c;var d=EC(i);p[d]||c.autoWidthCount++,p[d]=p[d]||{width:0,maxWidth:0};var f=H(i.get("barWidth"),h),g=H(i.get("barMaxWidth"),h),y=i.get("barGap"),v=i.get("barCategoryGap");f&&!p[d].width&&(f=Math.min(c.remainedWidth,f),p[d].width=f,c.remainedWidth-=f),g&&(p[d].maxWidth=g),y!=null&&(c.gap=y),v!=null&&(c.categoryGap=v)});var t={};return T(e,function(i,o){t[o]={};var r=i.stacks,a=i.bandWidth,s=H(i.categoryGap,a),l=H(i.gap,1),u=i.remainedWidth,h=i.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),T(r,function(g,y){var v=g.maxWidth;v&&v=t.y&&e[1]<=t.y+t.height:i.contain(i.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),i=this.getRect(),o=[],r=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),o[r]=t.toGlobalCoord(t.dataToCoord(+e)),o[1-r]=r===0?i.y+i.height/2:i.x+i.width/2,o},n.prototype.convertToPixel=function(e,t,i){var o=FC(t);return o===this?this.dataToPoint(i):null},n.prototype.convertFromPixel=function(e,t,i){var o=FC(t);return o===this?this.pointToData(i):null},n}();function FC(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function z9(n,e){var t=[];return n.eachComponent("singleAxis",function(i,o){var r=new R9(i,n,e);r.name="single_"+o,r.resize(i,e),i.coordinateSystem=r,t.push(r)}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="singleAxis"){var o=i.getReferringComponents("singleAxis",qt).models[0];i.coordinateSystem=o&&o.coordinateSystem}}),t}var E9={create:z9,dimensions:GC};const V9=E9;var WC=["x","y"],B9=["width","height"],G9=function(n){N(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,o,r,a){var s=o.axis,l=s.coordinateSystem,u=Yv(l,1-zc(s)),h=l.dataToPoint(i)[0],c=r.get("type");if(c&&c!=="none"){var p=Rv(r),d=F9[c](s,h,u);d.style=p,t.graphicKey=d.type,t.pointer=d}var f=Wv(o);wC(i,t,f,o,r,a)},e.prototype.getHandleTransform=function(t,i,o){var r=Wv(i,{labelInside:!1});r.labelMargin=o.get(["handle","margin"]);var a=zv(i.axis,t,r);return{x:a[0],y:a[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,o,r){var a=o.axis,s=a.coordinateSystem,l=zc(a),u=Yv(s,l),h=[t.x,t.y];h[l]+=i[l],h[l]=Math.min(u[1],h[l]),h[l]=Math.max(u[0],h[l]);var c=Yv(s,1-l),p=(c[1]+c[0])/2,d=[p,p];return d[l]=h[l],{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},e}(Nv),F9={line:function(n,e,t){var i=Ev([e,t[0]],[e,t[1]],zc(n));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(n,e,t){var i=n.getBandWidth(),o=t[1]-t[0];return{type:"Rect",shape:SC([e-i/2,t[0]],[i,o],zc(n))}}};function zc(n){return n.isHorizontal()?0:1}function Yv(n,e){var t=n.getRect();return[t[WC[e]],t[WC[e]]+t[B9[e]]]}const W9=G9;var H9=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Bt);function Y9(n){dt(Ol),hr.registerAxisPointerClass("SingleAxisPointer",W9),n.registerComponentView(H9),n.registerComponentView(P9),n.registerComponentModel(Hv),ba(n,"single",Hv,Hv.defaultOption),n.registerCoordinateSystem("single",V9)}var X9=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,o){var r=ta(t);n.prototype.init.apply(this,arguments),HC(t,r)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),HC(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(_t);function HC(n,e){var t=n.cellSize,i;B(t)?i=t:i=n.cellSize=[t,t],i.length===1&&(i[1]=i[0]);var o=G([0,1],function(r){return ON(e,r)&&(i[r]="auto"),i[r]!=null&&i[r]!=="auto"});Fi(n,e,{type:"box",ignoreSize:o})}const Z9=X9;var U9=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=this.group;r.removeAll();var a=t.coordinateSystem,s=a.getRangeInfo(),l=a.getOrient(),u=i.getLocaleModel();this._renderDayRect(t,s,r),this._renderLines(t,s,l,r),this._renderYearText(t,s,l,r),this._renderMonthText(t,u,l,r),this._renderWeekText(t,u,s,l,r)},e.prototype._renderDayRect=function(t,i,o){for(var r=t.coordinateSystem,a=t.getModel("itemStyle").getItemStyle(),s=r.getCellWidth(),l=r.getCellHeight(),u=i.start.time;u<=i.end.time;u=r.getNextNDay(u,1).time){var h=r.dataToRect([u],!1).tl,c=new wt({shape:{x:h[0],y:h[1],width:s,height:l},cursor:"default",style:a});o.add(c)}},e.prototype._renderLines=function(t,i,o,r){var a=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),h=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=i.start,p=0;c.time<=i.end.time;p++){f(c.formatedDate),p===0&&(c=s.getDateInfo(i.start.y+"-"+i.start.m));var d=c.date;d.setMonth(d.getMonth()+1),c=s.getDateInfo(d)}f(s.getNextNDay(i.end.time,1).formatedDate);function f(g){a._firstDayOfMonth.push(s.getDateInfo(g)),a._firstDayPoints.push(s.dataToRect([g],!1).tl);var y=a._getLinePointsOfOneWeek(t,g,o);a._tlpoints.push(y[0]),a._blpoints.push(y[y.length-1]),u&&a._drawSplitline(y,l,r)}u&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,h,o),l,r),u&&this._drawSplitline(a._getEdgesPoints(a._blpoints,h,o),l,r)},e.prototype._getEdgesPoints=function(t,i,o){var r=[t[0].slice(),t[t.length-1].slice()],a=o==="horizontal"?0:1;return r[0][a]=r[0][a]-i/2,r[1][a]=r[1][a]+i/2,r},e.prototype._drawSplitline=function(t,i,o){var r=new Ae({z2:20,shape:{points:t},style:i});o.add(r)},e.prototype._getLinePointsOfOneWeek=function(t,i,o){for(var r=t.coordinateSystem,a=r.getDateInfo(i),s=[],l=0;l<7;l++){var u=r.getNextNDay(a.time,l),h=r.dataToRect([u.time],!1);s[2*u.day]=h.tl,s[2*u.day+1]=h[o==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,i){return Y(t)&&t?DN(t,i):K(t)?t(i):i.nameMap},e.prototype._yearTextPositionControl=function(t,i,o,r,a){var s=i[0],l=i[1],u=["center","bottom"];r==="bottom"?(l+=a,u=["center","top"]):r==="left"?s-=a:r==="right"?(s+=a,u=["center","top"]):l-=a;var h=0;return(r==="left"||r==="right")&&(h=Math.PI/2),{rotation:h,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,i,o,r){var a=t.getModel("yearLabel");if(a.get("show")){var s=a.get("margin"),l=a.get("position");l||(l=o!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],h=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,p=o==="horizontal"?0:1,d={top:[h,u[p][1]],bottom:[h,u[1-p][1]],left:[u[1-p][0],c],right:[u[p][0],c]},f=i.start.y;+i.end.y>+i.start.y&&(f=f+"-"+i.end.y);var g=a.get("formatter"),y={start:i.start.y,end:i.end.y,nameMap:f},v=this._formatterLabel(g,y),m=new St({z2:30,style:Rt(a,{text:v})});m.attr(this._yearTextPositionControl(m,d[l],o,l,s)),r.add(m)}},e.prototype._monthTextPositionControl=function(t,i,o,r,a){var s="left",l="top",u=t[0],h=t[1];return o==="horizontal"?(h=h+a,i&&(s="center"),r==="start"&&(l="bottom")):(u=u+a,i&&(l="middle"),r==="start"&&(s="right")),{x:u,y:h,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,i,o,r){var a=t.getModel("monthLabel");if(a.get("show")){var s=a.get("nameMap"),l=a.get("margin"),u=a.get("position"),h=a.get("align"),c=[this._tlpoints,this._blpoints];(!s||Y(s))&&(s&&(i=rf(s)||i),s=i.get(["time","monthAbbr"])||[]);var p=u==="start"?0:1,d=o==="horizontal"?0:1;l=u==="start"?-l:l;for(var f=h==="center",g=0;g=o.start.time&&i.times.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],i;t[0].time>t[1].time&&(i=!0,t.reverse());var o=Math.floor(t[1].time/Xv)-Math.floor(t[0].time/Xv)+1,r=new Date(t[0].time),a=r.getDate(),s=t[1].date.getDate();r.setDate(a+o-1);var l=r.getDate();if(l!==s)for(var u=r.getTime()-t[1].time>0?1:-1;(l=r.getDate())!==s&&(r.getTime()-t[1].time)*u>0;)o-=u,r.setDate(l-u);var h=Math.floor((o+t[0].day+6)/7),c=i?-h+1:h-1;return i&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:o,weeks:h,nthWeek:c,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,i){var o=this._getRangeInfo(i);if(e>o.weeks||e===0&&to.lweek)return null;var r=(e-1)*7-o.fweek+t,a=new Date(o.start.time);return a.setDate(+o.start.d+r),this.getDateInfo(a)},n.create=function(e,t){var i=[];return e.eachComponent("calendar",function(o){var r=new n(o);i.push(r),o.coordinateSystem=r}),e.eachSeries(function(o){o.get("coordinateSystem")==="calendar"&&(o.coordinateSystem=i[o.get("calendarIndex")||0])}),i},n.dimensions=["time","value"],n}();function YC(n){var e=n.calendarModel,t=n.seriesModel,i=e?e.coordinateSystem:t?t.coordinateSystem:null;return i}const K9=q9;function $9(n){n.registerComponentModel(Z9),n.registerComponentView(j9),n.registerCoordinateSystem("calendar",K9)}function Q9(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var i=e.parentOption;i?e.parentId=i.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function XC(n,e){var t;return T(e,function(i){n[i]!=null&&n[i]!=="auto"&&(t=!0)}),t}function J9(n,e,t){var i=V({},t),o=n[e],r=t.$action||"merge";r==="merge"?o?(st(o,i,!0),Fi(o,i,{ignoreSize:!0}),p_(t,o),Ec(t,o),Ec(t,o,"shape"),Ec(t,o,"style"),Ec(t,o,"extra"),t.clipPath=o.clipPath):n[e]=i:r==="replace"?n[e]=i:r==="remove"&&o&&(n[e]=null)}var ZC=["transition","enterFrom","leaveTo"],tY=ZC.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Ec(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var i=t?ZC:tY,o=0;o=0;h--){var c=o[h],p=Qt(c.id,null),d=p!=null?a.get(p):null;if(d){var f=d.parent,v=dn(f),m=f===r?{width:s,height:l}:{width:v.width,height:v.height},x={},_=ch(d,c,m,null,{hv:c.hv,boundingMode:c.bounding},x);if(!dn(d).isNew&&_){for(var w=c.transition,b={},S=0;S=0)?b[M]=I:d[M]=I}Ct(d,b,t,0)}else d.attr(x)}}},e.prototype._clear=function(){var t=this,i=this._elMap;i.each(function(o){Vc(o,dn(o).option,i,t._lastGraphicModel)}),this._elMap=j()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Bt);function Zv(n){var e=U(UC,n)?UC[n]:$u(n),t=new e({});return dn(t).type=n,t}function jC(n,e,t,i){var o=Zv(t);return e.add(o),i.set(n,o),dn(o).id=n,dn(o).isNew=!0,o}function Vc(n,e,t,i){var o=n&&n.parent;o&&(n.type==="group"&&n.traverse(function(r){Vc(r,e,t,i)}),kc(n,e,i),t.removeKey(dn(n).id))}function qC(n,e,t,i){n.isGroup||T([["cursor",Je.prototype.cursor],["zlevel",i||0],["z",t||0],["z2",0]],function(o){var r=o[0];U(e,r)?n[r]=at(e[r],o[1]):n[r]==null&&(n[r]=o[1])}),T(mt(e),function(o){if(o.indexOf("on")===0){var r=e[o];n[o]=K(r)?r:null}}),U(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function oY(n){return n=V({},n),T(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(c_),function(e){delete n[e]}),n}function rY(n,e,t){var i=ot(n).eventData;!n.silent&&!n.ignore&&!i&&(i=ot(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),i&&(i.info=t.info)}function aY(n){n.registerComponentModel(nY),n.registerComponentView(iY),n.registerPreprocessor(function(e){var t=e.graphic;B(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var KC=["x","y","radius","angle","single"],sY=["cartesian2d","polar","singleAxis"];function lY(n){var e=n.get("coordinateSystem");return pt(sY,e)>=0}function io(n){return n+"Axis"}function uY(n,e){var t=j(),i=[],o=j();n.eachComponent({mainType:"dataZoom",query:e},function(h){o.get(h.uid)||s(h)});var r;do r=!1,n.eachComponent("dataZoom",a);while(r);function a(h){!o.get(h.uid)&&l(h)&&(s(h),r=!0)}function s(h){o.set(h.uid,!0),i.push(h),u(h)}function l(h){var c=!1;return h.eachTargetAxis(function(p,d){var f=t.get(p);f&&f[d]&&(c=!0)}),c}function u(h){h.eachTargetAxis(function(c,p){(t.get(c)||t.set(c,[]))[p]=!0})}return i}function $C(n){var e=n.ecModel,t={infoList:[],infoMap:j()};return n.eachTargetAxis(function(i,o){var r=e.getComponent(io(i),o);if(r){var a=r.getCoordSysModel();if(a){var s=a.uid,l=t.infoMap.get(s);l||(l={model:a,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(r)}}}),t}var Uv=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),hY=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,i,o){var r=QC(t);this.settledOption=r,this.mergeDefaultAndTheme(t,o),this._doInit(r)},e.prototype.mergeOption=function(t){var i=QC(t);st(this.option,t,!0),st(this.settledOption,i,!0),this._doInit(i)},e.prototype._doInit=function(t){var i=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var o=this.settledOption;T([["start","startValue"],["end","endValue"]],function(r,a){this._rangePropMode[a]==="value"&&(i[r[0]]=o[r[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),i=this._targetAxisInfoMap=j(),o=this._fillSpecifiedTargetAxis(i);o?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(r){r.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var i=!1;return T(KC,function(o){var r=this.getReferringComponents(io(o),pP);if(r.specified){i=!0;var a=new Uv;T(r.models,function(s){a.add(s.componentIndex)}),t.set(o,a)}},this),i},e.prototype._fillAutoTargetAxisByOrient=function(t,i){var o=this.ecModel,r=!0;if(r){var a=i==="vertical"?"y":"x",s=o.findComponents({mainType:a+"Axis"});l(s,a)}if(r){var s=o.findComponents({mainType:"singleAxis",filter:function(h){return h.get("orient",!0)===i}});l(s,"single")}function l(u,h){var c=u[0];if(c){var p=new Uv;if(p.add(c.componentIndex),t.set(h,p),r=!1,h==="x"||h==="y"){var d=c.getReferringComponents("grid",qt).models[0];d&&T(u,function(f){c.componentIndex!==f.componentIndex&&d===f.getReferringComponents("grid",qt).models[0]&&p.add(f.componentIndex)})}}}r&&T(KC,function(u){if(r){var h=o.findComponents({mainType:io(u),filter:function(p){return p.get("type",!0)==="category"}});if(h[0]){var c=new Uv;c.add(h[0].componentIndex),t.set(u,c),r=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(i){!t&&(t=i)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var i=this._rangePropMode,o=this.get("rangeMode");T([["start","startValue"],["end","endValue"]],function(r,a){var s=t[r[0]]!=null,l=t[r[1]]!=null;s&&!l?i[a]="percent":!s&&l?i[a]="value":o?i[a]=o[a]:s&&(i[a]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(i,o){t==null&&(t=this.ecModel.getComponent(io(i),o))},this),t},e.prototype.eachTargetAxis=function(t,i){this._targetAxisInfoMap.each(function(o,r){T(o.indexList,function(a){t.call(i,r,a)})})},e.prototype.getAxisProxy=function(t,i){var o=this.getAxisModel(t,i);if(o)return o.__dzAxisProxy},e.prototype.getAxisModel=function(t,i){var o=this._targetAxisInfoMap.get(t);if(o&&o.indexMap[i])return this.ecModel.getComponent(io(t),i)},e.prototype.setRawRange=function(t){var i=this.option,o=this.settledOption;T([["start","startValue"],["end","endValue"]],function(r){(t[r[0]]!=null||t[r[1]]!=null)&&(i[r[0]]=o[r[0]]=t[r[0]],i[r[1]]=o[r[1]]=t[r[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var i=this.option;T(["start","startValue","end","endValue"],function(o){i[o]=t[o]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,i){if(t==null&&i==null){var o=this.findRepresentativeAxisProxy();if(o)return o.getDataValueWindow()}else return this.getAxisProxy(t,i).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var i,o=this._targetAxisInfoMap.keys(),r=0;ra[1];if(x&&!_&&!w)return!0;x&&(y=!0),_&&(f=!0),w&&(g=!0)}return y&&f&&g})}else ka(h,function(d){if(r==="empty")l.setData(u=u.map(d,function(g){return s(g)?g:NaN}));else{var f={};f[d]=a,u.selectRange(f)}});ka(h,function(d){u.setApproximateExtent(a,d)})}});function s(l){return l>=a[0]&&l<=a[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,i=this._dataExtent;ka(["min","max"],function(o){var r=t.get(o+"Span"),a=t.get(o+"ValueSpan");a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a!=null?r=kt(i[0]+a,i,[0,100],!0):r!=null&&(a=kt(r,[0,100],i,!0)-i[0]),e[o+"Span"]=r,e[o+"ValueSpan"]=a},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,i=this._valueWindow;if(t){var o=nd(i,[0,500]);o=Math.min(o,20);var r=e.axis.scale.rawExtentInfo;t[0]!==0&&r.setDeterminedMinMax("min",+i[0].toFixed(o)),t[1]!==100&&r.setDeterminedMinMax("max",+i[1].toFixed(o)),r.freeze()}},n}();function vY(n,e,t){var i=[1/0,-1/0];ka(t,function(a){IE(i,a.getData(),e)});var o=n.getAxisModel(),r=oS(o.axis.scale,o,i).calculate();return[r.min,r.max]}const mY=yY;var xY={getTargetSeries:function(n){function e(o){n.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(a,s){var l=n.getComponent(io(a),s);o(a,s,l,r)})})}e(function(o,r,a,s){a.__dzAxisProxy=null});var t=[];e(function(o,r,a,s){a.__dzAxisProxy||(a.__dzAxisProxy=new mY(o,r,s,n),t.push(a.__dzAxisProxy))});var i=j();return T(t,function(o){T(o.getTargetSeriesModels(),function(r){i.set(r.uid,r)})}),i},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(i,o){t.getAxisProxy(i,o).reset(t)}),t.eachTargetAxis(function(i,o){t.getAxisProxy(i,o).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var i=t.findRepresentativeAxisProxy();if(i){var o=i.getDataPercentWindow(),r=i.getDataValueWindow();t.setCalculatedRange({start:o[0],end:o[1],startValue:r[0],endValue:r[1]})}})}};const _Y=xY;function bY(n){n.registerAction("dataZoom",function(e,t){var i=uY(t,e);T(i,function(o){o.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var tA=!1;function qv(n){tA||(tA=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,_Y),bY(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function wY(n){n.registerComponentModel(pY),n.registerComponentView(gY),qv(n)}var fn=function(){function n(){}return n}(),eA={};function La(n,e){eA[n]=e}function nA(n){return eA[n]}var SY=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;T(this.option.feature,function(i,o){var r=nA(o);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),st(i,r.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(_t);const MY=SY;function IY(n,e,t){var i=e.getBoxLayoutParams(),o=e.get("padding"),r={width:t.getWidth(),height:t.getHeight()},a=Kt(i,r,o);Ho(e.get("orient"),n,e.get("itemGap"),a.width,a.height),ch(n,i,r,o)}function iA(n,e){var t=Go(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),n=new wt({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),n}var TY=function(n){N(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,i,o,r){var a=this.group;if(a.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},h=this._features||(this._features={}),c=[];T(u,function(f,g){c.push(g)}),new di(this._featureNames||[],c).add(p).update(p).remove(rt(p,null)).execute(),this._featureNames=c;function p(f,g){var y=c[f],v=c[g],m=u[y],x=new Pt(m,t,t.ecModel),_;if(r&&r.newTitle!=null&&r.featureName===y&&(m.title=r.newTitle),y&&!v){if(CY(y))_={onclick:x.option.onclick,featureName:y};else{var w=nA(y);if(!w)return;_=new w}h[y]=_}else if(_=h[v],!_)return;_.uid=Kr("toolbox-feature"),_.model=x,_.ecModel=i,_.api=o;var b=_ instanceof fn;if(!y&&v){b&&_.dispose&&_.dispose(i,o);return}if(!x.get("show")||b&&_.unusable){b&&_.remove&&_.remove(i,o);return}d(x,_,y),x.setIconStatus=function(S,M){var I=this.option,C=this.iconPaths;I.iconStatus=I.iconStatus||{},I.iconStatus[S]=M,C[S]&&(M==="emphasis"?ui:hi)(C[S])},_ instanceof fn&&_.render&&_.render(x,i,o,r)}function d(f,g,y){var v=f.getModel("iconStyle"),m=f.getModel(["emphasis","iconStyle"]),x=g instanceof fn&&g.getIcons?g.getIcons():f.get("icon"),_=f.get("title")||{},w,b;Y(x)?(w={},w[y]=x):w=x,Y(_)?(b={},b[y]=_):b=_;var S=f.iconPaths={};T(w,function(M,I){var C=Ur(M,{},{x:-s/2,y:-s/2,width:s,height:s});C.setStyle(v.getItemStyle());var A=C.ensureState("emphasis");A.style=m.getItemStyle();var D=new St({style:{text:b[I],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:Qd({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},i)},ignore:!0});C.setTextContent(D),jr({el:C,componentModel:t,itemName:I,formatterParamsExtra:{title:b[I]}}),C.__title=b[I],C.on("mouseover",function(){var k=m.getItemStyle(),L=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";D.setStyle({fill:m.get("textFill")||k.fill||k.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),C.setTextConfig({position:m.get("textPosition")||L}),D.ignore=!t.get("showTitle"),o.enterEmphasis(this)}).on("mouseout",function(){f.get(["iconStatus",I])!=="emphasis"&&o.leaveEmphasis(this),D.hide()}),(f.get(["iconStatus",I])==="emphasis"?ui:hi)(C),a.add(C),C.on("click",Z(g.onclick,g,i,o,I)),S[I]=C})}IY(a,t,o),a.add(iA(a.getBoundingRect(),t)),l||a.eachChild(function(f){var g=f.__title,y=f.ensureState("emphasis"),v=y.textConfig||(y.textConfig={}),m=f.getTextContent(),x=m&&m.ensureState("emphasis");if(x&&!K(x)&&g){var _=x.style||(x.style={}),w=us(g,St.makeFont(_)),b=f.x+a.x,S=f.y+a.y+s,M=!1;S+w.height>o.getHeight()&&(v.position="top",M=!0);var I=M?-5-w.height:s+10;b+w.width/2>o.getWidth()?(v.position=["100%",I],_.align="right"):b-w.width/2<0&&(v.position=[0,I],_.align="left")}})},e.prototype.updateView=function(t,i,o,r){T(this._features,function(a){a instanceof fn&&a.updateView&&a.updateView(a.model,i,o,r)})},e.prototype.remove=function(t,i){T(this._features,function(o){o instanceof fn&&o.remove&&o.remove(t,i)}),this.group.removeAll()},e.prototype.dispose=function(t,i){T(this._features,function(o){o instanceof fn&&o.dispose&&o.dispose(t,i)})},e.type="toolbox",e}(Bt);function CY(n){return n.indexOf("my")===0}const AY=TY;var DY=function(n){N(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){var o=this.model,r=o.get("name")||t.get("title.0.text")||"echarts",a=i.getZr().painter.getType()==="svg",s=a?"svg":o.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:o.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:o.get("connectedBackgroundColor"),excludeComponents:o.get("excludeComponents"),pixelRatio:o.get("pixelRatio")}),u=It.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var h=document.createElement("a");h.download=r+"."+s,h.target="_blank",h.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});h.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||a){var p=l.split(","),d=p[0].indexOf("base64")>-1,f=a?decodeURIComponent(p[1]):p[1];d&&(f=window.atob(f));var g=r+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var y=f.length,v=new Uint8Array(y);y--;)v[y]=f.charCodeAt(y);var m=new Blob([v]);window.navigator.msSaveOrOpenBlob(m,g)}else{var x=document.createElement("iframe");document.body.appendChild(x);var _=x.contentWindow,w=_.document;w.open("image/svg+xml","replace"),w.write(f),w.close(),_.focus(),w.execCommand("SaveAs",!0,g),document.body.removeChild(x)}}else{var b=o.get("lang"),S='',M=window.open();M.document.write(S),M.document.title=r}},e.getDefaultOption=function(t){var i={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return i},e}(fn);const kY=DY;var oA="__ec_magicType_stack__",LY=[["line","bar"],["stack"]],PY=function(n){N(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,i=t.get("icon"),o={};return T(t.get("type"),function(r){i[r]&&(o[r]=i[r])}),o},e.getDefaultOption=function(t){var i={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return i},e.prototype.onclick=function(t,i,o){var r=this.model,a=r.get(["seriesIndex",o]);if(rA[o]){var s={series:[]},l=function(c){var p=c.subType,d=c.id,f=rA[o](p,d,c,r);f&&(Q(f,c.option),s.series.push(f));var g=c.coordinateSystem;if(g&&g.type==="cartesian2d"&&(o==="line"||o==="bar")){var y=g.getAxesByScale("ordinal")[0];if(y){var v=y.dim,m=v+"Axis",x=c.getReferringComponents(m,qt).models[0],_=x.componentIndex;s[m]=s[m]||[];for(var w=0;w<=_;w++)s[m][_]=s[m][_]||{};s[m][_].boundaryGap=o==="bar"}}};T(LY,function(c){pt(c,o)>=0&&T(c,function(p){r.setIconStatus(p,"normal")})}),r.setIconStatus(o,"emphasis"),t.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},l);var u,h=o;o==="stack"&&(u=st({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get(["iconStatus",o])!=="emphasis"&&(h="tiled")),i.dispatchAction({type:"changeMagicType",currentType:h,newOption:s,newTitle:u,featureName:"magicType"})}},e}(fn),rA={line:function(n,e,t,i){if(n==="bar")return st({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(n,e,t,i){if(n==="line")return st({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(n,e,t,i){var o=t.get("stack")===oA;if(n==="line"||n==="bar")return i.setIconStatus("stack",o?"normal":"emphasis"),st({id:e,stack:o?"":oA},i.get(["option","stack"])||{},!0)}};An({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const OY=PY;var Bc=new Array(60).join("-"),Pa=" ";function NY(n){var e={},t=[],i=[];return n.eachRawSeries(function(o){var r=o.coordinateSystem;if(r&&(r.type==="cartesian2d"||r.type==="polar")){var a=r.getBaseAxis();if(a.type==="category"){var s=a.dim+"_"+a.index;e[s]||(e[s]={categoryAxis:a,valueAxis:r.getOtherAxis(a),series:[]},i.push({axisDim:a.dim,axisIndex:a.index})),e[s].series.push(o)}else t.push(o)}else t.push(o)}),{seriesGroupByCategoryAxis:e,other:t,meta:i}}function RY(n){var e=[];return T(n,function(t,i){var o=t.categoryAxis,r=t.valueAxis,a=r.dim,s=[" "].concat(G(t.series,function(d){return d.name})),l=[o.model.getCategories()];T(t.series,function(d){var f=d.getRawData();l.push(d.getRawData().mapArray(f.mapDimension(a),function(g){return g}))});for(var u=[s.join(Pa)],h=0;h=0)return!0}var Kv=new RegExp("["+Pa+"]+","g");function BY(n){for(var e=n.split(/\n+/g),t=Gc(e.shift()).split(Kv),i=[],o=G(t,function(l){return{name:l,data:[]}}),r=0;r=0;r--){var a=t[r];if(a[o])break}if(r<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:o})[0];if(s){var l=s.getPercentRange();t[0][o]={dataZoomId:o,start:l[0],end:l[1]}}}}),t.push(e)}function ZY(n){var e=$v(n),t=e[e.length-1];e.length>1&&e.pop();var i={};return aA(t,function(o,r){for(var a=e.length-1;a>=0;a--)if(o=e[a][r],o){i[r]=o;break}}),i}function UY(n){sA(n).snapshots=null}function jY(n){return $v(n).length}function $v(n){var e=sA(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var qY=function(n){N(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){UY(t),i.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var i={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return i},e}(fn);An({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const KY=qY;var $Y=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],QY=function(){function n(e,t,i){var o=this;this._targetInfoList=[];var r=lA(t,e);T(JY,function(a,s){(!i||!i.include||pt(i.include,s)>=0)&&a(r,o._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(i,o,r){if((i.coordRanges||(i.coordRanges=[])).push(o),!i.coordRange){i.coordRange=o;var a=Jv[i.brushType](0,r,o);i.__rangeOffset={offset:pA[i.brushType](a.values,i.range,[1,1]),xyMinMax:a.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,i){T(e,function(o){var r=this.findTargetInfo(o,t);r&&r!==!0&&T(r.coordSyses,function(a){var s=Jv[o.brushType](1,a,o.range,!0);i(o,s.values,a,t)})},this)},n.prototype.setInputRanges=function(e,t){T(e,function(i){var o=this.findTargetInfo(i,t);if(i.range=i.range||[],o&&o!==!0){i.panelId=o.panelId;var r=Jv[i.brushType](0,o.coordSys,i.coordRange),a=i.__rangeOffset;i.range=a?pA[i.brushType](r.values,a.offset,tX(r.xyMinMax,a.xyMinMax)):r.values}},this)},n.prototype.makePanelOpts=function(e,t){return G(this._targetInfoList,function(i){var o=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t?t(i):null,clipPath:hT(o),isTargetByCursor:pT(o,e,i.coordSysModel),getLinearBrushOtherExtent:cT(o)}})},n.prototype.controlSeries=function(e,t,i){var o=this.findTargetInfo(e,i);return o===!0||o&&pt(o.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var i=this._targetInfoList,o=lA(t,e),r=0;rn[1]&&n.reverse(),n}function lA(n,e){return ds(n,e,{includeMainTypes:$Y})}var JY={grid:function(n,e){var t=n.xAxisModels,i=n.yAxisModels,o=n.gridModels,r=j(),a={},s={};!t&&!i&&!o||(T(t,function(l){var u=l.axis.grid.model;r.set(u.id,u),a[u.id]=!0}),T(i,function(l){var u=l.axis.grid.model;r.set(u.id,u),s[u.id]=!0}),T(o,function(l){r.set(l.id,l),a[l.id]=!0,s[l.id]=!0}),r.each(function(l){var u=l.coordinateSystem,h=[];T(u.getCartesians(),function(c,p){(pt(t,c.getAxis("x").model)>=0||pt(i,c.getAxis("y").model)>=0)&&h.push(c)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:h[0],coordSyses:h,getPanelRect:hA.grid,xAxisDeclared:a[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){T(n.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:hA.geo})})}},uA=[function(n,e){var t=n.xAxisModel,i=n.yAxisModel,o=n.gridModel;return!o&&t&&(o=t.axis.grid.model),!o&&i&&(o=i.axis.grid.model),o&&o===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],hA={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(Vi(n)),e}},Jv={lineX:rt(cA,0),lineY:rt(cA,1),rect:function(n,e,t,i){var o=n?e.pointToData([t[0][0],t[1][0]],i):e.dataToPoint([t[0][0],t[1][0]],i),r=n?e.pointToData([t[0][1],t[1][1]],i):e.dataToPoint([t[0][1],t[1][1]],i),a=[Qv([o[0],r[0]]),Qv([o[1],r[1]])];return{values:a,xyMinMax:a}},polygon:function(n,e,t,i){var o=[[1/0,-1/0],[1/0,-1/0]],r=G(t,function(a){var s=n?e.pointToData(a,i):e.dataToPoint(a,i);return o[0][0]=Math.min(o[0][0],s[0]),o[1][0]=Math.min(o[1][0],s[1]),o[0][1]=Math.max(o[0][1],s[0]),o[1][1]=Math.max(o[1][1],s[1]),s});return{values:r,xyMinMax:o}}};function cA(n,e,t,i){var o=t.getAxis(["x","y"][n]),r=Qv(G([0,1],function(s){return e?o.coordToData(o.toLocalCoord(i[s]),!0):o.toGlobalCoord(o.dataToCoord(i[s]))})),a=[];return a[n]=r,a[1-n]=[NaN,NaN],{values:r,xyMinMax:a}}var pA={lineX:rt(dA,0),lineY:rt(dA,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return G(n,function(i,o){return[i[0]-t[0]*e[o][0],i[1]-t[1]*e[o][1]]})}};function dA(n,e,t,i){return[e[0]-i[n]*t[0],e[1]-i[n]*t[1]]}function tX(n,e){var t=fA(n),i=fA(e),o=[t[0]/i[0],t[1]/i[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}function fA(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const tm=QY;var em=T,eX=sP("toolbox-dataZoom_"),nX=function(n){N(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,i,o,r){this._brushController||(this._brushController=new lv(o.getZr()),this._brushController.on("brush",Z(this._onBrush,this)).mount()),rX(t,i,this,r,o),oX(t,i)},e.prototype.onclick=function(t,i,o){iX[o].call(this)},e.prototype.remove=function(t,i){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,i){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var i=t.areas;if(!t.isEnd||!i.length)return;var o={},r=this.ecModel;this._brushController.updateCovers([]);var a=new tm(nm(this.model),r,{include:["grid"]});a.matchOutputRanges(i,r,function(u,h,c){if(c.type==="cartesian2d"){var p=u.brushType;p==="rect"?(s("x",c,h[0]),s("y",c,h[1])):s({lineX:"x",lineY:"y"}[p],c,h)}}),XY(r,o),this._dispatchZoomAction(o);function s(u,h,c){var p=h.getAxis(u),d=p.model,f=l(u,d,r),g=f.findRepresentativeAxisProxy(d).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(c=yr(0,c.slice(),p.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),f&&(o[f.id]={dataZoomId:f.id,startValue:c[0],endValue:c[1]})}function l(u,h,c){var p;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(d){var f=d.getAxisModel(u,h.componentIndex);f&&(p=d)}),p}},e.prototype._dispatchZoomAction=function(t){var i=[];em(t,function(o,r){i.push(et(o))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},e.getDefaultOption=function(t){var i={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return i},e}(fn),iX={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(ZY(this.ecModel))}};function nm(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function oX(n,e){n.setIconStatus("back",jY(e)>1?"emphasis":"normal")}function rX(n,e,t,i,o){var r=t._isZoomActive;i&&i.type==="takeGlobalCursor"&&(r=i.key==="dataZoomSelect"?i.dataZoomSelectActive:!1),t._isZoomActive=r,n.setIconStatus("zoom",r?"emphasis":"normal");var a=new tm(nm(n),e,{include:["grid"]}),s=a.makePanelOpts(o,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(r&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}BN("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var i=e.getModel(t),o=[],r=nm(i),a=ds(n,r);em(a.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),em(a.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,h){var c=l.componentIndex,p={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:eX+u+c};p[h]=c,o.push(p)}return o});const aX=nX;function sX(n){n.registerComponentModel(MY),n.registerComponentView(AY),La("saveAsImage",kY),La("magicType",OY),La("dataView",YY),La("dataZoom",aX),La("restore",KY),dt(wY)}var lX=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(_t);const uX=lX;function gA(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function yA(n){if(It.domSupported){for(var e=document.documentElement.style,t=0,i=n.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=r==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=r==="top"?225:45)+"deg)");var h=u*Math.PI/180,c=a+o,p=c*Math.abs(Math.cos(h))+c*Math.abs(Math.sin(h)),d=Math.round(((p-Math.SQRT2*o)/2+Math.SQRT2*o-(p-c)/2)*100)/100;s+=";"+r+":-"+d+"px";var f=e+" solid "+o+"px;",g=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"];return'
'}function yX(n,e){var t="cubic-bezier(0.23,1,0.32,1)",i=" "+n/2+"s "+t,o="opacity"+i+",visibility"+i;return e||(i=" "+n+"s "+t,o+=It.transformSupported?","+im+i:",left"+i+",top"+i),pX+":"+o}function xA(n,e,t){var i=n.toFixed(0)+"px",o=e.toFixed(0)+"px";if(!It.transformSupported)return t?"top:"+o+";left:"+i+";":[["top",o],["left",i]];var r=It.transform3dSupported,a="translate"+(r?"3d":"")+"("+i+","+o+(r?",0":"")+")";return t?"top:0;left:0;"+im+":"+a+";":[["top",0],["left",0],[vA,a]]}function vX(n){var e=[],t=n.get("fontSize"),i=n.getTextColor();i&&e.push("color:"+i),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var o=n.get("textShadowColor"),r=n.get("textShadowBlur")||0,a=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return o&&r&&e.push("text-shadow:"+a+"px "+s+"px "+r+"px "+o),T(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function mX(n,e,t){var i=[],o=n.get("transitionDuration"),r=n.get("backgroundColor"),a=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),h=n.getModel("textStyle"),c=gb(n,"html"),p=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+p),e&&o&&i.push(yX(o,t)),r&&i.push("background-color:"+r),T(["width","color","radius"],function(d){var f="border-"+d,g=cf(f),y=n.get(g);y!=null&&i.push(f+":"+y+(d==="color"?"":"px"))}),i.push(vX(h)),c!=null&&i.push("padding:"+Go(c).join("px ")+"px"),i.join(";")+";"}function _A(n,e,t,i,o){var r=e&&e.painter;if(t){var a=r&&r.getViewportRoot();a&&Ik(n,a,t,i,o)}else{n[0]=i,n[1]=o;var s=r&&r.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var xX=function(){function n(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,It.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var o=this._zr=e.getZr(),r=t.appendTo,a=r&&(Y(r)?document.querySelector(r):lo(r)?r:K(r)&&r(e.getDom()));_A(this._styleCoord,o,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(i),this._api=e,this._container=a;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=o.handler,h=o.painter.getViewportRoot();Ke(h,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),i=cX(t,"position"),o=t.style;o.position!=="absolute"&&i!=="absolute"&&(o.position="relative")}var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,o=i.style,r=this._styleCoord;i.innerHTML?o.cssText=dX+mX(e,!this._firstShow,this._longHide)+xA(r[0],r[1],!0)+("border-color:"+Fo(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):o.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,i,o,r){var a=this.el;if(e==null){a.innerHTML="";return}var s="";if(Y(r)&&i.get("trigger")==="item"&&!gA(i)&&(s=gX(i,o,r)),Y(e))a.innerHTML=e+s;else if(e){a.innerHTML="",B(e)||(e=[e]);for(var l=0;l=0?this._tryShow(r,a):o==="leave"&&this._hide(a))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,i=this._ecModel,o=this._api,r=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&r!=="none"&&r!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!o.isDisposed()&&a.manuallyShowTip(t,i,o,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,i,o,r){if(!(r.from===this.uid||It.node||!o.getDom())){var a=SA(r,o);this._ticket="";var s=r.dataByCoordSys,l=AX(r,i,o);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:r.position,positionDefault:"bottom"},a)}else if(r.tooltip&&r.x!=null&&r.y!=null){var h=SX;h.x=r.x,h.y=r.y,h.update(),ot(h).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:h},a)}else if(s)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:s,tooltipOption:r.tooltipOption},a);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(t,i,o,r))return;var c=DC(r,i),p=c.point[0],d=c.point[1];p!=null&&d!=null&&this._tryShow({offsetX:p,offsetY:d,target:c.el,position:r.position,positionDefault:"bottom"},a)}else r.x!=null&&r.y!=null&&(o.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:o.getZr().findHover(r.x,r.y).target},a))}},e.prototype.manuallyHideTip=function(t,i,o,r){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(SA(r,o))},e.prototype._manuallyAxisShowTip=function(t,i,o,r){var a=r.seriesIndex,s=r.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var u=i.getSeriesByIndex(a);if(u){var h=u.getData(),c=Rl([h.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return o.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:r.position}),!0}}},e.prototype._tryShow=function(t,i){var o=t.target,r=this._tooltipModel;if(r){this._lastX=t.offsetX,this._lastY=t.offsetY;var a=t.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,t);else if(o){var s=ot(o);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Uo(o,function(h){if(ot(h).dataIndex!=null)return l=h,!0;if(ot(h).tooltipConfig!=null)return u=h,!0},!0),l?this._showSeriesItemTooltip(t,l,i):u?this._showComponentItemTooltip(t,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},e.prototype._showOrMove=function(t,i){var o=t.get("showDelay");i=Z(i,this),clearTimeout(this._showTimout),o>0?this._showTimout=setTimeout(i,o):i()},e.prototype._showAxisTooltip=function(t,i){var o=this._ecModel,r=this._tooltipModel,a=[i.offsetX,i.offsetY],s=Rl([i.tooltipOption],r),l=this._renderMode,u=[],h=ie("section",{blocks:[],noHeader:!0}),c=[],p=new Nf;T(t,function(m){T(m.dataByAxis,function(x){var _=o.getComponent(x.axisDim+"Axis",x.axisIndex),w=x.value;if(!(!_||w==null)){var b=bC(w,_.axis,o,x.seriesDataIndices,x.valueLabelOpt),S=ie("section",{header:b,noHeader:!je(b),sortBlocks:!0,blocks:[]});h.blocks.push(S),T(x.seriesDataIndices,function(M){var I=o.getSeriesByIndex(M.seriesIndex),C=M.dataIndexInside,A=I.getDataParams(C);if(!(A.dataIndex<0)){A.axisDim=x.axisDim,A.axisIndex=x.axisIndex,A.axisType=x.axisType,A.axisId=x.axisId,A.axisValue=wg(_.axis,{value:w}),A.axisValueLabel=b,A.marker=p.makeTooltipMarker("item",Fo(A.color),l);var D=q_(I.formatTooltip(C,!0,null)),k=D.frag;if(k){var L=Rl([I],r).get("valueFormatter");S.blocks.push(L?V({valueFormatter:L},k):k)}D.text&&c.push(D.text),u.push(A)}})}})}),h.blocks.reverse(),c.reverse();var d=i.position,f=s.get("order"),g=pb(h,p,l,f,o.get("useUTC"),s.get("textStyle"));g&&c.unshift(g);var y=l==="richText"?` + +`:"
",v=c.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,d,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,v,u,Math.random()+"",a[0],a[1],d,null,p)})},e.prototype._showSeriesItemTooltip=function(t,i,o){var r=this._ecModel,a=ot(i),s=a.seriesIndex,l=r.getSeriesByIndex(s),u=a.dataModel||l,h=a.dataIndex,c=a.dataType,p=u.getData(c),d=this._renderMode,f=t.positionDefault,g=Rl([p.getItemModel(h),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),y=g.get("trigger");if(!(y!=null&&y!=="item")){var v=u.getDataParams(h,c),m=new Nf;v.marker=m.makeTooltipMarker("item",Fo(v.color),d);var x=q_(u.formatTooltip(h,!1,c)),_=g.get("order"),w=g.get("valueFormatter"),b=x.frag,S=b?pb(w?V({valueFormatter:w},b):b,m,d,_,r.get("useUTC"),g.get("textStyle")):x.text,M="item_"+u.name+"_"+h;this._showOrMove(g,function(){this._showTooltipContent(g,S,v,M,t.offsetX,t.offsetY,t.position,t.target,m)}),o({type:"showTip",dataIndexInside:h,dataIndex:p.getRawIndex(h),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,i,o){var r=this._renderMode==="html",a=ot(i),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Y(l)){var h=l;l={content:h,formatter:h},u=!0}u&&r&&l.content&&(l=et(l),l.content=ye(l.content));var c=[l],p=this._ecModel.getComponent(a.componentMainType,a.componentIndex);p&&c.push(p),c.push({formatter:l.content});var d=t.positionDefault,f=Rl(c,this._tooltipModel,d?{position:d}:null),g=f.get("content"),y=Math.random()+"",v=new Nf;this._showOrMove(f,function(){var m=et(f.get("formatterParams")||{});this._showTooltipContent(f,g,m,y,t.offsetX,t.offsetY,t.position,i,v)}),o({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,i,o,r,a,s,l,u,h){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var p=t.get("formatter");l=l||t.get("position");var d=i,f=this._getNearestPoint([a,s],o,t.get("trigger"),t.get("borderColor")),g=f.color;if(p)if(Y(p)){var y=t.ecModel.get("useUTC"),v=B(o)?o[0]:o,m=v&&v.axisType&&v.axisType.indexOf("time")>=0;d=p,m&&(d=Ns(v.axisValue,d,y)),d=ff(d,o,!0)}else if(K(p)){var x=Z(function(_,w){_===this._ticket&&(c.setContent(w,h,t,g,l),this._updatePosition(t,l,a,s,c,o,u))},this);this._ticket=r,d=p(o,r,x)}else d=p;c.setContent(d,h,t,g,l),c.show(t,g),this._updatePosition(t,l,a,s,c,o,u)}},e.prototype._getNearestPoint=function(t,i,o,r){if(o==="axis"||B(i))return{color:r||(this._renderMode==="html"?"#fff":"none")};if(!B(i))return{color:r||i.color||i.borderColor}},e.prototype._updatePosition=function(t,i,o,r,a,s,l){var u=this._api.getWidth(),h=this._api.getHeight();i=i||t.get("position");var c=a.getSize(),p=t.get("align"),d=t.get("verticalAlign"),f=l&&l.getBoundingRect().clone();if(l&&f.applyTransform(l.transform),K(i)&&(i=i([o,r],s,a.el,f,{viewSize:[u,h],contentSize:c.slice()})),B(i))o=H(i[0],u),r=H(i[1],h);else if(tt(i)){var g=i;g.width=c[0],g.height=c[1];var y=Kt(g,{width:u,height:h});o=y.x,r=y.y,p=null,d=null}else if(Y(i)&&l){var v=CX(i,f,c,t.get("borderWidth"));o=v[0],r=v[1]}else{var v=IX(o,r,a,u,h,p?null:20,d?null:20);o=v[0],r=v[1]}if(p&&(o-=MA(p)?c[0]/2:p==="right"?c[0]:0),d&&(r-=MA(d)?c[1]/2:d==="bottom"?c[1]:0),gA(t)){var v=TX(o,r,a,u,h);o=v[0],r=v[1]}a.moveTo(o,r)},e.prototype._updateContentNotChangedOnAxis=function(t,i){var o=this._lastDataByCoordSys,r=this._cbParamsList,a=!!o&&o.length===t.length;return a&&T(o,function(s,l){var u=s.dataByAxis||[],h=t[l]||{},c=h.dataByAxis||[];a=a&&u.length===c.length,a&&T(u,function(p,d){var f=c[d]||{},g=p.seriesDataIndices||[],y=f.seriesDataIndices||[];a=a&&p.value===f.value&&p.axisType===f.axisType&&p.axisId===f.axisId&&g.length===y.length,a&&T(g,function(v,m){var x=y[m];a=a&&v.seriesIndex===x.seriesIndex&&v.dataIndex===x.dataIndex}),r&&T(p.seriesDataIndices,function(v){var m=v.seriesIndex,x=i[m],_=r[m];x&&_&&_.data!==x.data&&(a=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=i,!!a},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,i){It.node||!i.getDom()||(Hs(this,"_updatePosition"),this._tooltipContent.dispose(),Vv("itemTooltip",i))},e.type="tooltip",e}(Bt);function Rl(n,e,t){var i=e.ecModel,o;t?(o=new Pt(t,i,i),o=new Pt(e.option,o,i)):o=e;for(var r=n.length-1;r>=0;r--){var a=n[r];a&&(a instanceof Pt&&(a=a.get("tooltip",!0)),Y(a)&&(a={formatter:a}),a&&(o=new Pt(a,o,i)))}return o}function SA(n,e){return n.dispatchAction||Z(e.dispatchAction,e)}function IX(n,e,t,i,o,r,a){var s=t.getSize(),l=s[0],u=s[1];return r!=null&&(n+l+r+2>i?n-=l+r:n+=r),a!=null&&(e+u+a>o?e-=u+a:e+=a),[n,e]}function TX(n,e,t,i,o){var r=t.getSize(),a=r[0],s=r[1];return n=Math.min(n+a,i)-a,e=Math.min(e+s,o)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function CX(n,e,t,i){var o=t[0],r=t[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(n){case"inside":s=e.x+u/2-o/2,l=e.y+h/2-r/2;break;case"top":s=e.x+u/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-o/2,l=e.y+h+a;break;case"left":s=e.x-o-a,l=e.y+h/2-r/2;break;case"right":s=e.x+u+a,l=e.y+h/2-r/2}return[s,l]}function MA(n){return n==="center"||n==="middle"}function AX(n,e,t){var i=ud(n).queryOptionMap,o=i.keys()[0];if(!(!o||o==="series")){var r=fs(e,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}),a=r.models[0];if(a){var s=t.getViewOfComponentModel(a),l;if(s.group.traverse(function(u){var h=ot(u).tooltipConfig;if(h&&h.name===n.name)return l=u,!0}),l)return{componentMainType:o,componentIndex:a.componentIndex,el:l}}}}const DX=MX;function kX(n){dt(Ol),n.registerComponentModel(uX),n.registerComponentView(DX),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Zt),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Zt)}var LX=["rect","polygon","keep","clear"];function PX(n,e){var t=Lt(n?n.brush:[]);if(t.length){var i=[];T(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(i=i.concat(u))});var o=n&&n.toolbox;B(o)&&(o=o[0]),o||(o={feature:{}},n.toolbox=[o]);var r=o.feature||(o.feature={}),a=r.brush||(r.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),OX(s),e&&!s.length&&s.push.apply(s,LX)}}function OX(n){var e={};T(n,function(t){e[t]=1}),n.length=0,T(e,function(t,i){n.push(i)})}var IA=T;function TA(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function om(n,e,t){var i={};return IA(e,function(r){var a=i[r]=o();IA(n[r],function(s,l){if(pe.isValidType(l)){var u={type:l,visual:s};t&&t(u,r),a[l]=new pe(u),l==="opacity"&&(u=et(u),u.type="colorAlpha",a.__hidden.__alphaForOpacity=new pe(u))}})}),i;function o(){var r=function(){};r.prototype.__hidden=r.prototype;var a=new r;return a}}function CA(n,e,t){var i;T(t,function(o){e.hasOwnProperty(o)&&TA(e[o])&&(i=!0)}),i&&T(t,function(o){e.hasOwnProperty(o)&&TA(e[o])?n[o]=et(e[o]):delete n[o]})}function NX(n,e,t,i,o,r){var a={};T(n,function(c){var p=pe.prepareVisualTypes(e[c]);a[c]=p});var s;function l(c){return Bf(t,s,c)}function u(c,p){Eb(t,s,c,p)}r==null?t.each(h):t.each([r],h);function h(c,p){s=r==null?c:p;var d=t.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var f=i.call(o,c),g=e[f],y=a[f],v=0,m=y.length;ve[0][1]&&(e[0][1]=r[0]),r[1]e[1][1]&&(e[1][1]=r[1])}return e&&OA(e)}};function OA(n){return new ct(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var WX=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.ecModel=t,this.api=i,this.model,(this._brushController=new lv(i.getZr())).on("brush",Z(this._onBrush,this)).mount()},e.prototype.render=function(t,i,o,r){this.model=t,this._updateController(t,i,o,r)},e.prototype.updateTransform=function(t,i,o,r){LA(i),this._updateController(t,i,o,r)},e.prototype.updateVisual=function(t,i,o,r){this.updateTransform(t,i,o,r)},e.prototype.updateView=function(t,i,o,r){this._updateController(t,i,o,r)},e.prototype._updateController=function(t,i,o,r){(!r||r.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(o)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var i=this.model.id,o=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:et(o),$from:i}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:et(o),$from:i})},e.type="brush",e}(Bt);const HX=WX;var YX="#ddd",XX=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,i){var o=this.option;!i&&CA(o,t,["inBrush","outOfBrush"]);var r=o.inBrush=o.inBrush||{};o.outOfBrush=o.outOfBrush||{color:YX},r.hasOwnProperty("liftZ")||(r.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=G(t,function(i){return NA(this.option,i)},this))},e.prototype.setBrushOption=function(t){this.brushOption=NA(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(_t);function NA(n,e){return st({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Pt(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}const ZX=XX;var UX=["rect","polygon","lineX","lineY","keep","clear"],jX=function(n){N(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,i,o){var r,a,s;i.eachComponent({mainType:"brush"},function(l){r=l.brushType,a=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=r,this._brushMode=a,T(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?a==="multiple":l==="clear"?s:l===r)?"emphasis":"normal")})},e.prototype.updateView=function(t,i,o){this.render(t,i,o)},e.prototype.getIcons=function(){var t=this.model,i=t.get("icon",!0),o={};return T(t.get("type",!0),function(r){i[r]&&(o[r]=i[r])}),o},e.prototype.onclick=function(t,i,o){var r=this._brushType,a=this._brushMode;o==="clear"?(i.dispatchAction({type:"axisAreaSelect",intervals:[]}),i.dispatchAction({type:"brush",command:"clear",areas:[]})):i.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:o==="keep"?r:r===o?!1:o,brushMode:o==="keep"?a==="multiple"?"single":"multiple":a}})},e.getDefaultOption=function(t){var i={show:!0,type:UX.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return i},e}(fn);const qX=jX;function KX(n){n.registerComponentView(HX),n.registerComponentModel(ZX),n.registerPreprocessor(PX),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,EX),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(i){i.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Zt),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Zt),La("brush",qX)}var $X=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(_t),QX=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){if(this.group.removeAll(),!!t.get("show")){var r=this.group,a=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=at(t.get("textBaseline"),t.get("textVerticalAlign")),h=new St({style:Rt(a,{text:t.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),c=h.getBoundingRect(),p=t.get("subtext"),d=new St({style:Rt(s,{text:p,fill:s.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=t.get("link"),g=t.get("sublink"),y=t.get("triggerEvent",!0);h.silent=!f&&!y,d.silent=!g&&!y,f&&h.on("click",function(){uh(f,"_"+t.get("target"))}),g&&d.on("click",function(){uh(g,"_"+t.get("subtarget"))}),ot(h).eventData=ot(d).eventData=y?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(h),p&&r.add(d);var v=r.getBoundingRect(),m=t.getBoxLayoutParams();m.width=v.width,m.height=v.height;var x=Kt(m,{width:o.getWidth(),height:o.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),r.x=x.x,r.y=x.y,r.markRedraw();var _={align:l,verticalAlign:u};h.setStyle(_),d.setStyle(_),v=r.getBoundingRect();var w=x.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var S=new wt({shape:{x:v.x-w[3],y:v.y-w[0],width:v.width+w[1]+w[3],height:v.height+w[0]+w[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});r.add(S)}},e.type="title",e}(Bt);function JX(n){n.registerComponentModel($X),n.registerComponentView(QX)}var tZ=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,i,o){this.mergeDefaultAndTheme(t,o),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var i=this._data.count();this.option.loop?t=(t%i+i)%i:(t>=i&&(t=i-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,i=t.data||[],o=t.axisType,r=this._names=[],a;o==="category"?(a=[],T(i,function(u,h){var c=Qt(Er(u),""),p;tt(u)?(p=et(u),p.value=h):p=h,a.push(p),r.push(c)})):a=i;var s={category:"ordinal",time:"time",value:"number"}[o]||"number",l=this._data=new be([{name:"value",type:s}],this);l.initData(a,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(_t);const RA=tZ;var zA=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Gi(RA.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(RA);Xt(zA,fh.prototype);const eZ=zA;var nZ=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Bt);const iZ=nZ;var oZ=function(n){N(e,n);function e(t,i,o,r){var a=n.call(this,t,i,o)||this;return a.type=r||"value",a}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(ln);const rZ=oZ;var sm=Math.PI,EA=bt(),aZ=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.api=i},e.prototype.render=function(t,i,o){if(this.model=t,this.api=o,this.ecModel=i,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,o),a=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(r,t);t.formatTooltip=function(u){var h=l.scale.getLabel({value:u});return ie("nameValue",{noName:!0,value:h})},T(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](r,a,l,t)},this),this._renderAxisLabel(r,s,l,t),this._position(r,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,i){var o=t.get(["label","position"]),r=t.get("orient"),a=lZ(t,i),s;o==null||o==="auto"?s=r==="horizontal"?a.y+a.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:sm/2},c=r==="vertical"?a.height:a.width,p=t.getModel("controlStyle"),d=p.get("show",!0),f=d?p.get("itemSize"):0,g=d?p.get("itemGap"):0,y=f+g,v=t.get(["label","rotate"])||0;v=v*sm/180;var m,x,_,w=p.get("position",!0),b=d&&p.get("showPlayBtn",!0),S=d&&p.get("showPrevBtn",!0),M=d&&p.get("showNextBtn",!0),I=0,C=c;w==="left"||w==="bottom"?(b&&(m=[0,0],I+=y),S&&(x=[I,0],I+=y),M&&(_=[C-f,0],C-=y)):(b&&(m=[C-f,0],C-=y),S&&(x=[0,0],I+=y),M&&(_=[C-f,0],C-=y));var A=[I,C];return t.get("inverse")&&A.reverse(),{viewRect:a,mainLength:c,orient:r,rotation:h[r],labelRotation:v,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[r],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[r],playPosition:m,prevBtnPosition:x,nextBtnPosition:_,axisExtent:A,controlSize:f,controlGap:g}},e.prototype._position=function(t,i){var o=this._mainGroup,r=this._labelGroup,a=t.viewRect;if(t.orient==="vertical"){var s=Ne(),l=a.x,u=a.y+a.height;vn(s,s,[-l,-u]),Ti(s,s,-sm/2),vn(s,s,[l,u]),a=a.clone(),a.applyTransform(s)}var h=m(a),c=m(o.getBoundingRect()),p=m(r.getBoundingRect()),d=[o.x,o.y],f=[r.x,r.y];f[0]=d[0]=h[0][0];var g=t.labelPosOpt;if(g==null||Y(g)){var y=g==="+"?0:1;x(d,c,h,1,y),x(f,p,h,1,1-y)}else{var y=g>=0?0:1;x(d,c,h,1,y),f[1]=d[1]+g}o.setPosition(d),r.setPosition(f),o.rotation=r.rotation=t.rotation,v(o),v(r);function v(_){_.originX=h[0][0]-_.x,_.originY=h[1][0]-_.y}function m(_){return[[_.x,_.x+_.width],[_.y,_.y+_.height]]}function x(_,w,b,S,M){_[S]+=b[S][M]-w[S][M]}},e.prototype._createAxis=function(t,i){var o=i.getData(),r=i.get("axisType"),a=sZ(i,r);a.getTicks=function(){return o.mapArray(["value"],function(u){return{value:u}})};var s=o.getDataExtent("value");a.setExtent(s[0],s[1]),a.calcNiceTicks();var l=new rZ("value",a,t.axisExtent,r);return l.model=i,l},e.prototype._createGroup=function(t){var i=this[t]=new it;return this.group.add(i),i},e.prototype._renderAxisLine=function(t,i,o,r){var a=o.getExtent();if(r.get(["lineStyle","show"])){var s=new ee({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:V({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});i.add(s);var l=this._progressLine=new ee({shape:{x1:a[0],x2:this._currentPointer?this._currentPointer.x:a[0],y1:0,y2:0},style:Q({lineCap:"round",lineWidth:s.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});i.add(l)}},e.prototype._renderAxisTick=function(t,i,o,r){var a=this,s=r.getData(),l=o.scale.getTicks();this._tickSymbols=[],T(l,function(u){var h=o.dataToCoord(u.value),c=s.getItemModel(u.value),p=c.getModel("itemStyle"),d=c.getModel(["emphasis","itemStyle"]),f=c.getModel(["progress","itemStyle"]),g={x:h,y:0,onclick:Z(a._changeTimeline,a,u.value)},y=VA(c,p,i,g);y.ensureState("emphasis").style=d.getItemStyle(),y.ensureState("progress").style=f.getItemStyle(),zi(y);var v=ot(y);c.get("tooltip")?(v.dataIndex=u.value,v.dataModel=r):v.dataIndex=v.dataModel=null,a._tickSymbols.push(y)})},e.prototype._renderAxisLabel=function(t,i,o,r){var a=this,s=o.getLabelModel();if(s.get("show")){var l=r.getData(),u=o.getViewLabels();this._tickLabels=[],T(u,function(h){var c=h.tickValue,p=l.getItemModel(c),d=p.getModel("label"),f=p.getModel(["emphasis","label"]),g=p.getModel(["progress","label"]),y=o.dataToCoord(h.tickValue),v=new St({x:y,y:0,rotation:t.labelRotation-t.rotation,onclick:Z(a._changeTimeline,a,c),silent:!1,style:Rt(d,{text:h.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});v.ensureState("emphasis").style=Rt(f),v.ensureState("progress").style=Rt(g),i.add(v),zi(v),EA(v).dataIndex=c,a._tickLabels.push(v)})}},e.prototype._renderControl=function(t,i,o,r){var a=t.controlSize,s=t.rotation,l=r.getModel("controlStyle").getItemStyle(),u=r.getModel(["emphasis","controlStyle"]).getItemStyle(),h=r.getPlayState(),c=r.get("inverse",!0);p(t.nextBtnPosition,"next",Z(this._changeTimeline,this,c?"-":"+")),p(t.prevBtnPosition,"prev",Z(this._changeTimeline,this,c?"+":"-")),p(t.playPosition,h?"stop":"play",Z(this._handlePlayClick,this,!h),!0);function p(d,f,g,y){if(d){var v=bn(at(r.get(["controlStyle",f+"BtnSize"]),a),a),m=[0,-v/2,v,v],x=uZ(r,f+"Icon",m,{x:d[0],y:d[1],originX:a/2,originY:0,rotation:y?-s:0,rectHover:!0,style:l,onclick:g});x.ensureState("emphasis").style=u,i.add(x),zi(x)}}},e.prototype._renderCurrentPointer=function(t,i,o,r){var a=r.getData(),s=r.getCurrentIndex(),l=a.getItemModel(s).getModel("checkpointStyle"),u=this,h={onCreate:function(c){c.draggable=!0,c.drift=Z(u._handlePointerDrag,u),c.ondragend=Z(u._handlePointerDragend,u),BA(c,u._progressLine,s,o,r,!0)},onUpdate:function(c){BA(c,u._progressLine,s,o,r)}};this._currentPointer=VA(l,l,this._mainGroup,{},this._currentPointer,h)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,i,o){this._clearTimer(),this._pointerChangeTimeline([o.offsetX,o.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,i){var o=this._toAxisCoord(t)[0],r=this._axis,a=We(r.getExtent().slice());o>a[1]&&(o=a[1]),o=0&&(a[r]=+a[r].toFixed(p)),[a,c]}var hm={min:rt(Hc,"min"),max:rt(Hc,"max"),average:rt(Hc,"average"),median:rt(Hc,"median")};function El(n,e){if(e){var t=n.getData(),i=n.coordinateSystem,o=i&&i.dimensions;if(!vZ(e)&&!B(e.coord)&&B(o)){var r=WA(e,t,i,n);if(e=et(e),e.type&&hm[e.type]&&r.baseAxis&&r.valueAxis){var a=pt(o,r.baseAxis.dim),s=pt(o,r.valueAxis.dim),l=hm[e.type](t,r.baseDataDim,r.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!B(o))e.coord=[];else for(var u=e.coord,h=0;h<2;h++)hm[u[h]]&&(u[h]=cm(t,t.mapDimension(o[h]),u[h]));return e}}function WA(n,e,t,i){var o={};return n.valueIndex!=null||n.valueDim!=null?(o.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,o.valueAxis=t.getAxis(mZ(i,o.valueDataDim)),o.baseAxis=t.getOtherAxis(o.valueAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim)):(o.baseAxis=i.getBaseAxis(),o.valueAxis=t.getOtherAxis(o.baseAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim),o.valueDataDim=e.mapDimension(o.valueAxis.dim)),o}function mZ(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function Vl(n,e){return n&&n.containData&&e.coord&&!um(e)?n.containData(e.coord):!0}function xZ(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!um(e)&&!um(t)?n.containZone(e.coord,t.coord):!0}function HA(n,e){return n?function(t,i,o,r){var a=r<2?t.coord&&t.coord[r]:t.value;return Hi(a,e[r])}:function(t,i,o,r){return Hi(t.value,e[r])}}function cm(n,e,t){if(t==="average"){var i=0,o=0;return n.each(e,function(r,a){isNaN(r)||(i+=r,o++)}),i/o}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var pm=bt(),_Z=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=j()},e.prototype.render=function(t,i,o){var r=this,a=this.markerGroupMap;a.each(function(s){pm(s).keep=!1}),i.eachSeries(function(s){var l=ro.getMarkerModelFromSeries(s,r.type);l&&r.renderSeries(s,l,i,o)}),a.each(function(s){!pm(s).keep&&r.group.remove(s.group)})},e.prototype.markKeep=function(t){pm(t).keep=!0},e.prototype.toggleBlurSeries=function(t,i){var o=this;T(t,function(r){var a=ro.getMarkerModelFromSeries(r,o.type);if(a){var s=a.getData();s.eachItemGraphicEl(function(l){l&&(i?tx(l):Nd(l))})}})},e.type="marker",e}(Bt);const dm=_Z;function YA(n,e,t){var i=e.coordinateSystem;n.each(function(o){var r=n.getItemModel(o),a,s=H(r.get("x"),t.getWidth()),l=H(r.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))a=[s,l];else if(e.getMarkerPosition)a=e.getMarkerPosition(n.getValues(n.dimensions,o));else if(i){var u=n.get(i.dimensions[0],o),h=n.get(i.dimensions[1],o);a=i.dataToPoint([u,h])}isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),n.setItemLayout(o,a)})}var bZ=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,o){i.eachSeries(function(r){var a=ro.getMarkerModelFromSeries(r,"markPoint");a&&(YA(a.getData(),r,o),this.markerGroupMap.get(r.id).updateLayout())},this)},e.prototype.renderSeries=function(t,i,o,r){var a=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,h=u.get(s)||u.set(s,new hl),c=wZ(a,t,i);i.setData(c),YA(i.getData(),t,r),c.each(function(p){var d=c.getItemModel(p),f=d.getShallow("symbol"),g=d.getShallow("symbolSize"),y=d.getShallow("symbolRotate"),v=d.getShallow("symbolOffset"),m=d.getShallow("symbolKeepAspect");if(K(f)||K(g)||K(y)||K(v)){var x=i.getRawValue(p),_=i.getDataParams(p);K(f)&&(f=f(x,_)),K(g)&&(g=g(x,_)),K(y)&&(y=y(x,_)),K(v)&&(v=v(x,_))}var w=d.getModel("itemStyle").getItemStyle(),b=Zs(l,"color");w.fill||(w.fill=b),c.setItemVisual(p,{symbol:f,symbolSize:g,symbolRotate:y,symbolOffset:v,symbolKeepAspect:m,style:w})}),h.updateData(c),this.group.add(h.group),c.eachItemGraphicEl(function(p){p.traverse(function(d){ot(d).dataModel=i})}),this.markKeep(h),h.group.silent=i.get("silent")||t.get("silent")},e.type="markPoint",e}(dm);function wZ(n,e,t){var i;n?i=G(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return V(V({},l),{name:s,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var o=new be(i,t),r=G(t.get("data"),rt(El,e));n&&(r=Dt(r,rt(Vl,n)));var a=HA(!!n,i);return o.initData(r,null,a),o}const SZ=bZ;function MZ(n){n.registerComponentModel(yZ),n.registerComponentView(SZ),n.registerPreprocessor(function(e){lm(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var IZ=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,o){return new e(t,i,o)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(ro);const TZ=IZ;var Yc=bt(),CZ=function(n,e,t,i){var o=n.getData(),r;if(B(i))r=i;else{var a=i.type;if(a==="min"||a==="max"||a==="average"||a==="median"||i.xAxis!=null||i.yAxis!=null){var s=void 0,l=void 0;if(i.yAxis!=null||i.xAxis!=null)s=e.getAxis(i.yAxis!=null?"y":"x"),l=Jt(i.yAxis,i.xAxis);else{var u=WA(i,o,e,n);s=u.valueAxis;var h=dg(o,u.valueDataDim);l=cm(o,h,a)}var c=s.dim==="x"?0:1,p=1-c,d=et(i),f={coord:[]};d.type=null,d.coord=[],d.coord[p]=-1/0,f.coord[p]=1/0;var g=t.get("precision");g>=0&&Tt(l)&&(l=+l.toFixed(Math.min(g,20))),d.coord[c]=f.coord[c]=l,r=[d,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var y=[El(n,r[0]),El(n,r[1]),V({},r[2])];return y[2].type=y[2].type||null,st(y[2],y[0]),st(y[2],y[1]),y};function Xc(n){return!isNaN(n)&&!isFinite(n)}function XA(n,e,t,i){var o=1-n,r=i.dimensions[n];return Xc(e[o])&&Xc(t[o])&&e[n]===t[n]&&i.getAxis(r).containData(e[n])}function AZ(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,i=e[1].coord;if(t&&i&&(XA(1,t,i,n)||XA(0,t,i,n)))return!0}return Vl(n,e[0])&&Vl(n,e[1])}function fm(n,e,t,i,o){var r=i.coordinateSystem,a=n.getItemModel(e),s,l=H(a.get("x"),o.getWidth()),u=H(a.get("y"),o.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition)s=i.getMarkerPosition(n.getValues(n.dimensions,e));else{var h=r.dimensions,c=n.get(h[0],e),p=n.get(h[1],e);s=r.dataToPoint([c,p])}if(sr(r,"cartesian2d")){var d=r.getAxis("x"),f=r.getAxis("y"),h=r.dimensions;Xc(n.get(h[0],e))?s[0]=d.toGlobalCoord(d.getExtent()[t?0:1]):Xc(n.get(h[1],e))&&(s[1]=f.toGlobalCoord(f.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var DZ=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,o){i.eachSeries(function(r){var a=ro.getMarkerModelFromSeries(r,"markLine");if(a){var s=a.getData(),l=Yc(a).from,u=Yc(a).to;l.each(function(h){fm(l,h,!0,r,o),fm(u,h,!1,r,o)}),s.each(function(h){s.setItemLayout(h,[l.getItemLayout(h),u.getItemLayout(h)])}),this.markerGroupMap.get(r.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,i,o,r){var a=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,h=u.get(s)||u.set(s,new Wy);this.group.add(h.group);var c=kZ(a,t,i),p=c.from,d=c.to,f=c.line;Yc(i).from=p,Yc(i).to=d,i.setData(f);var g=i.get("symbol"),y=i.get("symbolSize"),v=i.get("symbolRotate"),m=i.get("symbolOffset");B(g)||(g=[g,g]),B(y)||(y=[y,y]),B(v)||(v=[v,v]),B(m)||(m=[m,m]),c.from.each(function(_){x(p,_,!0),x(d,_,!1)}),f.each(function(_){var w=f.getItemModel(_).getModel("lineStyle").getLineStyle();f.setItemLayout(_,[p.getItemLayout(_),d.getItemLayout(_)]),w.stroke==null&&(w.stroke=p.getItemVisual(_,"style").fill),f.setItemVisual(_,{fromSymbolKeepAspect:p.getItemVisual(_,"symbolKeepAspect"),fromSymbolOffset:p.getItemVisual(_,"symbolOffset"),fromSymbolRotate:p.getItemVisual(_,"symbolRotate"),fromSymbolSize:p.getItemVisual(_,"symbolSize"),fromSymbol:p.getItemVisual(_,"symbol"),toSymbolKeepAspect:d.getItemVisual(_,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(_,"symbolOffset"),toSymbolRotate:d.getItemVisual(_,"symbolRotate"),toSymbolSize:d.getItemVisual(_,"symbolSize"),toSymbol:d.getItemVisual(_,"symbol"),style:w})}),h.updateData(f),c.line.eachItemGraphicEl(function(_){ot(_).dataModel=i,_.traverse(function(w){ot(w).dataModel=i})});function x(_,w,b){var S=_.getItemModel(w);fm(_,w,b,t,r);var M=S.getModel("itemStyle").getItemStyle();M.fill==null&&(M.fill=Zs(l,"color")),_.setItemVisual(w,{symbolKeepAspect:S.get("symbolKeepAspect"),symbolOffset:at(S.get("symbolOffset",!0),m[b?0:1]),symbolRotate:at(S.get("symbolRotate",!0),v[b?0:1]),symbolSize:at(S.get("symbolSize"),y[b?0:1]),symbol:at(S.get("symbol",!0),g[b?0:1]),style:M})}this.markKeep(h),h.group.silent=i.get("silent")||t.get("silent")},e.type="markLine",e}(dm);function kZ(n,e,t){var i;n?i=G(n&&n.dimensions,function(u){var h=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return V(V({},h),{name:u,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var o=new be(i,t),r=new be(i,t),a=new be([],t),s=G(t.get("data"),rt(CZ,e,n,t));n&&(s=Dt(s,rt(AZ,n)));var l=HA(!!n,i);return o.initData(G(s,function(u){return u[0]}),null,l),r.initData(G(s,function(u){return u[1]}),null,l),a.initData(G(s,function(u){return u[2]})),a.hasItemOption=!0,{from:o,to:r,line:a}}const LZ=DZ;function PZ(n){n.registerComponentModel(TZ),n.registerComponentView(LZ),n.registerPreprocessor(function(e){lm(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var OZ=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,o){return new e(t,i,o)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(ro);const NZ=OZ;var Zc=bt(),RZ=function(n,e,t,i){var o=i[0],r=i[1];if(!(!o||!r)){var a=El(n,o),s=El(n,r),l=a.coord,u=s.coord;l[0]=Jt(l[0],-1/0),l[1]=Jt(l[1],-1/0),u[0]=Jt(u[0],1/0),u[1]=Jt(u[1],1/0);var h=Ul([{},a,s]);return h.coord=[a.coord,s.coord],h.x0=a.x,h.y0=a.y,h.x1=s.x,h.y1=s.y,h}};function Uc(n){return!isNaN(n)&&!isFinite(n)}function ZA(n,e,t,i){var o=1-n;return Uc(e[o])&&Uc(t[o])}function zZ(n,e){var t=e.coord[0],i=e.coord[1],o={coord:t,x:e.x0,y:e.y0},r={coord:i,x:e.x1,y:e.y1};return sr(n,"cartesian2d")?t&&i&&(ZA(1,t,i)||ZA(0,t,i))?!0:xZ(n,o,r):Vl(n,o)||Vl(n,r)}function UA(n,e,t,i,o){var r=i.coordinateSystem,a=n.getItemModel(e),s,l=H(a.get(t[0]),o.getWidth()),u=H(a.get(t[1]),o.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition){var h=n.getValues(["x0","y0"],e),c=n.getValues(["x1","y1"],e),p=r.clampData(h),d=r.clampData(c),f=[];t[0]==="x0"?f[0]=p[0]>d[0]?c[0]:h[0]:f[0]=p[0]>d[0]?h[0]:c[0],t[1]==="y0"?f[1]=p[1]>d[1]?c[1]:h[1]:f[1]=p[1]>d[1]?h[1]:c[1],s=i.getMarkerPosition(f,t,!0)}else{var g=n.get(t[0],e),y=n.get(t[1],e),v=[g,y];r.clampData&&r.clampData(v,v),s=r.dataToPoint(v,!0)}if(sr(r,"cartesian2d")){var m=r.getAxis("x"),x=r.getAxis("y"),g=n.get(t[0],e),y=n.get(t[1],e);Uc(g)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):Uc(y)&&(s[1]=x.toGlobalCoord(x.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var jA=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],EZ=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,o){i.eachSeries(function(r){var a=ro.getMarkerModelFromSeries(r,"markArea");if(a){var s=a.getData();s.each(function(l){var u=G(jA,function(c){return UA(s,l,c,r,o)});s.setItemLayout(l,u);var h=s.getItemGraphicEl(l);h.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,i,o,r){var a=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,h=u.get(s)||u.set(s,{group:new it});this.group.add(h.group),this.markKeep(h);var c=VZ(a,t,i);i.setData(c),c.each(function(p){var d=G(jA,function(M){return UA(c,p,M,t,r)}),f=a.getAxis("x").scale,g=a.getAxis("y").scale,y=f.getExtent(),v=g.getExtent(),m=[f.parse(c.get("x0",p)),f.parse(c.get("x1",p))],x=[g.parse(c.get("y0",p)),g.parse(c.get("y1",p))];We(m),We(x);var _=!(y[0]>m[1]||y[1]x[1]||v[1]=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(_t);const gm=WZ;var Oa=rt,ym=T,jc=it,HZ=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new jc),this.group.add(this._selectorGroup=new jc),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,i,o){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var a=t.get("align"),s=t.get("orient");(!a||a==="auto")&&(a=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(a,t,i,o,l,s,u);var h=t.getBoxLayoutParams(),c={width:o.getWidth(),height:o.getHeight()},p=t.get("padding"),d=Kt(h,c,p),f=this.layoutInner(t,a,d,r,l,u),g=Kt(Q({width:f.width,height:f.height},h),c,p);this.group.x=g.x-f.x,this.group.y=g.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=iA(f,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,i,o,r,a,s,l){var u=this.getContentGroup(),h=j(),c=i.get("selectedMode"),p=[];o.eachRawSeries(function(d){!d.get("legendHoverLink")&&p.push(d.id)}),ym(i.getData(),function(d,f){var g=d.get("name");if(!this.newlineDisabled&&(g===""||g===` +`)){var y=new jc;y.newline=!0,u.add(y);return}var v=o.getSeriesByName(g)[0];if(!h.get(g))if(v){var m=v.getData(),x=m.getVisual("legendLineStyle")||{},_=m.getVisual("legendIcon"),w=m.getVisual("style"),b=this._createItem(v,g,f,d,i,t,x,w,_,c,r);b.on("click",Oa(qA,g,null,r,p)).on("mouseover",Oa(vm,v.name,null,r,p)).on("mouseout",Oa(mm,v.name,null,r,p)),o.ssr&&b.eachChild(function(S){var M=ot(S);M.seriesIndex=v.seriesIndex,M.dataIndex=f,M.ssrType="legend"}),h.set(g,!0)}else o.eachRawSeries(function(S){if(!h.get(g)&&S.legendVisualProvider){var M=S.legendVisualProvider;if(!M.containName(g))return;var I=M.indexOfName(g),C=M.getItemVisual(I,"style"),A=M.getItemVisual(I,"legendIcon"),D=Se(C.fill);D&&D[3]===0&&(D[3]=.2,C=V(V({},C),{fill:xn(D,"rgba")}));var k=this._createItem(S,g,f,d,i,t,{},C,A,c,r);k.on("click",Oa(qA,null,g,r,p)).on("mouseover",Oa(vm,null,g,r,p)).on("mouseout",Oa(mm,null,g,r,p)),o.ssr&&k.eachChild(function(L){var P=ot(L);P.seriesIndex=S.seriesIndex,P.dataIndex=f,P.ssrType="legend"}),h.set(g,!0)}},this)},this),a&&this._createSelector(a,i,r,s,l)},e.prototype._createSelector=function(t,i,o,r,a){var s=this.getSelectorGroup();ym(t,function(l){var u=l.type,h=new St({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){o.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var c=i.getModel("selectorLabel"),p=i.getModel(["emphasis","selectorLabel"]);he(h,{normal:c,emphasis:p},{defaultText:l.title}),zi(h)})},e.prototype._createItem=function(t,i,o,r,a,s,l,u,h,c,p){var d=t.visualDrawType,f=a.get("itemWidth"),g=a.get("itemHeight"),y=a.isSelected(i),v=r.get("symbolRotate"),m=r.get("symbolKeepAspect"),x=r.get("icon");h=x||h||"roundRect";var _=YZ(h,r,l,u,d,y,p),w=new jc,b=r.getModel("textStyle");if(K(t.getLegendIcon)&&(!x||x==="inherit"))w.add(t.getLegendIcon({itemWidth:f,itemHeight:g,icon:h,iconRotate:v,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}));else{var S=x==="inherit"&&t.getData().getVisual("symbol")?v==="inherit"?t.getData().getVisual("symbolRotate"):v:0;w.add(XZ({itemWidth:f,itemHeight:g,icon:h,iconRotate:S,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}))}var M=s==="left"?f+5:-5,I=s,C=a.get("formatter"),A=i;Y(C)&&C?A=C.replace("{name}",i??""):K(C)&&(A=C(i));var D=y?b.getTextColor():r.get("inactiveColor");w.add(new St({style:Rt(b,{text:A,x:M,y:g/2,fill:D,align:I,verticalAlign:"middle"},{inheritColor:D})}));var k=new wt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),L=r.getModel("tooltip");return L.get("show")&&jr({el:k,componentModel:a,itemName:i,itemTooltipOption:L.option}),w.add(k),w.eachChild(function(P){P.silent=!0}),k.silent=!c,this.getContentGroup().add(w),zi(w),w.__legendDataIndex=o,w},e.prototype.layoutInner=function(t,i,o,r,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ho(t.get("orient"),l,t.get("itemGap"),o.width,o.height);var h=l.getBoundingRect(),c=[-h.x,-h.y];if(u.markRedraw(),l.markRedraw(),a){Ho("horizontal",u,t.get("selectorItemGap",!0));var p=u.getBoundingRect(),d=[-p.x,-p.y],f=t.get("selectorButtonGap",!0),g=t.getOrient().index,y=g===0?"width":"height",v=g===0?"height":"width",m=g===0?"y":"x";s==="end"?d[g]+=h[y]+f:c[g]+=p[y]+f,d[1-g]+=h[v]/2-p[v]/2,u.x=d[0],u.y=d[1],l.x=c[0],l.y=c[1];var x={x:0,y:0};return x[y]=h[y]+f+p[y],x[v]=Math.max(h[v],p[v]),x[m]=Math.min(0,p[m]+d[1-g]),x}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Bt);function YZ(n,e,t,i,o,r,a){function s(y,v){y.lineWidth==="auto"&&(y.lineWidth=v.lineWidth>0?2:0),ym(y,function(m,x){y[x]==="inherit"&&(y[x]=v[x])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),h=n.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?i.decal:pa(c,a),u.fill==="inherit"&&(u.fill=i[o]),u.stroke==="inherit"&&(u.stroke=i[h]),u.opacity==="inherit"&&(u.opacity=(o==="fill"?i:t).opacity),s(u,i);var p=e.getModel("lineStyle"),d=p.getLineStyle();if(s(d,t),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),d.stroke==="auto"&&(d.stroke=i.fill),!r){var f=e.get("inactiveBorderWidth"),g=u[h];u.lineWidth=f==="auto"?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function XZ(n){var e=n.icon||"roundRect",t=Ut(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function qA(n,e,t,i){mm(n,e,t,i),t.dispatchAction({type:"legendToggleSelect",name:n??e}),vm(n,e,t,i)}function KA(n){for(var e=n.getZr().storage.getDisplayList(),t,i=0,o=e.length;io[a],y=[-d.x,-d.y];i||(y[r]=h[u]);var v=[0,0],m=[-f.x,-f.y],x=at(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var _=t.get("pageButtonPosition",!0);_==="end"?m[r]+=o[a]-f[a]:v[r]+=f[a]+x}m[1-r]+=d[s]/2-f[s]/2,h.setPosition(y),c.setPosition(v),p.setPosition(m);var w={x:0,y:0};if(w[a]=g?o[a]:d[a],w[s]=Math.max(d[s],f[s]),w[l]=Math.min(0,f[l]+m[1-r]),c.__rectSize=o[a],g){var b={x:0,y:0};b[a]=Math.max(o[a]-f[a]-x,0),b[s]=w[s],c.setClipPath(new wt({shape:b})),c.__rectSize=b[a]}else p.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(t);return S.pageIndex!=null&&Ct(h,{x:S.contentPosition[0],y:S.contentPosition[1]},g?t:null),this._updatePageInfoView(t,S),w},e.prototype._pageGo=function(t,i,o){var r=this._getPageInfo(i)[t];r!=null&&o.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:i.id})},e.prototype._updatePageInfoView=function(t,i){var o=this._controllerGroup;T(["pagePrev","pageNext"],function(h){var c=h+"DataIndex",p=i[c]!=null,d=o.childOfName(h);d&&(d.setStyle("fill",p?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),d.cursor=p?"pointer":"default")});var r=o.childOfName("pageText"),a=t.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;r&&a&&r.setStyle("text",Y(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},e.prototype._getPageInfo=function(t){var i=t.get("scrollDataIndex",!0),o=this.getContentGroup(),r=this._containerGroup.__rectSize,a=t.getOrient().index,s=xm[a],l=_m[a],u=this._findTargetItemIndex(i),h=o.children(),c=h[u],p=h.length,d=p?1:0,f={contentPosition:[o.x,o.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return f;var g=_(c);f.contentPosition[a]=-g.s;for(var y=u+1,v=g,m=g,x=null;y<=p;++y)x=_(h[y]),(!x&&m.e>v.s+r||x&&!w(x,v.s))&&(m.i>v.i?v=m:v=x,v&&(f.pageNextDataIndex==null&&(f.pageNextDataIndex=v.i),++f.pageCount)),m=x;for(var y=u-1,v=g,m=g,x=null;y>=-1;--y)x=_(h[y]),(!x||!w(m,x.s))&&v.i=S&&b.s<=S+r}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var i,o=this.getContentGroup(),r;return o.eachChild(function(a,s){var l=a.__legendDataIndex;r==null&&l!=null&&(r=s),l===t&&(i=s)}),i??r},e.type="legend.scroll",e}($A);const $Z=KZ;function QZ(n){n.registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;i!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(o){o.setScrollDataIndex(i)})})}function JZ(n){dt(QA),n.registerComponentModel(qZ),n.registerComponentView($Z),QZ(n)}function tU(n){dt(QA),dt(JZ)}var eU=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Gi(Nl.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Nl);const nU=eU;var bm=bt();function iU(n,e,t){bm(n).coordSysRecordMap.each(function(i){var o=i.dataZoomInfoMap.get(e.uid);o&&(o.getRange=t)})}function oU(n,e){for(var t=bm(n).coordSysRecordMap,i=t.keys(),o=0;oi[t+e]&&(e=s),o=o&&a.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}function uU(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var i=bm(t),o=i.coordSysRecordMap||(i.coordSysRecordMap=j());o.each(function(r){r.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(r){var a=$C(r);T(a.infoList,function(s){var l=s.model.uid,u=o.get(l)||o.set(l,rU(t,s.model)),h=u.dataZoomInfoMap||(u.dataZoomInfoMap=j());h.set(r.uid,{dzReferCoordSysInfo:s,model:r,getRange:null})})}),o.each(function(r){var a=r.controller,s,l=r.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){eD(o,r);return}var h=lU(l);a.enable(h.controlType,h.opt),a.setPointerChecker(r.containsPoint),la(r,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var hU=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,i,o){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),iU(o,t,{pan:Z(wm.pan,this),zoom:Z(wm.zoom,this),scrollMove:Z(wm.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){oU(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(jv),wm={zoom:function(n,e,t,i){var o=this.range,r=o.slice(),a=n.axisModels[0];if(a){var s=Sm[e](null,[i.originX,i.originY],a,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(r[1]-r[0])+r[0],u=Math.max(1/i.scale,0);r[0]=(r[0]-l)*u+l,r[1]=(r[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(yr(0,r,[0,100],0,h.minSpan,h.maxSpan),this.range=r,o[0]!==r[0]||o[1]!==r[1])return r}},pan:nD(function(n,e,t,i,o,r){var a=Sm[i]([r.oldX,r.oldY],[r.newX,r.newY],e,o,t);return a.signal*(n[1]-n[0])*a.pixel/a.pixelLength}),scrollMove:nD(function(n,e,t,i,o,r){var a=Sm[i]([0,0],[r.scrollDelta,r.scrollDelta],e,o,t);return a.signal*(n[1]-n[0])*r.scrollDelta})};function nD(n){return function(e,t,i,o){var r=this.range,a=r.slice(),s=e.axisModels[0];if(s){var l=n(a,s,e,t,i,o);if(yr(l,a,[0,100],"all"),this.range=a,r[0]!==a[0]||r[1]!==a[1])return a}}}var Sm={grid:function(n,e,t,i,o){var r=t.axis,a={},s=o.model.coordinateSystem.getRect();return n=n||[0,0],r.dim==="x"?(a.pixel=e[0]-n[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=r.inverse?1:-1):(a.pixel=e[1]-n[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=r.inverse?-1:1),a},polar:function(n,e,t,i,o){var r=t.axis,a={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(a.pixel=e[0]-n[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?1:-1):(a.pixel=e[1]-n[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=r.inverse?-1:1),a},singleAxis:function(n,e,t,i,o){var r=t.axis,a=o.model.coordinateSystem.getRect(),s={};return n=n||[0,0],r.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=r.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=r.inverse?-1:1),s}};const cU=hU;function iD(n){qv(n),n.registerComponentModel(nU),n.registerComponentView(cU),uU(n)}var pU=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Gi(Nl.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Nl);const dU=pU;var Gl=wt,oD=7,fU=1,Mm=30,gU=7,Fl="horizontal",rD="vertical",yU=5,vU=["line","bar","candlestick","scatter"],mU={easing:"cubicOut",duration:100,delay:0},xU=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,i){this.api=i,this._onBrush=Z(this._onBrush,this),this._onBrushEnd=Z(this._onBrushEnd,this)},e.prototype.render=function(t,i,o,r){if(n.prototype.render.apply(this,arguments),la(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!r||r.type!=="dataZoom"||r.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Hs(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new it;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(i),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,i=this.api,o=t.get("brushSelect"),r=o?gU:0,a=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},l=this._orient===Fl?{right:s.width-a.x-a.width,top:s.height-Mm-oD-r,width:a.width,height:Mm}:{right:oD,top:a.y,width:Mm,height:a.height},u=ta(t.option);T(["right","top","width","height"],function(c){u[c]==="ph"&&(u[c]=l[c])});var h=Kt(u,s);this._location={x:h.x,y:h.y},this._size=[h.width,h.height],this._orient===rD&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,i=this._location,o=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),a=r&&r.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(o===Fl&&!a?{scaleY:l?1:-1,scaleX:1}:o===Fl&&a?{scaleY:l?1:-1,scaleX:-1}:o===rD&&!a?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=i.x-u.x,t.y=i.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,i=this._size,o=this._displayables.sliderGroup,r=t.get("brushSelect");o.add(new Gl({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var a=new Gl({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:Z(this._onClickPanel,this)}),s=this.api.getZr();r?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),o.add(a)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var i=this._size,o=this._shadowSize||[],r=t.series,a=r.getRawData(),s=r.getShadowDim&&r.getShadowDim(),l=s&&a.getDimensionInfo(s)?r.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,h=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||i[0]!==o[0]||i[1]!==o[1]){var c=a.getDataExtent(l),p=(c[1]-c[0])*.3;c=[c[0]-p,c[1]+p];var d=[0,i[1]],f=[0,i[0]],g=[[i[0],0],[0,0]],y=[],v=f[1]/(a.count()-1),m=0,x=Math.round(a.count()/i[0]),_;a.each([l],function(I,C){if(x>0&&C%x){m+=v;return}var A=I==null||isNaN(I)||I==="",D=A?0:kt(I,c,d,!0);A&&!_&&C?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!A&&_&&(g.push([m,0]),y.push([m,0])),g.push([m,D]),y.push([m,D]),m+=v,_=A}),u=this._shadowPolygonPts=g,h=this._shadowPolylinePts=y}this._shadowData=a,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var w=this.dataZoomModel;function b(I){var C=w.getModel(I?"selectedDataBackground":"dataBackground"),A=new it,D=new Ce({shape:{points:u},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),k=new Ae({shape:{points:h},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return A.add(D),A.add(k),A}for(var S=0;S<3;S++){var M=b(S===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,i=t.get("showDataShadow");if(i!==!1){var o,r=this.ecModel;return t.eachTargetAxis(function(a,s){var l=t.getAxisProxy(a,s).getTargetSeriesModels();T(l,function(u){if(!o&&!(i!==!0&&pt(vU,u.get("type"))<0)){var h=r.getComponent(io(a),s).axis,c=_U(a),p,d=u.coordinateSystem;c!=null&&d.getOtherAxis&&(p=d.getOtherAxis(h).inverse),c=u.getData().mapDimension(c),o={thisAxis:h,series:u,thisDim:a,otherDim:c,otherAxisInverse:p}}},this)},this),o}},e.prototype._renderHandle=function(){var t=this.group,i=this._displayables,o=i.handles=[null,null],r=i.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,h=l.get("borderRadius")||0,c=l.get("brushSelect"),p=i.filler=new Gl({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(p),a.add(new Gl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:h},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:fU,fill:"rgba(0,0,0,0)"}})),T([0,1],function(x){var _=l.get("handleIcon");!Ih[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_);var w=Ut(_,-1,0,2,2,null,!0);w.attr({cursor:aD(this._orient),draggable:!0,drift:Z(this._onDragMove,this,x),ondragend:Z(this._onDragEnd,this),onmouseover:Z(this._showDataInfo,this,!0),onmouseout:Z(this._showDataInfo,this,!1),z2:5});var b=w.getBoundingRect(),S=l.get("handleSize");this._handleHeight=H(S,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),zi(w);var M=l.get("handleColor");M!=null&&(w.style.fill=M),a.add(o[x]=w);var I=l.getModel("textStyle");t.add(r[x]=new St({silent:!0,invisible:!0,style:Rt(I,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:I.getTextColor(),font:I.getFont()}),z2:10}))},this);var d=p;if(c){var f=H(l.get("moveHandleSize"),s[1]),g=i.moveHandle=new wt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:f}}),y=f*.8,v=i.moveHandleIcon=Ut(l.get("moveHandleIcon"),-y/2,-y/2,y,y,"#fff",!0);v.silent=!0,v.y=s[1]+f/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(f,10));d=i.moveZone=new wt({invisible:!0,shape:{y:s[1]-m,height:f+m}}),d.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),a.add(g),a.add(v),a.add(d)}d.attr({draggable:!0,cursor:aD(this._orient),drift:Z(this._onDragMove,this,"all"),ondragstart:Z(this._showDataInfo,this,!0),ondragend:Z(this._onDragEnd,this),onmouseover:Z(this._showDataInfo,this,!0),onmouseout:Z(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[kt(t[0],[0,100],i,!0),kt(t[1],[0,100],i,!0)]},e.prototype._updateInterval=function(t,i){var o=this.dataZoomModel,r=this._handleEnds,a=this._getViewExtent(),s=o.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];yr(i,r,a,o.get("zoomLock")?"all":t,s.minSpan!=null?kt(s.minSpan,l,a,!0):null,s.maxSpan!=null?kt(s.maxSpan,l,a,!0):null);var u=this._range,h=this._range=We([kt(r[0],a,l,!0),kt(r[1],a,l,!0)]);return!u||u[0]!==h[0]||u[1]!==h[1]},e.prototype._updateView=function(t){var i=this._displayables,o=this._handleEnds,r=We(o.slice()),a=this._size;T([0,1],function(d){var f=i.handles[d],g=this._handleHeight;f.attr({scaleX:g/2,scaleY:g/2,x:o[d]+(d?-1:1),y:a[1]/2-g/2})},this),i.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:a[1]});var s={x:r[0],width:r[1]-r[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,r[0],r[1],a[0]],h=0;hi[0]||o[1]<0||o[1]>i[1])){var r=this._handleEnds,a=(r[0]+r[1])/2,s=this._updateInterval("all",o[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var i=t.offsetX,o=t.offsetY;this._brushStart=new ht(i,o),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var o=i.shape,r=+new Date;if(!(r-this._brushStartTime<200&&Math.abs(o.width)<5)){var a=this._getViewExtent(),s=[0,100];this._range=We([kt(o.x,a,s,!0),kt(o.x+o.width,a,s,!0)]),this._handleEnds=[o.x,o.x+o.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(ii(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,i){var o=this._displayables,r=this.dataZoomModel,a=o.brushRect;a||(a=o.brushRect=new Gl({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),o.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,i),h=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),a.setShape({x:h[0],y:0,width:u[0]-h[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?mU:null,start:i[0],end:i[1]})},e.prototype._findCoordRect=function(){var t,i=$C(this.dataZoomModel).infoList;if(!t&&i.length){var o=i[0].model.coordinateSystem;t=o.getRect&&o.getRect()}if(!t){var r=this.api.getWidth(),a=this.api.getHeight();t={x:r*.2,y:a*.2,width:r*.6,height:a*.6}}return t},e.type="dataZoom.slider",e}(jv);function _U(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function aD(n){return n==="vertical"?"ns-resize":"ew-resize"}const bU=xU;function sD(n){n.registerComponentModel(dU),n.registerComponentView(bU),qv(n)}function wU(n){dt(iD),dt(sD)}var SU={get:function(n,e,t){var i=et((MU[n]||{})[e]);return t&&B(i)?i[i.length-1]:i}},MU={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const lD=SU;var uD=pe.mapVisual,IU=pe.eachVisual,TU=B,hD=T,CU=We,AU=kt,DU=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,i,o){this.mergeDefaultAndTheme(t,o)},e.prototype.optionUpdated=function(t,i){var o=this.option;!i&&CA(o,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var i=this.stateList;t=Z(t,this),this.controllerVisuals=om(this.option.controller,i,t),this.targetVisuals=om(this.option.target,i,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,i=[];return t==null||t==="all"?this.ecModel.eachSeries(function(o,r){i.push(r)}):i=Lt(t),i},e.prototype.eachTargetSeries=function(t,i){T(this.getTargetSeriesIndices(),function(o){var r=this.ecModel.getSeriesByIndex(o);r&&t.call(i,r)},this)},e.prototype.isTargetSeries=function(t){var i=!1;return this.eachTargetSeries(function(o){o===t&&(i=!0)}),i},e.prototype.formatValueText=function(t,i,o){var r=this.option,a=r.precision,s=this.dataBound,l=r.formatter,u;o=o||["<",">"],B(t)&&(t=t.slice(),u=!0);var h=i?t:u?[c(t[0]),c(t[1])]:c(t);if(Y(l))return l.replace("{value}",u?h[0]:h).replace("{value2}",u?h[1]:h);if(K(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?o[0]+" "+h[1]:t[1]===s[1]?o[1]+" "+h[0]:h[0]+" - "+h[1];return h;function c(p){return p===s[0]?"min":p===s[1]?"max":(+p).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,i=CU([t.min,t.max]);this._dataExtent=i},e.prototype.getDataDimensionIndex=function(t){var i=this.option.dimension;if(i!=null)return t.getDimensionIndex(i);for(var o=t.dimensions,r=o.length-1;r>=0;r--){var a=o[r],s=t.getDimensionInfo(a);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,i=this.option,o={inRange:i.inRange,outOfRange:i.outOfRange},r=i.target||(i.target={}),a=i.controller||(i.controller={});st(r,o),st(a,o);var s=this.isCategory();l.call(this,r),l.call(this,a),u.call(this,r,"inRange","outOfRange"),h.call(this,a);function l(c){TU(i.color)&&!c.inRange&&(c.inRange={color:i.color.slice().reverse()}),c.inRange=c.inRange||{color:t.get("gradientColor")}}function u(c,p,d){var f=c[p],g=c[d];f&&!g&&(g=c[d]={},hD(f,function(y,v){if(pe.isValidType(v)){var m=lD.get(v,"inactive",s);m!=null&&(g[v]=m,v==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function h(c){var p=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,d=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,f=this.get("inactiveColor"),g=this.getItemSymbol(),y=g||"roundRect";hD(this.stateList,function(v){var m=this.itemSize,x=c[v];x||(x=c[v]={color:s?f:[f]}),x.symbol==null&&(x.symbol=p&&et(p)||(s?y:[y])),x.symbolSize==null&&(x.symbolSize=d&&et(d)||(s?m[0]:[m[0],m[0]])),x.symbol=uD(x.symbol,function(b){return b==="none"?y:b});var _=x.symbolSize;if(_!=null){var w=-1/0;IU(_,function(b){b>w&&(w=b)}),x.symbolSize=uD(_,function(b){return AU(b,[0,w],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(_t);const qc=DU;var cD=[20,140],kU=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(o){o.mappingMethod="linear",o.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=cD[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=cD[1])},e.prototype._resetRange=function(){var t=this.getExtent(),i=this.option.range;!i||i.auto?(t.auto=1,this.option.range=t):B(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],t[0]),i[1]=Math.min(i[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(t){var i=this.option.controller[t].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),i=We((this.get("range")||[]).slice());return i[0]>t[1]&&(i[0]=t[1]),i[1]>t[1]&&(i[1]=t[1]),i[0]=o[1]||t<=i[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[];return this.eachTargetSeries(function(o){var r=[],a=o.getData();a.each(this.getDataDimensionIndex(a),function(s,l){t[0]<=s&&s<=t[1]&&r.push(l)},this),i.push({seriesId:o.id,dataIndex:r})},this),i},e.prototype.getVisualMeta=function(t){var i=pD(this,"outOfRange",this.getExtent()),o=pD(this,"inRange",this.option.range.slice()),r=[];function a(d,f){r.push({value:d,color:t(d,f)})}for(var s=0,l=0,u=o.length,h=i.length;lt[1])break;r.push({color:this.getControllerVisual(l,"color",i),offset:s/o})}return r.push({color:this.getControllerVisual(t[1],"color",i),offset:1}),r},e.prototype._createBarPoints=function(t,i){var o=this.visualMapModel.itemSize;return[[o[0]-i[0],t[0]],[o[0],t[0]],[o[0],t[1]],[o[0]-i[1],t[1]]]},e.prototype._createBarGroup=function(t){var i=this._orient,o=this.visualMapModel.get("inverse");return new it(i==="horizontal"&&!o?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&o?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!o?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,i){if(this._useHandle){var o=this._shapes,r=this.visualMapModel,a=o.handleThumbs,s=o.handleLabels,l=r.itemSize,u=r.getExtent();OU([0,1],function(h){var c=a[h];c.setStyle("fill",i.handlesColor[h]),c.y=t[h];var p=$n(t[h],[0,l[1]],u,!0),d=this.getControllerVisual(p,"symbolSize");c.scaleX=c.scaleY=d/l[0],c.x=l[0]-d/2;var f=In(o.handleLabelPoints[h],Vi(c,this.group));s[h].setStyle({x:f[0],y:f[1],text:r.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",o.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,i,o,r){var a=this.visualMapModel,s=a.getExtent(),l=a.itemSize,u=[0,l[1]],h=this._shapes,c=h.indicator;if(c){c.attr("invisible",!1);var p={convertOpacityToAlpha:!0},d=this.getControllerVisual(t,"color",p),f=this.getControllerVisual(t,"symbolSize"),g=$n(t,s,u,!0),y=l[0]-f/2,v={x:c.x,y:c.y};c.y=g,c.x=y;var m=In(h.indicatorLabelPoint,Vi(c,this.group)),x=h.indicatorLabel;x.attr("invisible",!1);var _=this._applyTransform("left",h.mainGroup),w=this._orient,b=w==="horizontal";x.setStyle({text:(o||"")+a.formatValueText(i),verticalAlign:b?_:"middle",align:b?"center":_});var S={x:y,y:g,style:{fill:d}},M={style:{x:m[0],y:m[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var I={duration:100,easing:"cubicInOut",additive:!0};c.x=v.x,c.y=v.y,c.animateTo(S,I),x.animateTo(M,I)}else c.attr(S),x.attr(M);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var A=0;Aa[1]&&(c[1]=1/0),i&&(c[0]===-1/0?this._showIndicator(h,c[1],"< ",l):c[1]===1/0?this._showIndicator(h,c[0],"> ",l):this._showIndicator(h,h,"\u2248 ",l));var p=this._hoverLinkDataIndices,d=[];(i||mD(o))&&(d=this._hoverLinkDataIndices=o.findTargetDataIndices(c));var f=hP(p,d);this._dispatchHighDown("downplay",Kc(f[0],o)),this._dispatchHighDown("highlight",Kc(f[1],o))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var i;if(Uo(t.target,function(l){var u=ot(l);if(u.dataIndex!=null)return i=u,!0},!0),!!i){var o=this.ecModel.getSeriesByIndex(i.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(o)){var a=o.getData(i.dataType),s=a.getStore().get(r.getDataDimensionIndex(a),i.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var o=0;o=0&&(r.dimension=a,i.push(r))}}),n.getData().setVisual("visualMeta",i)}}];function WU(n,e,t,i){for(var o=e.targetVisuals[i],r=pe.prepareVisualTypes(o),a={color:Zs(n.getData(),"color")},s=0,l=r.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(BU,GU),T(FU,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(HU))}function SD(n){n.registerComponentModel(LU),n.registerComponentView(VU),wD(n)}var YU=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var o=this._mode=this._determineMode();this._pieceList=[],XU[this._mode].call(this,this._pieceList),this._resetSelected(t,i);var r=this.option.categories;this.resetVisual(function(a,s){o==="categories"?(a.mappingMethod="category",a.categories=et(r)):(a.dataExtent=this.getExtent(),a.mappingMethod="piecewise",a.pieceList=G(this._pieceList,function(l){return l=et(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,i={},o=pe.listVisualTypes(),r=this.isCategory();T(t.pieces,function(s){T(o,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),T(i,function(s,l){var u=!1;T(this.stateList,function(h){u=u||a(t,h,l)||a(t.target,h,l)},this),!u&&T(this.stateList,function(h){(t[h]||(t[h]={}))[l]=lD.get(l,h==="inRange"?"active":"inactive",r)})},this);function a(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,i){var o=this.option,r=this._pieceList,a=(i?o:t).selected||{};if(o.selected=a,T(r,function(l,u){var h=this.getSelectedMapKey(l);a.hasOwnProperty(h)||(a[h]=!0)},this),o.selectedMode==="single"){var s=!1;T(r,function(l,u){var h=this.getSelectedMapKey(l);a[h]&&(s?a[h]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=et(t)},e.prototype.getValueState=function(t){var i=pe.findPieceIndex(t,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[],o=this._pieceList;return this.eachTargetSeries(function(r){var a=[],s=r.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var h=pe.findPieceIndex(l,o);h===t&&a.push(u)},this),i.push({seriesId:r.id,dataIndex:a})},this),i},e.prototype.getRepresentValue=function(t){var i;if(this.isCategory())i=t.value;else if(t.value!=null)i=t.value;else{var o=t.interval||[];i=o[0]===-1/0&&o[1]===1/0?0:(o[0]+o[1])/2}return i},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var i=[],o=["",""],r=this;function a(h,c){var p=r.getRepresentValue({interval:h});c||(c=r.getValueState(p));var d=t(p,c);h[0]===-1/0?o[0]=d:h[1]===1/0?o[1]=d:i.push({value:h[0],color:d},{value:h[1],color:d})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return T(s,function(h){var c=h.interval;c&&(c[0]>u&&a([u,c[0]],"outOfRange"),a(c.slice()),u=c[1])},this),{stops:i,outerColors:o}},e.type="visualMap.piecewise",e.defaultOption=Gi(qc.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(qc),XU={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber;o=Math.max(parseInt(o,10),1),e.splitNumber=o;for(var r=(i[1]-i[0])/o;+r.toFixed(t)!==r&&t<5;)t++;e.precision=t,r=+r.toFixed(t),e.minOpen&&n.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a","\u2265"][i[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,o)},this)}};function MD(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const ZU=YU;var UU=function(n){N(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var i=this.visualMapModel,o=i.get("textGap"),r=i.textStyleModel,a=r.getFont(),s=r.getTextColor(),l=this._getItemAlign(),u=i.itemSize,h=this._getViewData(),c=h.endsText,p=Jt(i.get("showLabel",!0),!c);c&&this._renderEndsText(t,c[0],u,p,l),T(h.viewPieceList,function(d){var f=d.piece,g=new it;g.onclick=Z(this._onItemClick,this,f),this._enableHoverLink(g,d.indexInModelPieceList);var y=i.getRepresentValue(f);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]]),p){var v=this.visualMapModel.getValueState(y);g.add(new St({style:{x:l==="right"?-o:u[0]+o,y:u[1]/2,text:f.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:v==="outOfRange"?.5:1}}))}t.add(g)},this),c&&this._renderEndsText(t,c[1],u,p,l),Ho(i.get("orient"),t,i.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,i){var o=this;t.on("mouseover",function(){return r("highlight")}).on("mouseout",function(){return r("downplay")});var r=function(a){var s=o.visualMapModel;s.option.hoverLink&&o.api.dispatchAction({type:a,batch:Kc(s.findTargetDataIndices(i),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,i=t.option;if(i.orient==="vertical")return gD(t,this.api,t.itemSize);var o=i.align;return(!o||o==="auto")&&(o="left"),o},e.prototype._renderEndsText=function(t,i,o,r,a){if(i){var s=new it,l=this.visualMapModel.textStyleModel;s.add(new St({style:Rt(l,{x:r?a==="right"?o[0]:0:o[0]/2,y:o[1]/2,verticalAlign:"middle",align:r?a:"center",text:i})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,i=G(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),o=t.get("text"),r=t.get("orient"),a=t.get("inverse");return(r==="horizontal"?a:!a)?i.reverse():o&&(o=o.slice().reverse()),{viewPieceList:i,endsText:o}},e.prototype._createItemSymbol=function(t,i,o){t.add(Ut(this.getControllerVisual(i,"symbol"),o[0],o[1],o[2],o[3],this.getControllerVisual(i,"color")))},e.prototype._onItemClick=function(t){var i=this.visualMapModel,o=i.option,r=o.selectedMode;if(r){var a=et(o.selected),s=i.getSelectedMapKey(t);r==="single"||r===!0?(a[s]=!0,T(a,function(l,u){a[u]=u===s})):a[s]=!a[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},e.type="visualMap.piecewise",e}(dD);const jU=UU;function ID(n){n.registerComponentModel(ZU),n.registerComponentView(jU),wD(n)}function qU(n){dt(SD),dt(ID)}var KU={label:{enabled:!0},decal:{show:!1}},TD=bt(),$U={};function QU(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var i=et(KU);st(i.label,n.getLocaleModel().get("aria"),!1),st(t.option,i,!1),o(),r();function o(){var u=t.getModel("decal"),h=u.get("show");if(h){var c=j();n.eachSeries(function(p){if(!p.isColorBySeries()){var d=c.get(p.type);d||(d={},c.set(p.type,d)),TD(p).scope=d}}),n.eachRawSeries(function(p){if(n.isSeriesFiltered(p))return;if(K(p.enableAriaDecal)){p.enableAriaDecal();return}var d=p.getData();if(p.isColorBySeries()){var f=_f(p.ecModel,p.name,$U,n.getSeriesCount()),g=d.getVisual("decal");d.setVisual("decal",_(g,f))}else{var y=p.getRawData(),v={},m=TD(p).scope;d.each(function(w){var b=d.getRawIndex(w);v[b]=w});var x=y.count();y.each(function(w){var b=v[w],S=y.getName(w)||w+"",M=_f(p.ecModel,S,m,x),I=d.getItemVisual(b,"decal");d.setItemVisual(b,"decal",_(I,M))})}function _(w,b){var S=w?V(V({},b),w):b;return S.dirty=!0,S}})}}function r(){var u=e.getZr().dom;if(u){var h=n.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=Q(c.option,h),!!c.get("enabled")){if(c.get("description")){u.setAttribute("aria-label",c.get("description"));return}var p=n.getSeriesCount(),d=c.get(["data","maxCount"])||10,f=c.get(["series","maxCount"])||10,g=Math.min(p,f),y;if(!(p<1)){var v=s();if(v){var m=c.get(["general","withTitle"]);y=a(m,{title:v})}else y=c.get(["general","withoutTitle"]);var x=[],_=p>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);y+=a(_,{seriesCount:p}),n.eachSeries(function(M,I){if(I1?c.get(["series","multiple",D]):c.get(["series","single",D]),C=a(C,{seriesId:M.seriesIndex,seriesName:M.get("name"),seriesType:l(M.subType)});var k=M.getData();if(k.count()>d){var L=c.get(["data","partialData"]);C+=a(L,{displayCnt:d})}else C+=c.get(["data","allData"]);for(var P=c.get(["data","separator","middle"]),O=c.get(["data","separator","end"]),z=[],R=0;R":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},ej=function(){function n(e){var t=this._condVal=Y(e)?new RegExp(e):Wm(e)?e:null;if(t==null){var i="";At(i)}}return n.prototype.evaluate=function(e){var t=typeof e;return Y(t)?this._condVal.test(e):Tt(t)?this._condVal.test(e+""):!1},n}(),nj=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),ij=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&i.push(o),o=[k,L]}function h(k,L,P,O){Ra(k,P)&&Ra(L,O)||o.push(k,L,P,O,P,O)}function c(k,L,P,O,z,R){var E=Math.abs(L-k),F=Math.tan(E/4)*4/3,W=LM:A2&&i.push(o),i}function Am(n,e,t,i,o,r,a,s,l,u){if(Ra(n,t)&&Ra(e,i)&&Ra(o,a)&&Ra(r,s)){l.push(a,s);return}var h=2/u,c=h*h,p=a-n,d=s-e,f=Math.sqrt(p*p+d*d);p/=f,d/=f;var g=t-n,y=i-e,v=o-a,m=r-s,x=g*g+y*y,_=v*v+m*m;if(x=0&&M=0){l.push(a,s);return}var I=[],C=[];Di(n,t,o,a,.5,I),Di(e,i,r,s,.5,C),Am(I[0],C[0],I[1],C[1],I[2],C[2],I[3],C[3],l,u),Am(I[4],C[4],I[5],C[5],I[6],C[6],I[7],C[7],l,u)}function vj(n,e){var t=Cm(n),i=[];e=e||1;for(var o=0;o0)for(var u=0;uMath.abs(u),c=kD([l,u],h?0:1,e),p=(h?s:u)/c.length,d=0;do,a=kD([i,o],r?0:1,e),s=r?"width":"height",l=r?"height":"width",u=r?"x":"y",h=r?"y":"x",c=n[s]/a.length,p=0;p1?null:new ht(g*l+n,g*u+e)}function _j(n,e,t){var i=new ht;ht.sub(i,t,e),i.normalize();var o=new ht;ht.sub(o,n,e);var r=o.dot(i);return r}function za(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function bj(n,e,t){for(var i=n.length,o=[],r=0;ra?(u.x=h.x=s+r/2,u.y=l,h.y=l+a):(u.y=h.y=l+a/2,u.x=s,h.x=s+r),bj(e,u,h)}function $c(n,e,t,i){if(t===1)i.push(e);else{var o=Math.floor(t/2),r=n(e);$c(n,r[0],o,i),$c(n,r[1],t-o,i)}return i}function wj(n,e){for(var t=[],i=0;i0)for(var w=i/t,b=-i/2;b<=i/2;b+=w){for(var S=Math.sin(b),M=Math.cos(b),I=0,x=0;x0;u/=2){var h=0,c=0;(n&u)>0&&(h=1),(e&u)>0&&(c=1),s+=u*u*(3*h^c),c===0&&(h===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function tp(n){var e=1/0,t=1/0,i=-1/0,o=-1/0,r=G(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),h=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return e=Math.min(h,e),t=Math.min(c,t),i=Math.max(h,i),o=Math.max(c,o),[h,c]}),a=G(r,function(s,l){return{cp:s,z:Lj(s[0],s[1],e,t,i,o),path:n[l]}});return a.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function BD(n){return Ij(n.path,n.count)}function km(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Pj(n,e,t){var i=[];function o(w){for(var b=0;b=0;o--)if(!t[o].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var r=l.length,u=Math.ceil(r/2);t[o].many=l.slice(u,r),t[s].many=l.slice(0,u),s++}return t}var Nj={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),i=0;i0))return;var s=i.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},a),u,h;GD(n)&&(u=n,h=e),GD(e)&&(u=e,h=n);function c(v,m,x,_,w){var b=v.many,S=v.one;if(b.length===1&&!w){var M=m?b[0]:S,I=m?S:b[0];if(Qc(M))c({many:[M],one:I},!0,x,_,!0);else{var C=s?Q({delay:s(x,_)},l):l;Dm(M,I,C),r(M,I,M,I,C)}}else for(var A=Q({dividePath:Nj[t],individualDelay:s&&function(z,R,E,F){return s(z+x,_)}},l),D=m?Pj(b,S,A):Oj(S,b,A),k=D.fromIndividuals,L=D.toIndividuals,P=k.length,O=0;Oe.length,d=u?FD(h,u):FD(p?e:n,[p?n:e]),f=0,g=0;gWD))for(var r=i.getIndices(),a=0;a0&&b.group.traverse(function(M){M instanceof vt&&!M.animators.length&&M.animateFrom({style:{opacity:0}},S)})})}function jD(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function qD(n){return B(n)?n.sort().join(","):n}function ao(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function Fj(n,e){var t=j(),i=j(),o=j();return T(n.oldSeries,function(r,a){var s=n.oldDataGroupIds[a],l=n.oldData[a],u=jD(r),h=qD(u);i.set(h,{dataGroupId:s,data:l}),B(u)&&T(u,function(c){o.set(c,{key:h,dataGroupId:s,data:l})})}),T(e.updatedSeries,function(r){if(r.isUniversalTransitionEnabled()&&r.isAnimationEnabled()){var a=r.get("dataGroupId"),s=r.getData(),l=jD(r),u=qD(l),h=i.get(u);if(h)t.set(u,{oldSeries:[{dataGroupId:h.dataGroupId,divide:ao(h.data),data:h.data}],newSeries:[{dataGroupId:a,divide:ao(s),data:s}]});else if(B(l)){var c=[];T(l,function(f){var g=i.get(f);g.data&&c.push({dataGroupId:g.dataGroupId,divide:ao(g.data),data:g.data})}),c.length&&t.set(u,{oldSeries:c,newSeries:[{dataGroupId:a,data:s,divide:ao(s)}]})}else{var p=o.get(l);if(p){var d=t.get(p.key);d||(d={oldSeries:[{dataGroupId:p.dataGroupId,data:p.data,divide:ao(p.data)}],newSeries:[]},t.set(p.key,d)),d.newSeries.push({dataGroupId:a,data:s,divide:ao(s)})}}}}),t}function KD(n,e){for(var t=0;t=0&&o.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:ao(e.oldData[s]),groupIdDim:a.dimension})}),T(Lt(n.to),function(a){var s=KD(t.updatedSeries,a);if(s>=0){var l=t.updatedSeries[s].getData();r.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:ao(l),groupIdDim:a.dimension})}}),o.length>0&&r.length>0&&UD(o,r,i)}function Hj(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){T(Lt(i.seriesTransition),function(o){T(Lt(o.to),function(r){for(var a=i.updatedSeries,s=0;s{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function e(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(r){if(r.ep)return;r.ep=!0;const o=e(r);fetch(r.href,o)}})();function Rr(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const Q={},Be=[],Lt=()=>{},Zl=()=>!1,Gn=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Nr=t=>t.startsWith("onUpdate:"),lt=Object.assign,zr=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Jl=Object.prototype.hasOwnProperty,q=(t,e)=>Jl.call(t,e),B=Array.isArray,$e=t=>Kn(t)==="[object Map]",ma=t=>Kn(t)==="[object Set]",$=t=>typeof t=="function",it=t=>typeof t=="string",Qt=t=>typeof t=="symbol",J=t=>t!==null&&typeof t=="object",ha=t=>(J(t)||$(t))&&$(t.then)&&$(t.catch),ga=Object.prototype.toString,Kn=t=>ga.call(t),tc=t=>Kn(t).slice(8,-1),va=t=>Kn(t)==="[object Object]",Fr=t=>it(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,cn=Rr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xn=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},ec=/-(\w)/g,Mt=Xn(t=>t.replace(ec,(e,n)=>n?n.toUpperCase():"")),nc=/\B([A-Z])/g,Se=Xn(t=>t.replace(nc,"-$1").toLowerCase()),Qn=Xn(t=>t.charAt(0).toUpperCase()+t.slice(1)),Lr=Xn(t=>t?`on${Qn(t)}`:""),fe=(t,e)=>!Object.is(t,e),Dr=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},rc=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let ya;const Zn=()=>ya||(ya=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});qn=function(t){if(B(t)){const e={};for(let n=0;n{if(n){const r=n.split(ac);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}Hn=function(t){let e="";if(it(t))e=t;else if(B(t))for(let n=0;n!!(t&&t.__v_isRef===!0),pa=t=>it(t)?t:t==null?"":B(t)||J(t)&&(t.toString===ga||!$(t.toString))?Ir(t)?pa(t.value):JSON.stringify(t,Tr,2):String(t),Tr=(t,e)=>Ir(e)?Tr(t,e.value):$e(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,o],a)=>(n[Jn(r,a)+" =>"]=o,n),{})}:ma(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Jn(n))}:Qt(e)?Jn(e):J(e)&&!B(e)&&!va(e)?String(e):e,Jn=(t,e="")=>{var n;return Qt(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};let wt;class uc{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=wt,!e&&wt&&(this.index=(wt.scopes||(wt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e0)return;if(fn){let e=fn;for(fn=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;un;){let e=un;for(un=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function Oa(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Ca(t){let e,n=t.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),Wr(r),dc(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}t.deps=e,t.depsTail=n}function Vr(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Sa(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Sa(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===dn))return;t.globalVersion=dn;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!Vr(t)){t.flags&=-3;return}const n=Z,r=Dt;Z=t,Dt=!0;try{Oa(t);const o=t.fn(t._value);(e.version===0||fe(o,t._value))&&(t._value=o,e.version++)}catch(o){throw e.version++,o}finally{Z=n,Dt=r,Ca(t),t.flags&=-3}}function Wr(t,e=!1){const{dep:n,prevSub:r,nextSub:o}=t;if(r&&(r.nextSub=o,t.prevSub=void 0),o&&(o.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)Wr(a,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function dc(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let Dt=!0;const Pa=[];function de(){Pa.push(Dt),Dt=!1}function pe(){const t=Pa.pop();Dt=t===void 0?!0:t}function Ea(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=Z;Z=void 0;try{e()}finally{Z=n}}}let dn=0;class pc{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Hr{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!Z||!Dt||Z===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Z)n=this.activeLink=new pc(Z,this),Z.deps?(n.prevDep=Z.depsTail,Z.depsTail.nextDep=n,Z.depsTail=n):Z.deps=Z.depsTail=n,Aa(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Z.depsTail,n.nextDep=void 0,Z.depsTail.nextDep=n,Z.depsTail=n,Z.deps===n&&(Z.deps=r)}return n}trigger(e){this.version++,dn++,this.notify(e)}notify(e){$r();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ur()}}}function Aa(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)Aa(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const tr=new WeakMap,Pe=Symbol(""),qr=Symbol(""),pn=Symbol("");function pt(t,e,n){if(Dt&&Z){let r=tr.get(t);r||tr.set(t,r=new Map);let o=r.get(n);o||(r.set(n,o=new Hr),o.map=r,o.key=n),o.track()}}function Zt(t,e,n,r,o,a){const i=tr.get(t);if(!i){dn++;return}const s=l=>{l&&l.trigger()};if($r(),e==="clear")i.forEach(s);else{const l=B(t),c=l&&Fr(n);if(l&&n==="length"){const f=Number(r);i.forEach((p,m)=>{(m==="length"||m===pn||!Qt(m)&&m>=f)&&s(p)})}else switch((n!==void 0||i.has(void 0))&&s(i.get(n)),c&&s(i.get(pn)),e){case"add":l?c&&s(i.get("length")):(s(i.get(Pe)),$e(t)&&s(i.get(qr)));break;case"delete":l||(s(i.get(Pe)),$e(t)&&s(i.get(qr)));break;case"set":$e(t)&&s(i.get(Pe));break}}Ur()}function mc(t,e){const n=tr.get(t);return n&&n.get(e)}function Ue(t){const e=W(t);return e===t?e:(pt(e,"iterate",pn),Rt(t)?e:e.map(mt))}function er(t){return pt(t=W(t),"iterate",pn),t}const hc={__proto__:null,[Symbol.iterator](){return Yr(this,Symbol.iterator,mt)},concat(...t){return Ue(this).concat(...t.map(e=>B(e)?Ue(e):e))},entries(){return Yr(this,"entries",t=>(t[1]=mt(t[1]),t))},every(t,e){return Jt(this,"every",t,e,void 0,arguments)},filter(t,e){return Jt(this,"filter",t,e,n=>n.map(mt),arguments)},find(t,e){return Jt(this,"find",t,e,mt,arguments)},findIndex(t,e){return Jt(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Jt(this,"findLast",t,e,mt,arguments)},findLastIndex(t,e){return Jt(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Jt(this,"forEach",t,e,void 0,arguments)},includes(...t){return Gr(this,"includes",t)},indexOf(...t){return Gr(this,"indexOf",t)},join(t){return Ue(this).join(t)},lastIndexOf(...t){return Gr(this,"lastIndexOf",t)},map(t,e){return Jt(this,"map",t,e,void 0,arguments)},pop(){return mn(this,"pop")},push(...t){return mn(this,"push",t)},reduce(t,...e){return ja(this,"reduce",t,e)},reduceRight(t,...e){return ja(this,"reduceRight",t,e)},shift(){return mn(this,"shift")},some(t,e){return Jt(this,"some",t,e,void 0,arguments)},splice(...t){return mn(this,"splice",t)},toReversed(){return Ue(this).toReversed()},toSorted(t){return Ue(this).toSorted(t)},toSpliced(...t){return Ue(this).toSpliced(...t)},unshift(...t){return mn(this,"unshift",t)},values(){return Yr(this,"values",mt)}};function Yr(t,e,n){const r=er(t),o=r[e]();return r!==t&&!Rt(t)&&(o._next=o.next,o.next=()=>{const a=o._next();return a.value&&(a.value=n(a.value)),a}),o}const gc=Array.prototype;function Jt(t,e,n,r,o,a){const i=er(t),s=i!==t&&!Rt(t),l=i[e];if(l!==gc[e]){const p=l.apply(t,a);return s?mt(p):p}let c=n;i!==t&&(s?c=function(p,m){return n.call(this,mt(p),m,t)}:n.length>2&&(c=function(p,m){return n.call(this,p,m,t)}));const f=l.call(i,c,r);return s&&o?o(f):f}function ja(t,e,n,r){const o=er(t);let a=n;return o!==t&&(Rt(t)?n.length>3&&(a=function(i,s,l){return n.call(this,i,s,l,t)}):a=function(i,s,l){return n.call(this,i,mt(s),l,t)}),o[e](a,...r)}function Gr(t,e,n){const r=W(t);pt(r,"iterate",pn);const o=r[e](...n);return(o===-1||o===!1)&&Zr(n[0])?(n[0]=W(n[0]),r[e](...n)):o}function mn(t,e,n=[]){de(),$r();const r=W(t)[e].apply(t,n);return Ur(),pe(),r}const vc=Rr("__proto__,__v_isRef,__isVue"),Ma=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Qt));function bc(t){Qt(t)||(t=String(t));const e=W(this);return pt(e,"has",t),e.hasOwnProperty(t)}class Ra{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){const o=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return a;if(n==="__v_raw")return r===(o?a?Ec:La:a?Fa:za).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const i=B(e);if(!o){let l;if(i&&(l=hc[n]))return l;if(n==="hasOwnProperty")return bc}const s=Reflect.get(e,n,ct(e)?e:r);return(Qt(n)?Ma.has(n):vc(n))||(o||pt(e,"get",n),a)?s:ct(s)?i&&Fr(n)?s:s.value:J(s)?o?Ia(s):hn(s):s}}class Na extends Ra{constructor(e=!1){super(!1,e)}set(e,n,r,o){let a=e[n];if(!this._isShallow){const l=Ee(a);if(!Rt(r)&&!Ee(r)&&(a=W(a),r=W(r)),!B(e)&&ct(a)&&!ct(r))return l?!1:(a.value=r,!0)}const i=B(e)&&Fr(n)?Number(n)t,nr=t=>Reflect.getPrototypeOf(t);function kc(t,e,n){return function(...r){const o=this.__v_raw,a=W(o),i=$e(a),s=t==="entries"||t===Symbol.iterator&&i,l=t==="keys"&&i,c=o[t](...r),f=n?Kr:e?Jr:mt;return!e&&pt(a,"iterate",l?qr:Pe),{next(){const{value:p,done:m}=c.next();return m?{value:p,done:m}:{value:s?[f(p[0]),f(p[1])]:f(p),done:m}},[Symbol.iterator](){return this}}}}function rr(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Oc(t,e){const n={get(r){const o=this.__v_raw,a=W(o),i=W(r);t||(fe(r,i)&&pt(a,"get",r),pt(a,"get",i));const{has:s}=nr(a),l=e?Kr:t?Jr:mt;if(s.call(a,r))return l(o.get(r));if(s.call(a,i))return l(o.get(i));o!==a&&o.get(r)},get size(){const r=this.__v_raw;return!t&&pt(W(r),"iterate",Pe),Reflect.get(r,"size",r)},has(r){const o=this.__v_raw,a=W(o),i=W(r);return t||(fe(r,i)&&pt(a,"has",r),pt(a,"has",i)),r===i?o.has(r):o.has(r)||o.has(i)},forEach(r,o){const a=this,i=a.__v_raw,s=W(i),l=e?Kr:t?Jr:mt;return!t&&pt(s,"iterate",Pe),i.forEach((c,f)=>r.call(o,l(c),l(f),a))}};return lt(n,t?{add:rr("add"),set:rr("set"),delete:rr("delete"),clear:rr("clear")}:{add(r){!e&&!Rt(r)&&!Ee(r)&&(r=W(r));const o=W(this);return nr(o).has.call(o,r)||(o.add(r),Zt(o,"add",r,r)),this},set(r,o){!e&&!Rt(o)&&!Ee(o)&&(o=W(o));const a=W(this),{has:i,get:s}=nr(a);let l=i.call(a,r);l||(r=W(r),l=i.call(a,r));const c=s.call(a,r);return a.set(r,o),l?fe(o,c)&&Zt(a,"set",r,o):Zt(a,"add",r,o),this},delete(r){const o=W(this),{has:a,get:i}=nr(o);let s=a.call(o,r);s||(r=W(r),s=a.call(o,r)),i&&i.call(o,r);const l=o.delete(r);return s&&Zt(o,"delete",r,void 0),l},clear(){const r=W(this),o=r.size!==0,a=r.clear();return o&&Zt(r,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=kc(r,t,e)}),n}function Xr(t,e){const n=Oc(t,e);return(r,o,a)=>o==="__v_isReactive"?!t:o==="__v_isReadonly"?t:o==="__v_raw"?r:Reflect.get(q(n,o)&&o in r?n:r,o,a)}const Cc={get:Xr(!1,!1)},Sc={get:Xr(!1,!0)},Pc={get:Xr(!0,!1)},za=new WeakMap,Fa=new WeakMap,La=new WeakMap,Ec=new WeakMap;function Ac(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function jc(t){return t.__v_skip||!Object.isExtensible(t)?0:Ac(tc(t))}function hn(t){return Ee(t)?t:Qr(t,!1,xc,Cc,za)}function Da(t){return Qr(t,!1,_c,Sc,Fa)}function Ia(t){return Qr(t,!0,wc,Pc,La)}function Qr(t,e,n,r,o){if(!J(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const a=o.get(t);if(a)return a;const i=jc(t);if(i===0)return t;const s=new Proxy(t,i===2?r:n);return o.set(t,s),s}function Ve(t){return Ee(t)?Ve(t.__v_raw):!!(t&&t.__v_isReactive)}function Ee(t){return!!(t&&t.__v_isReadonly)}function Rt(t){return!!(t&&t.__v_isShallow)}function Zr(t){return t?!!t.__v_raw:!1}function W(t){const e=t&&t.__v_raw;return e?W(e):t}function Mc(t){return!q(t,"__v_skip")&&Object.isExtensible(t)&&ba(t,"__v_skip",!0),t}const mt=t=>J(t)?hn(t):t,Jr=t=>J(t)?Ia(t):t;function ct(t){return t?t.__v_isRef===!0:!1}jr=function(t){return Ta(t,!1)};function Rc(t){return Ta(t,!0)}function Ta(t,e){return ct(t)?t:new Nc(t,e)}class Nc{constructor(e,n){this.dep=new Hr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:W(e),this._value=n?e:mt(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||Rt(e)||Ee(e);e=r?e:W(e),fe(e,n)&&(this._rawValue=e,this._value=r?e:mt(e),this.dep.trigger())}}Ce=function(t){return ct(t)?t.value:t};const zc={get:(t,e,n)=>e==="__v_raw"?t:Ce(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const o=t[e];return ct(o)&&!ct(n)?(o.value=n,!0):Reflect.set(t,e,n,r)}};function Ba(t){return Ve(t)?t:new Proxy(t,zc)}class Fc{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return mc(W(this._object),this._key)}}class Lc{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function to(t,e,n){return ct(t)?t:$(t)?new Lc(t):J(t)&&arguments.length>1?Dc(t,e,n):jr(t)}function Dc(t,e,n){const r=t[e];return ct(r)?r:new Fc(t,e,n)}class Ic{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new Hr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=dn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Z!==this)return ka(this,!0),!0}get value(){const e=this.dep.track();return Sa(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Tc(t,e,n=!1){let r,o;return $(t)?r=t:(r=t.get,o=t.set),new Ic(r,o,n)}const or={},ar=new WeakMap;let Ae;function Bc(t,e=!1,n=Ae){if(n){let r=ar.get(n);r||ar.set(n,r=[]),r.push(t)}}function $c(t,e,n=Q){const{immediate:r,deep:o,once:a,scheduler:i,augmentJob:s,call:l}=n,c=E=>o?E:Rt(E)||o===!1||o===0?te(E,1):te(E);let f,p,m,h,P=!1,S=!1;if(ct(t)?(p=()=>t.value,P=Rt(t)):Ve(t)?(p=()=>c(t),P=!0):B(t)?(S=!0,P=t.some(E=>Ve(E)||Rt(E)),p=()=>t.map(E=>{if(ct(E))return E.value;if(Ve(E))return c(E);if($(E))return l?l(E,2):E()})):$(t)?e?p=l?()=>l(t,2):t:p=()=>{if(m){de();try{m()}finally{pe()}}const E=Ae;Ae=f;try{return l?l(t,3,[h]):t(h)}finally{Ae=E}}:p=Lt,e&&o){const E=p,U=o===!0?1/0:o;p=()=>te(E(),U)}const L=fc(),x=()=>{f.stop(),L&&zr(L.effects,f)};if(a&&e){const E=e;e=(...U)=>{E(...U),x()}}let y=S?new Array(t.length).fill(or):or;const M=E=>{if(!(!(f.flags&1)||!f.dirty&&!E))if(e){const U=f.run();if(o||P||(S?U.some((ot,X)=>fe(ot,y[X])):fe(U,y))){m&&m();const ot=Ae;Ae=f;try{const X=[U,y===or?void 0:S&&y[0]===or?[]:y,h];l?l(e,3,X):e(...X),y=U}finally{Ae=ot}}}else f.run()};return s&&s(M),f=new wa(p),f.scheduler=i?()=>i(M,!1):M,h=E=>Bc(E,!1,f),m=f.onStop=()=>{const E=ar.get(f);if(E){if(l)l(E,4);else for(const U of E)U();ar.delete(f)}},e?r?M(!0):y=f.run():i?i(M.bind(null,!0),!0):f.run(),x.pause=f.pause.bind(f),x.resume=f.resume.bind(f),x.stop=x,x}function te(t,e=1/0,n){if(e<=0||!J(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,ct(t))te(t.value,e,n);else if(B(t))for(let r=0;r{te(r,e,n)});else if(va(t)){for(const r in t)te(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&te(t[r],e,n)}return t}function gn(t,e,n,r){try{return r?t(...r):t()}catch(o){ir(o,e,n)}}function Bt(t,e,n,r){if($(t)){const o=gn(t,e,n,r);return o&&ha(o)&&o.catch(a=>{ir(a,e,n)}),o}if(B(t)){const o=[];for(let a=0;a>>1,o=vt[r],a=vn(o);a=vn(n)?vt.push(t):vt.splice(Vc(e),0,t),t.flags|=1,Ua()}}function Ua(){sr||(sr=$a.then(Ha))}function Wc(t){B(t)?We.push(...t):me&&t.id===-1?me.splice(He+1,0,t):t.flags&1||(We.push(t),t.flags|=1),Ua()}function Va(t,e,n=$t+1){for(;nvn(n)-vn(r));if(We.length=0,me){me.push(...e);return}for(me=e,He=0;Het.id==null?t.flags&2?-1:1/0:t.id;function Ha(t){const e=Lt;try{for($t=0;$t{r._d&&ji(-1);const a=lr(e);let i;try{i=t(...o)}finally{lr(a),r._d&&ji(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r},Ql=function(t,e){if(dt===null)return t;const n=mr(dt),r=t.dirs||(t.dirs=[]);for(let o=0;ot.__isTeleport;function no(t,e){t.shapeFlag&6&&t.component?(t.transition=e,no(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}sn=function(t,e){return $(t)?(()=>lt({name:t.name},e,{setup:t}))():t};function Ya(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function ro(t,e,n,r,o=!1){if(B(t)){t.forEach((P,S)=>ro(P,e&&(B(e)?e[S]:e),n,r,o));return}if(qe(r)&&!o)return;const a=r.shapeFlag&4?mr(r.component):r.el,i=o?null:a,{i:s,r:l}=t,c=e&&e.r,f=s.refs===Q?s.refs={}:s.refs,p=s.setupState,m=W(p),h=p===Q?()=>!1:P=>q(m,P);if(c!=null&&c!==l&&(it(c)?(f[c]=null,h(c)&&(p[c]=null)):ct(c)&&(c.value=null)),$(l))gn(l,s,12,[i,f]);else{const P=it(l),S=ct(l);if(P||S){const L=()=>{if(t.f){const x=P?h(l)?p[l]:f[l]:l.value;o?B(x)&&zr(x,a):B(x)?x.includes(a)||x.push(a):P?(f[l]=[a],h(l)&&(p[l]=f[l])):(l.value=[a],t.k&&(f[t.k]=l.value))}else P?(f[l]=i,h(l)&&(p[l]=i)):S&&(l.value=i,t.k&&(f[t.k]=i))};i?(L.id=-1,_t(L,n)):L()}}}Zn().requestIdleCallback,Zn().cancelIdleCallback;const qe=t=>!!t.type.__asyncLoader,Ga=t=>t.type.__isKeepAlive;function Yc(t,e){Ka(t,"a",e)}function Gc(t,e){Ka(t,"da",e)}function Ka(t,e,n=ht){const r=t.__wdc||(t.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return t()});if(cr(e,r,n),n){let o=n.parent;for(;o&&o.parent;)Ga(o.parent.vnode)&&Kc(r,e,n,o),o=o.parent}}function Kc(t,e,n,r){const o=cr(e,t,r,!0);oo(()=>{zr(r[e],o)},n)}function cr(t,e,n=ht,r=!1){if(n){const o=n[t]||(n[t]=[]),a=e.__weh||(e.__weh=(...i)=>{de();const s=Cn(n),l=Bt(e,n,t,i);return s(),pe(),l});return r?o.unshift(a):o.push(a),a}}let Ut,Xa,Qa,Za,Ja,oo,ti,ei,ni;Ut=t=>(e,n=ht)=>{(!Sn||t==="sp")&&cr(t,(...r)=>e(...r),n)},Xa=Ut("bm"),fa=Ut("m"),Qa=Ut("bu"),Za=Ut("u"),Ja=Ut("bum"),oo=Ut("um"),ti=Ut("sp"),ei=Ut("rtg"),ni=Ut("rtc");function Xc(t,e=ht){cr("ec",t,e)}const ri="components";da=function(t,e){return Zc(ri,t,!0,e)||t};const Qc=Symbol.for("v-ndc");function Zc(t,e,n=!0,r=!1){const o=dt||ht;if(o){const a=o.type;if(t===ri){const s=Iu(a,!1);if(s&&(s===e||s===Mt(e)||s===Qn(Mt(e))))return a}const i=oi(o[t]||a[t],e)||oi(o.appContext[t],e);return!i&&r?a:i}}function oi(t,e){return t&&(t[e]||t[Mt(e)]||t[Qn(Mt(e))])}Yl=function(t,e,n,r){let o;const a=n&&n[r],i=B(t);if(i||it(t)){const s=i&&Ve(t);let l=!1;s&&(l=!Rt(t),t=er(t)),o=new Array(t.length);for(let c=0,f=t.length;ce(s,l,void 0,a&&a[l]));else{const s=Object.keys(t);o=new Array(s.length);for(let l=0,c=s.length;lkn(e)?!(e.type===ee||e.type===xt&&!ai(e.children)):!0)?t:null}const ao=t=>t?zi(t)?mr(t):ao(t.parent):null,bn=lt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>ao(t.parent),$root:t=>ao(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>lo(t),$forceUpdate:t=>t.f||(t.f=()=>{eo(t.update)}),$nextTick:t=>t.n||(t.n=Mr.bind(t.proxy)),$watch:t=>yu.bind(t)}),io=(t,e)=>t!==Q&&!t.__isScriptSetup&&q(t,e),Jc={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:a,accessCache:i,type:s,appContext:l}=t;let c;if(e[0]!=="$"){const h=i[e];if(h!==void 0)switch(h){case 1:return r[e];case 2:return o[e];case 4:return n[e];case 3:return a[e]}else{if(io(r,e))return i[e]=1,r[e];if(o!==Q&&q(o,e))return i[e]=2,o[e];if((c=t.propsOptions[0])&&q(c,e))return i[e]=3,a[e];if(n!==Q&&q(n,e))return i[e]=4,n[e];so&&(i[e]=0)}}const f=bn[e];let p,m;if(f)return e==="$attrs"&&pt(t.attrs,"get",""),f(t);if((p=s.__cssModules)&&(p=p[e]))return p;if(n!==Q&&q(n,e))return i[e]=4,n[e];if(m=l.config.globalProperties,q(m,e))return m[e]},set({_:t},e,n){const{data:r,setupState:o,ctx:a}=t;return io(o,e)?(o[e]=n,!0):r!==Q&&q(r,e)?(r[e]=n,!0):q(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(a[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:o,propsOptions:a}},i){let s;return!!n[i]||t!==Q&&q(t,i)||io(e,i)||(s=a[0])&&q(s,i)||q(r,i)||q(bn,i)||q(o.config.globalProperties,i)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:q(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function ii(t){return B(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let so=!0;function tu(t){const e=lo(t),n=t.proxy,r=t.ctx;so=!1,e.beforeCreate&&si(e.beforeCreate,t,"bc");const{data:o,computed:a,methods:i,watch:s,provide:l,inject:c,created:f,beforeMount:p,mounted:m,beforeUpdate:h,updated:P,activated:S,deactivated:L,beforeDestroy:x,beforeUnmount:y,destroyed:M,unmounted:E,render:U,renderTracked:ot,renderTriggered:X,errorCaptured:le,serverPrefetch:ke,expose:Gt,inheritAttrs:Oe,components:Ie,directives:Kt,filters:Un}=e;if(c&&eu(c,r,null),i)for(const et in i){const H=i[et];$(H)&&(r[et]=H.bind(n))}if(o){const et=o.call(n,n);J(et)&&(t.data=hn(et))}if(so=!0,a)for(const et in a){const H=a[et],Pt=$(H)?H.bind(n,n):$(H.get)?H.get.bind(n,n):Lt,Vn=!$(H)&&$(H.set)?H.set.bind(n):Lt,ce=st({get:Pt,set:Vn});Object.defineProperty(r,et,{enumerable:!0,configurable:!0,get:()=>ce.value,set:ue=>ce.value=ue})}if(s)for(const et in s)li(s[et],r,n,et);if(l){const et=$(l)?l.call(n):l;Reflect.ownKeys(et).forEach(H=>{Me(H,et[H])})}f&&si(f,t,"c");function ut(et,H){B(H)?H.forEach(Pt=>et(Pt.bind(n))):H&&et(H.bind(n))}if(ut(Xa,p),ut(fa,m),ut(Qa,h),ut(Za,P),ut(Yc,S),ut(Gc,L),ut(Xc,le),ut(ni,ot),ut(ei,X),ut(Ja,y),ut(oo,E),ut(ti,ke),B(Gt))if(Gt.length){const et=t.exposed||(t.exposed={});Gt.forEach(H=>{Object.defineProperty(et,H,{get:()=>n[H],set:Pt=>n[H]=Pt})})}else t.exposed||(t.exposed={});U&&t.render===Lt&&(t.render=U),Oe!=null&&(t.inheritAttrs=Oe),Ie&&(t.components=Ie),Kt&&(t.directives=Kt),ke&&Ya(t)}function eu(t,e,n=Lt){B(t)&&(t=co(t));for(const r in t){const o=t[r];let a;J(o)?"default"in o?a=Ft(o.from||r,o.default,!0):a=Ft(o.from||r):a=Ft(o),ct(a)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:i=>a.value=i}):e[r]=a}}function si(t,e,n){Bt(B(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function li(t,e,n,r){let o=r.includes(".")?Si(n,r):()=>n[r];if(it(t)){const a=e[t];$(a)&&Te(o,a)}else if($(t))Te(o,t.bind(n));else if(J(t))if(B(t))t.forEach(a=>li(a,e,n,r));else{const a=$(t.handler)?t.handler.bind(n):e[t.handler];$(a)&&Te(o,a,t)}}function lo(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:o,optionsCache:a,config:{optionMergeStrategies:i}}=t.appContext,s=a.get(e);let l;return s?l=s:!o.length&&!n&&!r?l=e:(l={},o.length&&o.forEach(c=>ur(l,c,i,!0)),ur(l,e,i)),J(e)&&a.set(e,l),l}function ur(t,e,n,r=!1){const{mixins:o,extends:a}=e;a&&ur(t,a,n,!0),o&&o.forEach(i=>ur(t,i,n,!0));for(const i in e)if(!(r&&i==="expose")){const s=nu[i]||n&&n[i];t[i]=s?s(t[i],e[i]):e[i]}return t}const nu={data:ci,props:ui,emits:ui,methods:yn,computed:yn,beforeCreate:bt,created:bt,beforeMount:bt,mounted:bt,beforeUpdate:bt,updated:bt,beforeDestroy:bt,beforeUnmount:bt,destroyed:bt,unmounted:bt,activated:bt,deactivated:bt,errorCaptured:bt,serverPrefetch:bt,components:yn,directives:yn,watch:ou,provide:ci,inject:ru};function ci(t,e){return e?t?function(){return lt($(t)?t.call(this,this):t,$(e)?e.call(this,this):e)}:e:t}function ru(t,e){return yn(co(t),co(e))}function co(t){if(B(t)){const e={};for(let n=0;n1)return n&&$(e)?e.call(r&&r.proxy):e}};const di={},pi=()=>Object.create(di),mi=t=>Object.getPrototypeOf(t)===di;function su(t,e,n,r=!1){const o={},a=pi();t.propsDefaults=Object.create(null),hi(t,e,o,a);for(const i in t.propsOptions[0])i in o||(o[i]=void 0);n?t.props=r?o:Da(o):t.type.props?t.props=o:t.props=a,t.attrs=a}function lu(t,e,n,r){const{props:o,attrs:a,vnode:{patchFlag:i}}=t,s=W(o),[l]=t.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const f=t.vnode.dynamicProps;for(let p=0;p{l=!0;const[m,h]=gi(p,e,!0);lt(i,m),h&&s.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!a&&!l)return J(t)&&r.set(t,Be),Be;if(B(a))for(let f=0;ft[0]==="_"||t==="$stable",fo=t=>B(t)?t.map(Vt):[Vt(t)],uu=(t,e,n)=>{if(e._n)return e;const r=ca((...o)=>fo(e(...o)),n);return r._c=!1,r},yi=(t,e,n)=>{const r=t._ctx;for(const o in t){if(bi(o))continue;const a=t[o];if($(a))e[o]=uu(o,a,r);else if(a!=null){const i=fo(a);e[o]=()=>i}}},xi=(t,e)=>{const n=fo(e);t.slots.default=()=>n},wi=(t,e,n)=>{for(const r in e)(n||r!=="_")&&(t[r]=e[r])},fu=(t,e,n)=>{const r=t.slots=pi();if(t.vnode.shapeFlag&32){const o=e._;o?(wi(r,e,n),n&&ba(r,"_",o,!0)):yi(e,r)}else e&&xi(t,e)},du=(t,e,n)=>{const{vnode:r,slots:o}=t;let a=!0,i=Q;if(r.shapeFlag&32){const s=e._;s?n&&s===1?a=!1:wi(o,e,n):(a=!e.$stable,yi(e,o)),i=e}else e&&(xi(t,e),i={default:1});if(a)for(const s in o)!bi(s)&&i[s]==null&&delete o[s]},_t=Su;function pu(t){return mu(t)}function mu(t,e){const n=Zn();n.__VUE__=!0;const{insert:r,remove:o,patchProp:a,createElement:i,createText:s,createComment:l,setText:c,setElementText:f,parentNode:p,nextSibling:m,setScopeId:h=Lt,insertStaticContent:P}=t,S=(u,d,g,w=null,v=null,_=null,j=void 0,C=null,O=!!d.dynamicChildren)=>{if(u===d)return;u&&!On(u,d)&&(w=b(u),Nt(u,v,_,!0),u=null),d.patchFlag===-2&&(O=!1,d.dynamicChildren=null);const{type:k,ref:I,shapeFlag:N}=d;switch(k){case xn:L(u,d,g,w);break;case ee:x(u,d,g,w);break;case wn:u==null&&y(d,g,w,j);break;case xt:Ie(u,d,g,w,v,_,j,C,O);break;default:N&1?U(u,d,g,w,v,_,j,C,O):N&6?Kt(u,d,g,w,v,_,j,C,O):(N&64||N&128)&&k.process(u,d,g,w,v,_,j,C,O,F)}I!=null&&v&&ro(I,u&&u.ref,_,d||u,!d)},L=(u,d,g,w)=>{if(u==null)r(d.el=s(d.children),g,w);else{const v=d.el=u.el;d.children!==u.children&&c(v,d.children)}},x=(u,d,g,w)=>{u==null?r(d.el=l(d.children||""),g,w):d.el=u.el},y=(u,d,g,w)=>{[u.el,u.anchor]=P(u.children,d,g,w,u.el,u.anchor)},M=({el:u,anchor:d},g,w)=>{let v;for(;u&&u!==d;)v=m(u),r(u,g,w),u=v;r(d,g,w)},E=({el:u,anchor:d})=>{let g;for(;u&&u!==d;)g=m(u),o(u),u=g;o(d)},U=(u,d,g,w,v,_,j,C,O)=>{d.type==="svg"?j="svg":d.type==="math"&&(j="mathml"),u==null?ot(d,g,w,v,_,j,C,O):ke(u,d,v,_,j,C,O)},ot=(u,d,g,w,v,_,j,C)=>{let O,k;const{props:I,shapeFlag:N,transition:D,dirs:T}=u;if(O=u.el=i(u.type,_,I&&I.is,I),N&8?f(O,u.children):N&16&&le(u.children,O,null,w,v,po(u,_),j,C),T&&je(u,null,w,"created"),X(O,u,u.scopeId,j,w),I){for(const at in I)at!=="value"&&!cn(at)&&a(O,at,null,I[at],_,w);"value"in I&&a(O,"value",null,I.value,_),(k=I.onVnodeBeforeMount)&&Wt(k,w,u)}T&&je(u,null,w,"beforeMount");const V=hu(v,D);V&&D.beforeEnter(O),r(O,d,g),((k=I&&I.onVnodeMounted)||V||T)&&_t(()=>{k&&Wt(k,w,u),V&&D.enter(O),T&&je(u,null,w,"mounted")},v)},X=(u,d,g,w,v)=>{if(g&&h(u,g),w)for(let _=0;_{for(let k=O;k{const C=d.el=u.el;let{patchFlag:O,dynamicChildren:k,dirs:I}=d;O|=u.patchFlag&16;const N=u.props||Q,D=d.props||Q;let T;if(g&&Re(g,!1),(T=D.onVnodeBeforeUpdate)&&Wt(T,g,d,u),I&&je(d,u,g,"beforeUpdate"),g&&Re(g,!0),(N.innerHTML&&D.innerHTML==null||N.textContent&&D.textContent==null)&&f(C,""),k?Gt(u.dynamicChildren,k,C,g,w,po(d,v),_):j||Pt(u,d,C,null,g,w,po(d,v),_,!1),O>0){if(O&16)Oe(C,N,D,g,v);else if(O&2&&N.class!==D.class&&a(C,"class",null,D.class,v),O&4&&a(C,"style",N.style,D.style,v),O&8){const V=d.dynamicProps;for(let at=0;at{T&&Wt(T,g,d,u),I&&je(d,u,g,"updated")},w)},Gt=(u,d,g,w,v,_,j)=>{for(let C=0;C{if(d!==g){if(d!==Q)for(const _ in d)!cn(_)&&!(_ in g)&&a(u,_,d[_],null,v,w);for(const _ in g){if(cn(_))continue;const j=g[_],C=d[_];j!==C&&_!=="value"&&a(u,_,C,j,v,w)}"value"in g&&a(u,"value",d.value,g.value,v)}},Ie=(u,d,g,w,v,_,j,C,O)=>{const k=d.el=u?u.el:s(""),I=d.anchor=u?u.anchor:s("");let{patchFlag:N,dynamicChildren:D,slotScopeIds:T}=d;T&&(C=C?C.concat(T):T),u==null?(r(k,g,w),r(I,g,w),le(d.children||[],g,I,v,_,j,C,O)):N>0&&N&64&&D&&u.dynamicChildren?(Gt(u.dynamicChildren,D,g,v,_,j,C),(d.key!=null||v&&d===v.subTree)&&_i(u,d,!0)):Pt(u,d,g,I,v,_,j,C,O)},Kt=(u,d,g,w,v,_,j,C,O)=>{d.slotScopeIds=C,u==null?d.shapeFlag&512?v.ctx.activate(d,g,w,j,O):Un(d,g,w,v,_,j,O):ut(u,d,O)},Un=(u,d,g,w,v,_,j)=>{const C=u.component=Nu(u,w,v);if(Ga(u)&&(C.ctx.renderer=F),zu(C,!1,j),C.asyncDep){if(v&&v.registerDep(C,et,j),!u.el){const O=C.subTree=ft(ee);x(null,O,d,g)}}else et(C,u,d,g,v,_,j)},ut=(u,d,g)=>{const w=d.component=u.component;if(Ou(u,d,g))if(w.asyncDep&&!w.asyncResolved){H(w,d,g);return}else w.next=d,w.update();else d.el=u.el,w.vnode=d},et=(u,d,g,w,v,_,j)=>{const C=()=>{if(u.isMounted){let{next:N,bu:D,u:T,parent:V,vnode:at}=u;{const At=ki(u);if(At){N&&(N.el=at.el,H(u,N,j)),At.asyncDep.then(()=>{u.isUnmounted||C()});return}}let K=N,Et;Re(u,!1),N?(N.el=at.el,H(u,N,j)):N=at,D&&Dr(D),(Et=N.props&&N.props.onVnodeBeforeUpdate)&&Wt(Et,V,N,at),Re(u,!0);const gt=mo(u),Tt=u.subTree;u.subTree=gt,S(Tt,gt,p(Tt.el),b(Tt),u,v,_),N.el=gt.el,K===null&&Cu(u,gt.el),T&&_t(T,v),(Et=N.props&&N.props.onVnodeUpdated)&&_t(()=>Wt(Et,V,N,at),v)}else{let N;const{el:D,props:T}=d,{bm:V,m:at,parent:K,root:Et,type:gt}=u,Tt=qe(d);if(Re(u,!1),V&&Dr(V),!Tt&&(N=T&&T.onVnodeBeforeMount)&&Wt(N,K,d),Re(u,!0),D&&rt){const At=()=>{u.subTree=mo(u),rt(D,u.subTree,u,v,null)};Tt&>.__asyncHydrate?gt.__asyncHydrate(D,u,At):At()}else{Et.ce&&Et.ce._injectChildStyle(gt);const At=u.subTree=mo(u);S(null,At,g,w,u,v,_),d.el=At.el}if(at&&_t(at,v),!Tt&&(N=T&&T.onVnodeMounted)){const At=d;_t(()=>Wt(N,K,At),v)}(d.shapeFlag&256||K&&qe(K.vnode)&&K.vnode.shapeFlag&256)&&u.a&&_t(u.a,v),u.isMounted=!0,d=g=w=null}};u.scope.on();const O=u.effect=new wa(C);u.scope.off();const k=u.update=O.run.bind(O),I=u.job=O.runIfDirty.bind(O);I.i=u,I.id=u.uid,O.scheduler=()=>eo(I),Re(u,!0),k()},H=(u,d,g)=>{d.component=u;const w=u.vnode.props;u.vnode=d,u.next=null,lu(u,d.props,w,g),du(u,d.children,g),de(),Va(u),pe()},Pt=(u,d,g,w,v,_,j,C,O=!1)=>{const k=u&&u.children,I=u?u.shapeFlag:0,N=d.children,{patchFlag:D,shapeFlag:T}=d;if(D>0){if(D&128){ce(k,N,g,w,v,_,j,C,O);return}else if(D&256){Vn(k,N,g,w,v,_,j,C,O);return}}T&8?(I&16&&zt(k,v,_),N!==k&&f(g,N)):I&16?T&16?ce(k,N,g,w,v,_,j,C,O):zt(k,v,_,!0):(I&8&&f(g,""),T&16&&le(N,g,w,v,_,j,C,O))},Vn=(u,d,g,w,v,_,j,C,O)=>{u=u||Be,d=d||Be;const k=u.length,I=d.length,N=Math.min(k,I);let D;for(D=0;DI?zt(u,v,_,!0,!1,N):le(d,g,w,v,_,j,C,O,N)},ce=(u,d,g,w,v,_,j,C,O)=>{let k=0;const I=d.length;let N=u.length-1,D=I-1;for(;k<=N&&k<=D;){const T=u[k],V=d[k]=O?he(d[k]):Vt(d[k]);if(On(T,V))S(T,V,g,null,v,_,j,C,O);else break;k++}for(;k<=N&&k<=D;){const T=u[N],V=d[D]=O?he(d[D]):Vt(d[D]);if(On(T,V))S(T,V,g,null,v,_,j,C,O);else break;N--,D--}if(k>N){if(k<=D){const T=D+1,V=TD)for(;k<=N;)Nt(u[k],v,_,!0),k++;else{const T=k,V=k,at=new Map;for(k=V;k<=D;k++){const jt=d[k]=O?he(d[k]):Vt(d[k]);jt.key!=null&&at.set(jt.key,k)}let K,Et=0;const gt=D-V+1;let Tt=!1,At=0;const Wn=new Array(gt);for(k=0;k=gt){Nt(jt,v,_,!0);continue}let Xt;if(jt.key!=null)Xt=at.get(jt.key);else for(K=V;K<=D;K++)if(Wn[K-V]===0&&On(jt,d[K])){Xt=K;break}Xt===void 0?Nt(jt,v,_,!0):(Wn[Xt-V]=k+1,Xt>=At?At=Xt:Tt=!0,S(jt,d[Xt],g,null,v,_,j,C,O),Et++)}const Vl=Tt?gu(Wn):Be;for(K=Vl.length-1,k=gt-1;k>=0;k--){const jt=V+k,Xt=d[jt],Wl=jt+1{const{el:_,type:j,transition:C,children:O,shapeFlag:k}=u;if(k&6){ue(u.component.subTree,d,g,w);return}if(k&128){u.suspense.move(d,g,w);return}if(k&64){j.move(u,d,g,F);return}if(j===xt){r(_,d,g);for(let I=0;IC.enter(_),v);else{const{leave:I,delayLeave:N,afterLeave:D}=C,T=()=>r(_,d,g),V=()=>{I(_,()=>{T(),D&&D()})};N?N(_,T,V):V()}else r(_,d,g)},Nt=(u,d,g,w=!1,v=!1)=>{const{type:_,props:j,ref:C,children:O,dynamicChildren:k,shapeFlag:I,patchFlag:N,dirs:D,cacheIndex:T}=u;if(N===-2&&(v=!1),C!=null&&ro(C,null,g,u,!0),T!=null&&(d.renderCache[T]=void 0),I&256){d.ctx.deactivate(u);return}const V=I&1&&D,at=!qe(u);let K;if(at&&(K=j&&j.onVnodeBeforeUnmount)&&Wt(K,d,u),I&6)Er(u.component,g,w);else{if(I&128){u.suspense.unmount(g,w);return}V&&je(u,null,d,"beforeUnmount"),I&64?u.type.remove(u,d,g,F,w):k&&!k.hasOnce&&(_!==xt||N>0&&N&64)?zt(k,d,g,!1,!0):(_===xt&&N&384||!v&&I&16)&&zt(O,d,g),w&&on(u)}(at&&(K=j&&j.onVnodeUnmounted)||V)&&_t(()=>{K&&Wt(K,d,u),V&&je(u,null,d,"unmounted")},g)},on=u=>{const{type:d,el:g,anchor:w,transition:v}=u;if(d===xt){an(g,w);return}if(d===wn){E(u);return}const _=()=>{o(g),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(u.shapeFlag&1&&v&&!v.persisted){const{leave:j,delayLeave:C}=v,O=()=>j(g,_);C?C(u.el,_,O):O()}else _()},an=(u,d)=>{let g;for(;u!==d;)g=m(u),o(u),u=g;o(d)},Er=(u,d,g)=>{const{bum:w,scope:v,job:_,subTree:j,um:C,m:O,a:k}=u;Oi(O),Oi(k),w&&Dr(w),v.stop(),_&&(_.flags|=8,Nt(j,u,d,g)),C&&_t(C,d),_t(()=>{u.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},zt=(u,d,g,w=!1,v=!1,_=0)=>{for(let j=_;j{if(u.shapeFlag&6)return b(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const d=m(u.anchor||u.el),g=d&&d[Hc];return g?m(g):d};let R=!1;const A=(u,d,g)=>{u==null?d._vnode&&Nt(d._vnode,null,null,!0):S(d._vnode||null,u,d,null,null,null,g),d._vnode=u,R||(R=!0,Va(),Wa(),R=!1)},F={p:S,um:Nt,m:ue,r:on,mt:Un,mc:le,pc:Pt,pbc:Gt,n:b,o:t};let Y,rt;return e&&([Y,rt]=e(F)),{render:A,hydrate:Y,createApp:iu(A,Y)}}function po({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Re({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function hu(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function _i(t,e,n=!1){const r=t.children,o=e.children;if(B(r)&&B(o))for(let a=0;a>1,t[n[s]]0&&(e[r]=n[a-1]),n[a]=r)}}for(a=n.length,i=n[a-1];a-- >0;)n[a]=i,i=e[i];return n}function ki(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:ki(e)}function Oi(t){if(t)for(let e=0;eFt(vu);Te=function(t,e,n){return Ci(t,e,n)};function Ci(t,e,n=Q){const{immediate:r,deep:o,flush:a,once:i}=n,s=lt({},n),l=e&&r||!e&&a!=="post";let c;if(Sn){if(a==="sync"){const h=bu();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Lt,h.resume=Lt,h.pause=Lt,h}}const f=ht;s.call=(h,P,S)=>Bt(h,f,P,S);let p=!1;a==="post"?s.scheduler=h=>{_t(h,f&&f.suspense)}:a!=="sync"&&(p=!0,s.scheduler=(h,P)=>{P?h():eo(h)}),s.augmentJob=h=>{e&&(h.flags|=4),p&&(h.flags|=2,f&&(h.id=f.uid,h.i=f))};const m=$c(t,e,s);return Sn&&(c?c.push(m):l&&m()),m}function yu(t,e,n){const r=this.proxy,o=it(t)?t.includes(".")?Si(r,t):()=>r[t]:t.bind(r,r);let a;$(e)?a=e:(a=e.handler,n=e);const i=Cn(this),s=Ci(o,a.bind(r),n);return i(),s}function Si(t,e){const n=e.split(".");return()=>{let r=t;for(let o=0;oe==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Mt(e)}Modifiers`]||t[`${Se(e)}Modifiers`];function wu(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||Q;let o=n;const a=e.startsWith("update:"),i=a&&xu(r,e.slice(7));i&&(i.trim&&(o=n.map(f=>it(f)?f.trim():f)),i.number&&(o=n.map(rc)));let s,l=r[s=Lr(e)]||r[s=Lr(Mt(e))];!l&&a&&(l=r[s=Lr(Se(e))]),l&&Bt(l,t,6,o);const c=r[s+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[s])return;t.emitted[s]=!0,Bt(c,t,6,o)}}function Pi(t,e,n=!1){const r=e.emitsCache,o=r.get(t);if(o!==void 0)return o;const a=t.emits;let i={},s=!1;if(!$(t)){const l=c=>{const f=Pi(c,e,!0);f&&(s=!0,lt(i,f))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!a&&!s?(J(t)&&r.set(t,null),null):(B(a)?a.forEach(l=>i[l]=null):lt(i,a),J(t)&&r.set(t,i),i)}function fr(t,e){return!t||!Gn(e)?!1:(e=e.slice(2).replace(/Once$/,""),q(t,e[0].toLowerCase()+e.slice(1))||q(t,Se(e))||q(t,e))}function mo(t){const{type:e,vnode:n,proxy:r,withProxy:o,propsOptions:[a],slots:i,attrs:s,emit:l,render:c,renderCache:f,props:p,data:m,setupState:h,ctx:P,inheritAttrs:S}=t,L=lr(t);let x,y;try{if(n.shapeFlag&4){const E=o||r,U=E;x=Vt(c.call(U,E,f,p,h,m,P)),y=s}else{const E=e;x=Vt(E.length>1?E(p,{attrs:s,slots:i,emit:l}):E(p,null)),y=e.props?s:_u(s)}}catch(E){Ge.length=0,ir(E,t,1),x=ft(ee)}let M=x;if(y&&S!==!1){const E=Object.keys(y),{shapeFlag:U}=M;E.length&&U&7&&(a&&E.some(Nr)&&(y=ku(y,a)),M=Ke(M,y,!1,!0))}return n.dirs&&(M=Ke(M,null,!1,!0),M.dirs=M.dirs?M.dirs.concat(n.dirs):n.dirs),n.transition&&no(M,n.transition),x=M,lr(L),x}const _u=t=>{let e;for(const n in t)(n==="class"||n==="style"||Gn(n))&&((e||(e={}))[n]=t[n]);return e},ku=(t,e)=>{const n={};for(const r in t)(!Nr(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function Ou(t,e,n){const{props:r,children:o,component:a}=t,{props:i,children:s,patchFlag:l}=e,c=a.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Ei(r,i,c):!!i;if(l&8){const f=e.dynamicProps;for(let p=0;pt.__isSuspense;function Su(t,e){e&&e.pendingBranch?B(t)?e.effects.push(...t):e.effects.push(t):Wc(t)}let xn,ee,wn,Ge;xt=Symbol.for("v-fgt"),xn=Symbol.for("v-txt"),ee=Symbol.for("v-cmt"),wn=Symbol.for("v-stc"),Ge=[];let kt=null;ln=function(t=!1){Ge.push(kt=t?null:[])};function Pu(){Ge.pop(),kt=Ge[Ge.length-1]||null}let _n=1;function ji(t){_n+=t,t<0&&kt&&(kt.hasOnce=!0)}function Mi(t){return t.dynamicChildren=_n>0?kt||Be:null,Pu(),_n>0&&kt&&kt.push(t),t}la=function(t,e,n,r,o,a){return Mi(Ar(t,e,n,r,o,a,!0))},Yn=function(t,e,n,r,o){return Mi(ft(t,e,n,r,o,!0))};function kn(t){return t?t.__v_isVNode===!0:!1}function On(t,e){return t.type===e.type&&t.key===e.key}const Ri=({key:t})=>t??null,dr=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?it(t)||ct(t)||$(t)?{i:dt,r:t,k:e,f:!!n}:t:null);Ar=function(t,e=null,n=null,r=0,o=null,a=t===xt?0:1,i=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Ri(e),ref:e&&dr(e),scopeId:qa,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:dt};return s?(ho(l,n),a&128&&t.normalize(l)):n&&(l.shapeFlag|=it(n)?8:16),_n>0&&!i&&kt&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&kt.push(l),l},ft=Eu;function Eu(t,e=null,n=null,r=0,o=null,a=!1){if((!t||t===Qc)&&(t=ee),kn(t)){const s=Ke(t,e,!0);return n&&ho(s,n),_n>0&&!a&&kt&&(s.shapeFlag&6?kt[kt.indexOf(t)]=s:kt.push(s)),s.patchFlag=-2,s}if(Tu(t)&&(t=t.__vccOpts),e){e=Au(e);let{class:s,style:l}=e;s&&!it(s)&&(e.class=Hn(s)),J(l)&&(Zr(l)&&!B(l)&&(l=lt({},l)),e.style=qn(l))}const i=it(t)?1:Ai(t)?128:qc(t)?64:J(t)?4:$(t)?2:0;return Ar(t,e,n,r,o,i,a,!0)}function Au(t){return t?Zr(t)||mi(t)?lt({},t):t:null}function Ke(t,e,n=!1,r=!1){const{props:o,ref:a,patchFlag:i,children:s,transition:l}=t,c=e?ju(o||{},e):o,f={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&Ri(c),ref:e&&e.ref?n&&a?B(a)?a.concat(dr(e)):[a,dr(e)]:dr(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:s,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==xt?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ke(t.ssContent),ssFallback:t.ssFallback&&Ke(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&no(f,l.clone(f)),f}ua=function(t=" ",e=0){return ft(xn,null,t,e)},Hl=function(t,e){const n=ft(wn,null,t);return n.staticCount=e,n},ql=function(t="",e=!1){return e?(ln(),Yn(ee,null,t)):ft(ee,null,t)};function Vt(t){return t==null||typeof t=="boolean"?ft(ee):B(t)?ft(xt,null,t.slice()):kn(t)?he(t):ft(xn,null,String(t))}function he(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ke(t)}function ho(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(B(e))n=16;else if(typeof e=="object")if(r&65){const o=e.default;o&&(o._c&&(o._d=!1),ho(t,o()),o._c&&(o._d=!0));return}else{n=32;const o=e._;!o&&!mi(e)?e._ctx=dt:o===3&&dt&&(dt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else $(e)?(e={default:e,_ctx:dt},n=32):(e=String(e),r&64?(n=16,e=[ua(e)]):n=8);t.children=e,t.shapeFlag|=n}function ju(...t){const e={};for(let n=0;n{let o;return(o=t[n])||(o=t[n]=[]),o.push(r),a=>{o.length>1?o.forEach(i=>i(a)):o[0](a)}};pr=e("__VUE_INSTANCE_SETTERS__",n=>ht=n),go=e("__VUE_SSR_SETTERS__",n=>Sn=n)}const Cn=t=>{const e=ht;return pr(t),t.scope.on(),()=>{t.scope.off(),pr(e)}},Ni=()=>{ht&&ht.scope.off(),pr(null)};function zi(t){return t.vnode.shapeFlag&4}let Sn=!1;function zu(t,e=!1,n=!1){e&&go(e);const{props:r,children:o}=t.vnode,a=zi(t);su(t,r,a,e),fu(t,o,n);const i=a?Fu(t,e):void 0;return e&&go(!1),i}function Fu(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Jc);const{setup:r}=n;if(r){de();const o=t.setupContext=r.length>1?Du(t):null,a=Cn(t),i=gn(r,t,0,[t.props,o]),s=ha(i);if(pe(),a(),(s||t.sp)&&!qe(t)&&Ya(t),s){if(i.then(Ni,Ni),e)return i.then(l=>{Fi(t,l,e)}).catch(l=>{ir(l,t,0)});t.asyncDep=i}else Fi(t,i,e)}else Di(t,e)}function Fi(t,e,n){$(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:J(e)&&(t.setupState=Ba(e)),Di(t,n)}let Li;function Di(t,e,n){const r=t.type;if(!t.render){if(!e&&Li&&!r.render){const o=r.template||lo(t).template;if(o){const{isCustomElement:a,compilerOptions:i}=t.appContext.config,{delimiters:s,compilerOptions:l}=r,c=lt(lt({isCustomElement:a,delimiters:s},i),l);r.render=Li(o,c)}}t.render=r.render||Lt}{const o=Cn(t);de();try{tu(t)}finally{pe(),o()}}}const Lu={get(t,e){return pt(t,"get",""),t[e]}};function Du(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,Lu),slots:t.slots,emit:t.emit,expose:e}}function mr(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Ba(Mc(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in bn)return bn[n](t)},has(e,n){return n in e||n in bn}})):t.proxy}function Iu(t,e=!0){return $(t)?t.displayName||t.name:t.name||e&&t.__name}function Tu(t){return $(t)&&"__vccOpts"in t}st=(t,e)=>Tc(t,e,Sn);function vo(t,e,n){const r=arguments.length;return r===2?J(e)&&!B(e)?kn(e)?ft(t,null,[e]):ft(t,e):ft(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&kn(n)&&(n=[n]),ft(t,e,n))}const Bu="3.5.12";let bo;const Ii=typeof window<"u"&&window.trustedTypes;if(Ii)try{bo=Ii.createPolicy("vue",{createHTML:t=>t})}catch{}const Ti=bo?t=>bo.createHTML(t):t=>t,$u="http://www.w3.org/2000/svg",Uu="http://www.w3.org/1998/Math/MathML",ne=typeof document<"u"?document:null,Bi=ne&&ne.createElement("template"),Vu={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const o=e==="svg"?ne.createElementNS($u,t):e==="mathml"?ne.createElementNS(Uu,t):n?ne.createElement(t,{is:n}):ne.createElement(t);return t==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:t=>ne.createTextNode(t),createComment:t=>ne.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>ne.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,o,a){const i=n?n.previousSibling:e.lastChild;if(o&&(o===a||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),n),!(o===a||!(o=o.nextSibling)););else{Bi.innerHTML=Ti(r==="svg"?`${t}`:r==="mathml"?`${t}`:t);const s=Bi.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}e.insertBefore(s,n)}return[i?i.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Wu=Symbol("_vtc");function Hu(t,e,n){const r=t[Wu];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}let Pn,yo;Pn=Symbol("_vod"),yo=Symbol("_vsh"),Xl={beforeMount(t,{value:e},{transition:n}){t[Pn]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):En(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),En(t,!0),r.enter(t)):r.leave(t,()=>{En(t,!1)}):En(t,e))},beforeUnmount(t,{value:e}){En(t,e)}};function En(t,e){t.style.display=e?t[Pn]:"none",t[yo]=!e}const qu=Symbol(""),Yu=/(^|;)\s*display\s*:/;function Gu(t,e,n){const r=t.style,o=it(n);let a=!1;if(n&&!o){if(e)if(it(e))for(const i of e.split(";")){const s=i.slice(0,i.indexOf(":")).trim();n[s]==null&&hr(r,s,"")}else for(const i in e)n[i]==null&&hr(r,i,"");for(const i in n)i==="display"&&(a=!0),hr(r,i,n[i])}else if(o){if(e!==n){const i=r[qu];i&&(n+=";"+i),r.cssText=n,a=Yu.test(n)}}else e&&t.removeAttribute("style");Pn in t&&(t[Pn]=a?r.display:"",t[yo]&&(r.display="none"))}const $i=/\s*!important$/;function hr(t,e,n){if(B(n))n.forEach(r=>hr(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=Ku(t,e);$i.test(n)?t.setProperty(Se(r),n.replace($i,""),"important"):t[r]=n}}const Ui=["Webkit","Moz","ms"],xo={};function Ku(t,e){const n=xo[e];if(n)return n;let r=Mt(e);if(r!=="filter"&&r in t)return xo[e]=r;r=Qn(r);for(let o=0;owo||(tf.then(()=>wo=0),wo=Date.now());function nf(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Bt(rf(r,n.value),e,5,[r])};return n.value=t,n.attached=ef(),n}function rf(t,e){if(B(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>o=>!o._stopped&&r&&r(o))}else return e}const Gi=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,of=(t,e,n,r,o,a)=>{const i=o==="svg";e==="class"?Hu(t,r,i):e==="style"?Gu(t,n,r):Gn(e)?Nr(e)||Zu(t,e,n,r,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):af(t,e,r,i))?(Hi(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Wi(t,e,r,i,a,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!it(r))?Hi(t,Mt(e),r,a,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),Wi(t,e,r,i))};function af(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&Gi(e)&&$(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const o=t.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Gi(e)&&it(n)?!1:e in t}const sf=lt({patchProp:of},Vu);let Ki;function lf(){return Ki||(Ki=pu(sf))}const cf=(...t)=>{const e=lf().createApp(...t),{mount:n}=e;return e.mount=r=>{const o=ff(r);if(!o)return;const a=e._component;!$(a)&&!a.render&&!a.template&&(a.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,uf(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},e};function uf(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function ff(t){return it(t)?document.querySelector(t):t}let Xi,Qi,Zi,Ji,ts,_o;Xi=()=>{let t=hn({isMobile:!1,isPc:!1,size:"",deviceCnt:0});function e(){const n=window.innerWidth;n<=600?(t.size="xs",t.isMobile=!0,t.isPc=!1,t.deviceCnt=0):n<=960?(t.size="sm",t.isMobile=!1,t.isPc=!1,t.deviceCnt=1):n<=1264?(t.size="md",t.isMobile=!1,t.isPc=!0,t.deviceCnt=2):n<=1904?(t.size="lg",t.isMobile=!1,t.isPc=!0,t.deviceCnt=3):(t.size="xl",t.isMobile=!1,t.isPc=!0,t.deviceCnt=4)}return e(),window.addEventListener("resize",e),t},Qi={class:"app"},Zi=sn({__name:"App",setup(t){const e=Xi();return Me("sizeCnt",to(e,"deviceCnt")),Me("isMobile",to(e,"isMobile")),Me("isPc",to(e,"isPc")),(n,r)=>{const o=da("router-view");return ln(),la("div",Qi,[ft(o)])}}}),Ji="modulepreload",ts=function(t){return"/"+t},_o={},sa=function(t,e,n){if(!e||e.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(e.map(o=>{if(o=ts(o),o in _o)return;_o[o]=!0;const a=o.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(n)for(let l=r.length-1;l>=0;l--){const c=r[l];if(c.href===o&&(!a||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${i}`))return;const s=document.createElement("link");if(s.rel=a?"stylesheet":Ji,a||(s.as="script",s.crossOrigin=""),s.href=o,document.head.appendChild(s),a)return new Promise((l,c)=>{s.addEventListener("load",l),s.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})};const Xe=typeof document<"u";function es(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function df(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&es(t.default)}const G=Object.assign;function ko(t,e){const n={};for(const r in e){const o=e[r];n[r]=It(o)?o.map(t):t(o)}return n}const An=()=>{},It=Array.isArray,ns=/#/g,pf=/&/g,mf=/\//g,hf=/=/g,gf=/\?/g,rs=/\+/g,vf=/%5B/g,bf=/%5D/g,os=/%5E/g,yf=/%60/g,as=/%7B/g,xf=/%7C/g,is=/%7D/g,wf=/%20/g;function Oo(t){return encodeURI(""+t).replace(xf,"|").replace(vf,"[").replace(bf,"]")}function _f(t){return Oo(t).replace(as,"{").replace(is,"}").replace(os,"^")}function Co(t){return Oo(t).replace(rs,"%2B").replace(wf,"+").replace(ns,"%23").replace(pf,"%26").replace(yf,"`").replace(as,"{").replace(is,"}").replace(os,"^")}function kf(t){return Co(t).replace(hf,"%3D")}function Of(t){return Oo(t).replace(ns,"%23").replace(gf,"%3F")}function Cf(t){return t==null?"":Of(t).replace(mf,"%2F")}function jn(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const Sf=/\/$/,Pf=t=>t.replace(Sf,"");function So(t,e,n="/"){let r,o={},a="",i="";const s=e.indexOf("#");let l=e.indexOf("?");return s=0&&(l=-1),l>-1&&(r=e.slice(0,l),a=e.slice(l+1,s>-1?s:e.length),o=t(a)),s>-1&&(r=r||e.slice(0,s),i=e.slice(s,e.length)),r=Mf(r??e,n),{fullPath:r+(a&&"?")+a+i,path:r,query:o,hash:jn(i)}}function Ef(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function ss(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function Af(t,e,n){const r=e.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Qe(e.matched[r],n.matched[o])&&ls(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Qe(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function ls(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!jf(t[n],e[n]))return!1;return!0}function jf(t,e){return It(t)?cs(t,e):It(e)?cs(e,t):t===e}function cs(t,e){return It(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function Mf(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let a=n.length-1,i,s;for(i=0;i1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(i).join("/")}const ge={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Mn;(function(t){t.pop="pop",t.push="push"})(Mn||(Mn={}));var Rn;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Rn||(Rn={}));function Rf(t){if(!t)if(Xe){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Pf(t)}const Nf=/^[^#]+#/;function zf(t,e){return t.replace(Nf,"#")+e}function Ff(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const gr=()=>({left:window.scrollX,top:window.scrollY});function Lf(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;e=Ff(o,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function us(t,e){return(history.state?history.state.position-e:-1)+t}const Po=new Map;function Df(t,e){Po.set(t,e)}function If(t){const e=Po.get(t);return Po.delete(t),e}let Tf=()=>location.protocol+"//"+location.host;function fs(t,e){const{pathname:n,search:r,hash:o}=e,a=t.indexOf("#");if(a>-1){let i=o.includes(t.slice(a))?t.slice(a).length:1,s=o.slice(i);return s[0]!=="/"&&(s="/"+s),ss(s,"")}return ss(n,t)+r+o}function Bf(t,e,n,r){let o=[],a=[],i=null;const s=({state:m})=>{const h=fs(t,location),P=n.value,S=e.value;let L=0;if(m){if(n.value=h,e.value=m,i&&i===P){i=null;return}L=S?m.position-S.position:0}else r(h);o.forEach(x=>{x(n.value,P,{delta:L,type:Mn.pop,direction:L?L>0?Rn.forward:Rn.back:Rn.unknown})})};function l(){i=n.value}function c(m){o.push(m);const h=()=>{const P=o.indexOf(m);P>-1&&o.splice(P,1)};return a.push(h),h}function f(){const{history:m}=window;m.state&&m.replaceState(G({},m.state,{scroll:gr()}),"")}function p(){for(const m of a)m();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:l,listen:c,destroy:p}}function ds(t,e,n,r=!1,o=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:o?gr():null}}function $f(t){const{history:e,location:n}=window,r={value:fs(t,n)},o={value:e.state};o.value||a(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function a(l,c,f){const p=t.indexOf("#"),m=p>-1?(n.host&&document.querySelector("base")?t:t.slice(p))+l:Tf()+t+l;try{e[f?"replaceState":"pushState"](c,"",m),o.value=c}catch(h){console.error(h),n[f?"replace":"assign"](m)}}function i(l,c){const f=G({},e.state,ds(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});a(l,f,!0),r.value=l}function s(l,c){const f=G({},o.value,e.state,{forward:l,scroll:gr()});a(f.current,f,!0);const p=G({},ds(r.value,l,null),{position:f.position+1},c);a(l,p,!1),r.value=l}return{location:r,state:o,push:s,replace:i}}function Uf(t){t=Rf(t);const e=$f(t),n=Bf(t,e.state,e.location,e.replace);function r(a,i=!0){i||n.pauseListeners(),history.go(a)}const o=G({location:"",base:t,go:r,createHref:zf.bind(null,t)},e,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>e.state.value}),o}function Vf(t){return typeof t=="string"||t&&typeof t=="object"}function ps(t){return typeof t=="string"||typeof t=="symbol"}const ms=Symbol("");var hs;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(hs||(hs={}));function Ze(t,e){return G(new Error,{type:t,[ms]:!0},e)}function re(t,e){return t instanceof Error&&ms in t&&(e==null||!!(t.type&e))}const gs="[^/]+?",Wf={sensitive:!1,strict:!1,start:!0,end:!0},Hf=/[.+*?^${}()[\]/\\]/g;function qf(t,e){const n=G({},Wf,e),r=[];let o=n.start?"^":"";const a=[];for(const c of t){const f=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let p=0;pe.length?e.length===1&&e[0]===80?1:-1:0}function vs(t,e){let n=0;const r=t.score,o=e.score;for(;n0&&e[e.length-1]<0}const Gf={type:0,value:""},Kf=/[a-zA-Z0-9_]/;function Xf(t){if(!t)return[[]];if(t==="/")return[[Gf]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,r=n;const o=[];let a;function i(){a&&o.push(a),a=[]}let s=0,l,c="",f="";function p(){c&&(n===0?a.push({type:0,value:c}):n===1||n===2||n===3?(a.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:c,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function m(){c+=l}for(;s{i(M)}:An}function i(p){if(ps(p)){const m=r.get(p);m&&(r.delete(p),n.splice(n.indexOf(m),1),m.children.forEach(i),m.alias.forEach(i))}else{const m=n.indexOf(p);m>-1&&(n.splice(m,1),p.record.name&&r.delete(p.record.name),p.children.forEach(i),p.alias.forEach(i))}}function s(){return n}function l(p){const m=ed(p,n);n.splice(m,0,p),p.record.name&&!ws(p)&&r.set(p.record.name,p)}function c(p,m){let h,P={},S,L;if("name"in p&&p.name){if(h=r.get(p.name),!h)throw Ze(1,{location:p});L=h.record.name,P=G(ys(m.params,h.keys.filter(M=>!M.optional).concat(h.parent?h.parent.keys.filter(M=>M.optional):[]).map(M=>M.name)),p.params&&ys(p.params,h.keys.map(M=>M.name))),S=h.stringify(P)}else if(p.path!=null)S=p.path,h=n.find(M=>M.re.test(S)),h&&(P=h.parse(S),L=h.record.name);else{if(h=m.name?r.get(m.name):n.find(M=>M.re.test(m.path)),!h)throw Ze(1,{location:p,currentLocation:m});L=h.record.name,P=G({},m.params,p.params),S=h.stringify(P)}const x=[];let y=h;for(;y;)x.unshift(y.record),y=y.parent;return{name:L,path:S,params:P,matched:x,meta:td(x)}}t.forEach(p=>a(p));function f(){n.length=0,r.clear()}return{addRoute:a,resolve:c,removeRoute:i,clearRoutes:f,getRoutes:s,getRecordMatcher:o}}function ys(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function xs(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:Jf(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function Jf(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="object"?n[r]:n;return e}function ws(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function td(t){return t.reduce((e,n)=>G(e,n.meta),{})}function _s(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function ed(t,e){let n=0,r=e.length;for(;n!==r;){const a=n+r>>1;vs(t,e[a])<0?r=a:n=a+1}const o=nd(t);return o&&(r=e.lastIndexOf(o,r-1)),r}function nd(t){let e=t;for(;e=e.parent;)if(ks(e)&&vs(t,e)===0)return e}function ks({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function rd(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;ro&&Co(o)):[r&&Co(r)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+n,o!=null&&(e+="="+o))})}return e}function od(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=It(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return e}const ad=Symbol(""),Cs=Symbol(""),vr=Symbol(""),Ss=Symbol(""),Eo=Symbol("");function Nn(){let t=[];function e(r){return t.push(r),()=>{const o=t.indexOf(r);o>-1&&t.splice(o,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function ve(t,e,n,r,o,a=i=>i()){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((s,l)=>{const c=m=>{m===!1?l(Ze(4,{from:n,to:e})):m instanceof Error?l(m):Vf(m)?l(Ze(2,{from:e,to:m})):(i&&r.enterCallbacks[o]===i&&typeof m=="function"&&i.push(m),s())},f=a(()=>t.call(r&&r.instances[o],e,n,c));let p=Promise.resolve(f);t.length<3&&(p=p.then(c)),p.catch(m=>l(m))})}function Ao(t,e,n,r,o=a=>a()){const a=[];for(const i of t)for(const s in i.components){let l=i.components[s];if(!(e!=="beforeRouteEnter"&&!i.instances[s]))if(es(l)){const c=(l.__vccOpts||l)[e];c&&a.push(ve(c,n,r,i,s,o))}else{let c=l();a.push(()=>c.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${s}" at "${i.path}"`);const p=df(f)?f.default:f;i.mods[s]=f,i.components[s]=p;const m=(p.__vccOpts||p)[e];return m&&ve(m,n,r,i,s,o)()}))}}return a}function Ps(t){const e=Ft(vr),n=Ft(Ss),r=st(()=>{const l=Ce(t.to);return e.resolve(l)}),o=st(()=>{const{matched:l}=r.value,{length:c}=l,f=l[c-1],p=n.matched;if(!f||!p.length)return-1;const m=p.findIndex(Qe.bind(null,f));if(m>-1)return m;const h=Es(l[c-2]);return c>1&&Es(f)===h&&p[p.length-1].path!==h?p.findIndex(Qe.bind(null,l[c-2])):m}),a=st(()=>o.value>-1&&cd(n.params,r.value.params)),i=st(()=>o.value>-1&&o.value===n.matched.length-1&&ls(n.params,r.value.params));function s(l={}){return ld(l)?e[Ce(t.replace)?"replace":"push"](Ce(t.to)).catch(An):Promise.resolve()}return{route:r,href:st(()=>r.value.href),isActive:a,isExactActive:i,navigate:s}}const id=sn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ps,setup(t,{slots:e}){const n=hn(Ps(t)),{options:r}=Ft(vr),o=st(()=>({[As(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[As(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=e.default&&e.default(n);return t.custom?a:vo("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),sd=id;function ld(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function cd(t,e){for(const n in e){const r=e[n],o=t[n];if(typeof r=="string"){if(r!==o)return!1}else if(!It(o)||o.length!==r.length||r.some((a,i)=>a!==o[i]))return!1}return!0}function Es(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const As=(t,e,n)=>t??e??n,ud=sn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=Ft(Eo),o=st(()=>t.route||r.value),a=Ft(Cs,0),i=st(()=>{let c=Ce(a);const{matched:f}=o.value;let p;for(;(p=f[c])&&!p.components;)c++;return c}),s=st(()=>o.value.matched[i.value]);Me(Cs,st(()=>i.value+1)),Me(ad,s),Me(Eo,o);const l=jr();return Te(()=>[l.value,s.value,t.name],([c,f,p],[m,h,P])=>{f&&(f.instances[p]=c,h&&h!==f&&c&&c===m&&(f.leaveGuards.size||(f.leaveGuards=h.leaveGuards),f.updateGuards.size||(f.updateGuards=h.updateGuards))),c&&f&&(!h||!Qe(f,h)||!m)&&(f.enterCallbacks[p]||[]).forEach(S=>S(c))},{flush:"post"}),()=>{const c=o.value,f=t.name,p=s.value,m=p&&p.components[f];if(!m)return js(n.default,{Component:m,route:c});const h=p.props[f],P=h?h===!0?c.params:typeof h=="function"?h(c):h:null,S=vo(m,G({},P,e,{onVnodeUnmounted:L=>{L.component.isUnmounted&&(p.instances[f]=null)},ref:l}));return js(n.default,{Component:S,route:c})||S}}});function js(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const fd=ud;function dd(t){const e=Zf(t.routes,t),n=t.parseQuery||rd,r=t.stringifyQuery||Os,o=t.history,a=Nn(),i=Nn(),s=Nn(),l=Rc(ge);let c=ge;Xe&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=ko.bind(null,b=>""+b),p=ko.bind(null,Cf),m=ko.bind(null,jn);function h(b,R){let A,F;return ps(b)?(A=e.getRecordMatcher(b),F=R):F=b,e.addRoute(F,A)}function P(b){const R=e.getRecordMatcher(b);R&&e.removeRoute(R)}function S(){return e.getRoutes().map(b=>b.record)}function L(b){return!!e.getRecordMatcher(b)}function x(b,R){if(R=G({},R||l.value),typeof b=="string"){const d=So(n,b,R.path),g=e.resolve({path:d.path},R),w=o.createHref(d.fullPath);return G(d,g,{params:m(g.params),hash:jn(d.hash),redirectedFrom:void 0,href:w})}let A;if(b.path!=null)A=G({},b,{path:So(n,b.path,R.path).path});else{const d=G({},b.params);for(const g in d)d[g]==null&&delete d[g];A=G({},b,{params:p(d)}),R.params=p(R.params)}const F=e.resolve(A,R),Y=b.hash||"";F.params=f(m(F.params));const rt=Ef(r,G({},b,{hash:_f(Y),path:F.path})),u=o.createHref(rt);return G({fullPath:rt,hash:Y,query:r===Os?od(b.query):b.query||{}},F,{redirectedFrom:void 0,href:u})}function y(b){return typeof b=="string"?So(n,b,l.value.path):G({},b)}function M(b,R){if(c!==b)return Ze(8,{from:R,to:b})}function E(b){return X(b)}function U(b){return E(G(y(b),{replace:!0}))}function ot(b){const R=b.matched[b.matched.length-1];if(R&&R.redirect){const{redirect:A}=R;let F=typeof A=="function"?A(b):A;return typeof F=="string"&&(F=F.includes("?")||F.includes("#")?F=y(F):{path:F},F.params={}),G({query:b.query,hash:b.hash,params:F.path!=null?{}:b.params},F)}}function X(b,R){const A=c=x(b),F=l.value,Y=b.state,rt=b.force,u=b.replace===!0,d=ot(A);if(d)return X(G(y(d),{state:typeof d=="object"?G({},Y,d.state):Y,force:rt,replace:u}),R||A);const g=A;g.redirectedFrom=R;let w;return!rt&&Af(r,F,A)&&(w=Ze(16,{to:g,from:F}),ue(F,F,!0,!1)),(w?Promise.resolve(w):Gt(g,F)).catch(v=>re(v)?re(v,2)?v:ce(v):Pt(v,g,F)).then(v=>{if(v){if(re(v,2))return X(G({replace:u},y(v.to),{state:typeof v.to=="object"?G({},Y,v.to.state):Y,force:rt}),R||g)}else v=Ie(g,F,!0,u,Y);return Oe(g,F,v),v})}function le(b,R){const A=M(b,R);return A?Promise.reject(A):Promise.resolve()}function ke(b){const R=an.values().next().value;return R&&typeof R.runWithContext=="function"?R.runWithContext(b):b()}function Gt(b,R){let A;const[F,Y,rt]=pd(b,R);A=Ao(F.reverse(),"beforeRouteLeave",b,R);for(const d of F)d.leaveGuards.forEach(g=>{A.push(ve(g,b,R))});const u=le.bind(null,b,R);return A.push(u),zt(A).then(()=>{A=[];for(const d of a.list())A.push(ve(d,b,R));return A.push(u),zt(A)}).then(()=>{A=Ao(Y,"beforeRouteUpdate",b,R);for(const d of Y)d.updateGuards.forEach(g=>{A.push(ve(g,b,R))});return A.push(u),zt(A)}).then(()=>{A=[];for(const d of rt)if(d.beforeEnter)if(It(d.beforeEnter))for(const g of d.beforeEnter)A.push(ve(g,b,R));else A.push(ve(d.beforeEnter,b,R));return A.push(u),zt(A)}).then(()=>(b.matched.forEach(d=>d.enterCallbacks={}),A=Ao(rt,"beforeRouteEnter",b,R,ke),A.push(u),zt(A))).then(()=>{A=[];for(const d of i.list())A.push(ve(d,b,R));return A.push(u),zt(A)}).catch(d=>re(d,8)?d:Promise.reject(d))}function Oe(b,R,A){s.list().forEach(F=>ke(()=>F(b,R,A)))}function Ie(b,R,A,F,Y){const rt=M(b,R);if(rt)return rt;const u=R===ge,d=Xe?history.state:{};A&&(F||u?o.replace(b.fullPath,G({scroll:u&&d&&d.scroll},Y)):o.push(b.fullPath,Y)),l.value=b,ue(b,R,A,u),ce()}let Kt;function Un(){Kt||(Kt=o.listen((b,R,A)=>{if(!Er.listening)return;const F=x(b),Y=ot(F);if(Y){X(G(Y,{replace:!0}),F).catch(An);return}c=F;const rt=l.value;Xe&&Df(us(rt.fullPath,A.delta),gr()),Gt(F,rt).catch(u=>re(u,12)?u:re(u,2)?(X(u.to,F).then(d=>{re(d,20)&&!A.delta&&A.type===Mn.pop&&o.go(-1,!1)}).catch(An),Promise.reject()):(A.delta&&o.go(-A.delta,!1),Pt(u,F,rt))).then(u=>{u=u||Ie(F,rt,!1),u&&(A.delta&&!re(u,8)?o.go(-A.delta,!1):A.type===Mn.pop&&re(u,20)&&o.go(-1,!1)),Oe(F,rt,u)}).catch(An)}))}let ut=Nn(),et=Nn(),H;function Pt(b,R,A){ce(b);const F=et.list();return F.length?F.forEach(Y=>Y(b,R,A)):console.error(b),Promise.reject(b)}function Vn(){return H&&l.value!==ge?Promise.resolve():new Promise((b,R)=>{ut.add([b,R])})}function ce(b){return H||(H=!b,Un(),ut.list().forEach(([R,A])=>b?A(b):R()),ut.reset()),b}function ue(b,R,A,F){const{scrollBehavior:Y}=t;if(!Xe||!Y)return Promise.resolve();const rt=!A&&If(us(b.fullPath,0))||(F||!A)&&history.state&&history.state.scroll||null;return Mr().then(()=>Y(b,R,rt)).then(u=>u&&Lf(u)).catch(u=>Pt(u,b,R))}const Nt=b=>o.go(b);let on;const an=new Set,Er={currentRoute:l,listening:!0,addRoute:h,removeRoute:P,clearRoutes:e.clearRoutes,hasRoute:L,getRoutes:S,resolve:x,options:t,push:E,replace:U,go:Nt,back:()=>Nt(-1),forward:()=>Nt(1),beforeEach:a.add,beforeResolve:i.add,afterEach:s.add,onError:et.add,isReady:Vn,install(b){const R=this;b.component("RouterLink",sd),b.component("RouterView",fd),b.config.globalProperties.$router=R,Object.defineProperty(b.config.globalProperties,"$route",{enumerable:!0,get:()=>Ce(l)}),Xe&&!on&&l.value===ge&&(on=!0,E(o.location).catch(Y=>{}));const A={};for(const Y in ge)Object.defineProperty(A,Y,{get:()=>l.value[Y],enumerable:!0});b.provide(vr,R),b.provide(Ss,Da(A)),b.provide(Eo,l);const F=b.unmount;an.add(b),b.unmount=function(){an.delete(b),an.size<1&&(c=ge,Kt&&Kt(),Kt=null,l.value=ge,on=!1,H=!1),F()}}};function zt(b){return b.reduce((R,A)=>R.then(()=>ke(A)),Promise.resolve())}return Er}function pd(t,e){const n=[],r=[],o=[],a=Math.max(e.matched.length,t.matched.length);for(let i=0;iQe(c,s))?r.push(s):n.push(s));const l=t.matched[i];l&&(e.matched.find(c=>Qe(c,l))||o.push(l))}return[n,r,o]}Kl=function(){return Ft(vr)};const md=[{path:"/",component:()=>sa(()=>import("./index-a62fcf84.js").then(async t=>(await t.__tla,t)).then(t=>t.i),["assets/index-a62fcf84.js","assets/index-27fc030f.css"])}],hd=dd({history:Uf(),routes:md}),Ms=()=>{};let jo={},Rs={},Ns=null,zs={mark:Ms,measure:Ms};try{typeof window<"u"&&(jo=window),typeof document<"u"&&(Rs=document),typeof MutationObserver<"u"&&(Ns=MutationObserver),typeof performance<"u"&&(zs=performance)}catch{}const{userAgent:Fs=""}=jo.navigator||{},be=jo,tt=Rs,Ls=Ns,br=zs;be.document;const oe=!!tt.documentElement&&!!tt.head&&typeof tt.addEventListener=="function"&&typeof tt.createElement=="function",Ds=~Fs.indexOf("MSIE")||~Fs.indexOf("Trident/");var nt="classic",Is="duotone",Ot="sharp",Ct="sharp-duotone",gd=[nt,Is,Ot,Ct],vd={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},Ts={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},bd=["kit"],yd=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,xd=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,wd={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},_d={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},kd={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},Od={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},Cd={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},Sd={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},Bs={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},Pd=["solid","regular","light","thin","duotone","brands"],$s=[1,2,3,4,5,6,7,8,9,10],Ed=$s.concat([11,12,13,14,15,16,17,18,19,20]),zn={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Ad=[...Object.keys(Od),...Pd,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",zn.GROUP,zn.SWAP_OPACITY,zn.PRIMARY,zn.SECONDARY].concat($s.map(t=>"".concat(t,"x"))).concat(Ed.map(t=>"w-".concat(t))),jd={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},Md={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},Rd={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},Us={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const ae="___FONT_AWESOME___",Mo=16,Vs="fa",Ws="svg-inline--fa",Ne="data-fa-i2svg",Ro="data-fa-pseudo-element",Nd="data-fa-pseudo-element-pending",No="data-prefix",zo="data-icon",Hs="fontawesome-i2svg",zd="async",Fd=["HTML","HEAD","STYLE","SCRIPT"],qs=(()=>{try{return!0}catch{return!1}})(),Ys=[nt,Ot,Ct];function Fn(t){return new Proxy(t,{get(e,n){return n in e?e[n]:e[nt]}})}const Gs={...Bs};Gs[nt]={...Bs[nt],...Ts.kit,...Ts["kit-duotone"]};const ze=Fn(Gs),Fo={...Sd};Fo[nt]={...Fo[nt],...Us.kit,...Us["kit-duotone"]};const Ln=Fn(Fo),Lo={...Cd};Lo[nt]={...Lo[nt],...Rd.kit};const Fe=Fn(Lo),Do={...kd};Do[nt]={...Do[nt],...Md.kit};const Ld=Fn(Do),Dd=yd,Ks="fa-layers-text",Id=xd,Td={...vd};Fn(Td);const Bd=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Io=zn,Je=new Set;Object.keys(Ln[nt]).map(Je.add.bind(Je)),Object.keys(Ln[Ot]).map(Je.add.bind(Je)),Object.keys(Ln[Ct]).map(Je.add.bind(Je));const $d=[...bd,...Ad],Dn=be.FontAwesomeConfig||{};function Ud(t){var e=tt.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}function Vd(t){return t===""?!0:t==="false"?!1:t==="true"?!0:t}tt&&typeof tt.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[e,n]=t;const r=Vd(Ud(e));r!=null&&(Dn[n]=r)});const Xs={styleDefault:"solid",familyDefault:"classic",cssPrefix:Vs,replacementClass:Ws,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Dn.familyPrefix&&(Dn.cssPrefix=Dn.familyPrefix);const tn={...Xs,...Dn};tn.autoReplaceSvg||(tn.observeMutations=!1);const z={};Object.keys(Xs).forEach(t=>{Object.defineProperty(z,t,{enumerable:!0,set:function(e){tn[t]=e,In.forEach(n=>n(z))},get:function(){return tn[t]}})}),Object.defineProperty(z,"familyPrefix",{enumerable:!0,set:function(t){tn.cssPrefix=t,In.forEach(e=>e(z))},get:function(){return tn.cssPrefix}}),be.FontAwesomeConfig=z;const In=[];function Wd(t){return In.push(t),()=>{In.splice(In.indexOf(t),1)}}const ye=Mo,Ht={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Hd(t){if(!t||!oe)return;const e=tt.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;const n=tt.head.childNodes;let r=null;for(let o=n.length-1;o>-1;o--){const a=n[o],i=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(r=a)}return tt.head.insertBefore(e,r),t}const qd="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Tn(){let t=12,e="";for(;t-- >0;)e+=qd[Math.random()*62|0];return e}function en(t){const e=[];for(let n=(t||[]).length>>>0;n--;)e[n]=t[n];return e}function To(t){return t.classList?en(t.classList):(t.getAttribute("class")||"").split(" ").filter(e=>e)}function Qs(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Yd(t){return Object.keys(t||{}).reduce((e,n)=>e+"".concat(n,'="').concat(Qs(t[n]),'" '),"").trim()}function yr(t){return Object.keys(t||{}).reduce((e,n)=>e+"".concat(n,": ").concat(t[n].trim(),";"),"")}function Bo(t){return t.size!==Ht.size||t.x!==Ht.x||t.y!==Ht.y||t.rotate!==Ht.rotate||t.flipX||t.flipY}function Gd(t){let{transform:e,containerWidth:n,iconWidth:r}=t;const o={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(e.x*32,", ").concat(e.y*32,") "),i="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),s="rotate(".concat(e.rotate," 0 0)"),l={transform:"".concat(a," ").concat(i," ").concat(s)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:l,path:c}}function Kd(t){let{transform:e,width:n=Mo,height:r=Mo,startCentered:o=!1}=t,a="";return o&&Ds?a+="translate(".concat(e.x/ye-n/2,"em, ").concat(e.y/ye-r/2,"em) "):o?a+="translate(calc(-50% + ".concat(e.x/ye,"em), calc(-50% + ").concat(e.y/ye,"em)) "):a+="translate(".concat(e.x/ye,"em, ").concat(e.y/ye,"em) "),a+="scale(".concat(e.size/ye*(e.flipX?-1:1),", ").concat(e.size/ye*(e.flipY?-1:1),") "),a+="rotate(".concat(e.rotate,"deg) "),a}var Xd=`:root, :host { + --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free"; + --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free"; + --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro"; + --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro"; + --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; + --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; + --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone"; +} + +svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { + overflow: visible; + box-sizing: content-box; +} + +.svg-inline--fa { + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285705em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left { + margin-right: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-pull-right { + margin-left: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + top: 0.25em; +} +.svg-inline--fa.fa-fw { + width: var(--fa-fw-width, 1.25em); +} + +.fa-layers svg.svg-inline--fa { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: 1em; +} +.fa-layers svg.svg-inline--fa { + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + transform: scale(var(--fa-counter-scale, 0.25)); + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: 0.625em; + line-height: 0.1em; + vertical-align: 0.225em; +} + +.fa-xs { + font-size: 0.75em; + line-height: 0.0833333337em; + vertical-align: 0.125em; +} + +.fa-sm { + font-size: 0.875em; + line-height: 0.0714285718em; + vertical-align: 0.0535714295em; +} + +.fa-lg { + font-size: 1.25em; + line-height: 0.05em; + vertical-align: -0.075em; +} + +.fa-xl { + font-size: 1.5em; + line-height: 0.0416666682em; + vertical-align: -0.125em; +} + +.fa-2xl { + font-size: 2em; + line-height: 0.03125em; + vertical-align: -0.1875em; +} + +.fa-fw { + text-align: center; + width: 1.25em; +} + +.fa-ul { + list-style-type: none; + margin-left: var(--fa-li-margin, 2.5em); + padding-left: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + left: calc(-1 * var(--fa-li-width, 2em)); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.08em); + padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); +} + +.fa-pull-left { + float: left; + margin-right: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right { + float: right; + margin-left: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + animation-name: fa-beat; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + animation-name: fa-bounce; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + animation-name: fa-fade; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-beat-fade { + animation-name: fa-beat-fade; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-flip { + animation-name: fa-flip; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + animation-name: fa-shake; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin { + animation-name: fa-spin; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 2s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + animation-name: fa-spin; + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, +.fa-bounce, +.fa-fade, +.fa-beat-fade, +.fa-flip, +.fa-pulse, +.fa-shake, +.fa-spin, +.fa-spin-pulse { + animation-delay: -1ms; + animation-duration: 1ms; + animation-iteration-count: 1; + transition-delay: 0s; + transition-duration: 0s; + } +} +@keyframes fa-beat { + 0%, 90% { + transform: scale(1); + } + 45% { + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@keyframes fa-bounce { + 0% { + transform: scale(1, 1) translateY(0); + } + 10% { + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + } + 50% { + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + transform: scale(1, 1) translateY(0); + } + 100% { + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + transform: scale(1); + } + 50% { + opacity: 1; + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@keyframes fa-flip { + 50% { + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@keyframes fa-shake { + 0% { + transform: rotate(-15deg); + } + 4% { + transform: rotate(15deg); + } + 8%, 24% { + transform: rotate(-18deg); + } + 12%, 28% { + transform: rotate(18deg); + } + 16% { + transform: rotate(-22deg); + } + 20% { + transform: rotate(22deg); + } + 32% { + transform: rotate(-12deg); + } + 36% { + transform: rotate(12deg); + } + 40%, 100% { + transform: rotate(0deg); + } +} +@keyframes fa-spin { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } +} +.fa-rotate-90 { + transform: rotate(90deg); +} + +.fa-rotate-180 { + transform: rotate(180deg); +} + +.fa-rotate-270 { + transform: rotate(270deg); +} + +.fa-flip-horizontal { + transform: scale(-1, 1); +} + +.fa-flip-vertical { + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + transform: scale(-1, -1); +} + +.fa-rotate-by { + transform: rotate(var(--fa-rotate-angle, 0)); +} + +.fa-stack { + display: inline-block; + vertical-align: middle; + height: 2em; + position: relative; + width: 2.5em; +} + +.fa-stack-1x, +.fa-stack-2x { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + z-index: var(--fa-stack-z-index, auto); +} + +.svg-inline--fa.fa-stack-1x { + height: 1em; + width: 1.25em; +} +.svg-inline--fa.fa-stack-2x { + height: 2em; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.sr-only, +.fa-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.sr-only-focusable:not(:focus), +.fa-sr-only-focusable:not(:focus) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.fad.fa-inverse, +.fa-duotone.fa-inverse { + color: var(--fa-inverse, #fff); +}`;function Zs(){const t=Vs,e=Ws,n=z.cssPrefix,r=z.replacementClass;let o=Xd;if(n!==t||r!==e){const a=new RegExp("\\.".concat(t,"\\-"),"g"),i=new RegExp("\\--".concat(t,"\\-"),"g"),s=new RegExp("\\.".concat(e),"g");o=o.replace(a,".".concat(n,"-")).replace(i,"--".concat(n,"-")).replace(s,".".concat(r))}return o}let Js=!1;function $o(){z.autoAddCss&&!Js&&(Hd(Zs()),Js=!0)}var Qd={mixout(){return{dom:{css:Zs,insertCss:$o}}},hooks(){return{beforeDOMElementCreation(){$o()},beforeI2svg(){$o()}}}};const ie=be||{};ie[ae]||(ie[ae]={}),ie[ae].styles||(ie[ae].styles={}),ie[ae].hooks||(ie[ae].hooks={}),ie[ae].shims||(ie[ae].shims=[]);var qt=ie[ae];const tl=[],el=function(){tt.removeEventListener("DOMContentLoaded",el),xr=1,tl.map(t=>t())};let xr=!1;oe&&(xr=(tt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(tt.readyState),xr||tt.addEventListener("DOMContentLoaded",el));function Zd(t){oe&&(xr?setTimeout(t,0):tl.push(t))}function Bn(t){const{tag:e,attributes:n={},children:r=[]}=t;return typeof t=="string"?Qs(t):"<".concat(e," ").concat(Yd(n),">").concat(r.map(Bn).join(""),"")}function nl(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}var Jd=function(t,e){return function(n,r,o,a){return t.call(e,n,r,o,a)}},Uo=function(t,e,n,r){var o=Object.keys(t),a=o.length,i=r!==void 0?Jd(e,r):e,s,l,c;for(n===void 0?(s=1,c=t[o[0]]):(s=0,c=n);s=55296&&o<=56319&&n=55296&&r<=56319&&n>e+1&&(o=t.charCodeAt(e+1),o>=56320&&o<=57343)?(r-55296)*1024+o-56320+65536:r}function ol(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return r.icon?e[r.iconName]=r.icon:e[n]=r,e},{})}function Vo(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,o=ol(e);typeof qt.hooks.addPack=="function"&&!r?qt.hooks.addPack(t,ol(e)):qt.styles[t]={...qt.styles[t]||{},...o},t==="fas"&&Vo("fa",e)}const{styles:Le,shims:np}=qt,rp={[nt]:Object.values(Fe[nt]),[Ot]:Object.values(Fe[Ot]),[Ct]:Object.values(Fe[Ct])};let Wo=null,al={},il={},sl={},ll={},cl={};const op={[nt]:Object.keys(ze[nt]),[Ot]:Object.keys(ze[Ot]),[Ct]:Object.keys(ze[Ct])};function ap(t){return~$d.indexOf(t)}function ip(t,e){const n=e.split("-"),r=n[0],o=n.slice(1).join("-");return r===t&&o!==""&&!ap(o)?o:null}const ul=()=>{const t=r=>Uo(Le,(o,a,i)=>(o[i]=Uo(a,r,{}),o),{});al=t((r,o,a)=>(o[3]&&(r[o[3]]=a),o[2]&&o[2].filter(i=>typeof i=="number").forEach(i=>{r[i.toString(16)]=a}),r)),il=t((r,o,a)=>(r[a]=a,o[2]&&o[2].filter(i=>typeof i=="string").forEach(i=>{r[i]=a}),r)),cl=t((r,o,a)=>{const i=o[2];return r[a]=a,i.forEach(s=>{r[s]=a}),r});const e="far"in Le||z.autoFetchSvg,n=Uo(np,(r,o)=>{const a=o[0];let i=o[1];const s=o[2];return i==="far"&&!e&&(i="fas"),typeof a=="string"&&(r.names[a]={prefix:i,iconName:s}),typeof a=="number"&&(r.unicodes[a.toString(16)]={prefix:i,iconName:s}),r},{names:{},unicodes:{}});sl=n.names,ll=n.unicodes,Wo=wr(z.styleDefault,{family:z.familyDefault})};Wd(t=>{Wo=wr(t.styleDefault,{family:z.familyDefault})}),ul();function Ho(t,e){return(al[t]||{})[e]}function sp(t,e){return(il[t]||{})[e]}function xe(t,e){return(cl[t]||{})[e]}function fl(t){return sl[t]||{prefix:null,iconName:null}}function lp(t){const e=ll[t],n=Ho("fas",t);return e||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function we(){return Wo}const qo=()=>({prefix:null,iconName:null,rest:[]});function wr(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=nt}=e,r=ze[n][t],o=Ln[n][t]||Ln[n][r],a=t in qt.styles?t:null;return o||a||null}const cp={[nt]:Object.keys(Fe[nt]),[Ot]:Object.keys(Fe[Ot]),[Ct]:Object.keys(Fe[Ct])};function _r(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=e,r={[nt]:"".concat(z.cssPrefix,"-").concat(nt),[Ot]:"".concat(z.cssPrefix,"-").concat(Ot),[Ct]:"".concat(z.cssPrefix,"-").concat(Ct)};let o=null,a=nt;const i=gd.filter(l=>l!==Is);i.forEach(l=>{(t.includes(r[l])||t.some(c=>cp[l].includes(c)))&&(a=l)});const s=t.reduce((l,c)=>{const f=ip(z.cssPrefix,c);if(Le[c]?(c=rp[a].includes(c)?Ld[a][c]:c,o=c,l.prefix=c):op[a].indexOf(c)>-1?(o=c,l.prefix=wr(c,{family:a})):f?l.iconName=f:c!==z.replacementClass&&!i.some(p=>c===r[p])&&l.rest.push(c),!n&&l.prefix&&l.iconName){const p=o==="fa"?fl(l.iconName):{},m=xe(l.prefix,l.iconName);p.prefix&&(o=null),l.iconName=p.iconName||m||l.iconName,l.prefix=p.prefix||l.prefix,l.prefix==="far"&&!Le.far&&Le.fas&&!z.autoFetchSvg&&(l.prefix="fas")}return l},qo());return(t.includes("fa-brands")||t.includes("fab"))&&(s.prefix="fab"),(t.includes("fa-duotone")||t.includes("fad"))&&(s.prefix="fad"),!s.prefix&&a===Ot&&(Le.fass||z.autoFetchSvg)&&(s.prefix="fass",s.iconName=xe(s.prefix,s.iconName)||s.iconName),!s.prefix&&a===Ct&&(Le.fasds||z.autoFetchSvg)&&(s.prefix="fasds",s.iconName=xe(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||o==="fa")&&(s.prefix=we()||"fas"),s}class up{constructor(){this.definitions={}}add(){for(var e=arguments.length,n=new Array(e),r=0;r{this.definitions[a]={...this.definitions[a]||{},...o[a]},Vo(a,o[a]);const i=Fe[nt][a];i&&Vo(i,o[a]),ul()})}reset(){this.definitions={}}_pullDefinitions(e,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(o=>{const{prefix:a,iconName:i,icon:s}=r[o],l=s[2];e[a]||(e[a]={}),l.length>0&&l.forEach(c=>{typeof c=="string"&&(e[a][c]=s)}),e[a][i]=s}),e}}let dl=[],nn={};const rn={},fp=Object.keys(rn);function dp(t,e){let{mixoutsTo:n}=e;return dl=t,nn={},Object.keys(rn).forEach(r=>{fp.indexOf(r)===-1&&delete rn[r]}),dl.forEach(r=>{const o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(a=>{typeof o[a]=="function"&&(n[a]=o[a]),typeof o[a]=="object"&&Object.keys(o[a]).forEach(i=>{n[a]||(n[a]={}),n[a][i]=o[a][i]})}),r.hooks){const a=r.hooks();Object.keys(a).forEach(i=>{nn[i]||(nn[i]=[]),nn[i].push(a[i])})}r.provides&&r.provides(rn)}),n}function Yo(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o{e=a.apply(null,[e,...r])}),e}function De(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r{o.apply(null,n)})}function _e(){const t=arguments[0],e=Array.prototype.slice.call(arguments,1);return rn[t]?rn[t].apply(null,e):void 0}function Go(t){t.prefix==="fa"&&(t.prefix="fas");let{iconName:e}=t;const n=t.prefix||we();if(e)return e=xe(n,e)||e,nl(pl.definitions,n,e)||nl(qt.styles,n,e)}const pl=new up,pp=()=>{z.autoReplaceSvg=!1,z.observeMutations=!1,De("noAuto")},mp={i2svg:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return oe?(De("beforeI2svg",t),_e("pseudoElements2svg",t),_e("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:e}=t;z.autoReplaceSvg===!1&&(z.autoReplaceSvg=!0),z.observeMutations=!0,Zd(()=>{gp({autoReplaceSvgRoot:e}),De("watch",t)})}},hp={icon:t=>{if(t===null)return null;if(typeof t=="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:xe(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){const e=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],n=wr(t[0]);return{prefix:n,iconName:xe(n,e)||e}}if(typeof t=="string"&&(t.indexOf("".concat(z.cssPrefix,"-"))>-1||t.match(Dd))){const e=_r(t.split(" "),{skipLookups:!0});return{prefix:e.prefix||we(),iconName:xe(e.prefix,e.iconName)||e.iconName}}if(typeof t=="string"){const e=we();return{prefix:e,iconName:xe(e,t)||t}}}},St={noAuto:pp,config:z,dom:mp,parse:hp,library:pl,findIconDefinition:Go,toHtml:Bn},gp=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:e=tt}=t;(Object.keys(qt.styles).length>0||z.autoFetchSvg)&&oe&&z.autoReplaceSvg&&St.dom.i2svg({node:e})};function kr(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(n=>Bn(n))}}),Object.defineProperty(t,"node",{get:function(){if(!oe)return;const n=tt.createElement("div");return n.innerHTML=t.html,n.children}}),t}function vp(t){let{children:e,main:n,mask:r,attributes:o,styles:a,transform:i}=t;if(Bo(i)&&n.found&&!r.found){const{width:s,height:l}=n,c={x:s/l/2,y:.5};o.style=yr({...a,"transform-origin":"".concat(c.x+i.x/16,"em ").concat(c.y+i.y/16,"em")})}return[{tag:"svg",attributes:o,children:e}]}function bp(t){let{prefix:e,iconName:n,children:r,attributes:o,symbol:a}=t;const i=a===!0?"".concat(e,"-").concat(z.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...o,id:i},children:r}]}]}function Ko(t){const{icons:{main:e,mask:n},prefix:r,iconName:o,transform:a,symbol:i,title:s,maskId:l,titleId:c,extra:f,watchable:p=!1}=t,{width:m,height:h}=n.found?n:e,P=r==="fak",S=[z.replacementClass,o?"".concat(z.cssPrefix,"-").concat(o):""].filter(U=>f.classes.indexOf(U)===-1).filter(U=>U!==""||!!U).concat(f.classes).join(" ");let L={children:[],attributes:{...f.attributes,"data-prefix":r,"data-icon":o,class:S,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(h)}};const x=P&&!~f.classes.indexOf("fa-fw")?{width:"".concat(m/h*16*.0625,"em")}:{};p&&(L.attributes[Ne]=""),s&&(L.children.push({tag:"title",attributes:{id:L.attributes["aria-labelledby"]||"title-".concat(c||Tn())},children:[s]}),delete L.attributes.title);const y={...L,prefix:r,iconName:o,main:e,mask:n,maskId:l,transform:a,symbol:i,styles:{...x,...f.styles}},{children:M,attributes:E}=n.found&&e.found?_e("generateAbstractMask",y)||{children:[],attributes:{}}:_e("generateAbstractIcon",y)||{children:[],attributes:{}};return y.children=M,y.attributes=E,i?bp(y):vp(y)}function ml(t){const{content:e,width:n,height:r,transform:o,title:a,extra:i,watchable:s=!1}=t,l={...i.attributes,...a?{title:a}:{},class:i.classes.join(" ")};s&&(l[Ne]="");const c={...i.styles};Bo(o)&&(c.transform=Kd({transform:o,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const f=yr(c);f.length>0&&(l.style=f);const p=[];return p.push({tag:"span",attributes:l,children:[e]}),a&&p.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),p}function yp(t){const{content:e,title:n,extra:r}=t,o={...r.attributes,...n?{title:n}:{},class:r.classes.join(" ")},a=yr(r.styles);a.length>0&&(o.style=a);const i=[];return i.push({tag:"span",attributes:o,children:[e]}),n&&i.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),i}const{styles:Xo}=qt;function Qo(t){const e=t[0],n=t[1],[r]=t.slice(4);let o=null;return Array.isArray(r)?o={tag:"g",attributes:{class:"".concat(z.cssPrefix,"-").concat(Io.GROUP)},children:[{tag:"path",attributes:{class:"".concat(z.cssPrefix,"-").concat(Io.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(z.cssPrefix,"-").concat(Io.PRIMARY),fill:"currentColor",d:r[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:e,height:n,icon:o}}const xp={found:!1,width:512,height:512};function wp(t,e){!qs&&!z.showMissingIcons&&t&&console.error('Icon with name "'.concat(t,'" and prefix "').concat(e,'" is missing.'))}function Zo(t,e){let n=e;return e==="fa"&&z.styleDefault!==null&&(e=we()),new Promise((r,o)=>{if(n==="fa"){const a=fl(t)||{};t=a.iconName||t,e=a.prefix||e}if(t&&e&&Xo[e]&&Xo[e][t]){const a=Xo[e][t];return r(Qo(a))}wp(t,e),r({...xp,icon:z.showMissingIcons&&t?_e("missingIconAbstract")||{}:{}})})}const hl=()=>{},Jo=z.measurePerformance&&br&&br.mark&&br.measure?br:{mark:hl,measure:hl},$n='FA "6.6.0"',_p=t=>(Jo.mark("".concat($n," ").concat(t," begins")),()=>gl(t)),gl=t=>{Jo.mark("".concat($n," ").concat(t," ends")),Jo.measure("".concat($n," ").concat(t),"".concat($n," ").concat(t," begins"),"".concat($n," ").concat(t," ends"))};var ta={begin:_p,end:gl};const Or=()=>{};function vl(t){return typeof(t.getAttribute?t.getAttribute(Ne):null)=="string"}function kp(t){const e=t.getAttribute?t.getAttribute(No):null,n=t.getAttribute?t.getAttribute(zo):null;return e&&n}function Op(t){return t&&t.classList&&t.classList.contains&&t.classList.contains(z.replacementClass)}function Cp(){return z.autoReplaceSvg===!0?Cr.replace:Cr[z.autoReplaceSvg]||Cr.replace}function Sp(t){return tt.createElementNS("http://www.w3.org/2000/svg",t)}function Pp(t){return tt.createElement(t)}function bl(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=t.tag==="svg"?Sp:Pp}=e;if(typeof t=="string")return tt.createTextNode(t);const r=n(t.tag);return Object.keys(t.attributes||[]).forEach(function(o){r.setAttribute(o,t.attributes[o])}),(t.children||[]).forEach(function(o){r.appendChild(bl(o,{ceFn:n}))}),r}function Ep(t){let e=" ".concat(t.outerHTML," ");return e="".concat(e,"Font Awesome fontawesome.com "),e}const Cr={replace:function(t){const e=t[0];if(e.parentNode)if(t[1].forEach(n=>{e.parentNode.insertBefore(bl(n),e)}),e.getAttribute(Ne)===null&&z.keepOriginalSource){let n=tt.createComment(Ep(e));e.parentNode.replaceChild(n,e)}else e.remove()},nest:function(t){const e=t[0],n=t[1];if(~To(e).indexOf(z.replacementClass))return Cr.replace(t);const r=new RegExp("".concat(z.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const a=n[0].attributes.class.split(" ").reduce((i,s)=>(s===z.replacementClass||s.match(r)?i.toSvg.push(s):i.toNode.push(s),i),{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?e.removeAttribute("class"):e.setAttribute("class",a.toNode.join(" "))}const o=n.map(a=>Bn(a)).join(` +`);e.setAttribute(Ne,""),e.innerHTML=o}};function yl(t){t()}function xl(t,e){const n=typeof e=="function"?e:Or;if(t.length===0)n();else{let r=yl;z.mutateApproach===zd&&(r=be.requestAnimationFrame||yl),r(()=>{const o=Cp(),a=ta.begin("mutate");t.map(o),a(),n()})}}let ea=!1;function wl(){ea=!0}function na(){ea=!1}let Sr=null;function _l(t){if(!Ls||!z.observeMutations)return;const{treeCallback:e=Or,nodeCallback:n=Or,pseudoElementsCallback:r=Or,observeMutationsRoot:o=tt}=t;Sr=new Ls(a=>{if(ea)return;const i=we();en(a).forEach(s=>{if(s.type==="childList"&&s.addedNodes.length>0&&!vl(s.addedNodes[0])&&(z.searchPseudoElements&&r(s.target),e(s.target)),s.type==="attributes"&&s.target.parentNode&&z.searchPseudoElements&&r(s.target.parentNode),s.type==="attributes"&&vl(s.target)&&~Bd.indexOf(s.attributeName))if(s.attributeName==="class"&&kp(s.target)){const{prefix:l,iconName:c}=_r(To(s.target));s.target.setAttribute(No,l||i),c&&s.target.setAttribute(zo,c)}else Op(s.target)&&n(s.target)})}),oe&&Sr.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Ap(){Sr&&Sr.disconnect()}function jp(t){const e=t.getAttribute("style");let n=[];return e&&(n=e.split(";").reduce((r,o)=>{const a=o.split(":"),i=a[0],s=a.slice(1);return i&&s.length>0&&(r[i]=s.join(":").trim()),r},{})),n}function Mp(t){const e=t.getAttribute("data-prefix"),n=t.getAttribute("data-icon"),r=t.innerText!==void 0?t.innerText.trim():"";let o=_r(To(t));return o.prefix||(o.prefix=we()),e&&n&&(o.prefix=e,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=sp(o.prefix,t.innerText)||Ho(o.prefix,rl(t.innerText))),!o.iconName&&z.autoFetchSvg&&t.firstChild&&t.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=t.firstChild.data)),o}function Rp(t){const e=en(t.attributes).reduce((o,a)=>(o.name!=="class"&&o.name!=="style"&&(o[a.name]=a.value),o),{}),n=t.getAttribute("title"),r=t.getAttribute("data-fa-title-id");return z.autoA11y&&(n?e["aria-labelledby"]="".concat(z.replacementClass,"-title-").concat(r||Tn()):(e["aria-hidden"]="true",e.focusable="false")),e}function Np(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Ht,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function kl(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=Mp(t),a=Rp(t),i=Yo("parseNodeAttributes",{},t);let s=e.styleParser?jp(t):[];return{iconName:n,title:t.getAttribute("title"),titleId:t.getAttribute("data-fa-title-id"),prefix:r,transform:Ht,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:s,attributes:a},...i}}const{styles:zp}=qt;function Ol(t){const e=z.autoReplaceSvg==="nest"?kl(t,{styleParser:!1}):kl(t);return~e.extra.classes.indexOf(Ks)?_e("generateLayersText",t,e):_e("generateSvgReplacementMutation",t,e)}let Yt=new Set;Ys.map(t=>{Yt.add("fa-".concat(t))}),Object.keys(ze[nt]).map(Yt.add.bind(Yt)),Object.keys(ze[Ot]).map(Yt.add.bind(Yt)),Object.keys(ze[Ct]).map(Yt.add.bind(Yt)),Yt=[...Yt];function Cl(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!oe)return Promise.resolve();const n=tt.documentElement.classList,r=f=>n.add("".concat(Hs,"-").concat(f)),o=f=>n.remove("".concat(Hs,"-").concat(f)),a=z.autoFetchSvg?Yt:Ys.map(f=>"fa-".concat(f)).concat(Object.keys(zp));a.includes("fa")||a.push("fa");const i=[".".concat(Ks,":not([").concat(Ne,"])")].concat(a.map(f=>".".concat(f,":not([").concat(Ne,"])"))).join(", ");if(i.length===0)return Promise.resolve();let s=[];try{s=en(t.querySelectorAll(i))}catch{}if(s.length>0)r("pending"),o("complete");else return Promise.resolve();const l=ta.begin("onTree"),c=s.reduce((f,p)=>{try{const m=Ol(p);m&&f.push(m)}catch(m){qs||m.name==="MissingIcon"&&console.error(m)}return f},[]);return new Promise((f,p)=>{Promise.all(c).then(m=>{xl(m,()=>{r("active"),r("complete"),o("pending"),typeof e=="function"&&e(),l(),f()})}).catch(m=>{l(),p(m)})})}function Fp(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ol(t).then(n=>{n&&xl([n],e)})}function Lp(t){return function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(e||{}).icon?e:Go(e||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:Go(o||{})),t(r,{...n,mask:o})}}const Dp=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Ht,symbol:r=!1,mask:o=null,maskId:a=null,title:i=null,titleId:s=null,classes:l=[],attributes:c={},styles:f={}}=e;if(!t)return;const{prefix:p,iconName:m,icon:h}=t;return kr({type:"icon",...t},()=>(De("beforeDOMElementCreation",{iconDefinition:t,params:e}),z.autoA11y&&(i?c["aria-labelledby"]="".concat(z.replacementClass,"-title-").concat(s||Tn()):(c["aria-hidden"]="true",c.focusable="false")),Ko({icons:{main:Qo(h),mask:o?Qo(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:p,iconName:m,transform:{...Ht,...n},symbol:r,title:i,maskId:a,titleId:s,extra:{attributes:c,styles:f,classes:l}})))};var Ip={mixout(){return{icon:Lp(Dp)}},hooks(){return{mutationObserverCallbacks(t){return t.treeCallback=Cl,t.nodeCallback=Fp,t}}},provides(t){t.i2svg=function(e){const{node:n=tt,callback:r=()=>{}}=e;return Cl(n,r)},t.generateSvgReplacementMutation=function(e,n){const{iconName:r,title:o,titleId:a,prefix:i,transform:s,symbol:l,mask:c,maskId:f,extra:p}=n;return new Promise((m,h)=>{Promise.all([Zo(r,i),c.iconName?Zo(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(P=>{let[S,L]=P;m([e,Ko({icons:{main:S,mask:L},prefix:i,iconName:r,transform:s,symbol:l,maskId:f,title:o,titleId:a,extra:p,watchable:!0})])}).catch(h)})},t.generateAbstractIcon=function(e){let{children:n,attributes:r,main:o,transform:a,styles:i}=e;const s=yr(i);s.length>0&&(r.style=s);let l;return Bo(a)&&(l=_e("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),n.push(l||o.icon),{children:n,attributes:r}}}},Tp={mixout(){return{layer(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=e;return kr({type:"layer"},()=>{De("beforeDOMElementCreation",{assembler:t,params:e});let r=[];return t(o=>{Array.isArray(o)?o.map(a=>{r=r.concat(a.abstract)}):r=r.concat(o.abstract)}),[{tag:"span",attributes:{class:["".concat(z.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},Bp={mixout(){return{counter(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:o={},styles:a={}}=e;return kr({type:"counter",content:t},()=>(De("beforeDOMElementCreation",{content:t,params:e}),yp({content:t.toString(),title:n,extra:{attributes:o,styles:a,classes:["".concat(z.cssPrefix,"-layers-counter"),...r]}})))}}}},$p={mixout(){return{text(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Ht,title:r=null,classes:o=[],attributes:a={},styles:i={}}=e;return kr({type:"text",content:t},()=>(De("beforeDOMElementCreation",{content:t,params:e}),ml({content:t,transform:{...Ht,...n},title:r,extra:{attributes:a,styles:i,classes:["".concat(z.cssPrefix,"-layers-text"),...o]}})))}}},provides(t){t.generateLayersText=function(e,n){const{title:r,transform:o,extra:a}=n;let i=null,s=null;if(Ds){const l=parseInt(getComputedStyle(e).fontSize,10),c=e.getBoundingClientRect();i=c.width/l,s=c.height/l}return z.autoA11y&&!r&&(a.attributes["aria-hidden"]="true"),Promise.resolve([e,ml({content:e.innerHTML,width:i,height:s,transform:o,title:r,extra:a,watchable:!0})])}}};const Up=new RegExp('"',"ug"),Sl=[1105920,1112319],Pl={FontAwesome:{normal:"fas",400:"fas"},..._d,...wd,...jd},ra=Object.keys(Pl).reduce((t,e)=>(t[e.toLowerCase()]=Pl[e],t),{}),Vp=Object.keys(ra).reduce((t,e)=>{const n=ra[e];return t[e]=n[900]||[...Object.entries(n)][0][1],t},{});function Wp(t){const e=t.replace(Up,""),n=ep(e,0),r=n>=Sl[0]&&n<=Sl[1],o=e.length===2?e[0]===e[1]:!1;return{value:rl(o?e[0]:e),isSecondary:r||o}}function Hp(t,e){const n=t.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(e),o=isNaN(r)?"normal":r;return(ra[n]||{})[o]||Vp[n]}function El(t,e){const n="".concat(Nd).concat(e.replace(":","-"));return new Promise((r,o)=>{if(t.getAttribute(n)!==null)return r();const a=en(t.children).filter(p=>p.getAttribute(Ro)===e)[0],i=be.getComputedStyle(t,e),s=i.getPropertyValue("font-family"),l=s.match(Id),c=i.getPropertyValue("font-weight"),f=i.getPropertyValue("content");if(a&&!l)return t.removeChild(a),r();if(l&&f!=="none"&&f!==""){const p=i.getPropertyValue("content");let m=Hp(s,c);const{value:h,isSecondary:P}=Wp(p),S=l[0].startsWith("FontAwesome");let L=Ho(m,h),x=L;if(S){const y=lp(h);y.iconName&&y.prefix&&(L=y.iconName,m=y.prefix)}if(L&&!P&&(!a||a.getAttribute(No)!==m||a.getAttribute(zo)!==x)){t.setAttribute(n,x),a&&t.removeChild(a);const y=Np(),{extra:M}=y;M.attributes[Ro]=e,Zo(L,m).then(E=>{const U=Ko({...y,icons:{main:E,mask:qo()},prefix:m,iconName:x,extra:M,watchable:!0}),ot=tt.createElementNS("http://www.w3.org/2000/svg","svg");e==="::before"?t.insertBefore(ot,t.firstChild):t.appendChild(ot),ot.outerHTML=U.map(X=>Bn(X)).join(` +`),t.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function qp(t){return Promise.all([El(t,"::before"),El(t,"::after")])}function Yp(t){return t.parentNode!==document.head&&!~Fd.indexOf(t.tagName.toUpperCase())&&!t.getAttribute(Ro)&&(!t.parentNode||t.parentNode.tagName!=="svg")}function Al(t){if(oe)return new Promise((e,n)=>{const r=en(t.querySelectorAll("*")).filter(Yp).map(qp),o=ta.begin("searchPseudoElements");wl(),Promise.all(r).then(()=>{o(),na(),e()}).catch(()=>{o(),na(),n()})})}var Gp={hooks(){return{mutationObserverCallbacks(t){return t.pseudoElementsCallback=Al,t}}},provides(t){t.pseudoElements2svg=function(e){const{node:n=tt}=e;z.searchPseudoElements&&Al(n)}}};let jl=!1;var Kp={mixout(){return{dom:{unwatch(){wl(),jl=!0}}}},hooks(){return{bootstrap(){_l(Yo("mutationObserverCallbacks",{}))},noAuto(){Ap()},watch(t){const{observeMutationsRoot:e}=t;jl?na():_l(Yo("mutationObserverCallbacks",{observeMutationsRoot:e}))}}}};const Ml=t=>{let e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce((n,r)=>{const o=r.toLowerCase().split("-"),a=o[0];let i=o.slice(1).join("-");if(a&&i==="h")return n.flipX=!0,n;if(a&&i==="v")return n.flipY=!0,n;if(i=parseFloat(i),isNaN(i))return n;switch(a){case"grow":n.size=n.size+i;break;case"shrink":n.size=n.size-i;break;case"left":n.x=n.x-i;break;case"right":n.x=n.x+i;break;case"up":n.y=n.y-i;break;case"down":n.y=n.y+i;break;case"rotate":n.rotate=n.rotate+i;break}return n},e)};var Xp={mixout(){return{parse:{transform:t=>Ml(t)}}},hooks(){return{parseNodeAttributes(t,e){const n=e.getAttribute("data-fa-transform");return n&&(t.transform=Ml(n)),t}}},provides(t){t.generateAbstractTransformGrouping=function(e){let{main:n,transform:r,containerWidth:o,iconWidth:a}=e;const i={transform:"translate(".concat(o/2," 256)")},s="translate(".concat(r.x*32,", ").concat(r.y*32,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),c="rotate(".concat(r.rotate," 0 0)"),f={transform:"".concat(s," ").concat(l," ").concat(c)},p={transform:"translate(".concat(a/2*-1," -256)")},m={outer:i,inner:f,path:p};return{tag:"g",attributes:{...m.outer},children:[{tag:"g",attributes:{...m.inner},children:[{tag:n.icon.tag,children:n.icon.children,attributes:{...n.icon.attributes,...m.path}}]}]}}}};const oa={x:0,y:0,width:"100%",height:"100%"};function Rl(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function Qp(t){return t.tag==="g"?t.children:[t]}var Zp={hooks(){return{parseNodeAttributes(t,e){const n=e.getAttribute("data-fa-mask"),r=n?_r(n.split(" ").map(o=>o.trim())):qo();return r.prefix||(r.prefix=we()),t.mask=r,t.maskId=e.getAttribute("data-fa-mask-id"),t}}},provides(t){t.generateAbstractMask=function(e){let{children:n,attributes:r,main:o,mask:a,maskId:i,transform:s}=e;const{width:l,icon:c}=o,{width:f,icon:p}=a,m=Gd({transform:s,containerWidth:f,iconWidth:l}),h={tag:"rect",attributes:{...oa,fill:"white"}},P=c.children?{children:c.children.map(Rl)}:{},S={tag:"g",attributes:{...m.inner},children:[Rl({tag:c.tag,attributes:{...c.attributes,...m.path},...P})]},L={tag:"g",attributes:{...m.outer},children:[S]},x="mask-".concat(i||Tn()),y="clip-".concat(i||Tn()),M={tag:"mask",attributes:{...oa,id:x,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[h,L]},E={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:Qp(p)},M]};return n.push(E,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(x,")"),...oa}}),{children:n,attributes:r}}}},Jp={provides(t){let e=!1;be.matchMedia&&(e=be.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:{...r,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const a={...o,attributeName:"opacity"},i={tag:"circle",attributes:{...r,cx:"256",cy:"364",r:"28"},children:[]};return e||i.children.push({tag:"animate",attributes:{...o,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...a,values:"1;0;1;1;0;1;"}}),n.push(i),n.push({tag:"path",attributes:{...r,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:e?[]:[{tag:"animate",attributes:{...a,values:"1;0;0;0;0;1;"}}]}),e||n.push({tag:"path",attributes:{...r,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...a,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},tm={hooks(){return{parseNodeAttributes(t,e){const n=e.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return t.symbol=r,t}}}},em=[Qd,Ip,Tp,Bp,$p,Gp,Kp,Xp,Zp,Jp,tm];dp(em,{mixoutsTo:St}),St.noAuto,St.config;const nm=St.library;St.dom;const aa=St.parse;St.findIconDefinition,St.toHtml;const rm=St.icon;St.layer,St.text,St.counter;function Nl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function se(t){for(var e=1;e=0)continue;n[r]=t[r]}return n}function sm(t,e){if(t==null)return{};var n=im(t,e),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var lm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zl={exports:{}};(function(t){(function(e){var n=function(x,y,M){if(!c(y)||p(y)||m(y)||h(y)||l(y))return y;var E,U=0,ot=0;if(f(y))for(E=[],ot=y.length;U1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return Fl(l)}),o=Object.keys(t.attributes||{}).reduce(function(l,c){var f=t.attributes[c];switch(c){case"class":l.class=dm(f);break;case"style":l.style=fm(f);break;default:l.attrs[c]=f}return l},{attrs:{},class:{},style:{}});n.class;var a=n.style,i=a===void 0?{}:a,s=sm(n,um);return vo(t.tag,se(se(se({},e),{},{class:o.class,style:se(se({},o.style),i)},o.attrs),s),r)}var Ll=!1;try{Ll=!0}catch{}function pm(){if(!Ll&&console&&typeof console.error=="function"){var t;(t=console).error.apply(t,arguments)}}function ia(t,e){return Array.isArray(e)&&e.length>0||!Array.isArray(e)&&e?yt({},t,e):{}}function mm(t){var e,n=(e={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-li":t.listItem,"fa-inverse":t.inverse,"fa-flip":t.flip===!0,"fa-flip-horizontal":t.flip==="horizontal"||t.flip==="both","fa-flip-vertical":t.flip==="vertical"||t.flip==="both"},yt(yt(yt(yt(yt(yt(yt(yt(yt(yt(e,"fa-".concat(t.size),t.size!==null),"fa-rotate-".concat(t.rotation),t.rotation!==null),"fa-pull-".concat(t.pull),t.pull!==null),"fa-swap-opacity",t.swapOpacity),"fa-bounce",t.bounce),"fa-shake",t.shake),"fa-beat",t.beat),"fa-fade",t.fade),"fa-beat-fade",t.beatFade),"fa-flash",t.flash),yt(yt(e,"fa-spin-pulse",t.spinPulse),"fa-spin-reverse",t.spinReverse));return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}function Dl(t){if(t&&Pr(t)==="object"&&t.prefix&&t.iconName&&t.icon)return t;if(aa.icon)return aa.icon(t);if(t===null)return null;if(Pr(t)==="object"&&t.prefix&&t.iconName)return t;if(Array.isArray(t)&&t.length===2)return{prefix:t[0],iconName:t[1]};if(typeof t=="string")return{prefix:"fas",iconName:t}}var hm=sn({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,e){var n=e.attrs,r=st(function(){return Dl(t.icon)}),o=st(function(){return ia("classes",mm(t))}),a=st(function(){return ia("transform",typeof t.transform=="string"?aa.transform(t.transform):t.transform)}),i=st(function(){return ia("mask",Dl(t.mask))}),s=st(function(){return rm(r.value,se(se(se(se({},o.value),a.value),i.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});Te(s,function(c){if(!c)return pm("Could not find one or more icon(s)",r.value,i.value)},{immediate:!0});var l=st(function(){return s.value?Fl(s.value.abstract[0],{},n):null});return function(){return l.value}}}),Il={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fab",n="apple",r=384,o=512,a=[],i="f179",s="M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z";t.definition={prefix:e,iconName:n,icon:[r,o,a,i,s]},t.faApple=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=o,t.ligatures=a,t.unicode=i,t.svgPathData=s,t.aliases=a})(Il);var Tl={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fab",n="windows",r=448,o=512,a=[],i="f17a",s="M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z";t.definition={prefix:e,iconName:n,icon:[r,o,a,i,s]},t.faWindows=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=o,t.ligatures=a,t.unicode=i,t.svgPathData=s,t.aliases=a})(Tl);var Bl={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fab",n="linux",r=448,o=512,a=[],i="f17c",s="M220.8 123.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5.2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4.2-.8.7-.6 1.1.3 1.3 2.3 1.1 3.4 1.7zm-21.9 1.7c1.2 0 2-1.2 3-1.7 1.1-.6 3.1-.4 3.5-1.6.2-.4-.2-.9-.6-1.1-1.6-.9-3.8-.6-5.5.1-1.3.6-3.4 1.5-3.2 2.9.1 1 1.8 1.5 2.8 1.4zM420 403.8c-3.6-4-5.3-11.6-7.2-19.7-1.8-8.1-3.9-16.8-10.5-22.4-1.3-1.1-2.6-2.1-4-2.9-1.3-.8-2.7-1.5-4.1-2 9.2-27.3 5.6-54.5-3.7-79.1-11.4-30.1-31.3-56.4-46.5-74.4-17.1-21.5-33.7-41.9-33.4-72C311.1 85.4 315.7.1 234.8 0 132.4-.2 158 103.4 156.9 135.2c-1.7 23.4-6.4 41.8-22.5 64.7-18.9 22.5-45.5 58.8-58.1 96.7-6 17.9-8.8 36.1-6.2 53.3-6.5 5.8-11.4 14.7-16.6 20.2-4.2 4.3-10.3 5.9-17 8.3s-14 6-18.5 14.5c-2.1 3.9-2.8 8.1-2.8 12.4 0 3.9.6 7.9 1.2 11.8 1.2 8.1 2.5 15.7.8 20.8-5.2 14.4-5.9 24.4-2.2 31.7 3.8 7.3 11.4 10.5 20.1 12.3 17.3 3.6 40.8 2.7 59.3 12.5 19.8 10.4 39.9 14.1 55.9 10.4 11.6-2.6 21.1-9.6 25.9-20.2 12.5-.1 26.3-5.4 48.3-6.6 14.9-1.2 33.6 5.3 55.1 4.1.6 2.3 1.4 4.6 2.5 6.7v.1c8.3 16.7 23.8 24.3 40.3 23 16.6-1.3 34.1-11 48.3-27.9 13.6-16.4 36-23.2 50.9-32.2 7.4-4.5 13.4-10.1 13.9-18.3.4-8.2-4.4-17.3-15.5-29.7zM223.7 87.3c9.8-22.2 34.2-21.8 44-.4 6.5 14.2 3.6 30.9-4.3 40.4-1.6-.8-5.9-2.6-12.6-4.9 1.1-1.2 3.1-2.7 3.9-4.6 4.8-11.8-.2-27-9.1-27.3-7.3-.5-13.9 10.8-11.8 23-4.1-2-9.4-3.5-13-4.4-1-6.9-.3-14.6 2.9-21.8zM183 75.8c10.1 0 20.8 14.2 19.1 33.5-3.5 1-7.1 2.5-10.2 4.6 1.2-8.9-3.3-20.1-9.6-19.6-8.4.7-9.8 21.2-1.8 28.1 1 .8 1.9-.2-5.9 5.5-15.6-14.6-10.5-52.1 8.4-52.1zm-13.6 60.7c6.2-4.6 13.6-10 14.1-10.5 4.7-4.4 13.5-14.2 27.9-14.2 7.1 0 15.6 2.3 25.9 8.9 6.3 4.1 11.3 4.4 22.6 9.3 8.4 3.5 13.7 9.7 10.5 18.2-2.6 7.1-11 14.4-22.7 18.1-11.1 3.6-19.8 16-38.2 14.9-3.9-.2-7-1-9.6-2.1-8-3.5-12.2-10.4-20-15-8.6-4.8-13.2-10.4-14.7-15.3-1.4-4.9 0-9 4.2-12.3zm3.3 334c-2.7 35.1-43.9 34.4-75.3 18-29.9-15.8-68.6-6.5-76.5-21.9-2.4-4.7-2.4-12.7 2.6-26.4v-.2c2.4-7.6.6-16-.6-23.9-1.2-7.8-1.8-15 .9-20 3.5-6.7 8.5-9.1 14.8-11.3 10.3-3.7 11.8-3.4 19.6-9.9 5.5-5.7 9.5-12.9 14.3-18 5.1-5.5 10-8.1 17.7-6.9 8.1 1.2 15.1 6.8 21.9 16l19.6 35.6c9.5 19.9 43.1 48.4 41 68.9zm-1.4-25.9c-4.1-6.6-9.6-13.6-14.4-19.6 7.1 0 14.2-2.2 16.7-8.9 2.3-6.2 0-14.9-7.4-24.9-13.5-18.2-38.3-32.5-38.3-32.5-13.5-8.4-21.1-18.7-24.6-29.9s-3-23.3-.3-35.2c5.2-22.9 18.6-45.2 27.2-59.2 2.3-1.7.8 3.2-8.7 20.8-8.5 16.1-24.4 53.3-2.6 82.4.6-20.7 5.5-41.8 13.8-61.5 12-27.4 37.3-74.9 39.3-112.7 1.1.8 4.6 3.2 6.2 4.1 4.6 2.7 8.1 6.7 12.6 10.3 12.4 10 28.5 9.2 42.4 1.2 6.2-3.5 11.2-7.5 15.9-9 9.9-3.1 17.8-8.6 22.3-15 7.7 30.4 25.7 74.3 37.2 95.7 6.1 11.4 18.3 35.5 23.6 64.6 3.3-.1 7 .4 10.9 1.4 13.8-35.7-11.7-74.2-23.3-84.9-4.7-4.6-4.9-6.6-2.6-6.5 12.6 11.2 29.2 33.7 35.2 59 2.8 11.6 3.3 23.7.4 35.7 16.4 6.8 35.9 17.9 30.7 34.8-2.2-.1-3.2 0-4.2 0 3.2-10.1-3.9-17.6-22.8-26.1-19.6-8.6-36-8.6-38.3 12.5-12.1 4.2-18.3 14.7-21.4 27.3-2.8 11.2-3.6 24.7-4.4 39.9-.5 7.7-3.6 18-6.8 29-32.1 22.9-76.7 32.9-114.3 7.2zm257.4-11.5c-.9 16.8-41.2 19.9-63.2 46.5-13.2 15.7-29.4 24.4-43.6 25.5s-26.5-4.8-33.7-19.3c-4.7-11.1-2.4-23.1 1.1-36.3 3.7-14.2 9.2-28.8 9.9-40.6.8-15.2 1.7-28.5 4.2-38.7 2.6-10.3 6.6-17.2 13.7-21.1.3-.2.7-.3 1-.5.8 13.2 7.3 26.6 18.8 29.5 12.6 3.3 30.7-7.5 38.4-16.3 9-.3 15.7-.9 22.6 5.1 9.9 8.5 7.1 30.3 17.1 41.6 10.6 11.6 14 19.5 13.7 24.6zM173.3 148.7c2 1.9 4.7 4.5 8 7.1 6.6 5.2 15.8 10.6 27.3 10.6 11.6 0 22.5-5.9 31.8-10.8 4.9-2.6 10.9-7 14.8-10.4s5.9-6.3 3.1-6.6-2.6 2.6-6 5.1c-4.4 3.2-9.7 7.4-13.9 9.8-7.4 4.2-19.5 10.2-29.9 10.2s-18.7-4.8-24.9-9.7c-3.1-2.5-5.7-5-7.7-6.9-1.5-1.4-1.9-4.6-4.3-4.9-1.4-.1-1.8 3.7 1.7 6.5z";t.definition={prefix:e,iconName:n,icon:[r,o,a,i,s]},t.faLinux=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=o,t.ligatures=a,t.unicode=i,t.svgPathData=s,t.aliases=a})(Bl);var $l={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="play",r=384,o=512,a=[9654],i="f04b",s="M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z";t.definition={prefix:e,iconName:n,icon:[r,o,a,i,s]},t.faPlay=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=o,t.ligatures=a,t.unicode=i,t.svgPathData=s,t.aliases=a})($l);var Ul={};(function(t){Object.defineProperty(t,"__esModule",{value:!0});var e="fas",n="spinner",r=512,o=512,a=[],i="f110",s="M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm0 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM48 304a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm464-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM142.9 437A48 48 0 1 0 75 369.1 48 48 0 1 0 142.9 437zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1 48 48 0 1 0 369.1 437z";t.definition={prefix:e,iconName:n,icon:[r,o,a,i,s]},t.faSpinner=t.definition,t.prefix=e,t.iconName=n,t.width=r,t.height=o,t.ligatures=a,t.unicode=i,t.svgPathData=s,t.aliases=a})(Ul),nm.add(Il.faApple,Tl.faWindows,Bl.faLinux,$l.faPlay,Ul.faSpinner),cf(Zi).use(hd).component("font-awesome-icon",hm).mount("#app")})();export{xt as F,sa as _,gm as __tla,Hl as a,Ce as b,la as c,sn as d,Ar as e,ql as f,ft as g,ca as h,Ft as i,ua as j,jr as k,fa as l,da as m,Mr as n,ln as o,Yl as p,Hn as q,Gl as r,qn as s,pa as t,Kl as u,Xl as v,Ql as w,st as x,Te as y,Yn as z}; diff --git a/assets/index-713b12db.js b/assets/index-713b12db.js deleted file mode 100644 index 19ee910..0000000 --- a/assets/index-713b12db.js +++ /dev/null @@ -1,555 +0,0 @@ -let xt,ia,Bl,Ce,la,sn,Ar,$l,ft,ca,Ft,ua,jr,fa,pa,Mr,ln,Ul,Hn,Vl,qn,da,Wl,Hl,ql,it,Te,Yn,gm=(async()=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function e(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(r){if(r.ep)return;r.ep=!0;const o=e(r);fetch(r.href,o)}})();function Rr(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const Q={},Be=[],Lt=()=>{},Yl=()=>!1,Gn=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),zr=t=>t.startsWith("onUpdate:"),lt=Object.assign,Nr=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Gl=Object.prototype.hasOwnProperty,q=(t,e)=>Gl.call(t,e),B=Array.isArray,$e=t=>Kn(t)==="[object Map]",ma=t=>Kn(t)==="[object Set]",$=t=>typeof t=="function",st=t=>typeof t=="string",Qt=t=>typeof t=="symbol",J=t=>t!==null&&typeof t=="object",ha=t=>(J(t)||$(t))&&$(t.then)&&$(t.catch),ga=Object.prototype.toString,Kn=t=>ga.call(t),Kl=t=>Kn(t).slice(8,-1),va=t=>Kn(t)==="[object Object]",Fr=t=>st(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,cn=Rr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xn=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Xl=/-(\w)/g,Mt=Xn(t=>t.replace(Xl,(e,n)=>n?n.toUpperCase():"")),Ql=/\B([A-Z])/g,Se=Xn(t=>t.replace(Ql,"-$1").toLowerCase()),Qn=Xn(t=>t.charAt(0).toUpperCase()+t.slice(1)),Lr=Xn(t=>t?`on${Qn(t)}`:""),fe=(t,e)=>!Object.is(t,e),Dr=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},Zl=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let ba;const Zn=()=>ba||(ba=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});qn=function(t){if(B(t)){const e={};for(let n=0;n{if(n){const r=n.split(tc);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}Hn=function(t){let e="";if(st(t))e=t;else if(B(t))for(let n=0;n!!(t&&t.__v_isRef===!0),da=t=>st(t)?t:t==null?"":B(t)||J(t)&&(t.toString===ga||!$(t.toString))?Ir(t)?da(t.value):JSON.stringify(t,Tr,2):String(t),Tr=(t,e)=>Ir(e)?Tr(t,e.value):$e(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,o],a)=>(n[Jn(r,a)+" =>"]=o,n),{})}:ma(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Jn(n))}:Qt(e)?Jn(e):J(e)&&!B(e)&&!va(e)?String(e):e,Jn=(t,e="")=>{var n;return Qt(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};let wt;class ac{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=wt,!e&&wt&&(this.index=(wt.scopes||(wt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e0)return;if(fn){let e=fn;for(fn=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;un;){let e=un;for(un=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function Oa(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Ca(t){let e,n=t.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),Wr(r),ic(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}t.deps=e,t.depsTail=n}function Vr(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Sa(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Sa(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===pn))return;t.globalVersion=pn;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!Vr(t)){t.flags&=-3;return}const n=Z,r=Dt;Z=t,Dt=!0;try{Oa(t);const o=t.fn(t._value);(e.version===0||fe(o,t._value))&&(t._value=o,e.version++)}catch(o){throw e.version++,o}finally{Z=n,Dt=r,Ca(t),t.flags&=-3}}function Wr(t,e=!1){const{dep:n,prevSub:r,nextSub:o}=t;if(r&&(r.nextSub=o,t.prevSub=void 0),o&&(o.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)Wr(a,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function ic(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let Dt=!0;const Pa=[];function pe(){Pa.push(Dt),Dt=!1}function de(){const t=Pa.pop();Dt=t===void 0?!0:t}function Ea(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=Z;Z=void 0;try{e()}finally{Z=n}}}let pn=0;class lc{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Hr{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!Z||!Dt||Z===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Z)n=this.activeLink=new lc(Z,this),Z.deps?(n.prevDep=Z.depsTail,Z.depsTail.nextDep=n,Z.depsTail=n):Z.deps=Z.depsTail=n,Aa(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Z.depsTail,n.nextDep=void 0,Z.depsTail.nextDep=n,Z.depsTail=n,Z.deps===n&&(Z.deps=r)}return n}trigger(e){this.version++,pn++,this.notify(e)}notify(e){$r();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Ur()}}}function Aa(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)Aa(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const tr=new WeakMap,Pe=Symbol(""),qr=Symbol(""),dn=Symbol("");function dt(t,e,n){if(Dt&&Z){let r=tr.get(t);r||tr.set(t,r=new Map);let o=r.get(n);o||(r.set(n,o=new Hr),o.map=r,o.key=n),o.track()}}function Zt(t,e,n,r,o,a){const s=tr.get(t);if(!s){pn++;return}const i=l=>{l&&l.trigger()};if($r(),e==="clear")s.forEach(i);else{const l=B(t),c=l&&Fr(n);if(l&&n==="length"){const f=Number(r);s.forEach((d,m)=>{(m==="length"||m===dn||!Qt(m)&&m>=f)&&i(d)})}else switch((n!==void 0||s.has(void 0))&&i(s.get(n)),c&&i(s.get(dn)),e){case"add":l?c&&i(s.get("length")):(i(s.get(Pe)),$e(t)&&i(s.get(qr)));break;case"delete":l||(i(s.get(Pe)),$e(t)&&i(s.get(qr)));break;case"set":$e(t)&&i(s.get(Pe));break}}Ur()}function cc(t,e){const n=tr.get(t);return n&&n.get(e)}function Ue(t){const e=W(t);return e===t?e:(dt(e,"iterate",dn),Rt(t)?e:e.map(mt))}function er(t){return dt(t=W(t),"iterate",dn),t}const uc={__proto__:null,[Symbol.iterator](){return Yr(this,Symbol.iterator,mt)},concat(...t){return Ue(this).concat(...t.map(e=>B(e)?Ue(e):e))},entries(){return Yr(this,"entries",t=>(t[1]=mt(t[1]),t))},every(t,e){return Jt(this,"every",t,e,void 0,arguments)},filter(t,e){return Jt(this,"filter",t,e,n=>n.map(mt),arguments)},find(t,e){return Jt(this,"find",t,e,mt,arguments)},findIndex(t,e){return Jt(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Jt(this,"findLast",t,e,mt,arguments)},findLastIndex(t,e){return Jt(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Jt(this,"forEach",t,e,void 0,arguments)},includes(...t){return Gr(this,"includes",t)},indexOf(...t){return Gr(this,"indexOf",t)},join(t){return Ue(this).join(t)},lastIndexOf(...t){return Gr(this,"lastIndexOf",t)},map(t,e){return Jt(this,"map",t,e,void 0,arguments)},pop(){return mn(this,"pop")},push(...t){return mn(this,"push",t)},reduce(t,...e){return ja(this,"reduce",t,e)},reduceRight(t,...e){return ja(this,"reduceRight",t,e)},shift(){return mn(this,"shift")},some(t,e){return Jt(this,"some",t,e,void 0,arguments)},splice(...t){return mn(this,"splice",t)},toReversed(){return Ue(this).toReversed()},toSorted(t){return Ue(this).toSorted(t)},toSpliced(...t){return Ue(this).toSpliced(...t)},unshift(...t){return mn(this,"unshift",t)},values(){return Yr(this,"values",mt)}};function Yr(t,e,n){const r=er(t),o=r[e]();return r!==t&&!Rt(t)&&(o._next=o.next,o.next=()=>{const a=o._next();return a.value&&(a.value=n(a.value)),a}),o}const fc=Array.prototype;function Jt(t,e,n,r,o,a){const s=er(t),i=s!==t&&!Rt(t),l=s[e];if(l!==fc[e]){const d=l.apply(t,a);return i?mt(d):d}let c=n;s!==t&&(i?c=function(d,m){return n.call(this,mt(d),m,t)}:n.length>2&&(c=function(d,m){return n.call(this,d,m,t)}));const f=l.call(s,c,r);return i&&o?o(f):f}function ja(t,e,n,r){const o=er(t);let a=n;return o!==t&&(Rt(t)?n.length>3&&(a=function(s,i,l){return n.call(this,s,i,l,t)}):a=function(s,i,l){return n.call(this,s,mt(i),l,t)}),o[e](a,...r)}function Gr(t,e,n){const r=W(t);dt(r,"iterate",dn);const o=r[e](...n);return(o===-1||o===!1)&&Zr(n[0])?(n[0]=W(n[0]),r[e](...n)):o}function mn(t,e,n=[]){pe(),$r();const r=W(t)[e].apply(t,n);return Ur(),de(),r}const pc=Rr("__proto__,__v_isRef,__isVue"),Ma=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Qt));function dc(t){Qt(t)||(t=String(t));const e=W(this);return dt(e,"has",t),e.hasOwnProperty(t)}class Ra{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){const o=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return a;if(n==="__v_raw")return r===(o?a?_c:La:a?Fa:Na).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const s=B(e);if(!o){let l;if(s&&(l=uc[n]))return l;if(n==="hasOwnProperty")return dc}const i=Reflect.get(e,n,ct(e)?e:r);return(Qt(n)?Ma.has(n):pc(n))||(o||dt(e,"get",n),a)?i:ct(i)?s&&Fr(n)?i:i.value:J(i)?o?Ia(i):hn(i):i}}class za extends Ra{constructor(e=!1){super(!1,e)}set(e,n,r,o){let a=e[n];if(!this._isShallow){const l=Ee(a);if(!Rt(r)&&!Ee(r)&&(a=W(a),r=W(r)),!B(e)&&ct(a)&&!ct(r))return l?!1:(a.value=r,!0)}const s=B(e)&&Fr(n)?Number(n)t,nr=t=>Reflect.getPrototypeOf(t);function yc(t,e,n){return function(...r){const o=this.__v_raw,a=W(o),s=$e(a),i=t==="entries"||t===Symbol.iterator&&s,l=t==="keys"&&s,c=o[t](...r),f=n?Kr:e?Jr:mt;return!e&&dt(a,"iterate",l?qr:Pe),{next(){const{value:d,done:m}=c.next();return m?{value:d,done:m}:{value:i?[f(d[0]),f(d[1])]:f(d),done:m}},[Symbol.iterator](){return this}}}}function rr(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function bc(t,e){const n={get(r){const o=this.__v_raw,a=W(o),s=W(r);t||(fe(r,s)&&dt(a,"get",r),dt(a,"get",s));const{has:i}=nr(a),l=e?Kr:t?Jr:mt;if(i.call(a,r))return l(o.get(r));if(i.call(a,s))return l(o.get(s));o!==a&&o.get(r)},get size(){const r=this.__v_raw;return!t&&dt(W(r),"iterate",Pe),Reflect.get(r,"size",r)},has(r){const o=this.__v_raw,a=W(o),s=W(r);return t||(fe(r,s)&&dt(a,"has",r),dt(a,"has",s)),r===s?o.has(r):o.has(r)||o.has(s)},forEach(r,o){const a=this,s=a.__v_raw,i=W(s),l=e?Kr:t?Jr:mt;return!t&&dt(i,"iterate",Pe),s.forEach((c,f)=>r.call(o,l(c),l(f),a))}};return lt(n,t?{add:rr("add"),set:rr("set"),delete:rr("delete"),clear:rr("clear")}:{add(r){!e&&!Rt(r)&&!Ee(r)&&(r=W(r));const o=W(this);return nr(o).has.call(o,r)||(o.add(r),Zt(o,"add",r,r)),this},set(r,o){!e&&!Rt(o)&&!Ee(o)&&(o=W(o));const a=W(this),{has:s,get:i}=nr(a);let l=s.call(a,r);l||(r=W(r),l=s.call(a,r));const c=i.call(a,r);return a.set(r,o),l?fe(o,c)&&Zt(a,"set",r,o):Zt(a,"add",r,o),this},delete(r){const o=W(this),{has:a,get:s}=nr(o);let i=a.call(o,r);i||(r=W(r),i=a.call(o,r)),s&&s.call(o,r);const l=o.delete(r);return i&&Zt(o,"delete",r,void 0),l},clear(){const r=W(this),o=r.size!==0,a=r.clear();return o&&Zt(r,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=yc(r,t,e)}),n}function Xr(t,e){const n=bc(t,e);return(r,o,a)=>o==="__v_isReactive"?!t:o==="__v_isReadonly"?t:o==="__v_raw"?r:Reflect.get(q(n,o)&&o in r?n:r,o,a)}const xc={get:Xr(!1,!1)},wc={get:Xr(!1,!0)},kc={get:Xr(!0,!1)},Na=new WeakMap,Fa=new WeakMap,La=new WeakMap,_c=new WeakMap;function Oc(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Cc(t){return t.__v_skip||!Object.isExtensible(t)?0:Oc(Kl(t))}function hn(t){return Ee(t)?t:Qr(t,!1,hc,xc,Na)}function Da(t){return Qr(t,!1,vc,wc,Fa)}function Ia(t){return Qr(t,!0,gc,kc,La)}function Qr(t,e,n,r,o){if(!J(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const a=o.get(t);if(a)return a;const s=Cc(t);if(s===0)return t;const i=new Proxy(t,s===2?r:n);return o.set(t,i),i}function Ve(t){return Ee(t)?Ve(t.__v_raw):!!(t&&t.__v_isReactive)}function Ee(t){return!!(t&&t.__v_isReadonly)}function Rt(t){return!!(t&&t.__v_isShallow)}function Zr(t){return t?!!t.__v_raw:!1}function W(t){const e=t&&t.__v_raw;return e?W(e):t}function Sc(t){return!q(t,"__v_skip")&&Object.isExtensible(t)&&ya(t,"__v_skip",!0),t}const mt=t=>J(t)?hn(t):t,Jr=t=>J(t)?Ia(t):t;function ct(t){return t?t.__v_isRef===!0:!1}jr=function(t){return Ta(t,!1)};function Pc(t){return Ta(t,!0)}function Ta(t,e){return ct(t)?t:new Ec(t,e)}class Ec{constructor(e,n){this.dep=new Hr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:W(e),this._value=n?e:mt(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||Rt(e)||Ee(e);e=r?e:W(e),fe(e,n)&&(this._rawValue=e,this._value=r?e:mt(e),this.dep.trigger())}}Ce=function(t){return ct(t)?t.value:t};const Ac={get:(t,e,n)=>e==="__v_raw"?t:Ce(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const o=t[e];return ct(o)&&!ct(n)?(o.value=n,!0):Reflect.set(t,e,n,r)}};function Ba(t){return Ve(t)?t:new Proxy(t,Ac)}class jc{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return cc(W(this._object),this._key)}}class Mc{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function to(t,e,n){return ct(t)?t:$(t)?new Mc(t):J(t)&&arguments.length>1?Rc(t,e,n):jr(t)}function Rc(t,e,n){const r=t[e];return ct(r)?r:new jc(t,e,n)}class zc{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new Hr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=pn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Z!==this)return _a(this,!0),!0}get value(){const e=this.dep.track();return Sa(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Nc(t,e,n=!1){let r,o;return $(t)?r=t:(r=t.get,o=t.set),new zc(r,o,n)}const or={},ar=new WeakMap;let Ae;function Fc(t,e=!1,n=Ae){if(n){let r=ar.get(n);r||ar.set(n,r=[]),r.push(t)}}function Lc(t,e,n=Q){const{immediate:r,deep:o,once:a,scheduler:s,augmentJob:i,call:l}=n,c=E=>o?E:Rt(E)||o===!1||o===0?te(E,1):te(E);let f,d,m,h,P=!1,S=!1;if(ct(t)?(d=()=>t.value,P=Rt(t)):Ve(t)?(d=()=>c(t),P=!0):B(t)?(S=!0,P=t.some(E=>Ve(E)||Rt(E)),d=()=>t.map(E=>{if(ct(E))return E.value;if(Ve(E))return c(E);if($(E))return l?l(E,2):E()})):$(t)?e?d=l?()=>l(t,2):t:d=()=>{if(m){pe();try{m()}finally{de()}}const E=Ae;Ae=f;try{return l?l(t,3,[h]):t(h)}finally{Ae=E}}:d=Lt,e&&o){const E=d,U=o===!0?1/0:o;d=()=>te(E(),U)}const L=sc(),x=()=>{f.stop(),L&&Nr(L.effects,f)};if(a&&e){const E=e;e=(...U)=>{E(...U),x()}}let b=S?new Array(t.length).fill(or):or;const M=E=>{if(!(!(f.flags&1)||!f.dirty&&!E))if(e){const U=f.run();if(o||P||(S?U.some((ot,X)=>fe(ot,b[X])):fe(U,b))){m&&m();const ot=Ae;Ae=f;try{const X=[U,b===or?void 0:S&&b[0]===or?[]:b,h];l?l(e,3,X):e(...X),b=U}finally{Ae=ot}}}else f.run()};return i&&i(M),f=new wa(d),f.scheduler=s?()=>s(M,!1):M,h=E=>Fc(E,!1,f),m=f.onStop=()=>{const E=ar.get(f);if(E){if(l)l(E,4);else for(const U of E)U();ar.delete(f)}},e?r?M(!0):b=f.run():s?s(M.bind(null,!0),!0):f.run(),x.pause=f.pause.bind(f),x.resume=f.resume.bind(f),x.stop=x,x}function te(t,e=1/0,n){if(e<=0||!J(t)||t.__v_skip||(n=n||new Set,n.has(t)))return t;if(n.add(t),e--,ct(t))te(t.value,e,n);else if(B(t))for(let r=0;r{te(r,e,n)});else if(va(t)){for(const r in t)te(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&te(t[r],e,n)}return t}function gn(t,e,n,r){try{return r?t(...r):t()}catch(o){sr(o,e,n)}}function Bt(t,e,n,r){if($(t)){const o=gn(t,e,n,r);return o&&ha(o)&&o.catch(a=>{sr(a,e,n)}),o}if(B(t)){const o=[];for(let a=0;a>>1,o=vt[r],a=vn(o);a=vn(n)?vt.push(t):vt.splice(Ic(e),0,t),t.flags|=1,Ua()}}function Ua(){ir||(ir=$a.then(Ha))}function Tc(t){B(t)?We.push(...t):me&&t.id===-1?me.splice(He+1,0,t):t.flags&1||(We.push(t),t.flags|=1),Ua()}function Va(t,e,n=$t+1){for(;nvn(n)-vn(r));if(We.length=0,me){me.push(...e);return}for(me=e,He=0;Het.id==null?t.flags&2?-1:1/0:t.id;function Ha(t){const e=Lt;try{for($t=0;$t{r._d&&js(-1);const a=lr(e);let s;try{s=t(...o)}finally{lr(a),r._d&&js(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r},ql=function(t,e){if(pt===null)return t;const n=mr(pt),r=t.dirs||(t.dirs=[]);for(let o=0;ot.__isTeleport;function no(t,e){t.shapeFlag&6&&t.component?(t.transition=e,no(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}sn=function(t,e){return $(t)?(()=>lt({name:t.name},e,{setup:t}))():t};function Ya(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function ro(t,e,n,r,o=!1){if(B(t)){t.forEach((P,S)=>ro(P,e&&(B(e)?e[S]:e),n,r,o));return}if(qe(r)&&!o)return;const a=r.shapeFlag&4?mr(r.component):r.el,s=o?null:a,{i,r:l}=t,c=e&&e.r,f=i.refs===Q?i.refs={}:i.refs,d=i.setupState,m=W(d),h=d===Q?()=>!1:P=>q(m,P);if(c!=null&&c!==l&&(st(c)?(f[c]=null,h(c)&&(d[c]=null)):ct(c)&&(c.value=null)),$(l))gn(l,i,12,[s,f]);else{const P=st(l),S=ct(l);if(P||S){const L=()=>{if(t.f){const x=P?h(l)?d[l]:f[l]:l.value;o?B(x)&&Nr(x,a):B(x)?x.includes(a)||x.push(a):P?(f[l]=[a],h(l)&&(d[l]=f[l])):(l.value=[a],t.k&&(f[t.k]=l.value))}else P?(f[l]=s,h(l)&&(d[l]=s)):S&&(l.value=s,t.k&&(f[t.k]=s))};s?(L.id=-1,kt(L,n)):L()}}}Zn().requestIdleCallback,Zn().cancelIdleCallback;const qe=t=>!!t.type.__asyncLoader,Ga=t=>t.type.__isKeepAlive;function Uc(t,e){Ka(t,"a",e)}function Vc(t,e){Ka(t,"da",e)}function Ka(t,e,n=ht){const r=t.__wdc||(t.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return t()});if(cr(e,r,n),n){let o=n.parent;for(;o&&o.parent;)Ga(o.parent.vnode)&&Wc(r,e,n,o),o=o.parent}}function Wc(t,e,n,r){const o=cr(e,t,r,!0);oo(()=>{Nr(r[e],o)},n)}function cr(t,e,n=ht,r=!1){if(n){const o=n[t]||(n[t]=[]),a=e.__weh||(e.__weh=(...s)=>{pe();const i=Cn(n),l=Bt(e,n,t,s);return i(),de(),l});return r?o.unshift(a):o.push(a),a}}let Ut,Xa,Qa,Za,Ja,oo,ts,es,ns;Ut=t=>(e,n=ht)=>{(!Sn||t==="sp")&&cr(t,(...r)=>e(...r),n)},Xa=Ut("bm"),fa=Ut("m"),Qa=Ut("bu"),Za=Ut("u"),Ja=Ut("bum"),oo=Ut("um"),ts=Ut("sp"),es=Ut("rtg"),ns=Ut("rtc");function Hc(t,e=ht){cr("ec",t,e)}const rs="components";pa=function(t,e){return Yc(rs,t,!0,e)||t};const qc=Symbol.for("v-ndc");function Yc(t,e,n=!0,r=!1){const o=pt||ht;if(o){const a=o.type;if(t===rs){const i=zu(a,!1);if(i&&(i===e||i===Mt(e)||i===Qn(Mt(e))))return a}const s=os(o[t]||a[t],e)||os(o.appContext[t],e);return!s&&r?a:s}}function os(t,e){return t&&(t[e]||t[Mt(e)]||t[Qn(Mt(e))])}Ul=function(t,e,n,r){let o;const a=n&&n[r],s=B(t);if(s||st(t)){const i=s&&Ve(t);let l=!1;i&&(l=!Rt(t),t=er(t)),o=new Array(t.length);for(let c=0,f=t.length;ce(i,l,void 0,a&&a[l]));else{const i=Object.keys(t);o=new Array(i.length);for(let l=0,c=i.length;l_n(e)?!(e.type===ee||e.type===xt&&!as(e.children)):!0)?t:null}const ao=t=>t?Ns(t)?mr(t):ao(t.parent):null,yn=lt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>ao(t.parent),$root:t=>ao(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>lo(t),$forceUpdate:t=>t.f||(t.f=()=>{eo(t.update)}),$nextTick:t=>t.n||(t.n=Mr.bind(t.proxy)),$watch:t=>mu.bind(t)}),so=(t,e)=>t!==Q&&!t.__isScriptSetup&&q(t,e),Gc={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:a,accessCache:s,type:i,appContext:l}=t;let c;if(e[0]!=="$"){const h=s[e];if(h!==void 0)switch(h){case 1:return r[e];case 2:return o[e];case 4:return n[e];case 3:return a[e]}else{if(so(r,e))return s[e]=1,r[e];if(o!==Q&&q(o,e))return s[e]=2,o[e];if((c=t.propsOptions[0])&&q(c,e))return s[e]=3,a[e];if(n!==Q&&q(n,e))return s[e]=4,n[e];io&&(s[e]=0)}}const f=yn[e];let d,m;if(f)return e==="$attrs"&&dt(t.attrs,"get",""),f(t);if((d=i.__cssModules)&&(d=d[e]))return d;if(n!==Q&&q(n,e))return s[e]=4,n[e];if(m=l.config.globalProperties,q(m,e))return m[e]},set({_:t},e,n){const{data:r,setupState:o,ctx:a}=t;return so(o,e)?(o[e]=n,!0):r!==Q&&q(r,e)?(r[e]=n,!0):q(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(a[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:o,propsOptions:a}},s){let i;return!!n[s]||t!==Q&&q(t,s)||so(e,s)||(i=a[0])&&q(i,s)||q(r,s)||q(yn,s)||q(o.config.globalProperties,s)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:q(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function ss(t){return B(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let io=!0;function Kc(t){const e=lo(t),n=t.proxy,r=t.ctx;io=!1,e.beforeCreate&&is(e.beforeCreate,t,"bc");const{data:o,computed:a,methods:s,watch:i,provide:l,inject:c,created:f,beforeMount:d,mounted:m,beforeUpdate:h,updated:P,activated:S,deactivated:L,beforeDestroy:x,beforeUnmount:b,destroyed:M,unmounted:E,render:U,renderTracked:ot,renderTriggered:X,errorCaptured:le,serverPrefetch:_e,expose:Gt,inheritAttrs:Oe,components:Ie,directives:Kt,filters:Un}=e;if(c&&Xc(c,r,null),s)for(const et in s){const H=s[et];$(H)&&(r[et]=H.bind(n))}if(o){const et=o.call(n,n);J(et)&&(t.data=hn(et))}if(io=!0,a)for(const et in a){const H=a[et],Pt=$(H)?H.bind(n,n):$(H.get)?H.get.bind(n,n):Lt,Vn=!$(H)&&$(H.set)?H.set.bind(n):Lt,ce=it({get:Pt,set:Vn});Object.defineProperty(r,et,{enumerable:!0,configurable:!0,get:()=>ce.value,set:ue=>ce.value=ue})}if(i)for(const et in i)ls(i[et],r,n,et);if(l){const et=$(l)?l.call(n):l;Reflect.ownKeys(et).forEach(H=>{Me(H,et[H])})}f&&is(f,t,"c");function ut(et,H){B(H)?H.forEach(Pt=>et(Pt.bind(n))):H&&et(H.bind(n))}if(ut(Xa,d),ut(fa,m),ut(Qa,h),ut(Za,P),ut(Uc,S),ut(Vc,L),ut(Hc,le),ut(ns,ot),ut(es,X),ut(Ja,b),ut(oo,E),ut(ts,_e),B(Gt))if(Gt.length){const et=t.exposed||(t.exposed={});Gt.forEach(H=>{Object.defineProperty(et,H,{get:()=>n[H],set:Pt=>n[H]=Pt})})}else t.exposed||(t.exposed={});U&&t.render===Lt&&(t.render=U),Oe!=null&&(t.inheritAttrs=Oe),Ie&&(t.components=Ie),Kt&&(t.directives=Kt),_e&&Ya(t)}function Xc(t,e,n=Lt){B(t)&&(t=co(t));for(const r in t){const o=t[r];let a;J(o)?"default"in o?a=Ft(o.from||r,o.default,!0):a=Ft(o.from||r):a=Ft(o),ct(a)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):e[r]=a}}function is(t,e,n){Bt(B(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function ls(t,e,n,r){let o=r.includes(".")?Ss(n,r):()=>n[r];if(st(t)){const a=e[t];$(a)&&Te(o,a)}else if($(t))Te(o,t.bind(n));else if(J(t))if(B(t))t.forEach(a=>ls(a,e,n,r));else{const a=$(t.handler)?t.handler.bind(n):e[t.handler];$(a)&&Te(o,a,t)}}function lo(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:o,optionsCache:a,config:{optionMergeStrategies:s}}=t.appContext,i=a.get(e);let l;return i?l=i:!o.length&&!n&&!r?l=e:(l={},o.length&&o.forEach(c=>ur(l,c,s,!0)),ur(l,e,s)),J(e)&&a.set(e,l),l}function ur(t,e,n,r=!1){const{mixins:o,extends:a}=e;a&&ur(t,a,n,!0),o&&o.forEach(s=>ur(t,s,n,!0));for(const s in e)if(!(r&&s==="expose")){const i=Qc[s]||n&&n[s];t[s]=i?i(t[s],e[s]):e[s]}return t}const Qc={data:cs,props:us,emits:us,methods:bn,computed:bn,beforeCreate:yt,created:yt,beforeMount:yt,mounted:yt,beforeUpdate:yt,updated:yt,beforeDestroy:yt,beforeUnmount:yt,destroyed:yt,unmounted:yt,activated:yt,deactivated:yt,errorCaptured:yt,serverPrefetch:yt,components:bn,directives:bn,watch:Jc,provide:cs,inject:Zc};function cs(t,e){return e?t?function(){return lt($(t)?t.call(this,this):t,$(e)?e.call(this,this):e)}:e:t}function Zc(t,e){return bn(co(t),co(e))}function co(t){if(B(t)){const e={};for(let n=0;n1)return n&&$(e)?e.call(r&&r.proxy):e}};const ps={},ds=()=>Object.create(ps),ms=t=>Object.getPrototypeOf(t)===ps;function nu(t,e,n,r=!1){const o={},a=ds();t.propsDefaults=Object.create(null),hs(t,e,o,a);for(const s in t.propsOptions[0])s in o||(o[s]=void 0);n?t.props=r?o:Da(o):t.type.props?t.props=o:t.props=a,t.attrs=a}function ru(t,e,n,r){const{props:o,attrs:a,vnode:{patchFlag:s}}=t,i=W(o),[l]=t.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const f=t.vnode.dynamicProps;for(let d=0;d{l=!0;const[m,h]=gs(d,e,!0);lt(s,m),h&&i.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!a&&!l)return J(t)&&r.set(t,Be),Be;if(B(a))for(let f=0;ft[0]==="_"||t==="$stable",fo=t=>B(t)?t.map(Vt):[Vt(t)],au=(t,e,n)=>{if(e._n)return e;const r=ca((...o)=>fo(e(...o)),n);return r._c=!1,r},bs=(t,e,n)=>{const r=t._ctx;for(const o in t){if(ys(o))continue;const a=t[o];if($(a))e[o]=au(o,a,r);else if(a!=null){const s=fo(a);e[o]=()=>s}}},xs=(t,e)=>{const n=fo(e);t.slots.default=()=>n},ws=(t,e,n)=>{for(const r in e)(n||r!=="_")&&(t[r]=e[r])},su=(t,e,n)=>{const r=t.slots=ds();if(t.vnode.shapeFlag&32){const o=e._;o?(ws(r,e,n),n&&ya(r,"_",o,!0)):bs(e,r)}else e&&xs(t,e)},iu=(t,e,n)=>{const{vnode:r,slots:o}=t;let a=!0,s=Q;if(r.shapeFlag&32){const i=e._;i?n&&i===1?a=!1:ws(o,e,n):(a=!e.$stable,bs(e,o)),s=e}else e&&(xs(t,e),s={default:1});if(a)for(const i in o)!ys(i)&&s[i]==null&&delete o[i]},kt=wu;function lu(t){return cu(t)}function cu(t,e){const n=Zn();n.__VUE__=!0;const{insert:r,remove:o,patchProp:a,createElement:s,createText:i,createComment:l,setText:c,setElementText:f,parentNode:d,nextSibling:m,setScopeId:h=Lt,insertStaticContent:P}=t,S=(u,p,g,w=null,v=null,k=null,j=void 0,C=null,O=!!p.dynamicChildren)=>{if(u===p)return;u&&!On(u,p)&&(w=y(u),zt(u,v,k,!0),u=null),p.patchFlag===-2&&(O=!1,p.dynamicChildren=null);const{type:_,ref:I,shapeFlag:z}=p;switch(_){case xn:L(u,p,g,w);break;case ee:x(u,p,g,w);break;case wn:u==null&&b(p,g,w,j);break;case xt:Ie(u,p,g,w,v,k,j,C,O);break;default:z&1?U(u,p,g,w,v,k,j,C,O):z&6?Kt(u,p,g,w,v,k,j,C,O):(z&64||z&128)&&_.process(u,p,g,w,v,k,j,C,O,F)}I!=null&&v&&ro(I,u&&u.ref,k,p||u,!p)},L=(u,p,g,w)=>{if(u==null)r(p.el=i(p.children),g,w);else{const v=p.el=u.el;p.children!==u.children&&c(v,p.children)}},x=(u,p,g,w)=>{u==null?r(p.el=l(p.children||""),g,w):p.el=u.el},b=(u,p,g,w)=>{[u.el,u.anchor]=P(u.children,p,g,w,u.el,u.anchor)},M=({el:u,anchor:p},g,w)=>{let v;for(;u&&u!==p;)v=m(u),r(u,g,w),u=v;r(p,g,w)},E=({el:u,anchor:p})=>{let g;for(;u&&u!==p;)g=m(u),o(u),u=g;o(p)},U=(u,p,g,w,v,k,j,C,O)=>{p.type==="svg"?j="svg":p.type==="math"&&(j="mathml"),u==null?ot(p,g,w,v,k,j,C,O):_e(u,p,v,k,j,C,O)},ot=(u,p,g,w,v,k,j,C)=>{let O,_;const{props:I,shapeFlag:z,transition:D,dirs:T}=u;if(O=u.el=s(u.type,k,I&&I.is,I),z&8?f(O,u.children):z&16&&le(u.children,O,null,w,v,po(u,k),j,C),T&&je(u,null,w,"created"),X(O,u,u.scopeId,j,w),I){for(const at in I)at!=="value"&&!cn(at)&&a(O,at,null,I[at],k,w);"value"in I&&a(O,"value",null,I.value,k),(_=I.onVnodeBeforeMount)&&Wt(_,w,u)}T&&je(u,null,w,"beforeMount");const V=uu(v,D);V&&D.beforeEnter(O),r(O,p,g),((_=I&&I.onVnodeMounted)||V||T)&&kt(()=>{_&&Wt(_,w,u),V&&D.enter(O),T&&je(u,null,w,"mounted")},v)},X=(u,p,g,w,v)=>{if(g&&h(u,g),w)for(let k=0;k{for(let _=O;_{const C=p.el=u.el;let{patchFlag:O,dynamicChildren:_,dirs:I}=p;O|=u.patchFlag&16;const z=u.props||Q,D=p.props||Q;let T;if(g&&Re(g,!1),(T=D.onVnodeBeforeUpdate)&&Wt(T,g,p,u),I&&je(p,u,g,"beforeUpdate"),g&&Re(g,!0),(z.innerHTML&&D.innerHTML==null||z.textContent&&D.textContent==null)&&f(C,""),_?Gt(u.dynamicChildren,_,C,g,w,po(p,v),k):j||Pt(u,p,C,null,g,w,po(p,v),k,!1),O>0){if(O&16)Oe(C,z,D,g,v);else if(O&2&&z.class!==D.class&&a(C,"class",null,D.class,v),O&4&&a(C,"style",z.style,D.style,v),O&8){const V=p.dynamicProps;for(let at=0;at{T&&Wt(T,g,p,u),I&&je(p,u,g,"updated")},w)},Gt=(u,p,g,w,v,k,j)=>{for(let C=0;C{if(p!==g){if(p!==Q)for(const k in p)!cn(k)&&!(k in g)&&a(u,k,p[k],null,v,w);for(const k in g){if(cn(k))continue;const j=g[k],C=p[k];j!==C&&k!=="value"&&a(u,k,C,j,v,w)}"value"in g&&a(u,"value",p.value,g.value,v)}},Ie=(u,p,g,w,v,k,j,C,O)=>{const _=p.el=u?u.el:i(""),I=p.anchor=u?u.anchor:i("");let{patchFlag:z,dynamicChildren:D,slotScopeIds:T}=p;T&&(C=C?C.concat(T):T),u==null?(r(_,g,w),r(I,g,w),le(p.children||[],g,I,v,k,j,C,O)):z>0&&z&64&&D&&u.dynamicChildren?(Gt(u.dynamicChildren,D,g,v,k,j,C),(p.key!=null||v&&p===v.subTree)&&ks(u,p,!0)):Pt(u,p,g,I,v,k,j,C,O)},Kt=(u,p,g,w,v,k,j,C,O)=>{p.slotScopeIds=C,u==null?p.shapeFlag&512?v.ctx.activate(p,g,w,j,O):Un(p,g,w,v,k,j,O):ut(u,p,O)},Un=(u,p,g,w,v,k,j)=>{const C=u.component=Eu(u,w,v);if(Ga(u)&&(C.ctx.renderer=F),Au(C,!1,j),C.asyncDep){if(v&&v.registerDep(C,et,j),!u.el){const O=C.subTree=ft(ee);x(null,O,p,g)}}else et(C,u,p,g,v,k,j)},ut=(u,p,g)=>{const w=p.component=u.component;if(bu(u,p,g))if(w.asyncDep&&!w.asyncResolved){H(w,p,g);return}else w.next=p,w.update();else p.el=u.el,w.vnode=p},et=(u,p,g,w,v,k,j)=>{const C=()=>{if(u.isMounted){let{next:z,bu:D,u:T,parent:V,vnode:at}=u;{const At=_s(u);if(At){z&&(z.el=at.el,H(u,z,j)),At.asyncDep.then(()=>{u.isUnmounted||C()});return}}let K=z,Et;Re(u,!1),z?(z.el=at.el,H(u,z,j)):z=at,D&&Dr(D),(Et=z.props&&z.props.onVnodeBeforeUpdate)&&Wt(Et,V,z,at),Re(u,!0);const gt=mo(u),Tt=u.subTree;u.subTree=gt,S(Tt,gt,d(Tt.el),y(Tt),u,v,k),z.el=gt.el,K===null&&xu(u,gt.el),T&&kt(T,v),(Et=z.props&&z.props.onVnodeUpdated)&&kt(()=>Wt(Et,V,z,at),v)}else{let z;const{el:D,props:T}=p,{bm:V,m:at,parent:K,root:Et,type:gt}=u,Tt=qe(p);if(Re(u,!1),V&&Dr(V),!Tt&&(z=T&&T.onVnodeBeforeMount)&&Wt(z,K,p),Re(u,!0),D&&rt){const At=()=>{u.subTree=mo(u),rt(D,u.subTree,u,v,null)};Tt&>.__asyncHydrate?gt.__asyncHydrate(D,u,At):At()}else{Et.ce&&Et.ce._injectChildStyle(gt);const At=u.subTree=mo(u);S(null,At,g,w,u,v,k),p.el=At.el}if(at&&kt(at,v),!Tt&&(z=T&&T.onVnodeMounted)){const At=p;kt(()=>Wt(z,K,At),v)}(p.shapeFlag&256||K&&qe(K.vnode)&&K.vnode.shapeFlag&256)&&u.a&&kt(u.a,v),u.isMounted=!0,p=g=w=null}};u.scope.on();const O=u.effect=new wa(C);u.scope.off();const _=u.update=O.run.bind(O),I=u.job=O.runIfDirty.bind(O);I.i=u,I.id=u.uid,O.scheduler=()=>eo(I),Re(u,!0),_()},H=(u,p,g)=>{p.component=u;const w=u.vnode.props;u.vnode=p,u.next=null,ru(u,p.props,w,g),iu(u,p.children,g),pe(),Va(u),de()},Pt=(u,p,g,w,v,k,j,C,O=!1)=>{const _=u&&u.children,I=u?u.shapeFlag:0,z=p.children,{patchFlag:D,shapeFlag:T}=p;if(D>0){if(D&128){ce(_,z,g,w,v,k,j,C,O);return}else if(D&256){Vn(_,z,g,w,v,k,j,C,O);return}}T&8?(I&16&&Nt(_,v,k),z!==_&&f(g,z)):I&16?T&16?ce(_,z,g,w,v,k,j,C,O):Nt(_,v,k,!0):(I&8&&f(g,""),T&16&&le(z,g,w,v,k,j,C,O))},Vn=(u,p,g,w,v,k,j,C,O)=>{u=u||Be,p=p||Be;const _=u.length,I=p.length,z=Math.min(_,I);let D;for(D=0;DI?Nt(u,v,k,!0,!1,z):le(p,g,w,v,k,j,C,O,z)},ce=(u,p,g,w,v,k,j,C,O)=>{let _=0;const I=p.length;let z=u.length-1,D=I-1;for(;_<=z&&_<=D;){const T=u[_],V=p[_]=O?he(p[_]):Vt(p[_]);if(On(T,V))S(T,V,g,null,v,k,j,C,O);else break;_++}for(;_<=z&&_<=D;){const T=u[z],V=p[D]=O?he(p[D]):Vt(p[D]);if(On(T,V))S(T,V,g,null,v,k,j,C,O);else break;z--,D--}if(_>z){if(_<=D){const T=D+1,V=TD)for(;_<=z;)zt(u[_],v,k,!0),_++;else{const T=_,V=_,at=new Map;for(_=V;_<=D;_++){const jt=p[_]=O?he(p[_]):Vt(p[_]);jt.key!=null&&at.set(jt.key,_)}let K,Et=0;const gt=D-V+1;let Tt=!1,At=0;const Wn=new Array(gt);for(_=0;_=gt){zt(jt,v,k,!0);continue}let Xt;if(jt.key!=null)Xt=at.get(jt.key);else for(K=V;K<=D;K++)if(Wn[K-V]===0&&On(jt,p[K])){Xt=K;break}Xt===void 0?zt(jt,v,k,!0):(Wn[Xt-V]=_+1,Xt>=At?At=Xt:Tt=!0,S(jt,p[Xt],g,null,v,k,j,C,O),Et++)}const Il=Tt?fu(Wn):Be;for(K=Il.length-1,_=gt-1;_>=0;_--){const jt=V+_,Xt=p[jt],Tl=jt+1{const{el:k,type:j,transition:C,children:O,shapeFlag:_}=u;if(_&6){ue(u.component.subTree,p,g,w);return}if(_&128){u.suspense.move(p,g,w);return}if(_&64){j.move(u,p,g,F);return}if(j===xt){r(k,p,g);for(let I=0;IC.enter(k),v);else{const{leave:I,delayLeave:z,afterLeave:D}=C,T=()=>r(k,p,g),V=()=>{I(k,()=>{T(),D&&D()})};z?z(k,T,V):V()}else r(k,p,g)},zt=(u,p,g,w=!1,v=!1)=>{const{type:k,props:j,ref:C,children:O,dynamicChildren:_,shapeFlag:I,patchFlag:z,dirs:D,cacheIndex:T}=u;if(z===-2&&(v=!1),C!=null&&ro(C,null,g,u,!0),T!=null&&(p.renderCache[T]=void 0),I&256){p.ctx.deactivate(u);return}const V=I&1&&D,at=!qe(u);let K;if(at&&(K=j&&j.onVnodeBeforeUnmount)&&Wt(K,p,u),I&6)Er(u.component,g,w);else{if(I&128){u.suspense.unmount(g,w);return}V&&je(u,null,p,"beforeUnmount"),I&64?u.type.remove(u,p,g,F,w):_&&!_.hasOnce&&(k!==xt||z>0&&z&64)?Nt(_,p,g,!1,!0):(k===xt&&z&384||!v&&I&16)&&Nt(O,p,g),w&&on(u)}(at&&(K=j&&j.onVnodeUnmounted)||V)&&kt(()=>{K&&Wt(K,p,u),V&&je(u,null,p,"unmounted")},g)},on=u=>{const{type:p,el:g,anchor:w,transition:v}=u;if(p===xt){an(g,w);return}if(p===wn){E(u);return}const k=()=>{o(g),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(u.shapeFlag&1&&v&&!v.persisted){const{leave:j,delayLeave:C}=v,O=()=>j(g,k);C?C(u.el,k,O):O()}else k()},an=(u,p)=>{let g;for(;u!==p;)g=m(u),o(u),u=g;o(p)},Er=(u,p,g)=>{const{bum:w,scope:v,job:k,subTree:j,um:C,m:O,a:_}=u;Os(O),Os(_),w&&Dr(w),v.stop(),k&&(k.flags|=8,zt(j,u,p,g)),C&&kt(C,p),kt(()=>{u.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Nt=(u,p,g,w=!1,v=!1,k=0)=>{for(let j=k;j{if(u.shapeFlag&6)return y(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const p=m(u.anchor||u.el),g=p&&p[Bc];return g?m(g):p};let R=!1;const A=(u,p,g)=>{u==null?p._vnode&&zt(p._vnode,null,null,!0):S(p._vnode||null,u,p,null,null,null,g),p._vnode=u,R||(R=!0,Va(),Wa(),R=!1)},F={p:S,um:zt,m:ue,r:on,mt:Un,mc:le,pc:Pt,pbc:Gt,n:y,o:t};let Y,rt;return e&&([Y,rt]=e(F)),{render:A,hydrate:Y,createApp:eu(A,Y)}}function po({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Re({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function uu(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function ks(t,e,n=!1){const r=t.children,o=e.children;if(B(r)&&B(o))for(let a=0;a>1,t[n[i]]0&&(e[r]=n[a-1]),n[a]=r)}}for(a=n.length,s=n[a-1];a-- >0;)n[a]=s,s=e[s];return n}function _s(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:_s(e)}function Os(t){if(t)for(let e=0;eFt(pu);Te=function(t,e,n){return Cs(t,e,n)};function Cs(t,e,n=Q){const{immediate:r,deep:o,flush:a,once:s}=n,i=lt({},n),l=e&&r||!e&&a!=="post";let c;if(Sn){if(a==="sync"){const h=du();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Lt,h.resume=Lt,h.pause=Lt,h}}const f=ht;i.call=(h,P,S)=>Bt(h,f,P,S);let d=!1;a==="post"?i.scheduler=h=>{kt(h,f&&f.suspense)}:a!=="sync"&&(d=!0,i.scheduler=(h,P)=>{P?h():eo(h)}),i.augmentJob=h=>{e&&(h.flags|=4),d&&(h.flags|=2,f&&(h.id=f.uid,h.i=f))};const m=Lc(t,e,i);return Sn&&(c?c.push(m):l&&m()),m}function mu(t,e,n){const r=this.proxy,o=st(t)?t.includes(".")?Ss(r,t):()=>r[t]:t.bind(r,r);let a;$(e)?a=e:(a=e.handler,n=e);const s=Cn(this),i=Cs(o,a.bind(r),n);return s(),i}function Ss(t,e){const n=e.split(".");return()=>{let r=t;for(let o=0;oe==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Mt(e)}Modifiers`]||t[`${Se(e)}Modifiers`];function gu(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||Q;let o=n;const a=e.startsWith("update:"),s=a&&hu(r,e.slice(7));s&&(s.trim&&(o=n.map(f=>st(f)?f.trim():f)),s.number&&(o=n.map(Zl)));let i,l=r[i=Lr(e)]||r[i=Lr(Mt(e))];!l&&a&&(l=r[i=Lr(Se(e))]),l&&Bt(l,t,6,o);const c=r[i+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[i])return;t.emitted[i]=!0,Bt(c,t,6,o)}}function Ps(t,e,n=!1){const r=e.emitsCache,o=r.get(t);if(o!==void 0)return o;const a=t.emits;let s={},i=!1;if(!$(t)){const l=c=>{const f=Ps(c,e,!0);f&&(i=!0,lt(s,f))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!a&&!i?(J(t)&&r.set(t,null),null):(B(a)?a.forEach(l=>s[l]=null):lt(s,a),J(t)&&r.set(t,s),s)}function fr(t,e){return!t||!Gn(e)?!1:(e=e.slice(2).replace(/Once$/,""),q(t,e[0].toLowerCase()+e.slice(1))||q(t,Se(e))||q(t,e))}function mo(t){const{type:e,vnode:n,proxy:r,withProxy:o,propsOptions:[a],slots:s,attrs:i,emit:l,render:c,renderCache:f,props:d,data:m,setupState:h,ctx:P,inheritAttrs:S}=t,L=lr(t);let x,b;try{if(n.shapeFlag&4){const E=o||r,U=E;x=Vt(c.call(U,E,f,d,h,m,P)),b=i}else{const E=e;x=Vt(E.length>1?E(d,{attrs:i,slots:s,emit:l}):E(d,null)),b=e.props?i:vu(i)}}catch(E){Ge.length=0,sr(E,t,1),x=ft(ee)}let M=x;if(b&&S!==!1){const E=Object.keys(b),{shapeFlag:U}=M;E.length&&U&7&&(a&&E.some(zr)&&(b=yu(b,a)),M=Ke(M,b,!1,!0))}return n.dirs&&(M=Ke(M,null,!1,!0),M.dirs=M.dirs?M.dirs.concat(n.dirs):n.dirs),n.transition&&no(M,n.transition),x=M,lr(L),x}const vu=t=>{let e;for(const n in t)(n==="class"||n==="style"||Gn(n))&&((e||(e={}))[n]=t[n]);return e},yu=(t,e)=>{const n={};for(const r in t)(!zr(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function bu(t,e,n){const{props:r,children:o,component:a}=t,{props:s,children:i,patchFlag:l}=e,c=a.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Es(r,s,c):!!s;if(l&8){const f=e.dynamicProps;for(let d=0;dt.__isSuspense;function wu(t,e){e&&e.pendingBranch?B(t)?e.effects.push(...t):e.effects.push(t):Tc(t)}let xn,ee,wn,Ge;xt=Symbol.for("v-fgt"),xn=Symbol.for("v-txt"),ee=Symbol.for("v-cmt"),wn=Symbol.for("v-stc"),Ge=[];let _t=null;ln=function(t=!1){Ge.push(_t=t?null:[])};function ku(){Ge.pop(),_t=Ge[Ge.length-1]||null}let kn=1;function js(t){kn+=t,t<0&&_t&&(_t.hasOnce=!0)}function Ms(t){return t.dynamicChildren=kn>0?_t||Be:null,ku(),kn>0&&_t&&_t.push(t),t}la=function(t,e,n,r,o,a){return Ms(Ar(t,e,n,r,o,a,!0))},Yn=function(t,e,n,r,o){return Ms(ft(t,e,n,r,o,!0))};function _n(t){return t?t.__v_isVNode===!0:!1}function On(t,e){return t.type===e.type&&t.key===e.key}const Rs=({key:t})=>t??null,pr=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?st(t)||ct(t)||$(t)?{i:pt,r:t,k:e,f:!!n}:t:null);Ar=function(t,e=null,n=null,r=0,o=null,a=t===xt?0:1,s=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Rs(e),ref:e&&pr(e),scopeId:qa,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:pt};return i?(ho(l,n),a&128&&t.normalize(l)):n&&(l.shapeFlag|=st(n)?8:16),kn>0&&!s&&_t&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&_t.push(l),l},ft=_u;function _u(t,e=null,n=null,r=0,o=null,a=!1){if((!t||t===qc)&&(t=ee),_n(t)){const i=Ke(t,e,!0);return n&&ho(i,n),kn>0&&!a&&_t&&(i.shapeFlag&6?_t[_t.indexOf(t)]=i:_t.push(i)),i.patchFlag=-2,i}if(Nu(t)&&(t=t.__vccOpts),e){e=Ou(e);let{class:i,style:l}=e;i&&!st(i)&&(e.class=Hn(i)),J(l)&&(Zr(l)&&!B(l)&&(l=lt({},l)),e.style=qn(l))}const s=st(t)?1:As(t)?128:$c(t)?64:J(t)?4:$(t)?2:0;return Ar(t,e,n,r,o,s,a,!0)}function Ou(t){return t?Zr(t)||ms(t)?lt({},t):t:null}function Ke(t,e,n=!1,r=!1){const{props:o,ref:a,patchFlag:s,children:i,transition:l}=t,c=e?Cu(o||{},e):o,f={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&Rs(c),ref:e&&e.ref?n&&a?B(a)?a.concat(pr(e)):[a,pr(e)]:pr(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:i,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==xt?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ke(t.ssContent),ssFallback:t.ssFallback&&Ke(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&no(f,l.clone(f)),f}ua=function(t=" ",e=0){return ft(xn,null,t,e)},Bl=function(t,e){const n=ft(wn,null,t);return n.staticCount=e,n},$l=function(t="",e=!1){return e?(ln(),Yn(ee,null,t)):ft(ee,null,t)};function Vt(t){return t==null||typeof t=="boolean"?ft(ee):B(t)?ft(xt,null,t.slice()):_n(t)?he(t):ft(xn,null,String(t))}function he(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ke(t)}function ho(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(B(e))n=16;else if(typeof e=="object")if(r&65){const o=e.default;o&&(o._c&&(o._d=!1),ho(t,o()),o._c&&(o._d=!0));return}else{n=32;const o=e._;!o&&!ms(e)?e._ctx=pt:o===3&&pt&&(pt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else $(e)?(e={default:e,_ctx:pt},n=32):(e=String(e),r&64?(n=16,e=[ua(e)]):n=8);t.children=e,t.shapeFlag|=n}function Cu(...t){const e={};for(let n=0;n{let o;return(o=t[n])||(o=t[n]=[]),o.push(r),a=>{o.length>1?o.forEach(s=>s(a)):o[0](a)}};dr=e("__VUE_INSTANCE_SETTERS__",n=>ht=n),go=e("__VUE_SSR_SETTERS__",n=>Sn=n)}const Cn=t=>{const e=ht;return dr(t),t.scope.on(),()=>{t.scope.off(),dr(e)}},zs=()=>{ht&&ht.scope.off(),dr(null)};function Ns(t){return t.vnode.shapeFlag&4}let Sn=!1;function Au(t,e=!1,n=!1){e&&go(e);const{props:r,children:o}=t.vnode,a=Ns(t);nu(t,r,a,e),su(t,o,n);const s=a?ju(t,e):void 0;return e&&go(!1),s}function ju(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Gc);const{setup:r}=n;if(r){pe();const o=t.setupContext=r.length>1?Ru(t):null,a=Cn(t),s=gn(r,t,0,[t.props,o]),i=ha(s);if(de(),a(),(i||t.sp)&&!qe(t)&&Ya(t),i){if(s.then(zs,zs),e)return s.then(l=>{Fs(t,l,e)}).catch(l=>{sr(l,t,0)});t.asyncDep=s}else Fs(t,s,e)}else Ds(t,e)}function Fs(t,e,n){$(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:J(e)&&(t.setupState=Ba(e)),Ds(t,n)}let Ls;function Ds(t,e,n){const r=t.type;if(!t.render){if(!e&&Ls&&!r.render){const o=r.template||lo(t).template;if(o){const{isCustomElement:a,compilerOptions:s}=t.appContext.config,{delimiters:i,compilerOptions:l}=r,c=lt(lt({isCustomElement:a,delimiters:i},s),l);r.render=Ls(o,c)}}t.render=r.render||Lt}{const o=Cn(t);pe();try{Kc(t)}finally{de(),o()}}}const Mu={get(t,e){return dt(t,"get",""),t[e]}};function Ru(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,Mu),slots:t.slots,emit:t.emit,expose:e}}function mr(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Ba(Sc(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in yn)return yn[n](t)},has(e,n){return n in e||n in yn}})):t.proxy}function zu(t,e=!0){return $(t)?t.displayName||t.name:t.name||e&&t.__name}function Nu(t){return $(t)&&"__vccOpts"in t}it=(t,e)=>Nc(t,e,Sn);function vo(t,e,n){const r=arguments.length;return r===2?J(e)&&!B(e)?_n(e)?ft(t,null,[e]):ft(t,e):ft(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&_n(n)&&(n=[n]),ft(t,e,n))}const Fu="3.5.12";let yo;const Is=typeof window<"u"&&window.trustedTypes;if(Is)try{yo=Is.createPolicy("vue",{createHTML:t=>t})}catch{}const Ts=yo?t=>yo.createHTML(t):t=>t,Lu="http://www.w3.org/2000/svg",Du="http://www.w3.org/1998/Math/MathML",ne=typeof document<"u"?document:null,Bs=ne&&ne.createElement("template"),Iu={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const o=e==="svg"?ne.createElementNS(Lu,t):e==="mathml"?ne.createElementNS(Du,t):n?ne.createElement(t,{is:n}):ne.createElement(t);return t==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:t=>ne.createTextNode(t),createComment:t=>ne.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>ne.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,o,a){const s=n?n.previousSibling:e.lastChild;if(o&&(o===a||o.nextSibling))for(;e.insertBefore(o.cloneNode(!0),n),!(o===a||!(o=o.nextSibling)););else{Bs.innerHTML=Ts(r==="svg"?`${t}`:r==="mathml"?`${t}`:t);const i=Bs.content;if(r==="svg"||r==="mathml"){const l=i.firstChild;for(;l.firstChild;)i.appendChild(l.firstChild);i.removeChild(l)}e.insertBefore(i,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Tu=Symbol("_vtc");function Bu(t,e,n){const r=t[Tu];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}let Pn,bo;Pn=Symbol("_vod"),bo=Symbol("_vsh"),Hl={beforeMount(t,{value:e},{transition:n}){t[Pn]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):En(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),En(t,!0),r.enter(t)):r.leave(t,()=>{En(t,!1)}):En(t,e))},beforeUnmount(t,{value:e}){En(t,e)}};function En(t,e){t.style.display=e?t[Pn]:"none",t[bo]=!e}const $u=Symbol(""),Uu=/(^|;)\s*display\s*:/;function Vu(t,e,n){const r=t.style,o=st(n);let a=!1;if(n&&!o){if(e)if(st(e))for(const s of e.split(";")){const i=s.slice(0,s.indexOf(":")).trim();n[i]==null&&hr(r,i,"")}else for(const s in e)n[s]==null&&hr(r,s,"");for(const s in n)s==="display"&&(a=!0),hr(r,s,n[s])}else if(o){if(e!==n){const s=r[$u];s&&(n+=";"+s),r.cssText=n,a=Uu.test(n)}}else e&&t.removeAttribute("style");Pn in t&&(t[Pn]=a?r.display:"",t[bo]&&(r.display="none"))}const $s=/\s*!important$/;function hr(t,e,n){if(B(n))n.forEach(r=>hr(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=Wu(t,e);$s.test(n)?t.setProperty(Se(r),n.replace($s,""),"important"):t[r]=n}}const Us=["Webkit","Moz","ms"],xo={};function Wu(t,e){const n=xo[e];if(n)return n;let r=Mt(e);if(r!=="filter"&&r in t)return xo[e]=r;r=Qn(r);for(let o=0;owo||(Ku.then(()=>wo=0),wo=Date.now());function Qu(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Bt(Zu(r,n.value),e,5,[r])};return n.value=t,n.attached=Xu(),n}function Zu(t,e){if(B(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>o=>!o._stopped&&r&&r(o))}else return e}const Gs=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Ju=(t,e,n,r,o,a)=>{const s=o==="svg";e==="class"?Bu(t,r,s):e==="style"?Vu(t,n,r):Gn(e)?zr(e)||Yu(t,e,n,r,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):tf(t,e,r,s))?(Hs(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Ws(t,e,r,s,a,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!st(r))?Hs(t,Mt(e),r,a,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),Ws(t,e,r,s))};function tf(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&Gs(e)&&$(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const o=t.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Gs(e)&&st(n)?!1:e in t}const ef=lt({patchProp:Ju},Iu);let Ks;function nf(){return Ks||(Ks=lu(ef))}const rf=(...t)=>{const e=nf().createApp(...t),{mount:n}=e;return e.mount=r=>{const o=af(r);if(!o)return;const a=e._component;!$(a)&&!a.render&&!a.template&&(a.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,of(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},e};function of(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function af(t){return st(t)?document.querySelector(t):t}let Xs,Qs,Zs,Js,ti,ko;Xs=()=>{let t=hn({isMobile:!1,isPc:!1,size:"",deviceCnt:0});function e(){const n=window.innerWidth;n<=600?(t.size="xs",t.isMobile=!0,t.isPc=!1,t.deviceCnt=0):n<=960?(t.size="sm",t.isMobile=!1,t.isPc=!1,t.deviceCnt=1):n<=1264?(t.size="md",t.isMobile=!1,t.isPc=!0,t.deviceCnt=2):n<=1904?(t.size="lg",t.isMobile=!1,t.isPc=!0,t.deviceCnt=3):(t.size="xl",t.isMobile=!1,t.isPc=!0,t.deviceCnt=4)}return e(),window.addEventListener("resize",e),t},Qs={class:"app"},Zs=sn({__name:"App",setup(t){const e=Xs();return Me("sizeCnt",to(e,"deviceCnt")),Me("isMobile",to(e,"isMobile")),Me("isPc",to(e,"isPc")),(n,r)=>{const o=pa("router-view");return ln(),la("div",Qs,[ft(o)])}}}),Js="modulepreload",ti=function(t){return"/"+t},ko={},ia=function(t,e,n){if(!e||e.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(e.map(o=>{if(o=ti(o),o in ko)return;ko[o]=!0;const a=o.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(n)for(let l=r.length-1;l>=0;l--){const c=r[l];if(c.href===o&&(!a||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${s}`))return;const i=document.createElement("link");if(i.rel=a?"stylesheet":Js,a||(i.as="script",i.crossOrigin=""),i.href=o,document.head.appendChild(i),a)return new Promise((l,c)=>{i.addEventListener("load",l),i.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o})};const Xe=typeof document<"u";function ei(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function sf(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&ei(t.default)}const G=Object.assign;function _o(t,e){const n={};for(const r in e){const o=e[r];n[r]=It(o)?o.map(t):t(o)}return n}const An=()=>{},It=Array.isArray,ni=/#/g,lf=/&/g,cf=/\//g,uf=/=/g,ff=/\?/g,ri=/\+/g,pf=/%5B/g,df=/%5D/g,oi=/%5E/g,mf=/%60/g,ai=/%7B/g,hf=/%7C/g,si=/%7D/g,gf=/%20/g;function Oo(t){return encodeURI(""+t).replace(hf,"|").replace(pf,"[").replace(df,"]")}function vf(t){return Oo(t).replace(ai,"{").replace(si,"}").replace(oi,"^")}function Co(t){return Oo(t).replace(ri,"%2B").replace(gf,"+").replace(ni,"%23").replace(lf,"%26").replace(mf,"`").replace(ai,"{").replace(si,"}").replace(oi,"^")}function yf(t){return Co(t).replace(uf,"%3D")}function bf(t){return Oo(t).replace(ni,"%23").replace(ff,"%3F")}function xf(t){return t==null?"":bf(t).replace(cf,"%2F")}function jn(t){try{return decodeURIComponent(""+t)}catch{}return""+t}const wf=/\/$/,kf=t=>t.replace(wf,"");function So(t,e,n="/"){let r,o={},a="",s="";const i=e.indexOf("#");let l=e.indexOf("?");return i=0&&(l=-1),l>-1&&(r=e.slice(0,l),a=e.slice(l+1,i>-1?i:e.length),o=t(a)),i>-1&&(r=r||e.slice(0,i),s=e.slice(i,e.length)),r=Sf(r??e,n),{fullPath:r+(a&&"?")+a+s,path:r,query:o,hash:jn(s)}}function _f(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function ii(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function Of(t,e,n){const r=e.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Qe(e.matched[r],n.matched[o])&&li(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Qe(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function li(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!Cf(t[n],e[n]))return!1;return!0}function Cf(t,e){return It(t)?ci(t,e):It(e)?ci(e,t):t===e}function ci(t,e){return It(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function Sf(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let a=n.length-1,s,i;for(s=0;s1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(s).join("/")}const ge={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Mn;(function(t){t.pop="pop",t.push="push"})(Mn||(Mn={}));var Rn;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Rn||(Rn={}));function Pf(t){if(!t)if(Xe){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),kf(t)}const Ef=/^[^#]+#/;function Af(t,e){return t.replace(Ef,"#")+e}function jf(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const gr=()=>({left:window.scrollX,top:window.scrollY});function Mf(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;e=jf(o,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function ui(t,e){return(history.state?history.state.position-e:-1)+t}const Po=new Map;function Rf(t,e){Po.set(t,e)}function zf(t){const e=Po.get(t);return Po.delete(t),e}let Nf=()=>location.protocol+"//"+location.host;function fi(t,e){const{pathname:n,search:r,hash:o}=e,a=t.indexOf("#");if(a>-1){let s=o.includes(t.slice(a))?t.slice(a).length:1,i=o.slice(s);return i[0]!=="/"&&(i="/"+i),ii(i,"")}return ii(n,t)+r+o}function Ff(t,e,n,r){let o=[],a=[],s=null;const i=({state:m})=>{const h=fi(t,location),P=n.value,S=e.value;let L=0;if(m){if(n.value=h,e.value=m,s&&s===P){s=null;return}L=S?m.position-S.position:0}else r(h);o.forEach(x=>{x(n.value,P,{delta:L,type:Mn.pop,direction:L?L>0?Rn.forward:Rn.back:Rn.unknown})})};function l(){s=n.value}function c(m){o.push(m);const h=()=>{const P=o.indexOf(m);P>-1&&o.splice(P,1)};return a.push(h),h}function f(){const{history:m}=window;m.state&&m.replaceState(G({},m.state,{scroll:gr()}),"")}function d(){for(const m of a)m();a=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function pi(t,e,n,r=!1,o=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:o?gr():null}}function Lf(t){const{history:e,location:n}=window,r={value:fi(t,n)},o={value:e.state};o.value||a(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function a(l,c,f){const d=t.indexOf("#"),m=d>-1?(n.host&&document.querySelector("base")?t:t.slice(d))+l:Nf()+t+l;try{e[f?"replaceState":"pushState"](c,"",m),o.value=c}catch(h){console.error(h),n[f?"replace":"assign"](m)}}function s(l,c){const f=G({},e.state,pi(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});a(l,f,!0),r.value=l}function i(l,c){const f=G({},o.value,e.state,{forward:l,scroll:gr()});a(f.current,f,!0);const d=G({},pi(r.value,l,null),{position:f.position+1},c);a(l,d,!1),r.value=l}return{location:r,state:o,push:i,replace:s}}function Df(t){t=Pf(t);const e=Lf(t),n=Ff(t,e.state,e.location,e.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const o=G({location:"",base:t,go:r,createHref:Af.bind(null,t)},e,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>e.state.value}),o}function If(t){return typeof t=="string"||t&&typeof t=="object"}function di(t){return typeof t=="string"||typeof t=="symbol"}const mi=Symbol("");var hi;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(hi||(hi={}));function Ze(t,e){return G(new Error,{type:t,[mi]:!0},e)}function re(t,e){return t instanceof Error&&mi in t&&(e==null||!!(t.type&e))}const gi="[^/]+?",Tf={sensitive:!1,strict:!1,start:!0,end:!0},Bf=/[.+*?^${}()[\]/\\]/g;function $f(t,e){const n=G({},Tf,e),r=[];let o=n.start?"^":"";const a=[];for(const c of t){const f=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let d=0;de.length?e.length===1&&e[0]===80?1:-1:0}function vi(t,e){let n=0;const r=t.score,o=e.score;for(;n0&&e[e.length-1]<0}const Vf={type:0,value:""},Wf=/[a-zA-Z0-9_]/;function Hf(t){if(!t)return[[]];if(t==="/")return[[Vf]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=0,r=n;const o=[];let a;function s(){a&&o.push(a),a=[]}let i=0,l,c="",f="";function d(){c&&(n===0?a.push({type:0,value:c}):n===1||n===2||n===3?(a.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:c,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function m(){c+=l}for(;i{s(M)}:An}function s(d){if(di(d)){const m=r.get(d);m&&(r.delete(d),n.splice(n.indexOf(m),1),m.children.forEach(s),m.alias.forEach(s))}else{const m=n.indexOf(d);m>-1&&(n.splice(m,1),d.record.name&&r.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function i(){return n}function l(d){const m=Xf(d,n);n.splice(m,0,d),d.record.name&&!wi(d)&&r.set(d.record.name,d)}function c(d,m){let h,P={},S,L;if("name"in d&&d.name){if(h=r.get(d.name),!h)throw Ze(1,{location:d});L=h.record.name,P=G(bi(m.params,h.keys.filter(M=>!M.optional).concat(h.parent?h.parent.keys.filter(M=>M.optional):[]).map(M=>M.name)),d.params&&bi(d.params,h.keys.map(M=>M.name))),S=h.stringify(P)}else if(d.path!=null)S=d.path,h=n.find(M=>M.re.test(S)),h&&(P=h.parse(S),L=h.record.name);else{if(h=m.name?r.get(m.name):n.find(M=>M.re.test(m.path)),!h)throw Ze(1,{location:d,currentLocation:m});L=h.record.name,P=G({},m.params,d.params),S=h.stringify(P)}const x=[];let b=h;for(;b;)x.unshift(b.record),b=b.parent;return{name:L,path:S,params:P,matched:x,meta:Kf(x)}}t.forEach(d=>a(d));function f(){n.length=0,r.clear()}return{addRoute:a,resolve:c,removeRoute:s,clearRoutes:f,getRoutes:i,getRecordMatcher:o}}function bi(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function xi(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:Gf(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function Gf(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="object"?n[r]:n;return e}function wi(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function Kf(t){return t.reduce((e,n)=>G(e,n.meta),{})}function ki(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function Xf(t,e){let n=0,r=e.length;for(;n!==r;){const a=n+r>>1;vi(t,e[a])<0?r=a:n=a+1}const o=Qf(t);return o&&(r=e.lastIndexOf(o,r-1)),r}function Qf(t){let e=t;for(;e=e.parent;)if(_i(e)&&vi(t,e)===0)return e}function _i({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function Zf(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let r=0;ro&&Co(o)):[r&&Co(r)]).forEach(o=>{o!==void 0&&(e+=(e.length?"&":"")+n,o!=null&&(e+="="+o))})}return e}function Jf(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=It(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return e}const tp=Symbol(""),Ci=Symbol(""),vr=Symbol(""),Si=Symbol(""),Eo=Symbol("");function zn(){let t=[];function e(r){return t.push(r),()=>{const o=t.indexOf(r);o>-1&&t.splice(o,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function ve(t,e,n,r,o,a=s=>s()){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((i,l)=>{const c=m=>{m===!1?l(Ze(4,{from:n,to:e})):m instanceof Error?l(m):If(m)?l(Ze(2,{from:e,to:m})):(s&&r.enterCallbacks[o]===s&&typeof m=="function"&&s.push(m),i())},f=a(()=>t.call(r&&r.instances[o],e,n,c));let d=Promise.resolve(f);t.length<3&&(d=d.then(c)),d.catch(m=>l(m))})}function Ao(t,e,n,r,o=a=>a()){const a=[];for(const s of t)for(const i in s.components){let l=s.components[i];if(!(e!=="beforeRouteEnter"&&!s.instances[i]))if(ei(l)){const c=(l.__vccOpts||l)[e];c&&a.push(ve(c,n,r,s,i,o))}else{let c=l();a.push(()=>c.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${i}" at "${s.path}"`);const d=sf(f)?f.default:f;s.mods[i]=f,s.components[i]=d;const m=(d.__vccOpts||d)[e];return m&&ve(m,n,r,s,i,o)()}))}}return a}function Pi(t){const e=Ft(vr),n=Ft(Si),r=it(()=>{const l=Ce(t.to);return e.resolve(l)}),o=it(()=>{const{matched:l}=r.value,{length:c}=l,f=l[c-1],d=n.matched;if(!f||!d.length)return-1;const m=d.findIndex(Qe.bind(null,f));if(m>-1)return m;const h=Ei(l[c-2]);return c>1&&Ei(f)===h&&d[d.length-1].path!==h?d.findIndex(Qe.bind(null,l[c-2])):m}),a=it(()=>o.value>-1&&op(n.params,r.value.params)),s=it(()=>o.value>-1&&o.value===n.matched.length-1&&li(n.params,r.value.params));function i(l={}){return rp(l)?e[Ce(t.replace)?"replace":"push"](Ce(t.to)).catch(An):Promise.resolve()}return{route:r,href:it(()=>r.value.href),isActive:a,isExactActive:s,navigate:i}}const ep=sn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Pi,setup(t,{slots:e}){const n=hn(Pi(t)),{options:r}=Ft(vr),o=it(()=>({[Ai(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ai(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=e.default&&e.default(n);return t.custom?a:vo("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),np=ep;function rp(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function op(t,e){for(const n in e){const r=e[n],o=t[n];if(typeof r=="string"){if(r!==o)return!1}else if(!It(o)||o.length!==r.length||r.some((a,s)=>a!==o[s]))return!1}return!0}function Ei(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const Ai=(t,e,n)=>t??e??n,ap=sn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=Ft(Eo),o=it(()=>t.route||r.value),a=Ft(Ci,0),s=it(()=>{let c=Ce(a);const{matched:f}=o.value;let d;for(;(d=f[c])&&!d.components;)c++;return c}),i=it(()=>o.value.matched[s.value]);Me(Ci,it(()=>s.value+1)),Me(tp,i),Me(Eo,o);const l=jr();return Te(()=>[l.value,i.value,t.name],([c,f,d],[m,h,P])=>{f&&(f.instances[d]=c,h&&h!==f&&c&&c===m&&(f.leaveGuards.size||(f.leaveGuards=h.leaveGuards),f.updateGuards.size||(f.updateGuards=h.updateGuards))),c&&f&&(!h||!Qe(f,h)||!m)&&(f.enterCallbacks[d]||[]).forEach(S=>S(c))},{flush:"post"}),()=>{const c=o.value,f=t.name,d=i.value,m=d&&d.components[f];if(!m)return ji(n.default,{Component:m,route:c});const h=d.props[f],P=h?h===!0?c.params:typeof h=="function"?h(c):h:null,S=vo(m,G({},P,e,{onVnodeUnmounted:L=>{L.component.isUnmounted&&(d.instances[f]=null)},ref:l}));return ji(n.default,{Component:S,route:c})||S}}});function ji(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const sp=ap;function ip(t){const e=Yf(t.routes,t),n=t.parseQuery||Zf,r=t.stringifyQuery||Oi,o=t.history,a=zn(),s=zn(),i=zn(),l=Pc(ge);let c=ge;Xe&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=_o.bind(null,y=>""+y),d=_o.bind(null,xf),m=_o.bind(null,jn);function h(y,R){let A,F;return di(y)?(A=e.getRecordMatcher(y),F=R):F=y,e.addRoute(F,A)}function P(y){const R=e.getRecordMatcher(y);R&&e.removeRoute(R)}function S(){return e.getRoutes().map(y=>y.record)}function L(y){return!!e.getRecordMatcher(y)}function x(y,R){if(R=G({},R||l.value),typeof y=="string"){const p=So(n,y,R.path),g=e.resolve({path:p.path},R),w=o.createHref(p.fullPath);return G(p,g,{params:m(g.params),hash:jn(p.hash),redirectedFrom:void 0,href:w})}let A;if(y.path!=null)A=G({},y,{path:So(n,y.path,R.path).path});else{const p=G({},y.params);for(const g in p)p[g]==null&&delete p[g];A=G({},y,{params:d(p)}),R.params=d(R.params)}const F=e.resolve(A,R),Y=y.hash||"";F.params=f(m(F.params));const rt=_f(r,G({},y,{hash:vf(Y),path:F.path})),u=o.createHref(rt);return G({fullPath:rt,hash:Y,query:r===Oi?Jf(y.query):y.query||{}},F,{redirectedFrom:void 0,href:u})}function b(y){return typeof y=="string"?So(n,y,l.value.path):G({},y)}function M(y,R){if(c!==y)return Ze(8,{from:R,to:y})}function E(y){return X(y)}function U(y){return E(G(b(y),{replace:!0}))}function ot(y){const R=y.matched[y.matched.length-1];if(R&&R.redirect){const{redirect:A}=R;let F=typeof A=="function"?A(y):A;return typeof F=="string"&&(F=F.includes("?")||F.includes("#")?F=b(F):{path:F},F.params={}),G({query:y.query,hash:y.hash,params:F.path!=null?{}:y.params},F)}}function X(y,R){const A=c=x(y),F=l.value,Y=y.state,rt=y.force,u=y.replace===!0,p=ot(A);if(p)return X(G(b(p),{state:typeof p=="object"?G({},Y,p.state):Y,force:rt,replace:u}),R||A);const g=A;g.redirectedFrom=R;let w;return!rt&&Of(r,F,A)&&(w=Ze(16,{to:g,from:F}),ue(F,F,!0,!1)),(w?Promise.resolve(w):Gt(g,F)).catch(v=>re(v)?re(v,2)?v:ce(v):Pt(v,g,F)).then(v=>{if(v){if(re(v,2))return X(G({replace:u},b(v.to),{state:typeof v.to=="object"?G({},Y,v.to.state):Y,force:rt}),R||g)}else v=Ie(g,F,!0,u,Y);return Oe(g,F,v),v})}function le(y,R){const A=M(y,R);return A?Promise.reject(A):Promise.resolve()}function _e(y){const R=an.values().next().value;return R&&typeof R.runWithContext=="function"?R.runWithContext(y):y()}function Gt(y,R){let A;const[F,Y,rt]=lp(y,R);A=Ao(F.reverse(),"beforeRouteLeave",y,R);for(const p of F)p.leaveGuards.forEach(g=>{A.push(ve(g,y,R))});const u=le.bind(null,y,R);return A.push(u),Nt(A).then(()=>{A=[];for(const p of a.list())A.push(ve(p,y,R));return A.push(u),Nt(A)}).then(()=>{A=Ao(Y,"beforeRouteUpdate",y,R);for(const p of Y)p.updateGuards.forEach(g=>{A.push(ve(g,y,R))});return A.push(u),Nt(A)}).then(()=>{A=[];for(const p of rt)if(p.beforeEnter)if(It(p.beforeEnter))for(const g of p.beforeEnter)A.push(ve(g,y,R));else A.push(ve(p.beforeEnter,y,R));return A.push(u),Nt(A)}).then(()=>(y.matched.forEach(p=>p.enterCallbacks={}),A=Ao(rt,"beforeRouteEnter",y,R,_e),A.push(u),Nt(A))).then(()=>{A=[];for(const p of s.list())A.push(ve(p,y,R));return A.push(u),Nt(A)}).catch(p=>re(p,8)?p:Promise.reject(p))}function Oe(y,R,A){i.list().forEach(F=>_e(()=>F(y,R,A)))}function Ie(y,R,A,F,Y){const rt=M(y,R);if(rt)return rt;const u=R===ge,p=Xe?history.state:{};A&&(F||u?o.replace(y.fullPath,G({scroll:u&&p&&p.scroll},Y)):o.push(y.fullPath,Y)),l.value=y,ue(y,R,A,u),ce()}let Kt;function Un(){Kt||(Kt=o.listen((y,R,A)=>{if(!Er.listening)return;const F=x(y),Y=ot(F);if(Y){X(G(Y,{replace:!0}),F).catch(An);return}c=F;const rt=l.value;Xe&&Rf(ui(rt.fullPath,A.delta),gr()),Gt(F,rt).catch(u=>re(u,12)?u:re(u,2)?(X(u.to,F).then(p=>{re(p,20)&&!A.delta&&A.type===Mn.pop&&o.go(-1,!1)}).catch(An),Promise.reject()):(A.delta&&o.go(-A.delta,!1),Pt(u,F,rt))).then(u=>{u=u||Ie(F,rt,!1),u&&(A.delta&&!re(u,8)?o.go(-A.delta,!1):A.type===Mn.pop&&re(u,20)&&o.go(-1,!1)),Oe(F,rt,u)}).catch(An)}))}let ut=zn(),et=zn(),H;function Pt(y,R,A){ce(y);const F=et.list();return F.length?F.forEach(Y=>Y(y,R,A)):console.error(y),Promise.reject(y)}function Vn(){return H&&l.value!==ge?Promise.resolve():new Promise((y,R)=>{ut.add([y,R])})}function ce(y){return H||(H=!y,Un(),ut.list().forEach(([R,A])=>y?A(y):R()),ut.reset()),y}function ue(y,R,A,F){const{scrollBehavior:Y}=t;if(!Xe||!Y)return Promise.resolve();const rt=!A&&zf(ui(y.fullPath,0))||(F||!A)&&history.state&&history.state.scroll||null;return Mr().then(()=>Y(y,R,rt)).then(u=>u&&Mf(u)).catch(u=>Pt(u,y,R))}const zt=y=>o.go(y);let on;const an=new Set,Er={currentRoute:l,listening:!0,addRoute:h,removeRoute:P,clearRoutes:e.clearRoutes,hasRoute:L,getRoutes:S,resolve:x,options:t,push:E,replace:U,go:zt,back:()=>zt(-1),forward:()=>zt(1),beforeEach:a.add,beforeResolve:s.add,afterEach:i.add,onError:et.add,isReady:Vn,install(y){const R=this;y.component("RouterLink",np),y.component("RouterView",sp),y.config.globalProperties.$router=R,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>Ce(l)}),Xe&&!on&&l.value===ge&&(on=!0,E(o.location).catch(Y=>{}));const A={};for(const Y in ge)Object.defineProperty(A,Y,{get:()=>l.value[Y],enumerable:!0});y.provide(vr,R),y.provide(Si,Da(A)),y.provide(Eo,l);const F=y.unmount;an.add(y),y.unmount=function(){an.delete(y),an.size<1&&(c=ge,Kt&&Kt(),Kt=null,l.value=ge,on=!1,H=!1),F()}}};function Nt(y){return y.reduce((R,A)=>R.then(()=>_e(A)),Promise.resolve())}return Er}function lp(t,e){const n=[],r=[],o=[],a=Math.max(e.matched.length,t.matched.length);for(let s=0;sQe(c,i))?r.push(i):n.push(i));const l=t.matched[s];l&&(e.matched.find(c=>Qe(c,l))||o.push(l))}return[n,r,o]}Wl=function(){return Ft(vr)};const cp=[{path:"/",component:()=>ia(()=>import("./index-a97cc803.js").then(async t=>(await t.__tla,t)),["assets/index-a97cc803.js","assets/index-27fc030f.css"])}],up=ip({history:Df(),routes:cp}),Mi=()=>{};let jo={},Ri={},zi=null,Ni={mark:Mi,measure:Mi};try{typeof window<"u"&&(jo=window),typeof document<"u"&&(Ri=document),typeof MutationObserver<"u"&&(zi=MutationObserver),typeof performance<"u"&&(Ni=performance)}catch{}const{userAgent:Fi=""}=jo.navigator||{},ye=jo,tt=Ri,Li=zi,yr=Ni;ye.document;const oe=!!tt.documentElement&&!!tt.head&&typeof tt.addEventListener=="function"&&typeof tt.createElement=="function",Di=~Fi.indexOf("MSIE")||~Fi.indexOf("Trident/");var nt="classic",Ii="duotone",Ot="sharp",Ct="sharp-duotone",fp=[nt,Ii,Ot,Ct],pp={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},Ti={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},dp=["kit"],mp=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,hp=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,gp={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},vp={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},yp={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},bp={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},xp={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},wp={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},Bi={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},kp=["solid","regular","light","thin","duotone","brands"],$i=[1,2,3,4,5,6,7,8,9,10],_p=$i.concat([11,12,13,14,15,16,17,18,19,20]),Nn={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Op=[...Object.keys(bp),...kp,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Nn.GROUP,Nn.SWAP_OPACITY,Nn.PRIMARY,Nn.SECONDARY].concat($i.map(t=>"".concat(t,"x"))).concat(_p.map(t=>"w-".concat(t))),Cp={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},Sp={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},Pp={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},Ui={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const ae="___FONT_AWESOME___",Mo=16,Vi="fa",Wi="svg-inline--fa",ze="data-fa-i2svg",Ro="data-fa-pseudo-element",Ep="data-fa-pseudo-element-pending",zo="data-prefix",No="data-icon",Hi="fontawesome-i2svg",Ap="async",jp=["HTML","HEAD","STYLE","SCRIPT"],qi=(()=>{try{return!0}catch{return!1}})(),Yi=[nt,Ot,Ct];function Fn(t){return new Proxy(t,{get(e,n){return n in e?e[n]:e[nt]}})}const Gi={...Bi};Gi[nt]={...Bi[nt],...Ti.kit,...Ti["kit-duotone"]};const Ne=Fn(Gi),Fo={...wp};Fo[nt]={...Fo[nt],...Ui.kit,...Ui["kit-duotone"]};const Ln=Fn(Fo),Lo={...xp};Lo[nt]={...Lo[nt],...Pp.kit};const Fe=Fn(Lo),Do={...yp};Do[nt]={...Do[nt],...Sp.kit};const Mp=Fn(Do),Rp=mp,Ki="fa-layers-text",zp=hp,Np={...pp};Fn(Np);const Fp=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Io=Nn,Je=new Set;Object.keys(Ln[nt]).map(Je.add.bind(Je)),Object.keys(Ln[Ot]).map(Je.add.bind(Je)),Object.keys(Ln[Ct]).map(Je.add.bind(Je));const Lp=[...dp,...Op],Dn=ye.FontAwesomeConfig||{};function Dp(t){var e=tt.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}function Ip(t){return t===""?!0:t==="false"?!1:t==="true"?!0:t}tt&&typeof tt.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[e,n]=t;const r=Ip(Dp(e));r!=null&&(Dn[n]=r)});const Xi={styleDefault:"solid",familyDefault:"classic",cssPrefix:Vi,replacementClass:Wi,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Dn.familyPrefix&&(Dn.cssPrefix=Dn.familyPrefix);const tn={...Xi,...Dn};tn.autoReplaceSvg||(tn.observeMutations=!1);const N={};Object.keys(Xi).forEach(t=>{Object.defineProperty(N,t,{enumerable:!0,set:function(e){tn[t]=e,In.forEach(n=>n(N))},get:function(){return tn[t]}})}),Object.defineProperty(N,"familyPrefix",{enumerable:!0,set:function(t){tn.cssPrefix=t,In.forEach(e=>e(N))},get:function(){return tn.cssPrefix}}),ye.FontAwesomeConfig=N;const In=[];function Tp(t){return In.push(t),()=>{In.splice(In.indexOf(t),1)}}const be=Mo,Ht={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Bp(t){if(!t||!oe)return;const e=tt.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;const n=tt.head.childNodes;let r=null;for(let o=n.length-1;o>-1;o--){const a=n[o],s=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=a)}return tt.head.insertBefore(e,r),t}const $p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Tn(){let t=12,e="";for(;t-- >0;)e+=$p[Math.random()*62|0];return e}function en(t){const e=[];for(let n=(t||[]).length>>>0;n--;)e[n]=t[n];return e}function To(t){return t.classList?en(t.classList):(t.getAttribute("class")||"").split(" ").filter(e=>e)}function Qi(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Up(t){return Object.keys(t||{}).reduce((e,n)=>e+"".concat(n,'="').concat(Qi(t[n]),'" '),"").trim()}function br(t){return Object.keys(t||{}).reduce((e,n)=>e+"".concat(n,": ").concat(t[n].trim(),";"),"")}function Bo(t){return t.size!==Ht.size||t.x!==Ht.x||t.y!==Ht.y||t.rotate!==Ht.rotate||t.flipX||t.flipY}function Vp(t){let{transform:e,containerWidth:n,iconWidth:r}=t;const o={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(e.x*32,", ").concat(e.y*32,") "),s="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),i="rotate(".concat(e.rotate," 0 0)"),l={transform:"".concat(a," ").concat(s," ").concat(i)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:l,path:c}}function Wp(t){let{transform:e,width:n=Mo,height:r=Mo,startCentered:o=!1}=t,a="";return o&&Di?a+="translate(".concat(e.x/be-n/2,"em, ").concat(e.y/be-r/2,"em) "):o?a+="translate(calc(-50% + ".concat(e.x/be,"em), calc(-50% + ").concat(e.y/be,"em)) "):a+="translate(".concat(e.x/be,"em, ").concat(e.y/be,"em) "),a+="scale(".concat(e.size/be*(e.flipX?-1:1),", ").concat(e.size/be*(e.flipY?-1:1),") "),a+="rotate(".concat(e.rotate,"deg) "),a}var Hp=`:root, :host { - --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free"; - --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free"; - --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro"; - --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro"; - --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; - --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; - --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; - --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; - --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; - --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp"; - --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone"; -} - -svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { - overflow: visible; - box-sizing: content-box; -} - -.svg-inline--fa { - display: var(--fa-display, inline-block); - height: 1em; - overflow: visible; - vertical-align: -0.125em; -} -.svg-inline--fa.fa-2xs { - vertical-align: 0.1em; -} -.svg-inline--fa.fa-xs { - vertical-align: 0em; -} -.svg-inline--fa.fa-sm { - vertical-align: -0.0714285705em; -} -.svg-inline--fa.fa-lg { - vertical-align: -0.2em; -} -.svg-inline--fa.fa-xl { - vertical-align: -0.25em; -} -.svg-inline--fa.fa-2xl { - vertical-align: -0.3125em; -} -.svg-inline--fa.fa-pull-left { - margin-right: var(--fa-pull-margin, 0.3em); - width: auto; -} -.svg-inline--fa.fa-pull-right { - margin-left: var(--fa-pull-margin, 0.3em); - width: auto; -} -.svg-inline--fa.fa-li { - width: var(--fa-li-width, 2em); - top: 0.25em; -} -.svg-inline--fa.fa-fw { - width: var(--fa-fw-width, 1.25em); -} - -.fa-layers svg.svg-inline--fa { - bottom: 0; - left: 0; - margin: auto; - position: absolute; - right: 0; - top: 0; -} - -.fa-layers-counter, .fa-layers-text { - display: inline-block; - position: absolute; - text-align: center; -} - -.fa-layers { - display: inline-block; - height: 1em; - position: relative; - text-align: center; - vertical-align: -0.125em; - width: 1em; -} -.fa-layers svg.svg-inline--fa { - transform-origin: center center; -} - -.fa-layers-text { - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - transform-origin: center center; -} - -.fa-layers-counter { - background-color: var(--fa-counter-background-color, #ff253a); - border-radius: var(--fa-counter-border-radius, 1em); - box-sizing: border-box; - color: var(--fa-inverse, #fff); - line-height: var(--fa-counter-line-height, 1); - max-width: var(--fa-counter-max-width, 5em); - min-width: var(--fa-counter-min-width, 1.5em); - overflow: hidden; - padding: var(--fa-counter-padding, 0.25em 0.5em); - right: var(--fa-right, 0); - text-overflow: ellipsis; - top: var(--fa-top, 0); - transform: scale(var(--fa-counter-scale, 0.25)); - transform-origin: top right; -} - -.fa-layers-bottom-right { - bottom: var(--fa-bottom, 0); - right: var(--fa-right, 0); - top: auto; - transform: scale(var(--fa-layers-scale, 0.25)); - transform-origin: bottom right; -} - -.fa-layers-bottom-left { - bottom: var(--fa-bottom, 0); - left: var(--fa-left, 0); - right: auto; - top: auto; - transform: scale(var(--fa-layers-scale, 0.25)); - transform-origin: bottom left; -} - -.fa-layers-top-right { - top: var(--fa-top, 0); - right: var(--fa-right, 0); - transform: scale(var(--fa-layers-scale, 0.25)); - transform-origin: top right; -} - -.fa-layers-top-left { - left: var(--fa-left, 0); - right: auto; - top: var(--fa-top, 0); - transform: scale(var(--fa-layers-scale, 0.25)); - transform-origin: top left; -} - -.fa-1x { - font-size: 1em; -} - -.fa-2x { - font-size: 2em; -} - -.fa-3x { - font-size: 3em; -} - -.fa-4x { - font-size: 4em; -} - -.fa-5x { - font-size: 5em; -} - -.fa-6x { - font-size: 6em; -} - -.fa-7x { - font-size: 7em; -} - -.fa-8x { - font-size: 8em; -} - -.fa-9x { - font-size: 9em; -} - -.fa-10x { - font-size: 10em; -} - -.fa-2xs { - font-size: 0.625em; - line-height: 0.1em; - vertical-align: 0.225em; -} - -.fa-xs { - font-size: 0.75em; - line-height: 0.0833333337em; - vertical-align: 0.125em; -} - -.fa-sm { - font-size: 0.875em; - line-height: 0.0714285718em; - vertical-align: 0.0535714295em; -} - -.fa-lg { - font-size: 1.25em; - line-height: 0.05em; - vertical-align: -0.075em; -} - -.fa-xl { - font-size: 1.5em; - line-height: 0.0416666682em; - vertical-align: -0.125em; -} - -.fa-2xl { - font-size: 2em; - line-height: 0.03125em; - vertical-align: -0.1875em; -} - -.fa-fw { - text-align: center; - width: 1.25em; -} - -.fa-ul { - list-style-type: none; - margin-left: var(--fa-li-margin, 2.5em); - padding-left: 0; -} -.fa-ul > li { - position: relative; -} - -.fa-li { - left: calc(-1 * var(--fa-li-width, 2em)); - position: absolute; - text-align: center; - width: var(--fa-li-width, 2em); - line-height: inherit; -} - -.fa-border { - border-color: var(--fa-border-color, #eee); - border-radius: var(--fa-border-radius, 0.1em); - border-style: var(--fa-border-style, solid); - border-width: var(--fa-border-width, 0.08em); - padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); -} - -.fa-pull-left { - float: left; - margin-right: var(--fa-pull-margin, 0.3em); -} - -.fa-pull-right { - float: right; - margin-left: var(--fa-pull-margin, 0.3em); -} - -.fa-beat { - animation-name: fa-beat; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-bounce { - animation-name: fa-bounce; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); -} - -.fa-fade { - animation-name: fa-fade; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); -} - -.fa-beat-fade { - animation-name: fa-beat-fade; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); -} - -.fa-flip { - animation-name: fa-flip; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, ease-in-out); -} - -.fa-shake { - animation-name: fa-shake; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-spin { - animation-name: fa-spin; - animation-delay: var(--fa-animation-delay, 0s); - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 2s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, linear); -} - -.fa-spin-reverse { - --fa-animation-direction: reverse; -} - -.fa-pulse, -.fa-spin-pulse { - animation-name: fa-spin; - animation-direction: var(--fa-animation-direction, normal); - animation-duration: var(--fa-animation-duration, 1s); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-timing-function: var(--fa-animation-timing, steps(8)); -} - -@media (prefers-reduced-motion: reduce) { - .fa-beat, -.fa-bounce, -.fa-fade, -.fa-beat-fade, -.fa-flip, -.fa-pulse, -.fa-shake, -.fa-spin, -.fa-spin-pulse { - animation-delay: -1ms; - animation-duration: 1ms; - animation-iteration-count: 1; - transition-delay: 0s; - transition-duration: 0s; - } -} -@keyframes fa-beat { - 0%, 90% { - transform: scale(1); - } - 45% { - transform: scale(var(--fa-beat-scale, 1.25)); - } -} -@keyframes fa-bounce { - 0% { - transform: scale(1, 1) translateY(0); - } - 10% { - transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - } - 30% { - transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - } - 50% { - transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - } - 57% { - transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - } - 64% { - transform: scale(1, 1) translateY(0); - } - 100% { - transform: scale(1, 1) translateY(0); - } -} -@keyframes fa-fade { - 50% { - opacity: var(--fa-fade-opacity, 0.4); - } -} -@keyframes fa-beat-fade { - 0%, 100% { - opacity: var(--fa-beat-fade-opacity, 0.4); - transform: scale(1); - } - 50% { - opacity: 1; - transform: scale(var(--fa-beat-fade-scale, 1.125)); - } -} -@keyframes fa-flip { - 50% { - transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - } -} -@keyframes fa-shake { - 0% { - transform: rotate(-15deg); - } - 4% { - transform: rotate(15deg); - } - 8%, 24% { - transform: rotate(-18deg); - } - 12%, 28% { - transform: rotate(18deg); - } - 16% { - transform: rotate(-22deg); - } - 20% { - transform: rotate(22deg); - } - 32% { - transform: rotate(-12deg); - } - 36% { - transform: rotate(12deg); - } - 40%, 100% { - transform: rotate(0deg); - } -} -@keyframes fa-spin { - 0% { - transform: rotate(0deg); - } - 100% { - transform: rotate(360deg); - } -} -.fa-rotate-90 { - transform: rotate(90deg); -} - -.fa-rotate-180 { - transform: rotate(180deg); -} - -.fa-rotate-270 { - transform: rotate(270deg); -} - -.fa-flip-horizontal { - transform: scale(-1, 1); -} - -.fa-flip-vertical { - transform: scale(1, -1); -} - -.fa-flip-both, -.fa-flip-horizontal.fa-flip-vertical { - transform: scale(-1, -1); -} - -.fa-rotate-by { - transform: rotate(var(--fa-rotate-angle, 0)); -} - -.fa-stack { - display: inline-block; - vertical-align: middle; - height: 2em; - position: relative; - width: 2.5em; -} - -.fa-stack-1x, -.fa-stack-2x { - bottom: 0; - left: 0; - margin: auto; - position: absolute; - right: 0; - top: 0; - z-index: var(--fa-stack-z-index, auto); -} - -.svg-inline--fa.fa-stack-1x { - height: 1em; - width: 1.25em; -} -.svg-inline--fa.fa-stack-2x { - height: 2em; - width: 2.5em; -} - -.fa-inverse { - color: var(--fa-inverse, #fff); -} - -.sr-only, -.fa-sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - white-space: nowrap; - border-width: 0; -} - -.sr-only-focusable:not(:focus), -.fa-sr-only-focusable:not(:focus) { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - margin: -1px; - overflow: hidden; - clip: rect(0, 0, 0, 0); - white-space: nowrap; - border-width: 0; -} - -.svg-inline--fa .fa-primary { - fill: var(--fa-primary-color, currentColor); - opacity: var(--fa-primary-opacity, 1); -} - -.svg-inline--fa .fa-secondary { - fill: var(--fa-secondary-color, currentColor); - opacity: var(--fa-secondary-opacity, 0.4); -} - -.svg-inline--fa.fa-swap-opacity .fa-primary { - opacity: var(--fa-secondary-opacity, 0.4); -} - -.svg-inline--fa.fa-swap-opacity .fa-secondary { - opacity: var(--fa-primary-opacity, 1); -} - -.svg-inline--fa mask .fa-primary, -.svg-inline--fa mask .fa-secondary { - fill: black; -} - -.fad.fa-inverse, -.fa-duotone.fa-inverse { - color: var(--fa-inverse, #fff); -}`;function Zi(){const t=Vi,e=Wi,n=N.cssPrefix,r=N.replacementClass;let o=Hp;if(n!==t||r!==e){const a=new RegExp("\\.".concat(t,"\\-"),"g"),s=new RegExp("\\--".concat(t,"\\-"),"g"),i=new RegExp("\\.".concat(e),"g");o=o.replace(a,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(i,".".concat(r))}return o}let Ji=!1;function $o(){N.autoAddCss&&!Ji&&(Bp(Zi()),Ji=!0)}var qp={mixout(){return{dom:{css:Zi,insertCss:$o}}},hooks(){return{beforeDOMElementCreation(){$o()},beforeI2svg(){$o()}}}};const se=ye||{};se[ae]||(se[ae]={}),se[ae].styles||(se[ae].styles={}),se[ae].hooks||(se[ae].hooks={}),se[ae].shims||(se[ae].shims=[]);var qt=se[ae];const tl=[],el=function(){tt.removeEventListener("DOMContentLoaded",el),xr=1,tl.map(t=>t())};let xr=!1;oe&&(xr=(tt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(tt.readyState),xr||tt.addEventListener("DOMContentLoaded",el));function Yp(t){oe&&(xr?setTimeout(t,0):tl.push(t))}function Bn(t){const{tag:e,attributes:n={},children:r=[]}=t;return typeof t=="string"?Qi(t):"<".concat(e," ").concat(Up(n),">").concat(r.map(Bn).join(""),"")}function nl(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}var Gp=function(t,e){return function(n,r,o,a){return t.call(e,n,r,o,a)}},Uo=function(t,e,n,r){var o=Object.keys(t),a=o.length,s=r!==void 0?Gp(e,r):e,i,l,c;for(n===void 0?(i=1,c=t[o[0]]):(i=0,c=n);i=55296&&o<=56319&&n=55296&&r<=56319&&n>e+1&&(o=t.charCodeAt(e+1),o>=56320&&o<=57343)?(r-55296)*1024+o-56320+65536:r}function ol(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return r.icon?e[r.iconName]=r.icon:e[n]=r,e},{})}function Vo(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,o=ol(e);typeof qt.hooks.addPack=="function"&&!r?qt.hooks.addPack(t,ol(e)):qt.styles[t]={...qt.styles[t]||{},...o},t==="fas"&&Vo("fa",e)}const{styles:Le,shims:Qp}=qt,Zp={[nt]:Object.values(Fe[nt]),[Ot]:Object.values(Fe[Ot]),[Ct]:Object.values(Fe[Ct])};let Wo=null,al={},sl={},il={},ll={},cl={};const Jp={[nt]:Object.keys(Ne[nt]),[Ot]:Object.keys(Ne[Ot]),[Ct]:Object.keys(Ne[Ct])};function td(t){return~Lp.indexOf(t)}function ed(t,e){const n=e.split("-"),r=n[0],o=n.slice(1).join("-");return r===t&&o!==""&&!td(o)?o:null}const ul=()=>{const t=r=>Uo(Le,(o,a,s)=>(o[s]=Uo(a,r,{}),o),{});al=t((r,o,a)=>(o[3]&&(r[o[3]]=a),o[2]&&o[2].filter(s=>typeof s=="number").forEach(s=>{r[s.toString(16)]=a}),r)),sl=t((r,o,a)=>(r[a]=a,o[2]&&o[2].filter(s=>typeof s=="string").forEach(s=>{r[s]=a}),r)),cl=t((r,o,a)=>{const s=o[2];return r[a]=a,s.forEach(i=>{r[i]=a}),r});const e="far"in Le||N.autoFetchSvg,n=Uo(Qp,(r,o)=>{const a=o[0];let s=o[1];const i=o[2];return s==="far"&&!e&&(s="fas"),typeof a=="string"&&(r.names[a]={prefix:s,iconName:i}),typeof a=="number"&&(r.unicodes[a.toString(16)]={prefix:s,iconName:i}),r},{names:{},unicodes:{}});il=n.names,ll=n.unicodes,Wo=wr(N.styleDefault,{family:N.familyDefault})};Tp(t=>{Wo=wr(t.styleDefault,{family:N.familyDefault})}),ul();function Ho(t,e){return(al[t]||{})[e]}function nd(t,e){return(sl[t]||{})[e]}function xe(t,e){return(cl[t]||{})[e]}function fl(t){return il[t]||{prefix:null,iconName:null}}function rd(t){const e=ll[t],n=Ho("fas",t);return e||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function we(){return Wo}const qo=()=>({prefix:null,iconName:null,rest:[]});function wr(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=nt}=e,r=Ne[n][t],o=Ln[n][t]||Ln[n][r],a=t in qt.styles?t:null;return o||a||null}const od={[nt]:Object.keys(Fe[nt]),[Ot]:Object.keys(Fe[Ot]),[Ct]:Object.keys(Fe[Ct])};function kr(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=e,r={[nt]:"".concat(N.cssPrefix,"-").concat(nt),[Ot]:"".concat(N.cssPrefix,"-").concat(Ot),[Ct]:"".concat(N.cssPrefix,"-").concat(Ct)};let o=null,a=nt;const s=fp.filter(l=>l!==Ii);s.forEach(l=>{(t.includes(r[l])||t.some(c=>od[l].includes(c)))&&(a=l)});const i=t.reduce((l,c)=>{const f=ed(N.cssPrefix,c);if(Le[c]?(c=Zp[a].includes(c)?Mp[a][c]:c,o=c,l.prefix=c):Jp[a].indexOf(c)>-1?(o=c,l.prefix=wr(c,{family:a})):f?l.iconName=f:c!==N.replacementClass&&!s.some(d=>c===r[d])&&l.rest.push(c),!n&&l.prefix&&l.iconName){const d=o==="fa"?fl(l.iconName):{},m=xe(l.prefix,l.iconName);d.prefix&&(o=null),l.iconName=d.iconName||m||l.iconName,l.prefix=d.prefix||l.prefix,l.prefix==="far"&&!Le.far&&Le.fas&&!N.autoFetchSvg&&(l.prefix="fas")}return l},qo());return(t.includes("fa-brands")||t.includes("fab"))&&(i.prefix="fab"),(t.includes("fa-duotone")||t.includes("fad"))&&(i.prefix="fad"),!i.prefix&&a===Ot&&(Le.fass||N.autoFetchSvg)&&(i.prefix="fass",i.iconName=xe(i.prefix,i.iconName)||i.iconName),!i.prefix&&a===Ct&&(Le.fasds||N.autoFetchSvg)&&(i.prefix="fasds",i.iconName=xe(i.prefix,i.iconName)||i.iconName),(i.prefix==="fa"||o==="fa")&&(i.prefix=we()||"fas"),i}class ad{constructor(){this.definitions={}}add(){for(var e=arguments.length,n=new Array(e),r=0;r{this.definitions[a]={...this.definitions[a]||{},...o[a]},Vo(a,o[a]);const s=Fe[nt][a];s&&Vo(s,o[a]),ul()})}reset(){this.definitions={}}_pullDefinitions(e,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(o=>{const{prefix:a,iconName:s,icon:i}=r[o],l=i[2];e[a]||(e[a]={}),l.length>0&&l.forEach(c=>{typeof c=="string"&&(e[a][c]=i)}),e[a][s]=i}),e}}let pl=[],nn={};const rn={},sd=Object.keys(rn);function id(t,e){let{mixoutsTo:n}=e;return pl=t,nn={},Object.keys(rn).forEach(r=>{sd.indexOf(r)===-1&&delete rn[r]}),pl.forEach(r=>{const o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(a=>{typeof o[a]=="function"&&(n[a]=o[a]),typeof o[a]=="object"&&Object.keys(o[a]).forEach(s=>{n[a]||(n[a]={}),n[a][s]=o[a][s]})}),r.hooks){const a=r.hooks();Object.keys(a).forEach(s=>{nn[s]||(nn[s]=[]),nn[s].push(a[s])})}r.provides&&r.provides(rn)}),n}function Yo(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o{e=a.apply(null,[e,...r])}),e}function De(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r{o.apply(null,n)})}function ke(){const t=arguments[0],e=Array.prototype.slice.call(arguments,1);return rn[t]?rn[t].apply(null,e):void 0}function Go(t){t.prefix==="fa"&&(t.prefix="fas");let{iconName:e}=t;const n=t.prefix||we();if(e)return e=xe(n,e)||e,nl(dl.definitions,n,e)||nl(qt.styles,n,e)}const dl=new ad,ld=()=>{N.autoReplaceSvg=!1,N.observeMutations=!1,De("noAuto")},cd={i2svg:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return oe?(De("beforeI2svg",t),ke("pseudoElements2svg",t),ke("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:e}=t;N.autoReplaceSvg===!1&&(N.autoReplaceSvg=!0),N.observeMutations=!0,Yp(()=>{fd({autoReplaceSvgRoot:e}),De("watch",t)})}},ud={icon:t=>{if(t===null)return null;if(typeof t=="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:xe(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){const e=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],n=wr(t[0]);return{prefix:n,iconName:xe(n,e)||e}}if(typeof t=="string"&&(t.indexOf("".concat(N.cssPrefix,"-"))>-1||t.match(Rp))){const e=kr(t.split(" "),{skipLookups:!0});return{prefix:e.prefix||we(),iconName:xe(e.prefix,e.iconName)||e.iconName}}if(typeof t=="string"){const e=we();return{prefix:e,iconName:xe(e,t)||t}}}},St={noAuto:ld,config:N,dom:cd,parse:ud,library:dl,findIconDefinition:Go,toHtml:Bn},fd=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:e=tt}=t;(Object.keys(qt.styles).length>0||N.autoFetchSvg)&&oe&&N.autoReplaceSvg&&St.dom.i2svg({node:e})};function _r(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(n=>Bn(n))}}),Object.defineProperty(t,"node",{get:function(){if(!oe)return;const n=tt.createElement("div");return n.innerHTML=t.html,n.children}}),t}function pd(t){let{children:e,main:n,mask:r,attributes:o,styles:a,transform:s}=t;if(Bo(s)&&n.found&&!r.found){const{width:i,height:l}=n,c={x:i/l/2,y:.5};o.style=br({...a,"transform-origin":"".concat(c.x+s.x/16,"em ").concat(c.y+s.y/16,"em")})}return[{tag:"svg",attributes:o,children:e}]}function dd(t){let{prefix:e,iconName:n,children:r,attributes:o,symbol:a}=t;const s=a===!0?"".concat(e,"-").concat(N.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...o,id:s},children:r}]}]}function Ko(t){const{icons:{main:e,mask:n},prefix:r,iconName:o,transform:a,symbol:s,title:i,maskId:l,titleId:c,extra:f,watchable:d=!1}=t,{width:m,height:h}=n.found?n:e,P=r==="fak",S=[N.replacementClass,o?"".concat(N.cssPrefix,"-").concat(o):""].filter(U=>f.classes.indexOf(U)===-1).filter(U=>U!==""||!!U).concat(f.classes).join(" ");let L={children:[],attributes:{...f.attributes,"data-prefix":r,"data-icon":o,class:S,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(m," ").concat(h)}};const x=P&&!~f.classes.indexOf("fa-fw")?{width:"".concat(m/h*16*.0625,"em")}:{};d&&(L.attributes[ze]=""),i&&(L.children.push({tag:"title",attributes:{id:L.attributes["aria-labelledby"]||"title-".concat(c||Tn())},children:[i]}),delete L.attributes.title);const b={...L,prefix:r,iconName:o,main:e,mask:n,maskId:l,transform:a,symbol:s,styles:{...x,...f.styles}},{children:M,attributes:E}=n.found&&e.found?ke("generateAbstractMask",b)||{children:[],attributes:{}}:ke("generateAbstractIcon",b)||{children:[],attributes:{}};return b.children=M,b.attributes=E,s?dd(b):pd(b)}function ml(t){const{content:e,width:n,height:r,transform:o,title:a,extra:s,watchable:i=!1}=t,l={...s.attributes,...a?{title:a}:{},class:s.classes.join(" ")};i&&(l[ze]="");const c={...s.styles};Bo(o)&&(c.transform=Wp({transform:o,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const f=br(c);f.length>0&&(l.style=f);const d=[];return d.push({tag:"span",attributes:l,children:[e]}),a&&d.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),d}function md(t){const{content:e,title:n,extra:r}=t,o={...r.attributes,...n?{title:n}:{},class:r.classes.join(" ")},a=br(r.styles);a.length>0&&(o.style=a);const s=[];return s.push({tag:"span",attributes:o,children:[e]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}const{styles:Xo}=qt;function Qo(t){const e=t[0],n=t[1],[r]=t.slice(4);let o=null;return Array.isArray(r)?o={tag:"g",attributes:{class:"".concat(N.cssPrefix,"-").concat(Io.GROUP)},children:[{tag:"path",attributes:{class:"".concat(N.cssPrefix,"-").concat(Io.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(N.cssPrefix,"-").concat(Io.PRIMARY),fill:"currentColor",d:r[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:e,height:n,icon:o}}const hd={found:!1,width:512,height:512};function gd(t,e){!qi&&!N.showMissingIcons&&t&&console.error('Icon with name "'.concat(t,'" and prefix "').concat(e,'" is missing.'))}function Zo(t,e){let n=e;return e==="fa"&&N.styleDefault!==null&&(e=we()),new Promise((r,o)=>{if(n==="fa"){const a=fl(t)||{};t=a.iconName||t,e=a.prefix||e}if(t&&e&&Xo[e]&&Xo[e][t]){const a=Xo[e][t];return r(Qo(a))}gd(t,e),r({...hd,icon:N.showMissingIcons&&t?ke("missingIconAbstract")||{}:{}})})}const hl=()=>{},Jo=N.measurePerformance&&yr&&yr.mark&&yr.measure?yr:{mark:hl,measure:hl},$n='FA "6.6.0"',vd=t=>(Jo.mark("".concat($n," ").concat(t," begins")),()=>gl(t)),gl=t=>{Jo.mark("".concat($n," ").concat(t," ends")),Jo.measure("".concat($n," ").concat(t),"".concat($n," ").concat(t," begins"),"".concat($n," ").concat(t," ends"))};var ta={begin:vd,end:gl};const Or=()=>{};function vl(t){return typeof(t.getAttribute?t.getAttribute(ze):null)=="string"}function yd(t){const e=t.getAttribute?t.getAttribute(zo):null,n=t.getAttribute?t.getAttribute(No):null;return e&&n}function bd(t){return t&&t.classList&&t.classList.contains&&t.classList.contains(N.replacementClass)}function xd(){return N.autoReplaceSvg===!0?Cr.replace:Cr[N.autoReplaceSvg]||Cr.replace}function wd(t){return tt.createElementNS("http://www.w3.org/2000/svg",t)}function kd(t){return tt.createElement(t)}function yl(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=t.tag==="svg"?wd:kd}=e;if(typeof t=="string")return tt.createTextNode(t);const r=n(t.tag);return Object.keys(t.attributes||[]).forEach(function(o){r.setAttribute(o,t.attributes[o])}),(t.children||[]).forEach(function(o){r.appendChild(yl(o,{ceFn:n}))}),r}function _d(t){let e=" ".concat(t.outerHTML," ");return e="".concat(e,"Font Awesome fontawesome.com "),e}const Cr={replace:function(t){const e=t[0];if(e.parentNode)if(t[1].forEach(n=>{e.parentNode.insertBefore(yl(n),e)}),e.getAttribute(ze)===null&&N.keepOriginalSource){let n=tt.createComment(_d(e));e.parentNode.replaceChild(n,e)}else e.remove()},nest:function(t){const e=t[0],n=t[1];if(~To(e).indexOf(N.replacementClass))return Cr.replace(t);const r=new RegExp("".concat(N.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const a=n[0].attributes.class.split(" ").reduce((s,i)=>(i===N.replacementClass||i.match(r)?s.toSvg.push(i):s.toNode.push(i),s),{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?e.removeAttribute("class"):e.setAttribute("class",a.toNode.join(" "))}const o=n.map(a=>Bn(a)).join(` -`);e.setAttribute(ze,""),e.innerHTML=o}};function bl(t){t()}function xl(t,e){const n=typeof e=="function"?e:Or;if(t.length===0)n();else{let r=bl;N.mutateApproach===Ap&&(r=ye.requestAnimationFrame||bl),r(()=>{const o=xd(),a=ta.begin("mutate");t.map(o),a(),n()})}}let ea=!1;function wl(){ea=!0}function na(){ea=!1}let Sr=null;function kl(t){if(!Li||!N.observeMutations)return;const{treeCallback:e=Or,nodeCallback:n=Or,pseudoElementsCallback:r=Or,observeMutationsRoot:o=tt}=t;Sr=new Li(a=>{if(ea)return;const s=we();en(a).forEach(i=>{if(i.type==="childList"&&i.addedNodes.length>0&&!vl(i.addedNodes[0])&&(N.searchPseudoElements&&r(i.target),e(i.target)),i.type==="attributes"&&i.target.parentNode&&N.searchPseudoElements&&r(i.target.parentNode),i.type==="attributes"&&vl(i.target)&&~Fp.indexOf(i.attributeName))if(i.attributeName==="class"&&yd(i.target)){const{prefix:l,iconName:c}=kr(To(i.target));i.target.setAttribute(zo,l||s),c&&i.target.setAttribute(No,c)}else bd(i.target)&&n(i.target)})}),oe&&Sr.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Od(){Sr&&Sr.disconnect()}function Cd(t){const e=t.getAttribute("style");let n=[];return e&&(n=e.split(";").reduce((r,o)=>{const a=o.split(":"),s=a[0],i=a.slice(1);return s&&i.length>0&&(r[s]=i.join(":").trim()),r},{})),n}function Sd(t){const e=t.getAttribute("data-prefix"),n=t.getAttribute("data-icon"),r=t.innerText!==void 0?t.innerText.trim():"";let o=kr(To(t));return o.prefix||(o.prefix=we()),e&&n&&(o.prefix=e,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=nd(o.prefix,t.innerText)||Ho(o.prefix,rl(t.innerText))),!o.iconName&&N.autoFetchSvg&&t.firstChild&&t.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=t.firstChild.data)),o}function Pd(t){const e=en(t.attributes).reduce((o,a)=>(o.name!=="class"&&o.name!=="style"&&(o[a.name]=a.value),o),{}),n=t.getAttribute("title"),r=t.getAttribute("data-fa-title-id");return N.autoA11y&&(n?e["aria-labelledby"]="".concat(N.replacementClass,"-title-").concat(r||Tn()):(e["aria-hidden"]="true",e.focusable="false")),e}function Ed(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Ht,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function _l(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=Sd(t),a=Pd(t),s=Yo("parseNodeAttributes",{},t);let i=e.styleParser?Cd(t):[];return{iconName:n,title:t.getAttribute("title"),titleId:t.getAttribute("data-fa-title-id"),prefix:r,transform:Ht,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:i,attributes:a},...s}}const{styles:Ad}=qt;function Ol(t){const e=N.autoReplaceSvg==="nest"?_l(t,{styleParser:!1}):_l(t);return~e.extra.classes.indexOf(Ki)?ke("generateLayersText",t,e):ke("generateSvgReplacementMutation",t,e)}let Yt=new Set;Yi.map(t=>{Yt.add("fa-".concat(t))}),Object.keys(Ne[nt]).map(Yt.add.bind(Yt)),Object.keys(Ne[Ot]).map(Yt.add.bind(Yt)),Object.keys(Ne[Ct]).map(Yt.add.bind(Yt)),Yt=[...Yt];function Cl(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!oe)return Promise.resolve();const n=tt.documentElement.classList,r=f=>n.add("".concat(Hi,"-").concat(f)),o=f=>n.remove("".concat(Hi,"-").concat(f)),a=N.autoFetchSvg?Yt:Yi.map(f=>"fa-".concat(f)).concat(Object.keys(Ad));a.includes("fa")||a.push("fa");const s=[".".concat(Ki,":not([").concat(ze,"])")].concat(a.map(f=>".".concat(f,":not([").concat(ze,"])"))).join(", ");if(s.length===0)return Promise.resolve();let i=[];try{i=en(t.querySelectorAll(s))}catch{}if(i.length>0)r("pending"),o("complete");else return Promise.resolve();const l=ta.begin("onTree"),c=i.reduce((f,d)=>{try{const m=Ol(d);m&&f.push(m)}catch(m){qi||m.name==="MissingIcon"&&console.error(m)}return f},[]);return new Promise((f,d)=>{Promise.all(c).then(m=>{xl(m,()=>{r("active"),r("complete"),o("pending"),typeof e=="function"&&e(),l(),f()})}).catch(m=>{l(),d(m)})})}function jd(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Ol(t).then(n=>{n&&xl([n],e)})}function Md(t){return function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(e||{}).icon?e:Go(e||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:Go(o||{})),t(r,{...n,mask:o})}}const Rd=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Ht,symbol:r=!1,mask:o=null,maskId:a=null,title:s=null,titleId:i=null,classes:l=[],attributes:c={},styles:f={}}=e;if(!t)return;const{prefix:d,iconName:m,icon:h}=t;return _r({type:"icon",...t},()=>(De("beforeDOMElementCreation",{iconDefinition:t,params:e}),N.autoA11y&&(s?c["aria-labelledby"]="".concat(N.replacementClass,"-title-").concat(i||Tn()):(c["aria-hidden"]="true",c.focusable="false")),Ko({icons:{main:Qo(h),mask:o?Qo(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:m,transform:{...Ht,...n},symbol:r,title:s,maskId:a,titleId:i,extra:{attributes:c,styles:f,classes:l}})))};var zd={mixout(){return{icon:Md(Rd)}},hooks(){return{mutationObserverCallbacks(t){return t.treeCallback=Cl,t.nodeCallback=jd,t}}},provides(t){t.i2svg=function(e){const{node:n=tt,callback:r=()=>{}}=e;return Cl(n,r)},t.generateSvgReplacementMutation=function(e,n){const{iconName:r,title:o,titleId:a,prefix:s,transform:i,symbol:l,mask:c,maskId:f,extra:d}=n;return new Promise((m,h)=>{Promise.all([Zo(r,s),c.iconName?Zo(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(P=>{let[S,L]=P;m([e,Ko({icons:{main:S,mask:L},prefix:s,iconName:r,transform:i,symbol:l,maskId:f,title:o,titleId:a,extra:d,watchable:!0})])}).catch(h)})},t.generateAbstractIcon=function(e){let{children:n,attributes:r,main:o,transform:a,styles:s}=e;const i=br(s);i.length>0&&(r.style=i);let l;return Bo(a)&&(l=ke("generateAbstractTransformGrouping",{main:o,transform:a,containerWidth:o.width,iconWidth:o.width})),n.push(l||o.icon),{children:n,attributes:r}}}},Nd={mixout(){return{layer(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=e;return _r({type:"layer"},()=>{De("beforeDOMElementCreation",{assembler:t,params:e});let r=[];return t(o=>{Array.isArray(o)?o.map(a=>{r=r.concat(a.abstract)}):r=r.concat(o.abstract)}),[{tag:"span",attributes:{class:["".concat(N.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},Fd={mixout(){return{counter(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:o={},styles:a={}}=e;return _r({type:"counter",content:t},()=>(De("beforeDOMElementCreation",{content:t,params:e}),md({content:t.toString(),title:n,extra:{attributes:o,styles:a,classes:["".concat(N.cssPrefix,"-layers-counter"),...r]}})))}}}},Ld={mixout(){return{text(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Ht,title:r=null,classes:o=[],attributes:a={},styles:s={}}=e;return _r({type:"text",content:t},()=>(De("beforeDOMElementCreation",{content:t,params:e}),ml({content:t,transform:{...Ht,...n},title:r,extra:{attributes:a,styles:s,classes:["".concat(N.cssPrefix,"-layers-text"),...o]}})))}}},provides(t){t.generateLayersText=function(e,n){const{title:r,transform:o,extra:a}=n;let s=null,i=null;if(Di){const l=parseInt(getComputedStyle(e).fontSize,10),c=e.getBoundingClientRect();s=c.width/l,i=c.height/l}return N.autoA11y&&!r&&(a.attributes["aria-hidden"]="true"),Promise.resolve([e,ml({content:e.innerHTML,width:s,height:i,transform:o,title:r,extra:a,watchable:!0})])}}};const Dd=new RegExp('"',"ug"),Sl=[1105920,1112319],Pl={FontAwesome:{normal:"fas",400:"fas"},...vp,...gp,...Cp},ra=Object.keys(Pl).reduce((t,e)=>(t[e.toLowerCase()]=Pl[e],t),{}),Id=Object.keys(ra).reduce((t,e)=>{const n=ra[e];return t[e]=n[900]||[...Object.entries(n)][0][1],t},{});function Td(t){const e=t.replace(Dd,""),n=Xp(e,0),r=n>=Sl[0]&&n<=Sl[1],o=e.length===2?e[0]===e[1]:!1;return{value:rl(o?e[0]:e),isSecondary:r||o}}function Bd(t,e){const n=t.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(e),o=isNaN(r)?"normal":r;return(ra[n]||{})[o]||Id[n]}function El(t,e){const n="".concat(Ep).concat(e.replace(":","-"));return new Promise((r,o)=>{if(t.getAttribute(n)!==null)return r();const a=en(t.children).filter(d=>d.getAttribute(Ro)===e)[0],s=ye.getComputedStyle(t,e),i=s.getPropertyValue("font-family"),l=i.match(zp),c=s.getPropertyValue("font-weight"),f=s.getPropertyValue("content");if(a&&!l)return t.removeChild(a),r();if(l&&f!=="none"&&f!==""){const d=s.getPropertyValue("content");let m=Bd(i,c);const{value:h,isSecondary:P}=Td(d),S=l[0].startsWith("FontAwesome");let L=Ho(m,h),x=L;if(S){const b=rd(h);b.iconName&&b.prefix&&(L=b.iconName,m=b.prefix)}if(L&&!P&&(!a||a.getAttribute(zo)!==m||a.getAttribute(No)!==x)){t.setAttribute(n,x),a&&t.removeChild(a);const b=Ed(),{extra:M}=b;M.attributes[Ro]=e,Zo(L,m).then(E=>{const U=Ko({...b,icons:{main:E,mask:qo()},prefix:m,iconName:x,extra:M,watchable:!0}),ot=tt.createElementNS("http://www.w3.org/2000/svg","svg");e==="::before"?t.insertBefore(ot,t.firstChild):t.appendChild(ot),ot.outerHTML=U.map(X=>Bn(X)).join(` -`),t.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function $d(t){return Promise.all([El(t,"::before"),El(t,"::after")])}function Ud(t){return t.parentNode!==document.head&&!~jp.indexOf(t.tagName.toUpperCase())&&!t.getAttribute(Ro)&&(!t.parentNode||t.parentNode.tagName!=="svg")}function Al(t){if(oe)return new Promise((e,n)=>{const r=en(t.querySelectorAll("*")).filter(Ud).map($d),o=ta.begin("searchPseudoElements");wl(),Promise.all(r).then(()=>{o(),na(),e()}).catch(()=>{o(),na(),n()})})}var Vd={hooks(){return{mutationObserverCallbacks(t){return t.pseudoElementsCallback=Al,t}}},provides(t){t.pseudoElements2svg=function(e){const{node:n=tt}=e;N.searchPseudoElements&&Al(n)}}};let jl=!1;var Wd={mixout(){return{dom:{unwatch(){wl(),jl=!0}}}},hooks(){return{bootstrap(){kl(Yo("mutationObserverCallbacks",{}))},noAuto(){Od()},watch(t){const{observeMutationsRoot:e}=t;jl?na():kl(Yo("mutationObserverCallbacks",{observeMutationsRoot:e}))}}}};const Ml=t=>{let e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce((n,r)=>{const o=r.toLowerCase().split("-"),a=o[0];let s=o.slice(1).join("-");if(a&&s==="h")return n.flipX=!0,n;if(a&&s==="v")return n.flipY=!0,n;if(s=parseFloat(s),isNaN(s))return n;switch(a){case"grow":n.size=n.size+s;break;case"shrink":n.size=n.size-s;break;case"left":n.x=n.x-s;break;case"right":n.x=n.x+s;break;case"up":n.y=n.y-s;break;case"down":n.y=n.y+s;break;case"rotate":n.rotate=n.rotate+s;break}return n},e)};var Hd={mixout(){return{parse:{transform:t=>Ml(t)}}},hooks(){return{parseNodeAttributes(t,e){const n=e.getAttribute("data-fa-transform");return n&&(t.transform=Ml(n)),t}}},provides(t){t.generateAbstractTransformGrouping=function(e){let{main:n,transform:r,containerWidth:o,iconWidth:a}=e;const s={transform:"translate(".concat(o/2," 256)")},i="translate(".concat(r.x*32,", ").concat(r.y*32,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),c="rotate(".concat(r.rotate," 0 0)"),f={transform:"".concat(i," ").concat(l," ").concat(c)},d={transform:"translate(".concat(a/2*-1," -256)")},m={outer:s,inner:f,path:d};return{tag:"g",attributes:{...m.outer},children:[{tag:"g",attributes:{...m.inner},children:[{tag:n.icon.tag,children:n.icon.children,attributes:{...n.icon.attributes,...m.path}}]}]}}}};const oa={x:0,y:0,width:"100%",height:"100%"};function Rl(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t.attributes&&(t.attributes.fill||e)&&(t.attributes.fill="black"),t}function qd(t){return t.tag==="g"?t.children:[t]}var Yd={hooks(){return{parseNodeAttributes(t,e){const n=e.getAttribute("data-fa-mask"),r=n?kr(n.split(" ").map(o=>o.trim())):qo();return r.prefix||(r.prefix=we()),t.mask=r,t.maskId=e.getAttribute("data-fa-mask-id"),t}}},provides(t){t.generateAbstractMask=function(e){let{children:n,attributes:r,main:o,mask:a,maskId:s,transform:i}=e;const{width:l,icon:c}=o,{width:f,icon:d}=a,m=Vp({transform:i,containerWidth:f,iconWidth:l}),h={tag:"rect",attributes:{...oa,fill:"white"}},P=c.children?{children:c.children.map(Rl)}:{},S={tag:"g",attributes:{...m.inner},children:[Rl({tag:c.tag,attributes:{...c.attributes,...m.path},...P})]},L={tag:"g",attributes:{...m.outer},children:[S]},x="mask-".concat(s||Tn()),b="clip-".concat(s||Tn()),M={tag:"mask",attributes:{...oa,id:x,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[h,L]},E={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:qd(d)},M]};return n.push(E,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(x,")"),...oa}}),{children:n,attributes:r}}}},Gd={provides(t){let e=!1;ye.matchMedia&&(e=ye.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:{...r,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const a={...o,attributeName:"opacity"},s={tag:"circle",attributes:{...r,cx:"256",cy:"364",r:"28"},children:[]};return e||s.children.push({tag:"animate",attributes:{...o,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...a,values:"1;0;1;1;0;1;"}}),n.push(s),n.push({tag:"path",attributes:{...r,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:e?[]:[{tag:"animate",attributes:{...a,values:"1;0;0;0;0;1;"}}]}),e||n.push({tag:"path",attributes:{...r,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...a,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},Kd={hooks(){return{parseNodeAttributes(t,e){const n=e.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return t.symbol=r,t}}}},Xd=[qp,zd,Nd,Fd,Ld,Vd,Wd,Hd,Yd,Gd,Kd];id(Xd,{mixoutsTo:St}),St.noAuto,St.config;const Qd=St.library;St.dom;const aa=St.parse;St.findIconDefinition,St.toHtml;const Zd=St.icon;St.layer,St.text,St.counter;function zl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ie(t){for(var e=1;e=0)continue;n[r]=t[r]}return n}function nm(t,e){if(t==null)return{};var n=em(t,e),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}var rm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Nl={exports:{}};(function(t){(function(e){var n=function(x,b,M){if(!c(b)||d(b)||m(b)||h(b)||l(b))return b;var E,U=0,ot=0;if(f(b))for(E=[],ot=b.length;U1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return Fl(l)}),o=Object.keys(t.attributes||{}).reduce(function(l,c){var f=t.attributes[c];switch(c){case"class":l.class=im(f);break;case"style":l.style=sm(f);break;default:l.attrs[c]=f}return l},{attrs:{},class:{},style:{}});n.class;var a=n.style,s=a===void 0?{}:a,i=nm(n,am);return vo(t.tag,ie(ie(ie({},e),{},{class:o.class,style:ie(ie({},o.style),s)},o.attrs),i),r)}var Ll=!1;try{Ll=!0}catch{}function lm(){if(!Ll&&console&&typeof console.error=="function"){var t;(t=console).error.apply(t,arguments)}}function sa(t,e){return Array.isArray(e)&&e.length>0||!Array.isArray(e)&&e?bt({},t,e):{}}function cm(t){var e,n=(e={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-border":t.border,"fa-li":t.listItem,"fa-inverse":t.inverse,"fa-flip":t.flip===!0,"fa-flip-horizontal":t.flip==="horizontal"||t.flip==="both","fa-flip-vertical":t.flip==="vertical"||t.flip==="both"},bt(bt(bt(bt(bt(bt(bt(bt(bt(bt(e,"fa-".concat(t.size),t.size!==null),"fa-rotate-".concat(t.rotation),t.rotation!==null),"fa-pull-".concat(t.pull),t.pull!==null),"fa-swap-opacity",t.swapOpacity),"fa-bounce",t.bounce),"fa-shake",t.shake),"fa-beat",t.beat),"fa-fade",t.fade),"fa-beat-fade",t.beatFade),"fa-flash",t.flash),bt(bt(e,"fa-spin-pulse",t.spinPulse),"fa-spin-reverse",t.spinReverse));return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}function Dl(t){if(t&&Pr(t)==="object"&&t.prefix&&t.iconName&&t.icon)return t;if(aa.icon)return aa.icon(t);if(t===null)return null;if(Pr(t)==="object"&&t.prefix&&t.iconName)return t;if(Array.isArray(t)&&t.length===2)return{prefix:t[0],iconName:t[1]};if(typeof t=="string")return{prefix:"fas",iconName:t}}var um=sn({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,e){var n=e.attrs,r=it(function(){return Dl(t.icon)}),o=it(function(){return sa("classes",cm(t))}),a=it(function(){return sa("transform",typeof t.transform=="string"?aa.transform(t.transform):t.transform)}),s=it(function(){return sa("mask",Dl(t.mask))}),i=it(function(){return Zd(r.value,ie(ie(ie(ie({},o.value),a.value),s.value),{},{symbol:t.symbol,title:t.title,titleId:t.titleId,maskId:t.maskId}))});Te(i,function(c){if(!c)return lm("Could not find one or more icon(s)",r.value,s.value)},{immediate:!0});var l=it(function(){return i.value?Fl(i.value.abstract[0],{},n):null});return function(){return l.value}}});const fm={prefix:"fab",iconName:"windows",icon:[448,512,[],"f17a","M0 93.7l183.6-25.3v177.4H0V93.7zm0 324.6l183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z"]},pm={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"]},dm={prefix:"fab",iconName:"linux",icon:[448,512,[],"f17c","M220.8 123.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5.2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4.2-.8.7-.6 1.1.3 1.3 2.3 1.1 3.4 1.7zm-21.9 1.7c1.2 0 2-1.2 3-1.7 1.1-.6 3.1-.4 3.5-1.6.2-.4-.2-.9-.6-1.1-1.6-.9-3.8-.6-5.5.1-1.3.6-3.4 1.5-3.2 2.9.1 1 1.8 1.5 2.8 1.4zM420 403.8c-3.6-4-5.3-11.6-7.2-19.7-1.8-8.1-3.9-16.8-10.5-22.4-1.3-1.1-2.6-2.1-4-2.9-1.3-.8-2.7-1.5-4.1-2 9.2-27.3 5.6-54.5-3.7-79.1-11.4-30.1-31.3-56.4-46.5-74.4-17.1-21.5-33.7-41.9-33.4-72C311.1 85.4 315.7.1 234.8 0 132.4-.2 158 103.4 156.9 135.2c-1.7 23.4-6.4 41.8-22.5 64.7-18.9 22.5-45.5 58.8-58.1 96.7-6 17.9-8.8 36.1-6.2 53.3-6.5 5.8-11.4 14.7-16.6 20.2-4.2 4.3-10.3 5.9-17 8.3s-14 6-18.5 14.5c-2.1 3.9-2.8 8.1-2.8 12.4 0 3.9.6 7.9 1.2 11.8 1.2 8.1 2.5 15.7.8 20.8-5.2 14.4-5.9 24.4-2.2 31.7 3.8 7.3 11.4 10.5 20.1 12.3 17.3 3.6 40.8 2.7 59.3 12.5 19.8 10.4 39.9 14.1 55.9 10.4 11.6-2.6 21.1-9.6 25.9-20.2 12.5-.1 26.3-5.4 48.3-6.6 14.9-1.2 33.6 5.3 55.1 4.1.6 2.3 1.4 4.6 2.5 6.7v.1c8.3 16.7 23.8 24.3 40.3 23 16.6-1.3 34.1-11 48.3-27.9 13.6-16.4 36-23.2 50.9-32.2 7.4-4.5 13.4-10.1 13.9-18.3.4-8.2-4.4-17.3-15.5-29.7zM223.7 87.3c9.8-22.2 34.2-21.8 44-.4 6.5 14.2 3.6 30.9-4.3 40.4-1.6-.8-5.9-2.6-12.6-4.9 1.1-1.2 3.1-2.7 3.9-4.6 4.8-11.8-.2-27-9.1-27.3-7.3-.5-13.9 10.8-11.8 23-4.1-2-9.4-3.5-13-4.4-1-6.9-.3-14.6 2.9-21.8zM183 75.8c10.1 0 20.8 14.2 19.1 33.5-3.5 1-7.1 2.5-10.2 4.6 1.2-8.9-3.3-20.1-9.6-19.6-8.4.7-9.8 21.2-1.8 28.1 1 .8 1.9-.2-5.9 5.5-15.6-14.6-10.5-52.1 8.4-52.1zm-13.6 60.7c6.2-4.6 13.6-10 14.1-10.5 4.7-4.4 13.5-14.2 27.9-14.2 7.1 0 15.6 2.3 25.9 8.9 6.3 4.1 11.3 4.4 22.6 9.3 8.4 3.5 13.7 9.7 10.5 18.2-2.6 7.1-11 14.4-22.7 18.1-11.1 3.6-19.8 16-38.2 14.9-3.9-.2-7-1-9.6-2.1-8-3.5-12.2-10.4-20-15-8.6-4.8-13.2-10.4-14.7-15.3-1.4-4.9 0-9 4.2-12.3zm3.3 334c-2.7 35.1-43.9 34.4-75.3 18-29.9-15.8-68.6-6.5-76.5-21.9-2.4-4.7-2.4-12.7 2.6-26.4v-.2c2.4-7.6.6-16-.6-23.9-1.2-7.8-1.8-15 .9-20 3.5-6.7 8.5-9.1 14.8-11.3 10.3-3.7 11.8-3.4 19.6-9.9 5.5-5.7 9.5-12.9 14.3-18 5.1-5.5 10-8.1 17.7-6.9 8.1 1.2 15.1 6.8 21.9 16l19.6 35.6c9.5 19.9 43.1 48.4 41 68.9zm-1.4-25.9c-4.1-6.6-9.6-13.6-14.4-19.6 7.1 0 14.2-2.2 16.7-8.9 2.3-6.2 0-14.9-7.4-24.9-13.5-18.2-38.3-32.5-38.3-32.5-13.5-8.4-21.1-18.7-24.6-29.9s-3-23.3-.3-35.2c5.2-22.9 18.6-45.2 27.2-59.2 2.3-1.7.8 3.2-8.7 20.8-8.5 16.1-24.4 53.3-2.6 82.4.6-20.7 5.5-41.8 13.8-61.5 12-27.4 37.3-74.9 39.3-112.7 1.1.8 4.6 3.2 6.2 4.1 4.6 2.7 8.1 6.7 12.6 10.3 12.4 10 28.5 9.2 42.4 1.2 6.2-3.5 11.2-7.5 15.9-9 9.9-3.1 17.8-8.6 22.3-15 7.7 30.4 25.7 74.3 37.2 95.7 6.1 11.4 18.3 35.5 23.6 64.6 3.3-.1 7 .4 10.9 1.4 13.8-35.7-11.7-74.2-23.3-84.9-4.7-4.6-4.9-6.6-2.6-6.5 12.6 11.2 29.2 33.7 35.2 59 2.8 11.6 3.3 23.7.4 35.7 16.4 6.8 35.9 17.9 30.7 34.8-2.2-.1-3.2 0-4.2 0 3.2-10.1-3.9-17.6-22.8-26.1-19.6-8.6-36-8.6-38.3 12.5-12.1 4.2-18.3 14.7-21.4 27.3-2.8 11.2-3.6 24.7-4.4 39.9-.5 7.7-3.6 18-6.8 29-32.1 22.9-76.7 32.9-114.3 7.2zm257.4-11.5c-.9 16.8-41.2 19.9-63.2 46.5-13.2 15.7-29.4 24.4-43.6 25.5s-26.5-4.8-33.7-19.3c-4.7-11.1-2.4-23.1 1.1-36.3 3.7-14.2 9.2-28.8 9.9-40.6.8-15.2 1.7-28.5 4.2-38.7 2.6-10.3 6.6-17.2 13.7-21.1.3-.2.7-.3 1-.5.8 13.2 7.3 26.6 18.8 29.5 12.6 3.3 30.7-7.5 38.4-16.3 9-.3 15.7-.9 22.6 5.1 9.9 8.5 7.1 30.3 17.1 41.6 10.6 11.6 14 19.5 13.7 24.6zM173.3 148.7c2 1.9 4.7 4.5 8 7.1 6.6 5.2 15.8 10.6 27.3 10.6 11.6 0 22.5-5.9 31.8-10.8 4.9-2.6 10.9-7 14.8-10.4s5.9-6.3 3.1-6.6-2.6 2.6-6 5.1c-4.4 3.2-9.7 7.4-13.9 9.8-7.4 4.2-19.5 10.2-29.9 10.2s-18.7-4.8-24.9-9.7c-3.1-2.5-5.7-5-7.7-6.9-1.5-1.4-1.9-4.6-4.3-4.9-1.4-.1-1.8 3.7 1.7 6.5z"]},mm={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]},hm={prefix:"fas",iconName:"spinner",icon:[512,512,[],"f110","M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zm0 416a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM48 304a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm464-48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM142.9 437A48 48 0 1 0 75 369.1 48 48 0 1 0 142.9 437zm0-294.2A48 48 0 1 0 75 75a48 48 0 1 0 67.9 67.9zM369.1 437A48 48 0 1 0 437 369.1 48 48 0 1 0 369.1 437z"]};Qd.add(pm,fm,dm,mm,hm),rf(Zs).use(up).component("font-awesome-icon",um).mount("#app")})();export{xt as F,ia as _,gm as __tla,Bl as a,Ce as b,la as c,sn as d,Ar as e,$l as f,ft as g,ca as h,Ft as i,ua as j,jr as k,fa as l,pa as m,Mr as n,ln as o,Ul as p,Hn as q,Vl as r,qn as s,da as t,Wl as u,Hl as v,ql as w,it as x,Te as y,Yn as z}; diff --git a/assets/index-a62fcf84.js b/assets/index-a62fcf84.js new file mode 100644 index 0000000..771ee7d --- /dev/null +++ b/assets/index-a62fcf84.js @@ -0,0 +1,154 @@ +import{d as pe,u as u3,i as Ke,o as ie,c as le,a as co,w as hr,v as ur,b as ee,e as V,r as S3,f as _3,g as re,h as me,j as Sr,k as Ae,l as Qe,n as v3,m as Ct,F as Ze,p as go,q as xo,t as Ne,s as Lt,_ as ho,x as p3,y as A3,z as f3,__tla as M3}from"./index-26445b65.js";let _r,Et,T3=Promise.all([(()=>{try{return M3}catch{}})()]).then(async()=>{var J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};_r=function(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a};const Bt="/assets/socialite-0d9c20e3.jpg",Gt="/assets/background-24453330.jpg",wt={class:"first-page"},Ot={class:"background-container"},Nt=pe({__name:"firstPage",setup(a){u3();const c=Ke("sizeCnt");function h(){window.scrollTo({top:window.innerHeight-10,behavior:"smooth"})}return(_,$)=>(ie(),le("div",wt,[$[1]||($[1]=co('
Pivot Lang --
A
General Purpose Language
Rust-like grammar with GC.
',1)),hr(V("div",Ot,$[0]||($[0]=[V("img",{src:Gt},null,-1)]),512),[[ur,ee(c)<=1]]),V("div",{class:"bottom"},[V("div",{class:"start-button",onClick:h,style:{cursor:"pointer"}},"Try It")])]))}}),It="/assets/LSP-hint-87b8dc97.png",Dt="/assets/LSP-reference-d82cb186.png",Rt="/assets/debug_code-bcb5bca1.png",kt="/assets/debug_value-670e2094.png",fe=(a,c)=>{const h=a.__vccOpts||a;for(const[_,$]of c)h[_]=$;return h},Ft={},Xt={id:"advantage"};function Ht(a,c){return ie(),le("div",Xt,c[0]||(c[0]=[co('
First Class VSC support
Code fast, code easy
We provide Code Hints, Code jump, Reference lookup, semantic highlights and more...
Debug with a single click
We have complete debug support on every major platform.
',3)]))}const Ut=fe(Ft,[["render",Ht],["__scopeId","data-v-9f46c044"]]),Vt="/assets/rightArrow-6db3b7c3.svg",Wt={key:0,src:Vt},Kt=pe({__name:"link",props:{newWindow:{type:Boolean,default:!0},href:{type:String,required:!0},arrowShow:{type:Boolean,default:!0}},setup(a){Ke("isMobile");const c=Ke("isPc"),h=a;function _(){h.newWindow?window.open(h.href):window.location.href=h.href}return($,C)=>(ie(),le("div",{class:"link",onClick:_},[S3($.$slots,"default",{},void 0,!0),h.arrowShow&&ee(c)?(ie(),le("img",Wt)):_3("",!0)]))}}),ne=fe(Kt,[["__scopeId","data-v-ae0f4fc0"]]),uo="/assets/logo_dark-f7ca8d17.svg",Qt={class:"nav"},Zt={class:"left"},Yt={class:"right"},zt=pe({__name:"nav",setup(a){const c=Ke("isMobile");return(h,_)=>(ie(),le("div",Qt,[V("div",Zt,[re(ne,{newWindow:!1,arrowShow:!1,href:"https://github.com/Pivot-Studio/pivot-lang"},{default:me(()=>_[0]||(_[0]=[V("img",{src:uo},null,-1),Sr(" Pivot Lang ")])),_:1})]),V("div",Yt,[re(ne,{href:"https://github.com/Pivot-Studio/pivot-lang"},{default:me(()=>_[1]||(_[1]=[V("div",{class:"github"},[V("a",null,[V("img",{alt:"Github",src:"https://d33wubrfki0l68.cloudfront.net/43f2732eec420aa8a930fc3239ef0469c3d760a8/5d500/community/github.svg"})])],-1)])),_:1}),re(ne,{newWindow:!0,href:"https://pivotlang.tech/docs/index.html"},{default:me(()=>_[2]||(_[2]=[V("div",{class:"txt"},"Get Started",-1)])),_:1}),re(ne,{newWindow:!0,href:"https://github.com/Pivot-Studio/pivot-lang/blob/master/test/test/generic.pi"},{default:me(()=>_[3]||(_[3]=[V("div",{class:"txt"},"Use Cases",-1)])),_:1}),hr(re(ne,{newWindow:!0,href:"https://pivotlang.tech/index.html"},{default:me(()=>_[4]||(_[4]=[V("div",{class:"txt"},"Community",-1)])),_:1},512),[[ur,!ee(c)]])])]))}}),Jt=fe(zt,[["__scopeId","data-v-c6ee1f2a"]]);function So(a,c){return function(){return a.apply(c,arguments)}}const{toString:jt}=Object.prototype,{getPrototypeOf:vr}=Object,Ye=(a=>c=>{const h=jt.call(c);return a[h]||(a[h]=h.slice(8,-1).toLowerCase())})(Object.create(null)),Se=a=>(a=a.toLowerCase(),c=>Ye(c)===a),ze=a=>c=>typeof c===a,{isArray:ye}=Array,Ie=ze("undefined");function qt(a){return a!==null&&!Ie(a)&&a.constructor!==null&&!Ie(a.constructor)&&he(a.constructor.isBuffer)&&a.constructor.isBuffer(a)}const _o=Se("ArrayBuffer");function ei(a){let c;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?c=ArrayBuffer.isView(a):c=a&&a.buffer&&_o(a.buffer),c}const ri=ze("string"),he=ze("function"),vo=ze("number"),Je=a=>a!==null&&typeof a=="object",oi=a=>a===!0||a===!1,je=a=>{if(Ye(a)!=="object")return!1;const c=vr(a);return(c===null||c===Object.prototype||Object.getPrototypeOf(c)===null)&&!(Symbol.toStringTag in a)&&!(Symbol.iterator in a)},ti=Se("Date"),ii=Se("File"),ai=Se("Blob"),li=Se("FileList"),si=a=>Je(a)&&he(a.pipe),ni=a=>{let c;return a&&(typeof FormData=="function"&&a instanceof FormData||he(a.append)&&((c=Ye(a))==="formdata"||c==="object"&&he(a.toString)&&a.toString()==="[object FormData]"))},di=Se("URLSearchParams"),[mi,ci,gi,xi]=["ReadableStream","Request","Response","Headers"].map(Se),hi=a=>a.trim?a.trim():a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function De(a,c,{allOwnKeys:h=!1}={}){if(a===null||typeof a>"u")return;let _,$;if(typeof a!="object"&&(a=[a]),ye(a))for(_=0,$=a.length;_<$;_++)c.call(null,a[_],_,a);else{const C=h?Object.getOwnPropertyNames(a):Object.keys(a),T=C.length;let r;for(_=0;_0;)if($=h[_],c===$.toLowerCase())return $;return null}const Ce=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Ao=a=>!Ie(a)&&a!==Ce;function pr(){const{caseless:a}=Ao(this)&&this||{},c={},h=(_,$)=>{const C=a&&po(c,$)||$;je(c[C])&&je(_)?c[C]=pr(c[C],_):je(_)?c[C]=pr({},_):ye(_)?c[C]=_.slice():c[C]=_};for(let _=0,$=arguments.length;_<$;_++)arguments[_]&&De(arguments[_],h);return c}const ui=(a,c,h,{allOwnKeys:_}={})=>(De(c,($,C)=>{h&&he($)?a[C]=So($,h):a[C]=$},{allOwnKeys:_}),a),Si=a=>(a.charCodeAt(0)===65279&&(a=a.slice(1)),a),_i=(a,c,h,_)=>{a.prototype=Object.create(c.prototype,_),a.prototype.constructor=a,Object.defineProperty(a,"super",{value:c.prototype}),h&&Object.assign(a.prototype,h)},vi=(a,c,h,_)=>{let $,C,T;const r={};if(c=c||{},a==null)return c;do{for($=Object.getOwnPropertyNames(a),C=$.length;C-- >0;)T=$[C],(!_||_(T,a,c))&&!r[T]&&(c[T]=a[T],r[T]=!0);a=h!==!1&&vr(a)}while(a&&(!h||h(a,c))&&a!==Object.prototype);return c},pi=(a,c,h)=>{a=String(a),(h===void 0||h>a.length)&&(h=a.length),h-=c.length;const _=a.indexOf(c,h);return _!==-1&&_===h},Ai=a=>{if(!a)return null;if(ye(a))return a;let c=a.length;if(!vo(c))return null;const h=new Array(c);for(;c-- >0;)h[c]=a[c];return h},fi=(a=>c=>a&&c instanceof a)(typeof Uint8Array<"u"&&vr(Uint8Array)),Mi=(a,c)=>{const h=(a&&a[Symbol.iterator]).call(a);let _;for(;(_=h.next())&&!_.done;){const $=_.value;c.call(a,$[0],$[1])}},Ti=(a,c)=>{let h;const _=[];for(;(h=a.exec(c))!==null;)_.push(h);return _},$i=Se("HTMLFormElement"),Pi=a=>a.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(c,h,_){return h.toUpperCase()+_}),fo=(({hasOwnProperty:a})=>(c,h)=>a.call(c,h))(Object.prototype),bi=Se("RegExp"),Mo=(a,c)=>{const h=Object.getOwnPropertyDescriptors(a),_={};De(h,($,C)=>{let T;(T=c($,C,a))!==!1&&(_[C]=T||$)}),Object.defineProperties(a,_)},Ci=a=>{Mo(a,(c,h)=>{if(he(a)&&["arguments","caller","callee"].indexOf(h)!==-1)return!1;const _=a[h];if(he(_)){if(c.enumerable=!1,"writable"in c){c.writable=!1;return}c.set||(c.set=()=>{throw Error("Can not rewrite read-only method '"+h+"'")})}})},Li=(a,c)=>{const h={},_=$=>{$.forEach(C=>{h[C]=!0})};return ye(a)?_(a):_(String(a).split(c)),h},Ei=()=>{},yi=(a,c)=>a!=null&&Number.isFinite(a=+a)?a:c,Ar="abcdefghijklmnopqrstuvwxyz",To="0123456789",$o={DIGIT:To,ALPHA:Ar,ALPHA_DIGIT:Ar+Ar.toUpperCase()+To},Bi=(a=16,c=$o.ALPHA_DIGIT)=>{let h="";const{length:_}=c;for(;a--;)h+=c[Math.random()*_|0];return h};function Gi(a){return!!(a&&he(a.append)&&a[Symbol.toStringTag]==="FormData"&&a[Symbol.iterator])}const wi=a=>{const c=new Array(10),h=(_,$)=>{if(Je(_)){if(c.indexOf(_)>=0)return;if(!("toJSON"in _)){c[$]=_;const C=ye(_)?[]:{};return De(_,(T,r)=>{const l=h(T,$+1);!Ie(l)&&(C[r]=l)}),c[$]=void 0,C}}return _};return h(a,0)},Oi=Se("AsyncFunction"),Ni=a=>a&&(Je(a)||he(a))&&he(a.then)&&he(a.catch),Po=((a,c)=>a?setImmediate:c?((h,_)=>(Ce.addEventListener("message",({source:$,data:C})=>{$===Ce&&C===h&&_.length&&_.shift()()},!1),$=>{_.push($),Ce.postMessage(h,"*")}))(`axios@${Math.random()}`,[]):h=>setTimeout(h))(typeof setImmediate=="function",he(Ce.postMessage)),Ii=typeof queueMicrotask<"u"?queueMicrotask.bind(Ce):typeof process<"u"&&process.nextTick||Po,I={isArray:ye,isArrayBuffer:_o,isBuffer:qt,isFormData:ni,isArrayBufferView:ei,isString:ri,isNumber:vo,isBoolean:oi,isObject:Je,isPlainObject:je,isReadableStream:mi,isRequest:ci,isResponse:gi,isHeaders:xi,isUndefined:Ie,isDate:ti,isFile:ii,isBlob:ai,isRegExp:bi,isFunction:he,isStream:si,isURLSearchParams:di,isTypedArray:fi,isFileList:li,forEach:De,merge:pr,extend:ui,trim:hi,stripBOM:Si,inherits:_i,toFlatObject:vi,kindOf:Ye,kindOfTest:Se,endsWith:pi,toArray:Ai,forEachEntry:Mi,matchAll:Ti,isHTMLForm:$i,hasOwnProperty:fo,hasOwnProp:fo,reduceDescriptors:Mo,freezeMethods:Ci,toObjectSet:Li,toCamelCase:Pi,noop:Ei,toFiniteNumber:yi,findKey:po,global:Ce,isContextDefined:Ao,ALPHABET:$o,generateString:Bi,isSpecCompliantForm:Gi,toJSONObject:wi,isAsyncFn:Oi,isThenable:Ni,setImmediate:Po,asap:Ii};function z(a,c,h,_,$){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=a,this.name="AxiosError",c&&(this.code=c),h&&(this.config=h),_&&(this.request=_),$&&(this.response=$,this.status=$.status?$.status:null)}I.inherits(z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.status}}});const bo=z.prototype,Co={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(a=>{Co[a]={value:a}}),Object.defineProperties(z,Co),Object.defineProperty(bo,"isAxiosError",{value:!0}),z.from=(a,c,h,_,$,C)=>{const T=Object.create(bo);return I.toFlatObject(a,T,function(r){return r!==Error.prototype},r=>r!=="isAxiosError"),z.call(T,a.message,c,h,_,$),T.cause=a,T.name=a.name,C&&Object.assign(T,C),T};const Di=null;function fr(a){return I.isPlainObject(a)||I.isArray(a)}function Lo(a){return I.endsWith(a,"[]")?a.slice(0,-2):a}function Eo(a,c,h){return a?a.concat(c).map(function(_,$){return _=Lo(_),!h&&$?"["+_+"]":_}).join(h?".":""):c}function Ri(a){return I.isArray(a)&&!a.some(fr)}const ki=I.toFlatObject(I,{},null,function(a){return/^is[A-Z]/.test(a)});function qe(a,c,h){if(!I.isObject(a))throw new TypeError("target must be an object");c=c||new FormData,h=I.toFlatObject(h,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,A){return!I.isUndefined(A[p])});const _=h.metaTokens,$=h.visitor||n,C=h.dots,T=h.indexes,r=(h.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(c);if(!I.isFunction($))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(I.isDate(p))return p.toISOString();if(!r&&I.isBlob(p))throw new z("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(p)||I.isTypedArray(p)?r&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function n(p,A,u){let t=p;if(p&&!u&&typeof p=="object"){if(I.endsWith(A,"{}"))A=_?A:A.slice(0,-2),p=JSON.stringify(p);else if(I.isArray(p)&&Ri(p)||(I.isFileList(p)||I.endsWith(A,"[]"))&&(t=I.toArray(p)))return A=Lo(A),t.forEach(function(i,o){!(I.isUndefined(i)||i===null)&&c.append(T===!0?Eo([A],o,C):T===null?A:A+"[]",l(i))}),!1}return fr(p)?!0:(c.append(Eo(u,A,C),l(p)),!1)}const g=[],s=Object.assign(ki,{defaultVisitor:n,convertValue:l,isVisitable:fr});function S(p,A){if(!I.isUndefined(p)){if(g.indexOf(p)!==-1)throw Error("Circular reference detected in "+A.join("."));g.push(p),I.forEach(p,function(u,t){(!(I.isUndefined(u)||u===null)&&$.call(c,u,I.isString(t)?t.trim():t,A,s))===!0&&S(u,A?A.concat(t):[t])}),g.pop()}}if(!I.isObject(a))throw new TypeError("data must be an object");return S(a),c}function yo(a){const c={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(a).replace(/[!'()~]|%20|%00/g,function(h){return c[h]})}function Mr(a,c){this._pairs=[],a&&qe(a,this,c)}const Bo=Mr.prototype;Bo.append=function(a,c){this._pairs.push([a,c])},Bo.toString=function(a){const c=a?function(h){return a.call(this,h,yo)}:yo;return this._pairs.map(function(h){return c(h[0])+"="+c(h[1])},"").join("&")};function Fi(a){return encodeURIComponent(a).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Go(a,c,h){if(!c)return a;const _=h&&h.encode||Fi,$=h&&h.serialize;let C;if($?C=$(c,h):C=I.isURLSearchParams(c)?c.toString():new Mr(c,h).toString(_),C){const T=a.indexOf("#");T!==-1&&(a=a.slice(0,T)),a+=(a.indexOf("?")===-1?"?":"&")+C}return a}class Xi{constructor(){this.handlers=[]}use(c,h,_){return this.handlers.push({fulfilled:c,rejected:h,synchronous:_?_.synchronous:!1,runWhen:_?_.runWhen:null}),this.handlers.length-1}eject(c){this.handlers[c]&&(this.handlers[c]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(c){I.forEach(this.handlers,function(h){h!==null&&c(h)})}}const wo=Xi,Oo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Hi=typeof URLSearchParams<"u"?URLSearchParams:Mr,Ui=typeof FormData<"u"?FormData:null,Vi=typeof Blob<"u"?Blob:null,Wi={isBrowser:!0,classes:{URLSearchParams:Hi,FormData:Ui,Blob:Vi},protocols:["http","https","file","blob","url","data"]},Tr=typeof window<"u"&&typeof document<"u",$r=typeof navigator=="object"&&navigator||void 0,Ki=Tr&&(!$r||["ReactNative","NativeScript","NS"].indexOf($r.product)<0),Qi=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Zi=Tr&&window.location.href||"http://localhost",Yi=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tr,hasStandardBrowserEnv:Ki,hasStandardBrowserWebWorkerEnv:Qi,navigator:$r,origin:Zi},Symbol.toStringTag,{value:"Module"})),ge={...Yi,...Wi};function zi(a,c){return qe(a,new ge.classes.URLSearchParams,Object.assign({visitor:function(h,_,$,C){return ge.isNode&&I.isBuffer(h)?(this.append(_,h.toString("base64")),!1):C.defaultVisitor.apply(this,arguments)}},c))}function Ji(a){return I.matchAll(/\w+|\[(\w*)]/g,a).map(c=>c[0]==="[]"?"":c[1]||c[0])}function ji(a){const c={},h=Object.keys(a);let _;const $=h.length;let C;for(_=0;_<$;_++)C=h[_],c[C]=a[C];return c}function No(a){function c(h,_,$,C){let T=h[C++];if(T==="__proto__")return!0;const r=Number.isFinite(+T),l=C>=h.length;return T=!T&&I.isArray($)?$.length:T,l?(I.hasOwnProp($,T)?$[T]=[$[T],_]:$[T]=_,!r):((!$[T]||!I.isObject($[T]))&&($[T]=[]),c(h,_,$[T],C)&&I.isArray($[T])&&($[T]=ji($[T])),!r)}if(I.isFormData(a)&&I.isFunction(a.entries)){const h={};return I.forEachEntry(a,(_,$)=>{c(Ji(_),$,h,0)}),h}return null}function qi(a,c,h){if(I.isString(a))try{return(c||JSON.parse)(a),I.trim(a)}catch(_){if(_.name!=="SyntaxError")throw _}return(h||JSON.stringify)(a)}const Pr={transitional:Oo,adapter:["xhr","http","fetch"],transformRequest:[function(a,c){const h=c.getContentType()||"",_=h.indexOf("application/json")>-1,$=I.isObject(a);if($&&I.isHTMLForm(a)&&(a=new FormData(a)),I.isFormData(a))return _?JSON.stringify(No(a)):a;if(I.isArrayBuffer(a)||I.isBuffer(a)||I.isStream(a)||I.isFile(a)||I.isBlob(a)||I.isReadableStream(a))return a;if(I.isArrayBufferView(a))return a.buffer;if(I.isURLSearchParams(a))return c.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),a.toString();let C;if($){if(h.indexOf("application/x-www-form-urlencoded")>-1)return zi(a,this.formSerializer).toString();if((C=I.isFileList(a))||h.indexOf("multipart/form-data")>-1){const T=this.env&&this.env.FormData;return qe(C?{"files[]":a}:a,T&&new T,this.formSerializer)}}return $||_?(c.setContentType("application/json",!1),qi(a)):a}],transformResponse:[function(a){const c=this.transitional||Pr.transitional,h=c&&c.forcedJSONParsing,_=this.responseType==="json";if(I.isResponse(a)||I.isReadableStream(a))return a;if(a&&I.isString(a)&&(h&&!this.responseType||_)){const $=!(c&&c.silentJSONParsing)&&_;try{return JSON.parse(a)}catch(C){if($)throw C.name==="SyntaxError"?z.from(C,z.ERR_BAD_RESPONSE,this,null,this.response):C}}return a}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(a){return a>=200&&a<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],a=>{Pr.headers[a]={}});const br=Pr,ea=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ra=a=>{const c={};let h,_,$;return a&&a.split(` +`).forEach(function(C){$=C.indexOf(":"),h=C.substring(0,$).trim().toLowerCase(),_=C.substring($+1).trim(),!(!h||c[h]&&ea[h])&&(h==="set-cookie"?c[h]?c[h].push(_):c[h]=[_]:c[h]=c[h]?c[h]+", "+_:_)}),c},Io=Symbol("internals");function Re(a){return a&&String(a).trim().toLowerCase()}function er(a){return a===!1||a==null?a:I.isArray(a)?a.map(er):String(a)}function oa(a){const c=Object.create(null),h=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let _;for(;_=h.exec(a);)c[_[1]]=_[2];return c}const ta=a=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(a.trim());function Cr(a,c,h,_,$){if(I.isFunction(_))return _.call(this,c,h);if($&&(c=h),!!I.isString(c)){if(I.isString(_))return c.indexOf(_)!==-1;if(I.isRegExp(_))return _.test(c)}}function ia(a){return a.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(c,h,_)=>h.toUpperCase()+_)}function aa(a,c){const h=I.toCamelCase(" "+c);["get","set","has"].forEach(_=>{Object.defineProperty(a,_+h,{value:function($,C,T){return this[_].call(this,c,$,C,T)},configurable:!0})})}class rr{constructor(c){c&&this.set(c)}set(c,h,_){const $=this;function C(r,l,n){const g=Re(l);if(!g)throw new Error("header name must be a non-empty string");const s=I.findKey($,g);(!s||$[s]===void 0||n===!0||n===void 0&&$[s]!==!1)&&($[s||l]=er(r))}const T=(r,l)=>I.forEach(r,(n,g)=>C(n,g,l));if(I.isPlainObject(c)||c instanceof this.constructor)T(c,h);else if(I.isString(c)&&(c=c.trim())&&!ta(c))T(ra(c),h);else if(I.isHeaders(c))for(const[r,l]of c.entries())C(l,r,_);else c!=null&&C(h,c,_);return this}get(c,h){if(c=Re(c),c){const _=I.findKey(this,c);if(_){const $=this[_];if(!h)return $;if(h===!0)return oa($);if(I.isFunction(h))return h.call(this,$,_);if(I.isRegExp(h))return h.exec($);throw new TypeError("parser must be boolean|regexp|function")}}}has(c,h){if(c=Re(c),c){const _=I.findKey(this,c);return!!(_&&this[_]!==void 0&&(!h||Cr(this,this[_],_,h)))}return!1}delete(c,h){const _=this;let $=!1;function C(T){if(T=Re(T),T){const r=I.findKey(_,T);r&&(!h||Cr(_,_[r],r,h))&&(delete _[r],$=!0)}}return I.isArray(c)?c.forEach(C):C(c),$}clear(c){const h=Object.keys(this);let _=h.length,$=!1;for(;_--;){const C=h[_];(!c||Cr(this,this[C],C,c,!0))&&(delete this[C],$=!0)}return $}normalize(c){const h=this,_={};return I.forEach(this,($,C)=>{const T=I.findKey(_,C);if(T){h[T]=er($),delete h[C];return}const r=c?ia(C):String(C).trim();r!==C&&delete h[C],h[r]=er($),_[r]=!0}),this}concat(...c){return this.constructor.concat(this,...c)}toJSON(c){const h=Object.create(null);return I.forEach(this,(_,$)=>{_!=null&&_!==!1&&(h[$]=c&&I.isArray(_)?_.join(", "):_)}),h}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([c,h])=>c+": "+h).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(c){return c instanceof this?c:new this(c)}static concat(c,...h){const _=new this(c);return h.forEach($=>_.set($)),_}static accessor(c){const h=(this[Io]=this[Io]={accessors:{}}).accessors,_=this.prototype;function $(C){const T=Re(C);h[T]||(aa(_,C),h[T]=!0)}return I.isArray(c)?c.forEach($):$(c),this}}rr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),I.reduceDescriptors(rr.prototype,({value:a},c)=>{let h=c[0].toUpperCase()+c.slice(1);return{get:()=>a,set(_){this[h]=_}}}),I.freezeMethods(rr);const _e=rr;function Lr(a,c){const h=this||br,_=c||h,$=_e.from(_.headers);let C=_.data;return I.forEach(a,function(T){C=T.call(h,C,$.normalize(),c?c.status:void 0)}),$.normalize(),C}function Do(a){return!!(a&&a.__CANCEL__)}function Be(a,c,h){z.call(this,a??"canceled",z.ERR_CANCELED,c,h),this.name="CanceledError"}I.inherits(Be,z,{__CANCEL__:!0});function Ro(a,c,h){const _=h.config.validateStatus;!h.status||!_||_(h.status)?a(h):c(new z("Request failed with status code "+h.status,[z.ERR_BAD_REQUEST,z.ERR_BAD_RESPONSE][Math.floor(h.status/100)-4],h.config,h.request,h))}function la(a){const c=/^([-+\w]{1,25})(:?\/\/|:)/.exec(a);return c&&c[1]||""}function sa(a,c){a=a||10;const h=new Array(a),_=new Array(a);let $=0,C=0,T;return c=c!==void 0?c:1e3,function(r){const l=Date.now(),n=_[C];T||(T=l),h[$]=r,_[$]=l;let g=C,s=0;for(;g!==$;)s+=h[g++],g=g%a;if($=($+1)%a,$===C&&(C=(C+1)%a),l-T{h=l,$=null,C&&(clearTimeout(C),C=null),a.apply(null,r)};return[(...r)=>{const l=Date.now(),n=l-h;n>=_?T(r,l):($=r,C||(C=setTimeout(()=>{C=null,T($)},_-n)))},()=>$&&T($)]}const or=(a,c,h=3)=>{let _=0;const $=sa(50,250);return na(C=>{const T=C.loaded,r=C.lengthComputable?C.total:void 0,l=T-_,n=$(l),g=T<=r;_=T;const s={loaded:T,total:r,progress:r?T/r:void 0,bytes:l,rate:n||void 0,estimated:n&&r&&g?(r-T)/n:void 0,event:C,lengthComputable:r!=null,[c?"download":"upload"]:!0};a(s)},h)},ko=(a,c)=>{const h=a!=null;return[_=>c[0]({lengthComputable:h,total:a,loaded:_}),c[1]]},Fo=a=>(...c)=>I.asap(()=>a(...c)),da=ge.hasStandardBrowserEnv?function(){const a=ge.navigator&&/(msie|trident)/i.test(ge.navigator.userAgent),c=document.createElement("a");let h;function _($){let C=$;return a&&(c.setAttribute("href",C),C=c.href),c.setAttribute("href",C),{href:c.href,protocol:c.protocol?c.protocol.replace(/:$/,""):"",host:c.host,search:c.search?c.search.replace(/^\?/,""):"",hash:c.hash?c.hash.replace(/^#/,""):"",hostname:c.hostname,port:c.port,pathname:c.pathname.charAt(0)==="/"?c.pathname:"/"+c.pathname}}return h=_(window.location.href),function($){const C=I.isString($)?_($):$;return C.protocol===h.protocol&&C.host===h.host}}():function(){return function(){return!0}}(),ma=ge.hasStandardBrowserEnv?{write(a,c,h,_,$,C){const T=[a+"="+encodeURIComponent(c)];I.isNumber(h)&&T.push("expires="+new Date(h).toGMTString()),I.isString(_)&&T.push("path="+_),I.isString($)&&T.push("domain="+$),C===!0&&T.push("secure"),document.cookie=T.join("; ")},read(a){const c=document.cookie.match(new RegExp("(^|;\\s*)("+a+")=([^;]*)"));return c?decodeURIComponent(c[3]):null},remove(a){this.write(a,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ca(a){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(a)}function ga(a,c){return c?a.replace(/\/?\/$/,"")+"/"+c.replace(/^\/+/,""):a}function Xo(a,c){return a&&!ca(c)?ga(a,c):c}const Ho=a=>a instanceof _e?{...a}:a;function Le(a,c){c=c||{};const h={};function _(n,g,s){return I.isPlainObject(n)&&I.isPlainObject(g)?I.merge.call({caseless:s},n,g):I.isPlainObject(g)?I.merge({},g):I.isArray(g)?g.slice():g}function $(n,g,s){if(I.isUndefined(g)){if(!I.isUndefined(n))return _(void 0,n,s)}else return _(n,g,s)}function C(n,g){if(!I.isUndefined(g))return _(void 0,g)}function T(n,g){if(I.isUndefined(g)){if(!I.isUndefined(n))return _(void 0,n)}else return _(void 0,g)}function r(n,g,s){if(s in c)return _(n,g);if(s in a)return _(void 0,n)}const l={url:C,method:C,data:C,baseURL:T,transformRequest:T,transformResponse:T,paramsSerializer:T,timeout:T,timeoutMessage:T,withCredentials:T,withXSRFToken:T,adapter:T,responseType:T,xsrfCookieName:T,xsrfHeaderName:T,onUploadProgress:T,onDownloadProgress:T,decompress:T,maxContentLength:T,maxBodyLength:T,beforeRedirect:T,transport:T,httpAgent:T,httpsAgent:T,cancelToken:T,socketPath:T,responseEncoding:T,validateStatus:r,headers:(n,g)=>$(Ho(n),Ho(g),!0)};return I.forEach(Object.keys(Object.assign({},a,c)),function(n){const g=l[n]||$,s=g(a[n],c[n],n);I.isUndefined(s)&&g!==r||(h[n]=s)}),h}const Uo=a=>{const c=Le({},a);let{data:h,withXSRFToken:_,xsrfHeaderName:$,xsrfCookieName:C,headers:T,auth:r}=c;c.headers=T=_e.from(T),c.url=Go(Xo(c.baseURL,c.url),a.params,a.paramsSerializer),r&&T.set("Authorization","Basic "+btoa((r.username||"")+":"+(r.password?unescape(encodeURIComponent(r.password)):"")));let l;if(I.isFormData(h)){if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)T.setContentType(void 0);else if((l=T.getContentType())!==!1){const[n,...g]=l?l.split(";").map(s=>s.trim()).filter(Boolean):[];T.setContentType([n||"multipart/form-data",...g].join("; "))}}if(ge.hasStandardBrowserEnv&&(_&&I.isFunction(_)&&(_=_(c)),_||_!==!1&&da(c.url))){const n=$&&C&&ma.read(C);n&&T.set($,n)}return c},xa=typeof XMLHttpRequest<"u",ha=xa&&function(a){return new Promise(function(c,h){const _=Uo(a);let $=_.data;const C=_e.from(_.headers).normalize();let{responseType:T,onUploadProgress:r,onDownloadProgress:l}=_,n,g,s,S,p;function A(){S&&S(),p&&p(),_.cancelToken&&_.cancelToken.unsubscribe(n),_.signal&&_.signal.removeEventListener("abort",n)}let u=new XMLHttpRequest;u.open(_.method.toUpperCase(),_.url,!0),u.timeout=_.timeout;function t(){if(!u)return;const o=_e.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),e={data:!T||T==="text"||T==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:o,config:a,request:u};Ro(function(d){c(d),A()},function(d){h(d),A()},e),u=null}"onloadend"in u?u.onloadend=t:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(t)},u.onabort=function(){u&&(h(new z("Request aborted",z.ECONNABORTED,a,u)),u=null)},u.onerror=function(){h(new z("Network Error",z.ERR_NETWORK,a,u)),u=null},u.ontimeout=function(){let o=_.timeout?"timeout of "+_.timeout+"ms exceeded":"timeout exceeded";const e=_.transitional||Oo;_.timeoutErrorMessage&&(o=_.timeoutErrorMessage),h(new z(o,e.clarifyTimeoutError?z.ETIMEDOUT:z.ECONNABORTED,a,u)),u=null},$===void 0&&C.setContentType(null),"setRequestHeader"in u&&I.forEach(C.toJSON(),function(o,e){u.setRequestHeader(e,o)}),I.isUndefined(_.withCredentials)||(u.withCredentials=!!_.withCredentials),T&&T!=="json"&&(u.responseType=_.responseType),l&&([s,p]=or(l,!0),u.addEventListener("progress",s)),r&&u.upload&&([g,S]=or(r),u.upload.addEventListener("progress",g),u.upload.addEventListener("loadend",S)),(_.cancelToken||_.signal)&&(n=o=>{u&&(h(!o||o.type?new Be(null,a,u):o),u.abort(),u=null)},_.cancelToken&&_.cancelToken.subscribe(n),_.signal&&(_.signal.aborted?n():_.signal.addEventListener("abort",n)));const i=la(_.url);if(i&&ge.protocols.indexOf(i)===-1){h(new z("Unsupported protocol "+i+":",z.ERR_BAD_REQUEST,a));return}u.send($||null)})},ua=(a,c)=>{const{length:h}=a=a?a.filter(Boolean):[];if(c||h){let _=new AbortController,$;const C=function(n){if(!$){$=!0,r();const g=n instanceof Error?n:this.reason;_.abort(g instanceof z?g:new Be(g instanceof Error?g.message:g))}};let T=c&&setTimeout(()=>{T=null,C(new z(`timeout ${c} of ms exceeded`,z.ETIMEDOUT))},c);const r=()=>{a&&(T&&clearTimeout(T),T=null,a.forEach(n=>{n.unsubscribe?n.unsubscribe(C):n.removeEventListener("abort",C)}),a=null)};a.forEach(n=>n.addEventListener("abort",C));const{signal:l}=_;return l.unsubscribe=()=>I.asap(r),l}},Sa=ua,_a=function*(a,c){let h=a.byteLength;if(!c||h{const $=va(a,c);let C=0,T,r=l=>{T||(T=!0,_&&_(l))};return new ReadableStream({async pull(l){try{const{done:n,value:g}=await $.next();if(n){r(),l.close();return}let s=g.byteLength;if(h){let S=C+=s;h(S)}l.enqueue(new Uint8Array(g))}catch(n){throw r(n),n}},cancel(l){return r(l),$.return()}},{highWaterMark:2})},tr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Wo=tr&&typeof ReadableStream=="function",Aa=tr&&(typeof TextEncoder=="function"?(a=>c=>a.encode(c))(new TextEncoder):async a=>new Uint8Array(await new Response(a).arrayBuffer())),Ko=(a,...c)=>{try{return!!a(...c)}catch{return!1}},fa=Wo&&Ko(()=>{let a=!1;const c=new Request(ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return a=!0,"half"}}).headers.has("Content-Type");return a&&!c}),Qo=64*1024,Er=Wo&&Ko(()=>I.isReadableStream(new Response("").body)),ir={stream:Er&&(a=>a.body)};tr&&(a=>{["text","arrayBuffer","blob","formData","stream"].forEach(c=>{!ir[c]&&(ir[c]=I.isFunction(a[c])?h=>h[c]():(h,_)=>{throw new z(`Response type '${c}' is not supported`,z.ERR_NOT_SUPPORT,_)})})})(new Response);const Ma=async a=>{if(a==null)return 0;if(I.isBlob(a))return a.size;if(I.isSpecCompliantForm(a))return(await new Request(ge.origin,{method:"POST",body:a}).arrayBuffer()).byteLength;if(I.isArrayBufferView(a)||I.isArrayBuffer(a))return a.byteLength;if(I.isURLSearchParams(a)&&(a=a+""),I.isString(a))return(await Aa(a)).byteLength},Ta=async(a,c)=>I.toFiniteNumber(a.getContentLength())??Ma(c),$a=tr&&(async a=>{let{url:c,method:h,data:_,signal:$,cancelToken:C,timeout:T,onDownloadProgress:r,onUploadProgress:l,responseType:n,headers:g,withCredentials:s="same-origin",fetchOptions:S}=Uo(a);n=n?(n+"").toLowerCase():"text";let p=Sa([$,C&&C.toAbortSignal()],T),A;const u=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let t;try{if(l&&fa&&h!=="get"&&h!=="head"&&(t=await Ta(g,_))!==0){let m=new Request(c,{method:"POST",body:_,duplex:"half"}),v;if(I.isFormData(_)&&(v=m.headers.get("content-type"))&&g.setContentType(v),m.body){const[M,x]=ko(t,or(Fo(l)));_=Vo(m.body,Qo,M,x)}}I.isString(s)||(s=s?"include":"omit");const i="credentials"in Request.prototype;A=new Request(c,{...S,signal:p,method:h.toUpperCase(),headers:g.normalize().toJSON(),body:_,duplex:"half",credentials:i?s:void 0});let o=await fetch(A);const e=Er&&(n==="stream"||n==="response");if(Er&&(r||e&&u)){const m={};["status","statusText","headers"].forEach(f=>{m[f]=o[f]});const v=I.toFiniteNumber(o.headers.get("content-length")),[M,x]=r&&ko(v,or(Fo(r),!0))||[];o=new Response(Vo(o.body,Qo,M,()=>{x&&x(),u&&u()}),m)}n=n||"text";let d=await ir[I.findKey(ir,n)||"text"](o,a);return!e&&u&&u(),await new Promise((m,v)=>{Ro(m,v,{data:d,headers:_e.from(o.headers),status:o.status,statusText:o.statusText,config:a,request:A})})}catch(i){throw u&&u(),i&&i.name==="TypeError"&&/fetch/i.test(i.message)?Object.assign(new z("Network Error",z.ERR_NETWORK,a,A),{cause:i.cause||i}):z.from(i,i&&i.code,a,A)}}),yr={http:Di,xhr:ha,fetch:$a};I.forEach(yr,(a,c)=>{if(a){try{Object.defineProperty(a,"name",{value:c})}catch{}Object.defineProperty(a,"adapterName",{value:c})}});const Zo=a=>`- ${a}`,Pa=a=>I.isFunction(a)||a===null||a===!1,Yo={getAdapter:a=>{a=I.isArray(a)?a:[a];const{length:c}=a;let h,_;const $={};for(let C=0;C`adapter ${r} `+(l===!1?"is not supported by the environment":"is not available in the build"));let T=c?C.length>1?`since : +`+C.map(Zo).join(` +`):" "+Zo(C[0]):"as no adapter specified";throw new z("There is no suitable adapter to dispatch the request "+T,"ERR_NOT_SUPPORT")}return _},adapters:yr};function Br(a){if(a.cancelToken&&a.cancelToken.throwIfRequested(),a.signal&&a.signal.aborted)throw new Be(null,a)}function zo(a){return Br(a),a.headers=_e.from(a.headers),a.data=Lr.call(a,a.transformRequest),["post","put","patch"].indexOf(a.method)!==-1&&a.headers.setContentType("application/x-www-form-urlencoded",!1),Yo.getAdapter(a.adapter||br.adapter)(a).then(function(c){return Br(a),c.data=Lr.call(a,a.transformResponse,c),c.headers=_e.from(c.headers),c},function(c){return Do(c)||(Br(a),c&&c.response&&(c.response.data=Lr.call(a,a.transformResponse,c.response),c.response.headers=_e.from(c.response.headers))),Promise.reject(c)})}const Jo="1.7.7",Gr={};["object","boolean","number","function","string","symbol"].forEach((a,c)=>{Gr[a]=function(h){return typeof h===a||"a"+(c<1?"n ":" ")+a}});const jo={};Gr.transitional=function(a,c,h){function _($,C){return"[Axios v"+Jo+"] Transitional option '"+$+"'"+C+(h?". "+h:"")}return($,C,T)=>{if(a===!1)throw new z(_(C," has been removed"+(c?" in "+c:"")),z.ERR_DEPRECATED);return c&&!jo[C]&&(jo[C]=!0,console.warn(_(C," has been deprecated since v"+c+" and will be removed in the near future"))),a?a($,C,T):!0}};function ba(a,c,h){if(typeof a!="object")throw new z("options must be an object",z.ERR_BAD_OPTION_VALUE);const _=Object.keys(a);let $=_.length;for(;$-- >0;){const C=_[$],T=c[C];if(T){const r=a[C],l=r===void 0||T(r,C,a);if(l!==!0)throw new z("option "+C+" must be "+l,z.ERR_BAD_OPTION_VALUE);continue}if(h!==!0)throw new z("Unknown option "+C,z.ERR_BAD_OPTION)}}const wr={assertOptions:ba,validators:Gr},$e=wr.validators;class ar{constructor(c){this.defaults=c,this.interceptors={request:new wo,response:new wo}}async request(c,h){try{return await this._request(c,h)}catch(_){if(_ instanceof Error){let $;Error.captureStackTrace?Error.captureStackTrace($={}):$=new Error;const C=$.stack?$.stack.replace(/^.+\n/,""):"";try{_.stack?C&&!String(_.stack).endsWith(C.replace(/^.+\n.+\n/,""))&&(_.stack+=` +`+C):_.stack=C}catch{}}throw _}}_request(c,h){typeof c=="string"?(h=h||{},h.url=c):h=c||{},h=Le(this.defaults,h);const{transitional:_,paramsSerializer:$,headers:C}=h;_!==void 0&&wr.assertOptions(_,{silentJSONParsing:$e.transitional($e.boolean),forcedJSONParsing:$e.transitional($e.boolean),clarifyTimeoutError:$e.transitional($e.boolean)},!1),$!=null&&(I.isFunction($)?h.paramsSerializer={serialize:$}:wr.assertOptions($,{encode:$e.function,serialize:$e.function},!0)),h.method=(h.method||this.defaults.method||"get").toLowerCase();let T=C&&I.merge(C.common,C[h.method]);C&&I.forEach(["delete","get","head","post","put","patch","common"],A=>{delete C[A]}),h.headers=_e.concat(T,C);const r=[];let l=!0;this.interceptors.request.forEach(function(A){typeof A.runWhen=="function"&&A.runWhen(h)===!1||(l=l&&A.synchronous,r.unshift(A.fulfilled,A.rejected))});const n=[];this.interceptors.response.forEach(function(A){n.push(A.fulfilled,A.rejected)});let g,s=0,S;if(!l){const A=[zo.bind(this),void 0];for(A.unshift.apply(A,r),A.push.apply(A,n),S=A.length,g=Promise.resolve(h);s{if(!_._listeners)return;let C=_._listeners.length;for(;C-- >0;)_._listeners[C]($);_._listeners=null}),this.promise.then=$=>{let C;const T=new Promise(r=>{_.subscribe(r),C=r}).then($);return T.cancel=function(){_.unsubscribe(C)},T},c(function($,C,T){_.reason||(_.reason=new Be($,C,T),h(_.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(c){if(this.reason){c(this.reason);return}this._listeners?this._listeners.push(c):this._listeners=[c]}unsubscribe(c){if(!this._listeners)return;const h=this._listeners.indexOf(c);h!==-1&&this._listeners.splice(h,1)}toAbortSignal(){const c=new AbortController,h=_=>{c.abort(_)};return this.subscribe(h),c.signal.unsubscribe=()=>this.unsubscribe(h),c.signal}static source(){let c;return{token:new Or(function(h){c=h}),cancel:c}}}const Ca=Or;function La(a){return function(c){return a.apply(null,c)}}function Ea(a){return I.isObject(a)&&a.isAxiosError===!0}const Nr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nr).forEach(([a,c])=>{Nr[c]=a});const ya=Nr;function qo(a){const c=new lr(a),h=So(lr.prototype.request,c);return I.extend(h,lr.prototype,c,{allOwnKeys:!0}),I.extend(h,c,null,{allOwnKeys:!0}),h.create=function(_){return qo(Le(a,_))},h}const ae=qo(br);ae.Axios=lr,ae.CanceledError=Be,ae.CancelToken=Ca,ae.isCancel=Do,ae.VERSION=Jo,ae.toFormData=qe,ae.AxiosError=z,ae.Cancel=ae.CanceledError,ae.all=function(a){return Promise.all(a)},ae.spread=La,ae.isAxiosError=Ea,ae.mergeConfig=Le,ae.AxiosHeaders=_e,ae.formToJSON=a=>No(I.isHTMLForm(a)?new FormData(a):a),ae.getAdapter=Yo.getAdapter,ae.HttpStatusCode=ya,ae.default=ae;const et=ae,Ba={class:"top-menu"},Ga={class:"tab-list"},wa=["onClick"],Oa={key:0,class:"run"},Na={key:1,class:"run"},Ia=pe({__name:"tabList",props:{tablist:{},val:{},code:{}},emits:["updateVal","updateOutput"],setup(a,{emit:c}){const h=a,_=c;function $(r){_("updateVal",r)}let C=Ae(!1);Qe(async()=>{await v3(),T(h.code)});async function T(r){C.value=!0;try{let l=await et.post("https://runner.pivotlang.tech/coderunner",{code:r});if(C.value=!1,l.data.status===1){_("updateOutput",l.data.compileOutput);return}if(!l.data.runOutput&&l.data.status===0){_("updateOutput","run success with no output");return}_("updateOutput",l.data.runOutput)}catch(l){C.value=!1,_("updateOutput",l)}}return(r,l)=>{const n=Ct("font-awesome-icon");return ie(),le("div",Ba,[V("div",Ga,[(ie(!0),le(Ze,null,go(h.tablist,g=>(ie(),le("div",{onClick:s=>$(g),key:g,class:xo({selected:h.val==g})},Ne(g),11,wa))),128))]),ee(C)?(ie(),le("div",Na,[re(n,{icon:"fa-spinner",class:"fa-spin",style:{color:"grey"}})])):(ie(),le("div",Oa,[re(n,{icon:"fa-play",style:Lt([{color:"green"},{cursor:"pointer"}]),onClick:l[0]||(l[0]=g=>T(h.code)),class:""})]))])}}}),Da=fe(Ia,[["__scopeId","data-v-04026cb9"]]),Ra=pe({__name:"gcEcharts",setup(a){const c=Ae(null),h={animationDuration:2e3,xAxis:{type:"category",data:["2","3","4","5","6","7","8","9","10"],name:"thread"},yAxis:{type:"value",name:"time",axisLine:{show:!0},splitLine:{show:!1}},legend:{data:["immix gc","bdw gc"],textStyle:{color:"white"},itemStyle:{color:"black"}},series:[{name:"immix gc",data:[.45,.46,.48,.53,.62,.7,.72,1.03,1.08],type:"line"},{name:"bdw gc",data:[.44,.77,1.21,1.69,2.37,2.85,3.45,4.12,4.65],type:"line"}]};Qe(()=>{ho(()=>import("./index-217cde21.js"),[]).then(async $=>{const C=$.init(c.value),T=()=>{const{top:r,bottom:l}=c.value.getBoundingClientRect();r0&&(window.removeEventListener("scroll",T),C.setOption(h))};window.addEventListener("scroll",T)})});function _(){window.open("https://pivotlang.tech/docs/systemlib/immix.html#%E6%80%A7%E8%83%BD")}return($,C)=>(ie(),le(Ze,null,[V("div",{ref_key:"echartsDom",ref:c,class:"chart-container"},null,512),V("div",{class:"button"},[V("span",{onClick:_},"\u{1F449} See benchmark details")])],64))}}),ka=["src"],Fa={class:"name"},Xa=pe({__name:"memberCard",props:{avatar:{},name:{},identity:{},github:{}},setup(a){const c=a;function h(){window.open(c.github)}return(_,$)=>(ie(),le("div",{class:"container",onClick:h},[V("div",null,[V("img",{class:"avatar",src:c.avatar},null,8,ka)]),V("div",Fa,Ne(c.name),1),V("div",null,Ne(c.identity),1)]))}}),Ha=fe(Xa,[["__scopeId","data-v-2c4d0eb1"]]),Ua={},Va={class:"bottom"};function Wa(a,c){return ie(),le("div",Va,c[0]||(c[0]=[V("div",{class:"left"},[V("img",{src:uo}),V("span",null,"Pivot Lang")],-1),V("div",{class:"right"},"\xA9Pivot Lang 2023. All rights reserved | Privacy Policy",-1)]))}const Ka=fe(Ua,[["render",Wa],["__scopeId","data-v-ca86735e"]]),Qa={class:"out-container"},Za={class:"container"},Ya={class:"line"},za={class:"content"},Ja={class:"line"},ja={class:"content"},qa={class:"line"},el={class:"content"},rl={class:"line"},ol={class:"content"},tl={class:"line"},il={class:"content"},al=pe({__name:"moreInfo",setup(a){return(c,h)=>(ie(),le("div",Qa,[V("div",Za,[V("div",Ya,[h[3]||(h[3]=V("div",{class:"title"},"Why PL",-1)),V("div",za,[re(ee(ne),{href:"https://pivotlang.tech/docs/systemlib/immix.html"},{default:me(()=>h[0]||(h[0]=[V("div",null,"immix GC",-1)])),_:1}),re(ee(ne),{href:"https://pivotlang.tech/docs/tutorial/vscsupport.html"},{default:me(()=>h[1]||(h[1]=[V("div",null,"VSC Support",-1)])),_:1}),re(ee(ne),{href:"https://pivotlang.tech/docs/references/module.html"},{default:me(()=>h[2]||(h[2]=[V("div",null,"Module",-1)])),_:1})])]),V("div",Ja,[h[7]||(h[7]=V("div",{class:"title"},"Get Started",-1)),V("div",ja,[re(ee(ne),{href:"https://pivotlang.tech/docs/index.html"},{default:me(()=>h[4]||(h[4]=[V("div",null,"Documentation",-1)])),_:1}),re(ee(ne),{href:"https://pivotlang.tech/docs/tutorial/index.html"},{default:me(()=>h[5]||(h[5]=[V("div",null,"Tutorial",-1)])),_:1}),re(ee(ne),{href:"https://pivotlang.tech/docs/references/index.html"},{default:me(()=>h[6]||(h[6]=[V("div",null,"API Reference",-1)])),_:1})])]),V("div",qa,[h[10]||(h[10]=V("div",{class:"title"},"Resources",-1)),V("div",el,[re(ee(ne),{href:"https://pivotlang.tech/docs/blogs/aboutpl.html"},{default:me(()=>h[8]||(h[8]=[V("div",null,"Blog",-1)])),_:1}),re(ee(ne),{href:"https://pivotlang.tech/docs/blogs/lsp_and_salsa.html"},{default:me(()=>h[9]||(h[9]=[V("div",null,"lsp and salsa",-1)])),_:1})])]),V("div",rl,[h[13]||(h[13]=V("div",{class:"title"},"Community",-1)),V("div",ol,[re(ee(ne),{href:"https://pivotlang.tech/docs/CONTRIBUTING-CN.html"},{default:me(()=>h[11]||(h[11]=[V("div",null,"Contributor's Guide",-1)])),_:1}),re(ee(ne),{href:"https://github.com/Pivot-Studio/pivot-lang/issues"},{default:me(()=>h[12]||(h[12]=[V("div",null,"Good First Issue",-1)])),_:1})])]),V("div",tl,[h[16]||(h[16]=V("div",{class:"title"},"Contact",-1)),V("div",il,[re(ee(ne),{href:"https://github.com/Pivot-Studio/pivot-lang"},{default:me(()=>h[14]||(h[14]=[V("div",null,"Github",-1)])),_:1}),re(ee(ne),{href:"https://qm.qq.com/q/xjPHKHBl0A"},{default:me(()=>h[15]||(h[15]=[V("div",null,"QQ group",-1)])),_:1})])])])]))}}),ll=fe(al,[["__scopeId","data-v-d074e1e7"]]),sl="#1db010",nl="#f5d10a",dl="#f50a0a";function Ir(a,c,h){var $;if(h===c.length)return a;for(let C=0;C<((($=a.children)==null?void 0:$.length)??0);C++){const T=a.children[C];if(T.filename===c.slice(0,h+1).join("/"))return Ir(T,c,h+1)}const _={value:0,coverage:0,itemStyle:{color:"#fff"},children:[],filename:c.slice(0,h+1).join("/"),father:a,hits:0};return a.children?a.children.push(_):a.children=[_],Ir(_,c,h+1)}const ml=a=>{let c={value:0,coverage:0,itemStyle:{color:"#fff"},children:[],filename:"Pivot Lang",hits:0};for(let h=0;h(await et.get("https://cov.pivotlang.tech/api/v2/github/Pivot-Studio/repos/pivot-lang/totals/?branch=master",{headers:{accept:"application/json"}})).data,gl={class:"cov"},xl=pe({__name:"codecovEcharts",setup(a){const c=Ae(null),h=Ae(0),_=Ae("Pivot Lang");Ke("isMobile"),Qe(async()=>{ho(()=>import("./index-217cde21.js"),[]).then(async r=>{const l=ml(await cl());h.value=l.coverage;const n={tooltip:{trigger:"item"},series:{type:"sunburst",sort:void 0,tooltip:{formatter:$},emphasis:{disable:!0},data:l.children,label:{formatter:"",show:!1},levels:[]}},g=r.init(c.value),s=()=>{const{top:S,bottom:p}=c.value.getBoundingClientRect();S0&&(window.removeEventListener("scroll",s),g.setOption(n))};window.addEventListener("scroll",s)})});function $(r){let l=r.data;if(l.filename)_.value=l.filename,h.value=l.coverage;else{let n=0,g=0;for(let S=0;S=.8?"covHigh":h.value>=.5?"covMiddle":"covLow"}return(r,l)=>(ie(),le(Ze,null,[V("div",{ref_key:"covchartsDom",ref:c,class:"chart-container"},null,512),V("div",gl,[Sr(Ne(_.value)+" coverage: ",1),V("span",{class:xo(T())},Ne((h.value*100).toFixed(2))+"%",3)]),V("div",{class:"button"},[V("span",{onClick:C},"\u{1F449} See test details")])],64))}}),hl=fe(xl,[["__scopeId","data-v-df4c4dce"]]);var ot={exports:{}};(function(a){var c=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{},h=function(_){var $=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,C=0,T={},r={manual:_.Prism&&_.Prism.manual,disableWorkerMessageHandler:_.Prism&&_.Prism.disableWorkerMessageHandler,util:{encode:function o(e){return e instanceof l?new l(e.type,o(e.content),e.alias):Array.isArray(e)?e.map(o):e.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(m){var o=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(m.stack)||[])[1];if(o){var e=document.getElementsByTagName("script");for(var d in e)if(e[d].src==o)return e[d]}return null}},isActive:function(o,e,d){for(var m="no-"+e;o;){var v=o.classList;if(v.contains(e))return!0;if(v.contains(m))return!1;o=o.parentElement}return!!d}},languages:{plain:T,plaintext:T,text:T,txt:T,extend:function(o,e){var d=r.util.clone(r.languages[o]);for(var m in e)d[m]=e[m];return d},insertBefore:function(o,e,d,m){m=m||r.languages;var v=m[o],M={};for(var x in v)if(v.hasOwnProperty(x)){if(x==e)for(var f in d)d.hasOwnProperty(f)&&(M[f]=d[f]);d.hasOwnProperty(x)||(M[x]=v[x])}var L=m[o];return m[o]=M,r.languages.DFS(r.languages,function(G,E){E===L&&G!=o&&(this[G]=M)}),M},DFS:function o(e,d,m,v){v=v||{};var M=r.util.objId;for(var x in e)if(e.hasOwnProperty(x)){d.call(e,x,e[x],m||x);var f=e[x],L=r.util.type(f);L==="Object"&&!v[M(f)]?(v[M(f)]=!0,o(f,d,null,v)):L==="Array"&&!v[M(f)]&&(v[M(f)]=!0,o(f,d,x,v))}}},plugins:{},highlightAll:function(o,e){r.highlightAllUnder(document,o,e)},highlightAllUnder:function(o,e,d){var m={callback:d,container:o,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",m),m.elements=Array.prototype.slice.apply(m.container.querySelectorAll(m.selector)),r.hooks.run("before-all-elements-highlight",m);for(var v=0,M;M=m.elements[v++];)r.highlightElement(M,e===!0,m.callback)},highlightElement:function(o,e,d){var m=r.util.getLanguage(o),v=r.languages[m];r.util.setLanguage(o,m);var M=o.parentElement;M&&M.nodeName.toLowerCase()==="pre"&&r.util.setLanguage(M,m);var x=o.textContent,f={element:o,language:m,grammar:v,code:x};function L(E){f.highlightedCode=E,r.hooks.run("before-insert",f),f.element.innerHTML=f.highlightedCode,r.hooks.run("after-highlight",f),r.hooks.run("complete",f),d&&d.call(f.element)}if(r.hooks.run("before-sanity-check",f),M=f.element.parentElement,M&&M.nodeName.toLowerCase()==="pre"&&!M.hasAttribute("tabindex")&&M.setAttribute("tabindex","0"),!f.code){r.hooks.run("complete",f),d&&d.call(f.element);return}if(r.hooks.run("before-highlight",f),!f.grammar){L(r.util.encode(f.code));return}if(e&&_.Worker){var G=new Worker(r.filename);G.onmessage=function(E){L(E.data)},G.postMessage(JSON.stringify({language:f.language,code:f.code,immediateClose:!0}))}else L(r.highlight(f.code,f.grammar,f.language))},highlight:function(o,e,d){var m={code:o,grammar:e,language:d};if(r.hooks.run("before-tokenize",m),!m.grammar)throw new Error('The language "'+m.language+'" has no grammar.');return m.tokens=r.tokenize(m.code,m.grammar),r.hooks.run("after-tokenize",m),l.stringify(r.util.encode(m.tokens),m.language)},tokenize:function(o,e){var d=e.rest;if(d){for(var m in d)e[m]=d[m];delete e.rest}var v=new s;return S(v,v.head,o),g(o,v,e,v.head,0),A(v)},hooks:{all:{},add:function(o,e){var d=r.hooks.all;d[o]=d[o]||[],d[o].push(e)},run:function(o,e){var d=r.hooks.all[o];if(!(!d||!d.length))for(var m=0,v;v=d[m++];)v(e)}},Token:l};_.Prism=r;function l(o,e,d,m){this.type=o,this.content=e,this.alias=d,this.length=(m||"").length|0}l.stringify=function o(e,d){if(typeof e=="string")return e;if(Array.isArray(e)){var m="";return e.forEach(function(L){m+=o(L,d)}),m}var v={type:e.type,content:o(e.content,d),tag:"span",classes:["token",e.type],attributes:{},language:d},M=e.alias;M&&(Array.isArray(M)?Array.prototype.push.apply(v.classes,M):v.classes.push(M)),r.hooks.run("wrap",v);var x="";for(var f in v.attributes)x+=" "+f+'="'+(v.attributes[f]||"").replace(/"/g,""")+'"';return"<"+v.tag+' class="'+v.classes.join(" ")+'"'+x+">"+v.content+""};function n(o,e,d,m){o.lastIndex=e;var v=o.exec(d);if(v&&m&&v[1]){var M=v[1].length;v.index+=M,v[0]=v[0].slice(M)}return v}function g(o,e,d,m,v,M){for(var x in d)if(!(!d.hasOwnProperty(x)||!d[x])){var f=d[x];f=Array.isArray(f)?f:[f];for(var L=0;L=M.reach);y+=P.value.length,P=P.next){var B=P.value;if(e.length>o.length)return;if(!(B instanceof l)){var O=1,X;if(D){if(X=n(H,y,o,w),!X||X.index>=o.length)break;var oe=X.index,W=X.index+X[0].length,Z=y;for(Z+=P.value.length;oe>=Z;)P=P.next,Z+=P.value.length;if(Z-=P.value.length,y=Z,P.value instanceof l)continue;for(var Q=P;Q!==e.tail&&(ZM.reach&&(M.reach=R);var Y=P.prev;N&&(Y=S(e,Y,N),y+=N.length),p(e,Y,O);var K=new l(x,E?r.tokenize(b,E):b,F,b);if(P=S(e,Y,K),k&&S(e,P,k),O>1){var q={cause:x+","+L,reach:R};g(o,e,d,P.prev,y,q),M&&q.reach>M.reach&&(M.reach=q.reach)}}}}}}function s(){var o={value:null,prev:null,next:null},e={value:null,prev:o,next:null};o.next=e,this.head=o,this.tail=e,this.length=0}function S(o,e,d){var m=e.next,v={value:d,prev:e,next:m};return e.next=v,m.prev=v,o.length++,v}function p(o,e,d){for(var m=e.next,v=0;v>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+c),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};a.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+c),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:_},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:h}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:_},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:_.entity}}],environment:{pattern:RegExp("\\$?"+c),alias:"constant"},variable:_.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},h.inside=a.languages.bash;for(var $=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],C=_.variable[1].inside,T=0;T<$.length;T++)C[$[T]]=a.languages.bash[$[T]];a.languages.sh=a.languages.bash,a.languages.shell=a.languages.bash})(Prism),function(){if(typeof Prism>"u"||typeof document>"u")return;var a="line-numbers",c=/\n(?!$)/g,h=Prism.plugins.lineNumbers={getLine:function(T,r){if(!(T.tagName!=="PRE"||!T.classList.contains(a))){var l=T.querySelector(".line-numbers-rows");if(l){var n=parseInt(T.getAttribute("data-start"),10)||1,g=n+(l.children.length-1);rg&&(r=g);var s=r-n;return l.children[s]}}},resize:function(T){_([T])},assumeViewportIndependence:!0};function _(T){if(T=T.filter(function(l){var n=$(l),g=n["white-space"];return g==="pre-wrap"||g==="pre-line"}),T.length!=0){var r=T.map(function(l){var n=l.querySelector("code"),g=l.querySelector(".line-numbers-rows");if(!(!n||!g)){var s=l.querySelector(".line-numbers-sizer"),S=n.textContent.split(c);s||(s=document.createElement("span"),s.className="line-numbers-sizer",n.appendChild(s)),s.innerHTML="0",s.style.display="block";var p=s.getBoundingClientRect().height;return s.innerHTML="",{element:l,lines:S,lineHeights:[],oneLinerHeight:p,sizer:s}}}).filter(Boolean);r.forEach(function(l){var n=l.sizer,g=l.lines,s=l.lineHeights,S=l.oneLinerHeight;s[g.length-1]=void 0,g.forEach(function(p,A){if(p&&p.length>1){var u=n.appendChild(document.createElement("span"));u.style.display="block",u.textContent=p}else s[A]=S})}),r.forEach(function(l){for(var n=l.sizer,g=l.lineHeights,s=0,S=0;S");s=document.createElement("span"),s.setAttribute("aria-hidden","true"),s.className="line-numbers-rows",s.innerHTML=S,l.hasAttribute("data-start")&&(l.style.counterReset="linenumber "+(parseInt(l.getAttribute("data-start"),10)-1)),T.element.appendChild(s),_([l]),Prism.hooks.run("line-numbers",T)}}}),Prism.hooks.add("line-numbers",function(T){T.plugins=T.plugins||{},T.plugins.lineNumbers=!0})}(),function(){if(typeof Prism>"u"||typeof document>"u")return;var a=[],c={},h=function(){};Prism.plugins.toolbar={};var _=Prism.plugins.toolbar.registerButton=function(T,r){var l;if(typeof r=="function"?l=r:l=function(n){var g;return typeof r.onClick=="function"?(g=document.createElement("button"),g.type="button",g.addEventListener("click",function(){r.onClick.call(this,n)})):typeof r.url=="string"?(g=document.createElement("a"),g.href=r.url):g=document.createElement("span"),r.className&&g.classList.add(r.className),g.textContent=r.text,g},T in c){console.warn('There is a button with the key "'+T+'" registered already.');return}a.push(c[T]=l)};function $(T){for(;T;){var r=T.getAttribute("data-toolbar-order");if(r!=null)return r=r.trim(),r.length?r.split(/\s*,\s*/g):[];T=T.parentElement}}var C=Prism.plugins.toolbar.hook=function(T){var r=T.element.parentNode;if(!(!r||!/pre/i.test(r.nodeName))&&!r.parentNode.classList.contains("code-toolbar")){var l=document.createElement("div");l.classList.add("code-toolbar"),r.parentNode.insertBefore(l,r),l.appendChild(r);var n=document.createElement("div");n.classList.add("toolbar");var g=a,s=$(T.element);s&&(g=s.map(function(S){return c[S]||h})),g.forEach(function(S){var p=S(T);if(p){var A=document.createElement("div");A.classList.add("toolbar-item"),A.appendChild(p),n.appendChild(A)}}),l.appendChild(n)}};_("label",function(T){var r=T.element.parentNode;if(!(!r||!/pre/i.test(r.nodeName))&&r.hasAttribute("data-label")){var l,n,g=r.getAttribute("data-label");try{n=document.querySelector("template#"+g)}catch{}return n?l=n.content:(r.hasAttribute("data-url")?(l=document.createElement("a"),l.href=r.getAttribute("data-url")):l=document.createElement("span"),l.textContent=g),l}}),Prism.hooks.add("complete",C)}(),function(){if(typeof Prism>"u"||typeof document>"u")return;if(!Prism.plugins.toolbar){console.warn("Copy to Clipboard plugin loaded before Toolbar plugin.");return}function a(C,T){C.addEventListener("click",function(){h(T)})}function c(C){var T=document.createElement("textarea");T.value=C.getText(),T.style.top="0",T.style.left="0",T.style.position="fixed",document.body.appendChild(T),T.focus(),T.select();try{var r=document.execCommand("copy");setTimeout(function(){r?C.success():C.error()},1)}catch(l){setTimeout(function(){C.error(l)},1)}document.body.removeChild(T)}function h(C){navigator.clipboard?navigator.clipboard.writeText(C.getText()).then(C.success,function(){c(C)}):c(C)}function _(C){window.getSelection().selectAllChildren(C)}function $(C){var T={copy:"Copy","copy-error":"Press Ctrl+C to copy","copy-success":"Copied!","copy-timeout":5e3},r="data-prismjs-";for(var l in T){for(var n=r+l,g=C;g&&!g.hasAttribute(n);)g=g.parentElement;g&&(T[l]=g.getAttribute(n))}return T}Prism.plugins.toolbar.registerButton("copy-to-clipboard",function(C){var T=C.element,r=$(T),l=document.createElement("button");l.className="copy-to-clipboard-button",l.setAttribute("type","button");var n=document.createElement("span");return l.appendChild(n),s("copy"),a(l,{getText:function(){return T.textContent},success:function(){s("copy-success"),g()},error:function(){s("copy-error"),setTimeout(function(){_(T)},1),g()}}),l;function g(){setTimeout(function(){s("copy")},r["copy-timeout"])}function s(S){n.textContent=r[S],l.setAttribute("data-copy-state",S)}})}();const _l={"data-prismjs-copy":"copy","data-prismjs-copy-error":"\u6309Ctrl+C\u590D\u5236","data-prismjs-copy-success":"copied!",class:"pre data-prismjs-copy"},vl={className:"language-jsx",style:{"font-size":"10px"}},pl=pe({__name:"codeBlock",props:{code:{type:String,default:""}},setup(a){const c=a;return Qe(()=>{Sl.highlightAll()}),(h,_)=>(ie(),le("pre",_l,[_[0]||(_[0]=Sr(" ")),V("code",vl,Ne(c.code),1),_[1]||(_[1]=Sr(` + `))]))}}),Al=fe(pl,[["__scopeId","data-v-f38e72cf"]]);var Dr={},sr={},Me={},Rr={};Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.trim=(a,c)=>a.replace(new RegExp("^["+c+"]+|["+c+"]+$","g"),""),Object.defineProperty(Me,"__esModule",{value:!0});const fl=Rr;Me.formatVersion=(a,c)=>{if(a===void 0)return"";const h=fl.trim(a,". ").replace(new RegExp("_","g"),"."),_=h.split(".");return/^\d+$/.test(_.join(""))?c!==0&&Number.isInteger(parseFloat(h))?parseInt(h,10).toFixed(1):_.length>1&&c!==null?_.slice(0,c+1).join("."):h:h},Me.parseBrowserEngineVersion=(a,c)=>{if(!c)return"";if(c==="Gecko"){const $=/[ ](?:rv[: ]([0-9\.]+)).*gecko\/[0-9]{8,10}/i,C=a.match($);if(C)return C.pop()}const h=new RegExp(`${c}\\s*\\/?\\s*((?:(?=\\d+\\.\\d)\\d+[.\\d]*|\\d{1,7}(?=(?:\\D|$))))`,"i"),_=a.match(h);return _?_.pop():""};var ce={};Object.defineProperty(ce,"__esModule",{value:!0}),ce.variableReplacement=(a,c)=>{const h=new RegExp("\\$\\d","g");return a==null?"":a.replace(h,_=>{const $=parseInt(_.substr(1),10);return c[$-1]||""})};var se={},kr={};Object.defineProperty(kr,"__esModule",{value:!0}),kr.memoryCache=()=>{const a={};return{set:(c,h)=>{a[c]=h},get:c=>{if(a.hasOwnProperty(c))return a[c]}}},Object.defineProperty(se,"__esModule",{value:!0});const Ml=kr,tt=Ml.memoryCache(),Tl=a=>{const c=tt.get(a);if(c)return c.value;const h=RegExp(`(?:^|[^A-Z0-9-_]|[^A-Z0-9-]_|sprd-)(?:${a})`,"i");return tt.set(a,{value:h}),h};se.userAgentParser=(a,c)=>{try{const h=Tl(a).exec(c);return h?h.slice(1):null}catch{return null}};const $l=[{regex:"Helio/(\\d+[\\.\\d]+)",name:"Helio",version:"$1",engine:{default:"Blink"}},{regex:"7654Browser/(\\d+[\\.\\d]+)",name:"7654 Browser",version:"$1",engine:{default:"Blink"}},{regex:"Qazweb/(\\d+[\\.\\d]+)",name:"Qazweb",version:"$1",engine:{default:"Gecko"}},{regex:"Degdegan/(\\d+[\\.\\d]+)",name:"deg-degan",version:"$1",engine:{default:"Blink"}},{regex:"JavaFX/(\\d+[\\.\\d]+)",name:"JavaFX",version:"$1",engine:{default:"WebKit"}},{regex:"Chedot/(\\d+[\\.\\d]+)",name:"Chedot",version:"$1",engine:{default:"Blink"}},{regex:"Chrome/(\\d+[\\.\\d]+) \\(Chromium GOST\\)",name:"Chromium GOST",version:"$1",engine:{default:"Blink"}},{regex:"(?:DeledaoPersonal|DeledaoFamily)/(\\d+[\\.\\d]+)",name:"Deledao",version:"$1",engine:{default:"Blink"}},{regex:"HasBrowser/(\\d+[\\.\\d]+)",name:"HasBrowser",version:"$1",engine:{default:"Blink"}},{regex:"Byffox/(\\d+[\\.\\d]+)",name:"Byffox",version:"$1",engine:{default:"Gecko"}},{regex:"Chrome/(\\d+[\\.\\d]+).+AgentWeb.+UCBrowser",name:"CoolBrowser",version:"$1",engine:{default:"Blink"}},{regex:"DotBrowser/(\\d+[\\.\\d]+)",name:"Dot Browser",version:"$1",engine:{default:"Blink"}},{regex:"CravingExplorer/(\\d+[\\.\\d]+)",name:"Craving Explorer",version:"$1",engine:{default:"Blink"}},{regex:"DeskBrowse/(\\d+[\\.\\d]+)",name:"DeskBrowse",version:"$1"},{regex:"Lolifox/(\\d+[\\.\\d]+)",name:"Lolifox",version:"$1"},{regex:"qutebrowser/(\\d+[\\.\\d]+).+Chrome",name:"Qutebrowser",version:"$1",engine:{default:"Blink"}},{regex:"qutebrowser(?:/(\\d+[\\.\\d]+))?",name:"Qutebrowser",version:"$1"},{regex:"flast/(\\d+[\\.\\d]+)",name:"Flast",version:"$1",engine:{default:"Blink"}},{regex:"PolyBrowser/(\\d+[\\.\\d]+)",name:"PolyBrowser",version:"$1",engine:{default:"Gecko"}},{regex:"Chrome.+BriskBard/(\\d+[\\.\\d]+)",name:"BriskBard",version:"$1",engine:{default:"Blink"}},{regex:"BriskBard(?:/(\\d+[\\.\\d]+))?",name:"BriskBard",version:"$1"},{regex:"GinxDroidBrowser/(\\d+[\\.\\d]+)",name:"GinxDroid Browser",version:"$1",engine:{default:"Blink"}},{regex:"AviraScout/(\\d+[\\.\\d]+)",name:"Avira Scout",version:"$1",engine:{default:"Blink"}},{regex:"VenusBrowser/(\\d+[\\.\\d]+)",name:"Venus Browser",version:"$1",engine:{default:"Blink"}},{regex:"Chrome.+Otter(?:[ /](\\d+[\\.\\d]+))?",name:"Otter Browser",version:"$1",engine:{default:"Blink"}},{regex:"Otter(?:[ /](\\d+[\\.\\d]+))?",name:"Otter Browser",version:"$1"},{regex:"Chrome.+Smooz/(\\d+[\\.\\d]+)",name:"Smooz",version:"$1",engine:{default:"Blink"}},{regex:"Smooz/(\\d+[\\.\\d]+)",name:"Smooz",version:"$1"},{regex:"Cornowser/(\\d+[\\.\\d]+)",name:"Cornowser",version:"$1",engine:{default:"Blink"}},{regex:"Orca/(\\d+[\\.\\d]+)",name:"Orca",version:"$1"},{regex:"Flow/(?:(\\d+[\\.\\d]+))",name:"Flow",version:"$1",engine:{default:"EkiohFlow"}},{regex:"Ekioh/(?:(\\d+[\\.\\d]+))",name:"Flow",version:"$1",engine:{default:"EkiohFlow"}},{regex:"xStand/(\\d+[\\.\\d]+)",name:"xStand",version:"$1",engine:{default:"WebKit"}},{regex:"Biyubi/(\\d+[\\.\\d]+)",name:"Biyubi",version:"$1"},{regex:"(?:Perfect%20Browser(?:-iPad)?|Perfect(?:BrowserPro)?)/(\\d+[\\.\\d]+)",name:"Perfect Browser",version:"$1",engine:{default:"WebKit"}},{regex:"Browser/Phantom/V(\\d+[\\.\\d]+)",name:"Phantom Browser",version:"$1"},{regex:"AwoX(?:/(\\d+[\\.\\d]+))? Browser",name:"AwoX",version:"$1"},{regex:"Zetakey/(\\d+[\\.\\d]+)",name:"Zetakey",version:"$1",engine:{default:"WebKit"}},{regex:"PlayFreeBrowser/(?:(\\d+[\\.\\d]+))?",name:"PlayFree Browser",version:"$1"},{regex:"(?:chimlac_browser|chimlac)/(?:(\\d+[\\.\\d]+))",name:"Chim Lac",version:"$1",engine:{default:"Blink"}},{regex:"Odin/(?:(\\d+[\\.\\d]+))",name:"Odin",version:"$1",engine:{default:"Blink"}},{regex:"Tbrowser/(\\d+[\\.\\d]+)",name:"T-Browser",version:"$1",engine:{default:"Blink"}},{regex:"SFive(?:_Android)?/.+ Chrome/(\\d+[\\.\\d]+)",name:"SFive",version:"$1",engine:{default:"Blink"}},{regex:"SFive_IOS/(\\d+[\\.\\d]+)",name:"SFive",version:"$1"},{regex:"Navigateur web/(?:(\\d+[\\.\\d]+))?",name:"Navigateur Web",version:"$1"},{regex:"Sraf(?:[/ ](\\d+[\\.\\d]+))?",name:"Seraphic Sraf",version:"$1",engine:{default:"Blink"}},{regex:"SeewoBrowser/(?:(\\d+[\\.\\d]+))?",name:"Seewo Browser",version:"$1",engine:{default:"Blink"}},{regex:"(?:Kode(?:iOS)?/(?:(\\d+[\\.\\d]+))?|TansoDL)",name:"Kode Browser",version:"$1"},{regex:"UR/(?:(\\d+[\\.\\d]+))",name:"UR Browser",version:"$1",engine:{default:"Blink"}},{regex:"OceanHero/([\\.\\d]+)",name:"OceanHero",version:"$1",engine:{default:"Blink"}},{regex:"Chrome/.+ SLBrowser/(?:(\\d+[\\.\\d]+))?",name:"Smart Lenovo Browser",version:"$1",engine:{default:"Blink"}},{regex:"SLBrowser/(?:(\\d+[\\.\\d]+))?",name:"Smart Lenovo Browser",version:"$1"},{regex:"Browzar",name:"Browzar",version:""},{regex:"Stargon/(?:(\\d+[\\.\\d]+))?",name:"Stargon",version:"$1",engine:{default:"Blink"}},{regex:"NFSBrowser/(?:(\\d+[\\.\\d]+))?",name:"NFS Browser",version:"$1",engine:{default:"Blink"}},{regex:"Borealis/(\\d+[\\.\\d]+)",name:"Borealis Navigator",version:"$1"},{regex:"YoloBrowser/(?:(\\d+[\\.\\d]+))?",name:"Yolo Browser",version:"$1",engine:{default:"Blink"}},{regex:"PHX/(?:(\\d+[\\.\\d]+))?",name:"Phoenix Browser",version:"$1"},{regex:"PrivacyWall/(?:(\\d+[\\.\\d]+))?",name:"PrivacyWall",version:"$1"},{regex:"Ghostery:?(\\d+[\\.\\d]+)?",name:"Ghostery Privacy Browser",version:"$1"},{regex:"Firefox/.*(?:Turkcell-)?YaaniBrowser(?:/(\\d+[\\.\\d]+))?",name:"Yaani Browser",version:"$1",engine:{default:"Gecko"}},{regex:"(?:Turkcell-)?YaaniBrowser(?:/(\\d+[\\.\\d]+))?",name:"Yaani Browser",version:"$1",engine:{default:"Blink"}},{regex:"SEB/(?:(\\d+[\\.\\d]+))?",name:"Safe Exam Browser",version:"$1"},{regex:"Colibri/(?:(\\d+[\\.\\d]+))?",name:"Colibri",version:"$1"},{regex:"Xvast/(?:(\\d+[\\.\\d]+))?",name:"Xvast",version:"$1"},{regex:"TungstenBrowser/(?:(\\d+[\\.\\d]+))?",name:"Tungsten",version:"$1"},{regex:"Lulumi-browser/(?:(\\d+[\\.\\d]+))?",name:"Lulumi",version:"$1"},{regex:"ybrowser/(?:(\\d+[\\.\\d]+))?",name:"Yahoo! Japan Browser",version:"$1"},{regex:"iLunascapeLite/(?:(\\d+[\\.\\d]+))?",name:"Lunascape Lite",version:"$1"},{regex:"Polypane/(?:(\\d+[\\.\\d]+))?",name:"Polypane",version:"$1"},{regex:"OhHaiBrowser/(?:(\\d+[\\.\\d]+))?",name:"OhHai Browser",version:"$1"},{regex:"Sizzy/(?:(\\d+[\\.\\d]+))?",name:"Sizzy",version:"$1"},{regex:"GlassBrowser/(?:(\\d+[\\.\\d]+))?",name:"Glass Browser",version:"$1"},{regex:"ToGate/(?:(\\d+[\\.\\d]+))?",name:"ToGate",version:"$1"},{regex:"AirWatch Browser v(?:(\\d+[\\.\\d]+))?",name:"VMware AirWatch",version:"$1"},{regex:"ADG/(?:(\\d+[\\.\\d]+))?",name:"AOL Desktop",version:"$1"},{regex:"Elements Browser/(?:(\\d+[\\.\\d]+))?",name:"Elements Browser",version:"$1"},{regex:"Light/(\\d+[\\.\\d]+)",name:"Light",version:"$1"},{regex:"Valve Steam GameOverlay/(?:(\\d+[\\.\\d]+))?",name:"Steam In-Game Overlay",version:"$1"},{regex:"115Browser/(?:(\\d+[\\.\\d]+))?",name:"115 Browser",version:"$1"},{regex:"Atom/(?:(\\d+[\\.\\d]+))?",name:"Atom",version:"$1"},{regex:"Mobile VR.+Firefox",name:"Firefox Reality",version:""},{regex:"AVG(?:/(\\d+[\\.\\d]+))?",name:"AVG Secure Browser",version:"$1"},{regex:"Start/(?:(\\d+[\\.\\d]+))?",name:"START Internet Browser",version:"$1"},{regex:"Lovense(?:/(\\d+[\\.\\d]+))?",name:"Lovense Browser",version:"$1"},{regex:"com.airfind.deltabrowser(?:/(\\d+[\\.\\d]+))?",name:"Delta Browser",version:"$1"},{regex:"(?:Ordissimo|webissimo3)(?:/(\\d+[\\.\\d]+))?",name:"Ordissimo",version:"$1"},{regex:"CCleaner(?:/(\\d+[\\.\\d]+))?",name:"CCleaner",version:"$1"},{regex:"AlohaLite(?:/(\\d+[\\.\\d]+))?",name:"Aloha Browser Lite",version:"$1",engine:{default:"Blink"}},{regex:"TaoBrowser(?:/(\\d+[\\.\\d]+))?",name:"Tao Browser",version:"$1"},{regex:"Falkon(?:/(\\d+[\\.\\d]+))?",name:"Falkon",version:"$1"},{regex:"mCent(?:/(\\d+[\\.\\d]+))?",name:"mCent",version:"$1"},{regex:"SalamWeb(?:/(\\d+[\\.\\d]+))?",name:"SalamWeb",version:"$1"},{regex:"BlackHawk(?:/(\\d+[\\.\\d]+))?",name:"BlackHawk",version:"$1"},{regex:"Minimo(?:/(\\d+[\\.\\d]+))?",name:"Minimo",version:"$1"},{regex:"WIB(?:/(\\d+[\\.\\d]+))?",name:"Wear Internet Browser",version:"$1"},{regex:"Origyn Web Browser",name:"Origyn Web Browser",version:""},{regex:"Kinza(?:/(\\d+[\\.\\d]+))?",name:"Kinza",version:"$1"},{regex:"Beamrise(?:/(\\d+[\\.\\d]+))?",name:"Beamrise",version:"$1"},{regex:"Faux(?:/(\\d+[\\.\\d]+))?",name:"Faux Browser",version:"$1"},{regex:"splash Version(?:/(\\d+[\\.\\d]+))?",name:"Splash",version:"$1"},{regex:"MZBrowser(?:/(\\d+[\\.\\d]+))?",name:"Meizu Browser",version:"$1"},{regex:"COSBrowser(?:/(\\d+[\\.\\d]+))?",name:"COS Browser",version:"$1"},{regex:"Crusta(?:/(\\d+[\\.\\d]+))?",name:"Crusta",version:"$1"},{regex:"Hawk/TurboBrowser(?:/v?(\\d+[\\.\\d]+))?",name:"Hawk Turbo Browser",version:"$1",engine:{default:"Blink"}},{regex:"FreeU(?:/(\\d+[\\.\\d]+))?",name:"FreeU",version:"$1",engine:{default:"Blink"}},{regex:"NoxBrowser(?:/(\\d+[\\.\\d]+))?",name:"Nox Browser",version:"$1",engine:{default:"Blink"}},{regex:"Basilisk(?:/(\\d+[\\.\\d]+))?",name:"Basilisk",version:"$1",engine:{default:"Goanna"}},{regex:"SputnikBrowser(?:/(\\d+[\\.\\d]+))?",name:"Sputnik Browser",version:"$1",engine:{default:"Blink"}},{regex:"TNSBrowser(?:/(\\d+[\\.\\d]+))?",name:"K.Browser",version:"$1",engine:{default:"Blink"}},{regex:"OculusBrowser(?:/(\\d+[\\.\\d]+))?",name:"Oculus Browser",version:"$1"},{regex:"Jio(?:Browser|Pages)(?:/(\\d+[\\.\\d]+))?",name:"Jio Browser",version:"$1",engine:{default:"Blink"}},{regex:"Chrome/.+ Hola(?:/(\\d+[\\.\\d]+))?",name:"hola! Browser",version:"$1",engine:{default:"Blink"}},{regex:"Slimjet/(?:(\\d+[\\.\\d]+))",name:"Slimjet",version:"$1",engine:{default:"Blink"}},{regex:"7Star/(?:(\\d+[\\.\\d]+))",name:"7Star",version:"$1",engine:{default:"Blink"}},{regex:"MxNitro/(?:(\\d+[\\.\\d]+))",name:"MxNitro",version:"$1",engine:{default:"Blink"}},{regex:"HuaweiBrowser(?:/(\\d+[\\.\\d]+))?",name:"Huawei Browser",version:"$1"},{regex:"VivoBrowser(?:/(\\d+[\\.\\d]+))?",name:"vivo Browser",version:"$1"},{regex:"RealmeBrowser(?:/(\\d+[\\.\\d]+))?",name:"Realme Browser",version:"$1"},{regex:"Beaker ?Browser(?:[/ ](\\d+[\\.\\d]+))?",name:"Beaker Browser",version:"$1",engine:{default:"Blink"}},{regex:"QwantiOS/(\\d+[\\.\\d]+)",name:"Qwant Mobile",version:"$1",engine:{default:"WebKit"}},{regex:"QwantMobile(?:/(\\d+[\\.\\d]+))?",name:"Qwant Mobile",version:"$1",engine:{default:"Gecko"}},{regex:"Qwant/(\\d+[\\.\\d]+)",name:"Qwant Mobile",version:"$1",engine:{default:"Gecko"}},{regex:"TenFourFox(?:/(\\d+[\\.\\d]+))?",name:"TenFourFox",version:"$1",engine:{default:"Gecko"}},{regex:"AOLShield(?:/(\\d+[\\.\\d]+))?",name:"AOL Shield",version:"$1",engine:{default:"Gecko"}},{regex:"Edge[ /](\\d+[\\.\\d]+)",name:"Microsoft Edge",version:"$1",engine:{default:"Edge"}},{regex:"EdgiOS[ /](\\d+[\\.\\d]+)",name:"Microsoft Edge",version:"$1",engine:{default:"WebKit"}},{regex:"EdgA[ /](\\d+[\\.\\d]+)",name:"Microsoft Edge",version:"$1",engine:{default:"Blink"}},{regex:"Edg[ /](\\d+[\\.\\d]+)",name:"Microsoft Edge",version:"$1",engine:{default:"Blink"}},{regex:"QIHU 360[ES]E",name:"360 Browser",version:""},{regex:"360 Aphone Browser(?: \\((\\d+[\\.\\d]+)(?:beta)?\\))?",name:"360 Phone Browser",version:"$1",engine:{default:"WebKit"}},{regex:"SailfishBrowser(?:/(\\d+[\\.\\d]+))?",name:"Sailfish Browser",version:"$1",engine:{default:"Gecko"}},{regex:"IceCat(?:/(\\d+[\\.\\d]+))?",name:"IceCat",version:"$1",engine:{default:"Gecko"}},{regex:"Mobicip",name:"Mobicip",version:"",engine:{default:"Gecko"}},{regex:"Camino(?:/(\\d+[\\.\\d]+))?",name:"Camino",version:"$1",engine:{default:"Gecko"}},{regex:"Waterfox(?:/(\\d+[\\.\\d]+))?",name:"Waterfox",version:"$1",engine:{default:"Gecko"}},{regex:"Chrome/.+ AlohaBrowser(?:/(\\d+[\\.\\d]+))?",name:"Aloha Browser",version:"$1",engine:{default:"Blink"}},{regex:"AlohaBrowser(?:/(\\d+[\\.\\d]+))?",name:"Aloha Browser",version:"$1"},{regex:"(?:Avast|ASW|Safer)(?:/(\\d+[\\.\\d]+))?",name:"Avast Secure Browser",version:"$1"},{regex:"Epic(?:/(\\d+[\\.\\d]+))",name:"Epic",version:"$1",engine:{default:"Gecko"}},{regex:"Fennec(?:/(\\d+[\\.\\d]+))?",name:"Fennec",version:"$1",engine:{default:"Gecko"}},{regex:"Firefox.*Tablet browser (\\d+[\\.\\d]+)",name:"MicroB",version:"$1",engine:{default:"Gecko"}},{regex:"Maemo Browser(?: (\\d+[\\.\\d]+))?",name:"MicroB",version:"$1",engine:{default:"Gecko"}},{regex:"Deepnet Explorer (\\d+[\\.\\d]+)?",name:"Deepnet Explorer",version:"$1"},{regex:"Avant ?Browser",name:"Avant Browser",version:"",engine:{default:""}},{regex:"OppoBrowser(?:/(\\d+[\\.\\d]+))?",name:"Oppo Browser",version:"$1"},{regex:"Chrome/(\\d+[\\.\\d]+).*MRCHROME",name:"Amigo",version:"$1",engine:{default:"WebKit",versions:{28:"Blink"}}},{regex:"AtomicBrowser(?:/(\\d+[\\.\\d]+))?",name:"Atomic Web Browser",version:"$1"},{regex:"Bunjalloo(?:/(\\d+[\\.\\d]+))?",name:"Bunjalloo",version:"$1"},{regex:"Brave(?:/(\\d+[\\.\\d]+))?",name:"Brave",version:"$1",engine:{default:"Blink"}},{regex:"Iridium(?:/(\\d+[\\.\\d]+))?",name:"Iridium",version:"$1"},{regex:"Iceweasel(?:/(\\d+[\\.\\d]+))?",name:"Iceweasel",version:"$1",engine:{default:"Gecko"}},{regex:"WebPositive",name:"WebPositive",version:"",engine:{default:"WebKit"}},{regex:".*Goanna.*PaleMoon(?:/(\\d+[\\.\\d]+))?",name:"Pale Moon",version:"$1",engine:{default:"Goanna"}},{regex:"PaleMoon(?:/(\\d+[\\.\\d]+))?",name:"Pale Moon",version:"$1",engine:{default:"Gecko"}},{regex:"CometBird(?:/(\\d+[\\.\\d]+))?",name:"CometBird",version:"$1",engine:{default:"Gecko"}},{regex:"IceDragon(?:/(\\d+[\\.\\d]+))?",name:"IceDragon",version:"$1",engine:{default:"Gecko"}},{regex:"Flock(?:/(\\d+[\\.\\d]+))?",name:"Flock",version:"$1",engine:{default:"Gecko",versions:{3:"WebKit"}}},{regex:"JigBrowserPlus/(?:(\\d+[\\.\\d]+))?",name:"Jig Browser Plus",version:"$1"},{regex:"jig browser(?: web;|9i?)?(?:[/ ](\\d+[\\.\\d]+))?",name:"Jig Browser",version:"$1"},{regex:"Kapiko(?:/(\\d+[\\.\\d]+))?",name:"Kapiko",version:"$1",engine:{default:"Gecko"}},{regex:"Kylo(?:/(\\d+[\\.\\d]+))?",name:"Kylo",version:"$1",engine:{default:"Gecko"}},{regex:"Origin/(?:(\\d+[\\.\\d]+))?",name:"Origin In-Game Overlay",version:"$1"},{regex:"Cunaguaro(?:/(\\d+[\\.\\d]+))?",name:"Cunaguaro",version:"$1"},{regex:"(?:TO-Browser/TOB|DT-Browser/DTB)(\\d+[\\.\\d]+)",name:"t-online.de Browser",version:"$1"},{regex:"Kazehakase(?:/(\\d+[\\.\\d]+))?",name:"Kazehakase",version:"$1",engine:{default:""}},{regex:"ArcticFox(?:/(\\d+[\\.\\d]+))?",name:"Arctic Fox",version:"$1",engine:{default:"Goanna"}},{regex:"Mypal(?:/(\\d+[\\.\\d]+))?",name:"Mypal",version:"$1",engine:{default:"Goanna"}},{regex:"Centaury(?:/(\\d+[\\.\\d]+))?",name:"Centaury",version:"$1",engine:{default:"Goanna"}},{regex:"(?:Focus|Klar)(?:/(\\d+[\\.\\d]+))?",name:"Firefox Focus",version:"$1"},{regex:"Cyberfox(?:/(\\d+[\\.\\d]+))?",name:"Cyberfox",version:"$1",engine:{default:"Gecko"}},{regex:"Firefox/(\\d+[\\.\\d]+).*\\(Swiftfox\\)",name:"Swiftfox",version:"$1",engine:{default:"Gecko"}},{regex:"(?:Mobile|Tablet).*Servo.*Firefox(?:/(\\d+[\\.\\d]+))?",name:"Firefox Mobile",version:"$1",engine:{default:"Servo"}},{regex:"(?:Mobile|Tablet).*Firefox(?:/(\\d+[\\.\\d]+))?",name:"Firefox Mobile",version:"$1",engine:{default:"Gecko"}},{regex:"FxiOS/(\\d+[\\.\\d]+)",name:"Firefox Mobile iOS",version:"$1",engine:{default:"WebKit"}},{regex:".*Servo.*Firefox(?:/(\\d+[\\.\\d]+))?",name:"Firefox",version:"$1",engine:{default:"Servo"}},{regex:"(?!.*Opera[ /])Firefox(?:/(\\d+[\\.\\d]+))?",name:"Firefox",version:"$1",engine:{default:"Gecko"}},{regex:"(?:BonEcho|GranParadiso|Lorentz|Minefield|Namoroka|Shiretoko)/(\\d+[\\.\\d]+)",name:"Firefox",version:"$1",engine:{default:"Gecko"}},{regex:"ANTFresco(?:[/ ](\\d+[\\.\\d]+))?",name:"ANT Fresco",version:"$1"},{regex:"ANTGalio(?:/(\\d+[\\.\\d]+))?",name:"ANTGalio",version:"$1"},{regex:"(?:Espial|Escape)(?:[/ ](\\d+[\\.\\d]+))?",name:"Espial TV Browser",version:"$1"},{regex:"RockMelt(?:/(\\d+[\\.\\d]+))?",name:"RockMelt",version:"$1",engine:{default:"WebKit"}},{regex:"Fireweb Navigator(?:/(\\d+[\\.\\d]+))?",name:"Fireweb Navigator",version:"$1"},{regex:"Fireweb(?:/(\\d+[\\.\\d]+))?",name:"Fireweb",version:"$1"},{regex:"(?:Navigator|Netscape6?)(?:/(\\d+[\\.\\d]+))?",name:"Netscape",version:"$1",engine:{default:""}},{regex:"(?:Polarity)(?:[/ ](\\d+[\\.\\d]+))?",name:"Polarity",version:"$1"},{regex:"(?:QupZilla)(?:[/ ](\\d+[\\.\\d]+))?",name:"QupZilla",version:"$1"},{regex:"(?:Dooble)(?:[/ ](\\d+[\\.\\d]+))?",name:"Dooble",version:"$1"},{regex:"Whale/(\\d+[\\.\\d]+)",name:"Whale Browser",version:"$1",engine:{default:"Blink"}},{regex:"Obigo[ ]?(?:InternetBrowser|Browser)?(?:[ /]([a-z0-9]*))?",name:"Obigo",version:"$1"},{regex:"Obigo|Teleca",name:"Obigo",version:""},{regex:"UCBrowserHD/(\\d[\\d\\.]+)",name:"UC Browser HD",version:"$1"},{regex:"UCMini(?:[ /]?(\\d+[\\.\\d]+))?",name:"UC Browser Mini",version:"$1"},{regex:"UC[ ]?Browser.* \\(UCMini\\)",name:"UC Browser Mini",version:""},{regex:"UCTurbo(?:[ /]?(\\d+[\\.\\d]+))?",name:"UC Browser Turbo",version:"$1"},{regex:"UC[ ]?Browser.* \\(UCTurbo\\)",name:"UC Browser Turbo",version:""},{regex:"OPRGX(?:/(\\d+[\\.\\d]+))?",name:"Opera GX",version:"$1",engine:{default:"Blink"}},{regex:"(?:Opera Tablet.*Version|Opera/.+Opera Mobi.+Version|Mobile.+OPR)/(\\d+[\\.\\d]+)",name:"Opera Mobile",version:"$1",engine:{default:"Presto",versions:{15:"Blink"}}},{regex:"MMS/(\\d+[\\.\\d]+)",name:"Opera Neon",version:"$1",engine:{default:"Blink"}},{regex:"OMI/(\\d+[\\.\\d]+)",name:"Opera Devices",version:"$1",engine:{default:"Blink"}},{regex:"Opera%20Touch/(\\d+[\\.\\d]+)? CFNetwork/.+Darwin/.+(?!.*x86_64)",name:"Opera Touch",version:"$1",engine:{default:"WebKit"}},{regex:"OPT/(\\d+[\\.\\d]+)",name:"Opera Touch",version:"$1",engine:{default:"Blink"}},{regex:"Opera/(\\d+[\\.\\d]+).+Opera Mobi",name:"Opera Mobile",version:"$1",engine:{default:"Presto",versions:{15:"Blink"}}},{regex:"Opera ?Mini/(?:att/)?(\\d+[\\.\\d]+)",name:"Opera Mini",version:"$1",engine:{default:"Presto"}},{regex:"Opera ?Mini.+Version/(\\d+[\\.\\d]+)",name:"Opera Mini",version:"$1",engine:{default:"Presto"}},{regex:"OPiOS/(\\d+[\\.\\d]+)",name:"Opera Mini iOS",version:"$1",engine:{default:"WebKit"}},{regex:"Opera%20Mini/(\\d+[\\.\\d]+) CFNetwork",name:"Opera Mini iOS",version:"$1",engine:{default:"WebKit"}},{regex:"Opera.+Edition Next.+Version/(\\d+[\\.\\d]+)",name:"Opera Next",version:"$1",engine:{default:"Presto",versions:{15:"Blink"}}},{regex:"(?:Opera|OPR)[/ ](?:9.80.*Version/)?(\\d+[\\.\\d]+).+Edition Next",name:"Opera Next",version:"$1",engine:{default:"Presto",versions:{15:"Blink"}}},{regex:"(?:Opera[/ ]?|OPR[/ ])(?:9.80.*Version/)?(\\d+[\\.\\d]+)",name:"Opera",version:"$1",engine:{default:"",versions:{7:"Presto",15:"Blink","3.5":"Elektra"}}},{regex:"rekonq(?:/(\\d+[\\.\\d]+))?",name:"Rekonq",version:"$1",engine:{default:"WebKit"}},{regex:"CoolNovo(?:/(\\d+[\\.\\d]+))?",name:"CoolNovo",version:"$1",engine:{default:""}},{regex:"(?:Comodo[ _])?Dragon(?!fruit)(?:/(\\d+[\\.\\d]+))?",name:"Comodo Dragon",version:"$1",engine:{default:"WebKit",versions:{28:"Blink"}}},{regex:"ChromePlus(?:/(\\d+[\\.\\d]+))?",name:"ChromePlus",version:"$1",engine:{default:""}},{regex:"Conkeror(?:/(\\d+[\\.\\d]+))?",name:"Conkeror",version:"$1",engine:{default:"Gecko"}},{regex:"Konqueror(?:/(\\d+[\\.\\d]+))?",name:"Konqueror",version:"$1",engine:{default:"KHTML",versions:{4:""}}},{regex:"(?:baidubrowser|bdbrowser(?:(?:hd)?_i18n)?|FlyFlow|BaiduHD)(?:[/ ](\\d+[\\.\\d]*))?",name:"Baidu Browser",version:"$1"},{regex:"(?:(?:BD)?Spark(?:Safe)?|BIDUBrowser)[/ ](\\d+[\\.\\d]*)",name:"Baidu Spark",version:"$1"},{regex:"YaBrowser(?:/(\\d+[\\.\\d]*)) \\(lite\\)?",name:"Yandex Browser Lite",version:"$1",engine:{default:"Blink"}},{regex:"YaBrowser(?:/(\\d+[\\.\\d]*))(?: \\((alpha|beta)\\))?",name:"Yandex Browser",version:"$1 $2",engine:{default:"Blink"}},{regex:"Ya(?:ndex)?SearchBrowser(?:/(\\d+[\\.\\d]*))",name:"Yandex Browser",version:"$1",engine:{default:"Blink"}},{regex:"Vivaldi(?:/(\\d+[\\.\\d]+))?",name:"Vivaldi",version:"$1",engine:{default:"Blink"}},{regex:"TweakStyle(?:/(\\d+[\\.\\d]+))?",name:"TweakStyle",version:"$1",engine:{default:"Blink"}},{regex:"Chrome.+Midori Browser/(\\d+[\\.\\d]+)",name:"Midori",version:"$1",engine:{default:"Blink"}},{regex:"Midori(?:/(\\d+[\\.\\d]+))?",name:"Midori",version:"$1",engine:{default:"WebKit"}},{regex:"Mercury(?:/(\\d+[\\.\\d]+))?",name:"Mercury",version:"$1"},{regex:"Chrome.+Maxthon(?:.+\\(portable\\))?/(\\d+[\\.\\d]+)",name:"Maxthon",version:"$1",engine:{default:"WebKit",versions:{"5.2":"Blink"}}},{regex:"(?:Maxthon(?:%20Browser)?|MxBrowser(?:-inhouse|-iPhone)?)[ /](\\d+[\\.\\d]+)",name:"Maxthon",version:"$1",engine:{default:"",versions:{3:"WebKit"}}},{regex:"(?:Maxthon|MyIE2)",name:"Maxthon",version:"",engine:{default:""}},{regex:"Puffin(?:/(\\d+[\\.\\d]+))?",name:"Puffin",version:"$1"},{regex:"MobileIron(?:/(\\d+[\\.\\d]+))?",name:"Iron Mobile",version:"$1",engine:{default:"Blink"}},{regex:"Chrome(?:/(\\d+[\\.\\d]+))?.*Iron",name:"Iron",version:"$1",engine:{default:"WebKit"}},{regex:"Iron(?:/(\\d+[\\.\\d]+))?",name:"Iron",version:"$1",engine:{default:"WebKit",versions:{28:"Blink"}}},{regex:"Epiphany(?:/(\\d+[\\.\\d]+))?",name:"GNOME Web",version:"$1",engine:{default:"Gecko",versions:{"2.9.16":"","2.28":"WebKit"}}},{regex:"LieBaoFast(?:[ /](\\d+[\\.\\d]+))?",name:"LieBaoFast",version:"$1"},{regex:"LBBrowser(?:[ /](\\d+[\\.\\d]+))?",name:"Cheetah Browser",version:"$1"},{regex:"SE (\\d+[\\.\\d]+)",name:"Sogou Explorer",version:"$1"},{regex:"QQBrowserLite/([\\d\\.]+)",name:"QQ Browser Lite",version:"$1"},{regex:"M?QQBrowser/Mini([\\.\\d]+)?",name:"QQ Browser Mini",version:"$1",engine:{default:""}},{regex:"M?QQBrowser(?:/([\\.\\d]+))?",name:"QQ Browser",version:"$1",engine:{default:""}},{regex:"(?:MIUIBrowser|MiuiBrowser)(?:/(\\d+[\\.\\d]+))?",name:"MIUI Browser",version:"$1",engine:{default:""}},{regex:"(?:coc_coc_browser|coccocbrowser|CocCoc)(?:/(\\d+[\\.\\d]+))?",name:"Coc Coc",version:"$1",engine:{default:"WebKit",versions:{28:"Blink"}}},{regex:"DuckDuckGo/(\\d+[\\.\\d]*)",name:"DuckDuckGo Privacy Browser",version:"$1",engine:{default:"Blink"}},{regex:"Samsung ?Browser(?:[/ ](\\d+[\\.\\d]+))?",name:"Samsung Browser",version:"$1"},{regex:"(?:SFB(?:rowser)?)/(\\d+[\\.\\d]+)",name:"Super Fast Browser",version:"$1"},{regex:"com.browser.tssomas(?:/(\\d+[\\.\\d]+))?",name:"Super Fast Browser",version:"$1"},{regex:"EUI Browser(?:/(\\d+[\\.\\d]+))?",name:"EUI Browser",version:"$1"},{regex:"UBrowser(?:/(\\d+[\\.\\d]+))?",name:"UBrowser",version:"$1"},{regex:"Streamy(?:/(\\d+[\\.\\d]+))?",name:"Streamy",version:"$1",engine:{default:"WebKit"}},{regex:"isivioo",name:"Isivioo",version:"",engine:{default:"WebKit"}},{regex:"UC[ ]?Browser(?:[ /]?(\\d+[\\.\\d]+))?",name:"UC Browser",version:"$1"},{regex:"UCWEB(?:[ /]?(\\d+[\\.\\d]+))?",name:"UC Browser",version:"$1"},{regex:"UC AppleWebKit",name:"UC Browser",version:""},{regex:"Tenta/(\\d+[\\.\\d]+)",name:"Tenta Browser",version:"$1",engine:{default:"WebKit"}},{regex:"Rocket/(\\d+[\\.\\d]+)",name:"Firefox Rocket",version:"$1",engine:{default:"WebKit"}},{regex:"Web Explorer/(\\d+[\\.\\d]+).*Chrome",name:"Web Explorer",version:"$1",engine:{default:"WebKit"}},{regex:"SznProhlizec/(\\d+[\\.\\d]+)",name:"Seznam Browser",version:"$1",engine:{default:"Blink"}},{regex:"SogouMobileBrowser/(\\d+[\\.\\d]+)",name:"Sogou Mobile Browser",version:"$1",engine:{default:""}},{regex:"Mint Browser/(\\d+[\\.\\d]+)",name:"Mint Browser",version:"$1",engine:{default:""}},{regex:"Ecosia (?:android|ios)@(\\d+[\\.\\d]+)",name:"Ecosia",version:"$1",engine:{default:""}},{regex:"ACHEETAHI",name:"CM Browser",version:"",engine:{default:""}},{regex:"Kiwi Chrome",name:"Kiwi",version:"",engine:{default:""}},{regex:"Mb2345Browser/(\\d+[\\.\\d]+)",name:"2345 Browser",version:"$1",engine:{default:""}},{regex:"QtWebEngine/(\\d+[\\.\\d]+)",name:"QtWebEngine",version:"$1",engine:{default:""}},{regex:"Silk/(\\d+[\\.\\d]+) like Chrome",name:"Mobile Silk",version:"$1",engine:{default:"Blink"}},{regex:"Silk(?:/(\\d+[\\.\\d]+))?",name:"Mobile Silk",version:"$1",engine:{default:"WebKit"}},{regex:"IBrowse(?:[ /](\\d+[\\.\\d]+))?",name:"IBrowse",version:"$1"},{regex:"UP.Browser(?:/(\\d+[\\.\\d]+))?",name:"Openwave Mobile Browser",version:"$1"},{regex:"Openwave(?:/(\\d+[\\.\\d]+))?",name:"Openwave Mobile Browser",version:"$1"},{regex:"OneBrowser(?:[ /](\\d+[\\.\\d]+))?",name:"ONE Browser",version:"$1",engine:{default:"WebKit"}},{regex:"(?:NokiaBrowser|BrowserNG)(?:/(\\d+[\\.\\d]+))?",name:"Nokia Browser",version:"$1"},{regex:"Series60/5\\.0",name:"Nokia Browser",version:"7.0"},{regex:"Series60/(\\d+[\\.\\d]+)",name:"Nokia OSS Browser",version:"$1"},{regex:"S40OviBrowser/(\\d+[\\.\\d]+)",name:"Nokia Ovi Browser",version:"$1"},{regex:"^Nokia|Nokia[EN]?\\d+",name:"Nokia Browser",version:""},{regex:"Sleipnir(?:(?:%20Browser)?[ /](\\d+[\\.\\d]+))?",name:"Sleipnir",version:"$1",engine:{default:""}},{regex:"NTENTBrowser(?:/(\\d+[\\.\\d]+))?",name:"NTENT Browser",version:"$1"},{regex:"TV Bro/(\\d+[\\.\\d]+)",name:"TV Bro",version:"$1"},{regex:"Chrome/.+ Quark(?:/(\\d+[\\.\\d]+))?",name:"Quark",version:"$1",engine:{default:"WebKit"}},{regex:"MonumentBrowser(?:/(\\d+[\\.\\d]+))?",name:"Monument Browser",version:"$1",engine:{default:"WebKit"}},{regex:"BlueBrowser(?:/(\\d+[\\.\\d]+))?",name:"Blue Browser",version:"$1",engine:{default:"WebKit"}},{regex:"JAPAN Browser(?:/(\\d+[\\.\\d]+))?",name:"Japan Browser",version:"$1",engine:{default:"WebKit"}},{regex:"Version/.* Chrome(?:/(\\d+[\\.\\d]+))?",name:"Chrome Webview",version:"$1",engine:{default:"WebKit",versions:{28:"Blink"}}},{regex:"CrMo(?:/(\\d+[\\.\\d]+))?",name:"Chrome Mobile",version:"$1",engine:{default:"WebKit",versions:{28:"Blink"}}},{regex:"CriOS(?:/(\\d+[\\.\\d]+))?",name:"Chrome Mobile iOS",version:"$1",engine:{default:"WebKit"}},{regex:"Chrome(?:/(\\d+[\\.\\d]+))? Mobile",name:"Chrome Mobile",version:"$1",engine:{default:"WebKit",versions:{28:"Blink"}}},{regex:"chromeframe(?:/(\\d+[\\.\\d]+))?",name:"Chrome Frame",version:"$1",engine:{default:"WebKit"}},{regex:"Chromium(?:/(\\d+[\\.\\d]+))?",name:"Chromium",version:"$1",engine:{default:"WebKit",versions:{28:"Blink"}}},{regex:"HeadlessChrome(?:/(\\d+[\\.\\d]+))?",name:"Headless Chrome",version:"$1",engine:{default:"Blink"}},{regex:"Chrome(?!book)(?:/(\\d+[\\.\\d]+))?",name:"Chrome",version:"$1",engine:{default:"WebKit",versions:{28:"Blink"}}},{regex:"(?:Tizen|SLP) Browser(?:/(\\d+[\\.\\d]+))?",name:"Tizen Browser",version:"$1"},{regex:"Blazer(?:/(\\d+[\\.\\d]+))?",name:"Palm Blazer",version:"$1"},{regex:"Pre/(\\d+[\\.\\d]+)",name:"Palm Pre",version:"$1"},{regex:"(?:hpw|web)OS/(\\d+[\\.\\d]+)",name:"wOSBrowser",version:"$1"},{regex:"WebPro(?:[ /](\\d+[\\.\\d]+))?",name:"Palm WebPro",version:"$1"},{regex:"Palmscape(?:[ /](\\d+[\\.\\d]+))?",name:"Palmscape",version:"$1"},{regex:"Jasmine(?:[ /](\\d+[\\.\\d]+))?",name:"Jasmine",version:"$1"},{regex:"Lynx(?:/(\\d+[\\.\\d]+))?",name:"Lynx",version:"$1",engine:{default:"Text-based"}},{regex:"NCSA_Mosaic(?:/(\\d+[\\.\\d]+))?",name:"NCSA Mosaic",version:"$1"},{regex:"ABrowse(?: (\\d+[\\.\\d]+))?",name:"ABrowse",version:"$1"},{regex:"amaya(?:/(\\d+[\\.\\d]+))?",name:"Amaya",version:"$1"},{regex:"AmigaVoyager(?:/(\\d+[\\.\\d]+))?",name:"Amiga Voyager",version:"$1"},{regex:"Amiga-Aweb(?:/(\\d+[\\.\\d]+))?",name:"Amiga Aweb",version:"$1"},{regex:"Arora(?:/(\\d+[\\.\\d]+))?",name:"Arora",version:"$1",engine:{default:"WebKit"}},{regex:"Beonex(?:/(\\d+[\\.\\d]+))?",name:"Beonex",version:"$1",engine:{default:"Gecko"}},{regex:"bline(?:/(\\d+[\\.\\d]+))?",name:"B-Line",version:"$1",engine:{default:"WebKit"}},{regex:"BrowseX \\((\\d+[\\.\\d]+)",name:"BrowseX",version:"$1"},{regex:"Charon(?:[/ ](\\d+[\\.\\d]+))?",name:"Charon",version:"$1"},{regex:"Cheshire(?:/(\\d+[\\.\\d]+))?",name:"Cheshire",version:"$1"},{regex:"dbrowser",name:"dbrowser",version:"",engine:{default:"WebKit"}},{regex:"Dillo(?:/(\\d+[\\.\\d]+))?",name:"Dillo",version:"$1",engine:{default:"Dillo"}},{regex:"Dolfin(?:/(\\d+[\\.\\d]+))?|dolphin",name:"Dolphin",version:"$1",engine:{default:"WebKit"}},{regex:"Elinks(?:/(\\d+[\\.\\d]+))?",name:"Elinks",version:"$1",engine:{default:"Text-based"}},{regex:"Element Browser(?:[ /](\\d+[\\.\\d]+))?",name:"Element Browser",version:"$1"},{regex:"eZBrowser(?:/(\\d+[\\.\\d]+))?",name:"eZ Browser",version:"$1"},{regex:"Firebird(?! Build)(?:/(\\d+[\\.\\d]+))?",name:"Firebird",version:"$1",engine:{default:"Gecko"}},{regex:"Fluid(?:/(\\d+[\\.\\d]+))?",name:"Fluid",version:"$1",engine:{default:"WebKit"}},{regex:"Galeon(?:/(\\d+[\\.\\d]+))?",name:"Galeon",version:"$1",engine:{default:"Gecko"}},{regex:"Google Earth(?:/(\\d+[\\.\\d]+))?",name:"Google Earth",version:"$1",engine:{default:"WebKit"}},{regex:"HotJava(?:/(\\d+[\\.\\d]+))?",name:"HotJava",version:"$1"},{regex:"iCabMobile(?:[ /](\\d+[\\.\\d]+))?",name:"iCab Mobile",version:"$1",engine:{default:"WebKit"}},{regex:"iCab(?:[ /](\\d+[\\.\\d]+))?",name:"iCab",version:"$1",engine:{default:"iCab",versions:{4:"WebKit"}}},{regex:"i?Lunascape(?:[/ ](\\d+[\\.\\d]+))?",name:"Lunascape",version:"$1",engine:{default:""}},{regex:"Crazy Browser (\\d+[\\.\\d]+)",name:"Crazy Browser",version:"$1",engine:{default:"Trident"}},{regex:"IEMobile[ /](\\d+[\\.\\d]+)",name:"IE Mobile",version:"$1",engine:{default:"Trident"}},{regex:"MSIE (\\d+[\\.\\d]+).*XBLWP7",name:"IE Mobile",version:"$1",engine:{default:"Trident"}},{regex:"MSIE.*Trident/4.0",name:"Internet Explorer",version:"8.0",engine:{default:"Trident"}},{regex:"MSIE.*Trident/5.0",name:"Internet Explorer",version:"9.0",engine:{default:"Trident"}},{regex:"MSIE.*Trident/6.0",name:"Internet Explorer",version:"10.0",engine:{default:"Trident"}},{regex:"Trident/[78].0",name:"Internet Explorer",version:"11.0",engine:{default:"Trident"}},{regex:"MSIE (\\d+[\\.\\d]+)",name:"Internet Explorer",version:"$1",engine:{default:"Trident"}},{regex:"IE[ /](\\d+[\\.\\d]+)",name:"Internet Explorer",version:"$1",engine:{default:"Trident"}},{regex:"Kindle/(\\d+[\\.\\d]+)",name:"Kindle Browser",version:"$1"},{regex:"K-meleon(?:/(\\d+[\\.\\d]+))?",name:"K-meleon",version:"$1",engine:{default:"Gecko"}},{regex:"Links(?: \\((\\d+[\\.\\d]+))?",name:"Links",version:"$1",engine:{default:"Text-based"}},{regex:"LG Browser(?:/(\\d+[\\.\\d]+))",name:"LG Browser",version:"$1"},{regex:"LuaKit(?:/(\\d+[\\.\\d]+))?",name:"LuaKit",version:"$1"},{regex:"OmniWeb(?:/[v]?(\\d+[\\.\\d]+))?",name:"OmniWeb",version:"$1",engine:{default:"WebKit"}},{regex:"Phoenix(?:/(\\d+[\\.\\d]+))?",name:"Phoenix",version:"$1"},{regex:"NetFrontLifeBrowser(?:/(\\d+[\\.\\d]+))?",name:"NetFront Life",version:"$1",engine:{default:"NetFront"}},{regex:"NetFront(?:/(\\d+[\\.\\d]+))?",name:"NetFront",version:"$1",engine:{default:"NetFront"}},{regex:"PLAYSTATION|NINTENDO 3|AppleWebKit.+ N[XF]/\\d+\\.\\d+\\.\\d+",name:"NetFront",version:""},{regex:"NetPositive(?:/(\\d+[\\.\\d]+))?",name:"NetPositive",version:"$1"},{regex:"Odyssey Web Browser(?:.*OWB/(\\d+[\\.\\d]+))?",name:"Odyssey Web Browser",version:"$1"},{regex:"OffByOne",name:"Off By One",version:""},{regex:"(?:Oregano|OreganMediaBrowser)(?:[ /](\\d+[\\.\\d]+))?",name:"Oregano",version:"$1"},{regex:"(?:Polaris|Embider)(?:[/ ](\\d+[\\.\\d]+))?",name:"Polaris",version:"$1"},{regex:"SEMC-Browser(?:[/ ](\\d+[\\.\\d]+))?",name:"SEMC-Browser",version:"$1"},{regex:"Shiira(?:[/ ](\\d+[\\.\\d]+))?",name:"Shiira",version:"$1",engine:{default:"WebKit"}},{regex:"Skyfire(?:[/ ](\\d+[\\.\\d]+))?",name:"Skyfire",version:"$1"},{regex:"Snowshoe(?:/(\\d+[\\.\\d]+))?",name:"Snowshoe",version:"$1",engine:{default:"WebKit"}},{regex:"Sunrise(?:Browser)?(?:/(\\d+[\\.\\d]+))?",name:"Sunrise",version:"$1"},{regex:"SuperBird(?:/(\\d+[\\.\\d]+))?",name:"SuperBird",version:"$1"},{regex:"Vision-Browser(?:/(\\d+[\\.\\d]+))",name:"Vision Mobile Browser",version:"$1"},{regex:"WeTab-Browser",name:"WeTab Browser",version:""},{regex:"Xiino(?:/(\\d+[\\.\\d]+))?",name:"Xiino",version:"$1"},{regex:"BlackBerry|PlayBook|BB10",name:"BlackBerry Browser",version:""},{regex:"Android",name:"Android Browser",version:"",engine:{default:"WebKit"}},{regex:"Coast(?:/(\\d+[\\.\\d]+))?",name:"Coast",version:"$1"},{regex:"Surf(?:/(\\d+[\\.\\d]+))?",name:"surf",version:"$1",engine:{default:"WebKit"}},{regex:"(?:(?:iPod|iPad|iPhone).+Version|MobileSafari)/(\\d+[\\.\\d]+)",name:"Mobile Safari",version:"$1",engine:{default:"WebKit"}},{regex:"(?:Version/(\\d+[\\.\\d]+).*)?Mobile.*Safari/",name:"Mobile Safari",version:"$1",engine:{default:"WebKit"}},{regex:"(?:iPod|iPhone|iPad)",name:"Mobile Safari",version:"",engine:{default:"WebKit"}},{regex:"Version/(\\d+[\\.\\d]+).*Safari/|Safari/?\\d+",name:"Safari",version:"$1",engine:{default:"WebKit"}},{regex:"Dorado WAP-Browser[/ ](\\d+[\\.\\d]+)",name:"Dorado",version:"$1"},{regex:"NetSurf(?:/(\\d+[\\.\\d]+))?",name:"NetSurf",version:"$1",engine:{default:"NetSurf"}},{regex:"Uzbl",name:"Uzbl",version:""},{regex:"SimpleBrowser",name:"SimpleBrowser",version:""},{regex:"Zvu(?:/(\\d+[\\.\\d]+))?",name:"Zvu",version:"$1",engine:{default:"Gecko"}},{regex:"GOGGalaxyClient/(\\d+[\\.\\d]+)?",name:"GOG Galaxy",version:"$1"},{regex:"WAP Browser/MAUI|(?:\\w+)?Maui Wap Browser|MAUI[- ]Browser",name:"MAUI WAP Browser",version:""},{regex:"SP%20Browser/(\\d+[\\.\\d]+)",name:"SP Browser",version:"$1",engine:{default:"WebKit"}}],Pl=[{regex:"NetFront",name:"NetFront"},{regex:"Edge",name:"Edge"},{regex:"Trident",name:"Trident"},{regex:"(?{const _={type:"",name:"",version:"",engine:"",engineVersion:""};for(const $ of T0.default){const C=M0.userAgentParser($.regex,h);if(!C)continue;const T=it.variableReplacement($.version,C),r=dr.formatVersion(T,this.options.versionTruncation),l=r&&parseFloat(dr.formatVersion(T,1))||"";if($.engine&&(_.engine=$.engine.default,$.engine&&$.engine.versions&&l)){const n=Object.entries($.engine.versions).sort((g,s)=>parseFloat(g[0])>parseFloat(s[0])?1:-1);for(const[g,s]of n)parseFloat(g)<=l&&(_.engine=s||"")}_.type="browser",_.name=it.variableReplacement($.name,C),_.version=r;break}if(!_.engine)for(const $ of $0.default){let C=null;try{C=RegExp($.regex,"i").exec(h)}catch{}if(C){_.engine=$.name;break}}return _.engineVersion=dr.formatVersion(dr.parseBrowserEngineVersion(h,_.engine),this.options.versionTruncation),_},this.options=Object.assign(Object.assign({},this.options),c)}}sr.default=mr,mr.getBrowserShortName=a=>{for(const[c,h]of Object.entries(P0.default))if(h===a)return c;return""},mr.isMobileOnlyBrowser=a=>b0.default.includes(mr.getBrowserShortName(a));var Fr={};const C0=[{regex:"AndroidDownloadManager(?:[ /]([\\d\\.]+))?",name:"AndroidDownloadManager",version:"$1"},{regex:"(?:Apple)?News(?:[ /][\\d\\.]+)? Version(?:[ /]([\\d\\.]+))?",name:"Apple News",version:"$1"},{regex:"bPod",name:"bPod",version:""},{regex:"MessengerLiteForiOS.(?:FBAV)(?:[ /]([\\d\\.]+))?",name:"Facebook Messenger Lite",version:"$1"},{regex:"(?:MessengerForiOS|MESSENGER).(?:FBAV)(?:[ /]([\\d\\.]+))?",name:"Facebook Messenger",version:"$1"},{regex:"(?:FBAV|com.facebook.katana)(?:[ /]([\\d\\.]+))?",name:"Facebook",version:"$1"},{regex:"(?:FBAN|FBSV|FBID|FBBV)/",name:"Facebook",version:""},{regex:"FeedR(?:/([\\d\\.]+))?",name:"FeedR",version:"$1"},{regex:"com.google.android.apps.searchlite",name:"Google Go",version:""},{regex:"com.google.android.apps.magazines",name:"Google Play Newsstand",version:""},{regex:"com.google.GooglePlus",name:"Google Plus",version:""},{regex:"MicroMessenger/([^; ]+)",name:"WeChat",version:"$1"},{regex:"WeChatShareExtensionNew/([\\d\\.]+)",name:"WeChat Share Extension",version:"$1"},{regex:"DingTalk/([0-9\\.]+)",name:"DingTalk",version:"$1"},{regex:".*__weibo__([0-9\\.]+)__",name:"Sina Weibo",version:"$1"},{regex:"Pinterest(?: for (?:Android|iOS))?(?:/([\\d\\.]+))?",name:"Pinterest",version:"$1"},{regex:"Podcatcher Deluxe",name:"Podcatcher Deluxe",version:""},{regex:"com.google.android.youtube(?:/([\\d\\.]+))?",name:"YouTube",version:"$1"},{regex:"([^/]+)/(\\d+(?:\\.\\d+)+) \\((?:iPhone|iPad); iOS [0-9\\.]+; Scale/[0-9\\.]+\\)",name:"$1",version:"$2"},{regex:"WhatsApp(?:[ /]([\\d\\.]+))?",name:"WhatsApp",version:"$1"},{regex:"Line(?:[ /]([\\d\\.]+))",name:"Line",version:"$1"},{regex:"Instacast(?:HD)?/(\\d\\.[\\d\\.abc]+) CFNetwork/([\\d\\.]+) Darwin/([\\d\\.]+)",name:"Instacast",version:"$1"},{regex:"Podcasts/([\\d\\.]+)",name:"Podcasts",version:"$1"},{regex:"Pocket Casts(?:, (?:Android|iOS) v([\\d\\.]+))?",name:"Pocket Casts",version:"$1"},{regex:"Podcat/([\\d\\.]+)",name:"Podcat",version:"$1"},{regex:"BeyondPod",name:"BeyondPod",version:null},{regex:"AntennaPod/?([\\d\\.]+)?",name:"AntennaPod",version:"$1"},{regex:"Overcast/([\\d\\.]+)",name:"Overcast",version:"$1"},{regex:"(?:CastBox|fm.castbox.audiobook.radio.podcast)/?([\\d\\.]+)?",name:"CastBox",version:"$1"},{regex:"Player FM",name:"Player FM",version:""},{regex:"Podkicker(?: Pro)?/([\\d\\.]+)",name:"Podkicker",version:"$1"},{regex:"PodcastRepublic/([\\d\\.]+)",name:"Podcast Republic",version:"$1"},{regex:"Castro/(\\d+)",name:"Castro",version:"$1"},{regex:"Castro 2 ([\\d\\.]+)/[\\d]+ Like iTunes",name:"Castro 2",version:"$1"},{regex:"Castro 2",name:"Castro 2",version:""},{regex:"DoggCatcher",name:"DoggCatcher",version:null},{regex:"PodcastAddict/v([\\d]+)",name:"Podcast & Radio Addict",version:"$1"},{regex:"Podcat(?:%202)?/([\\d]+) CFNetwork",name:"Podcat",version:"$1"},{regex:"iCatcher[^\\d]+([\\d\\.]+)",name:"iCatcher",version:"$1"},{regex:"YelpApp/([\\d\\.]+)",name:"Yelp Mobile",version:"$1"},{regex:"jp.co.yahoo.android.yjtop/([\\d\\.]+)",name:"Yahoo! Japan",version:"$1"},{regex:"RSSRadio/([\\d]+)?",name:"RSSRadio",version:"$1"},{regex:"SogouSearch Android[\\d\\.]+ version([\\d\\.]+)?",name:"SogouSearch App",version:"$1"},{regex:"NewsArticle/([\\d\\.]+)?",name:"NewsArticle App",version:"$1"},{regex:"tieba/([\\d\\.]+)?",name:"tieba",version:"$1"},{regex:"com\\.douban\\.group/([\\d\\.]+)?",name:"douban App",version:"$1"},{regex:"BingWeb/([\\d\\.]+)?",name:"BingWebApp",version:"$1"},{regex:"(?:com.google.GoogleMobile|GSA)/([\\d\\.]+)?",name:"Google Search App",version:"$1"},{regex:"Flipboard/([\\d\\.]+)?",name:"Flipboard App",version:"$1"},{regex:"Instagram[ /]([\\d\\.]+)?",name:"Instagram App",version:"$1"},{regex:"baiduboxapp/([\\d\\.]+)?",name:"Baidu Box App",version:"$1"},{regex:"Crosswalk(?!.*(?:Streamy|QwantMobile))/([\\d\\.]+)?",name:"CrosswalkApp",version:"$1"},{regex:"Twitter for iPhone[/]?([\\d\\.]+)?",name:"Twitter",version:"$1"},{regex:"Twitter/([\\d\\.]+)",name:"Twitter",version:"$1"},{regex:"TwitterAndroid[/]?([\\d\\.]+)?",name:"Twitter",version:"$1"},{regex:"TopBuzz/([\\d\\.]+)",name:"TopBuzz",version:"$1"},{regex:"Snapchat/([\\d\\.]+)",name:"Snapchat",version:"$1"},{regex:"UnityPlayer/([\\d\\.]+)",name:"UnityPlayer",version:"$1"},{regex:"UCURSOS/v([\\d\\.]+)",name:"U-Cursos",version:"$1"},{regex:"HeyTapBrowser/([\\d\\.]+)",name:"HeyTapBrowser",version:"$1"},{regex:"RobloxApp/([\\d\\.]+)",name:"Roblox",version:"$1"},{regex:"Viber/([\\d\\.]+)",name:"Viber",version:"$1"},{regex:"Siri/1",name:"Siri",version:"1.0"},{regex:"LinkedIn/([\\d\\.]+)",name:"LinkedIn",version:"$1"},{regex:"Instapaper/([\\d\\.]+)",name:"Instapaper",version:"$1"},{regex:"Keeper/([\\d\\.]+)",name:"Keeper Password Manager",version:"$1"},{regex:"Skyeng Teachers/([\\d\\.]+)",name:"Skyeng Teachers",version:"$1"},{regex:"Kik/([\\d\\.]+) \\(Android",name:"Kik",version:"$1"},{regex:"Procast/?([\\d\\.]+)?",name:"Procast",version:"$1"},{regex:"DeviantArt/([\\d\\.]+)",name:"DeviantArt",version:""},{regex:"Discord/([\\d\\.]+)",name:"Discord",version:""},{regex:"Covenant%20Eyes/([\\d\\.]+)",name:"Covenant Eyes",version:"$1"},{regex:"HP%20Smart/([\\d\\.]+)",name:"HP Smart",version:""},{regex:"Bitsboard/([\\d\\.]+)",name:"Bitsboard",version:"$1"},{regex:"Betbull/([\\d\\.]+)",name:"BetBull",version:""},{regex:"U-Cursos/([\\d\\.]+)",name:"U-Cursos",version:""},{regex:"1PasswordThumbs/([\\d\\.]+)",name:"1Password",version:"$1"},{regex:"(?:Microsoft Office )?(Access|Excel|OneDrive for Business|OneNote|PowerPoint|Project|Publisher|Visio|Word)[ /]([\\d\\.]+)",name:"Microsoft Office $1",version:"$2"},{regex:"OneDriveiOSApp/([\\d\\.]+)",name:"Microsoft OneDrive",version:"$1"},{regex:"Microsoft Office Mobile/([\\d\\.]+)",name:"Microsoft Office Mobile",version:"$1"},{regex:"OC/([\\d\\.]+) \\(Skype for Business\\)",name:"Skype for Business",version:"$1"},{regex:"TikTok[/ ](\\d+\\.(?:[\\.\\d]+))?",name:"TikTok",version:"$1"},{regex:"NAVER/(\\d+[\\.\\d]+) CFNetwork",name:"Naver",version:"$1"},{regex:"Copied/(\\d+[\\.\\d]+) CFNetwork",name:"Copied",version:""},{regex:"Pic%20Collage/(\\d+[\\.\\d]+) CFNetwork",name:"Pic Collage",version:"$1"},{regex:"Papers/(\\d+[\\.\\d]+) CFNetwork",name:"Papers",version:"$1"},{regex:"RoboForm/(\\d+[\\.\\d]+) CFNetwork",name:"RoboForm",version:""},{regex:"Slack/(\\d+[\\.\\d]+) CFNetwork",name:"Slack",version:""},{regex:"KAKAOTALK (\\d+\\.(?:[\\.\\d]+))?",name:"KakaoTalk",version:"$1"},{regex:"ShopeeVN/([\\d\\.]+)",name:"Shopee",version:"$1"},{regex:"SPORT1/([\\d\\.]+)",name:"SPORT1",version:""},{regex:"Clovia/([\\d\\.]+)",name:"Clovia",version:"$1"},{regex:"ShowMe/([\\d\\.]+)",name:"ShowMe",version:"$1"},{regex:"Wattpad/([\\d\\.]+)",name:"Wattpad",version:"$1"},{regex:"WSJ/([\\d\\.]+)",name:"The Wall Street Journal",version:""},{regex:"WH%20Questions/([\\d\\.]+)",name:"WH Questions",version:"$1"},{regex:"whisper/([\\d\\.]+)",name:"Whisper",version:""},{regex:"Opal/([\\d\\.]+)",name:"Opal Travel",version:"$1"},{regex:"Zalo/([\\d\\.]+)",name:"Zalo",version:"$1"},{regex:"Yandex/([\\d\\.]+)",name:"Yandex",version:""},{regex:"Zoho%20Chat/([\\d\\.]+)",name:"Zoho Chat",version:"$1"},{regex:"Thunder/(\\d+[\\.\\d]+)",name:"Thunder",version:"$1"},{regex:"CGNBrowser/(\\d+[\\.\\d]+)",name:"CGN",version:"$1"},{regex:"Podbean/.+App (\\d+[\\.\\d]+)",name:"Podbean",version:"$1"},{regex:"AlexaMediaPlayer/(\\d+[\\.\\d]+)",name:"Alexa Media Player",version:"$1"},{regex:"TuneIn Radio Pro(?:[^/]+)?/(\\d+[\\.\\d]+)",name:"TuneIn Radio Pro",version:"$1"},{regex:"TuneIn Radio(?:[^/]+)?/(\\d+[\\.\\d]+)",name:"TuneIn Radio",version:"$1"},{regex:"Podcaster/(\\d+[\\.\\d]+)",name:"Podcaster",version:"$1"},{regex:"Swoot/(\\d+[\\.\\d]+)",name:"Swoot",version:"$1"},{regex:"RadioPublic/android-(\\d+[\\.\\d]+)",name:"RadioPublic",version:"$1"},{regex:"Podimo/(\\d+[\\.\\d]+)",name:"Podimo",version:"$1"},{regex:"com.evolve.podcast/(\\d+[\\.\\d]+)",name:"Evolve Podcast",version:"$1"},{regex:" Rocket.Chat\\+?/(\\d+[\\.\\d]+)",name:"Rocket Chat",version:"$1"},{regex:"^Pandora Audio.+Android",name:"Pandora",version:""},{regex:"^NPROneAndroid",name:"NPR One",version:""},{regex:"^WirtschaftsWoche-iOS-(\\d+[\\.\\d]+)",name:"Wirtschafts Woche",version:"$1"},{regex:"^Outlook-iOS/.+\\((\\d+[\\.\\d]+)\\)$",name:"Microsoft Outlook",version:"$1"},{regex:"^TVirl/(\\d+[\\.\\d]+)",name:"TVirl",version:"$1"},{regex:"2?chMate/(\\d+[\\.\\d]+)",name:"ChMate",version:"$1"},{regex:"2tch/(\\d+[\\.\\d]+)",name:"2tch",version:"$1"},{regex:"Ciisaa/(\\d+[\\.\\d]+)",name:"Ciisaa",version:"$1"},{regex:"BB2C (\\d+[\\.\\d]+)",name:"BB2C",version:"$1"},{regex:"twinkle/(\\d+[\\.\\d]+)",name:"twinkle",version:"$1"},{regex:"JaneStyle_iOS/(\\d+[\\.\\d]+)",name:"JaneStyle",version:"$1"}];var L0=J&&J.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Fr,"__esModule",{value:!0});const E0=L0(C0),y0=Me,at=ce,B0=se;class G0{constructor(c){this.options={versionTruncation:1},this.parse=h=>{const _={type:"",name:"",version:""};for(const $ of E0.default){const C=B0.userAgentParser($.regex,h);if(C){_.type="mobile app",_.name=at.variableReplacement($.name,C),_.version=y0.formatVersion(at.variableReplacement($.version,C),this.options.versionTruncation);break}}return _},this.options=Object.assign(Object.assign({},this.options),c)}}Fr.default=G0;var Xr={};const w0=[{regex:"Akregator(?:/(\\d+[\\.\\d]+))?",name:"Akregator",version:"$1",url:"http://userbase.kde.org/Akregator",type:"Feed Reader"},{regex:"Apple-PubSub(?:/(\\d+[\\.\\d]+))?",name:"Apple PubSub",version:"$1",url:"https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/pubsub.1.html",type:"Feed Reader"},{regex:"BashPodder",name:"BashPodder",version:"",url:"http://lincgeek.org/bashpodder/",type:"Feed Reader"},{regex:"Breaker/v([\\d\\.]+)",name:"Breaker",version:"$1",url:"https://www.breaker.audio/",type:"Feed Reader App"},{regex:"Downcast/([\\d\\.]+)",name:"Downcast",version:"$1",url:"http://downcastapp.com/",type:"Feed Reader App"},{regex:"FeedDemon(?:/(\\d+[\\.\\d]+))?",name:"FeedDemon",version:"$1",url:"http://www.feeddemon.com/",type:"Feed Reader"},{regex:"Feeddler(?:RSS|PRO)(?:[/ ](\\d+[\\.\\d]+))?",name:"Feeddler RSS Reader",version:"$1",url:"http://www.chebinliu.com/projects/iphone/feeddler-rss-reader/",type:"Feed Reader App"},{regex:"QuiteRSS(?:[/ ](\\d+[\\.\\d]+))?",name:"QuiteRSS",version:"$1",url:"https://quiterss.org",type:"Feed Reader App"},{regex:"gPodder/([\\d\\.]+)",name:"gPodder",version:"$1",url:"http://gpodder.org/",type:"Feed Reader App"},{regex:"JetBrains Omea Reader(?:[/ ](\\d+[\\.\\d]+))?",name:"JetBrains Omea Reader",version:"$1",url:"http://www.jetbrains.com/omea/reader/",type:"Feed Reader"},{regex:"Liferea(?:[/ ](\\d+[\\.\\d]+))?",name:"Liferea",version:"$1",url:"http://liferea.sf.net/",type:"Feed Reader"},{regex:"(?:NetNewsWire|Evergreen.+MacOS)(?:[/ ](\\d+[\\.\\d]+))?",name:"NetNewsWire",version:"$1",url:"http://netnewswireapp.com/",type:"Feed Reader"},{regex:"NewsBlur (?:iPhone|iPad) App(?: v(\\d+[\\.\\d]+))?",name:"NewsBlur Mobile App",version:"$1",url:"http://www.newsblur.com",type:"Feed Reader App"},{regex:"NewsBlur(?:/(\\d+[\\.\\d]+))",name:"NewsBlur",version:"$1",url:"http://www.newsblur.com",type:"Feed Reader"},{regex:"newsbeuter(?:[/ ](\\d+[\\.\\d]+))?",name:"Newsbeuter",version:"$1",url:"http://www.newsbeuter.org/",type:"Feed Reader"},{regex:"PritTorrent/([\\d\\.]+)",name:"PritTorrent",version:"$1",url:"http://bitlove.org",type:"Feed Reader"},{regex:"Pulp[/ ](\\d+[\\.\\d]+)",name:"Pulp",version:"$1",url:"http://www.acrylicapps.com/pulp/",type:"Feed Reader App"},{regex:"ReadKit(?:[/ ](\\d+[\\.\\d]+))?",name:"ReadKit",version:"$1",url:"http://readkitapp.com/",type:"Feed Reader App"},{regex:"Reeder[/ ](\\d+[\\.\\d]+)",name:"Reeder",version:"$1",url:"http://reederapp.com/",type:"Feed Reader App"},{regex:"RSSBandit(?:[/ ](\\d+[\\.\\d]+))?",name:"RSS Bandit",version:"$1",url:"http://www.rssbandit.org)",type:"Feed Reader"},{regex:"RSS Junkie(?:[/ ](\\d+[\\.\\d]+))?",name:"RSS Junkie",version:"$1",url:"https://play.google.com/store/apps/details?id=com.bitpowder.rssjunkie",type:"Feed Reader App"},{regex:"RSSOwl(?:[/ ](\\d+[\\.\\d]+))?",name:"RSSOwl",version:"$1",url:"http://www.rssowl.org/",type:"Feed Reader"},{regex:"Stringer",name:"Stringer",version:"",url:"https://github.com/swanson/stringer",type:"Feed Reader"}];var O0=J&&J.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Xr,"__esModule",{value:!0});const N0=O0(w0),I0=Me,lt=ce,D0=se;class R0{constructor(c){this.options={versionTruncation:1},this.parse=h=>{const _={type:"",name:"",version:"",url:""};for(const $ of N0.default){const C=D0.userAgentParser($.regex,h);if(C){_.type="feed reader",_.name=lt.variableReplacement($.name,C),_.version=I0.formatVersion(lt.variableReplacement($.version,C),this.options.versionTruncation),_.url=$.url;break}}return _},this.options=Object.assign(Object.assign({},this.options),c)}}Xr.default=R0;var Hr={};const k0=[{regex:"Wget(?:/(\\d+[\\.\\d]+))?",name:"Wget",version:"$1"},{regex:"Guzzle(?:/(\\d+[\\.\\d]+))?",name:"Guzzle (PHP HTTP Client)",version:"$1"},{regex:"(?:lib)?curl(?:/(\\d+[\\.\\d]+))?",name:"curl",version:"$1"},{regex:"python-requests(?:/(\\d+[\\.\\d]+))?",name:"Python Requests",version:"$1"},{regex:"Python-urllib(?:/?(\\d+[\\.\\d]+))?",name:"Python urllib",version:"$1"},{regex:"Java(?:/?(\\d+[\\.\\d]+))?",name:"Java",version:"$1"},{regex:"(?:perlclient|libwww-perl)(?:/?(\\d+[\\.\\d]+))?",name:"Perl",version:"$1"},{regex:"okhttp/([\\d\\.]+)",name:"OkHttp",version:"$1"},{regex:"HTTP_Request2(?:/(\\d+[\\.\\d]+))?",name:"HTTP_Request2",version:"$1"},{regex:"HTTP_Request2(?:/(\\d+[\\.\\d]+))?",name:"HTTP_Request2",version:"$1",url:"http://pear.php.net/package/http_request2"},{regex:"Mechanize(?:/(\\d+[\\.\\d]+))?",name:"Mechanize",version:"$1",url:"http://github.com/sparklemotion/mechanize/"},{regex:"aiohttp(?:/(\\d+[\\.\\d]+))?",name:"aiohttp",version:"$1"},{regex:"Google-HTTP-Java-Client(?:/(\\d+[\\.\\d\\w-]+))?",name:"Google HTTP Java Client",version:"$1"},{regex:"WWW-Mechanize(?:/(\\d+[\\.\\d]+))?",name:"WWW-Mechanize",version:"$1"},{regex:"Faraday(?: v(\\d+[\\.\\d]+))?",name:"Faraday",version:"$1"},{regex:"(?:Go-http-client|Go )/?(?:(\\d+[\\.\\d]+))?(?: package http)?",name:"Go-http-client",version:"$1"},{regex:"urlgrabber(?:/(\\d+[\\.\\d]+))?",name:"urlgrabber (yum)",version:"$1"},{regex:"libdnf(?:/(\\d+[\\.\\d]+))?",name:"libdnf",version:"$1"},{regex:"HTTPie(?:/(\\d+[\\.\\d]+))?",name:"HTTPie",version:"$1"},{regex:"rest-client/(\\d+[\\.\\d]+).*ruby",name:"REST Client for Ruby",version:"$1"},{regex:"RestSharp/(\\d+[\\.\\d]+)",name:"RestSharp",version:"$1",url:"http://restsharp.org/"},{regex:"scalaj-http/(\\d+[\\.\\d]+)",name:"ScalaJ HTTP",version:"$1",url:"https://github.com/scalaj/scalaj-http"},{regex:"REST::Client/(\\d+)",name:"Perl REST::Client",version:"$1",url:"https://metacpan.org/pod/REST::Client"},{regex:"node-fetch/(\\d+[\\.\\d]+)",name:"Node Fetch",version:"$1",url:"https://github.com/node-fetch/node-fetch"},{regex:"ReactorNetty/(\\d+[\\.\\d]+)",name:"ReactorNetty",version:"$1",url:"https://github.com/reactor/reactor-netty"},{regex:"PostmanRuntime(?:/(\\d+[\\.\\d]+))?",name:"Postman Desktop",version:"$1",url:"https://github.com/postmanlabs/postman-runtime"},{regex:"Jakarta Commons-HttpClient/([\\.\\d]+)",name:"Jakarta Commons HttpClient",version:"$1",url:"https://hc.apache.org/httpclient-3.x"},{regex:"WinHttp.WinHttpRequest.+([\\.\\d]+)",name:"WinHttp WinHttpRequest",version:"$1"},{regex:"Embarcadero URI Client/([\\.\\d]+)",name:"Embarcadero URI Client",version:"$1"},{regex:"Mikrotik/([\\.\\d]+)",name:"Mikrotik Fetch",version:"$1"},{regex:"GRequests(?:/(\\d+[\\.\\d]+))?",name:"GRequests",version:"$1"},{regex:"akka-http/([\\.\\d]+)",name:"Akka HTTP",version:"$1"}];var F0=J&&J.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Hr,"__esModule",{value:!0});const X0=F0(k0),H0=Me,st=ce,U0=se;class V0{constructor(c){this.options={versionTruncation:1},this.parse=h=>{const _={type:"",name:"",version:"",url:""};for(const $ of X0.default){const C=U0.userAgentParser($.regex,h);if(C){_.type="library",_.name=st.variableReplacement($.name,C),_.version=H0.formatVersion(st.variableReplacement($.version,C),this.options.versionTruncation),_.url=$.url||"";break}}return _},this.options=Object.assign(Object.assign({},this.options),c)}}Hr.default=V0;var Ur={};const W0=[{regex:"Audacious(?:[ /]([\\d\\.]+))?",name:"Audacious",version:"$1"},{regex:"Banshee(?:[ /]([\\d\\.]+))?",name:"Banshee",version:"$1"},{regex:"Boxee(?:[ /]([\\d\\.]+))?",name:"Boxee",version:"$1"},{regex:"Clementine(?:[ /]([\\d\\.]+))?",name:"Clementine",version:"$1"},{regex:"Deezer(?:/([\\d\\.]+))?",name:"Deezer",version:"$1"},{regex:"iTunes(?:-iPhone|-iPad)?(?:/([\\d\\.]+))?",name:"iTunes",version:"$1"},{regex:"FlyCast(?:/([\\d\\.]+))?",name:"FlyCast",version:"$1"},{regex:"foobar2000(?:/([\\d\\.]+))?",name:"Foobar2000",version:"$1"},{regex:"MediaMonkey(?:[ /](\\d+[\\.\\d]+))?",name:"MediaMonkey",version:"$1"},{regex:"Miro(?:/(\\d+[\\.\\d]+))?",name:"Miro",version:"$1"},{regex:"NexPlayer(?:/(\\d+[\\.\\d]+))?",name:"NexPlayer",version:"$1"},{regex:"Nightingale(?:/([\\d\\.]+))?",name:"Nightingale",version:"$1"},{regex:"QuickTime(?:(?:(?:.+qtver=)|(?:(?: E-)?[\\./]))([\\d\\.]+))?",name:"QuickTime",version:"$1"},{regex:"Songbird(?:/([\\d\\.]+))?",name:"Songbird",version:"$1"},{regex:"SubStream(?:/([\\d\\.]+))?",name:"SubStream",version:"$1"},{regex:"Sonos/([\\d\\.]+)?",name:"SONOS",version:"$1"},{regex:"(?:Lib)?VLC(?:/([\\d\\.]+))?",name:"VLC",version:"$1"},{regex:"Winamp(?:MPEG)?(?:/(\\d+[\\.\\d]+))?",name:"Winamp",version:"$1"},{regex:"(?:Windows-Media-Player|NSPlayer)(?:/(\\d+[\\.\\d]+))?",name:"Windows Media Player",version:"$1"},{regex:"XBMC(?:/([\\d\\.]+))?",name:"XBMC",version:"$1"},{regex:"Kodi(?:/([\\d\\.]+))?",name:"Kodi",version:"$1"},{regex:"stagefright(?:/([\\d\\.]+))?",name:"Stagefright",version:"$1"},{regex:"GoogleChirp(?:/(\\d+[\\.\\d]+))?",name:"Google Podcasts",version:"$1"},{regex:"Music Player Daemon (?:(\\d+[\\.\\d]+))?",name:"Music Player Daemon",version:"$1"},{regex:"mpv (?:(\\d+[\\.\\d]+))?",name:"mpv",version:"$1"}];var K0=J&&J.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Ur,"__esModule",{value:!0});const Q0=K0(W0),Z0=Me,nt=ce,Y0=se;class z0{constructor(c){this.options={versionTruncation:1},this.parse=h=>{const _={type:"",name:"",version:""};for(const $ of Q0.default){const C=Y0.userAgentParser($.regex,h);if(C){_.type="media player",_.name=nt.variableReplacement($.name,C),_.version=Z0.formatVersion(nt.variableReplacement($.version,C),this.options.versionTruncation);break}}return _},this.options=Object.assign(Object.assign({},this.options),c)}}Ur.default=z0;var Vr={};const J0=[{regex:"Outlook-Express(?:/(\\d+[\\.\\d]+))?",name:"Outlook Express",version:"$1"},{regex:"Microsoft Outlook(?:[/ ](\\d+[\\.\\d]+))?",name:"Microsoft Outlook",version:"$1"},{regex:"(?:Thunderbird|Icedove|Shredder)(?:/(\\d+[\\.\\d]+))?",name:"Thunderbird",version:"$1"},{regex:"Airmail(?: (\\d+[\\.\\d]+))?",name:"Airmail",version:"$1"},{regex:"Lotus-Notes(?:/(\\d+[\\.\\d]+))?",name:"Lotus Notes",version:"$1"},{regex:"Barca(?:Pro)?(?:[/ ](\\d+[\\.\\d]+))?",name:"Barca",version:"$1"},{regex:"Postbox(?:[/ ](\\d+[\\.\\d]+))?",name:"Postbox",version:"$1"},{regex:"MailBar(?:[/ ](\\d+[\\.\\d]+))?",name:"MailBar",version:"$1"},{regex:"The Bat!(?: Voyager)?(?:[/ ](\\d+[\\.\\d]+))?",name:"The Bat!",version:"$1"},{regex:"DAVdroid(?:/(\\d+[\\.\\d]+))?",name:"DAVdroid",version:"$1"},{regex:"(?:SeaMonkey|Iceape)(?:/(\\d+[\\.\\d]+))?",name:"SeaMonkey",version:"$1"},{regex:"Live5ch/(\\d+[\\.\\d]+)",name:"Live5ch",version:"$1"},{regex:"JaneView/",name:"JaneView",version:""},{regex:"BathyScaphe/",name:"BathyScaphe",version:""}];var j0=J&&J.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Vr,"__esModule",{value:!0});const q0=j0(J0),eg=Me,dt=ce,rg=se;class og{constructor(c){this.options={versionTruncation:1},this.parse=h=>{const _={type:"",name:"",version:""};for(const $ of q0.default){const C=rg.userAgentParser($.regex,h);if(C){_.type="personal information manager",_.name=dt.variableReplacement($.name,C),_.version=eg.formatVersion(dt.variableReplacement($.version,C),this.options.versionTruncation);break}}return _},this.options=Object.assign(Object.assign({},this.options),c)}}Vr.default=og;var Ge=J&&J.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Dr,"__esModule",{value:!0});const tg=Ge(sr),ig=Ge(Fr),ag=Ge(Xr),lg=Ge(Hr),sg=Ge(Ur),ng=Ge(Vr),dg=[ag.default,ig.default,sg.default,ng.default,tg.default,lg.default];let mg=class{constructor(a){this.options={versionTruncation:1},this.parse=c=>{for(const h of dg){const _=new h(this.options).parse(c);if(_.type!=="")return _}return null},this.options=Object.assign(Object.assign({},this.options),a)}};Dr.default=mg;var Wr={},Kr={};const cg={regex:"Coolpix S800c",device:"camera",model:"Coolpix S800c"},gg={regex:"EK-G[CN][0-9]{3}",device:"camera",models:[{regex:"EK-GN120",model:"Galaxy NX"},{regex:"EK-GC100",model:"Galaxy Camera"},{regex:"EK-GC110",model:"Galaxy Camera WiFi only"},{regex:"EK-GC200",model:"Galaxy Camera 2"},{regex:"EK-GC([0-9]{3})",model:"Galaxy Camera $1"}]},xg={Nikon:cg,Samsung:gg};var hg=J&&J.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Kr,"__esModule",{value:!0});const ug=hg(xg),mt=ce,ct=se;class Sg{constructor(){this.parse=c=>{const h={type:"",brand:"",model:""};for(const[_,$]of Object.entries(ug.default)){const C=ct.userAgentParser($.regex,c);if(C){if(h.type="camera",h.brand=_,"model"in $&&$.model)h.model=mt.variableReplacement($.model,C).trim();else if("models"in $&&$.models)for(const T of $.models){const r=ct.userAgentParser(T.regex,c);if(r){h.model=mt.variableReplacement(T.model,r).trim();break}}break}}return h}}}Kr.default=Sg;var Qr={};const _g={regex:"(?:BUZZ [12]|BUZZ 2|CLEVER 1|URBAN 1(?: Pro)?)(?:[);/ ]|$)",device:"smartphone",models:[{regex:"BUZZ ([12]) Lite",model:"Buzz $1 Lite"},{regex:"BUZZ ([12]) Plus",model:"Buzz $1 Plus"},{regex:"BUZZ ([12])",model:"Buzz $1"},{regex:"CLEVER 1",model:"Clever 1"},{regex:"URBAN 1 Pro",model:"Urban 1 Pro"},{regex:"URBAN 1",model:"Urban 1"}]},vg={regex:"StarShine|StarTrail|STARADDICT|StarText|StarNaute|StarXtrem|StarTab",device:"smartphone",models:[{regex:"StarXtrem II(?:[);/ ]|$)",model:"StarXtrem 2"},{regex:"StarXtrem ?([3-6])(?:[);/ ]|$)",model:"StarXtrem $1"},{regex:"StarXtrem(?:[);/ ]|$)",model:"StarXtrem"},{regex:"StarTrail III(?:[);/ ]|$)",model:"StarTrail 3"},{regex:"StarTrail II(?:[);/ ]|$)",model:"StarTrail 2"},{regex:"StarTrail[ _]?([1-9])[ _]([34])G(?:[);/ ]|$)",model:"StarTrail $1 $2G"},{regex:"StarTrail[ _]?([1-9])(?:[);/ ]|$)",model:"StarTrail $1"},{regex:"StarTrail(?:[);/ ]|$)",model:"StarTrail"},{regex:"StarShine II(?:[);/ ]|$)",model:"StarShine 2"},{regex:"StarShine(?:[);/ ]|$)",model:"StarShine"},{regex:"STARADDICT 4(?:[);/ ]|$)",model:"Staraddict 4"},{regex:"STARADDICT III(?:[);/ ]|$)",model:"Staraddict 3"},{regex:"STARADDICT II Plus(?:[);/ ]|$)",model:"Staraddict 2 Plus"},{regex:"STARADDICT II(?:[);/ ]|$)",model:"Staraddict 2"},{regex:"STARADDICT(?:[);/ ]|$)",model:"Staraddict"},{regex:"StarText II(?:[);/ ]|$)",model:"StarText 2"},{regex:"StarText(?:[);/ ]|$)",model:"StarText"},{regex:"StarNaute II(?:[);/ ]|$)",model:"StarNaute 2"},{regex:"StarNaute(?:[);/ ]|$)",model:"StarNaute"},{regex:"StarTab",model:"StarTab",device:"tablet"},{regex:"((?:StarShine|StarTrail|STARADDICT|StarText|StarNaute|StarXtrem)[^;/]*) Build",model:"$1"}]},pg={regex:"HTC|Sprint (?:APA|ATP)|ADR(?!910L)[a-z0-9]+|NexusHD2|Amaze[ _]4G(?:[);/ ]|$)|(Desire|Sensation|Evo ?3D|IncredibleS|Wildfire|Butterfly)[ _]?([^;/)]+)(?: Build|\\))|(Amaze[ _]4G|(?(a=a.replace(/_/g," "),a=a.replace(RegExp(" TD$","i"),""),a==="Build"?"":a);var w$=J&&J.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Qr,"__esModule",{value:!0});const O$=w$(G$),gt=ce,xt=se,ht=ke;class N${constructor(){this.parse=c=>{const h={type:"",brand:"",model:""};let _="";for(const[$,C]of Object.entries(O$.default)){const T=xt.userAgentParser(C.regex,c);if(T){if(_="device"in C&&C.device||"",h.brand=$,"model"in C&&C.model)h.model=ht.buildModel(gt.variableReplacement(C.model,T)).trim();else if("models"in C&&C.models)for(const r of C.models){const l=xt.userAgentParser(r.regex,c);if(l){h.model=ht.buildModel(gt.variableReplacement(r.model,l)).trim(),"device"in r&&r.device&&(_=r.device),"brand"in r&&(h.brand=r.brand||"");break}}break}}return _==="tv"?h.type="television":_==="car browser"?h.type="car":h.type=_,h.brand==="Unknown"&&(h.brand=""),h}}}Qr.default=N$;var Zr={};const I$={regex:"Airties",device:"tv",models:[{regex:"Airties; ?([^);/]+)",model:"$1"}]},D$={regex:"AOC",device:"tv",models:[{regex:"(LE43S5970-20|S50856)",model:"$1"}]},R$={regex:"ARRIS[;,]",device:"tv",models:[{regex:"FS-ARS-01B",model:"FS-ARS-01B"}]},k$={regex:"ATVIO",device:"tv",models:[{regex:"55D1620",model:"55D1620"}]},F$={regex:"Bangolufsen",device:"tv",model:"BeoVision"},X$={regex:"Blaupunkt_UMC[;,]",device:"tv",models:[{regex:"LC-65CUG8052E",model:"LC-65CUG8052E"}]},H$={regex:"BUSH[;,]",device:"tv",model:""},U$={regex:"CELCUS[;,]",device:"tv",model:""},V$={regex:"Changhong",device:"tv",models:[{regex:"Changhong; ?([^);/]+)",model:"$1"}]},W$={regex:"CreNova",device:"tv",model:"CNV001"},K$={regex:"DIGIHOME[;,]",device:"tv",model:""},Q$={regex:"DMM",device:"tv",model:"Dreambox"},Z$={regex:"ELECTRONIA[;,]",device:"tv",model:""},Y$={regex:"ESSENTIELB[;,]",device:"tv",model:""},z$={regex:"FINLUX[;,]",device:"tv",model:""},J$={regex:"FUEGO[;,]",device:"tv",model:""},j$={regex:"GOGEN[;,]",device:"tv",model:""},q$={regex:"(OWB|Grundig|Arcelik)",device:"tv",model:""},eP={regex:"(?:HHW_)?HAIER",device:"tv",models:[{regex:"LE55X7000U",model:"LE55X7000U"}]},rP={regex:"Hisense|Eurofins_Digital_Testing",device:"tv",models:[{regex:"50ADEVTOOL",model:"50ADEVTOOL"},{regex:"50A683FEVS",model:"50A683FEVS"},{regex:"55A6100EE",model:"55A6100EE"},{regex:"55U62QGAVT",model:"55U62QGAVT"},{regex:"50A6502EA",model:"50A6502EA"},{regex:"MICALIDVB6886",model:"MICALIDVB6886"},{regex:"(L[A-Z]{2,3}[0-9]{2}[A-Z][0-9]{3,4}[A-Z]{0,6}[0-9]?[A-Z]?)",model:"$1"},{regex:"(H[A-Z]?[0-9]{2}[A-Z][0-9]{3,4}[A-Z]{0,4})",model:"$1"}]},oP={regex:"Hitachi[;,]",device:"tv",models:[{regex:"49D2900",model:"49D2900"}]},tP={regex:"HORIZON[;,]",device:"tv",model:""},iP={regex:"HOTEL[;,]",device:"tv",model:""},aP={regex:"Humax",device:"tv",models:[{regex:"(HD-FOX C|HD (FOX\\+|NANO)|iCord (HD\\+|MINI|Cable)|(CX|IR)HD-5100(C|S)|HM9503HD)",model:"$1"},{regex:"HMS1000S",model:"HMS-1000S"},{regex:"Humax; ([^);/]+)",model:"$1"}]},lP={regex:"HYUNDAI[;,]",device:"tv",model:""},sP={regex:"Ikea",device:"tv",model:""},nP={regex:"Intek",device:"tv",models:[{regex:"(Vantage|VT-100|VT-1)",model:"$1"}]},dP={regex:"Inverto",device:"tv",models:[{regex:"inverto; ([^);/]+)",model:"$1"},{regex:"(Volksbox Web Edition|Volksbox Essential|Volksbox II|Volksbox)",model:"$1"}]},mP={regex:"AFTSO001|JVC[;,]",device:"tv",models:[{regex:"AFTSO001",model:"4K (2019)"}]},cP={regex:"KALLEY[;,]",device:"tv",models:[{regex:"32D1620",model:"32D1620"}]},gP={regex:"KUBO[;,]",device:"tv",model:""},xP={regex:"LAURUS[;,]",device:"tv",model:""},hP={regex:"LGE",device:"tv",models:[{regex:"XU43WT180N",model:"XU43WT180N"},{regex:"43LJ614V-ZA",model:"43LJ614V-ZA"},{regex:"55SK850V-ZA",model:"55SK850V-ZA"},{regex:"KEY0000213F1z",model:"KEY0000213F1z"},{regex:"KEY0000213F",model:"KEY0000213F"},{regex:"KEY000000(2E|2F|3B|3F)",model:"KEY000000$1"},{regex:"(NetCast [0-9]{1}.[0-9]{1}|GLOBAL_PLAT3)",model:"$1"},{regex:"(OLED[0-9]{2}[A-Z0-9]{3}[A-Z]{2})",model:"$1"},{regex:"(OLED[0-9]{2}[A-Z][0-9][A-Z])",model:"$1"},{regex:"(OLED[0-9]{2}[A-Z0-9]{2})",model:"$1"},{regex:"([0-9]{2}[A-Z]{2}[0-9]{4}[A-Z0-9]{1}[A-Z]{2})",model:"$1"},{regex:"([0-9]{2}NANO[0-9]{3}[A-Z]{2})",model:"$1"},{regex:"([0-9]{2}NANO[0-9]{2})",model:"$1"},{regex:"LGE;? ?([0-9]{2}[A-Z]{2}[0-9]{2,4}[A-Z]?)",model:"$1"},{regex:"LM21U",model:"LM21U"},{regex:"32LM",model:"32LM"}]},uP={regex:"Lifemaxx[;,]",device:"tv",model:""},SP={regex:"LINSAR[;,]",device:"tv",model:""},_P={regex:"Loewe",device:"tv",models:[{regex:"([A-Z]{2}[0-9]{3})",model:"$1"}]},vP={regex:"LUXOR[;,]",device:"tv",model:""},pP={regex:"Manhattan",device:"tv",models:[{regex:"T3",model:"T3"}]},AP={regex:"MTK|MediaTek;",device:"tv",models:[{regex:"(MT[0-9]{4})",model:"$1"}]},fP={regex:"Medion",device:"tv",model:""},MP={regex:"MIRAY",device:"tv",models:[{regex:"LEDM-322NIP",model:"LEDM-322NIP"}]},TP={regex:"MStar[;,]",device:"tv",models:[{regex:"([24])KTV18",model:"$1KTV18"}]},$P={regex:"MTC[;,]",device:"tv",models:[{regex:"([24])K_Android_TV_V01",model:"$1K Android TV"}]},PP={regex:"NORDMENDE[;,]",device:"tv",model:""},bP={regex:"Metz",device:"tv",model:""},CP={regex:"OK[;,]",device:"tv",model:""},LP={regex:"Panasonic",device:"tv",models:[{regex:"VIERA (201[1-9])",model:"VIERA ($1)"},{regex:"(DIGA [A-Z]{1}[0-9]{4})",model:"$1"},{regex:"DIGA Webkit ([A-Z]{1}[0-9]{4})",model:"DIGA $1"},{regex:"SmartTV(201[89]|202[0-1])",model:"Smart TV ($1)"}]},EP={regex:"PEAQ",device:"tv",model:""},yP={regex:"Philips|NETTV/",device:"tv",models:[{regex:"Philips[,;] ?((?! )[^),;/]+)",model:"$1"},{regex:"NETTV/[0-9\\.]{5}",model:"NetTV Series"}]},BP={regex:"POLAROID[;,]",device:"tv",model:""},GP={regex:"PROFILO[;,]",device:"tv",model:""},wP={regex:"QILIVE[;,]",device:"tv",model:""},OP={regex:"REGAL[;,]",device:"tv",model:""},NP={regex:"Saba[;,]",device:"tv",model:""},IP={regex:"Salora[;,]",device:"tv",model:""},DP={regex:"Samsung|Maple_2011",device:"tv",models:[{regex:"SmartTV(201[2-9]|202[0-1]):([^);/]+)",model:"$2"},{regex:"SmartTV(201[2-9]|202[0-1])",model:"Smart TV ($1)"},{regex:"Maple_2011",model:"Smart TV (2011)"}]},RP={regex:"SCBC[;,]",device:"tv",models:[{regex:"SCBC586",model:"SCBC586"},{regex:"43D1850",model:"43D1850"}]},kP={regex:"SEG[;,]",device:"tv",model:""},FP={regex:"Selevision",device:"tv",models:[{regex:"Selevision; (?:Selevision )?([^);/]+)",model:"$1"},{regex:"(EMC1000i)",model:"$1"}]},XP={regex:"(?:UMC-)?Sharp",device:"tv",models:[{regex:"Sharp[,;] ?((?! |HbbTV)[^),;/]+)",model:"$1"},{regex:"(LE[0-9]{3}[A-Z]{0,3})",model:"$1"},{regex:"LC-([^);/]+)",model:"LC-$1"},{regex:"BLA-43",model:"BLA-43"}]},HP={regex:"Sky_worth",device:"tv",models:[{regex:"Sky_worth;([^);/]+)",model:"$1"}]},UP={regex:"Smart[;,]",device:"tv",models:[{regex:"Smart; ([^);/]+)",model:"$1"},{regex:"([A-Z]{2}[0-9]{2}|ZAPPIX)",model:"$1"}]},VP={regex:"Sony",device:"tv",models:[{regex:"KDL-GR1",model:"KDL-GR1"},{regex:"KDL-GN([56])",model:"KDL-GN$1"},{regex:"BRAVIA (VH1|4K VH2)",model:"BRAVIA $1"},{regex:"(KDL?-?[0-9]{2}[A-Z]{1}[0-9]{4}[A-Z]{1})",model:"$1"},{regex:"(KDL?-?[0-9]{2}[A-Z]{1}[0-9]{3}[A-Z]{1})",model:"$1"},{regex:"(KDL?-?[0-9]{2}[A-Z]{1,2}[0-9]{1,5})",model:"$1"}]},WP={regex:"SWTV[;,]",device:"tv",models:[{regex:"SKWE20E21",model:"SKWE20E21"}]},KP={regex:"Technicolor",device:"tv",models:[{regex:"uzw4054ttg",model:"UZW4054TTG"}]},QP={regex:"TECHNIKA[;,]",device:"tv",model:""},ZP={regex:"TechniSat",device:"tv",models:[{regex:"((DigiCorder|MultyVision|Digit) (ISIO S|ISIO C|ISIO))",model:"$1"}]},YP={regex:"TechnoTrend",device:"tv",models:[{regex:"([A-Z]{1}-[0-9]{3})",model:"$1"}]},zP={regex:"Techwood[;,]",device:"tv",model:""},JP={regex:"Telefunken",device:"tv",model:""},jP={regex:"TCL",device:"tv",models:[{regex:"(32D1820|(?:39|55)D2900|32D2930|(?:32|43)S4900)",model:"$1"}]},qP={regex:"THOMSON[,]?|THOM",device:"tv",models:[{regex:"(TB28D19DHS-01|T28D18SFS-01B)",model:'$1 28.0"'},{regex:"(T32RTM5040|T32D18SFS-01B)",model:'$1 32.0"'},{regex:"(T43FSL5031|T43D18SFS-01B)",model:'$1 43.0"'},{regex:"(T40D18SFS-01B)",model:'$1 40.0"'},{regex:"(T49D18SFS-01B)",model:'$1 49.0"'},{regex:"(T55D18[SD]FS-01B)",model:'$1 55.0"'},{regex:"40FB5426",model:"40FB5426"}]},eb={regex:"TOKYO[;,]",device:"tv",models:[{regex:"TOKTCLED32S",model:"TOKTCLED32S"}]},rb={regex:"Toshiba",device:"tv",models:[{regex:"40L2600",model:"40L2600"},{regex:"(([0-9]{2}|DTV_)[A-Z]{2}[0-9]{1,3})",model:"$1"}]},ob={regex:"videoweb|tv2n",device:"tv",models:[{regex:"(tv2n)",model:"$1"},{regex:"(videowebtv)",model:"VideoWeb TV"}]},tb={regex:"VOX[;,]",device:"tv",model:""},ib={regex:"WELLINGTON[;,]",device:"tv",model:""},ab={regex:"(?:Vestel.+VESTEL|VESTEL;)",device:"tv",model:""},lb={Airties:I$,"ALDI NORD":{regex:"ALDINORD[;,]",device:"tv",model:""},"ALDI S\xDCD":{regex:"ALDISUED[;,]",device:"tv",model:""},"Altech UEC":{regex:"Altech UEC",device:"tv",models:[{regex:"Altech UEC; ?([^);/]+)",model:"$1"}]},AOC:D$,ARRIS:R$,Atvio:k$,BangOlufsen:F$,Blaupunkt:X$,Bush:H$,Celcus:U$,Changhong:V$,CreNova:W$,Digihome:K$,DMM:Q$,ELECTRONIA:Z$,Essentielb:Y$,Finlux:z$,"F&U":{regex:"FU[;,]",device:"tv",model:""},Fuego:J$,GoGEN:j$,Grundig:q$,Haier:eP,"Hi-Level":{regex:"HI-LEVEL[;,]",device:"tv",model:""},Hisense:rP,Hitachi:oP,Horizon:tP,Hotel:iP,Humax:aP,Hyundai:lP,Ikea:sP,Intek:nP,Inverto:dP,JVC:mP,Kalley:cP,KUBO:gP,Laurus:xP,LG:hP,Lifemaxx:uP,Linsar:SP,Loewe:_P,Luxor:vP,Manhattan:pP,MediaTek:AP,Medion:fP,Miray:MP,MStar:TP,MTC:$P,Nordmende:PP,Metz:bP,Ok:CP,Panasonic:LP,PEAQ:EP,Philips:yP,Polaroid:BP,PROFiLO:GP,Qilive:wP,REGAL:OP,Saba:NP,Salora:IP,Samsung:DP,SCBC:RP,SEG:kP,Selevision:FP,Sharp:XP,Skyworth:HP,Smart:UP,Sony:VP,SWTV:WP,"TD Systems":{regex:"TDSystems[;,]",device:"tv",models:[{regex:"SmartTV(2019|2020)",model:"Smart TV ($1)"}]},Technicolor:KP,Technika:QP,TechniSat:ZP,TechnoTrend:YP,Techwood:zP,Telefunken:JP,TCL:jP,Thomson:qP,TOKYO:eb,Toshiba:rb,Videoweb:ob,VOX:tb,WELLINGTON:ib,"X.Vision":{regex:"X-VISION[;,]",device:"tv",model:""},Vestel:ab};var sb=J&&J.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Zr,"__esModule",{value:!0});const nb=sb(lb),ut=ce,Yr=se,St=ke;class db{constructor(){this.parse=c=>{const h={type:"",brand:"",model:""};if(!this.isHbbTv(c))return h;h.type="television";for(const[_,$]of Object.entries(nb.default)){const C=Yr.userAgentParser($.regex,c);if(C){if(h.brand=_,"model"in $&&$.model)h.model=St.buildModel(ut.variableReplacement($.model,C)).trim();else if("models"in $&&$.models)for(const T of $.models){const r=Yr.userAgentParser(T.regex,c);if(r){h.model=St.buildModel(ut.variableReplacement(T.model,r)).trim();break}}break}}return h},this.isHbbTv=c=>Yr.userAgentParser("HbbTV/([1-9]{1}(?:.[0-9]{1}){1,2})",c)}}Zr.default=db;var zr={};const mb={regex:"(?:Tesla/[0-9.]+|QtCarBrowser)",device:"car browser",models:[{regex:"QtCarBrowser",model:"Model S"},{regex:"Tesla/[0-9.]+",model:""}]},cb={regex:"sp9853i_1h10_vmm",device:"car browser",models:[{regex:"sp9853i_1h10_vmm",model:"TS9"}]},gb={Tesla:mb,"MAC AUDIO":{regex:"Mac Audio Spro",device:"car browser",models:[{regex:"Spro",model:"S Pro"}]},Topway:cb};var xb=J&&J.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(zr,"__esModule",{value:!0});const hb=xb(gb),ub=ce,_t=se;class Sb{constructor(){this.parse=c=>{const h={type:"",brand:"",model:""};for(const[_,$]of Object.entries(hb.default))if(_t.userAgentParser($.regex,c)){h.type="car",h.brand=_;for(const C of $.models){const T=_t.userAgentParser(C.regex,c);T&&(h.model=ub.variableReplacement(C.model,T).trim())}break}return h}}}zr.default=Sb;var Jr={};const _b={regex:"Archos.*GAMEPAD([2]?)",device:"console",model:"Gamepad $1"},vb={regex:"Xbox",device:"console",models:[{regex:"Xbox Series X",model:"Xbox Series X"},{regex:"Xbox One X",model:"Xbox One X"},{regex:"Xbox One",model:"Xbox One"},{regex:"XBOX_ONE_ED",model:"Xbox One S"},{regex:"Xbox",model:"Xbox 360"}]},pb={regex:"Nintendo (([3]?DS[i]?)|Wii[U]?|Switch)",device:"console",model:"$1"},Ab={regex:"OUYA",device:"console",model:"OUYA"},fb={regex:"Dreamcast",device:"console",model:"Dreamcast"},Mb={regex:"PlayStation (3|4 Pro|4|Portable|Vita)",device:"console",model:"PlayStation $1"},Tb={Archos:_b,Microsoft:vb,Nintendo:pb,OUYA:Ab,Sega:fb,Sony:Mb};var $b=J&&J.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Jr,"__esModule",{value:!0});const Pb=$b(Tb),vt=ce,pt=se;class bb{constructor(){this.parse=c=>{const h={type:"",brand:"",model:""};for(const[_,$]of Object.entries(Pb.default)){const C=pt.userAgentParser($.regex,c);if(C){if(h.type=$.device,h.brand=_,"model"in $&&$.model)h.model=vt.variableReplacement($.model,C).trim();else if("models"in $&&$.models)for(const T of $.models){const r=pt.userAgentParser(T.regex,c);if(r){h.model=vt.variableReplacement(T.model,r).trim();break}}break}}return h}}}Jr.default=bb;var jr={};const Cb={regex:"FBMD/(?:Aspire E5-421G|Z5WAL|One S1003);",device:"desktop",models:[{regex:"FBMD/Aspire E5-421G;",model:"Aspire E5-421G"},{regex:"FBMD/Z5WAL;",model:"Aspire E5-511"},{regex:"FBMD/One S1003;",model:"One 10"}]},Lb={regex:"FBMD/(?:K50IN|K54L|T100HAN|T103HAF|UX360CAK|X550LB|X553MA|X555LN|X556UQK);",device:"desktop",models:[{regex:"FBMD/K50IN;",model:"K50IN"},{regex:"FBMD/K54L;",model:"K54L"},{regex:"FBMD/T100HAN;",model:"Transformer Book"},{regex:"FBMD/T103HAF;",model:"Transformer Mini"},{regex:"FBMD/UX360CAK;",model:"ZenBook Flip"},{regex:"FBMD/X550LB;",model:"X550LB"},{regex:"FBMD/X553MA;",model:"X553MA"},{regex:"FBMD/X555LN;",model:"X555LN"},{regex:"FBMD/X556UQK;",model:"X556UQK"}]},Eb={regex:"FBMD/(?:Latitude E4300|Inspiron 3541|XPS 15 95[35]0);",device:"desktop",models:[{regex:"Latitude E4300",model:"Latitude E4300"},{regex:"Inspiron 3541",model:"Inspiron 3541"},{regex:"XPS 15 9530",model:"XPS 15 9530"},{regex:"XPS 15 9550",model:"XPS 15 9550"}]},yb={regex:"FBMD/((?:Compaq|HP) |23-f364)",device:"desktop",models:[{regex:"Compaq Presario CQ61 Notebook PC",model:"Compaq Presario CQ61"},{regex:"HP Pavilion x2 Detachable",model:"Pavilion x2"},{regex:"HP Laptop 15-bs0xx",model:"15 Laptop PC"},{regex:"HP ENVY x360 Convertible 15-bp0xx",model:"ENVY x360 Convertible PC"},{regex:"HP EliteBook (25[67]0p)",model:"EliteBook $1"},{regex:"HP ProBook (440 G5|6[35]60b)",model:"ProBook $1"},{regex:"HP Pavilion dv6 Notebook PC",model:"Pavilion dv6"},{regex:"HP Pavilion Notebook",model:"Pavilion"},{regex:"HP Spectre x360 Convertible",model:"Spectre x360"},{regex:"HP Pavilion All-in-One 24-r0xx",model:"Pavilion 24-r0xx All-in-One Desktop PC",device:"desktop"},{regex:"23-f364",model:"Pavilion TouchSmart 23-f364 All-in-One Desktop PC",device:"desktop"}]},Bb={regex:"FBMD/(?:37021C5|80E5|80SM|80VR);",device:"desktop",models:[{regex:"FBMD/37021C5;",model:"ThinkPad Helix 3702"},{regex:"FBMD/80E5;",model:"G50-80"},{regex:"FBMD/80SM;",model:"Ideapad 310-15ISK"},{regex:"FBMD/80VR;",model:"Legion Y720"}]},Gb={regex:"FBMD/SCL141CTP;",device:"desktop",model:'Notebook 14" Cherry Trail'},wb={regex:"FBMD/TH360R12.32CTW;",device:"desktop",model:"Prestige TH-360R12.32CTW"},Ob={regex:"FBMD/Satellite ",device:"desktop",models:[{regex:"Satellite (A[25]00|C650|C855|L650|S855)",model:"Satellite $1"},{regex:"Satellite ([^;\\)]+);",model:"Satellite $1"}]},Nb={Acer:Cb,Asus:Lb,Dell:Eb,HP:yb,Lenovo:Bb,Schneider:Gb,Thomson:wb,Toshiba:Ob};var Ib=J&&J.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(jr,"__esModule",{value:!0});const Db=Ib(Nb),At=ce,qr=se,Rb=ke;class kb{constructor(){this.parse=c=>{const h={type:"",brand:"",model:""};if(!qr.userAgentParser("FBMD/",c))return h;for(const[_,$]of Object.entries(Db.default)){const C=qr.userAgentParser($.regex,c);if(C){if(h.type="desktop",h.brand=_,"model"in $&&$.model)h.model=Rb.buildModel(At.variableReplacement($.model,C)).trim();else if("models"in $&&$.models)for(const T of $.models){const r=qr.userAgentParser(T.regex,c);r&&(h.model=At.variableReplacement(T.model,r).trim())}break}}return h}}}jr.default=kb;var eo={};const Fb={regex:"(?:Apple-)?iPod",device:"portable media player",models:[{regex:"(?:Apple-)?iPod1[C,]1",model:"iPod Touch 1G"},{regex:"(?:Apple-)?iPod2[C,]1",model:"iPod Touch 2G"},{regex:"(?:Apple-)?iPod3[C,]1",model:"iPod Touch 3"},{regex:"(?:Apple-)?iPod4[C,]1",model:"iPod Touch 4"},{regex:"(?:Apple-)?iPod5[C,]1",model:"iPod Touch 5"},{regex:"(?:Apple-)?iPod7[C,]1",model:"iPod Touch 6"},{regex:"(?:Apple-)?iPod",model:"iPod Touch"}]},Xb={regex:"COWON ([^;/]+) Build",device:"portable media player",model:"$1"},Hb={regex:"Microsoft ZuneHD",device:"portable media player",model:"Zune HD"},Ub={regex:"(SV-MV100)",device:"portable media player",model:"$1"},Vb={regex:"YP-(G[SIPB]?1|G[57]0|GB70D)",device:"portable media player",models:[{regex:"YP-G[B]?1",model:"Galaxy Player 4.0"},{regex:"YP-G70",model:"Galaxy Player 5.0"},{regex:"YP-GS1",model:"Galaxy Player 3.6"},{regex:"YP-GI1",model:"Galaxy Player 4.2"},{regex:"YP-GP1",model:"Galaxy Player 5.8"},{regex:"YP-G50",model:"Galaxy Player 50"},{regex:"YP-GB70D",model:"Galaxy Player 70 Plus"}]},Wb={regex:"(DV-PTB1080)(?:[);/ ]|$)",device:"portable media player",model:"$1"},Kb={regex:"Sonos/.+\\((?:ZP.+)\\)|Sonos;",device:"portable media player",models:[{regex:"\\((ZPS(?:[13569]|1[1-578]|2[03])|ZP90)\\)",model:"$1"},{regex:"Sonos;Play5;",model:"Play:5"},{regex:"Sonos;One;",model:"One"}]},Qb={Apple:Fb,Cowon:Xb,Microsoft:Hb,Panasonic:Ub,Samsung:Vb,Wizz:Wb,SONOS:Kb};var Zb=J&&J.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(eo,"__esModule",{value:!0});const Yb=Zb(Qb),ft=ce,Mt=se;class zb{constructor(){this.parse=c=>{const h={type:"",brand:"",model:""};for(const[_,$]of Object.entries(Yb.default)){const C=Mt.userAgentParser($.regex,c);if(C){if(h.type=$.device,h.brand=_,"model"in $&&$.model)h.model=ft.variableReplacement($.model,C).trim();else if("models"in $&&$.models)for(const T of $.models){const r=Mt.userAgentParser(T.regex,c);if(r){h.model=ft.variableReplacement(T.model,r).trim();break}}break}}return h}}}eo.default=zb;var Ee=J&&J.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Wr,"__esModule",{value:!0});const Jb=Ee(Kr),jb=Ee(Qr),qb=Ee(Zr),eC=Ee(zr),rC=Ee(Jr),oC=Ee(jr),tC=Ee(eo),iC=[rC.default,eC.default,Jb.default,qb.default,tC.default,jb.default,oC.default];class aC{constructor(){this.parse=c=>{for(const h of iC){const _=new h().parse(c);if(_.type!=="")return _}return null}}}Wr.default=aC;var ro={};const lC=[{regex:"Grid OS (\\d+[\\.\\d]+)",name:"GridOS",version:"$1"},{regex:"CaixaMagica",name:"Caixa M\xE1gica",version:""},{regex:"Mageia; Linux",name:"Mageia",version:""},{regex:"(?:WH|WhaleTV/)(\\d+[\\.\\d]+)",name:"Whale OS",version:"$1"},{regex:"Tizen[ /]?(\\d+[\\.\\d]+)?",name:"Tizen",version:"$1"},{regex:"Sailfish|Jolla",name:"Sailfish OS",version:""},{regex:"(?:Ali)?YunOS[ /]?(\\d+[\\.\\d]+)?",name:"YunOS",version:"$1"},{regex:"Windows Phone;FBSV/(\\d+[\\.\\d]+)",name:"Windows Phone",version:"$1"},{regex:"(?:Windows Phone (?:OS)?|wds)[ /]?(\\d+[\\.\\d]+)",name:"Windows Phone",version:"$1"},{regex:"XBLWP7|Windows Phone",name:"Windows Phone",version:""},{regex:"Windows CE(?: (\\d+[\\.\\d]+))?",name:"Windows CE",version:"$1"},{regex:"(?:IEMobile|Windows ?Mobile)(?: (\\d+[\\.\\d]+))?",name:"Windows Mobile",version:"$1"},{regex:"Windows NT 6.2; ARM;",name:"Windows RT",version:""},{regex:"Windows NT 6.3; ARM;",name:"Windows RT",version:"8.1"},{regex:"Windows IoT 10.0",name:"Windows IoT",version:"10"},{regex:"KAIOS(?:/(\\d+[\\.\\d]+))?",name:"KaiOS",version:"$1"},{regex:"RazoDroiD(?: v(\\d+[\\.\\d]*))?",name:"RazoDroiD",version:"$1"},{regex:"MildWild(?: CM-(\\d+[\\.\\d]*))?",name:"MildWild",version:"$1"},{regex:"CyanogenMod(?:[\\-/](?:CM)?(\\d+[\\.\\d]*))?",name:"CyanogenMod",version:"$1"},{regex:"(?:.*_)?MocorDroid(?:(\\d+[\\.\\d]*))?",name:"MocorDroid",version:"$1"},{regex:"Fire OS(?:/(\\d+[\\.\\d]*))?",name:"Fire OS",version:"$1"},{regex:"AFTSO001",name:"Fire OS",version:"7"},{regex:"FydeOS",name:"FydeOS",version:""},{regex:"(?:Podbean|Podimo)(?:.+)?/Android",name:"Android",version:""},{regex:"Pinterest for Android/.+; (\\d(?:[\\d\\.]+)?)\\)$",name:"Android",version:"$1"},{regex:"Android; (\\d+[\\.\\d]*); Mobile;",name:"Android",version:"$1"},{regex:"[ ]([\\d\\.]+)\\) AppleWebKit.*ROBLOX Android App",name:"Android",version:"$1"},{regex:"(?:(?:Orca-)?Android|Adr)[ /]?(?:[a-z]+ )?(\\d+[\\.\\d]*)",name:"Android",version:"$1"},{regex:"(?:Allview_TX1_Quasar|Cosmote_My_mini_Tab) (\\d+[\\.\\d]*)",name:"Android",version:"$1"},{regex:"Android ?(?:jelly bean|Kit Kat|S.O. Ginger Bread|The FireCyano|:) (\\d+[\\.\\d]*)",name:"Android",version:"$1"},{regex:"(?:Orca-Android|FB4A).*FBSV/(\\d+[\\.\\d]*);",name:"Android",version:"$1"},{regex:" Adr |Android|Silk-Accelerated=[a-z]{4,5}",name:"Android",version:""},{regex:"(?:TwitterAndroid).*[ /](?:[a-z]+ )?(\\d+[\\.\\d]*)",name:"Android",version:"$1"},{regex:"BeyondPod|AntennaPod|Podkicker|DoggCatcher|Player FM|okhttp|Podcatcher Deluxe|.+K_?Android_?TV_|Sonos/.+\\(ACR_",name:"Android",version:""},{regex:"Linux; Andr0id[; ](\\d+[\\.\\d]*)",name:"Android",version:"$1"},{regex:"Linux; diordnA[; ](\\d+[\\.\\d]*)",name:"Android",version:"$1"},{regex:"AmigaOS[ ]?(\\d+[\\.\\d]+)",name:"AmigaOS",version:"$1"},{regex:"AmigaOS|AmigaVoyager|Amiga-AWeb",name:"AmigaOS",version:""},{regex:"ThreadX(?:/(\\d+[\\.\\d]*))?",name:"ThreadX",version:"$1"},{regex:"Nucleus(?:(?: |/v?)(\\d+[\\.\\d]*))?",name:"MTK / Nucleus",version:"$1"},{regex:"MTK(?:(?: |/v?)(\\d+[\\.\\d]*))?",name:"MTK / Nucleus",version:"$1"},{regex:"MRE/(\\d+)\\.(\\d+).*;MAUI",name:"MRE",version:"$1.$2"},{regex:"dvkbuntu",name:"DVKBuntu",version:""},{regex:"Helio/(\\d+[\\.\\d]+)",name:"Lumin OS",version:"$1"},{regex:"HasCodingOs (\\d+[\\.\\d]+)",name:"HasCodingOS",version:"$1"},{regex:"PCLinuxOS/(\\d+[\\.\\d]+)",name:"PCLinuxOS",version:"$1"},{regex:"(Ordissimo|webissimo3)",name:"Ordissimo",version:""},{regex:"(?:Win|Sistema )Fenix",name:"Fenix",version:""},{regex:"TOS; Linux",name:"TmaxOS",version:""},{regex:"Maemo",name:"Maemo",version:""},{regex:"Arch ?Linux(?:[ /\\-](\\d+[\\.\\d]+))?",name:"Arch Linux",version:"$1"},{regex:"VectorLinux(?: package)?(?:[ /\\-](\\d+[\\.\\d]+))?",name:"VectorLinux",version:"$1"},{regex:"Linux; .*((?:Debian|Knoppix|Mint|Ubuntu|Kubuntu|Xubuntu|Lubuntu|Fedora|Red Hat|Mandriva|Gentoo|Sabayon|Slackware|SUSE|CentOS|BackTrack))[ /](\\d+[\\.\\d]+)",name:"$1",version:"$2"},{regex:"Deepin[ /](\\d+[\\.\\d]+)",name:"Deepin",version:"$1"},{regex:"(Debian|Knoppix|Mint(?! Browser)|Ubuntu|Kubuntu|Xubuntu|Lubuntu|Fedora|Red Hat|Mandriva|Gentoo|Sabayon|Slackware|SUSE|CentOS|BackTrack|Freebox)(?:(?: Enterprise)? Linux)?(?:[ /\\-](\\d+[\\.\\d]+))?",name:"$1",version:"$2"},{regex:"OS ROSA; Linux",name:"Rosa",version:""},{regex:"WEBOS(\\d+[\\.\\d]+)",name:"webOS",version:"$1"},{regex:"Web0S; Linux/SmartTV.+Chrome/68",name:"webOS",version:"5"},{regex:"Web0S; Linux/SmartTV.+Chrome/53",name:"webOS",version:"4"},{regex:"Web0S; Linux/SmartTV.+Chrome/38",name:"webOS",version:"3"},{regex:"Web0S; Linux/SmartTV.+Safari/538",name:"webOS",version:"2"},{regex:"Web0S; Linux/SmartTV.+Safari/537",name:"webOS",version:"1"},{regex:"(?:Web0S; .*WEBOS|webOS|web0S|Palm webOS|hpwOS)(?:[/]?(\\d+[\\.\\d]+))?",name:"webOS",version:"$1"},{regex:"(?:PalmOS|Palm OS)(?:[/ ](\\d+[\\.\\d]+))?|Palm",name:"palmOS",version:"$1"},{regex:"Xiino(?:.*v\\. (\\d+[\\.\\d]+))?",name:"palmOS",version:"$1"},{regex:"MorphOS(?:[ /](\\d+[\\.\\d]+))?",name:"MorphOS",version:"$1"},{regex:"FBW.+FBSV/(\\d+[\\.\\d]*);",name:"Windows",version:"$1"},{regex:"mingw32",name:"Windows",version:""},{regex:"Windows/(\\d+\\.\\d+)",name:"Windows",version:"$1"},{regex:"CYGWIN_NT-10.0|Windows NT 10.0|Windows 10",name:"Windows",version:"10"},{regex:"CYGWIN_NT-6.4|Windows NT 6.4|Windows 10|win10",name:"Windows",version:"10"},{regex:"CYGWIN_NT-6.3|Windows NT 6.3|Windows 8.1",name:"Windows",version:"8.1"},{regex:"CYGWIN_NT-6.2|Windows NT 6.2|Windows 8",name:"Windows",version:"8"},{regex:"CYGWIN_NT-6.1|Windows NT 6.1|Windows 7|win7",name:"Windows",version:"7"},{regex:"CYGWIN_NT-6.0|Windows NT 6.0|Windows Vista",name:"Windows",version:"Vista"},{regex:"CYGWIN_NT-5.2|Windows NT 5.2|Windows Server 2003 / XP x64",name:"Windows",version:"Server 2003"},{regex:"CYGWIN_NT-5.1|Windows NT 5.1|Windows XP",name:"Windows",version:"XP"},{regex:"CYGWIN_NT-5.0|Windows NT 5.0|Windows 2000",name:"Windows",version:"2000"},{regex:"CYGWIN_NT-4.0|Windows NT 4.0|WinNT|Windows NT",name:"Windows",version:"NT"},{regex:"CYGWIN_ME-4.90|Win 9x 4.90|Windows ME",name:"Windows",version:"ME"},{regex:"CYGWIN_98-4.10|Win98|Windows 98",name:"Windows",version:"98"},{regex:"CYGWIN_95-4.0|Win32|Win95|Windows 95|Windows_95",name:"Windows",version:"95"},{regex:"Windows 3.1",name:"Windows",version:"3.1"},{regex:"Windows",name:"Windows",version:""},{regex:"Haiku",name:"Haiku OS",version:""},{regex:"(?:Watch1,[12]/|Watch OS,|watchOS[ /])(\\d+[\\.\\d]*)",name:"watchOS",version:"$1"},{regex:"iPad/([89]|1[012]).(\\d+[\\.\\d]*)",name:"iOS",version:"$1.$2"},{regex:"Pinterest for iOS/.+; (\\d(?:[\\d\\.]+)?)\\)$",name:"iOS",version:"$1"},{regex:"CFNetwork/.+ Darwin/20.4.0(?!.*x86_64)",name:"iOS",version:"14.5"},{regex:"CFNetwork/.+ Darwin/20.3.0(?!.*x86_64)",name:"iOS",version:"14.4"},{regex:"CFNetwork/.+ Darwin/20.2.0(?!.*x86_64)",name:"iOS",version:"14.3"},{regex:"CFNetwork/.+ Darwin/20.1.0(?!.*x86_64)",name:"iOS",version:"14.2"},{regex:"CFNetwork/.+ Darwin/20.0.0(?!.*x86_64)",name:"iOS",version:"14.0"},{regex:"CFNetwork/.+ Darwin/19.6.0(?!.*x86_64)",name:"iOS",version:"13.6"},{regex:"CFNetwork/.+ Darwin/19.5.0(?!.*x86_64)",name:"iOS",version:"13.5"},{regex:"CFNetwork/.+ Darwin/19.4.0(?!.*x86_64)",name:"iOS",version:"13.4"},{regex:"CFNetwork/.+ Darwin/19.3.0(?!.*x86_64)",name:"iOS",version:"13.3.1"},{regex:"CFNetwork/.+ Darwin/19.2.0(?!.*x86_64)",name:"iOS",version:"13.3"},{regex:"CFNetwork/.+ Darwin/19.0.0(?!.*x86_64)",name:"iOS",version:"13.0"},{regex:"CFNetwork/.+ Darwin/18.7.0(?!.*x86_64)",name:"iOS",version:"12.4"},{regex:"CFNetwork/.+ Darwin/18.6.0(?!.*x86_64)",name:"iOS",version:"12.3"},{regex:"CFNetwork/.+ Darwin/18.5.0(?!.*x86_64)",name:"iOS",version:"12.2"},{regex:"CFNetwork/.+ Darwin/18.2.0(?!.*x86_64)",name:"iOS",version:"12.1"},{regex:"CFNetwork/.+ Darwin/18.0.0(?!.*x86_64)",name:"iOS",version:"12.0"},{regex:"CFNetwork/.+ Darwin/17.7.0(?!.*x86_64)",name:"iOS",version:"11.4.1"},{regex:"CFNetwork/.+ Darwin/17.6.0(?!.*x86_64)",name:"iOS",version:"11.4"},{regex:"CFNetwork/889(?!.*x86_64)",name:"iOS",version:"11.1"},{regex:"CFNetwork/887(?!.*x86_64)",name:"iOS",version:"11.0"},{regex:"CFNetwork/811(?!.*x86_64)",name:"iOS",version:"10.3"},{regex:"CFNetwork/808\\.3",name:"iOS",version:"10.3"},{regex:"CFNetwork/808\\.2",name:"iOS",version:"10.2"},{regex:"CFNetwork/808\\.1",name:"iOS",version:"10.1"},{regex:"CFNetwork/808\\.0",name:"iOS",version:"10.0"},{regex:"CFNetwork/808",name:"iOS",version:"10"},{regex:"CFNetwork/758\\.4\\.3",name:"iOS",version:"9.3.2"},{regex:"CFNetwork/758\\.3\\.15",name:"iOS",version:"9.3"},{regex:"CFNetwork/758\\.2\\.[78]",name:"iOS",version:"9.2"},{regex:"CFNetwork/758\\.1\\.6",name:"iOS",version:"9.1"},{regex:"CFNetwork/758\\.0\\.2",name:"iOS",version:"9.0"},{regex:"CFNetwork/711\\.5\\.6",name:"iOS",version:"8.4.1"},{regex:"CFNetwork/711\\.4\\.6",name:"iOS",version:"8.4"},{regex:"CFNetwork/711\\.3\\.18",name:"iOS",version:"8.3"},{regex:"CFNetwork/711\\.2\\.23",name:"iOS",version:"8.2"},{regex:"CFNetwork/711\\.1\\.1[26]",name:"iOS",version:"8.1"},{regex:"CFNetwork/711\\.0\\.6",name:"iOS",version:"8.0"},{regex:"CFNetwork/672\\.1",name:"iOS",version:"7.1"},{regex:"CFNetwork/672\\.0",name:"iOS",version:"7.0"},{regex:"CFNetwork/609\\.1",name:"iOS",version:"6.1"},{regex:"CFNetwork/60[29]",name:"iOS",version:"6.0"},{regex:"CFNetwork/548\\.1",name:"iOS",version:"5.1"},{regex:"CFNetwork/548\\.0",name:"iOS",version:"5.0"},{regex:"CFNetwork/485\\.13",name:"iOS",version:"4.3"},{regex:"CFNetwork/485\\.12",name:"iOS",version:"4.2"},{regex:"CFNetwork/485\\.10",name:"iOS",version:"4.1"},{regex:"CFNetwork/485\\.2",name:"iOS",version:"4.0"},{regex:"CFNetwork/467\\.12",name:"iOS",version:"3.2"},{regex:"CFNetwork/459",name:"iOS",version:"3.1"},{regex:"iPhone/(\\d+[\\.\\d]*) hw/",name:"iOS",version:"$1"},{regex:"iOS(\\d+\\.\\d+\\.\\d+)",name:"iOS",version:"$1"},{regex:"iOS(\\d+)\\.(\\d+)0",name:"iOS",version:"$1.$2"},{regex:"iPhone OS ([0-9]{1})([0-9]{1})([0-9]{1})",name:"iOS",version:"$1.$2.$3"},{regex:"(?:CPU OS|iPh(?:one)?[ _]OS|iOS)[ _/](\\d+(?:[_\\.]\\d+)*)",name:"iOS",version:"$1"},{regex:"(?:FBIOS|Messenger(?:Lite)?ForiOS).*FBSV/ ?(\\d+[\\.\\d]*);",name:"iOS",version:"$1"},{regex:"(?:Apple-)?(?:iPhone|iPad|iPod)(?:.*Mac OS X.*Version/(\\d+\\.\\d+)|; Opera)?",name:"iOS",version:"$1"},{regex:"(?:Podcasts/(?:[\\d\\.]+)|Instacast(?:HD)?/(?:\\d\\.[\\d\\.abc]+)|Pocket Casts, iOS|\\(iOS\\)|iOS; Opera|Overcast|Castro|Podcat|iCatcher|RSSRadio/|MobileSafari/)(?!.*x86_64)",name:"iOS",version:""},{regex:"iTunes-(iPod|iPad|iPhone)/(?:[\\d\\.]+)",name:"iOS",version:""},{regex:"iOS/Version ([\\d\\.]+)",name:"iOS",version:"$1"},{regex:"Sonos/.+\\(ICRU_",name:"iOS",version:""},{regex:"CFNetwork/.+ Darwin/20.2.0.*(x86_64)|(x86_64-apple-)?darwin20.2.0",name:"Mac",version:"11.1"},{regex:"CFNetwork/.+ Darwin/20.[01].0.*(x86_64)|(x86_64-apple-)?darwin20.[01].0",name:"Mac",version:"11.0"},{regex:"CFNetwork/.+ Darwin/19.6.0.*(x86_64)|(x86_64-apple-)?darwin19.6.0",name:"Mac",version:"10.15.6"},{regex:"CFNetwork/.+ Darwin/19.5.0.*(x86_64)|(x86_64-apple-)?darwin19.5.0",name:"Mac",version:"10.15.5"},{regex:"CFNetwork/.+ Darwin/19.4.0.*(x86_64)|(x86_64-apple-)?darwin19.4.0",name:"Mac",version:"10.15.4"},{regex:"CFNetwork/.+ Darwin/19.3.0.*(x86_64)|(x86_64-apple-)?darwin19.3.0",name:"Mac",version:"10.15.3"},{regex:"CFNetwork/.+ Darwin/19.2.0.*(x86_64)|(x86_64-apple-)?darwin19.2.0",name:"Mac",version:"10.15.2"},{regex:"CFNetwork/(?:108[258]|109[18]|1103).*(x86_64)",name:"Mac",version:"10.15"},{regex:"CFNetwork/.+ Darwin/18.2.0.*(x86_64)|(x86_64-apple-)?darwin18.2.0",name:"Mac",version:"10.14.1"},{regex:"CFNetwork/(?:96[29]|97[14568]).*(x86_64)",name:"Mac",version:"10.14"},{regex:"CFNetwork/.+ Darwin/17.7.0.*(x86_64)|(x86_64-apple-)?darwin17.7.0",name:"Mac",version:"10.13.6"},{regex:"CFNetwork/.+ Darwin/17.6.0.*(x86_64)|(x86_64-apple-)?darwin17.6.0",name:"Mac",version:"10.13.5"},{regex:"CFNetwork/.+ Darwin/17.5.0.*(x86_64)|(x86_64-apple-)?darwin17.5.0",name:"Mac",version:"10.13.4"},{regex:"CFNetwork/.+ Darwin/17.4.0.*(x86_64)|(x86_64-apple-)?darwin17.4.0",name:"Mac",version:"10.13.3"},{regex:"CFNetwork/.+ Darwin/17.3.0.*(x86_64)|(x86_64-apple-)?darwin17.3.0",name:"Mac",version:"10.13.2"},{regex:"CFNetwork/.+ Darwin/17.2.0.*(x86_64)|(x86_64-apple-)?darwin17.2.0",name:"Mac",version:"10.13.1"},{regex:"CFNetwork/(?:887|889|893|897|901|902).*(x86_64)",name:"Mac",version:"10.13"},{regex:"CFNetwork/.+ Darwin/16.7.0.*(x86_64)|(x86_64-apple-)?darwin16.7.0",name:"Mac",version:"10.12.6"},{regex:"CFNetwork/.+ Darwin/16.6.0.*(x86_64)|(x86_64-apple-)?darwin16.6.0",name:"Mac",version:"10.12.5"},{regex:"CFNetwork/.+ Darwin/16.5.0.*(x86_64)|(x86_64-apple-)?darwin16.5.0",name:"Mac",version:"10.12.4"},{regex:"CFNetwork/.+ Darwin/16.3.0.*(x86_64)|(x86_64-apple-)?darwin16.3.0",name:"Mac",version:"10.12.3"},{regex:"CFNetwork/.+ Darwin/16.2.0.*(x86_64)|(x86_64-apple-)?darwin16.2.0",name:"Mac",version:"10.12.2"},{regex:"CFNetwork/.+ Darwin/16.1.0.*(x86_64)|(x86_64-apple-)?darwin16.1.0",name:"Mac",version:"10.12.1"},{regex:"CFNetwork/811.*(x86_64)",name:"Mac",version:"10.12"},{regex:"CFNetwork/807",name:"Mac",version:"10.12"},{regex:"CFNetwork/.+ Darwin/15.6.0.*(x86_64)|(x86_64-apple-)?darwin15.6.0",name:"Mac",version:"10.11.6"},{regex:"CFNetwork/.+ Darwin/15.5.0.*(x86_64)|(x86_64-apple-)?darwin15.5.0",name:"Mac",version:"10.11.5"},{regex:"CFNetwork/.+ Darwin/15.4.0.*(x86_64)|(x86_64-apple-)?darwin15.4.0",name:"Mac",version:"10.11.4"},{regex:"CFNetwork/.+ Darwin/15.3.0.*(x86_64)|(x86_64-apple-)?darwin15.3.0",name:"Mac",version:"10.11.3"},{regex:"CFNetwork/.+ Darwin/15.2.0.*(x86_64)|(x86_64-apple-)?darwin15.2.0",name:"Mac",version:"10.11.2"},{regex:"CFNetwork/760",name:"Mac",version:"10.11"},{regex:"CFNetwork/.+ Darwin/14.5.0.*(x86_64)|(x86_64-apple-)?darwin14.5.0",name:"Mac",version:"10.10.5"},{regex:"CFNetwork/.+ Darwin/14.4.0.*(x86_64)|(x86_64-apple-)?darwin14.4.0",name:"Mac",version:"10.10.4"},{regex:"CFNetwork/.+ Darwin/14.3.0.*(x86_64)|(x86_64-apple-)?darwin14.3.0",name:"Mac",version:"10.10.3"},{regex:"CFNetwork/.+ Darwin/14.1.0.*(x86_64)|(x86_64-apple-)?darwin14.1.0",name:"Mac",version:"10.10.2"},{regex:"CFNetwork/720",name:"Mac",version:"10.10"},{regex:"CFNetwork/.+ Darwin/13.4.0.*(x86_64)|(x86_64-apple-)?darwin13.4.0",name:"Mac",version:"10.9.5"},{regex:"CFNetwork/.+ Darwin/13.3.0.*(x86_64)|(x86_64-apple-)?darwin13.3.0",name:"Mac",version:"10.9.4"},{regex:"CFNetwork/.+ Darwin/13.2.0.*(x86_64)|(x86_64-apple-)?darwin13.2.0",name:"Mac",version:"10.9.3"},{regex:"CFNetwork/.+ Darwin/13.1.0.*(x86_64)|(x86_64-apple-)?darwin13.1.0",name:"Mac",version:"10.9.2"},{regex:"CFNetwork/673",name:"Mac",version:"10.9"},{regex:"CFNetwork/.+ Darwin/12.5.0.*(x86_64)|(x86_64-apple-)?darwin12.5.0",name:"Mac",version:"10.8.5"},{regex:"CFNetwork/.+ Darwin/12.4.0.*(x86_64)|(x86_64-apple-)?darwin12.4.0",name:"Mac",version:"10.8.4"},{regex:"CFNetwork/.+ Darwin/12.3.0.*(x86_64)|(x86_64-apple-)?darwin12.3.0",name:"Mac",version:"10.8.3"},{regex:"CFNetwork/.+ Darwin/12.2.0.*(x86_64)|(x86_64-apple-)?darwin12.2.0",name:"Mac",version:"10.8.2"},{regex:"CFNetwork/.+ Darwin/12.1.0.*(x86_64)|(x86_64-apple-)?darwin12.1.0",name:"Mac",version:"10.8.1"},{regex:"CFNetwork/596",name:"Mac",version:"10.8"},{regex:"CFNetwork/.+ Darwin/11.5.0.*(x86_64)|(x86_64-apple-)?darwin11.5.0",name:"Mac",version:"10.7.5"},{regex:"CFNetwork/.+ Darwin/11.4.0.*(x86_64)|(x86_64-apple-)?darwin11.4.0",name:"Mac",version:"10.7.4"},{regex:"CFNetwork/.+ Darwin/11.3.0.*(x86_64)|(x86_64-apple-)?darwin11.3.0",name:"Mac",version:"10.7.3"},{regex:"CFNetwork/.+ Darwin/11.2.0.*(x86_64)|(x86_64-apple-)?darwin11.2.0",name:"Mac",version:"10.7.2"},{regex:"CFNetwork/.+ Darwin/11.1.0.*(x86_64)|(x86_64-apple-)?darwin11.1.0",name:"Mac",version:"10.7.1"},{regex:"CFNetwork/520",name:"Mac",version:"10.7"},{regex:"CFNetwork/454",name:"Mac",version:"10.6"},{regex:"CFNetwork/(?:438|422|339|330|221|220|217)",name:"Mac",version:"10.5"},{regex:"CFNetwork/12[89]",name:"Mac",version:"10.4"},{regex:"CFNetwork/1\\.2",name:"Mac",version:"10.3"},{regex:"CFNetwork/1\\.1",name:"Mac",version:"10.2"},{regex:"Mac[ +]OS[ +]?X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",name:"Mac",version:"$1"},{regex:"Mac (?:OS/)?(\\d+(?:[_\\.]\\d+)+)",name:"Mac",version:"$1"},{regex:"macOS/(\\d+[\\.\\d]+)",name:"Mac",version:"$1"},{regex:"Darwin|Macintosh|Mac_PowerPC|PPC|Mac PowerPC|iMac|MacBook|macOS|Sonos/.+\\(MDCR_",name:"Mac",version:""},{regex:"SeewoOS x86_64 (\\d+[\\.\\d]+)",name:"SeewoOS",version:"$1"},{regex:"CrOS [a-z0-9_]+ .* Chrome/(\\d+[\\.\\d]+)",name:"Chrome OS",version:"$1"},{regex:"(?:BB10;.+Version|Black[Bb]erry[0-9a-z]+|Black[Bb]erry.+Version)/(\\d+[\\.\\d]+)",name:"BlackBerry OS",version:"$1"},{regex:"RIM Tablet OS (\\d+[\\.\\d]+)",name:"BlackBerry Tablet OS",version:"$1"},{regex:"RIM Tablet OS|QNX|Play[Bb]ook",name:"BlackBerry Tablet OS",version:""},{regex:"BlackBerry",name:"BlackBerry OS",version:""},{regex:"bPod",name:"BlackBerry OS",version:""},{regex:"BeOS",name:"BeOS",version:""},{regex:"Symbian/3.+NokiaBrowser/7\\.3",name:"Symbian^3",version:"Anna"},{regex:"Symbian/3.+NokiaBrowser/7\\.4",name:"Symbian^3",version:"Belle"},{regex:"Symbian/3",name:"Symbian^3",version:""},{regex:"(?:Series ?60|SymbOS|S60)(?:[ /]?(\\d+[\\.\\d]+|V\\d+))?",name:"Symbian OS Series 60",version:"$1"},{regex:"Series40",name:"Symbian OS Series 40",version:""},{regex:"SymbianOS/(\\d+[\\.\\d]+)",name:"Symbian OS",version:"$1"},{regex:"MeeGo|WeTab",name:"MeeGo",version:""},{regex:"Symbian(?: OS)?|SymbOS",name:"Symbian OS",version:""},{regex:"Nokia",name:"Symbian",version:""},{regex:"(?:Mobile|Tablet);.+Firefox/\\d+\\.\\d+",name:"Firefox OS",version:""},{regex:"RISC OS(?:-NC)?(?:[ /](\\d+[\\.\\d]+))?",name:"RISC OS",version:"$1"},{regex:"Inferno(?:[ /](\\d+[\\.\\d]+))?",name:"Inferno",version:"$1"},{regex:"bada(?:[ /](\\d+[\\.\\d]+))?",name:"Bada",version:"$1"},{regex:"(?:Brew(?!-Applet)(?: MP)?|BMP)(?:[ /](\\d+[\\.\\d]+))?",name:"Brew",version:"$1"},{regex:"GoogleTV(?:[ /](\\d+[\\.\\d]+))?",name:"Google TV",version:"$1"},{regex:"AppleTV(?:/?(\\d+[\\.\\d]+))?",name:"Apple TV",version:"$1"},{regex:"WebTV/(\\d+[\\.\\d]+)",name:"WebTV",version:"$1"},{regex:"RemixOS 5.1.1",name:"Remix OS",version:"1"},{regex:"RemixOS 6.0",name:"Remix OS",version:"2"},{regex:"RemixOS",name:"Remix OS",version:""},{regex:"(?:SunOS|Solaris)(?:[/ ](\\d+[\\.\\d]+))?",name:"Solaris",version:"$1"},{regex:"AIX(?:[/ ]?(\\d+[\\.\\d]+))?",name:"AIX",version:"$1"},{regex:"HP-UX(?:[/ ]?(\\d+[\\.\\d]+))?",name:"HP-UX",version:"$1"},{regex:"FreeBSD(?:[/ ]?(\\d+[\\.\\d]+))?",name:"FreeBSD",version:"$1"},{regex:"NetBSD(?:[/ ]?(\\d+[\\.\\d]+))?",name:"NetBSD",version:"$1"},{regex:"OpenBSD(?:[/ ]?(\\d+[\\.\\d]+))?",name:"OpenBSD",version:"$1"},{regex:"DragonFly(?:[/ ]?(\\d+[\\.\\d]+))?",name:"DragonFly",version:"$1"},{regex:"Syllable(?:[/ ]?(\\d+[\\.\\d]+))?",name:"Syllable",version:"$1"},{regex:"IRIX(?:;64)?(?:[/ ]?(\\d+[\\.\\d]+))",name:"IRIX",version:"$1"},{regex:"OSF1(?:[/ ]?v?(\\d+[\\.\\d]+))?",name:"OSF1",version:"$1"},{regex:"Nintendo (Wii|Switch)",name:"Nintendo",version:"$1"},{regex:"PlayStation ?([34])",name:"PlayStation",version:"$1"},{regex:"Xbox|KIN\\.(?:One|Two)",name:"Xbox",version:"360"},{regex:"Nitro|Nintendo ([3]?DS[i]?)",name:"Nintendo Mobile",version:"$1"},{regex:"PlayStation ((?:Portable|Vita))",name:"PlayStation Portable",version:"$1"},{regex:"OS/2",name:"OS/2",version:""},{regex:"Linux(?:OS)?[^a-z]",name:"GNU/Linux",version:""}],sC={AIX:"AIX",AND:"Android",AMG:"AmigaOS",ATV:"Apple TV",ARL:"Arch Linux",BTR:"BackTrack",SBA:"Bada",BEO:"BeOS",BLB:"BlackBerry OS",QNX:"BlackBerry Tablet OS",BMP:"Brew",CES:"CentOS",COS:"Chrome OS",CYN:"CyanogenMod",DEB:"Debian",DEE:"Deepin",DFB:"DragonFly",FED:"Fedora",FOS:"Firefox OS",FIR:"Fire OS",FRE:"Freebox",BSD:"FreeBSD",FYD:"FydeOS",GNT:"Gentoo",GTV:"Google TV",HPX:"HP-UX",HAI:"Haiku OS",IRI:"IRIX",INF:"Inferno",KOS:"KaiOS",KNO:"Knoppix",KBT:"Kubuntu",LIN:"GNU/Linux",LBT:"Lubuntu",VLN:"VectorLinux",MAC:"Mac",MAE:"Maemo",MDR:"Mandriva",SMG:"MeeGo",MCD:"MocorDroid",MIN:"Mint",MLD:"MildWild",MOR:"MorphOS",NBS:"NetBSD",MTK:"MTK / Nucleus",MRE:"MRE",WII:"Nintendo",NDS:"Nintendo Mobile",OS2:"OS/2",T64:"OSF1",OBS:"OpenBSD",ORD:"Ordissimo",PSP:"PlayStation Portable",PS3:"PlayStation",RHT:"Red Hat",ROS:"RISC OS",RSO:"Rosa",REM:"Remix OS",RZD:"RazoDroiD",SAB:"Sabayon",SSE:"SUSE",SAF:"Sailfish OS",SEE:"SeewoOS",SLW:"Slackware",SOS:"Solaris",SYL:"Syllable",SYM:"Symbian",SYS:"Symbian OS",S40:"Symbian OS Series 40",S60:"Symbian OS Series 60",SY3:"Symbian^3",TDX:"ThreadX",TIZ:"Tizen",TOS:"TmaxOS",UBT:"Ubuntu",WAS:"watchOS",WTV:"WebTV",WHS:"Whale OS",WIN:"Windows",WCE:"Windows CE",WIO:"Windows IoT",WMO:"Windows Mobile",WPH:"Windows Phone",WRT:"Windows RT",XBX:"Xbox",XBT:"Xubuntu",YNS:"YunOs",IOS:"iOS",POS:"palmOS",WOS:"webOS"},nC={Android:["AND","CYN","FIR","REM","RZD","MLD","MCD","YNS"],AmigaOS:["AMG","MOR"],"Apple TV":["ATV"],BlackBerry:["BLB","QNX"],Brew:["BMP"],BeOS:["BEO","HAI"],"Chrome OS":["COS","FYD","SEE"],"Firefox OS":["FOS","KOS"],"Gaming Console":["WII","PS3"],"Google TV":["GTV"],IBM:["OS2"],iOS:["IOS","WAS"],"RISC OS":["ROS"],"GNU/Linux":["LIN","ARL","DEB","KNO","MIN","UBT","KBT","XBT","LBT","FED","RHT","VLN","MDR","GNT","SAB","SLW","SSE","CES","BTR","SAF","ORD","TOS","RSO","DEE","FRE"],Mac:["MAC"],"Mobile Gaming Console":["PSP","NDS","XBX"],"Real-time OS":["MTK","TDX","MRE"],"Other Mobile":["WOS","POS","SBA","TIZ","SMG","MAE"],Symbian:["SYM","SYS","SY3","S60","S40"],Unix:["SOS","AIX","HPX","BSD","NBS","OBS","DFB","SYL","IRI","T64","INF"],WebTV:["WTV"],Windows:["WIN"],"Windows Mobile":["WPH","WMO","WCE","WRT","WIO"],"Other Smart TV":["WHS"]},dC={operatingSystem:sC,osFamilies:nC};var Tt=J&&J.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(ro,"__esModule",{value:!0});const mC=Tt(lC),cC=Me,$t=ce,we=se,Pt=Tt(dC),gC=["AmigaOS","IBM","GNU/Linux","Mac","Unix","Windows","BeOS","Chrome OS"],xC=Pt.default.operatingSystem,hC=Pt.default.osFamilies;class Fe{constructor(c){this.options={versionTruncation:1},this.parse=h=>{const _={name:"",version:"",platform:this.parsePlatform(h)};for(const $ of mC.default){const C=we.userAgentParser($.regex,h);if(C)return _.name=$t.variableReplacement($.name,C),_.version=cC.formatVersion($t.variableReplacement($.version,C),this.options.versionTruncation),_.name==="lubuntu"&&(_.name="Lubuntu"),_.name==="debian"&&(_.name="Debian"),_.name==="YunOS"&&(_.name="YunOs"),_}return null},this.parsePlatform=h=>we.userAgentParser("arm|aarch64|Watch ?OS|Watch1,[12]",h)?"ARM":we.userAgentParser("mips",h)?"MIPS":we.userAgentParser("sh4",h)?"SuperH":we.userAgentParser("WOW64|x64|win64|amd64|x86_?64",h)?"x64":we.userAgentParser("(?:i[0-9]|x)86|i86pc",h)?"x86":"",this.options=Object.assign(Object.assign({},this.options),c)}}ro.default=Fe,Fe.getDesktopOsArray=()=>gC,Fe.getOsFamily=a=>{const c=Fe.getOsShortName(a);for(const[h,_]of Object.entries(hC))if(_.includes(c))return h;return""},Fe.getOsShortName=a=>{for(const[c,h]of Object.entries(xC))if(h===a)return c;return""};var oo={};const uC=["MDDR(JS)?","MDDC(JS)?","MDDS(JS)?"],SC=["MAAR(JS)?"],_C=["MASE(JS)?","MASP(JS)?","MASA(JS)?"],vC=["MAAU","NP0[26789]","ASJB","ASU2(JS)?"],pC=["MASM(JS)?","SMJB"],AC=["MALC(JS)?","MALE(JS)?","MALN(JS)?","LCJB","LEN2"],fC=["MATM(JS)?","MATB(JS)?","MATP(JS)?","TNJB","TAJB"],MC=["MAMD"],TC=["MAMI(JS)?","MAM3"],$C=["MAGW(JS)?"],PC=["MAFS(JS)?","FSJB"],bC=["CPDTDF","CPNTDF(JS?)","CMNTDF(JS)?","CMDTDF(JS)?"],CC=["HPCMHP","HPNTDF(JS)?","HPDTDF(JS)?"],LC=["MANM(JS)?"],EC=["Ordissimo","webissimo3"],yC={Dell:uC,Acer:SC,Sony:_C,Asus:vC,Samsung:pC,Lenovo:AC,Toshiba:fC,Medion:MC,MSI:TC,Gateway:$C,Fujitsu:PC,Compaq:bC,HP:CC,Hyrican:LC,Ordissimo:EC};var BC=J&&J.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(oo,"__esModule",{value:!0});const GC=BC(yC),wC=se;class OC{constructor(){this.parse=c=>{for(const[h,_]of Object.entries(GC.default))for(const $ of _)if(wC.userAgentParser($,c))return h;return""}}}oo.default=OC;const NC=[{regex:"360Spider(-Image|-Video)?",name:"360Spider",category:"Search bot",url:"https://www.so.com/help/help_3_2.html",producer:{name:"Online Media Group, Inc.",url:""}},{regex:"Aboundex",name:"Aboundexbot",category:"Search bot",url:"http://www.aboundex.com/crawler/",producer:{name:"Aboundex.com",url:"http://www.aboundex.com"}},{regex:"AcoonBot",name:"Acoon",category:"Search bot",url:"http://www.acoon.de/robot.asp",producer:{name:"Acoon GmbH",url:"http://www.acoon.de"}},{regex:"AddThis\\.com",name:"AddThis.com",category:"Social Media Agent",url:"",producer:{name:"Clearspring Technologies, Inc.",url:"http://www.clearspring.com"}},{regex:"AhrefsBot",name:"aHrefs Bot",category:"Crawler",url:"https://ahrefs.com/robot",producer:{name:"Ahrefs Pte Ltd",url:"https://ahrefs.com/robot"}},{regex:"ia_archiver|alexabot|verifybot",name:"Alexa Crawler",category:"Search bot",url:"https://support.alexa.com/hc/en-us/sections/200100794-Crawlers",producer:{name:"Alexa Internet",url:"https://www.alexa.com"}},{regex:"alexa site audit",name:"Alexa Site Audit",category:"Site Monitor",url:"https://support.alexa.com/hc/en-us/articles/200450194",producer:{name:"Alexa Internet",url:"https://www.alexa.com"}},{regex:"Amazon[ -]Route ?53[ -]Health[ -]Check[ -]Service",name:"Amazon Route53 Health Check",category:"Service Agent",producer:{name:"Amazon Web Services",url:"https://aws.amazon.com/"}},{regex:"AmorankSpider",name:"Amorank Spider",category:"Crawler",url:"http://amorank.com/webcrawler.html",producer:{name:"Amorank",url:"http://www.amorank.com"}},{regex:"ApacheBench",name:"ApacheBench",category:"Benchmark",url:"https://httpd.apache.org/docs/2.4/programs/ab.html",producer:{name:"The Apache Software Foundation",url:"https://www.apache.org/foundation/"}},{regex:"Applebot",name:"Applebot",category:"Crawler",url:"https://support.apple.com/en-us/HT204683",producer:{name:"Apple Inc",url:"https://www.apple.com"}},{regex:"AppSignalBot",name:"AppSignalBot",category:"Site Monitor",url:"https://docs.appsignal.com/uptime-monitoring/",producer:{name:"AppSignal",url:"https://appsignal.com/"}},{regex:"Arachni",name:"Arachni",category:"Security Checker",url:"https://www.arachni-scanner.com/",producer:{name:"Sarosys LLC",url:"https://www.sarosys.com/"}},{regex:"AspiegelBot",name:"AspiegelBot",category:"Crawler",url:"https://aspiegel.com/",producer:{name:"Huawei",url:"https://www.huawei.com/"}},{regex:"Castro 2, Episode Duration Lookup",name:"Castro 2",category:"Service Agent",url:"http://supertop.co/castro/",producer:{name:"Supertop",url:"http://supertop.co"}},{regex:"Curious George",name:"Analytics SEO Crawler",category:"Crawler",url:"http://www.analyticsseo.com/crawler",producer:{name:"Analytics SEO",url:"http://www.analyticsseo.com"}},{regex:"archive\\.org_bot|special_archiver",name:"archive.org bot",category:"Crawler",url:"https://archive.org/details/archive.org_bot",producer:{name:"The Internet Archive",url:"https://archive.org"}},{regex:"Ask Jeeves/Teoma",name:"Ask Jeeves",category:"Search bot",url:"",producer:{name:"Ask Jeeves Inc.",url:"http://www.ask.com"}},{regex:"Backlink-Check\\.de",name:"Backlink-Check.de",category:"Crawler",url:"http://www.backlink-check.de/bot.html",producer:{name:"Mediagreen Medienservice",url:"http://www.backlink-check.de"}},{regex:"BacklinkCrawler",name:"BacklinkCrawler",category:"Crawler",url:"http://www.backlinktest.com/crawler.html",producer:{name:"2.0Promotion GbR",url:"http://www.backlinktest.com"}},{regex:"baiduspider(-image)?|baidu Transcoder|baidu.*spider",name:"Baidu Spider",category:"Search bot",url:"http://www.baidu.com/search/spider.htm",producer:{name:"Baidu",url:"http://www.baidu.com"}},{regex:"BazQux",name:"BazQux Reader",url:"https://bazqux.com/fetcher",category:"Feed Fetcher",producer:{name:"",url:""}},{regex:"MSNBot|msrbot|bingbot|BingPreview|msnbot-(UDiscovery|NewsBlogs)|adidxbot",name:"BingBot",category:"Search bot",url:"http://search.msn.com/msnbot.htmn",producer:{name:"Microsoft Corporation",url:"http://www.microsoft.com"}},{regex:"Blekkobot",name:"Blekkobot",category:"Search bot",url:"http://blekko.com/about/blekkobot",producer:{name:"Blekko",url:"http://blekko.com"}},{regex:"BLEXBot(Test)?",name:"BLEXBot Crawler",category:"Crawler",url:"http://webmeup-crawler.com",producer:{name:"WebMeUp",url:"http://webmeup.com"}},{regex:"Bloglovin",name:"Bloglovin",url:"http://www.bloglovin.com",category:"Feed Fetcher",producer:{name:"",url:""}},{regex:"Blogtrottr",name:"Blogtrottr",url:"",category:"Feed Fetcher",producer:{name:"Blogtrottr Ltd",url:"https://blogtrottr.com/"}},{regex:"BoardReader Blog Indexer",name:"BoardReader Blog Indexer",category:"Crawler",producer:{name:"BoardReader",url:"https://boardreader.com/"}},{regex:"BountiiBot",name:"Bountii Bot",category:"Search bot",url:"http://bountii.com/contact.php",producer:{name:"Bountii Inc.",url:"http://bountii.com"}},{regex:"Browsershots",name:"Browsershots",category:"Service Agent",url:"http://browsershots.org/faq",producer:{name:"Browsershots.org",url:"http://browsershots.org"}},{regex:"BUbiNG",name:"BUbiNG",category:"Crawler",url:"http://law.di.unimi.it/BUbiNG.html",producer:{name:"The Laboratory for Web Algorithmics (LAW)",url:"http://law.di.unimi.it/software.php#buging"}},{regex:"(?{var c,h,_,$;for(const C of DC.default)if(RC.userAgentParser(C.regex,a))return{name:C.name,category:C.category||"",url:C.url||"",producer:{name:((h=(c=C)===null||c===void 0?void 0:c.producer)===null||h===void 0?void 0:h.name)||"",url:(($=(_=C)===null||_===void 0?void 0:_.producer)===null||$===void 0?void 0:$.url)||""}};return null}}},to={};Object.defineProperty(to,"__esModule",{value:!0}),to.versionCompare=(a,c,h)=>{let _,$,C=0;const T={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},r=n=>(n=(""+n).replace(/[_\-+]/g,"."),n=n.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,"."),n.length?n.split("."):[-8]),l=n=>n?isNaN(n)?T[n]||-7:parseInt(n,10):0;for(a=r(a),c=r(c),$=Math.max(a.length,c.length),_=0;_<$;_++)if(a[_]!==c[_]){if(a[_]=l(a[_]),c[_]=l(c[_]),a[_]c[_]){C=1;break}}if(!h)return C;switch(h){case">":case"gt":return C>0;case">=":case"ge":return C>=0;case"<=":case"le":return C<=0;case"===":case"=":case"eq":return C===0;case"<>":case"!==":case"ne":return C!==0;case"":case"<":case"lt":return C<0;default:return null}};var Xe=J&&J.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};const FC=Xe(Dr),XC=Xe(Wr),io=Xe(ro),HC=Xe(oo),UC=Xe(sr),VC=kC,ve=se,cr=to;class WC{constructor(c){this.options={skipBotDetection:!1,versionTruncation:1},this.parse=h=>{var _,$,C,T,r,l,n,g,s,S,p,A,u,t;const i={client:this.clientParser.parse(h),os:this.operatingSystemParser.parse(h),device:this.deviceParser.parse(h),bot:this.options.skipBotDetection?null:this.botParser.parse(h)},o=(_=i.os)===null||_===void 0?void 0:_.name,e=($=i.os)===null||$===void 0?void 0:$.version,d=io.default.getOsFamily(o||"");if(!(!((C=i.device)===null||C===void 0)&&C.brand)){const m=this.vendorFragmentParser.parse(h);m&&(i.device||(i.device=this.createDeviceObject()),i.device.brand=m)}return!(!((T=i.device)===null||T===void 0)&&T.brand)&&["Apple TV","watchOS","iOS","Mac"].includes(o||"")&&(i.device||(i.device=this.createDeviceObject()),i.device.brand="Apple"),!(!((r=i.device)===null||r===void 0)&&r.type)&&d==="Android"&&ve.userAgentParser("Chrome/[\\.0-9]*",h)&&(ve.userAgentParser("Chrome/[.0-9]* (?:Mobile|eliboM)",h)?(i.device||(i.device=this.createDeviceObject()),i.device.type="smartphone"):ve.userAgentParser("Chrome/[.0-9]* (?!Mobile)",h)&&(i.device||(i.device=this.createDeviceObject()),i.device.type="tablet")),(!(!((l=i.device)===null||l===void 0)&&l.type)&&this.hasAndroidTabletFragment(h)||ve.userAgentParser("Opera Tablet",h))&&(i.device||(i.device=this.createDeviceObject()),i.device.type="tablet"),!(!((n=i.device)===null||n===void 0)&&n.type)&&this.hasAndroidMobileFragment(h)&&(i.device||(i.device=this.createDeviceObject()),i.device.type="smartphone"),!(!((g=i.device)===null||g===void 0)&&g.type)&&o==="Android"&&e!==""&&(cr.versionCompare(e,"2.0")===-1?(i.device||(i.device=this.createDeviceObject()),i.device.type="smartphone"):cr.versionCompare(e,"3.0")>=0&&cr.versionCompare(e,"4.0")===-1&&(i.device||(i.device=this.createDeviceObject()),i.device.type="tablet")),((s=i.device)===null||s===void 0?void 0:s.type)==="feature phone"&&d==="Android"&&(i.device.type="smartphone"),!(!((S=i.device)===null||S===void 0)&&S.type)&&this.isToucheEnabled(h)&&(o==="Windows RT"||o==="Windows"&&cr.versionCompare(e,"8.0")>=0)&&(i.device||(i.device=this.createDeviceObject()),i.device.type="tablet"),ve.userAgentParser("Opera TV Store",h)&&(i.device||(i.device=this.createDeviceObject()),i.device.type="television"),ve.userAgentParser("SmartTV|Tizen.+ TV .+$",h)&&(i.device||(i.device=this.createDeviceObject()),i.device.type="television"),!(!((p=i.device)===null||p===void 0)&&p.type)&&["Kylo","Espial TV Browser"].includes(((A=i.client)===null||A===void 0?void 0:A.name)||"")&&(i.device||(i.device=this.createDeviceObject()),i.device.type="television"),((u=i.device)===null||u===void 0?void 0:u.type)!=="desktop"&&ve.userAgentParser("Desktop",h)!==null&&this.hasDesktopFragment(h)&&(i.device||(i.device=this.createDeviceObject()),i.device.type="desktop"),!(!((t=i.device)===null||t===void 0)&&t.type)&&this.isDesktop(i,d)&&(i.device||(i.device=this.createDeviceObject()),i.device.type="desktop"),i},this.hasAndroidMobileFragment=h=>ve.userAgentParser("Android( [.0-9]+)?; Mobile;",h),this.hasAndroidTabletFragment=h=>ve.userAgentParser("Android( [.0-9]+)?; Tablet;",h),this.hasDesktopFragment=h=>ve.userAgentParser("Desktop (x(?:32|64)|WOW64);",h),this.isDesktop=(h,_)=>!h.os||this.usesMobileBrowser(h.client)?!1:io.default.getDesktopOsArray().includes(_),this.usesMobileBrowser=h=>{var _,$;return h?((_=h)===null||_===void 0?void 0:_.type)==="browser"&&UC.default.isMobileOnlyBrowser(($=h)===null||$===void 0?void 0:$.name):!1},this.isToucheEnabled=h=>ve.userAgentParser("Touch",h),this.createDeviceObject=()=>({type:"",brand:"",model:""}),this.options=Object.assign(Object.assign({},this.options),c),this.clientParser=new FC.default(this.options),this.deviceParser=new XC.default,this.operatingSystemParser=new io.default(this.options),this.vendorFragmentParser=new HC.default,this.botParser=new VC}}var KC=WC;const QC=_r(KC),ZC=new QC,YC=()=>{var _;const a=Ae("other"),c=navigator.userAgent,h=(_=ZC.parse(c).os)==null?void 0:_.name;return h==="Mac"?a.value="apple":h!=null&&h.includes("Windows")?a.value="windows":(h!=null&&h.includes("Linux")||h!=null&&h.includes("Debian")||h!=null&&h.includes("Ubuntu"))&&(a.value="linux"),a},zC={id:"advantage"},JC={class:"advantages"},jC={class:"code-block-container"},qC=pe({__name:"crossPlatforms",setup(a){const c=YC(),h=Ae("");c.value!=="other"?h.value=c.value:h.value="apple";function _(T){h.value=T}const $=[{type:"apple",icon:"fa-brands fa-apple",iconColor:"#8465ff",code:`brew tap pivot-studio/tap +brew install pivot-lang`},{type:"windows",icon:"fa-brands fa-windows",iconColor:"#409eff",code:`scoop bucket add pivot https://github.com/Pivot-Studio/scoop +scoop install plc`},{type:"linux",icon:"fa-brands fa-linux",iconColor:"rgb(200, 150, 50)",code:`apt install wget gnupg +wget -O - https://pivotlang.tech/apt/public.key | apt-key add - +echo "deb [arch=amd64] https://pivotlang.tech/apt/repo focal main +# deb-src [arch=amd64] https://pivotlang.tech/apt/repo focal main +deb [arch=amd64] https://pivotlang.tech/apt/repo jammy main +# deb-src [arch=amd64] https://pivotlang.tech/apt/repo jammy main">/etc/apt/sources.list.d/pl.list +apt update +apt install pivot-lang`}],C=p3(()=>{var T;return(T=$.find(r=>r.type===h.value))==null?void 0:T.code});return(T,r)=>{const l=Ct("font-awesome-icon");return ie(),le("div",zC,[r[0]||(r[0]=V("div",{class:"gradient-font title"},"Cross Platforms",-1)),r[1]||(r[1]=V("div",{class:"detail-describe"}," Install Pivot Lang compiler with only a few commands! ",-1)),V("div",JC,[(ie(),le(Ze,null,go($,n=>V("div",{class:xo({"advantage-item":!0,"selected-item":n.type===h.value}),key:n.type},[re(l,{onClick:g=>_(n.type),inverse:"",icon:n.icon,style:Lt({color:n.iconColor}),size:"10x",class:"picture"},null,8,["onClick","icon","style"])],2)),64))]),V("div",jC,[re(Al,{class:"code-block'",code:C.value},null,8,["code"])])])}}}),e3=fe(qC,[["__scopeId","data-v-dcca6d62"]]),r3=[{name:"Chronostasys",github:"https://github.com/Chronostasys",avatar:"https://avatars.githubusercontent.com/u/49905799?v=4",identity:"core member && main developer"},{name:"kamome",github:"https://github.com/RINNE-TAN",avatar:"https://avatars.githubusercontent.com/u/73805584?v=4",identity:"core member"},{name:"CjiW",github:"https://github.com/CjiW",avatar:"https://avatars.githubusercontent.com/u/64598696?v=4",identity:"core member"},{name:"\u76D0\u7117\u4E73\u9E3D\u8FD8\u8981\u7802\u9505",github:"https://github.com/1360151219",avatar:"https://avatars.githubusercontent.com/u/74706849?v=4",identity:"core member"},{name:"ZZGuo",github:"https://github.com/Super-ZZGuo",avatar:"https://avatars.githubusercontent.com/u/75672325?v=4",identity:"developer"},{name:"Junxiao Deng",github:"https://github.com/husterdjx",avatar:"https://avatars.githubusercontent.com/u/80690447?v=4",identity:"developer"},{name:"Nolan",github:"https://github.com/KuJyoAi",avatar:"https://avatars.githubusercontent.com/u/87118768?v=4",identity:"developer"},{name:"Nick Ritchie",github:"https://github.com/nick887",avatar:"https://avatars.githubusercontent.com/u/57340076?v=4",identity:"developer"},{name:"matto",github:"https://github.com/matto49",avatar:"https://avatars.githubusercontent.com/u/54560462?v=4",identity:"page design"},{name:"MoonOld",github:"https://github.com/MoonOld",avatar:"https://avatars.githubusercontent.com/u/47448870?v=4",identity:"developer"},{name:"^1e%",github:"https://github.com/Alex4210987",avatar:"https://avatars.githubusercontent.com/u/113411296?v=4",identity:"developer"},{name:"Griffin",github:"https://github.com/xieyuschen",avatar:"https://avatars.githubusercontent.com/u/52945328?v=4",identity:"developer"}],gr=[{title:"hello world",code:`use std::io; +fn main() i64 { + println!("hello world!"); + return 0; +} +`},{title:"fibonacci",code:`use std::io; +fn main() i64 { + let result = getFibonacci(10); + println!(result); + return 0; +} + +fn getFibonacci(n: i64) i64 { + let pre = 0; + let nxt = 0; + let result = 1; + for let i = 0; i < n; i = i + 1 { + result = result + pre; + pre = nxt; + nxt = result; + } + return result; +} +`},{title:"fixed point",code:`use core::panic; +pub fn main() i64 { + let g = |f, x| => { + if x == 0 { + return 1; + } + return x * f(x - 1); + }; + let fact = Y(g); + for let x = 0; x < 10; x = x + 1 { + panic::assert(fact(x) == fact_recursion(x)); + } + return 0; +} + +struct Func { + f: |Func, A| => F; +} + +impl Func { + fn call(f: Func, x: A) F { + return self.f(f, x); + } + +} + +fn Y(g: ||A| => R, A| => R) |A| => R { + return |x| => { + return |f, x| => { + return f.call(f, x); + }(Func{ + f: |f, x| => { + return g(|x| => { + return f.call(f, x); + }, x); + } + }, x); + }; +} + +fn fact_recursion(x: i64) i64 { + if x == 0 { + return 1; + } + return x * fact_recursion(x - 1); +} + + +`},{title:"find islands",code:`use core::panic; +use std::io; +pub fn main() i64 { + // count = 5 + // 1, 0, 1, 1, 1 + // 1, 1, 0, 1, 1 + // 1, 0, 0, 1, 1 + // 0, 1, 1, 0, 0 + // 1, 0, 0, 1, 1 + let mp = [[1, 0, 1, 1, 1], [1, 1, 0, 1, 1], [1, 0, 0, 1, 1], [0, 1, 1, 0, 0], [1, 0, 0, 1, 1]]; + let c = count(mp); + panic::assert(c == 5); + println!(c); + return 0; +} + +pub fn count(mp: [[i64]]) i64 { + let res = 0; + let w = 5; + let h = 5; + let dfs: |i64, i64| => void; + dfs = |i, j| => { + if i == -1 || i == h || j == -1 || j == w || mp[i][j] == 0 { + return; + } + mp[i][j] = 0; + dfs(i + 1, j); + dfs(i, j + 1); + dfs(i - 1, j); + dfs(i, j - 1); + return; + }; + for let i = 0; i < h; i = i + 1 { + for let j = 0; j < w; j = j + 1 { + if mp[i][j] == 0 { + continue; + } + res = res + 1; + dfs(i, j); + } + } + return res; +} + +`},{title:"hash table",code:`use std::cols::hashtable; +use core::panic::assert; +use core::eq::*; + +fn main() i64 { + let table = hashtable::new_hash_table(10 as u64, 1 as u64); + table.insert("hello","world"); + table.insert("bye","bye"); + assert(table.get("hello") is string); + let v = table.get("hello") as string!; + assert("world".eq(&v)); + return 0; +} + +`}];var bt={exports:{}};(function(a,c){(function(h,_){a.exports=_()})(self,()=>(()=>{var h={4567:function(T,r,l){var n=this&&this.__decorate||function(e,d,m,v){var M,x=arguments.length,f=x<3?d:v===null?v=Object.getOwnPropertyDescriptor(d,m):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(e,d,m,v);else for(var L=e.length-1;L>=0;L--)(M=e[L])&&(f=(x<3?M(f):x>3?M(d,m,f):M(d,m))||f);return x>3&&f&&Object.defineProperty(d,m,f),f},g=this&&this.__param||function(e,d){return function(m,v){d(m,v,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.AccessibilityManager=void 0;const s=l(9042),S=l(6114),p=l(9924),A=l(844),u=l(5596),t=l(4725),i=l(3656);let o=r.AccessibilityManager=class extends A.Disposable{constructor(e,d){super(),this._terminal=e,this._renderService=d,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let m=0;mthis._handleBoundaryFocus(m,0),this._bottomBoundaryFocusListener=m=>this._handleBoundaryFocus(m,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new p.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(m=>this._handleResize(m.rows))),this.register(this._terminal.onRender(m=>this._refreshRows(m.start,m.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(m=>this._handleChar(m))),this.register(this._terminal.onLineFeed(()=>this._handleChar(` +`))),this.register(this._terminal.onA11yTab(m=>this._handleTab(m))),this.register(this._terminal.onKey(m=>this._handleKey(m.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new u.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,i.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,A.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let d=0;d0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,e===` +`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=s.tooMuchOutput)),S.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityContainer.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,S.isMac&&this._liveRegion.remove()}_handleKey(e){this._clearLiveRegion(),/\p{Control}/u.test(e)||this._charsToConsume.push(e)}_refreshRows(e,d){this._liveRegionDebouncer.refresh(e,d,this._terminal.rows)}_renderRows(e,d){const m=this._terminal.buffer,v=m.lines.length.toString();for(let M=e;M<=d;M++){const x=m.translateBufferLineToString(m.ydisp+M,!0),f=(m.ydisp+M+1).toString(),L=this._rowElements[M];L&&(x.length===0?L.innerText="\xA0":L.textContent=x,L.setAttribute("aria-posinset",f),L.setAttribute("aria-setsize",v))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,d){const m=e.target,v=this._rowElements[d===0?1:this._rowElements.length-2];if(m.getAttribute("aria-posinset")===(d===0?"1":`${this._terminal.buffer.lines.length}`)||e.relatedTarget!==v)return;let M,x;if(d===0?(M=m,x=this._rowElements.pop(),this._rowContainer.removeChild(x)):(M=this._rowElements.shift(),x=m,this._rowContainer.removeChild(M)),M.removeEventListener("focus",this._topBoundaryFocusListener),x.removeEventListener("focus",this._bottomBoundaryFocusListener),d===0){const f=this._createAccessibilityTreeNode();this._rowElements.unshift(f),this._rowContainer.insertAdjacentElement("afterbegin",f)}else{const f=this._createAccessibilityTreeNode();this._rowElements.push(f),this._rowContainer.appendChild(f)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(d===0?-1:1),this._rowElements[d===0?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let d=this._rowContainer.children.length;de;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e{function l(S){return S.replace(/\r?\n/g,"\r")}function n(S,p){return p?"\x1B[200~"+S+"\x1B[201~":S}function g(S,p,A,u){S=n(S=l(S),A.decPrivateModes.bracketedPasteMode&&u.rawOptions.ignoreBracketedPasteMode!==!0),A.triggerDataEvent(S,!0),p.value=""}function s(S,p,A){const u=A.getBoundingClientRect(),t=S.clientX-u.left-10,i=S.clientY-u.top-10;p.style.width="20px",p.style.height="20px",p.style.left=`${t}px`,p.style.top=`${i}px`,p.style.zIndex="1000",p.focus()}Object.defineProperty(r,"__esModule",{value:!0}),r.rightClickHandler=r.moveTextAreaUnderMouseCursor=r.paste=r.handlePasteEvent=r.copyHandler=r.bracketTextForPaste=r.prepareTextForTerminal=void 0,r.prepareTextForTerminal=l,r.bracketTextForPaste=n,r.copyHandler=function(S,p){S.clipboardData&&S.clipboardData.setData("text/plain",p.selectionText),S.preventDefault()},r.handlePasteEvent=function(S,p,A,u){S.stopPropagation(),S.clipboardData&&g(S.clipboardData.getData("text/plain"),p,A,u)},r.paste=g,r.moveTextAreaUnderMouseCursor=s,r.rightClickHandler=function(S,p,A,u,t){s(S,p,A),t&&u.rightClickSelect(S),p.value=u.selectionText,p.select()}},7239:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorContrastCache=void 0;const n=l(1505);r.ColorContrastCache=class{constructor(){this._color=new n.TwoKeyMap,this._css=new n.TwoKeyMap}setCss(g,s,S){this._css.set(g,s,S)}getCss(g,s){return this._css.get(g,s)}setColor(g,s,S){this._color.set(g,s,S)}getColor(g,s){return this._color.get(g,s)}clear(){this._color.clear(),this._css.clear()}}},3656:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.addDisposableDomListener=void 0,r.addDisposableDomListener=function(l,n,g,s){l.addEventListener(n,g,s);let S=!1;return{dispose:()=>{S||(S=!0,l.removeEventListener(n,g,s))}}}},6465:function(T,r,l){var n=this&&this.__decorate||function(t,i,o,e){var d,m=arguments.length,v=m<3?i:e===null?e=Object.getOwnPropertyDescriptor(i,o):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(t,i,o,e);else for(var M=t.length-1;M>=0;M--)(d=t[M])&&(v=(m<3?d(v):m>3?d(i,o,v):d(i,o))||v);return m>3&&v&&Object.defineProperty(i,o,v),v},g=this&&this.__param||function(t,i){return function(o,e){i(o,e,t)}};Object.defineProperty(r,"__esModule",{value:!0}),r.Linkifier2=void 0;const s=l(3656),S=l(8460),p=l(844),A=l(2585);let u=r.Linkifier2=class extends p.Disposable{get currentLink(){return this._currentLink}constructor(t){super(),this._bufferService=t,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new S.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new S.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,p.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,p.toDisposable)(()=>{this._lastMouseEvent=void 0})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0}))}registerLinkProvider(t){return this._linkProviders.push(t),{dispose:()=>{const i=this._linkProviders.indexOf(t);i!==-1&&this._linkProviders.splice(i,1)}}}attachToDom(t,i,o){this._element=t,this._mouseService=i,this._renderService=o,this.register((0,s.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,s.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,s.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,s.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(t){if(this._lastMouseEvent=t,!this._element||!this._mouseService)return;const i=this._positionFromMouseEvent(t,this._element,this._mouseService);if(!i)return;this._isMouseOut=!1;const o=t.composedPath();for(let e=0;e{m==null||m.forEach(v=>{v.link.dispose&&v.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=t.y);let d=!1;for(const[m,v]of this._linkProviders.entries())i?!((e=this._activeProviderReplies)===null||e===void 0)&&e.get(m)&&(d=this._checkLinkProviderResult(m,t,d)):v.provideLinks(t.y,M=>{var x,f;if(this._isMouseOut)return;const L=M==null?void 0:M.map(G=>({link:G}));(x=this._activeProviderReplies)===null||x===void 0||x.set(m,L),d=this._checkLinkProviderResult(m,t,d),((f=this._activeProviderReplies)===null||f===void 0?void 0:f.size)===this._linkProviders.length&&this._removeIntersectingLinks(t.y,this._activeProviderReplies)})}_removeIntersectingLinks(t,i){const o=new Set;for(let e=0;et?this._bufferService.cols:v.link.range.end.x;for(let f=M;f<=x;f++){if(o.has(f)){d.splice(m--,1);break}o.add(f)}}}}_checkLinkProviderResult(t,i,o){var e;if(!this._activeProviderReplies)return o;const d=this._activeProviderReplies.get(t);let m=!1;for(let v=0;vthis._linkAtPosition(M.link,i));v&&(o=!0,this._handleNewLink(v))}if(this._activeProviderReplies.size===this._linkProviders.length&&!o)for(let v=0;vthis._linkAtPosition(x.link,i));if(M){o=!0,this._handleNewLink(M);break}}return o}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(t){if(!this._element||!this._mouseService||!this._currentLink)return;const i=this._positionFromMouseEvent(t,this._element,this._mouseService);i&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,i)&&this._currentLink.link.activate(t,this._currentLink.link.text)}_clearCurrentLink(t,i){this._element&&this._currentLink&&this._lastMouseEvent&&(!t||!i||this._currentLink.link.range.start.y>=t&&this._currentLink.link.range.end.y<=i)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,p.disposeArray)(this._linkCacheDisposables))}_handleNewLink(t){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;const i=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);i&&this._linkAtPosition(t.link,i)&&(this._currentLink=t,this._currentLink.state={decorations:{underline:t.link.decorations===void 0||t.link.decorations.underline,pointerCursor:t.link.decorations===void 0||t.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,t.link,this._lastMouseEvent),t.link.decorations={},Object.defineProperties(t.link.decorations,{pointerCursor:{get:()=>{var o,e;return(e=(o=this._currentLink)===null||o===void 0?void 0:o.state)===null||e===void 0?void 0:e.decorations.pointerCursor},set:o=>{var e,d;!((e=this._currentLink)===null||e===void 0)&&e.state&&this._currentLink.state.decorations.pointerCursor!==o&&(this._currentLink.state.decorations.pointerCursor=o,this._currentLink.state.isHovered&&((d=this._element)===null||d===void 0||d.classList.toggle("xterm-cursor-pointer",o)))}},underline:{get:()=>{var o,e;return(e=(o=this._currentLink)===null||o===void 0?void 0:o.state)===null||e===void 0?void 0:e.decorations.underline},set:o=>{var e,d,m;!((e=this._currentLink)===null||e===void 0)&&e.state&&((m=(d=this._currentLink)===null||d===void 0?void 0:d.state)===null||m===void 0?void 0:m.decorations.underline)!==o&&(this._currentLink.state.decorations.underline=o,this._currentLink.state.isHovered&&this._fireUnderlineEvent(t.link,o))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(o=>{if(!this._currentLink)return;const e=o.start===0?0:o.start+1+this._bufferService.buffer.ydisp,d=this._bufferService.buffer.ydisp+1+o.end;if(this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=d&&(this._clearCurrentLink(e,d),this._lastMouseEvent&&this._element)){const m=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);m&&this._askForLink(m,!1)}})))}_linkHover(t,i,o){var e;!((e=this._currentLink)===null||e===void 0)&&e.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(i,!0),this._currentLink.state.decorations.pointerCursor&&t.classList.add("xterm-cursor-pointer")),i.hover&&i.hover(o,i.text)}_fireUnderlineEvent(t,i){const o=t.range,e=this._bufferService.buffer.ydisp,d=this._createLinkUnderlineEvent(o.start.x-1,o.start.y-e-1,o.end.x,o.end.y-e-1,void 0);(i?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(d)}_linkLeave(t,i,o){var e;!((e=this._currentLink)===null||e===void 0)&&e.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(i,!1),this._currentLink.state.decorations.pointerCursor&&t.classList.remove("xterm-cursor-pointer")),i.leave&&i.leave(o,i.text)}_linkAtPosition(t,i){const o=t.range.start.y*this._bufferService.cols+t.range.start.x,e=t.range.end.y*this._bufferService.cols+t.range.end.x,d=i.y*this._bufferService.cols+i.x;return o<=d&&d<=e}_positionFromMouseEvent(t,i,o){const e=o.getCoords(t,i,this._bufferService.cols,this._bufferService.rows);if(e)return{x:e[0],y:e[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(t,i,o,e,d){return{x1:t,y1:i,x2:o,y2:e,cols:this._bufferService.cols,fg:d}}};r.Linkifier2=u=n([g(0,A.IBufferService)],u)},9042:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.tooMuchOutput=r.promptLabel=void 0,r.promptLabel="Terminal input",r.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(T,r,l){var n=this&&this.__decorate||function(u,t,i,o){var e,d=arguments.length,m=d<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,t,i,o);else for(var v=u.length-1;v>=0;v--)(e=u[v])&&(m=(d<3?e(m):d>3?e(t,i,m):e(t,i))||m);return d>3&&m&&Object.defineProperty(t,i,m),m},g=this&&this.__param||function(u,t){return function(i,o){t(i,o,u)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkProvider=void 0;const s=l(511),S=l(2585);let p=r.OscLinkProvider=class{constructor(u,t,i){this._bufferService=u,this._optionsService=t,this._oscLinkService=i}provideLinks(u,t){var i;const o=this._bufferService.buffer.lines.get(u-1);if(!o)return void t(void 0);const e=[],d=this._optionsService.rawOptions.linkHandler,m=new s.CellData,v=o.getTrimmedLength();let M=-1,x=-1,f=!1;for(let L=0;Ld?d.activate(D,F,E):A(0,F),hover:(D,F)=>{var U;return(U=d==null?void 0:d.hover)===null||U===void 0?void 0:U.call(d,D,F,E)},leave:(D,F)=>{var U;return(U=d==null?void 0:d.leave)===null||U===void 0?void 0:U.call(d,D,F,E)}})}f=!1,m.hasExtendedAttrs()&&m.extended.urlId?(x=L,M=m.extended.urlId):(x=-1,M=-1)}}t(e)}};function A(u,t){if(confirm(`Do you want to navigate to ${t}? + +WARNING: This link could potentially be dangerous`)){const i=window.open();if(i){try{i.opener=null}catch{}i.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}}r.OscLinkProvider=p=n([g(0,S.IBufferService),g(1,S.IOptionsService),g(2,S.IOscLinkService)],p)},6193:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.RenderDebouncer=void 0,r.RenderDebouncer=class{constructor(l,n){this._parentWindow=l,this._renderCallback=n,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._parentWindow.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(l){return this._refreshCallbacks.push(l),this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh())),this._animationFrame}refresh(l,n,g){this._rowCount=g,l=l!==void 0?l:0,n=n!==void 0?n:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,l):l,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,n):n,this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return void this._runRefreshCallbacks();const l=Math.max(this._rowStart,0),n=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(l,n),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const l of this._refreshCallbacks)l(0);this._refreshCallbacks=[]}}},5596:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ScreenDprMonitor=void 0;const n=l(844);class g extends n.Disposable{constructor(S){super(),this._parentWindow=S,this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this.register((0,n.toDisposable)(()=>{this.clearListener()}))}setListener(S){this._listener&&this.clearListener(),this._listener=S,this._outerListener=()=>{this._listener&&(this._listener(this._parentWindow.devicePixelRatio,this._currentDevicePixelRatio),this._updateDpr())},this._updateDpr()}_updateDpr(){var S;this._outerListener&&((S=this._resolutionMediaMatchList)===null||S===void 0||S.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)}}r.ScreenDprMonitor=g},3236:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Terminal=void 0;const n=l(3614),g=l(3656),s=l(6465),S=l(9042),p=l(3730),A=l(1680),u=l(3107),t=l(5744),i=l(2950),o=l(1296),e=l(428),d=l(4269),m=l(5114),v=l(8934),M=l(3230),x=l(9312),f=l(4725),L=l(6731),G=l(8055),E=l(8969),w=l(8460),D=l(844),F=l(6114),U=l(8437),H=l(2584),P=l(7399),y=l(5941),B=l(9074),O=l(2585),X=l(5435),W=l(4567),Z=typeof window<"u"?window.document:null;class Q extends E.CoreTerminal{get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}constructor(b={}){super(b),this.browser=F,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this.register(new D.MutableDisposable),this._onCursorMove=this.register(new w.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new w.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new w.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new w.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new w.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new w.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new w.EventEmitter),this._onBlur=this.register(new w.EventEmitter),this._onA11yCharEmitter=this.register(new w.EventEmitter),this._onA11yTabEmitter=this.register(new w.EventEmitter),this._onWillOpen=this.register(new w.EventEmitter),this._setup(),this.linkifier2=this.register(this._instantiationService.createInstance(s.Linkifier2)),this.linkifier2.registerLinkProvider(this._instantiationService.createInstance(p.OscLinkProvider)),this._decorationService=this._instantiationService.createInstance(B.DecorationService),this._instantiationService.setService(O.IDecorationService,this._decorationService),this.register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this.register(this._inputHandler.onRequestRefreshRows((N,k)=>this.refresh(N,k))),this.register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this.register(this._inputHandler.onRequestReset(()=>this.reset())),this.register(this._inputHandler.onRequestWindowsOptionsReport(N=>this._reportWindowsOptions(N))),this.register(this._inputHandler.onColor(N=>this._handleColorEvent(N))),this.register((0,w.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,w.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,w.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,w.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize(N=>this._afterResize(N.cols,N.rows))),this.register((0,D.toDisposable)(()=>{var N,k;this._customKeyEventHandler=void 0,(k=(N=this.element)===null||N===void 0?void 0:N.parentNode)===null||k===void 0||k.removeChild(this.element)}))}_handleColorEvent(b){if(this._themeService)for(const N of b){let k,R="";switch(N.index){case 256:k="foreground",R="10";break;case 257:k="background",R="11";break;case 258:k="cursor",R="12";break;default:k="ansi",R="4;"+N.index}switch(N.type){case 0:const Y=G.color.toColorRGB(k==="ansi"?this._themeService.colors.ansi[N.index]:this._themeService.colors[k]);this.coreService.triggerDataEvent(`${H.C0.ESC}]${R};${(0,y.toRgbString)(Y)}${H.C1_ESCAPED.ST}`);break;case 1:if(k==="ansi")this._themeService.modifyColors(K=>K.ansi[N.index]=G.rgba.toColor(...N.color));else{const K=k;this._themeService.modifyColors(q=>q[K]=G.rgba.toColor(...N.color))}break;case 2:this._themeService.restoreColor(N.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(b){b?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(W.AccessibilityManager,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(b){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(H.C0.ESC+"[I"),this.updateCursorStyle(b),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var b;return(b=this.textarea)===null||b===void 0?void 0:b.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(H.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;const b=this.buffer.ybase+this.buffer.y,N=this.buffer.lines.get(b);if(!N)return;const k=Math.min(this.buffer.x,this.cols-1),R=this._renderService.dimensions.css.cell.height,Y=N.getWidth(k),K=this._renderService.dimensions.css.cell.width*Y,q=this.buffer.y*this._renderService.dimensions.css.cell.height,de=k*this._renderService.dimensions.css.cell.width;this.textarea.style.left=de+"px",this.textarea.style.top=q+"px",this.textarea.style.width=K+"px",this.textarea.style.height=R+"px",this.textarea.style.lineHeight=R+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,g.addDisposableDomListener)(this.element,"copy",N=>{this.hasSelection()&&(0,n.copyHandler)(N,this._selectionService)}));const b=N=>(0,n.handlePasteEvent)(N,this.textarea,this.coreService,this.optionsService);this.register((0,g.addDisposableDomListener)(this.textarea,"paste",b)),this.register((0,g.addDisposableDomListener)(this.element,"paste",b)),F.isFirefox?this.register((0,g.addDisposableDomListener)(this.element,"mousedown",N=>{N.button===2&&(0,n.rightClickHandler)(N,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this.register((0,g.addDisposableDomListener)(this.element,"contextmenu",N=>{(0,n.rightClickHandler)(N,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),F.isLinux&&this.register((0,g.addDisposableDomListener)(this.element,"auxclick",N=>{N.button===1&&(0,n.moveTextAreaUnderMouseCursor)(N,this.textarea,this.screenElement)}))}_bindKeys(){this.register((0,g.addDisposableDomListener)(this.textarea,"keyup",b=>this._keyUp(b),!0)),this.register((0,g.addDisposableDomListener)(this.textarea,"keydown",b=>this._keyDown(b),!0)),this.register((0,g.addDisposableDomListener)(this.textarea,"keypress",b=>this._keyPress(b),!0)),this.register((0,g.addDisposableDomListener)(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this.register((0,g.addDisposableDomListener)(this.textarea,"compositionupdate",b=>this._compositionHelper.compositionupdate(b))),this.register((0,g.addDisposableDomListener)(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this.register((0,g.addDisposableDomListener)(this.textarea,"input",b=>this._inputEvent(b),!0)),this.register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(b){var N;if(!b)throw new Error("Terminal requires a parent element.");b.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=b.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),b.appendChild(this.element);const k=Z.createDocumentFragment();this._viewportElement=Z.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),k.appendChild(this._viewportElement),this._viewportScrollArea=Z.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=Z.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=Z.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),k.appendChild(this.screenElement),this.textarea=Z.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",S.promptLabel),F.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this._instantiationService.createInstance(m.CoreBrowserService,this.textarea,(N=this._document.defaultView)!==null&&N!==void 0?N:window),this._instantiationService.setService(f.ICoreBrowserService,this._coreBrowserService),this.register((0,g.addDisposableDomListener)(this.textarea,"focus",R=>this._handleTextAreaFocus(R))),this.register((0,g.addDisposableDomListener)(this.textarea,"blur",()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(e.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(f.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(L.ThemeService),this._instantiationService.setService(f.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(d.CharacterJoinerService),this._instantiationService.setService(f.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(M.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(f.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(R=>this._onRender.fire(R))),this.onResize(R=>this._renderService.resize(R.cols,R.rows)),this._compositionView=Z.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(i.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(k);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._mouseService=this._instantiationService.createInstance(v.MouseService),this._instantiationService.setService(f.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(A.Viewport,this._viewportElement,this._viewportScrollArea),this.viewport.onRequestScrollLines(R=>this.scrollLines(R.amount,R.suppressScrollEvent,1)),this.register(this._inputHandler.onRequestSyncScrollBar(()=>this.viewport.syncScrollArea())),this.register(this.viewport),this.register(this.onCursorMove(()=>{this._renderService.handleCursorMove(),this._syncTextArea()})),this.register(this.onResize(()=>this._renderService.handleResize(this.cols,this.rows))),this.register(this.onBlur(()=>this._renderService.handleBlur())),this.register(this.onFocus(()=>this._renderService.handleFocus())),this.register(this._renderService.onDimensionsChange(()=>this.viewport.syncScrollArea())),this._selectionService=this.register(this._instantiationService.createInstance(x.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(f.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(R=>this.scrollLines(R.amount,R.suppressScrollEvent))),this.register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this.register(this._selectionService.onRequestRedraw(R=>this._renderService.handleSelectionChanged(R.start,R.end,R.columnSelectMode))),this.register(this._selectionService.onLinuxMouseSelection(R=>{this.textarea.value=R,this.textarea.focus(),this.textarea.select()})),this.register(this._onScroll.event(R=>{this.viewport.syncScrollArea(),this._selectionService.refresh()})),this.register((0,g.addDisposableDomListener)(this._viewportElement,"scroll",()=>this._selectionService.refresh())),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(u.BufferDecorationRenderer,this.screenElement)),this.register((0,g.addDisposableDomListener)(this.element,"mousedown",R=>this._selectionService.handleMouseDown(R))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(W.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",R=>this._handleScreenReaderModeOptionChange(R))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(t.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",R=>{!this._overviewRulerRenderer&&R&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(t.OverviewRulerRenderer,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(o.DomRenderer,this.element,this.screenElement,this._viewportElement,this.linkifier2)}bindMouse(){const b=this,N=this.element;function k(K){const q=b._mouseService.getMouseReportCoords(K,b.screenElement);if(!q)return!1;let de,xe;switch(K.overrideType||K.type){case"mousemove":xe=32,K.buttons===void 0?(de=3,K.button!==void 0&&(de=K.button<3?K.button:3)):de=1&K.buttons?0:4&K.buttons?1:2&K.buttons?2:3;break;case"mouseup":xe=0,de=K.button<3?K.button:3;break;case"mousedown":xe=1,de=K.button<3?K.button:3;break;case"wheel":if(b.viewport.getLinesScrolled(K)===0)return!1;xe=K.deltaY<0?0:1,de=4;break;default:return!1}return!(xe===void 0||de===void 0||de>4)&&b.coreMouseService.triggerMouseEvent({col:q.col,row:q.row,x:q.x,y:q.y,button:de,action:xe,ctrl:K.ctrlKey,alt:K.altKey,shift:K.shiftKey})}const R={mouseup:null,wheel:null,mousedrag:null,mousemove:null},Y={mouseup:K=>(k(K),K.buttons||(this._document.removeEventListener("mouseup",R.mouseup),R.mousedrag&&this._document.removeEventListener("mousemove",R.mousedrag)),this.cancel(K)),wheel:K=>(k(K),this.cancel(K,!0)),mousedrag:K=>{K.buttons&&k(K)},mousemove:K=>{K.buttons||k(K)}};this.register(this.coreMouseService.onProtocolChange(K=>{K?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(K)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&K?R.mousemove||(N.addEventListener("mousemove",Y.mousemove),R.mousemove=Y.mousemove):(N.removeEventListener("mousemove",R.mousemove),R.mousemove=null),16&K?R.wheel||(N.addEventListener("wheel",Y.wheel,{passive:!1}),R.wheel=Y.wheel):(N.removeEventListener("wheel",R.wheel),R.wheel=null),2&K?R.mouseup||(N.addEventListener("mouseup",Y.mouseup),R.mouseup=Y.mouseup):(this._document.removeEventListener("mouseup",R.mouseup),N.removeEventListener("mouseup",R.mouseup),R.mouseup=null),4&K?R.mousedrag||(R.mousedrag=Y.mousedrag):(this._document.removeEventListener("mousemove",R.mousedrag),R.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,g.addDisposableDomListener)(N,"mousedown",K=>{if(K.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(K))return k(K),R.mouseup&&this._document.addEventListener("mouseup",R.mouseup),R.mousedrag&&this._document.addEventListener("mousemove",R.mousedrag),this.cancel(K)})),this.register((0,g.addDisposableDomListener)(N,"wheel",K=>{if(!R.wheel){if(!this.buffer.hasScrollback){const q=this.viewport.getLinesScrolled(K);if(q===0)return;const de=H.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(K.deltaY<0?"A":"B");let xe="";for(let Oe=0;Oe{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(K),this.cancel(K)},{passive:!0})),this.register((0,g.addDisposableDomListener)(N,"touchmove",K=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(K)?void 0:this.cancel(K)},{passive:!1}))}refresh(b,N){var k;(k=this._renderService)===null||k===void 0||k.refreshRows(b,N)}updateCursorStyle(b){var N;!((N=this._selectionService)===null||N===void 0)&&N.shouldColumnSelect(b)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(b,N,k=0){var R;k===1?(super.scrollLines(b,N,k),this.refresh(0,this.rows-1)):(R=this.viewport)===null||R===void 0||R.scrollLines(b)}paste(b){(0,n.paste)(b,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(b){this._customKeyEventHandler=b}registerLinkProvider(b){return this.linkifier2.registerLinkProvider(b)}registerCharacterJoiner(b){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");const N=this._characterJoinerService.register(b);return this.refresh(0,this.rows-1),N}deregisterCharacterJoiner(b){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(b)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(b){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+b)}registerDecoration(b){return this._decorationService.registerDecoration(b)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(b,N,k){this._selectionService.setSelection(b,N,k)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var b;(b=this._selectionService)===null||b===void 0||b.clearSelection()}selectAll(){var b;(b=this._selectionService)===null||b===void 0||b.selectAll()}selectLines(b,N){var k;(k=this._selectionService)===null||k===void 0||k.selectLines(b,N)}_keyDown(b){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(b)===!1)return!1;const N=this.browser.isMac&&this.options.macOptionIsMeta&&b.altKey;if(!N&&!this._compositionHelper.keydown(b))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;N||b.key!=="Dead"&&b.key!=="AltGraph"||(this._unprocessedDeadKey=!0);const k=(0,P.evaluateKeyboardEvent)(b,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(b),k.type===3||k.type===2){const R=this.rows-1;return this.scrollLines(k.type===2?-R:R),this.cancel(b,!0)}return k.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,b)||(k.cancel&&this.cancel(b,!0),!k.key||!!(b.key&&!b.ctrlKey&&!b.altKey&&!b.metaKey&&b.key.length===1&&b.key.charCodeAt(0)>=65&&b.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(k.key!==H.C0.ETX&&k.key!==H.C0.CR||(this.textarea.value=""),this._onKey.fire({key:k.key,domEvent:b}),this._showCursor(),this.coreService.triggerDataEvent(k.key,!0),!this.optionsService.rawOptions.screenReaderMode||b.altKey||b.ctrlKey?this.cancel(b,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(b,N){const k=b.isMac&&!this.options.macOptionIsMeta&&N.altKey&&!N.ctrlKey&&!N.metaKey||b.isWindows&&N.altKey&&N.ctrlKey&&!N.metaKey||b.isWindows&&N.getModifierState("AltGraph");return N.type==="keypress"?k:k&&(!N.keyCode||N.keyCode>47)}_keyUp(b){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(b)===!1||(function(N){return N.keyCode===16||N.keyCode===17||N.keyCode===18}(b)||this.focus(),this.updateCursorStyle(b),this._keyPressHandled=!1)}_keyPress(b){let N;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(b)===!1)return!1;if(this.cancel(b),b.charCode)N=b.charCode;else if(b.which===null||b.which===void 0)N=b.keyCode;else{if(b.which===0||b.charCode===0)return!1;N=b.which}return!(!N||(b.altKey||b.ctrlKey||b.metaKey)&&!this._isThirdLevelShift(this.browser,b)||(N=String.fromCharCode(N),this._onKey.fire({key:N,domEvent:b}),this._showCursor(),this.coreService.triggerDataEvent(N,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(b){if(b.data&&b.inputType==="insertText"&&(!b.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;const N=b.data;return this.coreService.triggerDataEvent(N,!0),this.cancel(b),!0}return!1}resize(b,N){b!==this.cols||N!==this.rows?super.resize(b,N):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(b,N){var k,R;(k=this._charSizeService)===null||k===void 0||k.measure(),(R=this.viewport)===null||R===void 0||R.syncScrollArea(!0)}clear(){var b;if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let N=1;N{Object.defineProperty(r,"__esModule",{value:!0}),r.TimeBasedDebouncer=void 0,r.TimeBasedDebouncer=class{constructor(l,n=1e3){this._renderCallback=l,this._debounceThresholdMS=n,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(l,n,g){this._rowCount=g,l=l!==void 0?l:0,n=n!==void 0?n:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,l):l,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,n):n;const s=Date.now();if(s-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=s,this._innerRefresh();else if(!this._additionalRefreshRequested){const S=s-this._lastRefreshMs,p=this._debounceThresholdMS-S;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},p)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;const l=Math.max(this._rowStart,0),n=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(l,n)}}},1680:function(T,r,l){var n=this&&this.__decorate||function(i,o,e,d){var m,v=arguments.length,M=v<3?o:d===null?d=Object.getOwnPropertyDescriptor(o,e):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(i,o,e,d);else for(var x=i.length-1;x>=0;x--)(m=i[x])&&(M=(v<3?m(M):v>3?m(o,e,M):m(o,e))||M);return v>3&&M&&Object.defineProperty(o,e,M),M},g=this&&this.__param||function(i,o){return function(e,d){o(e,d,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.Viewport=void 0;const s=l(3656),S=l(4725),p=l(8460),A=l(844),u=l(2585);let t=r.Viewport=class extends A.Disposable{constructor(i,o,e,d,m,v,M,x){super(),this._viewportElement=i,this._scrollArea=o,this._bufferService=e,this._optionsService=d,this._charSizeService=m,this._renderService=v,this._coreBrowserService=M,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this._onRequestScrollLines=this.register(new p.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,s.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(f=>this._activeBuffer=f.activeBuffer)),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange(f=>this._renderDimensions=f)),this._handleThemeChange(x.colors),this.register(x.onChangeColors(f=>this._handleThemeChange(f))),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.syncScrollArea())),setTimeout(()=>this.syncScrollArea())}_handleThemeChange(i){this._viewportElement.style.backgroundColor=i.background.css}reset(){this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._coreBrowserService.window.requestAnimationFrame(()=>this.syncScrollArea())}_refresh(i){if(i)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderService.dimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;const o=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.css.canvas.height);this._lastRecordedBufferHeight!==o&&(this._lastRecordedBufferHeight=o,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const i=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==i&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=i),this._refreshAnimationFrame=null}syncScrollArea(i=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(i);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(i)}_handleScroll(i){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._onRequestScrollLines.fire({amount:0,suppressScrollEvent:!0});const o=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._onRequestScrollLines.fire({amount:o,suppressScrollEvent:!0})}_smoothScroll(){if(this._isDisposed||this._smoothScrollState.origin===-1||this._smoothScrollState.target===-1)return;const i=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(i*(this._smoothScrollState.target-this._smoothScrollState.origin)),i<1?this._coreBrowserService.window.requestAnimationFrame(()=>this._smoothScroll()):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(i,o){const e=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(o<0&&this._viewportElement.scrollTop!==0||o>0&&e0&&(d=E),m=""}}return{bufferElements:v,cursorElement:d}}getLinesScrolled(i){if(i.deltaY===0||i.shiftKey)return 0;let o=this._applyScrollModifier(i.deltaY,i);return i.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(o/=this._currentRowHeight+0,this._wheelPartialScroll+=o,o=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):i.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(o*=this._bufferService.rows),o}_applyScrollModifier(i,o){const e=this._optionsService.rawOptions.fastScrollModifier;return e==="alt"&&o.altKey||e==="ctrl"&&o.ctrlKey||e==="shift"&&o.shiftKey?i*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:i*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(i){this._lastTouchY=i.touches[0].pageY}handleTouchMove(i){const o=this._lastTouchY-i.touches[0].pageY;return this._lastTouchY=i.touches[0].pageY,o!==0&&(this._viewportElement.scrollTop+=o,this._bubbleScroll(i,o))}};r.Viewport=t=n([g(2,u.IBufferService),g(3,u.IOptionsService),g(4,S.ICharSizeService),g(5,S.IRenderService),g(6,S.ICoreBrowserService),g(7,S.IThemeService)],t)},3107:function(T,r,l){var n=this&&this.__decorate||function(t,i,o,e){var d,m=arguments.length,v=m<3?i:e===null?e=Object.getOwnPropertyDescriptor(i,o):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(t,i,o,e);else for(var M=t.length-1;M>=0;M--)(d=t[M])&&(v=(m<3?d(v):m>3?d(i,o,v):d(i,o))||v);return m>3&&v&&Object.defineProperty(i,o,v),v},g=this&&this.__param||function(t,i){return function(o,e){i(o,e,t)}};Object.defineProperty(r,"__esModule",{value:!0}),r.BufferDecorationRenderer=void 0;const s=l(3656),S=l(4725),p=l(844),A=l(2585);let u=r.BufferDecorationRenderer=class extends p.Disposable{constructor(t,i,o,e){super(),this._screenElement=t,this._bufferService=i,this._decorationService=o,this._renderService=e,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange(()=>this._doRefreshDecorations())),this.register(this._renderService.onDimensionsChange(()=>{this._dimensionsChanged=!0,this._queueRefresh()})),this.register((0,s.addDisposableDomListener)(window,"resize",()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt})),this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh())),this.register(this._decorationService.onDecorationRemoved(d=>this._removeDecoration(d))),this.register((0,p.toDisposable)(()=>{this._container.remove(),this._decorationElements.clear()}))}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this._doRefreshDecorations(),this._animationFrame=void 0}))}_doRefreshDecorations(){for(const t of this._decorationService.decorations)this._renderDecoration(t);this._dimensionsChanged=!1}_renderDecoration(t){this._refreshStyle(t),this._dimensionsChanged&&this._refreshXPosition(t)}_createElement(t){var i,o;const e=document.createElement("div");e.classList.add("xterm-decoration"),e.classList.toggle("xterm-decoration-top-layer",((i=t==null?void 0:t.options)===null||i===void 0?void 0:i.layer)==="top"),e.style.width=`${Math.round((t.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,e.style.height=(t.options.height||1)*this._renderService.dimensions.css.cell.height+"px",e.style.top=(t.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",e.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;const d=(o=t.options.x)!==null&&o!==void 0?o:0;return d&&d>this._bufferService.cols&&(e.style.display="none"),this._refreshXPosition(t,e),e}_refreshStyle(t){const i=t.marker.line-this._bufferService.buffers.active.ydisp;if(i<0||i>=this._bufferService.rows)t.element&&(t.element.style.display="none",t.onRenderEmitter.fire(t.element));else{let o=this._decorationElements.get(t);o||(o=this._createElement(t),t.element=o,this._decorationElements.set(t,o),this._container.appendChild(o),t.onDispose(()=>{this._decorationElements.delete(t),o.remove()})),o.style.top=i*this._renderService.dimensions.css.cell.height+"px",o.style.display=this._altBufferIsActive?"none":"block",t.onRenderEmitter.fire(o)}}_refreshXPosition(t,i=t.element){var o;if(!i)return;const e=(o=t.options.x)!==null&&o!==void 0?o:0;(t.options.anchor||"left")==="right"?i.style.right=e?e*this._renderService.dimensions.css.cell.width+"px":"":i.style.left=e?e*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(t){var i;(i=this._decorationElements.get(t))===null||i===void 0||i.remove(),this._decorationElements.delete(t),t.dispose()}};r.BufferDecorationRenderer=u=n([g(1,A.IBufferService),g(2,A.IDecorationService),g(3,S.IRenderService)],u)},5871:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorZoneStore=void 0,r.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(l){if(l.options.overviewRulerOptions){for(const n of this._zones)if(n.color===l.options.overviewRulerOptions.color&&n.position===l.options.overviewRulerOptions.position){if(this._lineIntersectsZone(n,l.marker.line))return;if(this._lineAdjacentToZone(n,l.marker.line,l.options.overviewRulerOptions.position))return void this._addLineToZone(n,l.marker.line)}if(this._zonePoolIndex=l.startBufferLine&&n<=l.endBufferLine}_lineAdjacentToZone(l,n,g){return n>=l.startBufferLine-this._linePadding[g||"full"]&&n<=l.endBufferLine+this._linePadding[g||"full"]}_addLineToZone(l,n){l.startBufferLine=Math.min(l.startBufferLine,n),l.endBufferLine=Math.max(l.endBufferLine,n)}}},5744:function(T,r,l){var n=this&&this.__decorate||function(d,m,v,M){var x,f=arguments.length,L=f<3?m:M===null?M=Object.getOwnPropertyDescriptor(m,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(d,m,v,M);else for(var G=d.length-1;G>=0;G--)(x=d[G])&&(L=(f<3?x(L):f>3?x(m,v,L):x(m,v))||L);return f>3&&L&&Object.defineProperty(m,v,L),L},g=this&&this.__param||function(d,m){return function(v,M){m(v,M,d)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OverviewRulerRenderer=void 0;const s=l(5871),S=l(3656),p=l(4725),A=l(844),u=l(2585),t={full:0,left:0,center:0,right:0},i={full:0,left:0,center:0,right:0},o={full:0,left:0,center:0,right:0};let e=r.OverviewRulerRenderer=class extends A.Disposable{get _width(){return this._optionsService.options.overviewRulerWidth||0}constructor(d,m,v,M,x,f,L){var G;super(),this._viewportElement=d,this._screenElement=m,this._bufferService=v,this._decorationService=M,this._renderService=x,this._optionsService=f,this._coreBrowseService=L,this._colorZoneStore=new s.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),(G=this._viewportElement.parentElement)===null||G===void 0||G.insertBefore(this._canvas,this._viewportElement);const E=this._canvas.getContext("2d");if(!E)throw new Error("Ctx cannot be null");this._ctx=E,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,A.toDisposable)(()=>{var w;(w=this._canvas)===null||w===void 0||w.remove()}))}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this.register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0)))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())}))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender(()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",()=>this._queueRefresh(!0))),this.register((0,S.addDisposableDomListener)(this._coreBrowseService.window,"resize",()=>this._queueRefresh(!0))),this._queueRefresh(!0)}_refreshDrawConstants(){const d=Math.floor(this._canvas.width/3),m=Math.ceil(this._canvas.width/3);i.full=this._canvas.width,i.left=d,i.center=m,i.right=d,this._refreshDrawHeightConstants(),o.full=0,o.left=0,o.center=i.left,o.right=i.left+i.center}_refreshDrawHeightConstants(){t.full=Math.round(2*this._coreBrowseService.dpr);const d=this._canvas.height/this._bufferService.buffer.lines.length,m=Math.round(Math.max(Math.min(d,12),6)*this._coreBrowseService.dpr);t.left=m,t.center=m,t.right=m}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*t.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*t.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*t.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*t.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowseService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowseService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(const m of this._decorationService.decorations)this._colorZoneStore.addDecoration(m);this._ctx.lineWidth=1;const d=this._colorZoneStore.zones;for(const m of d)m.position!=="full"&&this._renderColorZone(m);for(const m of d)m.position==="full"&&this._renderColorZone(m);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(d){this._ctx.fillStyle=d.color,this._ctx.fillRect(o[d.position||"full"],Math.round((this._canvas.height-1)*(d.startBufferLine/this._bufferService.buffers.active.lines.length)-t[d.position||"full"]/2),i[d.position||"full"],Math.round((this._canvas.height-1)*((d.endBufferLine-d.startBufferLine)/this._bufferService.buffers.active.lines.length)+t[d.position||"full"]))}_queueRefresh(d,m){this._shouldUpdateDimensions=d||this._shouldUpdateDimensions,this._shouldUpdateAnchor=m||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowseService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}};r.OverviewRulerRenderer=e=n([g(2,u.IBufferService),g(3,u.IDecorationService),g(4,p.IRenderService),g(5,u.IOptionsService),g(6,p.ICoreBrowserService)],e)},2950:function(T,r,l){var n=this&&this.__decorate||function(u,t,i,o){var e,d=arguments.length,m=d<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,i):o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(u,t,i,o);else for(var v=u.length-1;v>=0;v--)(e=u[v])&&(m=(d<3?e(m):d>3?e(t,i,m):e(t,i))||m);return d>3&&m&&Object.defineProperty(t,i,m),m},g=this&&this.__param||function(u,t){return function(i,o){t(i,o,u)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CompositionHelper=void 0;const s=l(4725),S=l(2585),p=l(2584);let A=r.CompositionHelper=class{get isComposing(){return this._isComposing}constructor(u,t,i,o,e,d){this._textarea=u,this._compositionView=t,this._bufferService=i,this._optionsService=o,this._coreService=e,this._renderService=d,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(u){this._compositionView.textContent=u.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(u){if(this._isComposing||this._isSendingComposition){if(u.keyCode===229||u.keyCode===16||u.keyCode===17||u.keyCode===18)return!1;this._finalizeComposition(!1)}return u.keyCode!==229||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(u){if(this._compositionView.classList.remove("active"),this._isComposing=!1,u){const t={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{if(this._isSendingComposition){let i;this._isSendingComposition=!1,t.start+=this._dataAlreadySent.length,i=this._isComposing?this._textarea.value.substring(t.start,t.end):this._textarea.value.substring(t.start),i.length>0&&this._coreService.triggerDataEvent(i,!0)}},0)}else{this._isSendingComposition=!1;const t=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(t,!0)}}_handleAnyTextareaChanges(){const u=this._textarea.value;setTimeout(()=>{if(!this._isComposing){const t=this._textarea.value,i=t.replace(u,"");this._dataAlreadySent=i,t.length>u.length?this._coreService.triggerDataEvent(i,!0):t.lengththis.updateCompositionElements(!0),0)}}};r.CompositionHelper=A=n([g(2,S.IBufferService),g(3,S.IOptionsService),g(4,S.ICoreService),g(5,s.IRenderService)],A)},9806:(T,r)=>{function l(n,g,s){const S=s.getBoundingClientRect(),p=n.getComputedStyle(s),A=parseInt(p.getPropertyValue("padding-left")),u=parseInt(p.getPropertyValue("padding-top"));return[g.clientX-S.left-A,g.clientY-S.top-u]}Object.defineProperty(r,"__esModule",{value:!0}),r.getCoords=r.getCoordsRelativeToElement=void 0,r.getCoordsRelativeToElement=l,r.getCoords=function(n,g,s,S,p,A,u,t,i){if(!A)return;const o=l(n,g,s);return o?(o[0]=Math.ceil((o[0]+(i?u/2:0))/u),o[1]=Math.ceil(o[1]/t),o[0]=Math.min(Math.max(o[0],1),S+(i?1:0)),o[1]=Math.min(Math.max(o[1],1),p),o):void 0}},9504:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.moveToCellSequence=void 0;const n=l(2584);function g(t,i,o,e){const d=t-s(t,o),m=i-s(i,o),v=Math.abs(d-m)-function(M,x,f){let L=0;const G=M-s(M,f),E=x-s(x,f);for(let w=0;w=0&&ti?"A":"B"}function p(t,i,o,e,d,m){let v=t,M=i,x="";for(;v!==o||M!==e;)v+=d?1:-1,d&&v>m.cols-1?(x+=m.buffer.translateBufferLineToString(M,!1,t,v),v=0,t=0,M++):!d&&v<0&&(x+=m.buffer.translateBufferLineToString(M,!1,0,t+1),v=m.cols-1,t=v,M--);return x+m.buffer.translateBufferLineToString(M,!1,t,v)}function A(t,i){const o=i?"O":"[";return n.C0.ESC+o+t}function u(t,i){t=Math.floor(t);let o="";for(let e=0;e0?G-s(G,E):f;const F=G,U=function(H,P,y,B,O,X){let W;return W=g(y,B,O,X).length>0?B-s(B,O):P,H=y&&Wt?"D":"C",u(Math.abs(d-t),A(v,e));v=m>i?"D":"C";const M=Math.abs(m-i);return u(function(x,f){return f.cols-x}(m>i?t:d,o)+(M-1)*o.cols+1+((m>i?d:t)-1),A(v,e))}},1296:function(T,r,l){var n=this&&this.__decorate||function(E,w,D,F){var U,H=arguments.length,P=H<3?w:F===null?F=Object.getOwnPropertyDescriptor(w,D):F;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(E,w,D,F);else for(var y=E.length-1;y>=0;y--)(U=E[y])&&(P=(H<3?U(P):H>3?U(w,D,P):U(w,D))||P);return H>3&&P&&Object.defineProperty(w,D,P),P},g=this&&this.__param||function(E,w){return function(D,F){w(D,F,E)}};Object.defineProperty(r,"__esModule",{value:!0}),r.DomRenderer=void 0;const s=l(3787),S=l(2550),p=l(2223),A=l(6171),u=l(4725),t=l(8055),i=l(8460),o=l(844),e=l(2585),d="xterm-dom-renderer-owner-",m="xterm-rows",v="xterm-fg-",M="xterm-bg-",x="xterm-focus",f="xterm-selection";let L=1,G=r.DomRenderer=class extends o.Disposable{constructor(E,w,D,F,U,H,P,y,B,O){super(),this._element=E,this._screenElement=w,this._viewportElement=D,this._linkifier2=F,this._charSizeService=H,this._optionsService=P,this._bufferService=y,this._coreBrowserService=B,this._themeService=O,this._terminalClass=L++,this._rowElements=[],this.onRequestRedraw=this.register(new i.EventEmitter).event,this._rowContainer=document.createElement("div"),this._rowContainer.classList.add(m),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=document.createElement("div"),this._selectionContainer.classList.add(f),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,A.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._themeService.onChangeColors(X=>this._injectCss(X))),this._injectCss(this._themeService.colors),this._rowFactory=U.createInstance(s.DomRendererRowFactory,document),this._element.classList.add(d+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline(X=>this._handleLinkHover(X))),this.register(this._linkifier2.onHideLinkUnderline(X=>this._handleLinkLeave(X))),this.register((0,o.toDisposable)(()=>{this._element.classList.remove(d+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()})),this._widthCache=new S.WidthCache(document),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){const E=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*E,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*E),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/E),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/E),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(const D of this._rowElements)D.style.width=`${this.dimensions.css.canvas.width}px`,D.style.height=`${this.dimensions.css.cell.height}px`,D.style.lineHeight=`${this.dimensions.css.cell.height}px`,D.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));const w=`${this._terminalSelector} .${m} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=w,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(E){this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let w=`${this._terminalSelector} .${m} { color: ${E.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;w+=`${this._terminalSelector} .${m} .xterm-dim { color: ${t.color.multiplyOpacity(E.foreground,.5).css};}`,w+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`,w+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { border-bottom-style: hidden; }}",w+="@keyframes blink_block_"+this._terminalClass+` { 0% { background-color: ${E.cursor.css}; color: ${E.cursorAccent.css}; } 50% { background-color: inherit; color: ${E.cursor.css}; }}`,w+=`${this._terminalSelector} .${m}.${x} .xterm-cursor.xterm-cursor-blink:not(.xterm-cursor-block) { animation: blink_box_shadow_`+this._terminalClass+` 1s step-end infinite;}${this._terminalSelector} .${m}.${x} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: blink_block_`+this._terminalClass+` 1s step-end infinite;}${this._terminalSelector} .${m} .xterm-cursor.xterm-cursor-block { background-color: ${E.cursor.css}; color: ${E.cursorAccent.css};}${this._terminalSelector} .${m} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${E.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${m} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${E.cursor.css} inset;}${this._terminalSelector} .${m} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${E.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,w+=`${this._terminalSelector} .${f} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${f} div { position: absolute; background-color: ${E.selectionBackgroundOpaque.css};}${this._terminalSelector} .${f} div { position: absolute; background-color: ${E.selectionInactiveBackgroundOpaque.css};}`;for(const[D,F]of E.ansi.entries())w+=`${this._terminalSelector} .${v}${D} { color: ${F.css}; }${this._terminalSelector} .${v}${D}.xterm-dim { color: ${t.color.multiplyOpacity(F,.5).css}; }${this._terminalSelector} .${M}${D} { background-color: ${F.css}; }`;w+=`${this._terminalSelector} .${v}${p.INVERTED_DEFAULT_COLOR} { color: ${t.color.opaque(E.background).css}; }${this._terminalSelector} .${v}${p.INVERTED_DEFAULT_COLOR}.xterm-dim { color: ${t.color.multiplyOpacity(t.color.opaque(E.background),.5).css}; }${this._terminalSelector} .${M}${p.INVERTED_DEFAULT_COLOR} { background-color: ${E.foreground.css}; }`,this._themeStyleElement.textContent=w}_setDefaultSpacing(){const E=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${E}px`,this._rowFactory.defaultSpacing=E}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(E,w){for(let D=this._rowElements.length;D<=w;D++){const F=document.createElement("div");this._rowContainer.appendChild(F),this._rowElements.push(F)}for(;this._rowElements.length>w;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(E,w){this._refreshRowElements(E,w),this._updateDimensions()}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(x)}handleFocus(){this._rowContainer.classList.add(x),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(E,w,D){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(E,w,D),this.renderRows(0,this._bufferService.rows-1),!E||!w)return;const F=E[1]-this._bufferService.buffer.ydisp,U=w[1]-this._bufferService.buffer.ydisp,H=Math.max(F,0),P=Math.min(U,this._bufferService.rows-1);if(H>=this._bufferService.rows||P<0)return;const y=document.createDocumentFragment();if(D){const B=E[0]>w[0];y.appendChild(this._createSelectionElement(H,B?w[0]:E[0],B?E[0]:w[0],P-H+1))}else{const B=F===H?E[0]:0,O=H===U?w[0]:this._bufferService.cols;y.appendChild(this._createSelectionElement(H,B,O));const X=P-H-1;if(y.appendChild(this._createSelectionElement(H+1,0,this._bufferService.cols,X)),H!==P){const W=U===P?w[0]:this._bufferService.cols;y.appendChild(this._createSelectionElement(P,0,W))}}this._selectionContainer.appendChild(y)}_createSelectionElement(E,w,D,F=1){const U=document.createElement("div");return U.style.height=F*this.dimensions.css.cell.height+"px",U.style.top=E*this.dimensions.css.cell.height+"px",U.style.left=w*this.dimensions.css.cell.width+"px",U.style.width=this.dimensions.css.cell.width*(D-w)+"px",U}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(const E of this._rowElements)E.replaceChildren()}renderRows(E,w){const D=this._bufferService.buffer,F=D.ybase+D.y,U=Math.min(D.x,this._bufferService.cols-1),H=this._optionsService.rawOptions.cursorBlink,P=this._optionsService.rawOptions.cursorStyle,y=this._optionsService.rawOptions.cursorInactiveStyle;for(let B=E;B<=w;B++){const O=B+D.ydisp,X=this._rowElements[B],W=D.lines.get(O);if(!X||!W)break;X.replaceChildren(...this._rowFactory.createRow(W,O,O===F,P,y,U,H,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${d}${this._terminalClass}`}_handleLinkHover(E){this._setCellUnderline(E.x1,E.x2,E.y1,E.y2,E.cols,!0)}_handleLinkLeave(E){this._setCellUnderline(E.x1,E.x2,E.y1,E.y2,E.cols,!1)}_setCellUnderline(E,w,D,F,U,H){D<0&&(E=0),F<0&&(w=0);const P=this._bufferService.rows-1;D=Math.max(Math.min(D,P),0),F=Math.max(Math.min(F,P),0),U=Math.min(U,this._bufferService.cols);const y=this._bufferService.buffer,B=y.ybase+y.y,O=Math.min(y.x,U-1),X=this._optionsService.rawOptions.cursorBlink,W=this._optionsService.rawOptions.cursorStyle,Z=this._optionsService.rawOptions.cursorInactiveStyle;for(let Q=D;Q<=F;++Q){const oe=Q+y.ydisp,b=this._rowElements[Q],N=y.lines.get(oe);if(!b||!N)break;b.replaceChildren(...this._rowFactory.createRow(N,oe,oe===B,W,Z,O,X,this.dimensions.css.cell.width,this._widthCache,H?Q===D?E:0:-1,H?(Q===F?w:U)-1:-1))}}};r.DomRenderer=G=n([g(4,e.IInstantiationService),g(5,u.ICharSizeService),g(6,e.IOptionsService),g(7,e.IBufferService),g(8,u.ICoreBrowserService),g(9,u.IThemeService)],G)},3787:function(T,r,l){var n=this&&this.__decorate||function(v,M,x,f){var L,G=arguments.length,E=G<3?M:f===null?f=Object.getOwnPropertyDescriptor(M,x):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(v,M,x,f);else for(var w=v.length-1;w>=0;w--)(L=v[w])&&(E=(G<3?L(E):G>3?L(M,x,E):L(M,x))||E);return G>3&&E&&Object.defineProperty(M,x,E),E},g=this&&this.__param||function(v,M){return function(x,f){M(x,f,v)}};Object.defineProperty(r,"__esModule",{value:!0}),r.DomRendererRowFactory=void 0;const s=l(2223),S=l(643),p=l(511),A=l(2585),u=l(8055),t=l(4725),i=l(4269),o=l(6171),e=l(3734);let d=r.DomRendererRowFactory=class{constructor(v,M,x,f,L,G,E){this._document=v,this._characterJoinerService=M,this._optionsService=x,this._coreBrowserService=f,this._coreService=L,this._decorationService=G,this._themeService=E,this._workCell=new p.CellData,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(v,M,x){this._selectionStart=v,this._selectionEnd=M,this._columnSelectMode=x}createRow(v,M,x,f,L,G,E,w,D,F,U){const H=[],P=this._characterJoinerService.getJoinedCharacters(M),y=this._themeService.colors;let B,O=v.getNoBgTrimmedLength();x&&O0&&q===P[0][0]){xe=!0;const te=P.shift();j=new i.JoinedCellData(this._workCell,v.translateToString(!0,te[0],te[1]),te[1]-te[0]),Oe=te[1]-1,de=j.getWidth()}const He=this._isCellInSelection(q,M),ao=x&&q===G,lo=K&&q>=F&&q<=U;let so=!1;this._decorationService.forEachDecorationAtCell(q,M,void 0,te=>{so=!0});let xr=j.getChars()||S.WHITESPACE_CELL_CHAR;if(xr===" "&&(j.isUnderline()||j.isOverline())&&(xr="\xA0"),R=de*w-D.get(xr,j.isBold(),j.isItalic()),B){if(X&&(He&&k||!He&&!k&&j.bg===Z)&&(He&&k&&y.selectionForeground||j.fg===Q)&&j.extended.ext===oe&&lo===b&&R===N&&!ao&&!xe&&!so){W+=xr,X++;continue}X&&(B.textContent=W),B=this._document.createElement("span"),X=0,W=""}else B=this._document.createElement("span");if(Z=j.bg,Q=j.fg,oe=j.extended.ext,b=lo,N=R,k=He,xe&&G>=q&&G<=Oe&&(G=q),!this._coreService.isCursorHidden&&ao){if(Y.push("xterm-cursor"),this._coreBrowserService.isFocused)E&&Y.push("xterm-cursor-blink"),Y.push(f==="bar"?"xterm-cursor-bar":f==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(L)switch(L){case"outline":Y.push("xterm-cursor-outline");break;case"block":Y.push("xterm-cursor-block");break;case"bar":Y.push("xterm-cursor-bar");break;case"underline":Y.push("xterm-cursor-underline")}}if(j.isBold()&&Y.push("xterm-bold"),j.isItalic()&&Y.push("xterm-italic"),j.isDim()&&Y.push("xterm-dim"),W=j.isInvisible()?S.WHITESPACE_CELL_CHAR:j.getChars()||S.WHITESPACE_CELL_CHAR,j.isUnderline()&&(Y.push(`xterm-underline-${j.extended.underlineStyle}`),W===" "&&(W="\xA0"),!j.isUnderlineColorDefault()))if(j.isUnderlineColorRGB())B.style.textDecorationColor=`rgb(${e.AttributeData.toColorRGB(j.getUnderlineColor()).join(",")})`;else{let te=j.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&j.isBold()&&te<8&&(te+=8),B.style.textDecorationColor=y.ansi[te].css}j.isOverline()&&(Y.push("xterm-overline"),W===" "&&(W="\xA0")),j.isStrikethrough()&&Y.push("xterm-strikethrough"),lo&&(B.style.textDecoration="underline");let ue=j.getFgColor(),Ue=j.getFgColorMode(),Te=j.getBgColor(),Ve=j.getBgColorMode();const no=!!j.isInverse();if(no){const te=ue;ue=Te,Te=te;const h3=Ue;Ue=Ve,Ve=h3}let Pe,mo,be,We=!1;switch(this._decorationService.forEachDecorationAtCell(q,M,void 0,te=>{te.options.layer!=="top"&&We||(te.backgroundColorRGB&&(Ve=50331648,Te=te.backgroundColorRGB.rgba>>8&16777215,Pe=te.backgroundColorRGB),te.foregroundColorRGB&&(Ue=50331648,ue=te.foregroundColorRGB.rgba>>8&16777215,mo=te.foregroundColorRGB),We=te.options.layer==="top")}),!We&&He&&(Pe=this._coreBrowserService.isFocused?y.selectionBackgroundOpaque:y.selectionInactiveBackgroundOpaque,Te=Pe.rgba>>8&16777215,Ve=50331648,We=!0,y.selectionForeground&&(Ue=50331648,ue=y.selectionForeground.rgba>>8&16777215,mo=y.selectionForeground)),We&&Y.push("xterm-decoration-top"),Ve){case 16777216:case 33554432:be=y.ansi[Te],Y.push(`xterm-bg-${Te}`);break;case 50331648:be=u.rgba.toColor(Te>>16,Te>>8&255,255&Te),this._addStyle(B,`background-color:#${m((Te>>>0).toString(16),"0",6)}`);break;default:no?(be=y.foreground,Y.push(`xterm-bg-${s.INVERTED_DEFAULT_COLOR}`)):be=y.background}switch(Pe||j.isDim()&&(Pe=u.color.multiplyOpacity(be,.5)),Ue){case 16777216:case 33554432:j.isBold()&&ue<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(ue+=8),this._applyMinimumContrast(B,be,y.ansi[ue],j,Pe,void 0)||Y.push(`xterm-fg-${ue}`);break;case 50331648:const te=u.rgba.toColor(ue>>16&255,ue>>8&255,255&ue);this._applyMinimumContrast(B,be,te,j,Pe,mo)||this._addStyle(B,`color:#${m(ue.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(B,be,y.foreground,j,Pe,void 0)||no&&Y.push(`xterm-fg-${s.INVERTED_DEFAULT_COLOR}`)}Y.length&&(B.className=Y.join(" "),Y.length=0),ao||xe||so?B.textContent=W:X++,R!==this.defaultSpacing&&(B.style.letterSpacing=`${R}px`),H.push(B),q=Oe}return B&&X&&(B.textContent=W),H}_applyMinimumContrast(v,M,x,f,L,G){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,o.excludeFromContrastRatioDemands)(f.getCode()))return!1;const E=this._getContrastCache(f);let w;if(L||G||(w=E.getColor(M.rgba,x.rgba)),w===void 0){const D=this._optionsService.rawOptions.minimumContrastRatio/(f.isDim()?2:1);w=u.color.ensureContrastRatio(L||M,G||x,D),E.setColor((L||M).rgba,(G||x).rgba,w??null)}return!!w&&(this._addStyle(v,`color:${w.css}`),!0)}_getContrastCache(v){return v.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(v,M){v.setAttribute("style",`${v.getAttribute("style")||""}${M};`)}_isCellInSelection(v,M){const x=this._selectionStart,f=this._selectionEnd;return!(!x||!f)&&(this._columnSelectMode?x[0]<=f[0]?v>=x[0]&&M>=x[1]&&v=x[1]&&v>=f[0]&&M<=f[1]:M>x[1]&&M=x[0]&&v=x[0])}};function m(v,M,x){for(;v.length{Object.defineProperty(r,"__esModule",{value:!0}),r.WidthCache=void 0,r.WidthCache=class{constructor(l){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=l.createElement("div"),this._container.style.position="absolute",this._container.style.top="-50000px",this._container.style.width="50000px",this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";const n=l.createElement("span"),g=l.createElement("span");g.style.fontWeight="bold";const s=l.createElement("span");s.style.fontStyle="italic";const S=l.createElement("span");S.style.fontWeight="bold",S.style.fontStyle="italic",this._measureElements=[n,g,s,S],this._container.appendChild(n),this._container.appendChild(g),this._container.appendChild(s),this._container.appendChild(S),l.body.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(l,n,g,s){l===this._font&&n===this._fontSize&&g===this._weight&&s===this._weightBold||(this._font=l,this._fontSize=n,this._weight=g,this._weightBold=s,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${g}`,this._measureElements[1].style.fontWeight=`${s}`,this._measureElements[2].style.fontWeight=`${g}`,this._measureElements[3].style.fontWeight=`${s}`,this.clear())}get(l,n,g){let s=0;if(!n&&!g&&l.length===1&&(s=l.charCodeAt(0))<256)return this._flat[s]!==-9999?this._flat[s]:this._flat[s]=this._measure(l,0);let S=l;n&&(S+="B"),g&&(S+="I");let p=this._holey.get(S);if(p===void 0){let A=0;n&&(A|=1),g&&(A|=2),p=this._measure(l,A),this._holey.set(S,p)}return p}_measure(l,n){const g=this._measureElements[n];return g.textContent=l.repeat(32),g.offsetWidth/32}}},2223:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.TEXT_BASELINE=r.DIM_OPACITY=r.INVERTED_DEFAULT_COLOR=void 0;const n=l(6114);r.INVERTED_DEFAULT_COLOR=257,r.DIM_OPACITY=.5,r.TEXT_BASELINE=n.isFirefox||n.isLegacyEdge?"bottom":"ideographic"},6171:(T,r)=>{function l(n){return 57508<=n&&n<=57558}Object.defineProperty(r,"__esModule",{value:!0}),r.createRenderDimensions=r.excludeFromContrastRatioDemands=r.isRestrictedPowerlineGlyph=r.isPowerlineGlyph=r.throwIfFalsy=void 0,r.throwIfFalsy=function(n){if(!n)throw new Error("value must not be falsy");return n},r.isPowerlineGlyph=l,r.isRestrictedPowerlineGlyph=function(n){return 57520<=n&&n<=57527},r.excludeFromContrastRatioDemands=function(n){return l(n)||function(g){return 9472<=g&&g<=9631}(n)},r.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}}},456:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.SelectionModel=void 0,r.SelectionModel=class{constructor(l){this._bufferService=l,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){const l=this.selectionStart[0]+this.selectionStartLength;return l>this._bufferService.cols?l%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(l/this._bufferService.cols)-1]:[l%this._bufferService.cols,this.selectionStart[1]+Math.floor(l/this._bufferService.cols)]:[l,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){const l=this.selectionStart[0]+this.selectionStartLength;return l>this._bufferService.cols?[l%this._bufferService.cols,this.selectionStart[1]+Math.floor(l/this._bufferService.cols)]:[Math.max(l,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){const l=this.selectionStart,n=this.selectionEnd;return!(!l||!n)&&(l[1]>n[1]||l[1]===n[1]&&l[0]>n[0])}handleTrim(l){return this.selectionStart&&(this.selectionStart[1]-=l),this.selectionEnd&&(this.selectionEnd[1]-=l),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(T,r,l){var n=this&&this.__decorate||function(t,i,o,e){var d,m=arguments.length,v=m<3?i:e===null?e=Object.getOwnPropertyDescriptor(i,o):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(t,i,o,e);else for(var M=t.length-1;M>=0;M--)(d=t[M])&&(v=(m<3?d(v):m>3?d(i,o,v):d(i,o))||v);return m>3&&v&&Object.defineProperty(i,o,v),v},g=this&&this.__param||function(t,i){return function(o,e){i(o,e,t)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CharSizeService=void 0;const s=l(2585),S=l(8460),p=l(844);let A=r.CharSizeService=class extends p.Disposable{get hasValidSize(){return this.width>0&&this.height>0}constructor(t,i,o){super(),this._optionsService=o,this.width=0,this.height=0,this._onCharSizeChange=this.register(new S.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event,this._measureStrategy=new u(t,i,this._optionsService),this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],()=>this.measure()))}measure(){const t=this._measureStrategy.measure();t.width===this.width&&t.height===this.height||(this.width=t.width,this.height=t.height,this._onCharSizeChange.fire())}};r.CharSizeService=A=n([g(2,s.IOptionsService)],A);class u{constructor(i,o,e){this._document=i,this._parentElement=o,this._optionsService=e,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`;const i={height:Number(this._measureElement.offsetHeight),width:Number(this._measureElement.offsetWidth)};return i.width!==0&&i.height!==0&&(this._result.width=i.width/32,this._result.height=Math.ceil(i.height)),this._result}}},4269:function(T,r,l){var n=this&&this.__decorate||function(i,o,e,d){var m,v=arguments.length,M=v<3?o:d===null?d=Object.getOwnPropertyDescriptor(o,e):d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(i,o,e,d);else for(var x=i.length-1;x>=0;x--)(m=i[x])&&(M=(v<3?m(M):v>3?m(o,e,M):m(o,e))||M);return v>3&&M&&Object.defineProperty(o,e,M),M},g=this&&this.__param||function(i,o){return function(e,d){o(e,d,i)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CharacterJoinerService=r.JoinedCellData=void 0;const s=l(3734),S=l(643),p=l(511),A=l(2585);class u extends s.AttributeData{constructor(o,e,d){super(),this.content=0,this.combinedData="",this.fg=o.fg,this.bg=o.bg,this.combinedData=e,this._width=d}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(o){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}r.JoinedCellData=u;let t=r.CharacterJoinerService=class yt{constructor(o){this._bufferService=o,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new p.CellData}register(o){const e={id:this._nextCharacterJoinerId++,handler:o};return this._characterJoiners.push(e),e.id}deregister(o){for(let e=0;e1){const E=this._getJoinedRanges(m,x,M,e,v);for(let w=0;w1){const G=this._getJoinedRanges(m,x,M,e,v);for(let E=0;E{Object.defineProperty(r,"__esModule",{value:!0}),r.CoreBrowserService=void 0,r.CoreBrowserService=class{constructor(l,n){this._textarea=l,this.window=n,this._isFocused=!1,this._cachedIsFocused=void 0,this._textarea.addEventListener("focus",()=>this._isFocused=!0),this._textarea.addEventListener("blur",()=>this._isFocused=!1)}get dpr(){return this.window.devicePixelRatio}get isFocused(){return this._cachedIsFocused===void 0&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask(()=>this._cachedIsFocused=void 0)),this._cachedIsFocused}}},8934:function(T,r,l){var n=this&&this.__decorate||function(A,u,t,i){var o,e=arguments.length,d=e<3?u:i===null?i=Object.getOwnPropertyDescriptor(u,t):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")d=Reflect.decorate(A,u,t,i);else for(var m=A.length-1;m>=0;m--)(o=A[m])&&(d=(e<3?o(d):e>3?o(u,t,d):o(u,t))||d);return e>3&&d&&Object.defineProperty(u,t,d),d},g=this&&this.__param||function(A,u){return function(t,i){u(t,i,A)}};Object.defineProperty(r,"__esModule",{value:!0}),r.MouseService=void 0;const s=l(4725),S=l(9806);let p=r.MouseService=class{constructor(A,u){this._renderService=A,this._charSizeService=u}getCoords(A,u,t,i,o){return(0,S.getCoords)(window,A,u,t,i,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,o)}getMouseReportCoords(A,u){const t=(0,S.getCoordsRelativeToElement)(window,A,u);if(this._charSizeService.hasValidSize)return t[0]=Math.min(Math.max(t[0],0),this._renderService.dimensions.css.canvas.width-1),t[1]=Math.min(Math.max(t[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(t[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(t[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(t[0]),y:Math.floor(t[1])}}};r.MouseService=p=n([g(0,s.IRenderService),g(1,s.ICharSizeService)],p)},3230:function(T,r,l){var n=this&&this.__decorate||function(d,m,v,M){var x,f=arguments.length,L=f<3?m:M===null?M=Object.getOwnPropertyDescriptor(m,v):M;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(d,m,v,M);else for(var G=d.length-1;G>=0;G--)(x=d[G])&&(L=(f<3?x(L):f>3?x(m,v,L):x(m,v))||L);return f>3&&L&&Object.defineProperty(m,v,L),L},g=this&&this.__param||function(d,m){return function(v,M){m(v,M,d)}};Object.defineProperty(r,"__esModule",{value:!0}),r.RenderService=void 0;const s=l(3656),S=l(6193),p=l(5596),A=l(4725),u=l(8460),t=l(844),i=l(7226),o=l(2585);let e=r.RenderService=class extends t.Disposable{get dimensions(){return this._renderer.value.dimensions}constructor(d,m,v,M,x,f,L,G){if(super(),this._rowCount=d,this._charSizeService=M,this._renderer=this.register(new t.MutableDisposable),this._pausedResizeTask=new i.DebouncedIdleTask,this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this.register(new u.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new u.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new u.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new u.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new S.RenderDebouncer(L.window,(E,w)=>this._renderRows(E,w)),this.register(this._renderDebouncer),this._screenDprMonitor=new p.ScreenDprMonitor(L.window),this._screenDprMonitor.setListener(()=>this.handleDevicePixelRatioChange()),this.register(this._screenDprMonitor),this.register(f.onResize(()=>this._fullRefresh())),this.register(f.buffers.onBufferActivate(()=>{var E;return(E=this._renderer.value)===null||E===void 0?void 0:E.clear()})),this.register(v.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._charSizeService.onCharSizeChange(()=>this.handleCharSizeChanged())),this.register(x.onDecorationRegistered(()=>this._fullRefresh())),this.register(x.onDecorationRemoved(()=>this._fullRefresh())),this.register(v.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio"],()=>{this.clear(),this.handleResize(f.cols,f.rows),this._fullRefresh()})),this.register(v.onMultipleOptionChange(["cursorBlink","cursorStyle"],()=>this.refreshRows(f.buffer.y,f.buffer.y,!0))),this.register((0,s.addDisposableDomListener)(L.window,"resize",()=>this.handleDevicePixelRatioChange())),this.register(G.onChangeColors(()=>this._fullRefresh())),"IntersectionObserver"in L.window){const E=new L.window.IntersectionObserver(w=>this._handleIntersectionChange(w[w.length-1]),{threshold:0});E.observe(m),this.register({dispose:()=>E.disconnect()})}}_handleIntersectionChange(d){this._isPaused=d.isIntersecting===void 0?d.intersectionRatio===0:!d.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(d,m,v=!1){this._isPaused?this._needsFullRefresh=!0:(v||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(d,m,this._rowCount))}_renderRows(d,m){this._renderer.value&&(d=Math.min(d,this._rowCount-1),m=Math.min(m,this._rowCount-1),this._renderer.value.renderRows(d,m),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:d,end:m}),this._onRender.fire({start:d,end:m}),this._isNextRenderRedrawOnly=!0)}resize(d,m){this._rowCount=m,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(d){this._renderer.value=d,this._renderer.value.onRequestRedraw(m=>this.refreshRows(m.start,m.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh()}addRefreshCallback(d){return this._renderDebouncer.addRefreshCallback(d)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var d,m;this._renderer.value&&((m=(d=this._renderer.value).clearTextureAtlas)===null||m===void 0||m.call(d),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(d,m){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set(()=>this._renderer.value.handleResize(d,m)):this._renderer.value.handleResize(d,m),this._fullRefresh())}handleCharSizeChanged(){var d;(d=this._renderer.value)===null||d===void 0||d.handleCharSizeChanged()}handleBlur(){var d;(d=this._renderer.value)===null||d===void 0||d.handleBlur()}handleFocus(){var d;(d=this._renderer.value)===null||d===void 0||d.handleFocus()}handleSelectionChanged(d,m,v){var M;this._selectionState.start=d,this._selectionState.end=m,this._selectionState.columnSelectMode=v,(M=this._renderer.value)===null||M===void 0||M.handleSelectionChanged(d,m,v)}handleCursorMove(){var d;(d=this._renderer.value)===null||d===void 0||d.handleCursorMove()}clear(){var d;(d=this._renderer.value)===null||d===void 0||d.clear()}};r.RenderService=e=n([g(2,o.IOptionsService),g(3,A.ICharSizeService),g(4,o.IDecorationService),g(5,o.IBufferService),g(6,A.ICoreBrowserService),g(7,A.IThemeService)],e)},9312:function(T,r,l){var n=this&&this.__decorate||function(x,f,L,G){var E,w=arguments.length,D=w<3?f:G===null?G=Object.getOwnPropertyDescriptor(f,L):G;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(x,f,L,G);else for(var F=x.length-1;F>=0;F--)(E=x[F])&&(D=(w<3?E(D):w>3?E(f,L,D):E(f,L))||D);return w>3&&D&&Object.defineProperty(f,L,D),D},g=this&&this.__param||function(x,f){return function(L,G){f(L,G,x)}};Object.defineProperty(r,"__esModule",{value:!0}),r.SelectionService=void 0;const s=l(9806),S=l(9504),p=l(456),A=l(4725),u=l(8460),t=l(844),i=l(6114),o=l(4841),e=l(511),d=l(2585),m=String.fromCharCode(160),v=new RegExp(m,"g");let M=r.SelectionService=class extends t.Disposable{constructor(x,f,L,G,E,w,D,F,U){super(),this._element=x,this._screenElement=f,this._linkifier=L,this._bufferService=G,this._coreService=E,this._mouseService=w,this._optionsService=D,this._renderService=F,this._coreBrowserService=U,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new e.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new u.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new u.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new u.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new u.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=H=>this._handleMouseMove(H),this._mouseUpListener=H=>this._handleMouseUp(H),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(H=>this._handleTrim(H)),this.register(this._bufferService.buffers.onBufferActivate(H=>this._handleBufferActivate(H))),this.enable(),this._model=new p.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,t.toDisposable)(()=>{this._removeMouseDownListeners()}))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){const x=this._model.finalSelectionStart,f=this._model.finalSelectionEnd;return!(!x||!f||x[0]===f[0]&&x[1]===f[1])}get selectionText(){const x=this._model.finalSelectionStart,f=this._model.finalSelectionEnd;if(!x||!f)return"";const L=this._bufferService.buffer,G=[];if(this._activeSelectionMode===3){if(x[0]===f[0])return"";const E=x[0]E.replace(v," ")).join(i.isWindows?`\r +`:` +`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(x){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),i.isLinux&&x&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(x){const f=this._getMouseBufferCoords(x),L=this._model.finalSelectionStart,G=this._model.finalSelectionEnd;return!!(L&&G&&f)&&this._areCoordsInSelection(f,L,G)}isCellInSelection(x,f){const L=this._model.finalSelectionStart,G=this._model.finalSelectionEnd;return!(!L||!G)&&this._areCoordsInSelection([x,f],L,G)}_areCoordsInSelection(x,f,L){return x[1]>f[1]&&x[1]=f[0]&&x[0]=f[0]}_selectWordAtCursor(x,f){var L,G;const E=(G=(L=this._linkifier.currentLink)===null||L===void 0?void 0:L.link)===null||G===void 0?void 0:G.range;if(E)return this._model.selectionStart=[E.start.x-1,E.start.y-1],this._model.selectionStartLength=(0,o.getRangeLength)(E,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const w=this._getMouseBufferCoords(x);return!!w&&(this._selectWordAt(w,f),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(x,f){this._model.clearSelection(),x=Math.max(x,0),f=Math.min(f,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,x],this._model.selectionEnd=[this._bufferService.cols,f],this.refresh(),this._onSelectionChange.fire()}_handleTrim(x){this._model.handleTrim(x)&&this.refresh()}_getMouseBufferCoords(x){const f=this._mouseService.getCoords(x,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(f)return f[0]--,f[1]--,f[1]+=this._bufferService.buffer.ydisp,f}_getMouseEventScrollAmount(x){let f=(0,s.getCoordsRelativeToElement)(this._coreBrowserService.window,x,this._screenElement)[1];const L=this._renderService.dimensions.css.canvas.height;return f>=0&&f<=L?0:(f>L&&(f-=L),f=Math.min(Math.max(f,-50),50),f/=50,f/Math.abs(f)+Math.round(14*f))}shouldForceSelection(x){return i.isMac?x.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:x.shiftKey}handleMouseDown(x){if(this._mouseDownTimeStamp=x.timeStamp,(x.button!==2||!this.hasSelection)&&x.button===0){if(!this._enabled){if(!this.shouldForceSelection(x))return;x.stopPropagation()}x.preventDefault(),this._dragScrollAmount=0,this._enabled&&x.shiftKey?this._handleIncrementalClick(x):x.detail===1?this._handleSingleClick(x):x.detail===2?this._handleDoubleClick(x):x.detail===3&&this._handleTripleClick(x),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(x){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(x))}_handleSingleClick(x){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(x)?3:0,this._model.selectionStart=this._getMouseBufferCoords(x),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const f=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);f&&f.length!==this._model.selectionStart[0]&&f.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(x){this._selectWordAtCursor(x,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(x){const f=this._getMouseBufferCoords(x);f&&(this._activeSelectionMode=2,this._selectLineAt(f[1]))}shouldColumnSelect(x){return x.altKey&&!(i.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(x){if(x.stopImmediatePropagation(),!this._model.selectionStart)return;const f=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(x),!this._model.selectionEnd)return void this.refresh(!0);this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const L=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(x.ydisp+this._bufferService.rows,x.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=x.ydisp),this.refresh()}}_handleMouseUp(x){const f=x.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&f<500&&x.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const L=this._mouseService.getCoords(x,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(L&&L[0]!==void 0&&L[1]!==void 0){const G=(0,S.moveToCellSequence)(L[0]-1,L[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(G,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const x=this._model.finalSelectionStart,f=this._model.finalSelectionEnd,L=!(!x||!f||x[0]===f[0]&&x[1]===f[1]);L?x&&f&&(this._oldSelectionStart&&this._oldSelectionEnd&&x[0]===this._oldSelectionStart[0]&&x[1]===this._oldSelectionStart[1]&&f[0]===this._oldSelectionEnd[0]&&f[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(x,f,L)):this._oldHasSelection&&this._fireOnSelectionChange(x,f,L)}_fireOnSelectionChange(x,f,L){this._oldSelectionStart=x,this._oldSelectionEnd=f,this._oldHasSelection=L,this._onSelectionChange.fire()}_handleBufferActivate(x){this.clearSelection(),this._trimListener.dispose(),this._trimListener=x.activeBuffer.lines.onTrim(f=>this._handleTrim(f))}_convertViewportColToCharacterIndex(x,f){let L=f;for(let G=0;f>=G;G++){const E=x.loadCell(G,this._workCell).getChars().length;this._workCell.getWidth()===0?L--:E>1&&f!==G&&(L+=E-1)}return L}setSelection(x,f,L){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[x,f],this._model.selectionStartLength=L,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(x){this._isClickInSelection(x)||(this._selectWordAtCursor(x,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(x,f,L=!0,G=!0){if(x[0]>=this._bufferService.cols)return;const E=this._bufferService.buffer,w=E.lines.get(x[1]);if(!w)return;const D=E.translateBufferLineToString(x[1],!1);let F=this._convertViewportColToCharacterIndex(w,x[0]),U=F;const H=x[0]-F;let P=0,y=0,B=0,O=0;if(D.charAt(F)===" "){for(;F>0&&D.charAt(F-1)===" ";)F--;for(;U1&&(O+=oe-1,U+=oe-1);Z>0&&F>0&&!this._isCharWordSeparator(w.loadCell(Z-1,this._workCell));){w.loadCell(Z-1,this._workCell);const b=this._workCell.getChars().length;this._workCell.getWidth()===0?(P++,Z--):b>1&&(B+=b-1,F-=b-1),F--,Z--}for(;Q1&&(O+=b-1,U+=b-1),U++,Q++}}U++;let X=F+H-P+B,W=Math.min(this._bufferService.cols,U-F+P+y-B-O);if(f||D.slice(F,U).trim()!==""){if(L&&X===0&&w.getCodePoint(0)!==32){const Z=E.lines.get(x[1]-1);if(Z&&w.isWrapped&&Z.getCodePoint(this._bufferService.cols-1)!==32){const Q=this._getWordAt([this._bufferService.cols-1,x[1]-1],!1,!0,!1);if(Q){const oe=this._bufferService.cols-Q.start;X-=oe,W+=oe}}}if(G&&X+W===this._bufferService.cols&&w.getCodePoint(this._bufferService.cols-1)!==32){const Z=E.lines.get(x[1]+1);if(Z!=null&&Z.isWrapped&&Z.getCodePoint(0)!==32){const Q=this._getWordAt([0,x[1]+1],!1,!1,!0);Q&&(W+=Q.length)}}return{start:X,length:W}}}_selectWordAt(x,f){const L=this._getWordAt(x,f);if(L){for(;L.start<0;)L.start+=this._bufferService.cols,x[1]--;this._model.selectionStart=[L.start,x[1]],this._model.selectionStartLength=L.length}}_selectToWordAt(x){const f=this._getWordAt(x,!0);if(f){let L=x[1];for(;f.start<0;)f.start+=this._bufferService.cols,L--;if(!this._model.areSelectionValuesReversed())for(;f.start+f.length>this._bufferService.cols;)f.length-=this._bufferService.cols,L++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?f.start:f.start+f.length,L]}}_isCharWordSeparator(x){return x.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(x.getChars())>=0}_selectLineAt(x){const f=this._bufferService.buffer.getWrappedRangeForLine(x),L={start:{x:0,y:f.first},end:{x:this._bufferService.cols-1,y:f.last}};this._model.selectionStart=[0,f.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,o.getRangeLength)(L,this._bufferService.cols)}};r.SelectionService=M=n([g(3,d.IBufferService),g(4,d.ICoreService),g(5,A.IMouseService),g(6,d.IOptionsService),g(7,A.IRenderService),g(8,A.ICoreBrowserService)],M)},4725:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.IThemeService=r.ICharacterJoinerService=r.ISelectionService=r.IRenderService=r.IMouseService=r.ICoreBrowserService=r.ICharSizeService=void 0;const n=l(8343);r.ICharSizeService=(0,n.createDecorator)("CharSizeService"),r.ICoreBrowserService=(0,n.createDecorator)("CoreBrowserService"),r.IMouseService=(0,n.createDecorator)("MouseService"),r.IRenderService=(0,n.createDecorator)("RenderService"),r.ISelectionService=(0,n.createDecorator)("SelectionService"),r.ICharacterJoinerService=(0,n.createDecorator)("CharacterJoinerService"),r.IThemeService=(0,n.createDecorator)("ThemeService")},6731:function(T,r,l){var n=this&&this.__decorate||function(M,x,f,L){var G,E=arguments.length,w=E<3?x:L===null?L=Object.getOwnPropertyDescriptor(x,f):L;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(M,x,f,L);else for(var D=M.length-1;D>=0;D--)(G=M[D])&&(w=(E<3?G(w):E>3?G(x,f,w):G(x,f))||w);return E>3&&w&&Object.defineProperty(x,f,w),w},g=this&&this.__param||function(M,x){return function(f,L){x(f,L,M)}};Object.defineProperty(r,"__esModule",{value:!0}),r.ThemeService=r.DEFAULT_ANSI_COLORS=void 0;const s=l(7239),S=l(8055),p=l(8460),A=l(844),u=l(2585),t=S.css.toColor("#ffffff"),i=S.css.toColor("#000000"),o=S.css.toColor("#ffffff"),e=S.css.toColor("#000000"),d={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};r.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const M=[S.css.toColor("#2e3436"),S.css.toColor("#cc0000"),S.css.toColor("#4e9a06"),S.css.toColor("#c4a000"),S.css.toColor("#3465a4"),S.css.toColor("#75507b"),S.css.toColor("#06989a"),S.css.toColor("#d3d7cf"),S.css.toColor("#555753"),S.css.toColor("#ef2929"),S.css.toColor("#8ae234"),S.css.toColor("#fce94f"),S.css.toColor("#729fcf"),S.css.toColor("#ad7fa8"),S.css.toColor("#34e2e2"),S.css.toColor("#eeeeec")],x=[0,95,135,175,215,255];for(let f=0;f<216;f++){const L=x[f/36%6|0],G=x[f/6%6|0],E=x[f%6];M.push({css:S.channels.toCss(L,G,E),rgba:S.channels.toRgba(L,G,E)})}for(let f=0;f<24;f++){const L=8+10*f;M.push({css:S.channels.toCss(L,L,L),rgba:S.channels.toRgba(L,L,L)})}return M})());let m=r.ThemeService=class extends A.Disposable{get colors(){return this._colors}constructor(M){super(),this._optionsService=M,this._contrastCache=new s.ColorContrastCache,this._halfContrastCache=new s.ColorContrastCache,this._onChangeColors=this.register(new p.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:t,background:i,cursor:o,cursorAccent:e,selectionForeground:void 0,selectionBackgroundTransparent:d,selectionBackgroundOpaque:S.color.blend(i,d),selectionInactiveBackgroundTransparent:d,selectionInactiveBackgroundOpaque:S.color.blend(i,d),ansi:r.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",()=>this._contrastCache.clear())),this.register(this._optionsService.onSpecificOptionChange("theme",()=>this._setTheme(this._optionsService.rawOptions.theme)))}_setTheme(M={}){const x=this._colors;if(x.foreground=v(M.foreground,t),x.background=v(M.background,i),x.cursor=v(M.cursor,o),x.cursorAccent=v(M.cursorAccent,e),x.selectionBackgroundTransparent=v(M.selectionBackground,d),x.selectionBackgroundOpaque=S.color.blend(x.background,x.selectionBackgroundTransparent),x.selectionInactiveBackgroundTransparent=v(M.selectionInactiveBackground,x.selectionBackgroundTransparent),x.selectionInactiveBackgroundOpaque=S.color.blend(x.background,x.selectionInactiveBackgroundTransparent),x.selectionForeground=M.selectionForeground?v(M.selectionForeground,S.NULL_COLOR):void 0,x.selectionForeground===S.NULL_COLOR&&(x.selectionForeground=void 0),S.color.isOpaque(x.selectionBackgroundTransparent)&&(x.selectionBackgroundTransparent=S.color.opacity(x.selectionBackgroundTransparent,.3)),S.color.isOpaque(x.selectionInactiveBackgroundTransparent)&&(x.selectionInactiveBackgroundTransparent=S.color.opacity(x.selectionInactiveBackgroundTransparent,.3)),x.ansi=r.DEFAULT_ANSI_COLORS.slice(),x.ansi[0]=v(M.black,r.DEFAULT_ANSI_COLORS[0]),x.ansi[1]=v(M.red,r.DEFAULT_ANSI_COLORS[1]),x.ansi[2]=v(M.green,r.DEFAULT_ANSI_COLORS[2]),x.ansi[3]=v(M.yellow,r.DEFAULT_ANSI_COLORS[3]),x.ansi[4]=v(M.blue,r.DEFAULT_ANSI_COLORS[4]),x.ansi[5]=v(M.magenta,r.DEFAULT_ANSI_COLORS[5]),x.ansi[6]=v(M.cyan,r.DEFAULT_ANSI_COLORS[6]),x.ansi[7]=v(M.white,r.DEFAULT_ANSI_COLORS[7]),x.ansi[8]=v(M.brightBlack,r.DEFAULT_ANSI_COLORS[8]),x.ansi[9]=v(M.brightRed,r.DEFAULT_ANSI_COLORS[9]),x.ansi[10]=v(M.brightGreen,r.DEFAULT_ANSI_COLORS[10]),x.ansi[11]=v(M.brightYellow,r.DEFAULT_ANSI_COLORS[11]),x.ansi[12]=v(M.brightBlue,r.DEFAULT_ANSI_COLORS[12]),x.ansi[13]=v(M.brightMagenta,r.DEFAULT_ANSI_COLORS[13]),x.ansi[14]=v(M.brightCyan,r.DEFAULT_ANSI_COLORS[14]),x.ansi[15]=v(M.brightWhite,r.DEFAULT_ANSI_COLORS[15]),M.extendedAnsi){const f=Math.min(x.ansi.length-16,M.extendedAnsi.length);for(let L=0;L{Object.defineProperty(r,"__esModule",{value:!0}),r.CircularList=void 0;const n=l(8460),g=l(844);class s extends g.Disposable{constructor(p){super(),this._maxLength=p,this.onDeleteEmitter=this.register(new n.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new n.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new n.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(p){if(this._maxLength===p)return;const A=new Array(p);for(let u=0;uthis._length)for(let A=this._length;A=p;t--)this._array[this._getCyclicIndex(t+u.length)]=this._array[this._getCyclicIndex(t)];for(let t=0;tthis._maxLength){const t=this._length+u.length-this._maxLength;this._startIndex+=t,this._length=this._maxLength,this.onTrimEmitter.fire(t)}else this._length+=u.length}trimStart(p){p>this._length&&(p=this._length),this._startIndex+=p,this._length-=p,this.onTrimEmitter.fire(p)}shiftElements(p,A,u){if(!(A<=0)){if(p<0||p>=this._length)throw new Error("start argument out of range");if(p+u<0)throw new Error("Cannot shift elements in list beyond index 0");if(u>0){for(let i=A-1;i>=0;i--)this.set(p+i+u,this.get(p+i));const t=p+A+u-this._length;if(t>0)for(this._length+=t;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let t=0;t{Object.defineProperty(r,"__esModule",{value:!0}),r.clone=void 0,r.clone=function l(n,g=5){if(typeof n!="object")return n;const s=Array.isArray(n)?[]:{};for(const S in n)s[S]=g<=1?n[S]:n[S]&&l(n[S],g-1);return s}},8055:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.contrastRatio=r.toPaddedHex=r.rgba=r.rgb=r.css=r.color=r.channels=r.NULL_COLOR=void 0;const n=l(6114);let g=0,s=0,S=0,p=0;var A,u,t,i,o;function e(m){const v=m.toString(16);return v.length<2?"0"+v:v}function d(m,v){return m>>0}}(A||(r.channels=A={})),function(m){function v(M,x){return p=Math.round(255*x),[g,s,S]=o.toChannels(M.rgba),{css:A.toCss(g,s,S,p),rgba:A.toRgba(g,s,S,p)}}m.blend=function(M,x){if(p=(255&x.rgba)/255,p===1)return{css:x.css,rgba:x.rgba};const f=x.rgba>>24&255,L=x.rgba>>16&255,G=x.rgba>>8&255,E=M.rgba>>24&255,w=M.rgba>>16&255,D=M.rgba>>8&255;return g=E+Math.round((f-E)*p),s=w+Math.round((L-w)*p),S=D+Math.round((G-D)*p),{css:A.toCss(g,s,S),rgba:A.toRgba(g,s,S)}},m.isOpaque=function(M){return(255&M.rgba)==255},m.ensureContrastRatio=function(M,x,f){const L=o.ensureContrastRatio(M.rgba,x.rgba,f);if(L)return o.toColor(L>>24&255,L>>16&255,L>>8&255)},m.opaque=function(M){const x=(255|M.rgba)>>>0;return[g,s,S]=o.toChannels(x),{css:A.toCss(g,s,S),rgba:x}},m.opacity=v,m.multiplyOpacity=function(M,x){return p=255&M.rgba,v(M,p*x/255)},m.toColorRGB=function(M){return[M.rgba>>24&255,M.rgba>>16&255,M.rgba>>8&255]}}(u||(r.color=u={})),function(m){let v,M;if(!n.isNode){const x=document.createElement("canvas");x.width=1,x.height=1;const f=x.getContext("2d",{willReadFrequently:!0});f&&(v=f,v.globalCompositeOperation="copy",M=v.createLinearGradient(0,0,1,1))}m.toColor=function(x){if(x.match(/#[\da-f]{3,8}/i))switch(x.length){case 4:return g=parseInt(x.slice(1,2).repeat(2),16),s=parseInt(x.slice(2,3).repeat(2),16),S=parseInt(x.slice(3,4).repeat(2),16),o.toColor(g,s,S);case 5:return g=parseInt(x.slice(1,2).repeat(2),16),s=parseInt(x.slice(2,3).repeat(2),16),S=parseInt(x.slice(3,4).repeat(2),16),p=parseInt(x.slice(4,5).repeat(2),16),o.toColor(g,s,S,p);case 7:return{css:x,rgba:(parseInt(x.slice(1),16)<<8|255)>>>0};case 9:return{css:x,rgba:parseInt(x.slice(1),16)>>>0}}const f=x.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(f)return g=parseInt(f[1]),s=parseInt(f[2]),S=parseInt(f[3]),p=Math.round(255*(f[5]===void 0?1:parseFloat(f[5]))),o.toColor(g,s,S,p);if(!v||!M)throw new Error("css.toColor: Unsupported css format");if(v.fillStyle=M,v.fillStyle=x,typeof v.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(v.fillRect(0,0,1,1),[g,s,S,p]=v.getImageData(0,0,1,1).data,p!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:A.toRgba(g,s,S,p),css:x}}}(t||(r.css=t={})),function(m){function v(M,x,f){const L=M/255,G=x/255,E=f/255;return .2126*(L<=.03928?L/12.92:Math.pow((L+.055)/1.055,2.4))+.7152*(G<=.03928?G/12.92:Math.pow((G+.055)/1.055,2.4))+.0722*(E<=.03928?E/12.92:Math.pow((E+.055)/1.055,2.4))}m.relativeLuminance=function(M){return v(M>>16&255,M>>8&255,255&M)},m.relativeLuminance2=v}(i||(r.rgb=i={})),function(m){function v(x,f,L){const G=x>>24&255,E=x>>16&255,w=x>>8&255;let D=f>>24&255,F=f>>16&255,U=f>>8&255,H=d(i.relativeLuminance2(D,F,U),i.relativeLuminance2(G,E,w));for(;H0||F>0||U>0);)D-=Math.max(0,Math.ceil(.1*D)),F-=Math.max(0,Math.ceil(.1*F)),U-=Math.max(0,Math.ceil(.1*U)),H=d(i.relativeLuminance2(D,F,U),i.relativeLuminance2(G,E,w));return(D<<24|F<<16|U<<8|255)>>>0}function M(x,f,L){const G=x>>24&255,E=x>>16&255,w=x>>8&255;let D=f>>24&255,F=f>>16&255,U=f>>8&255,H=d(i.relativeLuminance2(D,F,U),i.relativeLuminance2(G,E,w));for(;H>>0}m.ensureContrastRatio=function(x,f,L){const G=i.relativeLuminance(x>>8),E=i.relativeLuminance(f>>8);if(d(G,E)>8));if(Ud(G,i.relativeLuminance(H>>8))?F:H}return F}const w=M(x,f,L),D=d(G,i.relativeLuminance(w>>8));if(Dd(G,i.relativeLuminance(F>>8))?w:F}return w}},m.reduceLuminance=v,m.increaseLuminance=M,m.toChannels=function(x){return[x>>24&255,x>>16&255,x>>8&255,255&x]},m.toColor=function(x,f,L,G){return{css:A.toCss(x,f,L,G),rgba:A.toRgba(x,f,L,G)}}}(o||(r.rgba=o={})),r.toPaddedHex=e,r.contrastRatio=d},8969:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CoreTerminal=void 0;const n=l(844),g=l(2585),s=l(4348),S=l(7866),p=l(744),A=l(7302),u=l(6975),t=l(8460),i=l(1753),o=l(1480),e=l(7994),d=l(9282),m=l(5435),v=l(5981),M=l(2660);let x=!1;class f extends n.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new t.EventEmitter),this._onScroll.event(G=>{var E;(E=this._onScrollApi)===null||E===void 0||E.fire(G.position)})),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(G){for(const E in G)this.optionsService.options[E]=G[E]}constructor(G){super(),this._windowsWrappingHeuristics=this.register(new n.MutableDisposable),this._onBinary=this.register(new t.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new t.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new t.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new t.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new t.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new t.EventEmitter),this._instantiationService=new s.InstantiationService,this.optionsService=this.register(new A.OptionsService(G)),this._instantiationService.setService(g.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(p.BufferService)),this._instantiationService.setService(g.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(S.LogService)),this._instantiationService.setService(g.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(u.CoreService)),this._instantiationService.setService(g.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(i.CoreMouseService)),this._instantiationService.setService(g.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(o.UnicodeService)),this._instantiationService.setService(g.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(e.CharsetService),this._instantiationService.setService(g.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(M.OscLinkService),this._instantiationService.setService(g.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new m.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,t.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,t.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,t.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,t.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom())),this.register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],()=>this._handleWindowsPtyOptionChange())),this.register(this._bufferService.onScroll(E=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this.register(this._inputHandler.onScroll(E=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this.register(new v.WriteBuffer((E,w)=>this._inputHandler.parse(E,w))),this.register((0,t.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(G,E){this._writeBuffer.write(G,E)}writeSync(G,E){this._logService.logLevel<=g.LogLevelEnum.WARN&&!x&&(this._logService.warn("writeSync is unreliable and will be removed soon."),x=!0),this._writeBuffer.writeSync(G,E)}resize(G,E){isNaN(G)||isNaN(E)||(G=Math.max(G,p.MINIMUM_COLS),E=Math.max(E,p.MINIMUM_ROWS),this._bufferService.resize(G,E))}scroll(G,E=!1){this._bufferService.scroll(G,E)}scrollLines(G,E,w){this._bufferService.scrollLines(G,E,w)}scrollPages(G){this.scrollLines(G*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(G){const E=G-this._bufferService.buffer.ydisp;E!==0&&this.scrollLines(E)}registerEscHandler(G,E){return this._inputHandler.registerEscHandler(G,E)}registerDcsHandler(G,E){return this._inputHandler.registerDcsHandler(G,E)}registerCsiHandler(G,E){return this._inputHandler.registerCsiHandler(G,E)}registerOscHandler(G,E){return this._inputHandler.registerOscHandler(G,E)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let G=!1;const E=this.optionsService.rawOptions.windowsPty;E&&E.buildNumber!==void 0&&E.buildNumber!==void 0?G=E.backend==="conpty"&&E.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(G=!0),G?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){const G=[];G.push(this.onLineFeed(d.updateWindowsModeWrappedState.bind(null,this._bufferService))),G.push(this.registerCsiHandler({final:"H"},()=>((0,d.updateWindowsModeWrappedState)(this._bufferService),!1))),this._windowsWrappingHeuristics.value=(0,n.toDisposable)(()=>{for(const E of G)E.dispose()})}}}r.CoreTerminal=f},8460:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.forwardEvent=r.EventEmitter=void 0,r.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=l=>(this._listeners.push(l),{dispose:()=>{if(!this._disposed){for(let n=0;nn.fire(g))}},5435:function(T,r,l){var n=this&&this.__decorate||function(H,P,y,B){var O,X=arguments.length,W=X<3?P:B===null?B=Object.getOwnPropertyDescriptor(P,y):B;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")W=Reflect.decorate(H,P,y,B);else for(var Z=H.length-1;Z>=0;Z--)(O=H[Z])&&(W=(X<3?O(W):X>3?O(P,y,W):O(P,y))||W);return X>3&&W&&Object.defineProperty(P,y,W),W},g=this&&this.__param||function(H,P){return function(y,B){P(y,B,H)}};Object.defineProperty(r,"__esModule",{value:!0}),r.InputHandler=r.WindowsOptionsReportType=void 0;const s=l(2584),S=l(7116),p=l(2015),A=l(844),u=l(482),t=l(8437),i=l(8460),o=l(643),e=l(511),d=l(3734),m=l(2585),v=l(6242),M=l(6351),x=l(5941),f={"(":0,")":1,"*":2,"+":3,"-":1,".":2},L=131072;function G(H,P){if(H>24)return P.setWinLines||!1;switch(H){case 1:return!!P.restoreWin;case 2:return!!P.minimizeWin;case 3:return!!P.setWinPosition;case 4:return!!P.setWinSizePixels;case 5:return!!P.raiseWin;case 6:return!!P.lowerWin;case 7:return!!P.refreshWin;case 8:return!!P.setWinSizeChars;case 9:return!!P.maximizeWin;case 10:return!!P.fullscreenWin;case 11:return!!P.getWinState;case 13:return!!P.getWinPosition;case 14:return!!P.getWinSizePixels;case 15:return!!P.getScreenSizePixels;case 16:return!!P.getCellSizePixels;case 18:return!!P.getWinSizeChars;case 19:return!!P.getScreenSizeChars;case 20:return!!P.getIconTitle;case 21:return!!P.getWinTitle;case 22:return!!P.pushTitle;case 23:return!!P.popTitle;case 24:return!!P.setWinLines}return!1}var E;(function(H){H[H.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",H[H.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(E||(r.WindowsOptionsReportType=E={}));let w=0;class D extends A.Disposable{getAttrData(){return this._curAttrData}constructor(P,y,B,O,X,W,Z,Q,oe=new p.EscapeSequenceParser){super(),this._bufferService=P,this._charsetService=y,this._coreService=B,this._logService=O,this._optionsService=X,this._oscLinkService=W,this._coreMouseService=Z,this._unicodeService=Q,this._parser=oe,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new u.StringToUtf32,this._utf8Decoder=new u.Utf8ToUtf32,this._workCell=new e.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=t.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=t.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new i.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new i.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new i.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new i.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new i.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new i.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new i.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new i.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new i.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new i.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new i.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new i.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new i.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new F(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(b=>this._activeBuffer=b.activeBuffer)),this._parser.setCsiHandlerFallback((b,N)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(b),params:N.toArray()})}),this._parser.setEscHandlerFallback(b=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(b)})}),this._parser.setExecuteHandlerFallback(b=>{this._logService.debug("Unknown EXECUTE code: ",{code:b})}),this._parser.setOscHandlerFallback((b,N,k)=>{this._logService.debug("Unknown OSC code: ",{identifier:b,action:N,data:k})}),this._parser.setDcsHandlerFallback((b,N,k)=>{N==="HOOK"&&(k=k.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(b),action:N,payload:k})}),this._parser.setPrintHandler((b,N,k)=>this.print(b,N,k)),this._parser.registerCsiHandler({final:"@"},b=>this.insertChars(b)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},b=>this.scrollLeft(b)),this._parser.registerCsiHandler({final:"A"},b=>this.cursorUp(b)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},b=>this.scrollRight(b)),this._parser.registerCsiHandler({final:"B"},b=>this.cursorDown(b)),this._parser.registerCsiHandler({final:"C"},b=>this.cursorForward(b)),this._parser.registerCsiHandler({final:"D"},b=>this.cursorBackward(b)),this._parser.registerCsiHandler({final:"E"},b=>this.cursorNextLine(b)),this._parser.registerCsiHandler({final:"F"},b=>this.cursorPrecedingLine(b)),this._parser.registerCsiHandler({final:"G"},b=>this.cursorCharAbsolute(b)),this._parser.registerCsiHandler({final:"H"},b=>this.cursorPosition(b)),this._parser.registerCsiHandler({final:"I"},b=>this.cursorForwardTab(b)),this._parser.registerCsiHandler({final:"J"},b=>this.eraseInDisplay(b,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},b=>this.eraseInDisplay(b,!0)),this._parser.registerCsiHandler({final:"K"},b=>this.eraseInLine(b,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},b=>this.eraseInLine(b,!0)),this._parser.registerCsiHandler({final:"L"},b=>this.insertLines(b)),this._parser.registerCsiHandler({final:"M"},b=>this.deleteLines(b)),this._parser.registerCsiHandler({final:"P"},b=>this.deleteChars(b)),this._parser.registerCsiHandler({final:"S"},b=>this.scrollUp(b)),this._parser.registerCsiHandler({final:"T"},b=>this.scrollDown(b)),this._parser.registerCsiHandler({final:"X"},b=>this.eraseChars(b)),this._parser.registerCsiHandler({final:"Z"},b=>this.cursorBackwardTab(b)),this._parser.registerCsiHandler({final:"`"},b=>this.charPosAbsolute(b)),this._parser.registerCsiHandler({final:"a"},b=>this.hPositionRelative(b)),this._parser.registerCsiHandler({final:"b"},b=>this.repeatPrecedingCharacter(b)),this._parser.registerCsiHandler({final:"c"},b=>this.sendDeviceAttributesPrimary(b)),this._parser.registerCsiHandler({prefix:">",final:"c"},b=>this.sendDeviceAttributesSecondary(b)),this._parser.registerCsiHandler({final:"d"},b=>this.linePosAbsolute(b)),this._parser.registerCsiHandler({final:"e"},b=>this.vPositionRelative(b)),this._parser.registerCsiHandler({final:"f"},b=>this.hVPosition(b)),this._parser.registerCsiHandler({final:"g"},b=>this.tabClear(b)),this._parser.registerCsiHandler({final:"h"},b=>this.setMode(b)),this._parser.registerCsiHandler({prefix:"?",final:"h"},b=>this.setModePrivate(b)),this._parser.registerCsiHandler({final:"l"},b=>this.resetMode(b)),this._parser.registerCsiHandler({prefix:"?",final:"l"},b=>this.resetModePrivate(b)),this._parser.registerCsiHandler({final:"m"},b=>this.charAttributes(b)),this._parser.registerCsiHandler({final:"n"},b=>this.deviceStatus(b)),this._parser.registerCsiHandler({prefix:"?",final:"n"},b=>this.deviceStatusPrivate(b)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},b=>this.softReset(b)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},b=>this.setCursorStyle(b)),this._parser.registerCsiHandler({final:"r"},b=>this.setScrollRegion(b)),this._parser.registerCsiHandler({final:"s"},b=>this.saveCursor(b)),this._parser.registerCsiHandler({final:"t"},b=>this.windowOptions(b)),this._parser.registerCsiHandler({final:"u"},b=>this.restoreCursor(b)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},b=>this.insertColumns(b)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},b=>this.deleteColumns(b)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},b=>this.selectProtected(b)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},b=>this.requestMode(b,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},b=>this.requestMode(b,!1)),this._parser.setExecuteHandler(s.C0.BEL,()=>this.bell()),this._parser.setExecuteHandler(s.C0.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(s.C0.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(s.C0.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(s.C0.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(s.C0.BS,()=>this.backspace()),this._parser.setExecuteHandler(s.C0.HT,()=>this.tab()),this._parser.setExecuteHandler(s.C0.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(s.C0.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(s.C1.IND,()=>this.index()),this._parser.setExecuteHandler(s.C1.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(s.C1.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new v.OscHandler(b=>(this.setTitle(b),this.setIconName(b),!0))),this._parser.registerOscHandler(1,new v.OscHandler(b=>this.setIconName(b))),this._parser.registerOscHandler(2,new v.OscHandler(b=>this.setTitle(b))),this._parser.registerOscHandler(4,new v.OscHandler(b=>this.setOrReportIndexedColor(b))),this._parser.registerOscHandler(8,new v.OscHandler(b=>this.setHyperlink(b))),this._parser.registerOscHandler(10,new v.OscHandler(b=>this.setOrReportFgColor(b))),this._parser.registerOscHandler(11,new v.OscHandler(b=>this.setOrReportBgColor(b))),this._parser.registerOscHandler(12,new v.OscHandler(b=>this.setOrReportCursorColor(b))),this._parser.registerOscHandler(104,new v.OscHandler(b=>this.restoreIndexedColor(b))),this._parser.registerOscHandler(110,new v.OscHandler(b=>this.restoreFgColor(b))),this._parser.registerOscHandler(111,new v.OscHandler(b=>this.restoreBgColor(b))),this._parser.registerOscHandler(112,new v.OscHandler(b=>this.restoreCursorColor(b))),this._parser.registerEscHandler({final:"7"},()=>this.saveCursor()),this._parser.registerEscHandler({final:"8"},()=>this.restoreCursor()),this._parser.registerEscHandler({final:"D"},()=>this.index()),this._parser.registerEscHandler({final:"E"},()=>this.nextLine()),this._parser.registerEscHandler({final:"H"},()=>this.tabSet()),this._parser.registerEscHandler({final:"M"},()=>this.reverseIndex()),this._parser.registerEscHandler({final:"="},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:">"},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:"c"},()=>this.fullReset()),this._parser.registerEscHandler({final:"n"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"o"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"|"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"}"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"~"},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:"%",final:"@"},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:"%",final:"G"},()=>this.selectDefaultCharset());for(const b in S.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:b},()=>this.selectCharset("("+b)),this._parser.registerEscHandler({intermediates:")",final:b},()=>this.selectCharset(")"+b)),this._parser.registerEscHandler({intermediates:"*",final:b},()=>this.selectCharset("*"+b)),this._parser.registerEscHandler({intermediates:"+",final:b},()=>this.selectCharset("+"+b)),this._parser.registerEscHandler({intermediates:"-",final:b},()=>this.selectCharset("-"+b)),this._parser.registerEscHandler({intermediates:".",final:b},()=>this.selectCharset("."+b)),this._parser.registerEscHandler({intermediates:"/",final:b},()=>this.selectCharset("/"+b));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(b=>(this._logService.error("Parsing error: ",b),b)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new M.DcsHandler((b,N)=>this.requestStatusString(b,N)))}_preserveStack(P,y,B,O){this._parseStack.paused=!0,this._parseStack.cursorStartX=P,this._parseStack.cursorStartY=y,this._parseStack.decodedLength=B,this._parseStack.position=O}_logSlowResolvingAsync(P){this._logService.logLevel<=m.LogLevelEnum.WARN&&Promise.race([P,new Promise((y,B)=>setTimeout(()=>B("#SLOW_TIMEOUT"),5e3))]).catch(y=>{if(y!=="#SLOW_TIMEOUT")throw y;console.warn("async parser handler taking longer than 5000 ms")})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(P,y){let B,O=this._activeBuffer.x,X=this._activeBuffer.y,W=0;const Z=this._parseStack.paused;if(Z){if(B=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,y))return this._logSlowResolvingAsync(B),B;O=this._parseStack.cursorStartX,X=this._parseStack.cursorStartY,this._parseStack.paused=!1,P.length>L&&(W=this._parseStack.position+L)}if(this._logService.logLevel<=m.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+(typeof P=="string"?` "${P}"`:` "${Array.prototype.map.call(P,Q=>String.fromCharCode(Q)).join("")}"`),typeof P=="string"?P.split("").map(Q=>Q.charCodeAt(0)):P),this._parseBuffer.lengthL)for(let Q=W;Q0&&k.getWidth(this._activeBuffer.x-1)===2&&k.setCellFromCodePoint(this._activeBuffer.x-1,0,1,N.fg,N.bg,N.extended);for(let R=y;R=Q){if(oe){for(;this._activeBuffer.x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),k=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=Q-1,X===2)continue}if(b&&(k.insertCells(this._activeBuffer.x,X,this._activeBuffer.getNullCell(N),N),k.getWidth(Q-1)===2&&k.setCellFromCodePoint(Q-1,o.NULL_CELL_CODE,o.NULL_CELL_WIDTH,N.fg,N.bg,N.extended)),k.setCellFromCodePoint(this._activeBuffer.x++,O,X,N.fg,N.bg,N.extended),X>0)for(;--X;)k.setCellFromCodePoint(this._activeBuffer.x++,0,0,N.fg,N.bg,N.extended)}else k.getWidth(this._activeBuffer.x-1)?k.addCodepointToCell(this._activeBuffer.x-1,O):k.addCodepointToCell(this._activeBuffer.x-2,O)}B-y>0&&(k.loadCell(this._activeBuffer.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x0&&k.getWidth(this._activeBuffer.x)===0&&!k.hasContent(this._activeBuffer.x)&&k.setCellFromCodePoint(this._activeBuffer.x,0,1,N.fg,N.bg,N.extended),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(P,y){return P.final!=="t"||P.prefix||P.intermediates?this._parser.registerCsiHandler(P,y):this._parser.registerCsiHandler(P,B=>!G(B.params[0],this._optionsService.rawOptions.windowOptions)||y(B))}registerDcsHandler(P,y){return this._parser.registerDcsHandler(P,new M.DcsHandler(y))}registerEscHandler(P,y){return this._parser.registerEscHandler(P,y)}registerOscHandler(P,y){return this._parser.registerOscHandler(P,new v.OscHandler(y))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var P;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&!((P=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))===null||P===void 0)&&P.isWrapped){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const y=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);y.hasWidth(this._activeBuffer.x)&&!y.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;const P=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-P),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(P=this._bufferService.cols-1){this._activeBuffer.x=Math.min(P,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(P,y){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=P,this._activeBuffer.y=this._activeBuffer.scrollTop+y):(this._activeBuffer.x=P,this._activeBuffer.y=y),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(P,y){this._restrictCursor(),this._setCursor(this._activeBuffer.x+P,this._activeBuffer.y+y)}cursorUp(P){const y=this._activeBuffer.y-this._activeBuffer.scrollTop;return y>=0?this._moveCursor(0,-Math.min(y,P.params[0]||1)):this._moveCursor(0,-(P.params[0]||1)),!0}cursorDown(P){const y=this._activeBuffer.scrollBottom-this._activeBuffer.y;return y>=0?this._moveCursor(0,Math.min(y,P.params[0]||1)):this._moveCursor(0,P.params[0]||1),!0}cursorForward(P){return this._moveCursor(P.params[0]||1,0),!0}cursorBackward(P){return this._moveCursor(-(P.params[0]||1),0),!0}cursorNextLine(P){return this.cursorDown(P),this._activeBuffer.x=0,!0}cursorPrecedingLine(P){return this.cursorUp(P),this._activeBuffer.x=0,!0}cursorCharAbsolute(P){return this._setCursor((P.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(P){return this._setCursor(P.length>=2?(P.params[1]||1)-1:0,(P.params[0]||1)-1),!0}charPosAbsolute(P){return this._setCursor((P.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(P){return this._moveCursor(P.params[0]||1,0),!0}linePosAbsolute(P){return this._setCursor(this._activeBuffer.x,(P.params[0]||1)-1),!0}vPositionRelative(P){return this._moveCursor(0,P.params[0]||1),!0}hVPosition(P){return this.cursorPosition(P),!0}tabClear(P){const y=P.params[0];return y===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:y===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(P){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let y=P.params[0]||1;for(;y--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(P){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let y=P.params[0]||1;for(;y--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(P){const y=P.params[0];return y===1&&(this._curAttrData.bg|=536870912),y!==2&&y!==0||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(P,y,B,O=!1,X=!1){const W=this._activeBuffer.lines.get(this._activeBuffer.ybase+P);W.replaceCells(y,B,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),X),O&&(W.isWrapped=!1)}_resetBufferLine(P,y=!1){const B=this._activeBuffer.lines.get(this._activeBuffer.ybase+P);B&&(B.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),y),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+P),B.isWrapped=!1)}eraseInDisplay(P,y=!1){let B;switch(this._restrictCursor(this._bufferService.cols),P.params[0]){case 0:for(B=this._activeBuffer.y,this._dirtyRowTracker.markDirty(B),this._eraseInBufferLine(B++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,y);B=this._bufferService.cols&&(this._activeBuffer.lines.get(B+1).isWrapped=!1);B--;)this._resetBufferLine(B,y);this._dirtyRowTracker.markDirty(0);break;case 2:for(B=this._bufferService.rows,this._dirtyRowTracker.markDirty(B-1);B--;)this._resetBufferLine(B,y);this._dirtyRowTracker.markDirty(0);break;case 3:const O=this._activeBuffer.lines.length-this._bufferService.rows;O>0&&(this._activeBuffer.lines.trimStart(O),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-O,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-O,0),this._onScroll.fire(0))}return!0}eraseInLine(P,y=!1){switch(this._restrictCursor(this._bufferService.cols),P.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,y);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,y);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,y)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(P){this._restrictCursor();let y=P.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(s.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(s.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(P){return P.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(s.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(s.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(P.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(s.C0.ESC+"[>83;40003;0c")),!0}_is(P){return(this._optionsService.rawOptions.termName+"").indexOf(P)===0}setMode(P){for(let y=0;yq?1:2,R=P.params[0];return Y=R,K=y?R===2?4:R===4?k(W.modes.insertMode):R===12?3:R===20?k(N.convertEol):0:R===1?k(B.applicationCursorKeys):R===3?N.windowOptions.setWinLines?Q===80?2:Q===132?1:0:0:R===6?k(B.origin):R===7?k(B.wraparound):R===8?3:R===9?k(O==="X10"):R===12?k(N.cursorBlink):R===25?k(!W.isCursorHidden):R===45?k(B.reverseWraparound):R===66?k(B.applicationKeypad):R===67?4:R===1e3?k(O==="VT200"):R===1002?k(O==="DRAG"):R===1003?k(O==="ANY"):R===1004?k(B.sendFocus):R===1005?4:R===1006?k(X==="SGR"):R===1015?4:R===1016?k(X==="SGR_PIXELS"):R===1048?1:R===47||R===1047||R===1049?k(oe===b):R===2004?k(B.bracketedPasteMode):0,W.triggerDataEvent(`${s.C0.ESC}[${y?"":"?"}${Y};${K}$y`),!0;var Y,K}_updateAttrColor(P,y,B,O,X){return y===2?(P|=50331648,P&=-16777216,P|=d.AttributeData.fromColorRGB([B,O,X])):y===5&&(P&=-50331904,P|=33554432|255&B),P}_extractColor(P,y,B){const O=[0,0,-1,0,0,0];let X=0,W=0;do{if(O[W+X]=P.params[y+W],P.hasSubParams(y+W)){const Z=P.getSubParams(y+W);let Q=0;do O[1]===5&&(X=1),O[W+Q+1+X]=Z[Q];while(++Q=2||O[1]===2&&W+X>=5)break;O[1]&&(X=1)}while(++W+y5)&&(P=1),y.extended.underlineStyle=P,y.fg|=268435456,P===0&&(y.fg&=-268435457),y.updateExtended()}_processSGR0(P){P.fg=t.DEFAULT_ATTR_DATA.fg,P.bg=t.DEFAULT_ATTR_DATA.bg,P.extended=P.extended.clone(),P.extended.underlineStyle=0,P.extended.underlineColor&=-67108864,P.updateExtended()}charAttributes(P){if(P.length===1&&P.params[0]===0)return this._processSGR0(this._curAttrData),!0;const y=P.length;let B;const O=this._curAttrData;for(let X=0;X=30&&B<=37?(O.fg&=-50331904,O.fg|=16777216|B-30):B>=40&&B<=47?(O.bg&=-50331904,O.bg|=16777216|B-40):B>=90&&B<=97?(O.fg&=-50331904,O.fg|=16777224|B-90):B>=100&&B<=107?(O.bg&=-50331904,O.bg|=16777224|B-100):B===0?this._processSGR0(O):B===1?O.fg|=134217728:B===3?O.bg|=67108864:B===4?(O.fg|=268435456,this._processUnderline(P.hasSubParams(X)?P.getSubParams(X)[0]:1,O)):B===5?O.fg|=536870912:B===7?O.fg|=67108864:B===8?O.fg|=1073741824:B===9?O.fg|=2147483648:B===2?O.bg|=134217728:B===21?this._processUnderline(2,O):B===22?(O.fg&=-134217729,O.bg&=-134217729):B===23?O.bg&=-67108865:B===24?(O.fg&=-268435457,this._processUnderline(0,O)):B===25?O.fg&=-536870913:B===27?O.fg&=-67108865:B===28?O.fg&=-1073741825:B===29?O.fg&=2147483647:B===39?(O.fg&=-67108864,O.fg|=16777215&t.DEFAULT_ATTR_DATA.fg):B===49?(O.bg&=-67108864,O.bg|=16777215&t.DEFAULT_ATTR_DATA.bg):B===38||B===48||B===58?X+=this._extractColor(P,X,O):B===53?O.bg|=1073741824:B===55?O.bg&=-1073741825:B===59?(O.extended=O.extended.clone(),O.extended.underlineColor=-1,O.updateExtended()):B===100?(O.fg&=-67108864,O.fg|=16777215&t.DEFAULT_ATTR_DATA.fg,O.bg&=-67108864,O.bg|=16777215&t.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",B);return!0}deviceStatus(P){switch(P.params[0]){case 5:this._coreService.triggerDataEvent(`${s.C0.ESC}[0n`);break;case 6:const y=this._activeBuffer.y+1,B=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${s.C0.ESC}[${y};${B}R`)}return!0}deviceStatusPrivate(P){if(P.params[0]===6){const y=this._activeBuffer.y+1,B=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${s.C0.ESC}[?${y};${B}R`)}return!0}softReset(P){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=t.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(P){const y=P.params[0]||1;switch(y){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}const B=y%2==1;return this._optionsService.options.cursorBlink=B,!0}setScrollRegion(P){const y=P.params[0]||1;let B;return(P.length<2||(B=P.params[1])>this._bufferService.rows||B===0)&&(B=this._bufferService.rows),B>y&&(this._activeBuffer.scrollTop=y-1,this._activeBuffer.scrollBottom=B-1,this._setCursor(0,0)),!0}windowOptions(P){if(!G(P.params[0],this._optionsService.rawOptions.windowOptions))return!0;const y=P.length>1?P.params[1]:0;switch(P.params[0]){case 14:y!==2&&this._onRequestWindowsOptionsReport.fire(E.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(E.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${s.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:y!==0&&y!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),y!==0&&y!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:y!==0&&y!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),y!==0&&y!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(P){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(P){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(P){return this._windowTitle=P,this._onTitleChange.fire(P),!0}setIconName(P){return this._iconName=P,!0}setOrReportIndexedColor(P){const y=[],B=P.split(";");for(;B.length>1;){const O=B.shift(),X=B.shift();if(/^\d+$/.exec(O)){const W=parseInt(O);if(U(W))if(X==="?")y.push({type:0,index:W});else{const Z=(0,x.parseColor)(X);Z&&y.push({type:1,index:W,color:Z})}}}return y.length&&this._onColor.fire(y),!0}setHyperlink(P){const y=P.split(";");return!(y.length<2)&&(y[1]?this._createHyperlink(y[0],y[1]):!y[0]&&this._finishHyperlink())}_createHyperlink(P,y){this._getCurrentLinkId()&&this._finishHyperlink();const B=P.split(":");let O;const X=B.findIndex(W=>W.startsWith("id="));return X!==-1&&(O=B[X].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:O,uri:y}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(P,y){const B=P.split(";");for(let O=0;O=this._specialColors.length);++O,++y)if(B[O]==="?")this._onColor.fire([{type:0,index:this._specialColors[y]}]);else{const X=(0,x.parseColor)(B[O]);X&&this._onColor.fire([{type:1,index:this._specialColors[y],color:X}])}return!0}setOrReportFgColor(P){return this._setOrReportSpecialColor(P,0)}setOrReportBgColor(P){return this._setOrReportSpecialColor(P,1)}setOrReportCursorColor(P){return this._setOrReportSpecialColor(P,2)}restoreIndexedColor(P){if(!P)return this._onColor.fire([{type:2}]),!0;const y=[],B=P.split(";");for(let O=0;O=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){const P=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,P,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=t.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=t.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(P){return this._charsetService.setgLevel(P),!0}screenAlignmentPattern(){const P=new e.CellData;P.content=4194304|"E".charCodeAt(0),P.fg=this._curAttrData.fg,P.bg=this._curAttrData.bg,this._setCursor(0,0);for(let y=0;y(this._coreService.triggerDataEvent(`${s.C0.ESC}${X}${s.C0.ESC}\\`),!0))(P==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:P==='"p'?'P1$r61;1"p':P==="r"?`P1$r${B.scrollTop+1};${B.scrollBottom+1}r`:P==="m"?"P1$r0m":P===" q"?`P1$r${{block:2,underline:4,bar:6}[O.cursorStyle]-(O.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(P,y){this._dirtyRowTracker.markRangeDirty(P,y)}}r.InputHandler=D;let F=class{constructor(H){this._bufferService=H,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(H){Hthis.end&&(this.end=H)}markRangeDirty(H,P){H>P&&(w=H,H=P,P=w),Hthis.end&&(this.end=P)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function U(H){return 0<=H&&H<256}F=n([g(0,m.IBufferService)],F)},844:(T,r)=>{function l(n){for(const g of n)g.dispose();n.length=0}Object.defineProperty(r,"__esModule",{value:!0}),r.getDisposeArrayDisposable=r.disposeArray=r.toDisposable=r.MutableDisposable=r.Disposable=void 0,r.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const n of this._disposables)n.dispose();this._disposables.length=0}register(n){return this._disposables.push(n),n}unregister(n){const g=this._disposables.indexOf(n);g!==-1&&this._disposables.splice(g,1)}},r.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(n){var g;this._isDisposed||n===this._value||((g=this._value)===null||g===void 0||g.dispose(),this._value=n)}clear(){this.value=void 0}dispose(){var n;this._isDisposed=!0,(n=this._value)===null||n===void 0||n.dispose(),this._value=void 0}},r.toDisposable=function(n){return{dispose:n}},r.disposeArray=l,r.getDisposeArrayDisposable=function(n){return{dispose:()=>l(n)}}},1505:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.FourKeyMap=r.TwoKeyMap=void 0;class l{constructor(){this._data={}}set(g,s,S){this._data[g]||(this._data[g]={}),this._data[g][s]=S}get(g,s){return this._data[g]?this._data[g][s]:void 0}clear(){this._data={}}}r.TwoKeyMap=l,r.FourKeyMap=class{constructor(){this._data=new l}set(n,g,s,S,p){this._data.get(n,g)||this._data.set(n,g,new l),this._data.get(n,g).set(s,S,p)}get(n,g,s,S){var p;return(p=this._data.get(n,g))===null||p===void 0?void 0:p.get(s,S)}clear(){this._data.clear()}}},6114:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.isChromeOS=r.isLinux=r.isWindows=r.isIphone=r.isIpad=r.isMac=r.getSafariVersion=r.isSafari=r.isLegacyEdge=r.isFirefox=r.isNode=void 0,r.isNode=typeof navigator>"u";const l=r.isNode?"node":navigator.userAgent,n=r.isNode?"node":navigator.platform;r.isFirefox=l.includes("Firefox"),r.isLegacyEdge=l.includes("Edge"),r.isSafari=/^((?!chrome|android).)*safari/i.test(l),r.getSafariVersion=function(){if(!r.isSafari)return 0;const g=l.match(/Version\/(\d+)/);return g===null||g.length<2?0:parseInt(g[1])},r.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(n),r.isIpad=n==="iPad",r.isIphone=n==="iPhone",r.isWindows=["Windows","Win16","Win32","WinCE"].includes(n),r.isLinux=n.indexOf("Linux")>=0,r.isChromeOS=/\bCrOS\b/.test(l)},6106:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.SortedList=void 0;let l=0;r.SortedList=class{constructor(n){this._getKey=n,this._array=[]}clear(){this._array.length=0}insert(n){this._array.length!==0?(l=this._search(this._getKey(n)),this._array.splice(l,0,n)):this._array.push(n)}delete(n){if(this._array.length===0)return!1;const g=this._getKey(n);if(g===void 0||(l=this._search(g),l===-1)||this._getKey(this._array[l])!==g)return!1;do if(this._array[l]===n)return this._array.splice(l,1),!0;while(++l=this._array.length)&&this._getKey(this._array[l])===n))do yield this._array[l];while(++l=this._array.length)&&this._getKey(this._array[l])===n))do g(this._array[l]);while(++l=g;){let S=g+s>>1;const p=this._getKey(this._array[S]);if(p>n)s=S-1;else{if(!(p0&&this._getKey(this._array[S-1])===n;)S--;return S}g=S+1}}return g}}},7226:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DebouncedIdleTask=r.IdleTaskQueue=r.PriorityTaskQueue=void 0;const n=l(6114);class g{constructor(){this._tasks=[],this._i=0}enqueue(p){this._tasks.push(p),this._start()}flush(){for(;this._ii)return t-A<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(t-A))}ms`),void this._start();t=i}this.clear()}}class s extends g{_requestCallback(p){return setTimeout(()=>p(this._createDeadline(16)))}_cancelCallback(p){clearTimeout(p)}_createDeadline(p){const A=Date.now()+p;return{timeRemaining:()=>Math.max(0,A-Date.now())}}}r.PriorityTaskQueue=s,r.IdleTaskQueue=!n.isNode&&"requestIdleCallback"in window?class extends g{_requestCallback(S){return requestIdleCallback(S)}_cancelCallback(S){cancelIdleCallback(S)}}:s,r.DebouncedIdleTask=class{constructor(){this._queue=new r.IdleTaskQueue}set(S){this._queue.clear(),this._queue.enqueue(S)}flush(){this._queue.flush()}}},9282:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.updateWindowsModeWrappedState=void 0;const n=l(643);r.updateWindowsModeWrappedState=function(g){const s=g.buffer.lines.get(g.buffer.ybase+g.buffer.y-1),S=s==null?void 0:s.get(g.cols-1),p=g.buffer.lines.get(g.buffer.ybase+g.buffer.y);p&&S&&(p.isWrapped=S[n.CHAR_DATA_CODE_INDEX]!==n.NULL_CELL_CODE&&S[n.CHAR_DATA_CODE_INDEX]!==n.WHITESPACE_CELL_CODE)}},3734:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ExtendedAttrs=r.AttributeData=void 0;class l{constructor(){this.fg=0,this.bg=0,this.extended=new n}static toColorRGB(s){return[s>>>16&255,s>>>8&255,255&s]}static fromColorRGB(s){return(255&s[0])<<16|(255&s[1])<<8|255&s[2]}clone(){const s=new l;return s.fg=this.fg,s.bg=this.bg,s.extended=this.extended.clone(),s}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return(50331648&this.fg)==50331648}isBgRGB(){return(50331648&this.bg)==50331648}isFgPalette(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432}isBgPalette(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432}isFgDefault(){return(50331648&this.fg)==0}isBgDefault(){return(50331648&this.bg)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}r.AttributeData=l;class n{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(s){this._ext=s}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(s){this._ext&=-469762049,this._ext|=s<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(s){this._ext&=-67108864,this._ext|=67108863&s}get urlId(){return this._urlId}set urlId(s){this._urlId=s}constructor(s=0,S=0){this._ext=0,this._urlId=0,this._ext=s,this._urlId=S}clone(){return new n(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}r.ExtendedAttrs=n},9092:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Buffer=r.MAX_BUFFER_SIZE=void 0;const n=l(6349),g=l(7226),s=l(3734),S=l(8437),p=l(4634),A=l(511),u=l(643),t=l(4863),i=l(7116);r.MAX_BUFFER_SIZE=4294967295,r.Buffer=class{constructor(o,e,d){this._hasScrollback=o,this._optionsService=e,this._bufferService=d,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=S.DEFAULT_ATTR_DATA.clone(),this.savedCharset=i.DEFAULT_CHARSET,this.markers=[],this._nullCell=A.CellData.fromCharData([0,u.NULL_CELL_CHAR,u.NULL_CELL_WIDTH,u.NULL_CELL_CODE]),this._whitespaceCell=A.CellData.fromCharData([0,u.WHITESPACE_CELL_CHAR,u.WHITESPACE_CELL_WIDTH,u.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new g.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new n.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(o){return o?(this._nullCell.fg=o.fg,this._nullCell.bg=o.bg,this._nullCell.extended=o.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new s.ExtendedAttrs),this._nullCell}getWhitespaceCell(o){return o?(this._whitespaceCell.fg=o.fg,this._whitespaceCell.bg=o.bg,this._whitespaceCell.extended=o.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new s.ExtendedAttrs),this._whitespaceCell}getBlankLine(o,e){return new S.BufferLine(this._bufferService.cols,this.getNullCell(o),e)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const o=this.ybase+this.y-this.ydisp;return o>=0&&or.MAX_BUFFER_SIZE?r.MAX_BUFFER_SIZE:e}fillViewportRows(o){if(this.lines.length===0){o===void 0&&(o=S.DEFAULT_ATTR_DATA);let e=this._rows;for(;e--;)this.lines.push(this.getBlankLine(o))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new n.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(o,e){const d=this.getNullCell(S.DEFAULT_ATTR_DATA);let m=0;const v=this._getCorrectBufferLength(e);if(v>this.lines.maxLength&&(this.lines.maxLength=v),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+M+1?(this.ybase--,M++,this.ydisp>0&&this.ydisp--):this.lines.push(new S.BufferLine(o,d)));else for(let x=this._rows;x>e;x--)this.lines.length>e+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(v0&&(this.lines.trimStart(x),this.ybase=Math.max(this.ybase-x,0),this.ydisp=Math.max(this.ydisp-x,0),this.savedY=Math.max(this.savedY-x,0)),this.lines.maxLength=v}this.x=Math.min(this.x,o-1),this.y=Math.min(this.y,e-1),M&&(this.y+=M),this.savedX=Math.min(this.savedX,o-1),this.scrollTop=0}if(this.scrollBottom=e-1,this._isReflowEnabled&&(this._reflow(o,e),this._cols>o))for(let M=0;M.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let o=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,o=!1);let e=0;for(;this._memoryCleanupPosition100)return!0;return o}get _isReflowEnabled(){const o=this._optionsService.rawOptions.windowsPty;return o&&o.buildNumber?this._hasScrollback&&o.backend==="conpty"&&o.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(o,e){this._cols!==o&&(o>this._cols?this._reflowLarger(o,e):this._reflowSmaller(o,e))}_reflowLarger(o,e){const d=(0,p.reflowLargerGetLinesToRemove)(this.lines,this._cols,o,this.ybase+this.y,this.getNullCell(S.DEFAULT_ATTR_DATA));if(d.length>0){const m=(0,p.reflowLargerCreateNewLayout)(this.lines,d);(0,p.reflowLargerApplyNewLayout)(this.lines,m.layout),this._reflowLargerAdjustViewport(o,e,m.countRemoved)}}_reflowLargerAdjustViewport(o,e,d){const m=this.getNullCell(S.DEFAULT_ATTR_DATA);let v=d;for(;v-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length=0;M--){let x=this.lines.get(M);if(!x||!x.isWrapped&&x.getTrimmedLength()<=o)continue;const f=[x];for(;x.isWrapped&&M>0;)x=this.lines.get(--M),f.unshift(x);const L=this.ybase+this.y;if(L>=M&&L0&&(m.push({start:M+f.length+v,newLines:F}),v+=F.length),f.push(...F);let U=E.length-1,H=E[U];H===0&&(U--,H=E[U]);let P=f.length-w-1,y=G;for(;P>=0;){const O=Math.min(y,H);if(f[U]===void 0)break;if(f[U].copyCellsFrom(f[P],y-O,H-O,O,!0),H-=O,H===0&&(U--,H=E[U]),y-=O,y===0){P--;const X=Math.max(P,0);y=(0,p.getWrappedLineTrimmedLength)(f,X,this._cols)}}for(let O=0;O0;)this.ybase===0?this.y0){const M=[],x=[];for(let U=0;U=0;U--)if(E&&E.start>L+w){for(let H=E.newLines.length-1;H>=0;H--)this.lines.set(U--,E.newLines[H]);U++,M.push({index:L+1,amount:E.newLines.length}),w+=E.newLines.length,E=m[++G]}else this.lines.set(U,x[L--]);let D=0;for(let U=M.length-1;U>=0;U--)M[U].index+=D,this.lines.onInsertEmitter.fire(M[U]),D+=M[U].amount;const F=Math.max(0,f+v-this.lines.maxLength);F>0&&this.lines.onTrimEmitter.fire(F)}}translateBufferLineToString(o,e,d=0,m){const v=this.lines.get(o);return v?v.translateToString(e,d,m):""}getWrappedRangeForLine(o){let e=o,d=o;for(;e>0&&this.lines.get(e).isWrapped;)e--;for(;d+10;);return o>=this._cols?this._cols-1:o<0?0:o}nextStop(o){for(o==null&&(o=this.x);!this.tabs[++o]&&o=this._cols?this._cols-1:o<0?0:o}clearMarkers(o){this._isClearing=!0;for(let e=0;e{e.line-=d,e.line<0&&e.dispose()})),e.register(this.lines.onInsert(d=>{e.line>=d.index&&(e.line+=d.amount)})),e.register(this.lines.onDelete(d=>{e.line>=d.index&&e.lined.index&&(e.line-=d.amount)})),e.register(e.onDispose(()=>this._removeMarker(e))),e}_removeMarker(o){this._isClearing||this.markers.splice(this.markers.indexOf(o),1)}}},8437:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferLine=r.DEFAULT_ATTR_DATA=void 0;const n=l(3734),g=l(511),s=l(643),S=l(482);r.DEFAULT_ATTR_DATA=Object.freeze(new n.AttributeData);let p=0;class A{constructor(t,i,o=!1){this.isWrapped=o,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*t);const e=i||g.CellData.fromCharData([0,s.NULL_CELL_CHAR,s.NULL_CELL_WIDTH,s.NULL_CELL_CODE]);for(let d=0;d>22,2097152&i?this._combined[t].charCodeAt(this._combined[t].length-1):o]}set(t,i){this._data[3*t+1]=i[s.CHAR_DATA_ATTR_INDEX],i[s.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[t]=i[1],this._data[3*t+0]=2097152|t|i[s.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*t+0]=i[s.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|i[s.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(t){return this._data[3*t+0]>>22}hasWidth(t){return 12582912&this._data[3*t+0]}getFg(t){return this._data[3*t+1]}getBg(t){return this._data[3*t+2]}hasContent(t){return 4194303&this._data[3*t+0]}getCodePoint(t){const i=this._data[3*t+0];return 2097152&i?this._combined[t].charCodeAt(this._combined[t].length-1):2097151&i}isCombined(t){return 2097152&this._data[3*t+0]}getString(t){const i=this._data[3*t+0];return 2097152&i?this._combined[t]:2097151&i?(0,S.stringFromCodePoint)(2097151&i):""}isProtected(t){return 536870912&this._data[3*t+2]}loadCell(t,i){return p=3*t,i.content=this._data[p+0],i.fg=this._data[p+1],i.bg=this._data[p+2],2097152&i.content&&(i.combinedData=this._combined[t]),268435456&i.bg&&(i.extended=this._extendedAttrs[t]),i}setCell(t,i){2097152&i.content&&(this._combined[t]=i.combinedData),268435456&i.bg&&(this._extendedAttrs[t]=i.extended),this._data[3*t+0]=i.content,this._data[3*t+1]=i.fg,this._data[3*t+2]=i.bg}setCellFromCodePoint(t,i,o,e,d,m){268435456&d&&(this._extendedAttrs[t]=m),this._data[3*t+0]=i|o<<22,this._data[3*t+1]=e,this._data[3*t+2]=d}addCodepointToCell(t,i){let o=this._data[3*t+0];2097152&o?this._combined[t]+=(0,S.stringFromCodePoint)(i):(2097151&o?(this._combined[t]=(0,S.stringFromCodePoint)(2097151&o)+(0,S.stringFromCodePoint)(i),o&=-2097152,o|=2097152):o=i|4194304,this._data[3*t+0]=o)}insertCells(t,i,o,e){if((t%=this.length)&&this.getWidth(t-1)===2&&this.setCellFromCodePoint(t-1,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new n.ExtendedAttrs),i=0;--m)this.setCell(t+i+m,this.loadCell(t+m,d));for(let m=0;mthis.length){if(this._data.buffer.byteLength>=4*o)this._data=new Uint32Array(this._data.buffer,0,o);else{const e=new Uint32Array(o);e.set(this._data),this._data=e}for(let e=this.length;e=t&&delete this._combined[v]}const d=Object.keys(this._extendedAttrs);for(let m=0;m=t&&delete this._extendedAttrs[v]}}return this.length=t,4*o*2=0;--t)if(4194303&this._data[3*t+0])return t+(this._data[3*t+0]>>22);return 0}getNoBgTrimmedLength(){for(let t=this.length-1;t>=0;--t)if(4194303&this._data[3*t+0]||50331648&this._data[3*t+2])return t+(this._data[3*t+0]>>22);return 0}copyCellsFrom(t,i,o,e,d){const m=t._data;if(d)for(let M=e-1;M>=0;M--){for(let x=0;x<3;x++)this._data[3*(o+M)+x]=m[3*(i+M)+x];268435456&m[3*(i+M)+2]&&(this._extendedAttrs[o+M]=t._extendedAttrs[i+M])}else for(let M=0;M=i&&(this._combined[x-i+o]=t._combined[x])}}translateToString(t=!1,i=0,o=this.length){t&&(o=Math.min(o,this.getTrimmedLength()));let e="";for(;i>22||1}return e}}r.BufferLine=A},4841:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.getRangeLength=void 0,r.getRangeLength=function(l,n){if(l.start.y>l.end.y)throw new Error(`Buffer range end (${l.end.x}, ${l.end.y}) cannot be before start (${l.start.x}, ${l.start.y})`);return n*(l.end.y-l.start.y)+(l.end.x-l.start.x+1)}},4634:(T,r)=>{function l(n,g,s){if(g===n.length-1)return n[g].getTrimmedLength();const S=!n[g].hasContent(s-1)&&n[g].getWidth(s-1)===1,p=n[g+1].getWidth(0)===2;return S&&p?s-1:s}Object.defineProperty(r,"__esModule",{value:!0}),r.getWrappedLineTrimmedLength=r.reflowSmallerGetNewLineLengths=r.reflowLargerApplyNewLayout=r.reflowLargerCreateNewLayout=r.reflowLargerGetLinesToRemove=void 0,r.reflowLargerGetLinesToRemove=function(n,g,s,S,p){const A=[];for(let u=0;u=u&&S0&&(x>e||o[x].getTrimmedLength()===0);x--)M++;M>0&&(A.push(u+o.length-M),A.push(M)),u+=o.length-1}return A},r.reflowLargerCreateNewLayout=function(n,g){const s=[];let S=0,p=g[S],A=0;for(let u=0;ul(n,o,g)).reduce((i,o)=>i+o);let A=0,u=0,t=0;for(;ti&&(A-=i,u++);const o=n[u].getWidth(A-1)===2;o&&A--;const e=o?s-1:s;S.push(e),t+=e}return S},r.getWrappedLineTrimmedLength=l},5295:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferSet=void 0;const n=l(8460),g=l(844),s=l(9092);class S extends g.Disposable{constructor(A,u){super(),this._optionsService=A,this._bufferService=u,this._onBufferActivate=this.register(new n.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.resize(this._bufferService.cols,this._bufferService.rows))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",()=>this.setupTabStops()))}reset(){this._normal=new s.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new s.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(A){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(A),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(A,u){this._normal.resize(A,u),this._alt.resize(A,u),this.setupTabStops(A)}setupTabStops(A){this._normal.setupTabStops(A),this._alt.setupTabStops(A)}}r.BufferSet=S},511:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CellData=void 0;const n=l(482),g=l(643),s=l(3734);class S extends s.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new s.ExtendedAttrs,this.combinedData=""}static fromCharData(A){const u=new S;return u.setFromCharData(A),u}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,n.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(A){this.fg=A[g.CHAR_DATA_ATTR_INDEX],this.bg=0;let u=!1;if(A[g.CHAR_DATA_CHAR_INDEX].length>2)u=!0;else if(A[g.CHAR_DATA_CHAR_INDEX].length===2){const t=A[g.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=t&&t<=56319){const i=A[g.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=i&&i<=57343?this.content=1024*(t-55296)+i-56320+65536|A[g.CHAR_DATA_WIDTH_INDEX]<<22:u=!0}else u=!0}else this.content=A[g.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|A[g.CHAR_DATA_WIDTH_INDEX]<<22;u&&(this.combinedData=A[g.CHAR_DATA_CHAR_INDEX],this.content=2097152|A[g.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}r.CellData=S},643:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.WHITESPACE_CELL_CODE=r.WHITESPACE_CELL_WIDTH=r.WHITESPACE_CELL_CHAR=r.NULL_CELL_CODE=r.NULL_CELL_WIDTH=r.NULL_CELL_CHAR=r.CHAR_DATA_CODE_INDEX=r.CHAR_DATA_WIDTH_INDEX=r.CHAR_DATA_CHAR_INDEX=r.CHAR_DATA_ATTR_INDEX=r.DEFAULT_EXT=r.DEFAULT_ATTR=r.DEFAULT_COLOR=void 0,r.DEFAULT_COLOR=0,r.DEFAULT_ATTR=256|r.DEFAULT_COLOR<<9,r.DEFAULT_EXT=0,r.CHAR_DATA_ATTR_INDEX=0,r.CHAR_DATA_CHAR_INDEX=1,r.CHAR_DATA_WIDTH_INDEX=2,r.CHAR_DATA_CODE_INDEX=3,r.NULL_CELL_CHAR="",r.NULL_CELL_WIDTH=1,r.NULL_CELL_CODE=0,r.WHITESPACE_CELL_CHAR=" ",r.WHITESPACE_CELL_WIDTH=1,r.WHITESPACE_CELL_CODE=32},4863:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Marker=void 0;const n=l(8460),g=l(844);class s{get id(){return this._id}constructor(p){this.line=p,this.isDisposed=!1,this._disposables=[],this._id=s._nextId++,this._onDispose=this.register(new n.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,g.disposeArray)(this._disposables),this._disposables.length=0)}register(p){return this._disposables.push(p),p}}r.Marker=s,s._nextId=1},7116:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_CHARSET=r.CHARSETS=void 0,r.CHARSETS={},r.DEFAULT_CHARSET=r.CHARSETS.B,r.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},r.CHARSETS.A={"#":"\xA3"},r.CHARSETS.B=void 0,r.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},r.CHARSETS.C=r.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},r.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},r.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},r.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},r.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},r.CHARSETS.E=r.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},r.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},r.CHARSETS.H=r.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},r.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},2584:(T,r)=>{var l,n,g;Object.defineProperty(r,"__esModule",{value:!0}),r.C1_ESCAPED=r.C1=r.C0=void 0,function(s){s.NUL="\0",s.SOH="",s.STX="",s.ETX="",s.EOT="",s.ENQ="",s.ACK="",s.BEL="\x07",s.BS="\b",s.HT=" ",s.LF=` +`,s.VT="\v",s.FF="\f",s.CR="\r",s.SO="",s.SI="",s.DLE="",s.DC1="",s.DC2="",s.DC3="",s.DC4="",s.NAK="",s.SYN="",s.ETB="",s.CAN="",s.EM="",s.SUB="",s.ESC="\x1B",s.FS="",s.GS="",s.RS="",s.US="",s.SP=" ",s.DEL="\x7F"}(l||(r.C0=l={})),function(s){s.PAD="\x80",s.HOP="\x81",s.BPH="\x82",s.NBH="\x83",s.IND="\x84",s.NEL="\x85",s.SSA="\x86",s.ESA="\x87",s.HTS="\x88",s.HTJ="\x89",s.VTS="\x8A",s.PLD="\x8B",s.PLU="\x8C",s.RI="\x8D",s.SS2="\x8E",s.SS3="\x8F",s.DCS="\x90",s.PU1="\x91",s.PU2="\x92",s.STS="\x93",s.CCH="\x94",s.MW="\x95",s.SPA="\x96",s.EPA="\x97",s.SOS="\x98",s.SGCI="\x99",s.SCI="\x9A",s.CSI="\x9B",s.ST="\x9C",s.OSC="\x9D",s.PM="\x9E",s.APC="\x9F"}(n||(r.C1=n={})),function(s){s.ST=`${l.ESC}\\`}(g||(r.C1_ESCAPED=g={}))},7399:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.evaluateKeyboardEvent=void 0;const n=l(2584),g={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};r.evaluateKeyboardEvent=function(s,S,p,A){const u={type:0,cancel:!1,key:void 0},t=(s.shiftKey?1:0)|(s.altKey?2:0)|(s.ctrlKey?4:0)|(s.metaKey?8:0);switch(s.keyCode){case 0:s.key==="UIKeyInputUpArrow"?u.key=S?n.C0.ESC+"OA":n.C0.ESC+"[A":s.key==="UIKeyInputLeftArrow"?u.key=S?n.C0.ESC+"OD":n.C0.ESC+"[D":s.key==="UIKeyInputRightArrow"?u.key=S?n.C0.ESC+"OC":n.C0.ESC+"[C":s.key==="UIKeyInputDownArrow"&&(u.key=S?n.C0.ESC+"OB":n.C0.ESC+"[B");break;case 8:if(s.altKey){u.key=n.C0.ESC+n.C0.DEL;break}u.key=n.C0.DEL;break;case 9:if(s.shiftKey){u.key=n.C0.ESC+"[Z";break}u.key=n.C0.HT,u.cancel=!0;break;case 13:u.key=s.altKey?n.C0.ESC+n.C0.CR:n.C0.CR,u.cancel=!0;break;case 27:u.key=n.C0.ESC,s.altKey&&(u.key=n.C0.ESC+n.C0.ESC),u.cancel=!0;break;case 37:if(s.metaKey)break;t?(u.key=n.C0.ESC+"[1;"+(t+1)+"D",u.key===n.C0.ESC+"[1;3D"&&(u.key=n.C0.ESC+(p?"b":"[1;5D"))):u.key=S?n.C0.ESC+"OD":n.C0.ESC+"[D";break;case 39:if(s.metaKey)break;t?(u.key=n.C0.ESC+"[1;"+(t+1)+"C",u.key===n.C0.ESC+"[1;3C"&&(u.key=n.C0.ESC+(p?"f":"[1;5C"))):u.key=S?n.C0.ESC+"OC":n.C0.ESC+"[C";break;case 38:if(s.metaKey)break;t?(u.key=n.C0.ESC+"[1;"+(t+1)+"A",p||u.key!==n.C0.ESC+"[1;3A"||(u.key=n.C0.ESC+"[1;5A")):u.key=S?n.C0.ESC+"OA":n.C0.ESC+"[A";break;case 40:if(s.metaKey)break;t?(u.key=n.C0.ESC+"[1;"+(t+1)+"B",p||u.key!==n.C0.ESC+"[1;3B"||(u.key=n.C0.ESC+"[1;5B")):u.key=S?n.C0.ESC+"OB":n.C0.ESC+"[B";break;case 45:s.shiftKey||s.ctrlKey||(u.key=n.C0.ESC+"[2~");break;case 46:u.key=t?n.C0.ESC+"[3;"+(t+1)+"~":n.C0.ESC+"[3~";break;case 36:u.key=t?n.C0.ESC+"[1;"+(t+1)+"H":S?n.C0.ESC+"OH":n.C0.ESC+"[H";break;case 35:u.key=t?n.C0.ESC+"[1;"+(t+1)+"F":S?n.C0.ESC+"OF":n.C0.ESC+"[F";break;case 33:s.shiftKey?u.type=2:s.ctrlKey?u.key=n.C0.ESC+"[5;"+(t+1)+"~":u.key=n.C0.ESC+"[5~";break;case 34:s.shiftKey?u.type=3:s.ctrlKey?u.key=n.C0.ESC+"[6;"+(t+1)+"~":u.key=n.C0.ESC+"[6~";break;case 112:u.key=t?n.C0.ESC+"[1;"+(t+1)+"P":n.C0.ESC+"OP";break;case 113:u.key=t?n.C0.ESC+"[1;"+(t+1)+"Q":n.C0.ESC+"OQ";break;case 114:u.key=t?n.C0.ESC+"[1;"+(t+1)+"R":n.C0.ESC+"OR";break;case 115:u.key=t?n.C0.ESC+"[1;"+(t+1)+"S":n.C0.ESC+"OS";break;case 116:u.key=t?n.C0.ESC+"[15;"+(t+1)+"~":n.C0.ESC+"[15~";break;case 117:u.key=t?n.C0.ESC+"[17;"+(t+1)+"~":n.C0.ESC+"[17~";break;case 118:u.key=t?n.C0.ESC+"[18;"+(t+1)+"~":n.C0.ESC+"[18~";break;case 119:u.key=t?n.C0.ESC+"[19;"+(t+1)+"~":n.C0.ESC+"[19~";break;case 120:u.key=t?n.C0.ESC+"[20;"+(t+1)+"~":n.C0.ESC+"[20~";break;case 121:u.key=t?n.C0.ESC+"[21;"+(t+1)+"~":n.C0.ESC+"[21~";break;case 122:u.key=t?n.C0.ESC+"[23;"+(t+1)+"~":n.C0.ESC+"[23~";break;case 123:u.key=t?n.C0.ESC+"[24;"+(t+1)+"~":n.C0.ESC+"[24~";break;default:if(!s.ctrlKey||s.shiftKey||s.altKey||s.metaKey)if(p&&!A||!s.altKey||s.metaKey)!p||s.altKey||s.ctrlKey||s.shiftKey||!s.metaKey?s.key&&!s.ctrlKey&&!s.altKey&&!s.metaKey&&s.keyCode>=48&&s.key.length===1?u.key=s.key:s.key&&s.ctrlKey&&(s.key==="_"&&(u.key=n.C0.US),s.key==="@"&&(u.key=n.C0.NUL)):s.keyCode===65&&(u.type=1);else{const i=g[s.keyCode],o=i==null?void 0:i[s.shiftKey?1:0];if(o)u.key=n.C0.ESC+o;else if(s.keyCode>=65&&s.keyCode<=90){const e=s.ctrlKey?s.keyCode-64:s.keyCode+32;let d=String.fromCharCode(e);s.shiftKey&&(d=d.toUpperCase()),u.key=n.C0.ESC+d}else if(s.keyCode===32)u.key=n.C0.ESC+(s.ctrlKey?n.C0.NUL:" ");else if(s.key==="Dead"&&s.code.startsWith("Key")){let e=s.code.slice(3,4);s.shiftKey||(e=e.toLowerCase()),u.key=n.C0.ESC+e,u.cancel=!0}}else s.keyCode>=65&&s.keyCode<=90?u.key=String.fromCharCode(s.keyCode-64):s.keyCode===32?u.key=n.C0.NUL:s.keyCode>=51&&s.keyCode<=55?u.key=String.fromCharCode(s.keyCode-51+27):s.keyCode===56?u.key=n.C0.DEL:s.keyCode===219?u.key=n.C0.ESC:s.keyCode===220?u.key=n.C0.FS:s.keyCode===221&&(u.key=n.C0.GS)}return u}},482:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Utf8ToUtf32=r.StringToUtf32=r.utf32ToString=r.stringFromCodePoint=void 0,r.stringFromCodePoint=function(l){return l>65535?(l-=65536,String.fromCharCode(55296+(l>>10))+String.fromCharCode(l%1024+56320)):String.fromCharCode(l)},r.utf32ToString=function(l,n=0,g=l.length){let s="";for(let S=n;S65535?(p-=65536,s+=String.fromCharCode(55296+(p>>10))+String.fromCharCode(p%1024+56320)):s+=String.fromCharCode(p)}return s},r.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(l,n){const g=l.length;if(!g)return 0;let s=0,S=0;if(this._interim){const p=l.charCodeAt(S++);56320<=p&&p<=57343?n[s++]=1024*(this._interim-55296)+p-56320+65536:(n[s++]=this._interim,n[s++]=p),this._interim=0}for(let p=S;p=g)return this._interim=A,s;const u=l.charCodeAt(p);56320<=u&&u<=57343?n[s++]=1024*(A-55296)+u-56320+65536:(n[s++]=A,n[s++]=u)}else A!==65279&&(n[s++]=A)}return s}},r.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(l,n){const g=l.length;if(!g)return 0;let s,S,p,A,u=0,t=0,i=0;if(this.interim[0]){let d=!1,m=this.interim[0];m&=(224&m)==192?31:(240&m)==224?15:7;let v,M=0;for(;(v=63&this.interim[++M])&&M<4;)m<<=6,m|=v;const x=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,f=x-M;for(;i=g)return 0;if(v=l[i++],(192&v)!=128){i--,d=!0;break}this.interim[M++]=v,m<<=6,m|=63&v}d||(x===2?m<128?i--:n[u++]=m:x===3?m<2048||m>=55296&&m<=57343||m===65279||(n[u++]=m):m<65536||m>1114111||(n[u++]=m)),this.interim.fill(0)}const o=g-4;let e=i;for(;e=g)return this.interim[0]=s,u;if(S=l[e++],(192&S)!=128){e--;continue}if(t=(31&s)<<6|63&S,t<128){e--;continue}n[u++]=t}else if((240&s)==224){if(e>=g)return this.interim[0]=s,u;if(S=l[e++],(192&S)!=128){e--;continue}if(e>=g)return this.interim[0]=s,this.interim[1]=S,u;if(p=l[e++],(192&p)!=128){e--;continue}if(t=(15&s)<<12|(63&S)<<6|63&p,t<2048||t>=55296&&t<=57343||t===65279)continue;n[u++]=t}else if((248&s)==240){if(e>=g)return this.interim[0]=s,u;if(S=l[e++],(192&S)!=128){e--;continue}if(e>=g)return this.interim[0]=s,this.interim[1]=S,u;if(p=l[e++],(192&p)!=128){e--;continue}if(e>=g)return this.interim[0]=s,this.interim[1]=S,this.interim[2]=p,u;if(A=l[e++],(192&A)!=128){e--;continue}if(t=(7&s)<<18|(63&S)<<12|(63&p)<<6|63&A,t<65536||t>1114111)continue;n[u++]=t}}return u}}},225:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeV6=void 0;const l=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],n=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let g;r.UnicodeV6=class{constructor(){if(this.version="6",!g){g=new Uint8Array(65536),g.fill(1),g[0]=0,g.fill(0,1,32),g.fill(0,127,160),g.fill(2,4352,4448),g[9001]=2,g[9002]=2,g.fill(2,11904,42192),g[12351]=1,g.fill(2,44032,55204),g.fill(2,63744,64256),g.fill(2,65040,65050),g.fill(2,65072,65136),g.fill(2,65280,65377),g.fill(2,65504,65511);for(let s=0;sp[t][1])return!1;for(;t>=u;)if(A=u+t>>1,S>p[A][1])u=A+1;else{if(!(S=131072&&s<=196605||s>=196608&&s<=262141?2:1}}},5981:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.WriteBuffer=void 0;const n=l(8460),g=l(844);class s extends g.Disposable{constructor(p){super(),this._action=p,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new n.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(p,A){if(A!==void 0&&this._syncCalls>A)return void(this._syncCalls=0);if(this._pendingData+=p.length,this._writeBuffer.push(p),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let u;for(this._isSyncWriting=!0;u=this._writeBuffer.shift();){this._action(u);const t=this._callbacks.shift();t&&t()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(p,A){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=p.length,this._writeBuffer.push(p),this._callbacks.push(A),void this._innerWrite();setTimeout(()=>this._innerWrite())}this._pendingData+=p.length,this._writeBuffer.push(p),this._callbacks.push(A)}_innerWrite(p=0,A=!0){const u=p||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const t=this._writeBuffer[this._bufferOffset],i=this._action(t,A);if(i){const e=d=>Date.now()-u>=12?setTimeout(()=>this._innerWrite(0,d)):this._innerWrite(u,d);return void i.catch(d=>(queueMicrotask(()=>{throw d}),Promise.resolve(!1))).then(e)}const o=this._callbacks[this._bufferOffset];if(o&&o(),this._bufferOffset++,this._pendingData-=t.length,Date.now()-u>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}r.WriteBuffer=s},5941:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.toRgbString=r.parseColor=void 0;const l=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,n=/^[\da-f]+$/;function g(s,S){const p=s.toString(16),A=p.length<2?"0"+p:p;switch(S){case 4:return p[0];case 8:return A;case 12:return(A+A).slice(0,3);default:return A+A}}r.parseColor=function(s){if(!s)return;let S=s.toLowerCase();if(S.indexOf("rgb:")===0){S=S.slice(4);const p=l.exec(S);if(p){const A=p[1]?15:p[4]?255:p[7]?4095:65535;return[Math.round(parseInt(p[1]||p[4]||p[7]||p[10],16)/A*255),Math.round(parseInt(p[2]||p[5]||p[8]||p[11],16)/A*255),Math.round(parseInt(p[3]||p[6]||p[9]||p[12],16)/A*255)]}}else if(S.indexOf("#")===0&&(S=S.slice(1),n.exec(S)&&[3,6,9,12].includes(S.length))){const p=S.length/3,A=[0,0,0];for(let u=0;u<3;++u){const t=parseInt(S.slice(p*u,p*u+p),16);A[u]=p===1?t<<4:p===2?t:p===3?t>>4:t>>8}return A}},r.toRgbString=function(s,S=16){const[p,A,u]=s;return`rgb:${g(p,S)}/${g(A,S)}/${g(u,S)}`}},5770:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.PAYLOAD_LIMIT=void 0,r.PAYLOAD_LIMIT=1e7},6351:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DcsHandler=r.DcsParser=void 0;const n=l(482),g=l(8742),s=l(5770),S=[];r.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=S,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=S}registerHandler(A,u){this._handlers[A]===void 0&&(this._handlers[A]=[]);const t=this._handlers[A];return t.push(u),{dispose:()=>{const i=t.indexOf(u);i!==-1&&t.splice(i,1)}}}clearHandler(A){this._handlers[A]&&delete this._handlers[A]}setHandlerFallback(A){this._handlerFb=A}reset(){if(this._active.length)for(let A=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;A>=0;--A)this._active[A].unhook(!1);this._stack.paused=!1,this._active=S,this._ident=0}hook(A,u){if(this.reset(),this._ident=A,this._active=this._handlers[A]||S,this._active.length)for(let t=this._active.length-1;t>=0;t--)this._active[t].hook(u);else this._handlerFb(this._ident,"HOOK",u)}put(A,u,t){if(this._active.length)for(let i=this._active.length-1;i>=0;i--)this._active[i].put(A,u,t);else this._handlerFb(this._ident,"PUT",(0,n.utf32ToString)(A,u,t))}unhook(A,u=!0){if(this._active.length){let t=!1,i=this._active.length-1,o=!1;if(this._stack.paused&&(i=this._stack.loopPosition-1,t=u,o=this._stack.fallThrough,this._stack.paused=!1),!o&&t===!1){for(;i>=0&&(t=this._active[i].unhook(A),t!==!0);i--)if(t instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!1,t;i--}for(;i>=0;i--)if(t=this._active[i].unhook(!1),t instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=i,this._stack.fallThrough=!0,t}else this._handlerFb(this._ident,"UNHOOK",A);this._active=S,this._ident=0}};const p=new g.Params;p.addParam(0),r.DcsHandler=class{constructor(A){this._handler=A,this._data="",this._params=p,this._hitLimit=!1}hook(A){this._params=A.length>1||A.params[0]?A.clone():p,this._data="",this._hitLimit=!1}put(A,u,t){this._hitLimit||(this._data+=(0,n.utf32ToString)(A,u,t),this._data.length>s.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(A){let u=!1;if(this._hitLimit)u=!1;else if(A&&(u=this._handler(this._data,this._params),u instanceof Promise))return u.then(t=>(this._params=p,this._data="",this._hitLimit=!1,t));return this._params=p,this._data="",this._hitLimit=!1,u}}},2015:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.EscapeSequenceParser=r.VT500_TRANSITION_TABLE=r.TransitionTable=void 0;const n=l(844),g=l(8742),s=l(6242),S=l(6351);class p{constructor(i){this.table=new Uint8Array(i)}setDefault(i,o){this.table.fill(i<<4|o)}add(i,o,e,d){this.table[o<<8|i]=e<<4|d}addMany(i,o,e,d){for(let m=0;mx),o=(M,x)=>i.slice(M,x),e=o(32,127),d=o(0,24);d.push(25),d.push.apply(d,o(28,32));const m=o(0,14);let v;for(v in t.setDefault(1,0),t.addMany(e,0,2,0),m)t.addMany([24,26,153,154],v,3,0),t.addMany(o(128,144),v,3,0),t.addMany(o(144,152),v,3,0),t.add(156,v,0,0),t.add(27,v,11,1),t.add(157,v,4,8),t.addMany([152,158,159],v,0,7),t.add(155,v,11,3),t.add(144,v,11,9);return t.addMany(d,0,3,0),t.addMany(d,1,3,1),t.add(127,1,0,1),t.addMany(d,8,0,8),t.addMany(d,3,3,3),t.add(127,3,0,3),t.addMany(d,4,3,4),t.add(127,4,0,4),t.addMany(d,6,3,6),t.addMany(d,5,3,5),t.add(127,5,0,5),t.addMany(d,2,3,2),t.add(127,2,0,2),t.add(93,1,4,8),t.addMany(e,8,5,8),t.add(127,8,5,8),t.addMany([156,27,24,26,7],8,6,0),t.addMany(o(28,32),8,0,8),t.addMany([88,94,95],1,0,7),t.addMany(e,7,0,7),t.addMany(d,7,0,7),t.add(156,7,0,0),t.add(127,7,0,7),t.add(91,1,11,3),t.addMany(o(64,127),3,7,0),t.addMany(o(48,60),3,8,4),t.addMany([60,61,62,63],3,9,4),t.addMany(o(48,60),4,8,4),t.addMany(o(64,127),4,7,0),t.addMany([60,61,62,63],4,0,6),t.addMany(o(32,64),6,0,6),t.add(127,6,0,6),t.addMany(o(64,127),6,0,0),t.addMany(o(32,48),3,9,5),t.addMany(o(32,48),5,9,5),t.addMany(o(48,64),5,0,6),t.addMany(o(64,127),5,7,0),t.addMany(o(32,48),4,9,5),t.addMany(o(32,48),1,9,2),t.addMany(o(32,48),2,9,2),t.addMany(o(48,127),2,10,0),t.addMany(o(48,80),1,10,0),t.addMany(o(81,88),1,10,0),t.addMany([89,90,92],1,10,0),t.addMany(o(96,127),1,10,0),t.add(80,1,11,9),t.addMany(d,9,0,9),t.add(127,9,0,9),t.addMany(o(28,32),9,0,9),t.addMany(o(32,48),9,9,12),t.addMany(o(48,60),9,8,10),t.addMany([60,61,62,63],9,9,10),t.addMany(d,11,0,11),t.addMany(o(32,128),11,0,11),t.addMany(o(28,32),11,0,11),t.addMany(d,10,0,10),t.add(127,10,0,10),t.addMany(o(28,32),10,0,10),t.addMany(o(48,60),10,8,10),t.addMany([60,61,62,63],10,0,11),t.addMany(o(32,48),10,9,12),t.addMany(d,12,0,12),t.add(127,12,0,12),t.addMany(o(28,32),12,0,12),t.addMany(o(32,48),12,9,12),t.addMany(o(48,64),12,0,11),t.addMany(o(64,127),12,12,13),t.addMany(o(64,127),10,12,13),t.addMany(o(64,127),9,12,13),t.addMany(d,13,13,13),t.addMany(e,13,13,13),t.add(127,13,0,13),t.addMany([27,156,24,26],13,14,0),t.add(A,0,2,0),t.add(A,8,5,8),t.add(A,6,0,6),t.add(A,11,0,11),t.add(A,13,13,13),t}();class u extends n.Disposable{constructor(i=r.VT500_TRANSITION_TABLE){super(),this._transitions=i,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new g.Params,this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._printHandlerFb=(o,e,d)=>{},this._executeHandlerFb=o=>{},this._csiHandlerFb=(o,e)=>{},this._escHandlerFb=o=>{},this._errorHandlerFb=o=>o,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,n.toDisposable)(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this.register(new s.OscParser),this._dcsParser=this.register(new S.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(i,o=[64,126]){let e=0;if(i.prefix){if(i.prefix.length>1)throw new Error("only one byte as prefix supported");if(e=i.prefix.charCodeAt(0),e&&60>e||e>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(i.intermediates){if(i.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let m=0;mv||v>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");e<<=8,e|=v}}if(i.final.length!==1)throw new Error("final must be a single byte");const d=i.final.charCodeAt(0);if(o[0]>d||d>o[1])throw new Error(`final must be in range ${o[0]} .. ${o[1]}`);return e<<=8,e|=d,e}identToString(i){const o=[];for(;i;)o.push(String.fromCharCode(255&i)),i>>=8;return o.reverse().join("")}setPrintHandler(i){this._printHandler=i}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(i,o){const e=this._identifier(i,[48,126]);this._escHandlers[e]===void 0&&(this._escHandlers[e]=[]);const d=this._escHandlers[e];return d.push(o),{dispose:()=>{const m=d.indexOf(o);m!==-1&&d.splice(m,1)}}}clearEscHandler(i){this._escHandlers[this._identifier(i,[48,126])]&&delete this._escHandlers[this._identifier(i,[48,126])]}setEscHandlerFallback(i){this._escHandlerFb=i}setExecuteHandler(i,o){this._executeHandlers[i.charCodeAt(0)]=o}clearExecuteHandler(i){this._executeHandlers[i.charCodeAt(0)]&&delete this._executeHandlers[i.charCodeAt(0)]}setExecuteHandlerFallback(i){this._executeHandlerFb=i}registerCsiHandler(i,o){const e=this._identifier(i);this._csiHandlers[e]===void 0&&(this._csiHandlers[e]=[]);const d=this._csiHandlers[e];return d.push(o),{dispose:()=>{const m=d.indexOf(o);m!==-1&&d.splice(m,1)}}}clearCsiHandler(i){this._csiHandlers[this._identifier(i)]&&delete this._csiHandlers[this._identifier(i)]}setCsiHandlerFallback(i){this._csiHandlerFb=i}registerDcsHandler(i,o){return this._dcsParser.registerHandler(this._identifier(i),o)}clearDcsHandler(i){this._dcsParser.clearHandler(this._identifier(i))}setDcsHandlerFallback(i){this._dcsParser.setHandlerFallback(i)}registerOscHandler(i,o){return this._oscParser.registerHandler(i,o)}clearOscHandler(i){this._oscParser.clearHandler(i)}setOscHandlerFallback(i){this._oscParser.setHandlerFallback(i)}setErrorHandler(i){this._errorHandler=i}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(i,o,e,d,m){this._parseStack.state=i,this._parseStack.handlers=o,this._parseStack.handlerPos=e,this._parseStack.transition=d,this._parseStack.chunkPos=m}parse(i,o,e){let d,m=0,v=0,M=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,M=this._parseStack.chunkPos+1;else{if(e===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const x=this._parseStack.handlers;let f=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(e===!1&&f>-1){for(;f>=0&&(d=x[f](this._params),d!==!0);f--)if(d instanceof Promise)return this._parseStack.handlerPos=f,d}this._parseStack.handlers=[];break;case 4:if(e===!1&&f>-1){for(;f>=0&&(d=x[f](),d!==!0);f--)if(d instanceof Promise)return this._parseStack.handlerPos=f,d}this._parseStack.handlers=[];break;case 6:if(m=i[this._parseStack.chunkPos],d=this._dcsParser.unhook(m!==24&&m!==26,e),d)return d;m===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(m=i[this._parseStack.chunkPos],d=this._oscParser.end(m!==24&&m!==26,e),d)return d;m===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,M=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(let x=M;x>4){case 2:for(let w=x+1;;++w){if(w>=o||(m=i[w])<32||m>126&&m=o||(m=i[w])<32||m>126&&m=o||(m=i[w])<32||m>126&&m=o||(m=i[w])<32||m>126&&m=0&&(d=f[L](this._params),d!==!0);L--)if(d instanceof Promise)return this._preserveStack(3,f,L,v,x),d;L<0&&this._csiHandlerFb(this._collect<<8|m,this._params),this.precedingCodepoint=0;break;case 8:do switch(m){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(m-48)}while(++x47&&m<60);x--;break;case 9:this._collect<<=8,this._collect|=m;break;case 10:const G=this._escHandlers[this._collect<<8|m];let E=G?G.length-1:-1;for(;E>=0&&(d=G[E](),d!==!0);E--)if(d instanceof Promise)return this._preserveStack(4,G,E,v,x),d;E<0&&this._escHandlerFb(this._collect<<8|m),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|m,this._params);break;case 13:for(let w=x+1;;++w)if(w>=o||(m=i[w])===24||m===26||m===27||m>127&&m=o||(m=i[w])<32||m>127&&m{Object.defineProperty(r,"__esModule",{value:!0}),r.OscHandler=r.OscParser=void 0;const n=l(5770),g=l(482),s=[];r.OscParser=class{constructor(){this._state=0,this._active=s,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(S,p){this._handlers[S]===void 0&&(this._handlers[S]=[]);const A=this._handlers[S];return A.push(p),{dispose:()=>{const u=A.indexOf(p);u!==-1&&A.splice(u,1)}}}clearHandler(S){this._handlers[S]&&delete this._handlers[S]}setHandlerFallback(S){this._handlerFb=S}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=s}reset(){if(this._state===2)for(let S=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;S>=0;--S)this._active[S].end(!1);this._stack.paused=!1,this._active=s,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||s,this._active.length)for(let S=this._active.length-1;S>=0;S--)this._active[S].start();else this._handlerFb(this._id,"START")}_put(S,p,A){if(this._active.length)for(let u=this._active.length-1;u>=0;u--)this._active[u].put(S,p,A);else this._handlerFb(this._id,"PUT",(0,g.utf32ToString)(S,p,A))}start(){this.reset(),this._state=1}put(S,p,A){if(this._state!==3){if(this._state===1)for(;p0&&this._put(S,p,A)}}end(S,p=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let A=!1,u=this._active.length-1,t=!1;if(this._stack.paused&&(u=this._stack.loopPosition-1,A=p,t=this._stack.fallThrough,this._stack.paused=!1),!t&&A===!1){for(;u>=0&&(A=this._active[u].end(S),A!==!0);u--)if(A instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=u,this._stack.fallThrough=!1,A;u--}for(;u>=0;u--)if(A=this._active[u].end(!1),A instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=u,this._stack.fallThrough=!0,A}else this._handlerFb(this._id,"END",S);this._active=s,this._id=-1,this._state=0}}},r.OscHandler=class{constructor(S){this._handler=S,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(S,p,A){this._hitLimit||(this._data+=(0,g.utf32ToString)(S,p,A),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(S){let p=!1;if(this._hitLimit)p=!1;else if(S&&(p=this._handler(this._data),p instanceof Promise))return p.then(A=>(this._data="",this._hitLimit=!1,A));return this._data="",this._hitLimit=!1,p}}},8742:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Params=void 0;const l=2147483647;class n{static fromArray(s){const S=new n;if(!s.length)return S;for(let p=Array.isArray(s[0])?1:0;p256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(s),this.length=0,this._subParams=new Int32Array(S),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(s),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){const s=new n(this.maxLength,this.maxSubParamsLength);return s.params.set(this.params),s.length=this.length,s._subParams.set(this._subParams),s._subParamsLength=this._subParamsLength,s._subParamsIdx.set(this._subParamsIdx),s._rejectDigits=this._rejectDigits,s._rejectSubDigits=this._rejectSubDigits,s._digitIsSub=this._digitIsSub,s}toArray(){const s=[];for(let S=0;S>8,A=255&this._subParamsIdx[S];A-p>0&&s.push(Array.prototype.slice.call(this._subParams,p,A))}return s}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(s){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(s<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=s>l?l:s}}addSubParam(s){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(s<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=s>l?l:s,this._subParamsIdx[this.length-1]++}}hasSubParams(s){return(255&this._subParamsIdx[s])-(this._subParamsIdx[s]>>8)>0}getSubParams(s){const S=this._subParamsIdx[s]>>8,p=255&this._subParamsIdx[s];return p-S>0?this._subParams.subarray(S,p):null}getSubParamsAll(){const s={};for(let S=0;S>8,A=255&this._subParamsIdx[S];A-p>0&&(s[S]=this._subParams.slice(p,A))}return s}addDigit(s){let S;if(this._rejectDigits||!(S=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const p=this._digitIsSub?this._subParams:this.params,A=p[S-1];p[S-1]=~A?Math.min(10*A+s,l):s}}r.Params=n},5741:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.AddonManager=void 0,r.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let l=this._addons.length-1;l>=0;l--)this._addons[l].instance.dispose()}loadAddon(l,n){const g={instance:n,dispose:n.dispose,isDisposed:!1};this._addons.push(g),n.dispose=()=>this._wrappedAddonDispose(g),n.activate(l)}_wrappedAddonDispose(l){if(l.isDisposed)return;let n=-1;for(let g=0;g{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferApiView=void 0;const n=l(3785),g=l(511);r.BufferApiView=class{constructor(s,S){this._buffer=s,this.type=S}init(s){return this._buffer=s,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(s){const S=this._buffer.lines.get(s);if(S)return new n.BufferLineApiView(S)}getNullCell(){return new g.CellData}}},3785:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferLineApiView=void 0;const n=l(511);r.BufferLineApiView=class{constructor(g){this._line=g}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(g,s){if(!(g<0||g>=this._line.length))return s?(this._line.loadCell(g,s),s):this._line.loadCell(g,new n.CellData)}translateToString(g,s,S){return this._line.translateToString(g,s,S)}}},8285:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BufferNamespaceApi=void 0;const n=l(8771),g=l(8460),s=l(844);class S extends s.Disposable{constructor(A){super(),this._core=A,this._onBufferChange=this.register(new g.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new n.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new n.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}r.BufferNamespaceApi=S},7975:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ParserApi=void 0,r.ParserApi=class{constructor(l){this._core=l}registerCsiHandler(l,n){return this._core.registerCsiHandler(l,g=>n(g.toArray()))}addCsiHandler(l,n){return this.registerCsiHandler(l,n)}registerDcsHandler(l,n){return this._core.registerDcsHandler(l,(g,s)=>n(g,s.toArray()))}addDcsHandler(l,n){return this.registerDcsHandler(l,n)}registerEscHandler(l,n){return this._core.registerEscHandler(l,n)}addEscHandler(l,n){return this.registerEscHandler(l,n)}registerOscHandler(l,n){return this._core.registerOscHandler(l,n)}addOscHandler(l,n){return this.registerOscHandler(l,n)}}},7090:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeApi=void 0,r.UnicodeApi=class{constructor(l){this._core=l}register(l){this._core.unicodeService.register(l)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(l){this._core.unicodeService.activeVersion=l}}},744:function(T,r,l){var n=this&&this.__decorate||function(t,i,o,e){var d,m=arguments.length,v=m<3?i:e===null?e=Object.getOwnPropertyDescriptor(i,o):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(t,i,o,e);else for(var M=t.length-1;M>=0;M--)(d=t[M])&&(v=(m<3?d(v):m>3?d(i,o,v):d(i,o))||v);return m>3&&v&&Object.defineProperty(i,o,v),v},g=this&&this.__param||function(t,i){return function(o,e){i(o,e,t)}};Object.defineProperty(r,"__esModule",{value:!0}),r.BufferService=r.MINIMUM_ROWS=r.MINIMUM_COLS=void 0;const s=l(8460),S=l(844),p=l(5295),A=l(2585);r.MINIMUM_COLS=2,r.MINIMUM_ROWS=1;let u=r.BufferService=class extends S.Disposable{get buffer(){return this.buffers.active}constructor(t){super(),this.isUserScrolling=!1,this._onResize=this.register(new s.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new s.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(t.rawOptions.cols||0,r.MINIMUM_COLS),this.rows=Math.max(t.rawOptions.rows||0,r.MINIMUM_ROWS),this.buffers=this.register(new p.BufferSet(t,this))}resize(t,i){this.cols=t,this.rows=i,this.buffers.resize(t,i),this._onResize.fire({cols:t,rows:i})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(t,i=!1){const o=this.buffer;let e;e=this._cachedBlankLine,e&&e.length===this.cols&&e.getFg(0)===t.fg&&e.getBg(0)===t.bg||(e=o.getBlankLine(t,i),this._cachedBlankLine=e),e.isWrapped=i;const d=o.ybase+o.scrollTop,m=o.ybase+o.scrollBottom;if(o.scrollTop===0){const v=o.lines.isFull;m===o.lines.length-1?v?o.lines.recycle().copyFrom(e):o.lines.push(e.clone()):o.lines.splice(m+1,0,e.clone()),v?this.isUserScrolling&&(o.ydisp=Math.max(o.ydisp-1,0)):(o.ybase++,this.isUserScrolling||o.ydisp++)}else{const v=m-d+1;o.lines.shiftElements(d+1,v-1,-1),o.lines.set(m,e.clone())}this.isUserScrolling||(o.ydisp=o.ybase),this._onScroll.fire(o.ydisp)}scrollLines(t,i,o){const e=this.buffer;if(t<0){if(e.ydisp===0)return;this.isUserScrolling=!0}else t+e.ydisp>=e.ybase&&(this.isUserScrolling=!1);const d=e.ydisp;e.ydisp=Math.max(Math.min(e.ydisp+t,e.ybase),0),d!==e.ydisp&&(i||this._onScroll.fire(e.ydisp))}};r.BufferService=u=n([g(0,A.IOptionsService)],u)},7994:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CharsetService=void 0,r.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(l){this.glevel=l,this.charset=this._charsets[l]}setgCharset(l,n){this._charsets[l]=n,this.glevel===l&&(this.charset=n)}}},1753:function(T,r,l){var n=this&&this.__decorate||function(e,d,m,v){var M,x=arguments.length,f=x<3?d:v===null?v=Object.getOwnPropertyDescriptor(d,m):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(e,d,m,v);else for(var L=e.length-1;L>=0;L--)(M=e[L])&&(f=(x<3?M(f):x>3?M(d,m,f):M(d,m))||f);return x>3&&f&&Object.defineProperty(d,m,f),f},g=this&&this.__param||function(e,d){return function(m,v){d(m,v,e)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CoreMouseService=void 0;const s=l(2585),S=l(8460),p=l(844),A={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:e=>e.button!==4&&e.action===1&&(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)},VT200:{events:19,restrict:e=>e.action!==32},DRAG:{events:23,restrict:e=>e.action!==32||e.button!==3},ANY:{events:31,restrict:e=>!0}};function u(e,d){let m=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(m|=64,m|=e.action):(m|=3&e.button,4&e.button&&(m|=64),8&e.button&&(m|=128),e.action===32?m|=32:e.action!==0||d||(m|=3)),m}const t=String.fromCharCode,i={DEFAULT:e=>{const d=[u(e,!1)+32,e.col+32,e.row+32];return d[0]>255||d[1]>255||d[2]>255?"":`\x1B[M${t(d[0])}${t(d[1])}${t(d[2])}`},SGR:e=>{const d=e.action===0&&e.button!==4?"m":"M";return`\x1B[<${u(e,!0)};${e.col};${e.row}${d}`},SGR_PIXELS:e=>{const d=e.action===0&&e.button!==4?"m":"M";return`\x1B[<${u(e,!0)};${e.x};${e.y}${d}`}};let o=r.CoreMouseService=class extends p.Disposable{constructor(e,d){super(),this._bufferService=e,this._coreService=d,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new S.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const m of Object.keys(A))this.addProtocol(m,A[m]);for(const m of Object.keys(i))this.addEncoding(m,i[m]);this.reset()}addProtocol(e,d){this._protocols[e]=d}addEncoding(e,d){this._encodings[e]=d}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(e){if(!this._protocols[e])throw new Error(`unknown protocol "${e}"`);this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(e){if(!this._encodings[e])throw new Error(`unknown encoding "${e}"`);this._activeEncoding=e}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows||e.button===4&&e.action===32||e.button===3&&e.action!==32||e.button!==4&&(e.action===2||e.action===3)||(e.col++,e.row++,e.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,e,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(e))return!1;const d=this._encodings[this._activeEncoding](e);return d&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(d):this._coreService.triggerDataEvent(d,!0)),this._lastEvent=e,!0}explainEvents(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}}_equalEvents(e,d,m){if(m){if(e.x!==d.x||e.y!==d.y)return!1}else if(e.col!==d.col||e.row!==d.row)return!1;return e.button===d.button&&e.action===d.action&&e.ctrl===d.ctrl&&e.alt===d.alt&&e.shift===d.shift}};r.CoreMouseService=o=n([g(0,s.IBufferService),g(1,s.ICoreService)],o)},6975:function(T,r,l){var n=this&&this.__decorate||function(o,e,d,m){var v,M=arguments.length,x=M<3?e:m===null?m=Object.getOwnPropertyDescriptor(e,d):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(o,e,d,m);else for(var f=o.length-1;f>=0;f--)(v=o[f])&&(x=(M<3?v(x):M>3?v(e,d,x):v(e,d))||x);return M>3&&x&&Object.defineProperty(e,d,x),x},g=this&&this.__param||function(o,e){return function(d,m){e(d,m,o)}};Object.defineProperty(r,"__esModule",{value:!0}),r.CoreService=void 0;const s=l(1439),S=l(8460),p=l(844),A=l(2585),u=Object.freeze({insertMode:!1}),t=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let i=r.CoreService=class extends p.Disposable{constructor(o,e,d){super(),this._bufferService=o,this._logService=e,this._optionsService=d,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new S.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new S.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new S.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new S.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,s.clone)(u),this.decPrivateModes=(0,s.clone)(t)}reset(){this.modes=(0,s.clone)(u),this.decPrivateModes=(0,s.clone)(t)}triggerDataEvent(o,e=!1){if(this._optionsService.rawOptions.disableStdin)return;const d=this._bufferService.buffer;e&&this._optionsService.rawOptions.scrollOnUserInput&&d.ybase!==d.ydisp&&this._onRequestScrollToBottom.fire(),e&&this._onUserInput.fire(),this._logService.debug(`sending data "${o}"`,()=>o.split("").map(m=>m.charCodeAt(0))),this._onData.fire(o)}triggerBinaryEvent(o){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${o}"`,()=>o.split("").map(e=>e.charCodeAt(0))),this._onBinary.fire(o))}};r.CoreService=i=n([g(0,A.IBufferService),g(1,A.ILogService),g(2,A.IOptionsService)],i)},9074:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.DecorationService=void 0;const n=l(8055),g=l(8460),s=l(844),S=l(6106);let p=0,A=0;class u extends s.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new S.SortedList(o=>o==null?void 0:o.marker.line),this._onDecorationRegistered=this.register(new g.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new g.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,s.toDisposable)(()=>this.reset()))}registerDecoration(o){if(o.marker.isDisposed)return;const e=new t(o);if(e){const d=e.marker.onDispose(()=>e.dispose());e.onDispose(()=>{e&&(this._decorations.delete(e)&&this._onDecorationRemoved.fire(e),d.dispose())}),this._decorations.insert(e),this._onDecorationRegistered.fire(e)}return e}reset(){for(const o of this._decorations.values())o.dispose();this._decorations.clear()}*getDecorationsAtCell(o,e,d){var m,v,M;let x=0,f=0;for(const L of this._decorations.getKeyIterator(e))x=(m=L.options.x)!==null&&m!==void 0?m:0,f=x+((v=L.options.width)!==null&&v!==void 0?v:1),o>=x&&o{var M,x,f;p=(M=v.options.x)!==null&&M!==void 0?M:0,A=p+((x=v.options.width)!==null&&x!==void 0?x:1),o>=p&&o{Object.defineProperty(r,"__esModule",{value:!0}),r.InstantiationService=r.ServiceCollection=void 0;const n=l(2585),g=l(8343);class s{constructor(...p){this._entries=new Map;for(const[A,u]of p)this.set(A,u)}set(p,A){const u=this._entries.get(p);return this._entries.set(p,A),u}forEach(p){for(const[A,u]of this._entries.entries())p(A,u)}has(p){return this._entries.has(p)}get(p){return this._entries.get(p)}}r.ServiceCollection=s,r.InstantiationService=class{constructor(){this._services=new s,this._services.set(n.IInstantiationService,this)}setService(S,p){this._services.set(S,p)}getService(S){return this._services.get(S)}createInstance(S,...p){const A=(0,g.getServiceDependencies)(S).sort((i,o)=>i.index-o.index),u=[];for(const i of A){const o=this._services.get(i.id);if(!o)throw new Error(`[createInstance] ${S.name} depends on UNKNOWN service ${i.id}.`);u.push(o)}const t=A.length>0?A[0].index:p.length;if(p.length!==t)throw new Error(`[createInstance] First service dependency of ${S.name} at position ${t+1} conflicts with ${p.length} static arguments`);return new S(...p,...u)}}},7866:function(T,r,l){var n=this&&this.__decorate||function(t,i,o,e){var d,m=arguments.length,v=m<3?i:e===null?e=Object.getOwnPropertyDescriptor(i,o):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(t,i,o,e);else for(var M=t.length-1;M>=0;M--)(d=t[M])&&(v=(m<3?d(v):m>3?d(i,o,v):d(i,o))||v);return m>3&&v&&Object.defineProperty(i,o,v),v},g=this&&this.__param||function(t,i){return function(o,e){i(o,e,t)}};Object.defineProperty(r,"__esModule",{value:!0}),r.traceCall=r.setTraceLogger=r.LogService=void 0;const s=l(844),S=l(2585),p={trace:S.LogLevelEnum.TRACE,debug:S.LogLevelEnum.DEBUG,info:S.LogLevelEnum.INFO,warn:S.LogLevelEnum.WARN,error:S.LogLevelEnum.ERROR,off:S.LogLevelEnum.OFF};let A,u=r.LogService=class extends s.Disposable{get logLevel(){return this._logLevel}constructor(t){super(),this._optionsService=t,this._logLevel=S.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel())),A=this}_updateLogLevel(){this._logLevel=p[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(t){for(let i=0;iJSON.stringify(v)).join(", ")})`);const m=e.apply(this,d);return A.trace(`GlyphRenderer#${e.name} return`,m),m}}},7302:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.OptionsService=r.DEFAULT_OPTIONS=void 0;const n=l(8460),g=l(844),s=l(6114);r.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:s.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const S=["normal","bold","100","200","300","400","500","600","700","800","900"];class p extends g.Disposable{constructor(u){super(),this._onOptionChange=this.register(new n.EventEmitter),this.onOptionChange=this._onOptionChange.event;const t=Object.assign({},r.DEFAULT_OPTIONS);for(const i in u)if(i in t)try{const o=u[i];t[i]=this._sanitizeAndValidateOption(i,o)}catch(o){console.error(o)}this.rawOptions=t,this.options=Object.assign({},t),this._setupOptions()}onSpecificOptionChange(u,t){return this.onOptionChange(i=>{i===u&&t(this.rawOptions[u])})}onMultipleOptionChange(u,t){return this.onOptionChange(i=>{u.indexOf(i)!==-1&&t()})}_setupOptions(){const u=i=>{if(!(i in r.DEFAULT_OPTIONS))throw new Error(`No option with key "${i}"`);return this.rawOptions[i]},t=(i,o)=>{if(!(i in r.DEFAULT_OPTIONS))throw new Error(`No option with key "${i}"`);o=this._sanitizeAndValidateOption(i,o),this.rawOptions[i]!==o&&(this.rawOptions[i]=o,this._onOptionChange.fire(i))};for(const i in this.rawOptions){const o={get:u.bind(this,i),set:t.bind(this,i)};Object.defineProperty(this.options,i,o)}}_sanitizeAndValidateOption(u,t){switch(u){case"cursorStyle":if(t||(t=r.DEFAULT_OPTIONS[u]),!function(i){return i==="block"||i==="underline"||i==="bar"}(t))throw new Error(`"${t}" is not a valid value for ${u}`);break;case"wordSeparator":t||(t=r.DEFAULT_OPTIONS[u]);break;case"fontWeight":case"fontWeightBold":if(typeof t=="number"&&1<=t&&t<=1e3)break;t=S.includes(t)?t:r.DEFAULT_OPTIONS[u];break;case"cursorWidth":t=Math.floor(t);case"lineHeight":case"tabStopWidth":if(t<1)throw new Error(`${u} cannot be less than 1, value: ${t}`);break;case"minimumContrastRatio":t=Math.max(1,Math.min(21,Math.round(10*t)/10));break;case"scrollback":if((t=Math.min(t,4294967295))<0)throw new Error(`${u} cannot be less than 0, value: ${t}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(t<=0)throw new Error(`${u} cannot be less than or equal to 0, value: ${t}`);break;case"rows":case"cols":if(!t&&t!==0)throw new Error(`${u} must be numeric, value: ${t}`);break;case"windowsPty":t=t??{}}return t}}r.OptionsService=p},2660:function(T,r,l){var n=this&&this.__decorate||function(p,A,u,t){var i,o=arguments.length,e=o<3?A:t===null?t=Object.getOwnPropertyDescriptor(A,u):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(p,A,u,t);else for(var d=p.length-1;d>=0;d--)(i=p[d])&&(e=(o<3?i(e):o>3?i(A,u,e):i(A,u))||e);return o>3&&e&&Object.defineProperty(A,u,e),e},g=this&&this.__param||function(p,A){return function(u,t){A(u,t,p)}};Object.defineProperty(r,"__esModule",{value:!0}),r.OscLinkService=void 0;const s=l(2585);let S=r.OscLinkService=class{constructor(p){this._bufferService=p,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(p){const A=this._bufferService.buffer;if(p.id===void 0){const d=A.addMarker(A.ybase+A.y),m={data:p,id:this._nextId++,lines:[d]};return d.onDispose(()=>this._removeMarkerFromLink(m,d)),this._dataByLinkId.set(m.id,m),m.id}const u=p,t=this._getEntryIdKey(u),i=this._entriesWithId.get(t);if(i)return this.addLineToLink(i.id,A.ybase+A.y),i.id;const o=A.addMarker(A.ybase+A.y),e={id:this._nextId++,key:this._getEntryIdKey(u),data:u,lines:[o]};return o.onDispose(()=>this._removeMarkerFromLink(e,o)),this._entriesWithId.set(e.key,e),this._dataByLinkId.set(e.id,e),e.id}addLineToLink(p,A){const u=this._dataByLinkId.get(p);if(u&&u.lines.every(t=>t.line!==A)){const t=this._bufferService.buffer.addMarker(A);u.lines.push(t),t.onDispose(()=>this._removeMarkerFromLink(u,t))}}getLinkData(p){var A;return(A=this._dataByLinkId.get(p))===null||A===void 0?void 0:A.data}_getEntryIdKey(p){return`${p.id};;${p.uri}`}_removeMarkerFromLink(p,A){const u=p.lines.indexOf(A);u!==-1&&(p.lines.splice(u,1),p.lines.length===0&&(p.data.id!==void 0&&this._entriesWithId.delete(p.key),this._dataByLinkId.delete(p.id)))}};r.OscLinkService=S=n([g(0,s.IBufferService)],S)},8343:(T,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.createDecorator=r.getServiceDependencies=r.serviceRegistry=void 0;const l="di$target",n="di$dependencies";r.serviceRegistry=new Map,r.getServiceDependencies=function(g){return g[n]||[]},r.createDecorator=function(g){if(r.serviceRegistry.has(g))return r.serviceRegistry.get(g);const s=function(S,p,A){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");(function(u,t,i){t[l]===t?t[n].push({id:u,index:i}):(t[n]=[{id:u,index:i}],t[l]=t)})(s,S,A)};return s.toString=()=>g,r.serviceRegistry.set(g,s),s}},2585:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.IDecorationService=r.IUnicodeService=r.IOscLinkService=r.IOptionsService=r.ILogService=r.LogLevelEnum=r.IInstantiationService=r.ICharsetService=r.ICoreService=r.ICoreMouseService=r.IBufferService=void 0;const n=l(8343);var g;r.IBufferService=(0,n.createDecorator)("BufferService"),r.ICoreMouseService=(0,n.createDecorator)("CoreMouseService"),r.ICoreService=(0,n.createDecorator)("CoreService"),r.ICharsetService=(0,n.createDecorator)("CharsetService"),r.IInstantiationService=(0,n.createDecorator)("InstantiationService"),function(s){s[s.TRACE=0]="TRACE",s[s.DEBUG=1]="DEBUG",s[s.INFO=2]="INFO",s[s.WARN=3]="WARN",s[s.ERROR=4]="ERROR",s[s.OFF=5]="OFF"}(g||(r.LogLevelEnum=g={})),r.ILogService=(0,n.createDecorator)("LogService"),r.IOptionsService=(0,n.createDecorator)("OptionsService"),r.IOscLinkService=(0,n.createDecorator)("OscLinkService"),r.IUnicodeService=(0,n.createDecorator)("UnicodeService"),r.IDecorationService=(0,n.createDecorator)("DecorationService")},1480:(T,r,l)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.UnicodeService=void 0;const n=l(8460),g=l(225);r.UnicodeService=class{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new n.EventEmitter,this.onChange=this._onChange.event;const s=new g.UnicodeV6;this.register(s),this._active=s.version,this._activeProvider=s}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(s){if(!this._providers[s])throw new Error(`unknown Unicode version "${s}"`);this._active=s,this._activeProvider=this._providers[s],this._onChange.fire(s)}register(s){this._providers[s.version]=s}wcwidth(s){return this._activeProvider.wcwidth(s)}getStringCellWidth(s){let S=0;const p=s.length;for(let A=0;A=p)return S+this.wcwidth(u);const t=s.charCodeAt(A);56320<=t&&t<=57343?u=1024*(u-55296)+t-56320+65536:S+=this.wcwidth(t)}S+=this.wcwidth(u)}return S}}}},_={};function $(T){var r=_[T];if(r!==void 0)return r.exports;var l=_[T]={exports:{}};return h[T].call(l.exports,l,l.exports,$),l.exports}var C={};return(()=>{var T=C;Object.defineProperty(T,"__esModule",{value:!0}),T.Terminal=void 0;const r=$(9042),l=$(3236),n=$(844),g=$(5741),s=$(8285),S=$(7975),p=$(7090),A=["cols","rows"];class u extends n.Disposable{constructor(i){super(),this._core=this.register(new l.Terminal(i)),this._addonManager=this.register(new g.AddonManager),this._publicOptions=Object.assign({},this._core.options);const o=d=>this._core.options[d],e=(d,m)=>{this._checkReadonlyOptions(d),this._core.options[d]=m};for(const d in this._core.options){const m={get:o.bind(this,d),set:e.bind(this,d)};Object.defineProperty(this._publicOptions,d,m)}}_checkReadonlyOptions(i){if(A.includes(i))throw new Error(`Option "${i}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new S.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new p.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new s.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const i=this._core.coreService.decPrivateModes;let o="none";switch(this._core.coreMouseService.activeProtocol){case"X10":o="x10";break;case"VT200":o="vt200";break;case"DRAG":o="drag";break;case"ANY":o="any"}return{applicationCursorKeysMode:i.applicationCursorKeys,applicationKeypadMode:i.applicationKeypad,bracketedPasteMode:i.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:o,originMode:i.origin,reverseWraparoundMode:i.reverseWraparound,sendFocusMode:i.sendFocus,wraparoundMode:i.wraparound}}get options(){return this._publicOptions}set options(i){for(const o in i)this._publicOptions[o]=i[o]}blur(){this._core.blur()}focus(){this._core.focus()}resize(i,o){this._verifyIntegers(i,o),this._core.resize(i,o)}open(i){this._core.open(i)}attachCustomKeyEventHandler(i){this._core.attachCustomKeyEventHandler(i)}registerLinkProvider(i){return this._core.registerLinkProvider(i)}registerCharacterJoiner(i){return this._checkProposedApi(),this._core.registerCharacterJoiner(i)}deregisterCharacterJoiner(i){this._checkProposedApi(),this._core.deregisterCharacterJoiner(i)}registerMarker(i=0){return this._verifyIntegers(i),this._core.registerMarker(i)}registerDecoration(i){var o,e,d;return this._checkProposedApi(),this._verifyPositiveIntegers((o=i.x)!==null&&o!==void 0?o:0,(e=i.width)!==null&&e!==void 0?e:0,(d=i.height)!==null&&d!==void 0?d:0),this._core.registerDecoration(i)}hasSelection(){return this._core.hasSelection()}select(i,o,e){this._verifyIntegers(i,o,e),this._core.select(i,o,e)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(i,o){this._verifyIntegers(i,o),this._core.selectLines(i,o)}dispose(){super.dispose()}scrollLines(i){this._verifyIntegers(i),this._core.scrollLines(i)}scrollPages(i){this._verifyIntegers(i),this._core.scrollPages(i)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(i){this._verifyIntegers(i),this._core.scrollToLine(i)}clear(){this._core.clear()}write(i,o){this._core.write(i,o)}writeln(i,o){this._core.write(i),this._core.write(`\r +`,o)}paste(i){this._core.paste(i)}refresh(i,o){this._verifyIntegers(i,o),this._core.refresh(i,o)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(i){this._addonManager.loadAddon(this,i)}static get strings(){return r}_verifyIntegers(...i){for(const o of i)if(o===1/0||isNaN(o)||o%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...i){for(const o of i)if(o&&(o===1/0||isNaN(o)||o%1!=0||o<0))throw new Error("This API only accepts positive integers")}}T.Terminal=u})(),C})())})(bt);var o3=bt.exports;const t3={class:"container"},i3={id:"code-show"},a3={class:"code-now-container"},l3={class:"code-box"},s3={class:"code-now-container"},n3={id:"advantage"},d3={id:"advantage"},m3={id:"team"},c3={class:"team-card"},g3={class:"card-container"},x3=pe({__name:"index",setup(a){const c=Ae("hello world"),h=gr.map(n=>n.title);let _=Ae(""),$=Ae(""),C=Ae(!1),T=n=>{console.log("not initialized yet...")};const r=new o3.Terminal({convertEol:!0,disableStdin:!0,fontSize:14,theme:{foreground:"#ECECEC",background:"#000000"}});function l(n){$.value=n[n.length-1]===` +`?n.slice(0,-1):n,r.reset(),r.write($.value)}return Qe(async()=>{_.value=gr[0].code,ho(()=>import("./index-fbc129af.js").then(async n=>(await n.__tla,n)).then(n=>n.i),["assets/index-fbc129af.js","assets/index-26445b65.js","assets/index-50c67f50.css","assets/index-46db971c.css"]).then(async n=>{let g=await n.default(document.getElementById("container"),gr[0].code);g.editor.onDidChangeModelContent(()=>{_.value=g.editor.getModel().getValue()}),r.open(document.querySelector(".code-block")),r.resize(44,17),T=s=>{var p;const S=((p=gr.find(A=>A.title===s))==null?void 0:p.code)||"";_.value=S,g.setContent(S)},C.value=!0})}),A3(()=>c.value,n=>{T(n)}),(n,g)=>(ie(),le("div",t3,[re(ee(Jt)),re(ee(Nt)),V("div",i3,[g[4]||(g[4]=V("div",{class:"gradient-font title"},"Enjoy coding pivot lang now!",-1)),g[5]||(g[5]=V("div",{class:"detail-describe"}," With the help of Web Assembly technology, we are able to provide support for some of the Pivot Lang syntax in the browser for you to experience. ",-1)),hr(V("div",a3,[V("div",l3,[re(ee(Da),{onUpdateVal:g[0]||(g[0]=s=>c.value=s),onUpdateOutput:l,tablist:ee(h),val:c.value,code:ee(_)},null,8,["tablist","val","code"]),g[1]||(g[1]=V("div",{class:"code-container"},[V("div",{id:"container"})],-1))]),g[2]||(g[2]=V("div",{class:"execution"},[V("div",{class:"execution-title"},"Execution"),V("div",{class:"code-block"})],-1))],512),[[ur,ee(C)]]),hr(V("div",s3,g[3]||(g[3]=[V("div",{class:"spinner"},null,-1)]),512),[[ur,!ee(C)]])]),V("div",n3,[g[6]||(g[6]=V("div",{class:"gradient-font title"},"Immix Garbage Collector",-1)),g[7]||(g[7]=V("div",{class:"detail-describe"}," Significantly outperforming the well known Boehm-Demers-Weiser (BDW) collector in the multi-thread environment, the Immix collector is a state-of-the-art garbage collector for modern hardware. It is designed to be highly concurrent and to exploit the locality of reference patterns in modern programs. ",-1)),re(ee(Ra))]),V("div",d3,[g[8]||(g[8]=V("div",{class:"gradient-font title"},"Reliability",-1)),g[9]||(g[9]=V("div",{class:"detail-describe"}," Pivot Lang is heavily tested to ensure that it is stable and reliable. We have a large number of unit tests and integration tests to ensure that the coverage of the code is as high as possible. ",-1)),re(ee(hl))]),re(ee(e3)),re(ee(Ut)),V("div",m3,[g[10]||(g[10]=V("div",{class:"gradient-font title"},"Meet The Team",-1)),V("div",c3,[V("div",g3,[(ie(!0),le(Ze,null,go(ee(r3),s=>(ie(),f3(ee(Ha),{key:s.name,name:s.name,github:s.github,avatar:s.avatar,identity:s.identity},null,8,["name","github","avatar","identity"]))),128))])])]),g[11]||(g[11]=co('
Join Our Team
Pivot lang is still developing and we long for every geek joingus, completing the language together. If you are interested in pivot lang, click the button and write the email to mstmole@163.com introduce yourself now!
',1)),re(ee(ll)),re(ee(Ka))]))}});Et=Object.freeze(Object.defineProperty({__proto__:null,default:x3},Symbol.toStringTag,{value:"Module"}))});export{T3 as __tla,_r as g,Et as i}; diff --git a/assets/index-a97cc803.js b/assets/index-a97cc803.js deleted file mode 100644 index 44819c3..0000000 --- a/assets/index-a97cc803.js +++ /dev/null @@ -1,193 +0,0 @@ -import{d as jr,u as Q2e,i as Bd,o as at,c as dt,a as Rv,w as gg,v as mg,b as He,e as ie,r as J2e,f as j2e,g as We,h as Ct,j as pg,k as qr,l as Gd,n as q2e,m as CE,F as Nd,p as Fv,q as Vv,t as Ss,s as PE,_ as LE,x as eAe,y as tAe,z as rAe,__tla as oAe}from"./index-713b12db.js";let IE,iAe=Promise.all([(()=>{try{return oAe}catch{}})()]).then(async()=>{const $E="/assets/socialite-0d9c20e3.jpg",DE="/assets/background-24453330.jpg",OE={class:"first-page"},BE={class:"background-container"},GE=jr({__name:"firstPage",setup(r){Q2e();const t=Bd("sizeCnt");function e(){window.scrollTo({top:window.innerHeight-10,behavior:"smooth"})}return(o,i)=>(at(),dt("div",OE,[i[1]||(i[1]=Rv('
Pivot Lang --
A
General Purpose Language
Rust-like grammar with GC.
',1)),gg(ie("div",BE,i[0]||(i[0]=[ie("img",{src:DE},null,-1)]),512),[[mg,He(t)<=1]]),ie("div",{class:"bottom"},[ie("div",{class:"start-button",onClick:e,style:{cursor:"pointer"}},"Try It")])]))}}),NE="/assets/LSP-hint-87b8dc97.png",kE="/assets/LSP-reference-d82cb186.png",RE="/assets/debug_code-bcb5bca1.png",FE="/assets/debug_value-670e2094.png",eo=(r,t)=>{const e=r.__vccOpts||r;for(const[o,i]of t)e[o]=i;return e},VE={},HE={id:"advantage"};function XE(r,t){return at(),dt("div",HE,t[0]||(t[0]=[Rv('
First Class VSC support
Code fast, code easy
We provide Code Hints, Code jump, Reference lookup, semantic highlights and more...
Debug with a single click
We have complete debug support on every major platform.
',3)]))}const UE=eo(VE,[["render",XE],["__scopeId","data-v-9f46c044"]]),WE="/assets/rightArrow-6db3b7c3.svg",zE={key:0,src:WE},KE=jr({__name:"link",props:{newWindow:{type:Boolean,default:!0},href:{type:String,required:!0},arrowShow:{type:Boolean,default:!0}},setup(r){Bd("isMobile");const t=Bd("isPc"),e=r;function o(){e.newWindow?window.open(e.href):window.location.href=e.href}return(i,n)=>(at(),dt("div",{class:"link",onClick:o},[J2e(i.$slots,"default",{},void 0,!0),e.arrowShow&&He(t)?(at(),dt("img",zE)):j2e("",!0)]))}}),St=eo(KE,[["__scopeId","data-v-ae0f4fc0"]]),Hv="/assets/logo_dark-f7ca8d17.svg",ZE={class:"nav"},YE={class:"left"},QE={class:"right"},JE=jr({__name:"nav",setup(r){const t=Bd("isMobile");return(e,o)=>(at(),dt("div",ZE,[ie("div",YE,[We(St,{newWindow:!1,arrowShow:!1,href:"https://github.com/Pivot-Studio/pivot-lang"},{default:Ct(()=>o[0]||(o[0]=[ie("img",{src:Hv},null,-1),pg(" Pivot Lang ")])),_:1})]),ie("div",QE,[We(St,{href:"https://github.com/Pivot-Studio/pivot-lang"},{default:Ct(()=>o[1]||(o[1]=[ie("div",{class:"github"},[ie("a",null,[ie("img",{alt:"Github",src:"https://d33wubrfki0l68.cloudfront.net/43f2732eec420aa8a930fc3239ef0469c3d760a8/5d500/community/github.svg"})])],-1)])),_:1}),We(St,{newWindow:!0,href:"https://pivotlang.tech/docs/index.html"},{default:Ct(()=>o[2]||(o[2]=[ie("div",{class:"txt"},"Get Started",-1)])),_:1}),We(St,{newWindow:!0,href:"https://github.com/Pivot-Studio/pivot-lang/blob/master/test/test/generic.pi"},{default:Ct(()=>o[3]||(o[3]=[ie("div",{class:"txt"},"Use Cases",-1)])),_:1}),gg(We(St,{newWindow:!0,href:"https://pivotlang.tech/index.html"},{default:Ct(()=>o[4]||(o[4]=[ie("div",{class:"txt"},"Community",-1)])),_:1},512),[[mg,!He(t)]])])]))}}),jE=eo(JE,[["__scopeId","data-v-c6ee1f2a"]]);function Xv(r,t){return function(){return r.apply(t,arguments)}}const{toString:qE}=Object.prototype,{getPrototypeOf:fg}=Object,kd=(r=>t=>{const e=qE.call(t);return r[e]||(r[e]=e.slice(8,-1).toLowerCase())})(Object.create(null)),$r=r=>(r=r.toLowerCase(),t=>kd(t)===r),Rd=r=>t=>typeof t===r,{isArray:oa}=Array,bs=Rd("undefined");function e$(r){return r!==null&&!bs(r)&&r.constructor!==null&&!bs(r.constructor)&&or(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const Uv=$r("ArrayBuffer");function t$(r){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(r):t=r&&r.buffer&&Uv(r.buffer),t}const r$=Rd("string"),or=Rd("function"),Wv=Rd("number"),Fd=r=>r!==null&&typeof r=="object",o$=r=>r===!0||r===!1,Vd=r=>{if(kd(r)!=="object")return!1;const t=fg(r);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},i$=$r("Date"),n$=$r("File"),a$=$r("Blob"),s$=$r("FileList"),l$=r=>Fd(r)&&or(r.pipe),d$=r=>{let t;return r&&(typeof FormData=="function"&&r instanceof FormData||or(r.append)&&((t=kd(r))==="formdata"||t==="object"&&or(r.toString)&&r.toString()==="[object FormData]"))},c$=$r("URLSearchParams"),[u$,h$,g$,m$]=["ReadableStream","Request","Response","Headers"].map($r),p$=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ms(r,t,{allOwnKeys:e=!1}={}){if(r===null||typeof r>"u")return;let o,i;if(typeof r!="object"&&(r=[r]),oa(r))for(o=0,i=r.length;o0;)if(i=e[o],t===i.toLowerCase())return i;return null}const ki=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Kv=r=>!bs(r)&&r!==ki;function xg(){const{caseless:r}=Kv(this)&&this||{},t={},e=(o,i)=>{const n=r&&zv(t,i)||i;Vd(t[n])&&Vd(o)?t[n]=xg(t[n],o):Vd(o)?t[n]=xg({},o):oa(o)?t[n]=o.slice():t[n]=o};for(let o=0,i=arguments.length;o(Ms(t,(i,n)=>{e&&or(i)?r[n]=Xv(i,e):r[n]=i},{allOwnKeys:o}),r),x$=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),v$=(r,t,e,o)=>{r.prototype=Object.create(t.prototype,o),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:t.prototype}),e&&Object.assign(r.prototype,e)},y$=(r,t,e,o)=>{let i,n,a;const s={};if(t=t||{},r==null)return t;do{for(i=Object.getOwnPropertyNames(r),n=i.length;n-- >0;)a=i[n],(!o||o(a,r,t))&&!s[a]&&(t[a]=r[a],s[a]=!0);r=e!==!1&&fg(r)}while(r&&(!e||e(r,t))&&r!==Object.prototype);return t},_$=(r,t,e)=>{r=String(r),(e===void 0||e>r.length)&&(e=r.length),e-=t.length;const o=r.indexOf(t,e);return o!==-1&&o===e},S$=r=>{if(!r)return null;if(oa(r))return r;let t=r.length;if(!Wv(t))return null;const e=new Array(t);for(;t-- >0;)e[t]=r[t];return e},b$=(r=>t=>r&&t instanceof r)(typeof Uint8Array<"u"&&fg(Uint8Array)),M$=(r,t)=>{const e=(r&&r[Symbol.iterator]).call(r);let o;for(;(o=e.next())&&!o.done;){const i=o.value;t.call(r,i[0],i[1])}},A$=(r,t)=>{let e;const o=[];for(;(e=r.exec(t))!==null;)o.push(e);return o},T$=$r("HTMLFormElement"),w$=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,o){return e.toUpperCase()+o}),Zv=(({hasOwnProperty:r})=>(t,e)=>r.call(t,e))(Object.prototype),C$=$r("RegExp"),Yv=(r,t)=>{const e=Object.getOwnPropertyDescriptors(r),o={};Ms(e,(i,n)=>{let a;(a=t(i,n,r))!==!1&&(o[n]=a||i)}),Object.defineProperties(r,o)},P$=r=>{Yv(r,(t,e)=>{if(or(r)&&["arguments","caller","callee"].indexOf(e)!==-1)return!1;const o=r[e];if(or(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")})}})},L$=(r,t)=>{const e={},o=i=>{i.forEach(n=>{e[n]=!0})};return oa(r)?o(r):o(String(r).split(t)),e},I$=()=>{},E$=(r,t)=>r!=null&&Number.isFinite(r=+r)?r:t,vg="abcdefghijklmnopqrstuvwxyz",Qv="0123456789",Jv={DIGIT:Qv,ALPHA:vg,ALPHA_DIGIT:vg+vg.toUpperCase()+Qv},$$=(r=16,t=Jv.ALPHA_DIGIT)=>{let e="";const{length:o}=t;for(;r--;)e+=t[Math.random()*o|0];return e};function D$(r){return!!(r&&or(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}const O$=r=>{const t=new Array(10),e=(o,i)=>{if(Fd(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[i]=o;const n=oa(o)?[]:{};return Ms(o,(a,s)=>{const l=e(a,i+1);!bs(l)&&(n[s]=l)}),t[i]=void 0,n}}return o};return e(r,0)},B$=$r("AsyncFunction"),G$=r=>r&&(Fd(r)||or(r))&&or(r.then)&&or(r.catch),jv=((r,t)=>r?setImmediate:t?((e,o)=>(ki.addEventListener("message",({source:i,data:n})=>{i===ki&&n===e&&o.length&&o.shift()()},!1),i=>{o.push(i),ki.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate=="function",or(ki.postMessage)),N$=typeof queueMicrotask<"u"?queueMicrotask.bind(ki):typeof process<"u"&&process.nextTick||jv,Z={isArray:oa,isArrayBuffer:Uv,isBuffer:e$,isFormData:d$,isArrayBufferView:t$,isString:r$,isNumber:Wv,isBoolean:o$,isObject:Fd,isPlainObject:Vd,isReadableStream:u$,isRequest:h$,isResponse:g$,isHeaders:m$,isUndefined:bs,isDate:i$,isFile:n$,isBlob:a$,isRegExp:C$,isFunction:or,isStream:l$,isURLSearchParams:c$,isTypedArray:b$,isFileList:s$,forEach:Ms,merge:xg,extend:f$,trim:p$,stripBOM:x$,inherits:v$,toFlatObject:y$,kindOf:kd,kindOfTest:$r,endsWith:_$,toArray:S$,forEachEntry:M$,matchAll:A$,isHTMLForm:T$,hasOwnProperty:Zv,hasOwnProp:Zv,reduceDescriptors:Yv,freezeMethods:P$,toObjectSet:L$,toCamelCase:w$,noop:I$,toFiniteNumber:E$,findKey:zv,global:ki,isContextDefined:Kv,ALPHABET:Jv,generateString:$$,isSpecCompliantForm:D$,toJSONObject:O$,isAsyncFn:B$,isThenable:G$,setImmediate:jv,asap:N$};function we(r,t,e,o,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",t&&(this.code=t),e&&(this.config=e),o&&(this.request=o),i&&(this.response=i,this.status=i.status?i.status:null)}Z.inherits(we,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Z.toJSONObject(this.config),code:this.code,status:this.status}}});const qv=we.prototype,ey={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{ey[r]={value:r}}),Object.defineProperties(we,ey),Object.defineProperty(qv,"isAxiosError",{value:!0}),we.from=(r,t,e,o,i,n)=>{const a=Object.create(qv);return Z.toFlatObject(r,a,function(s){return s!==Error.prototype},s=>s!=="isAxiosError"),we.call(a,r.message,t,e,o,i),a.cause=r,a.name=r.name,n&&Object.assign(a,n),a};const k$=null;function yg(r){return Z.isPlainObject(r)||Z.isArray(r)}function ty(r){return Z.endsWith(r,"[]")?r.slice(0,-2):r}function ry(r,t,e){return r?r.concat(t).map(function(o,i){return o=ty(o),!e&&i?"["+o+"]":o}).join(e?".":""):t}function R$(r){return Z.isArray(r)&&!r.some(yg)}const F$=Z.toFlatObject(Z,{},null,function(r){return/^is[A-Z]/.test(r)});function Hd(r,t,e){if(!Z.isObject(r))throw new TypeError("target must be an object");t=t||new FormData,e=Z.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!Z.isUndefined(p[g])});const o=e.metaTokens,i=e.visitor||d,n=e.dots,a=e.indexes,s=(e.Blob||typeof Blob<"u"&&Blob)&&Z.isSpecCompliantForm(t);if(!Z.isFunction(i))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(Z.isDate(g))return g.toISOString();if(!s&&Z.isBlob(g))throw new we("Blob is not supported. Use a Buffer instead.");return Z.isArrayBuffer(g)||Z.isTypedArray(g)?s&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,p,x){let m=g;if(g&&!x&&typeof g=="object"){if(Z.endsWith(p,"{}"))p=o?p:p.slice(0,-2),g=JSON.stringify(g);else if(Z.isArray(g)&&R$(g)||(Z.isFileList(g)||Z.endsWith(p,"[]"))&&(m=Z.toArray(g)))return p=ty(p),m.forEach(function(f,v){!(Z.isUndefined(f)||f===null)&&t.append(a===!0?ry([p],v,n):a===null?p:p+"[]",l(f))}),!1}return yg(g)?!0:(t.append(ry(x,p,n),l(g)),!1)}const c=[],u=Object.assign(F$,{defaultVisitor:d,convertValue:l,isVisitable:yg});function h(g,p){if(!Z.isUndefined(g)){if(c.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));c.push(g),Z.forEach(g,function(x,m){(!(Z.isUndefined(x)||x===null)&&i.call(t,x,Z.isString(m)?m.trim():m,p,u))===!0&&h(x,p?p.concat(m):[m])}),c.pop()}}if(!Z.isObject(r))throw new TypeError("data must be an object");return h(r),t}function oy(r){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function _g(r,t){this._pairs=[],r&&Hd(r,this,t)}const iy=_g.prototype;iy.append=function(r,t){this._pairs.push([r,t])},iy.toString=function(r){const t=r?function(e){return r.call(this,e,oy)}:oy;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};function V$(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ny(r,t,e){if(!t)return r;const o=e&&e.encode||V$,i=e&&e.serialize;let n;if(i?n=i(t,e):n=Z.isURLSearchParams(t)?t.toString():new _g(t,e).toString(o),n){const a=r.indexOf("#");a!==-1&&(r=r.slice(0,a)),r+=(r.indexOf("?")===-1?"?":"&")+n}return r}class H${constructor(){this.handlers=[]}use(t,e,o){return this.handlers.push({fulfilled:t,rejected:e,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Z.forEach(this.handlers,function(e){e!==null&&t(e)})}}const ay=H$,sy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},X$=typeof URLSearchParams<"u"?URLSearchParams:_g,U$=typeof FormData<"u"?FormData:null,W$=typeof Blob<"u"?Blob:null,z$={isBrowser:!0,classes:{URLSearchParams:X$,FormData:U$,Blob:W$},protocols:["http","https","file","blob","url","data"]},Sg=typeof window<"u"&&typeof document<"u",bg=typeof navigator=="object"&&navigator||void 0,K$=Sg&&(!bg||["ReactNative","NativeScript","NS"].indexOf(bg.product)<0),Z$=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Y$=Sg&&window.location.href||"http://localhost",Q$=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Sg,hasStandardBrowserEnv:K$,hasStandardBrowserWebWorkerEnv:Z$,navigator:bg,origin:Y$},Symbol.toStringTag,{value:"Module"})),Qt={...Q$,...z$};function J$(r,t){return Hd(r,new Qt.classes.URLSearchParams,Object.assign({visitor:function(e,o,i,n){return Qt.isNode&&Z.isBuffer(e)?(this.append(o,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}function j$(r){return Z.matchAll(/\w+|\[(\w*)]/g,r).map(t=>t[0]==="[]"?"":t[1]||t[0])}function q$(r){const t={},e=Object.keys(r);let o;const i=e.length;let n;for(o=0;o=e.length;return a=!a&&Z.isArray(i)?i.length:a,l?(Z.hasOwnProp(i,a)?i[a]=[i[a],o]:i[a]=o,!s):((!i[a]||!Z.isObject(i[a]))&&(i[a]=[]),t(e,o,i[a],n)&&Z.isArray(i[a])&&(i[a]=q$(i[a])),!s)}if(Z.isFormData(r)&&Z.isFunction(r.entries)){const e={};return Z.forEachEntry(r,(o,i)=>{t(j$(o),i,e,0)}),e}return null}function eD(r,t,e){if(Z.isString(r))try{return(t||JSON.parse)(r),Z.trim(r)}catch(o){if(o.name!=="SyntaxError")throw o}return(e||JSON.stringify)(r)}const Mg={transitional:sy,adapter:["xhr","http","fetch"],transformRequest:[function(r,t){const e=t.getContentType()||"",o=e.indexOf("application/json")>-1,i=Z.isObject(r);if(i&&Z.isHTMLForm(r)&&(r=new FormData(r)),Z.isFormData(r))return o?JSON.stringify(ly(r)):r;if(Z.isArrayBuffer(r)||Z.isBuffer(r)||Z.isStream(r)||Z.isFile(r)||Z.isBlob(r)||Z.isReadableStream(r))return r;if(Z.isArrayBufferView(r))return r.buffer;if(Z.isURLSearchParams(r))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let n;if(i){if(e.indexOf("application/x-www-form-urlencoded")>-1)return J$(r,this.formSerializer).toString();if((n=Z.isFileList(r))||e.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Hd(n?{"files[]":r}:r,a&&new a,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),eD(r)):r}],transformResponse:[function(r){const t=this.transitional||Mg.transitional,e=t&&t.forcedJSONParsing,o=this.responseType==="json";if(Z.isResponse(r)||Z.isReadableStream(r))return r;if(r&&Z.isString(r)&&(e&&!this.responseType||o)){const i=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(r)}catch(n){if(i)throw n.name==="SyntaxError"?we.from(n,we.ERR_BAD_RESPONSE,this,null,this.response):n}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qt.classes.FormData,Blob:Qt.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Z.forEach(["delete","get","head","post","put","patch"],r=>{Mg.headers[r]={}});const Ag=Mg,tD=Z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rD=r=>{const t={};let e,o,i;return r&&r.split(` -`).forEach(function(n){i=n.indexOf(":"),e=n.substring(0,i).trim().toLowerCase(),o=n.substring(i+1).trim(),!(!e||t[e]&&tD[e])&&(e==="set-cookie"?t[e]?t[e].push(o):t[e]=[o]:t[e]=t[e]?t[e]+", "+o:o)}),t},dy=Symbol("internals");function As(r){return r&&String(r).trim().toLowerCase()}function Xd(r){return r===!1||r==null?r:Z.isArray(r)?r.map(Xd):String(r)}function oD(r){const t=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=e.exec(r);)t[o[1]]=o[2];return t}const iD=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Tg(r,t,e,o,i){if(Z.isFunction(o))return o.call(this,t,e);if(i&&(t=e),!!Z.isString(t)){if(Z.isString(o))return t.indexOf(o)!==-1;if(Z.isRegExp(o))return o.test(t)}}function nD(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,o)=>e.toUpperCase()+o)}function aD(r,t){const e=Z.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(r,o+e,{value:function(i,n,a){return this[o].call(this,t,i,n,a)},configurable:!0})})}class Ud{constructor(t){t&&this.set(t)}set(t,e,o){const i=this;function n(s,l,d){const c=As(l);if(!c)throw new Error("header name must be a non-empty string");const u=Z.findKey(i,c);(!u||i[u]===void 0||d===!0||d===void 0&&i[u]!==!1)&&(i[u||l]=Xd(s))}const a=(s,l)=>Z.forEach(s,(d,c)=>n(d,c,l));if(Z.isPlainObject(t)||t instanceof this.constructor)a(t,e);else if(Z.isString(t)&&(t=t.trim())&&!iD(t))a(rD(t),e);else if(Z.isHeaders(t))for(const[s,l]of t.entries())n(l,s,o);else t!=null&&n(e,t,o);return this}get(t,e){if(t=As(t),t){const o=Z.findKey(this,t);if(o){const i=this[o];if(!e)return i;if(e===!0)return oD(i);if(Z.isFunction(e))return e.call(this,i,o);if(Z.isRegExp(e))return e.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=As(t),t){const o=Z.findKey(this,t);return!!(o&&this[o]!==void 0&&(!e||Tg(this,this[o],o,e)))}return!1}delete(t,e){const o=this;let i=!1;function n(a){if(a=As(a),a){const s=Z.findKey(o,a);s&&(!e||Tg(o,o[s],s,e))&&(delete o[s],i=!0)}}return Z.isArray(t)?t.forEach(n):n(t),i}clear(t){const e=Object.keys(this);let o=e.length,i=!1;for(;o--;){const n=e[o];(!t||Tg(this,this[n],n,t,!0))&&(delete this[n],i=!0)}return i}normalize(t){const e=this,o={};return Z.forEach(this,(i,n)=>{const a=Z.findKey(o,n);if(a){e[a]=Xd(i),delete e[n];return}const s=t?nD(n):String(n).trim();s!==n&&delete e[n],e[s]=Xd(i),o[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return Z.forEach(this,(o,i)=>{o!=null&&o!==!1&&(e[i]=t&&Z.isArray(o)?o.join(", "):o)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const o=new this(t);return e.forEach(i=>o.set(i)),o}static accessor(t){const e=(this[dy]=this[dy]={accessors:{}}).accessors,o=this.prototype;function i(n){const a=As(n);e[a]||(aD(o,n),e[a]=!0)}return Z.isArray(t)?t.forEach(i):i(t),this}}Ud.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Z.reduceDescriptors(Ud.prototype,({value:r},t)=>{let e=t[0].toUpperCase()+t.slice(1);return{get:()=>r,set(o){this[e]=o}}}),Z.freezeMethods(Ud);const Dr=Ud;function wg(r,t){const e=this||Ag,o=t||e,i=Dr.from(o.headers);let n=o.data;return Z.forEach(r,function(a){n=a.call(e,n,i.normalize(),t?t.status:void 0)}),i.normalize(),n}function cy(r){return!!(r&&r.__CANCEL__)}function ia(r,t,e){we.call(this,r??"canceled",we.ERR_CANCELED,t,e),this.name="CanceledError"}Z.inherits(ia,we,{__CANCEL__:!0});function uy(r,t,e){const o=e.config.validateStatus;!e.status||!o||o(e.status)?r(e):t(new we("Request failed with status code "+e.status,[we.ERR_BAD_REQUEST,we.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e))}function sD(r){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return t&&t[1]||""}function lD(r,t){r=r||10;const e=new Array(r),o=new Array(r);let i=0,n=0,a;return t=t!==void 0?t:1e3,function(s){const l=Date.now(),d=o[n];a||(a=l),e[i]=s,o[i]=l;let c=n,u=0;for(;c!==i;)u+=e[c++],c=c%r;if(i=(i+1)%r,i===n&&(n=(n+1)%r),l-a{e=l,i=null,n&&(clearTimeout(n),n=null),r.apply(null,s)};return[(...s)=>{const l=Date.now(),d=l-e;d>=o?a(s,l):(i=s,n||(n=setTimeout(()=>{n=null,a(i)},o-d)))},()=>i&&a(i)]}const Wd=(r,t,e=3)=>{let o=0;const i=lD(50,250);return dD(n=>{const a=n.loaded,s=n.lengthComputable?n.total:void 0,l=a-o,d=i(l),c=a<=s;o=a;const u={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:d||void 0,estimated:d&&s&&c?(s-a)/d:void 0,event:n,lengthComputable:s!=null,[t?"download":"upload"]:!0};r(u)},e)},hy=(r,t)=>{const e=r!=null;return[o=>t[0]({lengthComputable:e,total:r,loaded:o}),t[1]]},gy=r=>(...t)=>Z.asap(()=>r(...t)),cD=Qt.hasStandardBrowserEnv?function(){const r=Qt.navigator&&/(msie|trident)/i.test(Qt.navigator.userAgent),t=document.createElement("a");let e;function o(i){let n=i;return r&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return e=o(window.location.href),function(i){const n=Z.isString(i)?o(i):i;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}(),uD=Qt.hasStandardBrowserEnv?{write(r,t,e,o,i,n){const a=[r+"="+encodeURIComponent(t)];Z.isNumber(e)&&a.push("expires="+new Date(e).toGMTString()),Z.isString(o)&&a.push("path="+o),Z.isString(i)&&a.push("domain="+i),n===!0&&a.push("secure"),document.cookie=a.join("; ")},read(r){const t=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function hD(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function gD(r,t){return t?r.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):r}function my(r,t){return r&&!hD(t)?gD(r,t):t}const py=r=>r instanceof Dr?{...r}:r;function Ri(r,t){t=t||{};const e={};function o(d,c,u){return Z.isPlainObject(d)&&Z.isPlainObject(c)?Z.merge.call({caseless:u},d,c):Z.isPlainObject(c)?Z.merge({},c):Z.isArray(c)?c.slice():c}function i(d,c,u){if(Z.isUndefined(c)){if(!Z.isUndefined(d))return o(void 0,d,u)}else return o(d,c,u)}function n(d,c){if(!Z.isUndefined(c))return o(void 0,c)}function a(d,c){if(Z.isUndefined(c)){if(!Z.isUndefined(d))return o(void 0,d)}else return o(void 0,c)}function s(d,c,u){if(u in t)return o(d,c);if(u in r)return o(void 0,d)}const l={url:n,method:n,data:n,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(d,c)=>i(py(d),py(c),!0)};return Z.forEach(Object.keys(Object.assign({},r,t)),function(d){const c=l[d]||i,u=c(r[d],t[d],d);Z.isUndefined(u)&&c!==s||(e[d]=u)}),e}const fy=r=>{const t=Ri({},r);let{data:e,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:n,headers:a,auth:s}=t;t.headers=a=Dr.from(a),t.url=ny(my(t.baseURL,t.url),r.params,r.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Z.isFormData(e)){if(Qt.hasStandardBrowserEnv||Qt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[d,...c]=l?l.split(";").map(u=>u.trim()).filter(Boolean):[];a.setContentType([d||"multipart/form-data",...c].join("; "))}}if(Qt.hasStandardBrowserEnv&&(o&&Z.isFunction(o)&&(o=o(t)),o||o!==!1&&cD(t.url))){const d=i&&n&&uD.read(n);d&&a.set(i,d)}return t},mD=typeof XMLHttpRequest<"u",pD=mD&&function(r){return new Promise(function(t,e){const o=fy(r);let i=o.data;const n=Dr.from(o.headers).normalize();let{responseType:a,onUploadProgress:s,onDownloadProgress:l}=o,d,c,u,h,g;function p(){h&&h(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let x=new XMLHttpRequest;x.open(o.method.toUpperCase(),o.url,!0),x.timeout=o.timeout;function m(){if(!x)return;const v=Dr.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),y={data:!a||a==="text"||a==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:v,config:r,request:x};uy(function(_){t(_),p()},function(_){e(_),p()},y),x=null}"onloadend"in x?x.onloadend=m:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(m)},x.onabort=function(){x&&(e(new we("Request aborted",we.ECONNABORTED,r,x)),x=null)},x.onerror=function(){e(new we("Network Error",we.ERR_NETWORK,r,x)),x=null},x.ontimeout=function(){let v=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const y=o.transitional||sy;o.timeoutErrorMessage&&(v=o.timeoutErrorMessage),e(new we(v,y.clarifyTimeoutError?we.ETIMEDOUT:we.ECONNABORTED,r,x)),x=null},i===void 0&&n.setContentType(null),"setRequestHeader"in x&&Z.forEach(n.toJSON(),function(v,y){x.setRequestHeader(y,v)}),Z.isUndefined(o.withCredentials)||(x.withCredentials=!!o.withCredentials),a&&a!=="json"&&(x.responseType=o.responseType),l&&([u,g]=Wd(l,!0),x.addEventListener("progress",u)),s&&x.upload&&([c,h]=Wd(s),x.upload.addEventListener("progress",c),x.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(d=v=>{x&&(e(!v||v.type?new ia(null,r,x):v),x.abort(),x=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const f=sD(o.url);if(f&&Qt.protocols.indexOf(f)===-1){e(new we("Unsupported protocol "+f+":",we.ERR_BAD_REQUEST,r));return}x.send(i||null)})},fD=(r,t)=>{const{length:e}=r=r?r.filter(Boolean):[];if(t||e){let o=new AbortController,i;const n=function(d){if(!i){i=!0,s();const c=d instanceof Error?d:this.reason;o.abort(c instanceof we?c:new ia(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{a=null,n(new we(`timeout ${t} of ms exceeded`,we.ETIMEDOUT))},t);const s=()=>{r&&(a&&clearTimeout(a),a=null,r.forEach(d=>{d.unsubscribe?d.unsubscribe(n):d.removeEventListener("abort",n)}),r=null)};r.forEach(d=>d.addEventListener("abort",n));const{signal:l}=o;return l.unsubscribe=()=>Z.asap(s),l}},xD=fD,vD=function*(r,t){let e=r.byteLength;if(!t||e{const i=yD(r,t);let n=0,a,s=l=>{a||(a=!0,o&&o(l))};return new ReadableStream({async pull(l){try{const{done:d,value:c}=await i.next();if(d){s(),l.close();return}let u=c.byteLength;if(e){let h=n+=u;e(h)}l.enqueue(new Uint8Array(c))}catch(d){throw s(d),d}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},zd=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",vy=zd&&typeof ReadableStream=="function",SD=zd&&(typeof TextEncoder=="function"?(r=>t=>r.encode(t))(new TextEncoder):async r=>new Uint8Array(await new Response(r).arrayBuffer())),yy=(r,...t)=>{try{return!!r(...t)}catch{return!1}},bD=vy&&yy(()=>{let r=!1;const t=new Request(Qt.origin,{body:new ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type");return r&&!t}),_y=64*1024,Cg=vy&&yy(()=>Z.isReadableStream(new Response("").body)),Kd={stream:Cg&&(r=>r.body)};zd&&(r=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Kd[t]&&(Kd[t]=Z.isFunction(r[t])?e=>e[t]():(e,o)=>{throw new we(`Response type '${t}' is not supported`,we.ERR_NOT_SUPPORT,o)})})})(new Response);const MD=async r=>{if(r==null)return 0;if(Z.isBlob(r))return r.size;if(Z.isSpecCompliantForm(r))return(await new Request(Qt.origin,{method:"POST",body:r}).arrayBuffer()).byteLength;if(Z.isArrayBufferView(r)||Z.isArrayBuffer(r))return r.byteLength;if(Z.isURLSearchParams(r)&&(r=r+""),Z.isString(r))return(await SD(r)).byteLength},AD=async(r,t)=>Z.toFiniteNumber(r.getContentLength())??MD(t),TD=zd&&(async r=>{let{url:t,method:e,data:o,signal:i,cancelToken:n,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:d,headers:c,withCredentials:u="same-origin",fetchOptions:h}=fy(r);d=d?(d+"").toLowerCase():"text";let g=xD([i,n&&n.toAbortSignal()],a),p;const x=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let m;try{if(l&&bD&&e!=="get"&&e!=="head"&&(m=await AD(c,o))!==0){let S=new Request(t,{method:"POST",body:o,duplex:"half"}),b;if(Z.isFormData(o)&&(b=S.headers.get("content-type"))&&c.setContentType(b),S.body){const[A,M]=hy(m,Wd(gy(l)));o=xy(S.body,_y,A,M)}}Z.isString(u)||(u=u?"include":"omit");const f="credentials"in Request.prototype;p=new Request(t,{...h,signal:g,method:e.toUpperCase(),headers:c.normalize().toJSON(),body:o,duplex:"half",credentials:f?u:void 0});let v=await fetch(p);const y=Cg&&(d==="stream"||d==="response");if(Cg&&(s||y&&x)){const S={};["status","statusText","headers"].forEach(T=>{S[T]=v[T]});const b=Z.toFiniteNumber(v.headers.get("content-length")),[A,M]=s&&hy(b,Wd(gy(s),!0))||[];v=new Response(xy(v.body,_y,A,()=>{M&&M(),x&&x()}),S)}d=d||"text";let _=await Kd[Z.findKey(Kd,d)||"text"](v,r);return!y&&x&&x(),await new Promise((S,b)=>{uy(S,b,{data:_,headers:Dr.from(v.headers),status:v.status,statusText:v.statusText,config:r,request:p})})}catch(f){throw x&&x(),f&&f.name==="TypeError"&&/fetch/i.test(f.message)?Object.assign(new we("Network Error",we.ERR_NETWORK,r,p),{cause:f.cause||f}):we.from(f,f&&f.code,r,p)}}),Pg={http:k$,xhr:pD,fetch:TD};Z.forEach(Pg,(r,t)=>{if(r){try{Object.defineProperty(r,"name",{value:t})}catch{}Object.defineProperty(r,"adapterName",{value:t})}});const Sy=r=>`- ${r}`,wD=r=>Z.isFunction(r)||r===null||r===!1,by={getAdapter:r=>{r=Z.isArray(r)?r:[r];const{length:t}=r;let e,o;const i={};for(let n=0;n`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?n.length>1?`since : -`+n.map(Sy).join(` -`):" "+Sy(n[0]):"as no adapter specified";throw new we("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o},adapters:Pg};function Lg(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new ia(null,r)}function My(r){return Lg(r),r.headers=Dr.from(r.headers),r.data=wg.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),by.getAdapter(r.adapter||Ag.adapter)(r).then(function(t){return Lg(r),t.data=wg.call(r,r.transformResponse,t),t.headers=Dr.from(t.headers),t},function(t){return cy(t)||(Lg(r),t&&t.response&&(t.response.data=wg.call(r,r.transformResponse,t.response),t.response.headers=Dr.from(t.response.headers))),Promise.reject(t)})}const Ay="1.7.7",Ig={};["object","boolean","number","function","string","symbol"].forEach((r,t)=>{Ig[r]=function(e){return typeof e===r||"a"+(t<1?"n ":" ")+r}});const Ty={};Ig.transitional=function(r,t,e){function o(i,n){return"[Axios v"+Ay+"] Transitional option '"+i+"'"+n+(e?". "+e:"")}return(i,n,a)=>{if(r===!1)throw new we(o(n," has been removed"+(t?" in "+t:"")),we.ERR_DEPRECATED);return t&&!Ty[n]&&(Ty[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),r?r(i,n,a):!0}};function CD(r,t,e){if(typeof r!="object")throw new we("options must be an object",we.ERR_BAD_OPTION_VALUE);const o=Object.keys(r);let i=o.length;for(;i-- >0;){const n=o[i],a=t[n];if(a){const s=r[n],l=s===void 0||a(s,n,r);if(l!==!0)throw new we("option "+n+" must be "+l,we.ERR_BAD_OPTION_VALUE);continue}if(e!==!0)throw new we("Unknown option "+n,we.ERR_BAD_OPTION)}}const Eg={assertOptions:CD,validators:Ig},Yo=Eg.validators;class Zd{constructor(t){this.defaults=t,this.interceptors={request:new ay,response:new ay}}async request(t,e){try{return await this._request(t,e)}catch(o){if(o instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const n=i.stack?i.stack.replace(/^.+\n/,""):"";try{o.stack?n&&!String(o.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(o.stack+=` -`+n):o.stack=n}catch{}}throw o}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=Ri(this.defaults,e);const{transitional:o,paramsSerializer:i,headers:n}=e;o!==void 0&&Eg.assertOptions(o,{silentJSONParsing:Yo.transitional(Yo.boolean),forcedJSONParsing:Yo.transitional(Yo.boolean),clarifyTimeoutError:Yo.transitional(Yo.boolean)},!1),i!=null&&(Z.isFunction(i)?e.paramsSerializer={serialize:i}:Eg.assertOptions(i,{encode:Yo.function,serialize:Yo.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let a=n&&Z.merge(n.common,n[e.method]);n&&Z.forEach(["delete","get","head","post","put","patch","common"],p=>{delete n[p]}),e.headers=Dr.concat(a,n);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(e)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const d=[];this.interceptors.response.forEach(function(p){d.push(p.fulfilled,p.rejected)});let c,u=0,h;if(!l){const p=[My.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,d),h=p.length,c=Promise.resolve(e);u{if(!o._listeners)return;let n=o._listeners.length;for(;n-- >0;)o._listeners[n](i);o._listeners=null}),this.promise.then=i=>{let n;const a=new Promise(s=>{o.subscribe(s),n=s}).then(i);return a.cancel=function(){o.unsubscribe(n)},a},t(function(i,n,a){o.reason||(o.reason=new ia(i,n,a),e(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);e!==-1&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=o=>{t.abort(o)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let t;return{token:new $g(function(e){t=e}),cancel:t}}}const PD=$g;function LD(r){return function(t){return r.apply(null,t)}}function ID(r){return Z.isObject(r)&&r.isAxiosError===!0}const Dg={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Dg).forEach(([r,t])=>{Dg[t]=r});const ED=Dg;function wy(r){const t=new Yd(r),e=Xv(Yd.prototype.request,t);return Z.extend(e,Yd.prototype,t,{allOwnKeys:!0}),Z.extend(e,t,null,{allOwnKeys:!0}),e.create=function(o){return wy(Ri(r,o))},e}const st=wy(Ag);st.Axios=Yd,st.CanceledError=ia,st.CancelToken=PD,st.isCancel=cy,st.VERSION=Ay,st.toFormData=Hd,st.AxiosError=we,st.Cancel=st.CanceledError,st.all=function(r){return Promise.all(r)},st.spread=LD,st.isAxiosError=ID,st.mergeConfig=Ri,st.AxiosHeaders=Dr,st.formToJSON=r=>ly(Z.isHTMLForm(r)?new FormData(r):r),st.getAdapter=by.getAdapter,st.HttpStatusCode=ED,st.default=st;const Cy=st,$D={class:"top-menu"},DD={class:"tab-list"},OD=["onClick"],BD={key:0,class:"run"},GD={key:1,class:"run"},ND=jr({__name:"tabList",props:{tablist:{},val:{},code:{}},emits:["updateVal","updateOutput"],setup(r,{emit:t}){const e=r,o=t;function i(s){o("updateVal",s)}let n=qr(!1);Gd(async()=>{await q2e(),a(e.code)});async function a(s){n.value=!0;try{let l=await Cy.post("https://runner.pivotlang.tech/coderunner",{code:s});if(n.value=!1,l.data.status===1){o("updateOutput",l.data.compileOutput);return}if(!l.data.runOutput&&l.data.status===0){o("updateOutput","run success with no output");return}o("updateOutput",l.data.runOutput)}catch(l){n.value=!1,o("updateOutput",l)}}return(s,l)=>{const d=CE("font-awesome-icon");return at(),dt("div",$D,[ie("div",DD,[(at(!0),dt(Nd,null,Fv(e.tablist,c=>(at(),dt("div",{onClick:u=>i(c),key:c,class:Vv({selected:e.val==c})},Ss(c),11,OD))),128))]),He(n)?(at(),dt("div",GD,[We(d,{icon:"fa-spinner",class:"fa-spin",style:{color:"grey"}})])):(at(),dt("div",BD,[We(d,{icon:"fa-play",style:PE([{color:"green"},{cursor:"pointer"}]),onClick:l[0]||(l[0]=c=>a(e.code)),class:""})]))])}}}),kD=eo(ND,[["__scopeId","data-v-04026cb9"]]);var Og=function(r,t){return Og=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])},Og(r,t)};function V(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Og(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var RD=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),FD=function(){function r(){this.browser=new RD,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),Fi=new FD;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Fi.wxa=!0,Fi.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Fi.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Fi.node=!0,Fi.svgSupported=!0):VD(navigator.userAgent,Fi);function VD(r,t){var e=t.browser,o=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),n=r.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(r);o&&(e.firefox=!0,e.version=o[1]),i&&(e.ie=!0,e.version=i[1]),n&&(e.edge=!0,e.version=n[1],e.newEdge=+n[1].split(".")[0]>18),a&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const Ie=Fi;var Bg=12,Py="sans-serif",Qo=Bg+"px "+Py,HD=20,XD=100,UD="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function WD(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=a*e.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",o[l]+":0",i[d]+":0",o[1-l]+":auto",i[1-d]+":auto",""].join("!important;"),r.appendChild(a),e.push(a)}return e}function pO(r,t,e){for(var o=e?"invTrans":"trans",i=t[o],n=t.srcCoords,a=[],s=[],l=!0,d=0;d<4;d++){var c=r[d].getBoundingClientRect(),u=2*d,h=c.left,g=c.top;a.push(h,g),l=l&&n&&h===n[u]&&g===n[u+1],s.push(r[d].offsetLeft,r[d].offsetTop)}return l&&i?i:(t.srcCoords=a,t[o]=e?Vy(s,a):Vy(a,s))}function Xy(r){return r.nodeName.toUpperCase()==="CANVAS"}var fO=/([&<>"'])/g,xO={"&":"&","<":"<",">":">",'"':""","'":"'"};function It(r){return r==null?"":(r+"").replace(fO,function(t,e){return xO[e]})}var vO=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Kg=[],yO=Ie.browser.firefox&&+Ie.browser.version.split(".")[0]<39;function Zg(r,t,e,o){return e=e||{},o?Uy(r,t,e):yO&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):Uy(r,t,e),e}function Uy(r,t,e){if(Ie.domSupported&&r.getBoundingClientRect){var o=t.clientX,i=t.clientY;if(Xy(r)){var n=r.getBoundingClientRect();e.zrX=o-n.left,e.zrY=i-n.top;return}else if(zg(Kg,r,o,i)){e.zrX=Kg[0],e.zrY=Kg[1];return}}e.zrX=e.zrY=0}function Yg(r){return r||window.event}function mr(r,t,e){if(t=Yg(t),t.zrX!=null)return t;var o=t.type,i=o&&o.indexOf("touch")>=0;if(i){var n=o!=="touchend"?t.targetTouches[0]:t.changedTouches[0];n&&Zg(r,n,t,e)}else{Zg(r,t,t,e);var a=_O(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&vO.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function _O(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,o=r.deltaY;if(e==null||o==null)return t;var i=Math.abs(o!==0?o:e),n=o>0?-1:o<0?1:e>0?-1:1;return 3*i*n}function Qg(r,t,e,o){r.addEventListener(t,e,o)}function SO(r,t,e,o){r.removeEventListener(t,e,o)}var Io=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Wy(r){return r.which===2||r.which===3}var bO=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,o){return this._doTrack(t,e,o),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,o){var i=t.touches;if(i){for(var n={points:[],touches:[],target:e,event:t},a=0,s=i.length;a1&&o&&o.length>1){var n=zy(o)/zy(i);!isFinite(n)&&(n=1),t.pinchScale=n;var a=MO(o);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:r[0].target,event:t}}}}};function Jt(){return[1,0,0,1,0,0]}function Ds(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function nc(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function ro(r,t,e){var o=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],n=t[0]*e[2]+t[2]*e[3],a=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=o,r[1]=i,r[2]=n,r[3]=a,r[4]=s,r[5]=l,r}function Gr(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function ei(r,t,e,o){o===void 0&&(o=[0,0]);var i=t[0],n=t[2],a=t[4],s=t[1],l=t[3],d=t[5],c=Math.sin(e),u=Math.cos(e);return r[0]=i*u+s*c,r[1]=-i*c+s*u,r[2]=n*u+l*c,r[3]=-n*c+u*l,r[4]=u*(a-o[0])+c*(d-o[1])+o[0],r[5]=u*(d-o[1])-c*(a-o[0])+o[1],r}function ac(r,t,e){var o=e[0],i=e[1];return r[0]=t[0]*o,r[1]=t[1]*i,r[2]=t[2]*o,r[3]=t[3]*i,r[4]=t[4]*o,r[5]=t[5]*i,r}function Xi(r,t){var e=t[0],o=t[2],i=t[4],n=t[1],a=t[3],s=t[5],l=e*a-n*o;return l?(l=1/l,r[0]=a*l,r[1]=-n*l,r[2]=-o*l,r[3]=e*l,r[4]=(o*s-a*i)*l,r[5]=(n*i-e*s)*l,r):null}function Ky(r){var t=Jt();return nc(t,r),t}const AO=Object.freeze(Object.defineProperty({__proto__:null,clone:Ky,copy:nc,create:Jt,identity:Ds,invert:Xi,mul:ro,rotate:ei,scale:ac,translate:Gr},Symbol.toStringTag,{value:"Module"}));var TO=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,o=this.y-t.y;return Math.sqrt(e*e+o*o)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,o=this.y-t.y;return e*e+o*o},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,o=this.y;return this.x=t[0]*e+t[2]*o+t[4],this.y=t[1]*e+t[3]*o+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,o){t.x=e,t.y=o},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,o){t.x=e.x+o.x,t.y=e.y+o.y},r.sub=function(t,e,o){t.x=e.x-o.x,t.y=e.y-o.y},r.scale=function(t,e,o){t.x=e.x*o,t.y=e.y*o},r.scaleAndAdd=function(t,e,o,i){t.x=e.x+o.x*i,t.y=e.y+o.y*i},r.lerp=function(t,e,o,i){var n=1-i;t.x=n*e.x+i*o.x,t.y=n*e.y+i*o.y},r}();const ve=TO;var sc=Math.min,lc=Math.max,Ui=new ve,Wi=new ve,zi=new ve,Ki=new ve,Os=new ve,Bs=new ve,wO=function(){function r(t,e,o,i){o<0&&(t=t+o,o=-o),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=o,this.height=i}return r.prototype.union=function(t){var e=sc(t.x,this.x),o=sc(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=lc(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=lc(t.y+t.height,this.y+this.height)-o:this.height=t.height,this.x=e,this.y=o},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,o=t.width/e.width,i=t.height/e.height,n=Jt();return Gr(n,n,[-e.x,-e.y]),ac(n,n,[o,i]),Gr(n,n,[t.x,t.y]),n},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var o=this,i=o.x,n=o.x+o.width,a=o.y,s=o.y+o.height,l=t.x,d=t.x+t.width,c=t.y,u=t.y+t.height,h=!(np&&(p=y,xp&&(p=_,f=o.x&&t<=o.x+o.width&&e>=o.y&&e<=o.y+o.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,o){if(!o){t!==e&&r.copy(t,e);return}if(o[1]<1e-5&&o[1]>-1e-5&&o[2]<1e-5&&o[2]>-1e-5){var i=o[0],n=o[3],a=o[4],s=o[5];t.x=e.x*i+a,t.y=e.y*n+s,t.width=e.width*i,t.height=e.height*n,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Ui.x=zi.x=e.x,Ui.y=Ki.y=e.y,Wi.x=Ki.x=e.x+e.width,Wi.y=zi.y=e.y+e.height,Ui.transform(o),Ki.transform(o),Wi.transform(o),zi.transform(o),t.x=sc(Ui.x,Wi.x,zi.x,Ki.x),t.y=sc(Ui.y,Wi.y,zi.y,Ki.y);var l=lc(Ui.x,Wi.x,zi.x,Ki.x),d=lc(Ui.y,Wi.y,zi.y,Ki.y);t.width=l-t.x,t.height=d-t.y},r}();const ye=wO;var Zy="silent";function CO(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:PO}}function PO(){Io(this.event)}var LO=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(gr),Gs=function(){function r(t,e){this.x=t,this.y=e}return r}(),IO=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],jg=new ye(0,0,0,0),Yy=function(r){V(t,r);function t(e,o,i,n,a){var s=r.call(this)||this;return s._hovered=new Gs(0,0),s.storage=e,s.painter=o,s.painterRoot=n,s._pointerSize=a,i=i||new LO,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new cO(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(E(IO,function(o){e.on&&e.on(o,this[o],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var o=e.zrX,i=e.zrY,n=Jy(this,o,i),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=n?new Gs(o,i):this.findHover(o,i),d=l.target,c=this.proxy;c.setCursor&&c.setCursor(d?d.cursor:"default"),s&&d!==s&&this.dispatchToElement(a,"mouseout",e),this.dispatchToElement(l,"mousemove",e),d&&d!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var o=e.zrEventControl;o!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),o!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Gs(0,0)},t.prototype.dispatch=function(e,o){var i=this[e];i&&i.call(this,o)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var o=this.proxy;o.setCursor&&o.setCursor(e)},t.prototype.dispatchToElement=function(e,o,i){e=e||{};var n=e.target;if(!(n&&n.silent)){for(var a="on"+o,s=CO(o,e,i);n&&(n[a]&&(s.cancelBubble=!!n[a].call(n,s)),n.trigger(o,s),n=n.__hostTarget?n.__hostTarget:n.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(o,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(o,s)}))}},t.prototype.findHover=function(e,o,i){var n=this.storage.getDisplayList(),a=new Gs(e,o);if(Qy(n,a,e,o,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,d=l/2,c=new ye(e-d,o-d,l,l),u=n.length-1;u>=0;u--){var h=n[u];h!==i&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(jg.copy(h.getBoundingRect()),h.transform&&jg.applyTransform(h.transform),jg.intersect(c)&&s.push(h))}if(s.length)for(var g=4,p=Math.PI/12,x=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(n,r,t)}});function EO(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var o=r,i=void 0,n=!1;o;){if(o.ignoreClip&&(n=!0),!n){var a=o.getClipPath();if(a&&!a.contain(t,e))return!1}o.silent&&(i=!0);var s=o.__hostTarget;o=s||o.parent}return i?Zy:!0}return!1}function Qy(r,t,e,o,i){for(var n=r.length-1;n>=0;n--){var a=r[n],s=void 0;if(a!==i&&!a.ignore&&(s=EO(a,e,o))&&(!t.topTarget&&(t.topTarget=a),s!==Zy)){t.target=a;break}}}function Jy(r,t,e){var o=r.painter;return t<0||t>o.getWidth()||e<0||e>o.getHeight()}const $O=Yy;var jy=32,Ns=7;function DO(r){for(var t=0;r>=jy;)t|=r&1,r>>=1;return r+t}function qy(r,t,e,o){var i=t+1;if(i===e)return 1;if(o(r[i++],r[t])<0){for(;i=0;)i++;return i-t}function OO(r,t,e){for(e--;t>>1,i(n,r[l])<0?s=l:a=l+1;var d=o-a;switch(d){case 3:r[a+3]=r[a+2];case 2:r[a+2]=r[a+1];case 1:r[a+1]=r[a];break;default:for(;d>0;)r[a+d]=r[a+d-1],d--}r[a]=n}}function qg(r,t,e,o,i,n){var a=0,s=0,l=1;if(n(r,t[e+i])>0){for(s=o-i;l0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;ls&&(l=s);var d=a;a=i-l,l=i-d}for(a++;a>>1);n(r,t[e+c])>0?a=c+1:l=c}return l}function em(r,t,e,o,i,n){var a=0,s=0,l=1;if(n(r,t[e+i])<0){for(s=i+1;ls&&(l=s);var d=a;a=i-l,l=i-d}else{for(s=o-i;l=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a>>1);n(r,t[e+c])<0?l=c:a=c+1}return l}function BO(r,t){var e=Ns,o,i,n=0,a=[];o=[],i=[];function s(g,p){o[n]=g,i[n]=p,n+=1}function l(){for(;n>1;){var g=n-2;if(g>=1&&i[g-1]<=i[g]+i[g+1]||g>=2&&i[g-2]<=i[g]+i[g-1])i[g-1]i[g+1])break;c(g)}}function d(){for(;n>1;){var g=n-2;g>0&&i[g-1]=Ns||A>=Ns);if(M)break;S<0&&(S=0),S+=2}if(e=S,e<1&&(e=1),p===1){for(f=0;f=0;f--)r[b+f]=r[S+f];r[_]=a[y];return}for(var A=e;;){var M=0,T=0,w=!1;do if(t(a[y],r[v])<0){if(r[_--]=r[v--],M++,T=0,--p===0){w=!0;break}}else if(r[_--]=a[y--],T++,M=0,--m===1){w=!0;break}while((M|T)=0;f--)r[b+f]=r[S+f];if(p===0){w=!0;break}}if(r[_--]=a[y--],--m===1){w=!0;break}if(T=m-qg(r[v],a,0,m,m-1,t),T!==0){for(_-=T,y-=T,m-=T,b=_+1,S=y+1,f=0;f=Ns||T>=Ns);if(w)break;A<0&&(A=0),A+=2}if(e=A,e<1&&(e=1),m===1){for(_-=p,v-=p,b=_+1,S=v+1,f=p-1;f>=0;f--)r[b+f]=r[S+f];r[_]=a[y]}else{if(m===0)throw new Error;for(S=_-(m-1),f=0;fs&&(l=s),e_(r,e,e+l,e+n,t),n=l}a.pushRun(e,n),a.mergeRuns(),i-=n,e+=n}while(i!==0);a.forceMergeRuns()}}var ir=1,ks=2,da=4,t_=!1;function tm(){t_||(t_=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function r_(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var GO=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=r_}return r.prototype.traverse=function(t,e){for(var o=0;o0&&(c.__clipPaths=[]),isNaN(c.z)&&(tm(),c.z=0),isNaN(c.z2)&&(tm(),c.z2=0),isNaN(c.zlevel)&&(tm(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=t.getDecalElement&&t.getDecalElement();u&&this._updateAndAddDisplayable(u,e,o);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,o);var g=t.getTextContent();g&&this._updateAndAddDisplayable(g,e,o)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,o=t.length;e=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const NO=GO;var o_;o_=Ie.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const rm=o_;var cc={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,o=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=o/4):t=o*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/o)))},elasticOut:function(r){var t,e=.1,o=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=o/4):t=o*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/o)+1)},elasticInOut:function(r){var t,e=.1,o=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=o/4):t=o*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/o)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/o)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-cc.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?cc.bounceIn(r*2)*.5:cc.bounceOut(r*2-1)*.5+.5}};const i_=cc;var uc=Math.pow,ti=Math.sqrt,hc=1e-8,n_=1e-4,a_=ti(3),gc=1/3,oo=Jo(),pr=Jo(),ca=Jo();function ri(r){return r>-hc&&rhc||r<-hc}function ut(r,t,e,o,i){var n=1-i;return n*n*(n*r+3*i*t)+i*i*(i*o+3*n*e)}function l_(r,t,e,o,i){var n=1-i;return 3*(((t-r)*n+2*(e-t)*i)*n+(o-e)*i*i)}function mc(r,t,e,o,i,n){var a=o+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),d=r-i,c=s*s-3*a*l,u=s*l-9*a*d,h=l*l-3*s*d,g=0;if(ri(c)&&ri(u))if(ri(s))n[0]=0;else{var p=-l/s;p>=0&&p<=1&&(n[g++]=p)}else{var x=u*u-4*c*h;if(ri(x)){var m=u/c,p=-s/a+m,f=-m/2;p>=0&&p<=1&&(n[g++]=p),f>=0&&f<=1&&(n[g++]=f)}else if(x>0){var v=ti(x),y=c*s+1.5*a*(-u+v),_=c*s+1.5*a*(-u-v);y<0?y=-uc(-y,gc):y=uc(y,gc),_<0?_=-uc(-_,gc):_=uc(_,gc);var p=(-s-(y+_))/(3*a);p>=0&&p<=1&&(n[g++]=p)}else{var S=(2*c*s-3*a*u)/(2*ti(c*c*c)),b=Math.acos(S)/3,A=ti(c),M=Math.cos(b),p=(-s-2*A*M)/(3*a),f=(-s+A*(M+a_*Math.sin(b)))/(3*a),T=(-s+A*(M-a_*Math.sin(b)))/(3*a);p>=0&&p<=1&&(n[g++]=p),f>=0&&f<=1&&(n[g++]=f),T>=0&&T<=1&&(n[g++]=T)}}return g}function d_(r,t,e,o,i){var n=6*e-12*t+6*r,a=9*t+3*o-3*r-9*e,s=3*t-3*r,l=0;if(ri(a)){if(s_(n)){var d=-s/n;d>=0&&d<=1&&(i[l++]=d)}}else{var c=n*n-4*a*s;if(ri(c))i[0]=-n/(2*a);else if(c>0){var u=ti(c),d=(-n+u)/(2*a),h=(-n-u)/(2*a);d>=0&&d<=1&&(i[l++]=d),h>=0&&h<=1&&(i[l++]=h)}}return l}function oi(r,t,e,o,i,n){var a=(t-r)*i+r,s=(e-t)*i+t,l=(o-e)*i+e,d=(s-a)*i+a,c=(l-s)*i+s,u=(c-d)*i+d;n[0]=r,n[1]=a,n[2]=d,n[3]=u,n[4]=u,n[5]=c,n[6]=l,n[7]=o}function c_(r,t,e,o,i,n,a,s,l,d,c){var u,h=.005,g=1/0,p,x,m,f;oo[0]=l,oo[1]=d;for(var v=0;v<1;v+=.05)pr[0]=ut(r,e,i,a,v),pr[1]=ut(t,o,n,s,v),m=qo(oo,pr),m=0&&m=0&&d<=1&&(i[l++]=d)}}else{var c=a*a-4*n*s;if(ri(c)){var d=-a/(2*n);d>=0&&d<=1&&(i[l++]=d)}else if(c>0){var u=ti(c),d=(-a+u)/(2*n),h=(-a-u)/(2*n);d>=0&&d<=1&&(i[l++]=d),h>=0&&h<=1&&(i[l++]=h)}}return l}function u_(r,t,e){var o=r+e-2*t;return o===0?.5:(r-t)/o}function Rs(r,t,e,o,i){var n=(t-r)*o+r,a=(e-t)*o+t,s=(a-n)*o+n;i[0]=r,i[1]=n,i[2]=s,i[3]=s,i[4]=a,i[5]=e}function h_(r,t,e,o,i,n,a,s,l){var d,c=.005,u=1/0;oo[0]=a,oo[1]=s;for(var h=0;h<1;h+=.05){pr[0]=vt(r,e,i,h),pr[1]=vt(t,o,n,h);var g=qo(oo,pr);g=0&&g=1?1:mc(0,o,n,1,l,s)&&ut(0,i,a,1,s[0])}}}var HO=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||qe,this.ondestroy=t.ondestroy||qe,this.onrestart=t.onrestart||qe,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var o=this._life,i=t-this._startTime-this._pausedTime,n=i/o;n<0&&(n=0),n=Math.min(n,1);var a=this.easingFunc,s=a?a(n):n;if(this.onframe(s),n===1)if(this.loop){var l=i%o;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ae(t)?t:i_[t]||im(t)},r}();const XO=HO;var g_=function(){function r(t){this.value=t}return r}(),UO=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new g_(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,o=t.next;e?e.next=o:this.head=o,o?o.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),WO=function(){function r(t){this._list=new UO,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var o=this._list,i=this._map,n=null;if(i[t]==null){var a=o.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=o.head;o.remove(l),delete i[l.key],n=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new g_(e),s.key=t,o.insertEntry(s),i[t]=s}return n},r.prototype.get=function(t){var e=this._map[t],o=this._list;if(e!=null)return e!==o.tail&&(o.remove(e),o.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const Fs=WO;var m_={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Nr(r){return r=Math.round(r),r<0?0:r>255?255:r}function zO(r){return r=Math.round(r),r<0?0:r>360?360:r}function Vs(r){return r<0?0:r>1?1:r}function nm(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Nr(parseFloat(t)/100*255):Nr(parseInt(t,10))}function Zi(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Vs(parseFloat(t)/100):Vs(parseFloat(t))}function am(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function ii(r,t,e){return r+(t-r)*e}function fr(r,t,e,o,i){return r[0]=t,r[1]=e,r[2]=o,r[3]=i,r}function sm(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var p_=new Fs(20),pc=null;function ua(r,t){pc&&sm(pc,t),pc=p_.put(r,pc||t.slice())}function kt(r,t){if(r){t=t||[];var e=p_.get(r);if(e)return sm(t,e);r=r+"";var o=r.replace(/ /g,"").toLowerCase();if(o in m_)return sm(t,m_[o]),ua(r,t),t;var i=o.length;if(o.charAt(0)==="#"){if(i===4||i===5){var n=parseInt(o.slice(1,4),16);if(!(n>=0&&n<=4095)){fr(t,0,0,0,1);return}return fr(t,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,i===5?parseInt(o.slice(4),16)/15:1),ua(r,t),t}else if(i===7||i===9){var n=parseInt(o.slice(1,7),16);if(!(n>=0&&n<=16777215)){fr(t,0,0,0,1);return}return fr(t,(n&16711680)>>16,(n&65280)>>8,n&255,i===9?parseInt(o.slice(7),16)/255:1),ua(r,t),t}return}var a=o.indexOf("("),s=o.indexOf(")");if(a!==-1&&s+1===i){var l=o.substr(0,a),d=o.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(d.length!==4)return d.length===3?fr(t,+d[0],+d[1],+d[2],1):fr(t,0,0,0,1);c=Zi(d.pop());case"rgb":if(d.length>=3)return fr(t,nm(d[0]),nm(d[1]),nm(d[2]),d.length===3?c:Zi(d[3])),ua(r,t),t;fr(t,0,0,0,1);return;case"hsla":if(d.length!==4){fr(t,0,0,0,1);return}return d[3]=Zi(d[3]),lm(d,t),ua(r,t),t;case"hsl":if(d.length!==3){fr(t,0,0,0,1);return}return lm(d,t),ua(r,t),t;default:return}}fr(t,0,0,0,1)}}function lm(r,t){var e=(parseFloat(r[0])%360+360)%360/360,o=Zi(r[1]),i=Zi(r[2]),n=i<=.5?i*(o+1):i+o-i*o,a=i*2-n;return t=t||[],fr(t,Nr(am(a,n,e+1/3)*255),Nr(am(a,n,e)*255),Nr(am(a,n,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function KO(r){if(r){var t=r[0]/255,e=r[1]/255,o=r[2]/255,i=Math.min(t,e,o),n=Math.max(t,e,o),a=n-i,s=(n+i)/2,l,d;if(a===0)l=0,d=0;else{s<.5?d=a/(n+i):d=a/(2-n-i);var c=((n-t)/6+a/2)/a,u=((n-e)/6+a/2)/a,h=((n-o)/6+a/2)/a;t===n?l=h-u:e===n?l=1/3+c-h:o===n&&(l=2/3+u-c),l<0&&(l+=1),l>1&&(l-=1)}var g=[l*360,d,s];return r[3]!=null&&g.push(r[3]),g}}function fc(r,t){var e=kt(r);if(e){for(var o=0;o<3;o++)t<0?e[o]=e[o]*(1-t)|0:e[o]=(255-e[o])*t+e[o]|0,e[o]>255?e[o]=255:e[o]<0&&(e[o]=0);return kr(e,e.length===4?"rgba":"rgb")}}function ZO(r){var t=kt(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Hs(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var o=r*(t.length-1),i=Math.floor(o),n=Math.ceil(o),a=t[i],s=t[n],l=o-i;return e[0]=Nr(ii(a[0],s[0],l)),e[1]=Nr(ii(a[1],s[1],l)),e[2]=Nr(ii(a[2],s[2],l)),e[3]=Vs(ii(a[3],s[3],l)),e}}var YO=Hs;function dm(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var o=r*(t.length-1),i=Math.floor(o),n=Math.ceil(o),a=kt(t[i]),s=kt(t[n]),l=o-i,d=kr([Nr(ii(a[0],s[0],l)),Nr(ii(a[1],s[1],l)),Nr(ii(a[2],s[2],l)),Vs(ii(a[3],s[3],l))],"rgba");return e?{color:d,leftIndex:i,rightIndex:n,value:o}:d}}var QO=dm;function ha(r,t,e,o){var i=kt(r);if(r)return i=KO(i),t!=null&&(i[0]=zO(t)),e!=null&&(i[1]=Zi(e)),o!=null&&(i[2]=Zi(o)),kr(lm(i),"rgba")}function Xs(r,t){var e=kt(r);if(e&&t!=null)return e[3]=Vs(t),kr(e,"rgba")}function kr(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Us(r,t){var e=kt(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function JO(){return kr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var f_=new Fs(100);function xc(r){if(te(r)){var t=f_.get(r);return t||(t=fc(r,-.1),f_.put(r,t)),t}else if(Ts(r)){var e=W({},r);return e.colorStops=Y(r.colorStops,function(o){return{offset:o.offset,color:fc(o.color,-.1)}}),e}return r}const jO=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Hs,fastMapToColor:YO,lerp:dm,lift:fc,liftColor:xc,lum:Us,mapToColor:QO,modifyAlpha:Xs,modifyHSL:ha,parse:kt,random:JO,stringify:kr,toHex:ZO},Symbol.toStringTag,{value:"Module"}));var vc=Math.round;function Ws(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=kt(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var x_=1e-4;function ni(r){return r-x_}function yc(r){return vc(r*1e3)/1e3}function cm(r){return vc(r*1e4)/1e4}function qO(r){return"matrix("+yc(r[0])+","+yc(r[1])+","+yc(r[2])+","+yc(r[3])+","+cm(r[4])+","+cm(r[5])+")"}var eB={left:"start",right:"end",center:"middle",middle:"middle"};function tB(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function rB(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function oB(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function v_(r){return r&&!!r.image}function iB(r){return r&&!!r.svgElement}function um(r){return v_(r)||iB(r)}function y_(r){return r.type==="linear"}function __(r){return r.type==="radial"}function S_(r){return r&&(r.type==="linear"||r.type==="radial")}function _c(r){return"url(#"+r+")"}function b_(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function M_(r){var t=r.x||0,e=r.y||0,o=(r.rotation||0)*Ls,i=pe(r.scaleX,1),n=pe(r.scaleY,1),a=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),o&&l.push("rotate("+o+")"),(i!==1||n!==1)&&l.push("scale("+i+","+n+")"),(a||s)&&l.push("skew("+vc(a*Ls)+"deg, "+vc(s*Ls)+"deg)"),l.join(" ")}var nB=function(){return Ie.hasGlobalWindow&&ae(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),hm=Array.prototype.slice;function Eo(r,t,e){return(t-r)*e+r}function gm(r,t,e,o){for(var i=t.length,n=0;no?t:r,n=Math.min(e,o),a=i[n-1]||{color:[0,0,0,0],offset:0},s=n;sa;if(s)o.length=a;else for(var l=n;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,o){this._needsSort=!0;var i=this.keyframes,n=i.length,a=!1,s=w_,l=e;if(bt(e)){var d=dB(e);s=d,(d===1&&!Ee(e[0])||d===2&&!Ee(e[0][0]))&&(a=!0)}else if(Ee(e)&&!aa(e))s=Mc;else if(te(e))if(!isNaN(+e))s=Mc;else{var c=kt(e);c&&(l=c,s=Ks)}else if(Ts(e)){var u=W({},l);u.colorStops=Y(e.colorStops,function(g){return{offset:g.offset,color:kt(g.color)}}),y_(e)?s=mm:__(e)&&(s=pm),l=u}n===0?this.valType=s:(s!==this.valType||s===w_)&&(a=!0),this.discrete=this.discrete||a;var h={time:t,value:l,rawValue:e,percent:0};return o&&(h.easing=o,h.easingFunc=ae(o)?o:i_[o]||im(o)),i.push(h),h},r.prototype.prepare=function(t,e){var o=this.keyframes;this._needsSort&&o.sort(function(x,m){return x.time-m.time});for(var i=this.valType,n=o.length,a=o[n-1],s=this.discrete,l=Tc(i),d=C_(i),c=0;c=0&&!(a[c].percent<=e);c--);c=h(c,s-2)}else{for(c=u;ce);c++);c=h(c-1,s-2)}p=a[c+1],g=a[c]}if(g&&p){this._lastFr=c,this._lastFrP=e;var m=p.percent-g.percent,f=m===0?1:h((e-g.percent)/m,1);p.easingFunc&&(f=p.easingFunc(f));var v=o?this._additiveValue:d?Zs:t[l];if((Tc(n)||d)&&!v&&(v=this._additiveValue=[]),this.discrete)t[l]=f<1?g.rawValue:p.rawValue;else if(Tc(n))n===Ac?gm(v,g[i],p[i],f):aB(v,g[i],p[i],f);else if(C_(n)){var y=g[i],_=p[i],S=n===mm;t[l]={type:S?"linear":"radial",x:Eo(y.x,_.x,f),y:Eo(y.y,_.y,f),colorStops:Y(y.colorStops,function(A,M){var T=_.colorStops[M];return{offset:Eo(A.offset,T.offset,f),color:bc(gm([],A.color,T.color,f))}}),global:_.global},S?(t[l].x2=Eo(y.x2,_.x2,f),t[l].y2=Eo(y.y2,_.y2,f)):t[l].r=Eo(y.r,_.r,f)}else if(d)gm(v,g[i],p[i],f),o||(t[l]=bc(v));else{var b=Eo(g[i],p[i],f);o?this._additiveValue=b:t[l]=b}o&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,o=this.propName,i=this._additiveValue;e===Mc?t[o]=t[o]+i:e===Ks?(kt(t[o],Zs),Sc(Zs,Zs,i,1),t[o]=bc(Zs)):e===Ac?Sc(t[o],t[o],i,1):e===T_&&A_(t[o],t[o],i,1)},r}(),uB=function(){function r(t,e,o,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){jd("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=o}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,o){return this.whenWithKeys(t,e,Ae(e),o)},r.prototype.whenWithKeys=function(t,e,o,i){for(var n=this._tracks,a=0;a0&&l.addKeyframe(0,zs(d),i),this._trackKeys.push(s)}l.addKeyframe(t,zs(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,o=0;o0)){this._started=1;for(var e=this,o=[],i=this._maxTime||0,n=0;n1){var s=a.pop();n.addKeyframe(s.time,t[i]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},r}();const fm=uB;function ga(){return new Date().getTime()}var hB=function(r){V(t,r);function t(e){var o=r.call(this)||this;return o._running=!1,o._time=0,o._pausedTime=0,o._pauseStart=0,o._paused=!1,e=e||{},o.stage=e.stage||{},o}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var o=e.getClip();o&&this.addClip(o)},t.prototype.removeClip=function(e){if(e.animation){var o=e.prev,i=e.next;o?o.next=i:this._head=i,i?i.prev=o:this._tail=o,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var o=e.getClip();o&&this.removeClip(o),e.animation=null},t.prototype.update=function(e){for(var o=ga()-this._pausedTime,i=o-this._time,n=this._head;n;){var a=n.next,s=n.step(o,i);s&&(n.ondestroy(),this.removeClip(n)),n=a}this._time=o,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function o(){e._running&&(rm(o),!e._paused&&e.update())}rm(o)},t.prototype.start=function(){this._running||(this._time=ga(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ga(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ga()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var o=e.next;e.prev=e.next=e.animation=null,e=o}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,o){o=o||{},this.start();var i=new fm(e,o.loop);return this.addAnimator(i),i},t}(gr);const gB=hB;var mB=300,xm=Ie.domSupported,vm=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},o=Y(r,function(i){var n=i.replace("mouse","pointer");return e.hasOwnProperty(n)?n:i});return{mouse:r,touch:t,pointer:o}}(),P_={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},L_=!1;function ym(r){var t=r.pointerType;return t==="pen"||t==="touch"}function pB(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function _m(r){r&&(r.zrByTouch=!0)}function fB(r,t){return mr(r.dom,new xB(r,t),!0)}function I_(r,t){for(var e=t,o=!1;e&&e.nodeType!==9&&!(o=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return o}var xB=function(){function r(t,e){this.stopPropagation=qe,this.stopImmediatePropagation=qe,this.preventDefault=qe,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Rr={mousedown:function(r){r=mr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=mr(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=mr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=mr(this.dom,r);var t=r.toElement||r.relatedTarget;I_(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){L_=!0,r=mr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){L_||(r=mr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=mr(this.dom,r),_m(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Rr.mousemove.call(this,r),Rr.mousedown.call(this,r)},touchmove:function(r){r=mr(this.dom,r),_m(r),this.handler.processGesture(r,"change"),Rr.mousemove.call(this,r)},touchend:function(r){r=mr(this.dom,r),_m(r),this.handler.processGesture(r,"end"),Rr.mouseup.call(this,r),+new Date-+this.__lastTouchMomentO_||r<-O_}var Qi=[],ma=[],wm=Jt(),Cm=Math.abs,MB=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Yi(this.rotation)||Yi(this.x)||Yi(this.y)||Yi(this.scaleX-1)||Yi(this.scaleY-1)||Yi(this.skewX)||Yi(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),o=this.transform;if(!(e||t)){o&&(D_(o),this.invTransform=null);return}o=o||Jt(),e?this.getLocalTransform(o):D_(o),t&&(e?ro(o,t,o):nc(o,t)),this.transform=o,this._resolveGlobalScaleRatio(o)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Qi);var o=Qi[0]<0?-1:1,i=Qi[1]<0?-1:1,n=((Qi[0]-o)*e+o)/Qi[0]||0,a=((Qi[1]-i)*e+i)/Qi[1]||0;t[0]*=n,t[1]*=n,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||Jt(),Xi(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],o=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),n=Math.PI/2+i-Math.atan2(t[3],t[2]);o=Math.sqrt(o)*Math.cos(n),e=Math.sqrt(e),this.skewX=n,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=o,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Jt(),ro(ma,t.invTransform,e),e=ma);var o=this.originX,i=this.originY;(o||i)&&(wm[4]=o,wm[5]=i,ro(ma,e,wm),ma[4]-=o,ma[5]-=i,e=ma),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var o=[t,e],i=this.invTransform;return i&&xt(o,o,i),o},r.prototype.transformCoordToGlobal=function(t,e){var o=[t,e],i=this.transform;return i&&xt(o,o,i),o},r.prototype.getLineScale=function(){var t=this.transform;return t&&Cm(t[0]-1)>1e-10&&Cm(t[3]-1)>1e-10?Math.sqrt(Cm(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){B_(this,t)},r.getLocalTransform=function(t,e){e=e||[];var o=t.originX||0,i=t.originY||0,n=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,d=t.rotation||0,c=t.x,u=t.y,h=t.skewX?Math.tan(t.skewX):0,g=t.skewY?Math.tan(-t.skewY):0;if(o||i||s||l){var p=o+s,x=i+l;e[4]=-p*n-h*x*a,e[5]=-x*a-g*p*n}else e[4]=e[5]=0;return e[0]=n,e[3]=a,e[1]=g*n,e[2]=h*a,d&&ei(e,e,d),e[4]+=o+c,e[5]+=i+u,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),io=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function B_(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function Lc(r,t,e){var o=t.position||"inside",i=t.distance!=null?t.distance:5,n=e.height,a=e.width,s=n/2,l=e.x,d=e.y,c="left",u="top";if(o instanceof Array)l+=Fr(o[0],e.width),d+=Fr(o[1],e.height),c=null,u=null;else switch(o){case"left":l-=i,d+=s,c="right",u="middle";break;case"right":l+=i+a,d+=s,u="middle";break;case"top":l+=a/2,d-=i,c="center",u="bottom";break;case"bottom":l+=a/2,d+=n+i,c="center";break;case"inside":l+=a/2,d+=s,c="center",u="middle";break;case"insideLeft":l+=i,d+=s,u="middle";break;case"insideRight":l+=a-i,d+=s,c="right",u="middle";break;case"insideTop":l+=a/2,d+=i,c="center";break;case"insideBottom":l+=a/2,d+=n-i,c="center",u="bottom";break;case"insideTopLeft":l+=i,d+=i;break;case"insideTopRight":l+=a-i,d+=i,c="right";break;case"insideBottomLeft":l+=i,d+=n-i,u="bottom";break;case"insideBottomRight":l+=a-i,d+=n-i,c="right",u="bottom";break}return r=r||{},r.x=l,r.y=d,r.align=c,r.verticalAlign=u,r}var Pm="__zr_normal__",Lm=io.concat(["ignore"]),AB=ur(io,function(r,t){return r[t]=!0,r},{ignore:!1}),fa={},TB=new ye(0,0,0,0),Im=function(){function r(t){this.id=kg(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,o){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var o=this.textConfig,i=o.local,n=e.innerTransformable,a=void 0,s=void 0,l=!1;n.parent=i?this:null;var d=!1;if(n.copyTransform(e),o.position!=null){var c=TB;o.layoutRect?c.copy(o.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(fa,o,c):Lc(fa,o,c),n.x=fa.x,n.y=fa.y,a=fa.align,s=fa.verticalAlign;var u=o.origin;if(u&&o.rotation!=null){var h=void 0,g=void 0;u==="center"?(h=c.width*.5,g=c.height*.5):(h=Fr(u[0],c.width),g=Fr(u[1],c.height)),d=!0,n.originX=-n.x+h+(i?0:c.x),n.originY=-n.y+g+(i?0:c.y)}}o.rotation!=null&&(n.rotation=o.rotation);var p=o.offset;p&&(n.x+=p[0],n.y+=p[1],d||(n.originX=-p[0],n.originY=-p[1]));var x=o.inside==null?typeof o.position=="string"&&o.position.indexOf("inside")>=0:o.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),f=void 0,v=void 0,y=void 0;x&&this.canBeInsideText()?(f=o.insideFill,v=o.insideStroke,(f==null||f==="auto")&&(f=this.getInsideTextFill()),(v==null||v==="auto")&&(v=this.getInsideTextStroke(f),y=!0)):(f=o.outsideFill,v=o.outsideStroke,(f==null||f==="auto")&&(f=this.getOutsideFill()),(v==null||v==="auto")&&(v=this.getOutsideStroke(f),y=!0)),f=f||"#000",(f!==m.fill||v!==m.stroke||y!==m.autoStroke||a!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=f,m.stroke=v,m.autoStroke=y,m.align=a,m.verticalAlign=s,e.setDefaultTextStyle(m)),e.__dirty|=ir,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Tm:Am},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),o=typeof e=="string"&&kt(e);o||(o=[255,255,255,1]);for(var i=o[3],n=this.__zr.isDarkMode(),a=0;a<3;a++)o[a]=o[a]*i+(n?0:255)*(1-i);return o[3]=1,kr(o,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},W(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(de(t))for(var o=t,i=Ae(o),n=0;n0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Pm,!1,t)},r.prototype.useState=function(t,e,o,i){var n=t===Pm,a=this.hasState();if(!(!a&&n)){var s=this.currentStates,l=this.stateTransition;if(!(Se(s,t)>=0&&(e||s.length===1))){var d;if(this.stateProxy&&!n&&(d=this.stateProxy(t)),d||(d=this.states&&this.states[t]),!d&&!n){jd("State "+t+" not exists.");return}n||this.saveCurrentToNormalState(d);var c=!!(d&&d.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,d,this._normalState,e,!o&&!this.__inHover&&l&&l.duration>0,l);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,o,c),h&&h.useState(t,e,o,c),n?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ir),d}}},r.prototype.useStates=function(t,e,o){if(!t.length)this.clearStates();else{var i=[],n=this.currentStates,a=t.length,s=a===n.length;if(s){for(var l=0;l0,p);var x=this._textContent,m=this._textGuide;x&&x.useStates(t,e,h),m&&m.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ir)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var o=this.currentStates.slice();o.splice(e,1),this.useStates(o)}},r.prototype.replaceState=function(t,e,o){var i=this.currentStates.slice(),n=Se(i,t),a=Se(i,e)>=0;n>=0?a?i.splice(n,1):i[n]=e:o&&!a&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},o,i=0;i=0&&n.splice(a,1)}),this.animators.push(t),o&&o.animation.addAnimator(t),o&&o.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var o=this.animators,i=o.length,n=[],a=0;a0&&e.during&&n[0].during(function(p,x){e.during(x)});for(var h=0;h0||i.force&&!a.length){var M=void 0,T=void 0,w=void 0;if(s){T={},h&&(M={});for(var _=0;_=0&&(i.splice(n,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,o){var i=Se(this._children,e);return i>=0&&this.replaceAt(o,i),this},t.prototype.replaceAt=function(e,o){var i=this._children,n=i[o];if(e&&e!==this&&e.parent!==this&&e!==n){i[o]=e,n.parent=null;var a=this.__zr;a&&n.removeSelfFromZr(a),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var o=this.__zr;o&&o!==e.__zr&&e.addSelfToZr(o),o&&o.refresh()},t.prototype.remove=function(e){var o=this.__zr,i=this._children,n=Se(i,e);return n<0?this:(i.splice(n,1),e.parent=null,o&&e.removeSelfFromZr(o),o&&o.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,o=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,o){return this._disposed||this.handler.on(t,e,o),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(r<=i)return a;if(r>=n)return s}else{if(r>=i)return a;if(r<=n)return s}else{if(r===i)return a;if(r===n)return s}return(r-i)/l*d+a}function ee(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return te(r)?kB(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Qe(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),W_),r=(+r).toFixed(t),e?r:+r}function ar(r){return r.sort(function(t,e){return t-e}),r}function Vr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return z_(r)}function z_(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),o=e>0?+t.slice(e+1):0,i=e>0?e:t.length,n=t.indexOf("."),a=n<0?0:i-1-n;return Math.max(0,a-o)}function Bm(r,t){var e=Math.log,o=Math.LN10,i=Math.floor(e(r[1]-r[0])/o),n=Math.round(e(Math.abs(t[1]-t[0]))/o),a=Math.min(Math.max(-i+n,0),20);return isFinite(a)?a:20}function RB(r,t,e){if(!r[t])return 0;var o=K_(r,e);return o[t]||0}function K_(r,t){var e=ur(r,function(g,p){return g+(isNaN(p)?0:p)},0);if(e===0)return[];for(var o=Math.pow(10,t),i=Y(r,function(g){return(isNaN(g)?0:g)/e*o*100}),n=o*100,a=Y(i,function(g){return Math.floor(g)}),s=ur(a,function(g,p){return g+p},0),l=Y(i,function(g,p){return g-a[p]});sd&&(d=l[u],c=u);++a[c],l[c]=0,++s}return Y(a,function(g){return g/o})}function FB(r,t){var e=Math.max(Vr(r),Vr(t)),o=r+t;return e>W_?o:Qe(o,e)}var Gm=9007199254740991;function Nm(r){var t=Math.PI*2;return(r%t+t)%t}function xa(r){return r>-U_&&r=10&&t++,t}function km(r,t){var e=Ec(r),o=Math.pow(10,e),i=r/o,n;return t?i<1.5?n=1:i<2.5?n=2:i<4?n=3:i<7?n=5:n=10:i<1?n=1:i<2?n=2:i<3?n=3:i<5?n=5:n=10,r=n*o,e>=-20?+r.toFixed(e<0?-e:0):r}function $c(r,t){var e=(r.length-1)*t+1,o=Math.floor(e),i=+r[o-1],n=e-o;return n?i+n*(r[o]-i):i}function Rm(r){r.sort(function(l,d){return s(l,d,0)?-1:1});for(var t=-1/0,e=1,o=0;o=0||n&&Se(n,l)<0)){var d=o.getShallow(l,t);d!=null&&(a[r[s][0]]=d)}}return a}}var uG=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],hG=tn(uG),gG=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return hG(this,t,e)},r}(),Wm=new Fs(50);function mG(r){if(typeof r=="string"){var t=Wm.get(r);return t&&t.image}else return r}function zm(r,t,e,o,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var n=Wm.get(r),a={hostEl:e,cb:o,cbPayload:i};return n?(t=n.image,!Oc(t)&&n.pending.push(a)):(t=Or.loadImage(r,lS,lS),t.__zrImageSrc=r,Wm.put(r,t.__cachedImgObj={image:t,pending:[a]})),t}else return r;else return t}function lS(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=a;l++)s-=a;var d=nr(e,t);return d>s&&(e="",d=0),s=r-d,i.ellipsis=e,i.ellipsisWidth=d,i.contentWidth=s,i.containerWidth=r,i}function uS(r,t){var e=t.containerWidth,o=t.font,i=t.contentWidth;if(!e)return"";var n=nr(r,o);if(n<=e)return r;for(var a=0;;a++){if(n<=i||a>=t.maxIterations){r+=t.ellipsis;break}var s=a===0?pG(r,i,t.ascCharWidth,t.cnCharWidth):n>0?Math.floor(r.length*i/n):0;r=r.substr(0,s),n=nr(r,o)}return r===""&&(r=t.placeholder),r}function pG(r,t,e,o){for(var i=0,n=0,a=r.length;ng&&d){var p=Math.floor(g/s);u=u.slice(0,p)}if(r&&n&&c!=null)for(var x=cS(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;ms&&Zm(e,r.substring(s,d),t,a),Zm(e,l[2],t,a,l[1]),s=Km.lastIndex}si){S>0?(v.tokens=v.tokens.slice(0,S),m(v,_,y),e.lines=e.lines.slice(0,f+1)):e.lines=e.lines.slice(0,f);break e}var P=A.width,L=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")b.percentWidth=P,c.push(b),b.contentWidth=nr(b.text,w);else{if(L){var $=A.backgroundColor,O=$&&$.image;O&&(O=mG(O),Oc(O)&&(b.width=Math.max(b.width,O.width*C/O.height)))}var N=p&&o!=null?o-_:null;N!=null&&N0&&p+o.accumWidth>o.width&&(c=t.split(` -`),d=!0),o.accumWidth=p}else{var x=gS(t,l,o.width,o.breakAll,o.accumWidth);o.accumWidth=x.accumWidth+g,u=x.linesWidths,c=x.lines}}else c=t.split(` -`);for(var m=0;m=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var SG=ur(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function bG(r){return _G(r)?!!SG[r]:!0}function gS(r,t,e,o,i){for(var n=[],a=[],s="",l="",d=0,c=0,u=0;ue:i+c+g>e){c?(s||l)&&(p?(s||(s=l,l="",d=0,c=d),n.push(s),a.push(c-d),l+=h,d+=g,s="",c=d):(l&&(s+=l,l="",d=0),n.push(s),a.push(c),s=h,c=g)):p?(n.push(l),a.push(d),l=h,d=g):(n.push(h),a.push(g));continue}c+=g,p?(l+=h,d+=g):(l&&(s+=l,l="",d=0),s+=h)}return!n.length&&!s&&(s=r,l="",d=0),l&&(s+=l),s&&(n.push(s),a.push(c)),n.length===1&&(c+=i),{accumWidth:c,lines:n,linesWidths:a}}var Ym="__zr_style_"+Math.round(Math.random()*10),rn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Bc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};rn[Ym]=!0;var mS=["z","z2","invisible"],MG=["invisible"],AG=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var o=Ae(e),i=0;i1e-4){s[0]=r-e,s[1]=t-o,l[0]=r+e,l[1]=t+o;return}if(Gc[0]=qm(i)*e+r,Gc[1]=jm(i)*o+t,Nc[0]=qm(n)*e+r,Nc[1]=jm(n)*o+t,d(s,Gc,Nc),c(l,Gc,Nc),i=i%on,i<0&&(i=i+on),n=n%on,n<0&&(n=n+on),i>n&&!a?n+=on:ii&&(kc[0]=qm(g)*e+r,kc[1]=jm(g)*o+t,d(s,kc,s),c(l,kc,l))}var Xe={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},nn=[],an=[],so=[],ai=[],lo=[],co=[],ep=Math.min,tp=Math.max,sn=Math.cos,ln=Math.sin,Do=Math.abs,rp=Math.PI,si=rp*2,op=typeof Float32Array<"u",tl=[];function ip(r){var t=Math.round(r/rp*1e8)/1e8;return t%2*rp}function np(r,t){var e=ip(r[0]);e<0&&(e+=si);var o=e-r[0],i=r[1];i+=o,!t&&i-e>=si?i=e+si:t&&e-i>=si?i=e-si:!t&&e>i?i=e+(si-ip(e-i)):t&&e0&&(this._ux=Do(o/Cc/t)||0,this._uy=Do(o/Cc/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Xe.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var o=Do(t-this._xi),i=Do(e-this._yi),n=o>this._ux||i>this._uy;if(this.addData(Xe.L,t,e),this._ctx&&n&&this._ctx.lineTo(t,e),n)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var a=o*o+i*i;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=a)}return this},r.prototype.bezierCurveTo=function(t,e,o,i,n,a){return this._drawPendingPt(),this.addData(Xe.C,t,e,o,i,n,a),this._ctx&&this._ctx.bezierCurveTo(t,e,o,i,n,a),this._xi=n,this._yi=a,this},r.prototype.quadraticCurveTo=function(t,e,o,i){return this._drawPendingPt(),this.addData(Xe.Q,t,e,o,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,o,i),this._xi=o,this._yi=i,this},r.prototype.arc=function(t,e,o,i,n,a){this._drawPendingPt(),tl[0]=i,tl[1]=n,np(tl,a),i=tl[0],n=tl[1];var s=n-i;return this.addData(Xe.A,t,e,o,o,i,s,0,a?0:1),this._ctx&&this._ctx.arc(t,e,o,i,n,a),this._xi=sn(n)*o+t,this._yi=ln(n)*o+e,this},r.prototype.arcTo=function(t,e,o,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,o,i,n),this},r.prototype.rect=function(t,e,o,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,o,i),this.addData(Xe.R,t,e,o,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Xe.Z);var t=this._ctx,e=this._x0,o=this._y0;return t&&t.closePath(),this._xi=e,this._yi=o,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&op&&(this.data=new Float32Array(e));for(var o=0;oc.length&&(this._expandData(),c=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){so[0]=so[1]=lo[0]=lo[1]=Number.MAX_VALUE,ai[0]=ai[1]=co[0]=co[1]=-Number.MAX_VALUE;var t=this.data,e=0,o=0,i=0,n=0,a;for(a=0;ao||Do(y)>i||h===e-1)&&(x=Math.sqrt(v*v+y*y),n=m,a=f);break}case Xe.C:{var _=t[h++],S=t[h++],m=t[h++],f=t[h++],b=t[h++],A=t[h++];x=kO(n,a,_,S,m,f,b,A,10),n=b,a=A;break}case Xe.Q:{var _=t[h++],S=t[h++],m=t[h++],f=t[h++];x=FO(n,a,_,S,m,f,10),n=m,a=f;break}case Xe.A:var M=t[h++],T=t[h++],w=t[h++],C=t[h++],P=t[h++],L=t[h++],$=L+P;h+=1,p&&(s=sn(P)*w+M,l=ln(P)*C+T),x=tp(w,C)*ep(si,Math.abs(L)),n=sn($)*w+M,a=ln($)*C+T;break;case Xe.R:{s=n=t[h++],l=a=t[h++];var O=t[h++],N=t[h++];x=O*2+N*2;break}case Xe.Z:{var v=s-n,y=l-a;x=Math.sqrt(v*v+y*y),n=s,a=l;break}}x>=0&&(d[u++]=x,c+=x)}return this._pathLen=c,c},r.prototype.rebuildPath=function(t,e){var o=this.data,i=this._ux,n=this._uy,a=this._len,s,l,d,c,u,h,g=e<1,p,x,m=0,f=0,v,y=0,_,S;if(!(g&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,x=this._pathLen,v=e*x,!v)))e:for(var b=0;b0&&(t.lineTo(_,S),y=0),A){case Xe.M:s=d=o[b++],l=c=o[b++],t.moveTo(d,c);break;case Xe.L:{u=o[b++],h=o[b++];var T=Do(u-d),w=Do(h-c);if(T>i||w>n){if(g){var C=p[f++];if(m+C>v){var P=(v-m)/C;t.lineTo(d*(1-P)+u*P,c*(1-P)+h*P);break e}m+=C}t.lineTo(u,h),d=u,c=h,y=0}else{var L=T*T+w*w;L>y&&(_=u,S=h,y=L)}break}case Xe.C:{var $=o[b++],O=o[b++],N=o[b++],R=o[b++],I=o[b++],D=o[b++];if(g){var C=p[f++];if(m+C>v){var P=(v-m)/C;oi(d,$,N,I,P,nn),oi(c,O,R,D,P,an),t.bezierCurveTo(nn[1],an[1],nn[2],an[2],nn[3],an[3]);break e}m+=C}t.bezierCurveTo($,O,N,R,I,D),d=I,c=D;break}case Xe.Q:{var $=o[b++],O=o[b++],N=o[b++],R=o[b++];if(g){var C=p[f++];if(m+C>v){var P=(v-m)/C;Rs(d,$,N,P,nn),Rs(c,O,R,P,an),t.quadraticCurveTo(nn[1],an[1],nn[2],an[2]);break e}m+=C}t.quadraticCurveTo($,O,N,R),d=N,c=R;break}case Xe.A:var G=o[b++],k=o[b++],H=o[b++],z=o[b++],Q=o[b++],q=o[b++],se=o[b++],B=!o[b++],F=H>z?H:z,U=Do(H-z)>.001,X=Q+q,j=!1;if(g){var C=p[f++];m+C>v&&(X=Q+q*(v-m)/C,j=!0),m+=C}if(U&&t.ellipse?t.ellipse(G,k,H,z,se,Q,X,B):t.arc(G,k,F,Q,X,B),j)break e;M&&(s=sn(Q)*H+G,l=ln(Q)*z+k),d=sn(X)*H+G,c=ln(X)*z+k;break;case Xe.R:s=d=o[b],l=c=o[b+1],u=o[b++],h=o[b++];var J=o[b++],ge=o[b++];if(g){var C=p[f++];if(m+C>v){var fe=v-m;t.moveTo(u,h),t.lineTo(u+ep(fe,J),h),fe-=J,fe>0&&t.lineTo(u+J,h+ep(fe,ge)),fe-=ge,fe>0&&t.lineTo(u+tp(J-fe,0),h+ge),fe-=J,fe>0&&t.lineTo(u,h+tp(ge-fe,0));break e}m+=C}t.rect(u,h,J,ge);break;case Xe.Z:if(g){var C=p[f++];if(m+C>v){var P=(v-m)/C;t.lineTo(d*(1-P)+s*P,c*(1-P)+l*P);break e}m+=C}t.closePath(),d=s,c=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=Xe,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const uo=LG;function li(r,t,e,o,i,n,a){if(i===0)return!1;var s=i,l=0,d=r;if(a>t+s&&a>o+s||ar+s&&n>e+s||nt+u&&c>o+u&&c>n+u&&c>s+u||cr+u&&d>e+u&&d>i+u&&d>a+u||dt+d&&l>o+d&&l>n+d||lr+d&&s>e+d&&s>i+d||se||c+di&&(i+=rl);var h=Math.atan2(l,s);return h<0&&(h+=rl),h>=o&&h<=i||h+rl>=o&&h+rl<=i}function Oo(r,t,e,o,i,n){if(n>t&&n>o||ni?s:0}var di=uo.CMD,dn=Math.PI*2,$G=1e-4;function DG(r,t){return Math.abs(r-t)<$G}var Rt=[-1,-1,-1],vr=[-1,-1];function OG(){var r=vr[0];vr[0]=vr[1],vr[1]=r}function BG(r,t,e,o,i,n,a,s,l,d){if(d>t&&d>o&&d>n&&d>s||d1&&OG(),g=ut(t,o,n,s,vr[0]),h>1&&(p=ut(t,o,n,s,vr[1]))),h===2?mt&&s>o&&s>n||s=0&&d<=1){for(var c=0,u=vt(t,o,n,d),h=0;he||s<-e)return 0;var l=Math.sqrt(e*e-s*s);Rt[0]=-l,Rt[1]=l;var d=Math.abs(o-i);if(d<1e-4)return 0;if(d>=dn-1e-4){o=0,i=dn;var c=n?1:-1;return a>=Rt[0]+r&&a<=Rt[1]+r?c:0}if(o>i){var u=o;o=i,i=u}o<0&&(o+=dn,i+=dn);for(var h=0,g=0;g<2;g++){var p=Rt[g];if(p+r>a){var x=Math.atan2(s,p),c=n?1:-1;x<0&&(x=dn+x),(x>=o&&x<=i||x+dn>=o&&x+dn<=i)&&(x>Math.PI/2&&x1&&(e||(s+=Oo(l,d,c,u,o,i))),m&&(l=n[p],d=n[p+1],c=l,u=d),x){case di.M:c=n[p++],u=n[p++],l=c,d=u;break;case di.L:if(e){if(li(l,d,n[p],n[p+1],t,o,i))return!0}else s+=Oo(l,d,n[p],n[p+1],o,i)||0;l=n[p++],d=n[p++];break;case di.C:if(e){if(IG(l,d,n[p++],n[p++],n[p++],n[p++],n[p],n[p+1],t,o,i))return!0}else s+=BG(l,d,n[p++],n[p++],n[p++],n[p++],n[p],n[p+1],o,i)||0;l=n[p++],d=n[p++];break;case di.Q:if(e){if(vS(l,d,n[p++],n[p++],n[p],n[p+1],t,o,i))return!0}else s+=GG(l,d,n[p++],n[p++],n[p],n[p+1],o,i)||0;l=n[p++],d=n[p++];break;case di.A:var f=n[p++],v=n[p++],y=n[p++],_=n[p++],S=n[p++],b=n[p++];p+=1;var A=!!(1-n[p++]);h=Math.cos(S)*y+f,g=Math.sin(S)*_+v,m?(c=h,u=g):s+=Oo(l,d,h,g,o,i);var M=(o-f)*_/y+f;if(e){if(EG(f,v,_,S,S+b,A,t,M,i))return!0}else s+=NG(f,v,_,S,S+b,A,M,i);l=Math.cos(S+b)*y+f,d=Math.sin(S+b)*_+v;break;case di.R:c=l=n[p++],u=d=n[p++];var T=n[p++],w=n[p++];if(h=c+T,g=u+w,e){if(li(c,u,h,u,t,o,i)||li(h,u,h,g,t,o,i)||li(h,g,c,g,t,o,i)||li(c,g,c,u,t,o,i))return!0}else s+=Oo(h,u,h,g,o,i),s+=Oo(c,g,c,u,o,i);break;case di.Z:if(e){if(li(l,d,c,u,t,o,i))return!0}else s+=Oo(l,d,c,u,o,i);l=c,d=u;break}}return!e&&!DG(d,u)&&(s+=Oo(l,d,c,u,o,i)||0),s!==0}function kG(r,t,e){return _S(r,0,!1,t,e)}function RG(r,t,e,o){return _S(r,t,!0,e,o)}var Fc=le({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},rn),FG={style:le({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Bc.style)},ap=io.concat(["invisible","culling","z","z2","zlevel","parent"]),VG=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var o=this.style;if(o.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){e.buildPath(l,e.shape)}),i.silent=!0;var n=i.style;for(var a in o)n[a]!==o[a]&&(n[a]=o[a]);n.fill=o.fill?o.decal:null,n.decal=null,n.shadowColor=null,o.strokeFirst&&(n.stroke=null);for(var s=0;s.5?Am:o>.2?bB:Tm}else if(e)return Tm}return Am},t.prototype.getInsideTextStroke=function(e){var o=this.style.fill;if(te(o)){var i=this.__zr,n=!!(i&&i.isDarkMode()),a=Us(e,0)0))},t.prototype.hasFill=function(){var e=this.style,o=e.fill;return o!=null&&o!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,o=this.style,i=!e;if(i){var n=!1;this.path||(n=!0,this.createPathProxy());var a=this.path;(n||this.__dirty&da)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),e=a.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var l=o.strokeNoScale?this.getLineScale():1,d=o.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;d=Math.max(d,c??4)}l>1e-10&&(s.width+=d/l,s.height+=d/l,s.x-=d/l/2,s.y-=d/l/2)}return s}return e},t.prototype.contain=function(e,o){var i=this.transformCoordToLocal(e,o),n=this.getBoundingRect(),a=this.style;if(e=i[0],o=i[1],n.contain(e,o)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,d=a.strokeNoScale?this.getLineScale():1;if(d>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),RG(s,l/d,e,o)))return!0}if(this.hasFill())return kG(s,e,o)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=da,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,o){e==="shape"?this.setShape(o):r.prototype.attrKV.call(this,e,o)},t.prototype.setShape=function(e,o){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=o:W(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&da)},t.prototype.createStyle=function(e){return Ps(Fc,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var o=this._normalState;e.shape&&!o.shape&&(o.shape=W({},this.shape))},t.prototype._applyStateObj=function(e,o,i,n,a,s){r.prototype._applyStateObj.call(this,e,o,i,n,a,s);var l=!(o&&n),d;if(o&&o.shape?a?n?d=o.shape:(d=W({},i.shape),W(d,o.shape)):(d=W({},n?this.shape:i.shape),W(d,o.shape)):l&&(d=i.shape),d)if(a){this.shape=W({},this.shape);for(var c={},u=Ae(d),h=0;h0},t.prototype.hasFill=function(){var e=this.style,o=e.fill;return o!=null&&o!=="none"},t.prototype.createStyle=function(e){return Ps(HG,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var o=e.text;o!=null?o+="":o="";var i=Ys(o,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var n=e.lineWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(xr);SS.prototype.type="tspan";const ol=SS;var XG=le({x:0,y:0},rn),UG={style:le({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Bc.style)};function WG(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var bS=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Ps(XG,e)},t.prototype._getSize=function(e){var o=this.style,i=o[e];if(i!=null)return i;var n=WG(o.image)?o.image:this.__image;if(!n)return 0;var a=e==="width"?"height":"width",s=o[a];return s==null?n[e]:n[e]/n[a]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return UG},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ye(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(xr);bS.prototype.type="image";const yt=bS;function zG(r,t){var e=t.x,o=t.y,i=t.width,n=t.height,a=t.r,s,l,d,c;i<0&&(e=e+i,i=-i),n<0&&(o=o+n,n=-n),typeof a=="number"?s=l=d=c=a:a instanceof Array?a.length===1?s=l=d=c=a[0]:a.length===2?(s=d=a[0],l=c=a[1]):a.length===3?(s=a[0],l=c=a[1],d=a[2]):(s=a[0],l=a[1],d=a[2],c=a[3]):s=l=d=c=0;var u;s+l>i&&(u=s+l,s*=i/u,l*=i/u),d+c>i&&(u=d+c,d*=i/u,c*=i/u),l+d>n&&(u=l+d,l*=n/u,d*=n/u),s+c>n&&(u=s+c,s*=n/u,c*=n/u),r.moveTo(e+s,o),r.lineTo(e+i-l,o),l!==0&&r.arc(e+i-l,o+l,l,-Math.PI/2,0),r.lineTo(e+i,o+n-d),d!==0&&r.arc(e+i-d,o+n-d,d,0,Math.PI/2),r.lineTo(e+c,o+n),c!==0&&r.arc(e+c,o+n-c,c,Math.PI/2,Math.PI),r.lineTo(e,o+s),s!==0&&r.arc(e+s,o+s,s,Math.PI,Math.PI*1.5)}var ya=Math.round;function MS(r,t,e){if(t){var o=t.x1,i=t.x2,n=t.y1,a=t.y2;r.x1=o,r.x2=i,r.y1=n,r.y2=a;var s=e&&e.lineWidth;return s&&(ya(o*2)===ya(i*2)&&(r.x1=r.x2=cn(o,s,!0)),ya(n*2)===ya(a*2)&&(r.y1=r.y2=cn(n,s,!0))),r}}function AS(r,t,e){if(t){var o=t.x,i=t.y,n=t.width,a=t.height;r.x=o,r.y=i,r.width=n,r.height=a;var s=e&&e.lineWidth;return s&&(r.x=cn(o,s,!0),r.y=cn(i,s,!0),r.width=Math.max(cn(o+n,s,!1)-r.x,n===0?0:1),r.height=Math.max(cn(i+a,s,!1)-r.y,a===0?0:1)),r}}function cn(r,t,e){if(!t)return r;var o=ya(r*2);return(o+ya(t))%2===0?o/2:(o+(e?1:-1))/2}var KG=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),ZG={},TS=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new KG},t.prototype.buildPath=function(e,o){var i,n,a,s;if(this.subPixelOptimize){var l=AS(ZG,o,this.style);i=l.x,n=l.y,a=l.width,s=l.height,l.r=o.r,o=l}else i=o.x,n=o.y,a=o.width,s=o.height;o.r?zG(e,o):e.rect(i,n,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Me);TS.prototype.type="rect";const Pe=TS;var wS={fill:"#000"},CS=2,YG={style:le({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Bc.style)},PS=function(r){V(t,r);function t(e){var o=r.call(this)||this;return o.type="text",o._children=[],o._defaultStyle=wS,o.attr(e),o}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,P=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=a.calculatedLineHeight,$=0;$=0&&($=b[L],$.align==="right");)this._placeToken($,e,M,f,P,"right",y),T-=$.width,P-=$.width,L--;for(C+=(n-(C-m)-(v-P)-T)/2;w<=L;)$=b[w],this._placeToken($,e,M,f,C+$.width/2,"center",y),C+=$.width,w++;f+=M}},t.prototype._placeToken=function(e,o,i,n,a,s,l){var d=o.rich[e.styleName]||{};d.text=e.text;var c=e.verticalAlign,u=n+i/2;c==="top"?u=n+e.height/2:c==="bottom"&&(u=n+i-e.height/2);var h=!e.isLineHolder&&sp(d);h&&this._renderBackground(d,o,s==="right"?a-e.width:s==="center"?a-e.width/2:a,u-e.height/2,e.width,e.height);var g=!!d.backgroundColor,p=e.textPadding;p&&(a=GS(a,s,p),u-=e.height/2-p[0]-e.innerHeight/2);var x=this._getOrCreateChild(ol),m=x.createStyle();x.useStyle(m);var f=this._defaultStyle,v=!1,y=0,_=BS("fill"in d?d.fill:"fill"in o?o.fill:(v=!0,f.fill)),S=OS("stroke"in d?d.stroke:"stroke"in o?o.stroke:!g&&!l&&(!f.autoStroke||v)?(y=CS,f.stroke):null),b=d.textShadowBlur>0||o.textShadowBlur>0;m.text=e.text,m.x=a,m.y=u,b&&(m.shadowBlur=d.textShadowBlur||o.textShadowBlur||0,m.shadowColor=d.textShadowColor||o.textShadowColor||"transparent",m.shadowOffsetX=d.textShadowOffsetX||o.textShadowOffsetX||0,m.shadowOffsetY=d.textShadowOffsetY||o.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=e.font||Qo,m.opacity=Br(d.opacity,o.opacity,1),ES(m,d),S&&(m.lineWidth=Br(d.lineWidth,o.lineWidth,y),m.lineDash=pe(d.lineDash,o.lineDash),m.lineDashOffset=o.lineDashOffset||0,m.stroke=S),_&&(m.fill=_);var A=e.contentWidth,M=e.contentHeight;x.setBoundingRect(new ye(Qs(m.x,A,m.textAlign),pa(m.y,M,m.textBaseline),A,M))},t.prototype._renderBackground=function(e,o,i,n,a,s){var l=e.backgroundColor,d=e.borderWidth,c=e.borderColor,u=l&&l.image,h=l&&!u,g=e.borderRadius,p=this,x,m;if(h||e.lineHeight||d&&c){x=this._getOrCreateChild(Pe),x.useStyle(x.createStyle()),x.style.fill=null;var f=x.shape;f.x=i,f.y=n,f.width=a,f.height=s,f.r=g,x.dirtyShape()}if(h){var v=x.style;v.fill=l||null,v.fillOpacity=pe(e.fillOpacity,1)}else if(u){m=this._getOrCreateChild(yt),m.onload=function(){p.dirtyStyle()};var y=m.style;y.image=l.image,y.x=i,y.y=n,y.width=a,y.height=s}if(d&&c){var v=x.style;v.lineWidth=d,v.stroke=c,v.strokeOpacity=pe(e.strokeOpacity,1),v.lineDash=e.borderDash,v.lineDashOffset=e.borderDashOffset||0,x.strokeContainThreshold=0,x.hasFill()&&x.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var _=(x||m).style;_.shadowBlur=e.shadowBlur||0,_.shadowColor=e.shadowColor||"transparent",_.shadowOffsetX=e.shadowOffsetX||0,_.shadowOffsetY=e.shadowOffsetY||0,_.opacity=Br(e.opacity,o.opacity,1)},t.makeFont=function(e){var o="";return $S(e)&&(o=[e.fontStyle,e.fontWeight,IS(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),o&&hr(o)||e.textFont||e.font},t}(xr),QG={left:!0,right:1,center:1},JG={top:1,bottom:1,middle:1},LS=["fontStyle","fontWeight","fontSize","fontFamily"];function IS(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Bg+"px":r+"px"}function ES(r,t){for(var e=0;e=0,n=!1;if(r instanceof Me){var a=FS(r),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Sa(s)||Sa(l)){o=o||{};var d=o.style||{};d.fill==="inherit"?(n=!0,o=W({},o),d=W({},d),d.fill=s):!Sa(d.fill)&&Sa(s)?(n=!0,o=W({},o),d=W({},d),d.fill=xc(s)):!Sa(d.stroke)&&Sa(l)&&(n||(o=W({},o),d=W({},d)),d.stroke=xc(l)),o.style=d}}if(o&&o.z2==null){n||(o=W({},o));var c=r.z2EmphasisLift;o.z2=r.z2+(c??_a)}return o}function iN(r,t,e){if(e&&e.z2==null){e=W({},e);var o=r.z2SelectLift;e.z2=r.z2+(o??qG)}return e}function nN(r,t,e){var o=Se(r.currentStates,t)>=0,i=r.style.opacity,n=o?null:rN(r,["opacity"],t,{opacity:1});e=e||{};var a=e.style||{};return a.opacity==null&&(e=W({},e),a=W({opacity:o?i:n.opacity*.1},a),e.style=a),e}function hp(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return oN(this,r,t,e);if(r==="blur")return nN(this,r,e);if(r==="select")return iN(this,r,e)}return e}function hn(r){r.stateProxy=hp;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=hp),e&&(e.stateProxy=hp)}function WS(r,t){!QS(r,t)&&!r.__highByOuter&&Bo(r,VS)}function zS(r,t){!QS(r,t)&&!r.__highByOuter&&Bo(r,HS)}function Go(r,t){r.__highByOuter|=1<<(t||0),Bo(r,VS)}function No(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Bo(r,HS)}function KS(r){Bo(r,up)}function gp(r){Bo(r,XS)}function ZS(r){Bo(r,eN)}function YS(r){Bo(r,tN)}function QS(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function JS(r){var t=r.getModel(),e=[],o=[];t.eachComponent(function(i,n){var a=dp(n),s=i==="series",l=s?r.getViewOfSeriesModel(n):r.getViewOfComponentModel(n);!s&&o.push(l),a.isBlured&&(l.group.traverse(function(d){XS(d)}),s&&e.push(n)),a.isBlured=!1}),E(o,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function mp(r,t,e,o){var i=o.getModel();e=e||"coordinateSystem";function n(d,c){for(var u=0;u0){var s={dataIndex:a,seriesIndex:e.seriesIndex};n!=null&&(s.dataType=n),t.push(s)}})}),t}function ci(r,t,e){gn(r,!0),Bo(r,hn),xp(r,t,e)}function uN(r){gn(r,!1)}function Je(r,t,e,o){o?uN(r):ci(r,t,e)}function xp(r,t,e){var o=he(r);t!=null?(o.focus=t,o.blurScope=e):o.focus&&(o.focus=null)}var qS=["emphasis","blur","select"],hN={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Mt(r,t,e,o){e=e||"itemStyle";for(var i=0;i1&&(a*=yp(p),s*=yp(p));var x=(i===n?-1:1)*yp((a*a*(s*s)-a*a*(g*g)-s*s*(h*h))/(a*a*(g*g)+s*s*(h*h)))||0,m=x*a*g/s,f=x*-s*h/a,v=(r+e)/2+Kc(u)*m-zc(u)*f,y=(t+o)/2+zc(u)*m+Kc(u)*f,_=ib([1,0],[(h-m)/a,(g-f)/s]),S=[(h-m)/a,(g-f)/s],b=[(-1*h-m)/a,(-1*g-f)/s],A=ib(S,b);if(_p(S,b)<=-1&&(A=dl),_p(S,b)>=1&&(A=0),A<0){var M=Math.round(A/dl*1e6)/1e6;A=dl*2+M%2*dl}c.addData(d,v,y,a,s,_,A,u,n)}var vN=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,yN=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function _N(r){var t=new uo;if(!r)return t;var e=0,o=0,i=e,n=o,a,s=uo.CMD,l=r.match(vN);if(!l)return t;for(var d=0;d$*$+O*O&&(M=w,T=C),{cx:M,cy:T,x0:-c,y0:-u,x1:M*(i/S-1),y1:T*(i/S-1)}}function CN(r){var t;if(K(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function PN(r,t){var e,o=ul(t.r,0),i=ul(t.r0||0,0),n=o>0,a=i>0;if(!(!n&&!a)){if(n||(o=i,i=0),i>o){var s=o;o=i,i=s}var l=t.startAngle,d=t.endAngle;if(!(isNaN(l)||isNaN(d))){var c=t.cx,u=t.cy,h=!!t.clockwise,g=gb(d-l),p=g>bp&&g%bp;if(p>Hr&&(g=p),!(o>Hr))r.moveTo(c,u);else if(g>bp-Hr)r.moveTo(c+o*Ma(l),u+o*mn(l)),r.arc(c,u,o,l,d,!h),i>Hr&&(r.moveTo(c+i*Ma(d),u+i*mn(d)),r.arc(c,u,i,d,l,h));else{var x=void 0,m=void 0,f=void 0,v=void 0,y=void 0,_=void 0,S=void 0,b=void 0,A=void 0,M=void 0,T=void 0,w=void 0,C=void 0,P=void 0,L=void 0,$=void 0,O=o*Ma(l),N=o*mn(l),R=i*Ma(d),I=i*mn(d),D=g>Hr;if(D){var G=t.cornerRadius;G&&(e=CN(G),x=e[0],m=e[1],f=e[2],v=e[3]);var k=gb(o-i)/2;if(y=ho(k,f),_=ho(k,v),S=ho(k,x),b=ho(k,m),T=A=ul(y,_),w=M=ul(S,b),(A>Hr||M>Hr)&&(C=o*Ma(d),P=o*mn(d),L=i*Ma(l),$=i*mn(l),gHr){var U=ho(f,T),X=ho(v,T),j=Yc(L,$,O,N,o,U,h),J=Yc(C,P,R,I,o,X,h);r.moveTo(c+j.cx+j.x0,u+j.cy+j.y0),T0&&r.arc(c+j.cx,u+j.cy,U,Et(j.y0,j.x0),Et(j.y1,j.x1),!h),r.arc(c,u,o,Et(j.cy+j.y1,j.cx+j.x1),Et(J.cy+J.y1,J.cx+J.x1),!h),X>0&&r.arc(c+J.cx,u+J.cy,X,Et(J.y1,J.x1),Et(J.y0,J.x0),!h))}else r.moveTo(c+O,u+N),r.arc(c,u,o,l,d,!h);if(!(i>Hr)||!D)r.lineTo(c+R,u+I);else if(w>Hr){var U=ho(x,w),X=ho(m,w),j=Yc(R,I,C,P,i,-X,h),J=Yc(O,N,L,$,i,-U,h);r.lineTo(c+j.cx+j.x0,u+j.cy+j.y0),w0&&r.arc(c+j.cx,u+j.cy,X,Et(j.y0,j.x0),Et(j.y1,j.x1),!h),r.arc(c,u,i,Et(j.cy+j.y1,j.cx+j.x1),Et(J.cy+J.y1,J.cx+J.x1),h),U>0&&r.arc(c+J.cx,u+J.cy,U,Et(J.y1,J.x1),Et(J.y0,J.x0),!h))}else r.lineTo(c+R,u+I),r.arc(c,u,i,d,l,h)}r.closePath()}}}var LN=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),mb=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new LN},t.prototype.buildPath=function(e,o){PN(e,o)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Me);mb.prototype.type="sector";const Vt=mb;var IN=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),pb=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new IN},t.prototype.buildPath=function(e,o){var i=o.cx,n=o.cy,a=Math.PI*2;e.moveTo(i+o.r,n),e.arc(i,n,o.r,0,a,!1),e.moveTo(i+o.r0,n),e.arc(i,n,o.r0,0,a,!0)},t}(Me);pb.prototype.type="ring";const hl=pb;function EN(r,t,e,o){var i=[],n=[],a=[],s=[],l,d,c,u;if(o){c=[1/0,1/0],u=[-1/0,-1/0];for(var h=0,g=r.length;h=2){if(o){var n=EN(i,o,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(e?a:a-1);s++){var l=n[s*2],d=n[s*2+1],c=i[(s+1)%a];r.bezierCurveTo(l[0],l[1],d[0],d[1],c[0],c[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,u=i.length;sfn[1]){if(s=!1,n)return s;var c=Math.abs(fn[0]-pn[1]),u=Math.abs(pn[0]-fn[1]);Math.min(c,u)>i.len()&&(c0){var u=c.duration,h=c.delay,g=c.easing,p={duration:u,delay:h||0,easing:g,done:n,force:!!n||!!a,setToFinal:!d,scope:r,during:a};s?t.animateFrom(e,p):t.animateTo(e,p)}else t.stopAnimation(),!s&&t.attr(e),a&&a(1),n&&n()}function $e(r,t,e,o,i,n){Ap("update",r,t,e,o,i,n)}function Ze(r,t,e,o,i,n){Ap("enter",r,t,e,o,i,n)}function wa(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function Ib(r){return!r.isGroup}function ZN(r){return r.shape!=null}function fl(r,t,e){if(!r||!t)return;function o(a){var s={};return a.traverse(function(l){Ib(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return ZN(a)&&(s.shape=W({},a.shape)),s}var n=o(r);t.traverse(function(a){if(Ib(a)&&a.anid){var s=n[a.anid];if(s){var l=i(a);a.attr(i(s)),$e(a,l,e,he(a).dataIndex)}}})}function Pp(r,t){return Y(r,function(e){var o=e[0];o=tu(o,t.x),o=ru(o,t.x+t.width);var i=e[1];return i=tu(i,t.y),i=ru(i,t.y+t.height),[o,i]})}function Eb(r,t){var e=tu(r.x,t.x),o=ru(r.x+r.width,t.x+t.width),i=tu(r.y,t.y),n=ru(r.y+r.height,t.y+t.height);if(o>=e&&n>=i)return{x:e,y:i,width:o-e,height:n-i}}function Pa(r,t,e){var o=W({rectHover:!0},t),i=o.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),le(i,e),new yt(o)):pl(r.replace("path://",""),o,e,"center")}function xl(r,t,e,o,i){for(var n=0,a=i[i.length-1];n1)return!1;var m=Lp(g,p,c,u)/h;return!(m<0||m>1)}function Lp(r,t,e,o){return r*o-e*t}function YN(r){return r<=1e-6&&r>=-1e-6}function La(r){var t=r.itemTooltipOption,e=r.componentModel,o=r.itemName,i=te(t)?{formatter:t}:t,n=e.mainType,a=e.componentIndex,s={componentType:n,name:o,$vars:["name"]};s[n+"Index"]=a;var l=r.formatterParamsExtra;l&&E(Ae(l),function(c){oe(s,c)||(s[c]=l[c],s.$vars.push(c))});var d=he(r.el);d.componentMainType=n,d.componentIndex=a,d.tooltipConfig={name:o,option:le({content:o,encodeHTMLContent:!0,formatterParams:s},i)}}function Db(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function gi(r,t){if(r)if(K(r))for(var e=0;e=0&&s.push(l)}),s}}function mi(r,t){return xe(xe({},r,!0),t,!0)}const l4={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},d4={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var lu="ZH",Op="EN",$a=Op,du={},Bp={},Xb=Ie.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||$a).toUpperCase();return r.indexOf(lu)>-1?lu:$a}():$a;function Gp(r,t){r=r.toUpperCase(),Bp[r]=new Re(t),du[r]=t}function c4(r){if(te(r)){var t=du[r.toUpperCase()]||{};return r===lu||r===Op?ce(t):xe(ce(t),ce(du[$a]),!1)}else return xe(ce(r),ce(du[$a]),!1)}function Np(r){return Bp[r]}function u4(){return Bp[$a]}Gp(Op,l4),Gp(lu,d4);var kp=1e3,Rp=kp*60,vl=Rp*60,_r=vl*24,Ub=_r*365,yl={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},cu="{yyyy}-{MM}-{dd}",Wb={year:"{yyyy}",month:"{yyyy}-{MM}",day:cu,hour:cu+" "+yl.hour,minute:cu+" "+yl.minute,second:cu+" "+yl.second,millisecond:yl.none},Fp=["year","month","day","hour","minute","second","millisecond"],zb=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ut(r,t){return r+="","0000".substr(0,t-r.length)+r}function Da(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function h4(r){return r===Da(r)}function g4(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function _l(r,t,e,o){var i=sr(r),n=i[Vp(e)](),a=i[Oa(e)]()+1,s=Math.floor((a-1)/3)+1,l=i[uu(e)](),d=i["get"+(e?"UTC":"")+"Day"](),c=i[Sl(e)](),u=(c-1)%12+1,h=i[hu(e)](),g=i[gu(e)](),p=i[mu(e)](),x=c>=12?"pm":"am",m=x.toUpperCase(),f=o instanceof Re?o:Np(o||Xb)||u4(),v=f.getModel("time"),y=v.get("month"),_=v.get("monthAbbr"),S=v.get("dayOfWeek"),b=v.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,x+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,n+"").replace(/{yy}/g,Ut(n%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,_[a-1]).replace(/{MM}/g,Ut(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Ut(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[d]).replace(/{ee}/g,b[d]).replace(/{e}/g,d+"").replace(/{HH}/g,Ut(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ut(u+"",2)).replace(/{h}/g,u+"").replace(/{mm}/g,Ut(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Ut(g,2)).replace(/{s}/g,g+"").replace(/{SSS}/g,Ut(p,3)).replace(/{S}/g,p+"")}function m4(r,t,e,o,i){var n=null;if(te(e))n=e;else if(ae(e))n=e(r.value,t,{level:r.level});else{var a=W({},yl);if(r.level>0)for(var s=0;s=0;--s)if(l[d]){n=l[d];break}n=n||a.none}if(K(n)){var u=r.level==null?0:r.level>=0?r.level:n.length+r.level;u=Math.min(u,n.length-1),n=n[u]}}return _l(new Date(r.value),n,i,o)}function Kb(r,t){var e=sr(r),o=e[Oa(t)]()+1,i=e[uu(t)](),n=e[Sl(t)](),a=e[hu(t)](),s=e[gu(t)](),l=e[mu(t)](),d=l===0,c=d&&s===0,u=c&&a===0,h=u&&n===0,g=h&&i===1,p=g&&o===1;return p?"year":g?"month":h?"day":u?"hour":c?"minute":d?"second":"millisecond"}function Zb(r,t,e){var o=Ee(r)?sr(r):r;switch(t=t||Kb(r,e),t){case"year":return o[Vp(e)]();case"half-year":return o[Oa(e)]()>=6?1:0;case"quarter":return Math.floor((o[Oa(e)]()+1)/4);case"month":return o[Oa(e)]();case"day":return o[uu(e)]();case"half-day":return o[Sl(e)]()/24;case"hour":return o[Sl(e)]();case"minute":return o[hu(e)]();case"second":return o[gu(e)]();case"millisecond":return o[mu(e)]()}}function Vp(r){return r?"getUTCFullYear":"getFullYear"}function Oa(r){return r?"getUTCMonth":"getMonth"}function uu(r){return r?"getUTCDate":"getDate"}function Sl(r){return r?"getUTCHours":"getHours"}function hu(r){return r?"getUTCMinutes":"getMinutes"}function gu(r){return r?"getUTCSeconds":"getSeconds"}function mu(r){return r?"getUTCMilliseconds":"getMilliseconds"}function p4(r){return r?"setUTCFullYear":"setFullYear"}function Yb(r){return r?"setUTCMonth":"setMonth"}function Qb(r){return r?"setUTCDate":"setDate"}function Jb(r){return r?"setUTCHours":"setHours"}function jb(r){return r?"setUTCMinutes":"setMinutes"}function qb(r){return r?"setUTCSeconds":"setSeconds"}function eM(r){return r?"setUTCMilliseconds":"setMilliseconds"}function f4(r,t,e,o,i,n,a,s){var l=new Le({style:{text:r,font:t,align:e,verticalAlign:o,padding:i,rich:n,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Hp(r){if(!Fm(r))return te(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Xp(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,o){return o.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var yn=rc;function Up(r,t,e){var o="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&hr(c)?c:"-"}function n(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var a=t==="time",s=r instanceof Date;if(a||s){var l=a?sr(r):r;if(isNaN(+l)){if(s)return"-"}else return _l(l,o,e)}if(t==="ordinal")return ec(r)?i(r):Ee(r)&&n(r)?r+"":"-";var d=no(r);return n(d)?Hp(d):ec(r)?i(r):typeof r=="boolean"?r+"":"-"}var tM=["a","b","c","d","e","f","g"],Wp=function(r,t){return"{"+r+(t??"")+"}"};function zp(r,t,e){K(t)||(t=[t]);var o=t.length;if(!o)return"";for(var i=t[0].$vars||[],n=0;n':'';var a=e.markerId||"markerX";return{renderMode:n,content:"{"+a+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}}function v4(r,t,e){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd -yyyy`);var o=sr(t),i=e?"getUTC":"get",n=o[i+"FullYear"](),a=o[i+"Month"]()+1,s=o[i+"Date"](),l=o[i+"Hours"](),d=o[i+"Minutes"](),c=o[i+"Seconds"](),u=o[i+"Milliseconds"]();return r=r.replace("MM",Ut(a,2)).replace("M",a).replace("yyyy",n).replace("yy",Ut(n%100+"",2)).replace("dd",Ut(s,2)).replace("d",s).replace("hh",Ut(l,2)).replace("h",l).replace("mm",Ut(d,2)).replace("m",d).replace("ss",Ut(c,2)).replace("s",c).replace("SSS",Ut(u,3)),r}function y4(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function _n(r,t){return t=t||"transparent",te(r)?r:de(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function pu(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var fu=E,oM=["left","right","top","bottom","width","height"],Sn=[["width","left","right"],["height","top","bottom"]];function Kp(r,t,e,o,i){var n=0,a=0;o==null&&(o=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,d){var c=l.getBoundingRect(),u=t.childAt(d+1),h=u&&u.getBoundingRect(),g,p;if(r==="horizontal"){var x=c.width+(h?-h.x+c.x:0);g=n+x,g>o||l.newline?(n=0,g=x,a+=s+e,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(h?-h.y+c.y:0);p=a+m,p>i||l.newline?(n+=s+e,a=0,p=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=n,l.y=a,l.markRedraw(),r==="horizontal"?n=g+e:a=p+e)})}var bn=Kp;me(Kp,"vertical"),me(Kp,"horizontal");function _4(r,t,e){var o=t.width,i=t.height,n=ee(r.left,o),a=ee(r.top,i),s=ee(r.right,o),l=ee(r.bottom,i);return(isNaN(n)||isNaN(parseFloat(r.left)))&&(n=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=o),(isNaN(a)||isNaN(parseFloat(r.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=i),e=yn(e||0),{width:Math.max(s-n-e[1]-e[3],0),height:Math.max(l-a-e[0]-e[2],0)}}function it(r,t,e){e=yn(e||0);var o=t.width,i=t.height,n=ee(r.left,o),a=ee(r.top,i),s=ee(r.right,o),l=ee(r.bottom,i),d=ee(r.width,o),c=ee(r.height,i),u=e[2]+e[0],h=e[1]+e[3],g=r.aspect;switch(isNaN(d)&&(d=o-s-h-n),isNaN(c)&&(c=i-l-u-a),g!=null&&(isNaN(d)&&isNaN(c)&&(g>o/i?d=o*.8:c=i*.8),isNaN(d)&&(d=g*c),isNaN(c)&&(c=d/g)),isNaN(n)&&(n=o-s-d-h),isNaN(a)&&(a=i-l-c-u),r.left||r.right){case"center":n=o/2-d/2-e[3];break;case"right":n=o-d-h;break}switch(r.top||r.bottom){case"middle":case"center":a=i/2-c/2-e[0];break;case"bottom":a=i-c-u;break}n=n||0,a=a||0,isNaN(d)&&(d=o-h-n-(s||0)),isNaN(c)&&(c=i-u-a-(l||0));var p=new ye(n+e[3],a+e[0],d,c);return p.margin=e,p}function xu(r,t,e,o,i,n){var a=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(n=n||r,n.x=r.x,n.y=r.y,!a&&!s)return!1;var d;if(l==="raw")d=r.type==="group"?new ye(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(d=r.getBoundingRect(),r.needLocalTransform()){var c=r.getLocalTransform();d=d.clone(),d.applyTransform(c)}var u=it(le({width:d.width,height:d.height},t),e,o),h=a?u.x-d.x:0,g=s?u.y-d.y:0;return l==="raw"?(n.x=h,n.y=g):(n.x+=h,n.y+=g),n===r&&r.markRedraw(),!0}function S4(r,t){return r[Sn[t][0]]!=null||r[Sn[t][1]]!=null&&r[Sn[t][2]]!=null}function bl(r){var t=r.layoutMode||r.constructor.layoutMode;return de(t)?t:t?{type:t}:null}function pi(r,t,e){var o=e&&e.ignoreSize;!K(o)&&(o=[o,o]);var i=a(Sn[0],0),n=a(Sn[1],1);d(Sn[0],r,i),d(Sn[1],r,n);function a(c,u){var h={},g=0,p={},x=0,m=2;if(fu(c,function(y){p[y]=r[y]}),fu(c,function(y){s(t,y)&&(h[y]=p[y]=t[y]),l(h,y)&&g++,l(p,y)&&x++}),o[u])return l(t,c[1])?p[c[2]]=null:l(t,c[2])&&(p[c[1]]=null),p;if(x===m||!g)return p;if(g>=m)return h;for(var f=0;f=0;l--)s=xe(s,i[l],!0);o.defaultOption=s}return o.defaultOption},t.prototype.getReferringComponents=function(e,o){var i=e+"Index",n=e+"Id";return el(this.ecModel,e,{index:this.get(i,!0),id:this.get(n,!0)},o)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Re);sS(Ga,Re),Dc(Ga),a4(Ga),s4(Ga,M4);function M4(r){var t=[];return E(Ga.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Y(t,function(e){return ao(e).main}),r!=="dataset"&&Se(t,"dataset")<=0&&t.unshift("dataset"),t}const Te=Ga;var nM="";typeof navigator<"u"&&(nM=navigator.platform||"");var Na="rgba(0, 0, 0, 0.2)";const A4={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Na,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Na,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Na,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Na,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Na,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Na,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:nM.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var aM=ne(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Sr="original",$t="arrayRows",br="objectRows",go="keyedColumns",fi="typedArray",sM="unknown",mo="column",ka="row",Tt={Must:1,Might:2,Not:3},lM=Ce();function T4(r){lM(r).datasetMap=ne()}function dM(r,t,e){var o={},i=Yp(t);if(!i||!r)return o;var n=[],a=[],s=t.ecModel,l=lM(s).datasetMap,d=i.uid+"_"+e.seriesLayoutBy,c,u;r=r.slice(),E(r,function(x,m){var f=de(x)?x:r[m]={name:x};f.type==="ordinal"&&c==null&&(c=m,u=p(f)),o[f.name]=[]});var h=l.get(d)||l.set(d,{categoryWayDim:u,valueWayDim:0});E(r,function(x,m){var f=x.name,v=p(x);if(c==null){var y=h.valueWayDim;g(o[f],y,v),g(a,y,v),h.valueWayDim+=v}else if(c===m)g(o[f],0,v),g(n,0,v);else{var y=h.categoryWayDim;g(o[f],y,v),g(a,y,v),h.categoryWayDim+=v}});function g(x,m,f){for(var v=0;vt)return r[o];return r[e-1]}function gM(r,t,e,o,i,n,a){n=n||r;var s=t(n),l=s.paletteIdx||0,d=s.paletteNameMap=s.paletteNameMap||{};if(d.hasOwnProperty(i))return d[i];var c=a==null||!o?e:I4(o,a);if(c=c||e,!(!c||!c.length)){var u=c[l];return i&&(d[i]=u),s.paletteIdx=(l+1)%c.length,u}}function E4(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var vu,Ml,mM,pM="\0_ec_inner",$4=1,fM=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,o,i,n,a,s){n=n||{},this.option=null,this._theme=new Re(n),this._locale=new Re(a),this._optionManager=s},t.prototype.setOption=function(e,o,i){var n=yM(o);this._optionManager.setOption(e,i,n),this._resetOption(null,n)},t.prototype.resetOption=function(e,o){return this._resetOption(e,yM(o))},t.prototype._resetOption=function(e,o){var i=!1,n=this._optionManager;if(!e||e==="recreate"){var a=n.mountOption(e==="recreate");!this.option||e==="recreate"?mM(this,a):(this.restoreData(),this._mergeOption(a,o)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=n.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,o))}if(!e||e==="recreate"||e==="media"){var l=n.getMediaOption(this);l.length&&E(l,function(d){i=!0,this._mergeOption(d,o)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,o){var i=this.option,n=this._componentsMap,a=this._componentsCount,s=[],l=ne(),d=o&&o.replaceMergeMainTypeMap;T4(this),E(e,function(u,h){u!=null&&(Te.hasClass(h)?h&&(s.push(h),l.set(h,!0)):i[h]=i[h]==null?ce(u):xe(i[h],u,!0))}),d&&d.each(function(u,h){Te.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),Te.topologicalTravel(s,Te.getAllClassMainTypes(),c,this);function c(u){var h=P4(this,u,ke(e[u])),g=n.get(u),p=g?d&&d.get(u)?"replaceMerge":"normalMerge":"replaceAll",x=rS(g,h,p);QB(x,u,Te),i[u]=null,n.set(u,null),a.set(u,0);var m=[],f=[],v=0,y;E(x,function(_,S){var b=_.existing,A=_.newOption;if(!A)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var M=u==="series",T=Te.getClass(u,_.keyInfo.subType,!M);if(!T)return;if(u==="tooltip"){if(y)return;y=!0}if(b&&b.constructor===T)b.name=_.keyInfo.name,b.mergeOption(A,this),b.optionUpdated(A,!1);else{var w=W({componentIndex:S},_.keyInfo);b=new T(A,this,this,w),W(b,w),_.brandNew&&(b.__requireNewView=!0),b.init(A,this,this),b.optionUpdated(null,!0)}}b?(m.push(b.option),f.push(b),v++):(m.push(void 0),f.push(void 0))},this),i[u]=m,n.set(u,f),a.set(u,v),u==="series"&&vu(this)}this._seriesIndices||vu(this)},t.prototype.getOption=function(){var e=ce(this.option);return E(e,function(o,i){if(Te.hasClass(i)){for(var n=ke(o),a=n.length,s=!1,l=a-1;l>=0;l--)n[l]&&!js(n[l])?s=!0:(n[l]=null,!s&&a--);n.length=a,e[i]=n}}),delete e[pM],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,o){var i=this._componentsMap.get(e);if(i){var n=i[o||0];if(n)return n;if(o==null){for(var a=0;a=t:e==="max"?r<=t:r===t}function X4(r,t){return r.join(",")===t.join(",")}const U4=R4;var Wr=E,Al=de,bM=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function e0(r){var t=r&&r.itemStyle;if(t)for(var e=0,o=bM.length;e=0;m--){var f=r[m];if(s||(p=f.data.rawIndexOf(f.stackedByDimension,g)),p>=0){var v=f.data.getByRawIndex(f.stackResultDimension,p);if(l==="all"||l==="positive"&&v>0||l==="negative"&&v<0||l==="samesign"&&h>=0&&v>0||l==="samesign"&&h<=0&&v<0){h=FB(h,v),x=v;break}}}return o[0]=h,o[1]=x,o})})}var yu=function(){function r(t){this.data=t.data||(t.sourceFormat===go?{}:[]),this.sourceFormat=t.sourceFormat||sM,this.seriesLayoutBy=t.seriesLayoutBy||mo,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var o=0;ox&&(x=y)}g[0]=p,g[1]=x}},i=function(){return this._data?this._data.length/this._dimSize:0};DM=(t={},t[$t+"_"+mo]={pure:!0,appendData:n},t[$t+"_"+ka]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[br]={pure:!0,appendData:n},t[go]={pure:!0,appendData:function(a){var s=this._data;E(a,function(l,d){for(var c=s[d]||(s[d]=[]),u=0;u<(l||[]).length;u++)c.push(l[u])})}},t[Sr]={appendData:n},t[fi]={persistent:!1,pure:!0,appendData:function(a){this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},t);function n(a){for(var s=0;s=0&&(x=a.interpolatedValue[m])}return x!=null?x+"":""})}},r.prototype.getRawValue=function(t,e){return Fa(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,o){},r}();function VM(r){var t,e;return de(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Cl(r){return new sk(r)}var sk=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,o=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var n;this._plan&&!o&&(n=this._plan(this.context));var a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),d=t&&t.modDataCount||0;(a!==l||s!==d)&&(n="reset");function c(v){return!(v>=1)&&(v=1),v}var u;(this._dirty||n==="reset")&&(this._dirty=!1,u=this._doReset(o)),this._modBy=l,this._modDataCount=d;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,p=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!o&&(u||g1&&o>0?s:a}};return n;function a(){return t=r?null:lt},gte:function(r,t){return r>=t}},dk=function(){function r(t,e){if(!Ee(e)){var o="";Be(o)}this._opFn=UM[t],this._rvalFloat=no(e)}return r.prototype.evaluate=function(t){return Ee(t)?this._opFn(t,this._rvalFloat):this._opFn(no(t),this._rvalFloat)},r}(),WM=function(){function r(t,e){var o=t==="desc";this._resultLT=o?1:-1,e==null&&(e=o?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var o=Ee(t)?t:no(t),i=Ee(e)?e:no(e),n=isNaN(o),a=isNaN(i);if(n&&(o=this._incomparable),a&&(i=this._incomparable),n&&a){var s=te(t),l=te(e);s&&(o=l?t:0),l&&(i=s?e:0)}return oi?-this._resultLT:0},r}(),ck=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=no(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var o=typeof t;o!==this._rvalTypeof&&(o==="number"||this._rvalTypeof==="number")&&(e=no(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function uk(r,t){return r==="eq"||r==="ne"?new ck(r==="eq",t):oe(UM,r)?new dk(r,t):null}var hk=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return xi(t,e)},r}();function gk(r,t){var e=new hk,o=r.data,i=e.sourceFormat=r.sourceFormat,n=r.startIndex,a="";r.seriesLayoutBy!==mo&&Be(a);var s=[],l={},d=r.dimensionsDefine;if(d)E(d,function(x,m){var f=x.name,v={index:m,name:f,displayName:x.displayName};if(s.push(v),f!=null){var y="";oe(l,f)&&Be(y),l[f]=v}});else for(var c=0;c65535?Sk:bk}function Va(){return[1/0,-1/0]}function Mk(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function QM(r,t,e,o,i){var n=YM[e||"float"];if(i){var a=r[t],s=a&&a.length;if(s!==o){for(var l=new n(o),d=0;dm[1]&&(m[1]=x)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,o){for(var i=this._provider,n=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,d=Y(a,function(v){return v.property}),c=0;cf[1]&&(f[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,o=e[t];if(o!=null&&ot)n=a-1;else return a}return-1},r.prototype.indicesOfNearest=function(t,e,o){var i=this._chunks,n=i[t],a=[];if(!n)return a;o==null&&(o=1/0);for(var s=1/0,l=-1,d=0,c=0,u=this.count();c=0&&l<0)&&(s=p,l=g,d=0),g===l&&(a[d++]=c))}return a.length=d,a},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var o=e.constructor,i=this._count;if(o===Array){t=new o(i);for(var n=0;n=u&&v<=h||isNaN(v))&&(l[d++]=x),x++}p=!0}else if(n===2){for(var m=g[i[0]],y=g[i[1]],_=t[i[1]][0],S=t[i[1]][1],f=0;f=u&&v<=h||isNaN(v))&&(b>=_&&b<=S||isNaN(b))&&(l[d++]=x),x++}p=!0}}if(!p)if(n===1)for(var f=0;f=u&&v<=h||isNaN(v))&&(l[d++]=A)}else for(var f=0;ft[w][1])&&(M=!1)}M&&(l[d++]=e.getRawIndex(f))}return df[1]&&(f[1]=m)}}}},r.prototype.lttbDownSample=function(t,e){var o=this.clone([t],!0),i=o._chunks,n=i[t],a=this.count(),s=0,l=Math.floor(1/e),d=this.getRawIndex(0),c,u,h,g=new(Pl(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));g[s++]=d;for(var p=1;pc&&(c=u,h=_)}C>0&&Cc-p&&(l=c-p,s.length=l);for(var x=0;xu[1]&&(u[1]=f),h[g++]=v}return n._count=g,n._indices=h,n._updateGetRawIdx(),n},r.prototype.each=function(t,e){if(this._count)for(var o=t.length,i=this._chunks,n=0,a=this.count();nl&&(l=u)}return a=[s,l],this._extent[t]=a,a},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var o=[],i=this._chunks,n=0;n=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,o,i,n){return xi(e[n],this._dimensions[n])}l0={arrayRows:t,objectRows:function(e,o,i,n){return xi(e[o],this._dimensions[n])},keyedColumns:t,original:function(e,o,i,n){var a=e&&(e.value==null?e:e.value);return xi(a instanceof Array?a[n]:a,this._dimensions[n])},typedArray:function(e,o,i,n){return e[n]}}}(),r}();const d0=Ak;var JM=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),o=!!e.length,i,n;if(bu(t)){var a=t,s=void 0,l=void 0,d=void 0;if(o){var c=e[0];c.prepareSource(),d=c.getSource(),s=d.data,l=d.sourceFormat,n=[c._getVersionSign()]}else s=a.get("data",!0),l=Nt(s)?fi:Sr,n=[];var u=this._getSourceMetaRawOption()||{},h=d&&d.metaRawOption||{},g=pe(u.seriesLayoutBy,h.seriesLayoutBy)||null,p=pe(u.sourceHeader,h.sourceHeader),x=pe(u.dimensions,h.dimensions),m=g!==h.seriesLayoutBy||!!p!=!!h.sourceHeader||x;i=m?[o0(s,{seriesLayoutBy:g,sourceHeader:p,dimensions:x},l)]:[]}else{var f=t;if(o){var v=this._applyTransform(e);i=v.sourceList,n=v.upstreamSignList}else{var y=f.get("source",!0);i=[o0(y,this._getSourceMetaRawOption(),null)],n=[]}}this._setLocalSource(i,n)},r.prototype._applyTransform=function(t){var e=this._sourceHost,o=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var n="";t.length!==1&&qM(n)}var a,s=[],l=[];return E(t,function(d){d.prepareSource();var c=d.getSource(i||0),u="";i!=null&&!c&&qM(u),s.push(c),l.push(d._getVersionSign())}),o?a=yk(o,s,{datasetIndex:e.componentIndex}):i!=null&&(a=[ek(s[0])]),{sourceList:a,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return E(r.blocks,function(i){var n=o2(i);n>=t&&(t=n+ +(o&&(!n||c0(i)&&!i.noHeader)))}),t}return 0}function Ck(r,t,e,o){var i=t.noHeader,n=Lk(o2(t)),a=[],s=t.blocks||[];Pt(!s||K(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var d={valueAsc:"asc",valueDesc:"desc"};if(oe(d,l)){var c=new WM(d[l],null);s.sort(function(p,x){return c.evaluate(p.sortParam,x.sortParam)})}else l==="seriesDesc"&&s.reverse()}E(s,function(p,x){var m=t.valueFormatter,f=r2(p)(m?W(W({},r),{valueFormatter:m}):r,p,x>0?n.html:0,o);f!=null&&a.push(f)});var u=r.renderMode==="richText"?a.join(n.richText):u0(a.join(""),i?e:n.html);if(i)return u;var h=Up(t.header,"ordinal",r.useUTC),g=t2(o,r.renderMode).nameStyle;return r.renderMode==="richText"?n2(r,h,g)+n.richText+u:u0('
'+It(h)+"
"+u,e)}function Pk(r,t,e,o){var i=r.renderMode,n=t.noName,a=t.noValue,s=!t.markerType,l=t.name,d=r.useUTC,c=t.valueFormatter||r.valueFormatter||function(_){return _=K(_)?_:[_],Y(_,function(S,b){return Up(S,K(g)?g[b]:g,d)})};if(!(n&&a)){var u=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),h=n?"":Up(l,"ordinal",d),g=t.valueType,p=a?[]:c(t.value,t.dataIndex),x=!s||!n,m=!s&&n,f=t2(o,i),v=f.nameStyle,y=f.valueStyle;return i==="richText"?(s?"":u)+(n?"":n2(r,h,v))+(a?"":$k(r,p,x,m,y)):u0((s?"":u)+(n?"":Ik(h,!s,v))+(a?"":Ek(p,x,m,y)),e)}}function i2(r,t,e,o,i,n){if(r){var a=r2(r),s={useUTC:i,renderMode:e,orderMode:o,markupStyleCreator:t,valueFormatter:r.valueFormatter};return a(s,r,0,n)}}function Lk(r){return{html:Tk[r],richText:wk[r]}}function u0(r,t){var e='
',o="margin: "+t+"px 0 0";return'
'+r+e+"
"}function Ik(r,t,e){var o=t?"margin-left:2px":"";return''+It(r)+""}function Ek(r,t,e,o){var i=e?"10px":"20px",n=t?"float:right;margin-left:"+i:"";return r=K(r)?r:[r],''+Y(r,function(a){return It(a)}).join("  ")+""}function n2(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function $k(r,t,e,o,i){var n=[i],a=o?10:20;return e&&n.push({padding:[0,0,0,a],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(K(t)?t.join(" "):t,n)}function a2(r,t){var e=r.getData().getItemVisual(t,"style"),o=e[r.visualDrawType];return _n(o)}function s2(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var h0=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Y_()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,o){var i=o==="richText"?this._generateStyleName():null,n=rM({color:e,type:t,renderMode:o,markerId:i});return te(n)?n:(this.richTextStyles[i]=n.style,n.content)},r.prototype.wrapRichTextStyle=function(t,e){var o={};K(e)?E(e,function(n){return W(o,n)}):W(o,e);var i=this._generateStyleName();return this.richTextStyles[i]=o,"{"+i+"|"+t+"}"},r}();function l2(r){var t=r.series,e=r.dataIndex,o=r.multipleSeries,i=t.getData(),n=i.mapDimensionsAll("defaultedTooltip"),a=n.length,s=t.getRawValue(e),l=K(s),d=a2(t,e),c,u,h,g;if(a>1||l&&!a){var p=Dk(s,t,e,n,d);c=p.inlineValues,u=p.inlineValueTypes,h=p.blocks,g=p.inlineValues[0]}else if(a){var x=i.getDimensionInfo(n[0]);g=c=Fa(i,e,n[0]),u=x.type}else g=c=l?s[0]:s;var m=Vm(t),f=m&&t.name||"",v=i.getName(e),y=o?f:v;return mt("section",{header:f,noHeader:o||!m,sortParam:g,blocks:[mt("nameValue",{markerType:"item",markerColor:d,name:y,noName:!hr(y),value:c,valueType:u,dataIndex:e})].concat(h||[])})}function Dk(r,t,e,o,i){var n=t.getData(),a=ur(r,function(u,h,g){var p=n.getDimensionInfo(g);return u=u||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],d=[];o.length?E(o,function(u){c(Fa(n,e,u),u)}):E(r,c);function c(u,h){var g=n.getDimensionInfo(h);!g||g.otherDims.tooltip===!1||(a?d.push(mt("nameValue",{markerType:"subItem",markerColor:i,name:g.displayName,value:u,valueType:g.type})):(s.push(u),l.push(g.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:d}}var vi=Ce();function Mu(r,t){return r.getName(t)||r.getId(t)}var Au="__universalTransitionEnabled",Tu=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,o,i){this.seriesIndex=this.componentIndex,this.dataTask=Cl({count:Bk,reset:Gk}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var n=vi(this).sourceManager=new JM(this);n.prepareSource();var a=this.getInitialData(e,i);c2(a,this),this.dataTask.context.data=a,vi(this).dataBeforeProcessed=a,d2(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(e,o){var i=bl(this),n=i?Ba(e):{},a=this.subType;Te.hasClass(a)&&(a+="Series"),xe(e,o.getTheme().get(this.subType)),xe(e,this.getDefaultOption()),ji(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&pi(e,n,i)},t.prototype.mergeOption=function(e,o){e=xe(this.option,e,!0),this.fillDataTextStyle(e.data);var i=bl(this);i&&pi(this.option,e,i);var n=vi(this).sourceManager;n.dirty(),n.prepareSource();var a=this.getInitialData(e,o);c2(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,vi(this).dataBeforeProcessed=a,d2(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(e){if(e&&!Nt(e))for(var o=["show"],i=0;ithis.getShallow("animationThreshold")&&(o=!1),!!o},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,o,i){var n=this.ecModel,a=Jp.prototype.getColorFromPalette.call(this,e,o,i);return a||(a=n.getColorFromPalette(e,o,i)),a},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,o){this._innerSelect(this.getData(o),e)},t.prototype.unselect=function(e,o){var i=this.option.selectedMap;if(i){var n=this.option.selectedMode,a=this.getData(o);if(n==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(a)}return i},t.prototype.isSelected=function(e,o){var i=this.option.selectedMap;if(!i)return!1;var n=this.getData(o);return(i==="all"||i[Mu(n,e)])&&!n.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Au])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,o){var i,n,a=this.option,s=a.selectedMode,l=o.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){de(a.selectedMap)||(a.selectedMap={});for(var d=a.selectedMap,c=0;c0&&this._innerSelect(e,o)}},t.registerClass=function(e){return Te.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(Te);je(Tu,_u),je(Tu,Jp),sS(Tu,Te);function d2(r){var t=r.name;Vm(r)||(r.name=Ok(r)||t)}function Ok(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),o=[];return E(e,function(i){var n=t.getDimensionInfo(i);n.displayName&&o.push(n.displayName)}),o.join(" ")}function Bk(r){return r.model.getRawData().count()}function Gk(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),Nk}function Nk(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function c2(r,t){E(Cs(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,me(kk,t))})}function kk(r,t){var e=g0(r);return e&&e.setOutputEnd((t||this).count()),t}function g0(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var o=e.currentTask;if(o){var i=o.agentStubMap;i&&(o=i.get(r.uid))}return o}}const ze=Tu;var m0=function(){function r(){this.group=new ue,this.uid=Ea("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,o,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,o,i){},r.prototype.updateLayout=function(t,e,o,i){},r.prototype.updateVisual=function(t,e,o,i){},r.prototype.toggleBlurSeries=function(t,e,o){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Um(m0),Dc(m0);const Ye=m0;function Ha(){var r=Ce();return function(t){var e=r(t),o=t.pipelineContext,i=!!e.large,n=!!e.progressiveRender,a=e.large=!!(o&&o.large),s=e.progressiveRender=!!(o&&o.progressiveRender);return(i!==a||n!==s)&&"reset"}}var u2=Ce(),Rk=Ha(),p0=function(){function r(){this.group=new ue,this.uid=Ea("viewChart"),this.renderTask=Cl({plan:Fk,reset:Vk}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,o,i){},r.prototype.highlight=function(t,e,o,i){var n=t.getData(i&&i.dataType);n&&g2(n,i,"emphasis")},r.prototype.downplay=function(t,e,o,i){var n=t.getData(i&&i.dataType);n&&g2(n,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,o,i){this.render(t,e,o,i)},r.prototype.updateLayout=function(t,e,o,i){this.render(t,e,o,i)},r.prototype.updateVisual=function(t,e,o,i){this.render(t,e,o,i)},r.prototype.eachRendered=function(t){gi(this.group,t)},r.markUpdateMethod=function(t,e){u2(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function h2(r,t,e){r&&ll(r)&&(t==="emphasis"?Go:No)(r,e)}function g2(r,t,e){var o=qi(r,t),i=t&&t.highlightKey!=null?mN(t.highlightKey):null;o!=null?E(ke(o),function(n){h2(r.getItemGraphicEl(n),e,i)}):r.eachItemGraphicEl(function(n){h2(n,e,i)})}Um(p0),Dc(p0);function Fk(r){return Rk(r.model)}function Vk(r){var t=r.model,e=r.ecModel,o=r.api,i=r.payload,n=t.pipelineContext.progressiveRender,a=r.view,s=i&&u2(i).updateMethod,l=n?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,e,o,i),Hk[l]}var Hk={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Fe=p0;var wu="\0__throttleOriginMethod",m2="\0__throttleRate",p2="\0__throttleType";function Cu(r,t,e){var o,i=0,n=0,a=null,s,l,d,c;t=t||0;function u(){n=new Date().getTime(),a=null,r.apply(l,d||[])}var h=function(){for(var g=[],p=0;p=0?u():a=setTimeout(u,-s),i=o};return h.clear=function(){a&&(clearTimeout(a),a=null)},h.debounceNextCall=function(g){c=g},h}function Xa(r,t,e,o){var i=r[t];if(i){var n=i[wu]||i,a=i[p2],s=i[m2];if(s!==e||a!==o){if(e==null||!o)return r[t]=n;i=r[t]=Cu(n,e,o==="debounce"),i[wu]=n,i[p2]=o,i[m2]=e}return i}}function Ll(r,t){var e=r[t];e&&e[wu]&&(e.clear&&e.clear(),r[t]=e[wu])}var f2=Ce(),x2={itemStyle:tn(Hb,!0),lineStyle:tn(Vb,!0)},Xk={lineStyle:"stroke",itemStyle:"fill"};function v2(r,t){var e=r.visualStyleMapper||x2[t];return e||(console.warn("Unknown style type '"+t+"'."),x2.itemStyle)}function y2(r,t){var e=r.visualDrawType||Xk[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var Uk={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),o=r.visualStyleAccessPath||"itemStyle",i=r.getModel(o),n=v2(r,o),a=n(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=y2(r,o),d=a[l],c=ae(d)?d:null,u=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||u){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());a[l]||(a[l]=h,e.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||ae(a.fill)?h:a.fill,a.stroke=a.stroke==="auto"||ae(a.stroke)?h:a.stroke}if(e.setVisual("style",a),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&c)return e.setVisual("colorFromPalette",!1),{dataEach:function(g,p){var x=r.getDataParams(p),m=W({},a);m[l]=c(x),g.setItemVisual(p,"style",m)}}}},Il=new Re,Wk={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),o=r.visualStyleAccessPath||"itemStyle",i=v2(r,o),n=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[o]){Il.option=l[o];var d=i(Il),c=a.ensureUniqueItemVisual(s,"style");W(c,d),Il.option.decal&&(a.setItemVisual(s,"decal",Il.option.decal),Il.option.decal.dirty=!0),n in d&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},zk={performRawSeries:!0,overallReset:function(r){var t=ne();r.eachSeries(function(e){var o=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+o,n=t.get(i);n||(n={},t.set(i,n)),f2(e).scope=n}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var o=e.getRawData(),i={},n=e.getData(),a=f2(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=y2(e,s);n.each(function(d){var c=n.getRawIndex(d);i[c]=d}),o.each(function(d){var c=i[d],u=n.getItemVisual(c,"colorFromPalette");if(u){var h=n.ensureUniqueItemVisual(c,"style"),g=o.getName(d)||d+"",p=o.count();h[l]=e.getColorFromPalette(g,a,p)}})}})}},Pu=Math.PI;function Kk(r,t){t=t||{},le(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new ue,o=new Pe({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(o);var i=new Le({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),n=new Pe({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(n);var a;return t.showSpinner&&(a=new Qc({shape:{startAngle:-Pu/2,endAngle:-Pu/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:Pu*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:Pu*3/2}).delay(300).start("circularInOut"),e.add(a)),e.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,d=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=r.getHeight()/2;t.showSpinner&&a.setShape({cx:d,cy:c}),n.setShape({x:d-l,y:c-l,width:l*2,height:l*2}),o.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Zk=function(){function r(t,e,o,i){this._stageTaskMap=ne(),this.ecInstance=t,this.api=e,o=this._dataProcessorHandlers=o.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=o.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(o){var i=o.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var o=this._pipelineMap.get(t.__pipeline.id),i=o.context,n=!e&&o.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>o.blockIndex,a=n?o.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var o=this._pipelineMap.get(t.uid),i=t.getData(),n=i.count(),a=o.progressiveEnabled&&e.incrementalPrepareRender&&n>=o.threshold,s=t.get("large")&&n>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?n:null;t.pipelineContext=o.context={progressiveRender:a,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,o=e._pipelineMap=ne();t.eachSeries(function(i){var n=i.getProgressive(),a=i.uid;o.set(a,{id:a,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:n&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),o=this.api;E(this._allHandlers,function(i){var n=t.get(i.uid)||t.set(i.uid,{}),a="";Pt(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,n,e,o),i.overallReset&&this._createOverallStageTask(i,n,e,o)},this)},r.prototype.prepareView=function(t,e,o,i){var n=t.renderTask,a=n.context;a.model=e,a.ecModel=o,a.api=i,n.__block=!t.incrementalPrepareRender,this._pipe(e,n)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,o){this._performStageTasks(this._visualHandlers,t,e,o)},r.prototype._performStageTasks=function(t,e,o,i){i=i||{};var n=!1,a=this;E(t,function(l,d){if(!(i.visualType&&i.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),u=c.seriesTaskMap,h=c.overallTask;if(h){var g,p=h.agentStubMap;p.each(function(m){s(i,m)&&(m.dirty(),g=!0)}),g&&h.dirty(),a.updatePayload(h,o);var x=a.getPerformArgs(h,i.block);p.each(function(m){m.perform(x)}),h.perform(x)&&(n=!0)}else u&&u.each(function(m,f){s(i,m)&&m.dirty();var v=a.getPerformArgs(m,i.block);v.skip=!l.performRawSeries&&e.isSeriesFiltered(m.context.model),a.updatePayload(m,o),m.perform(v)&&(n=!0)})}});function s(l,d){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(d.__pipeline.id))}this.unfinished=n||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(o){e=o.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,o,i){var n=this,a=e.seriesTaskMap,s=e.seriesTaskMap=ne(),l=t.seriesType,d=t.getTargetSeries;t.createOnAllSeries?o.eachRawSeries(c):l?o.eachRawSeriesByType(l,c):d&&d(o,i).each(c);function c(u){var h=u.uid,g=s.set(h,a&&a.get(h)||Cl({plan:qk,reset:eR,count:rR}));g.context={model:u,ecModel:o,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:n},n._pipe(u,g)}},r.prototype._createOverallStageTask=function(t,e,o,i){var n=this,a=e.overallTask=e.overallTask||Cl({reset:Yk});a.context={ecModel:o,api:i,overallReset:t.overallReset,scheduler:n};var s=a.agentStubMap,l=a.agentStubMap=ne(),d=t.seriesType,c=t.getTargetSeries,u=!0,h=!1,g="";Pt(!t.createOnAllSeries,g),d?o.eachRawSeriesByType(d,p):c?c(o,i).each(p):(u=!1,E(o.getSeries(),p));function p(x){var m=x.uid,f=l.set(m,s&&s.get(m)||(h=!0,Cl({reset:Qk,onDirty:jk})));f.context={model:x,overallProgress:u},f.agent=a,f.__block=u,n._pipe(x,f)}h&&a.dirty()},r.prototype._pipe=function(t,e){var o=t.uid,i=this._pipelineMap.get(o);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return ae(t)&&(t={overallReset:t,seriesType:oR(t)}),t.uid=Ea("stageHandler"),e&&(t.visualType=e),t},r}();function Yk(r){r.overallReset(r.ecModel,r.api,r.payload)}function Qk(r){return r.overallProgress&&Jk}function Jk(){this.agent.dirty(),this.getDownstream().dirty()}function jk(){this.agent&&this.agent.dirty()}function qk(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function eR(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=ke(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Y(t,function(e,o){return _2(o)}):tR}var tR=_2(0);function _2(r){return function(t,e){var o=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var n=t.start;n0&&g===d.length-h.length){var p=d.slice(0,g);p!=="data"&&(e.mainType=p,e[h.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(d)&&(o[d]=l,c=!0),c||(i[d]=l)})}return{cptQuery:e,dataQuery:o,otherQuery:i}},r.prototype.filter=function(t,e){var o=this.eventInfo;if(!o)return!0;var i=o.targetEl,n=o.packedEvent,a=o.model,s=o.view;if(!a||!s)return!0;var l=e.cptQuery,d=e.dataQuery;return c(l,a,"mainType")&&c(l,a,"subType")&&c(l,a,"index","componentIndex")&&c(l,a,"name")&&c(l,a,"id")&&c(d,n,"name")&&c(d,n,"dataIndex")&&c(d,n,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,n));function c(u,h,g,p){return u[g]==null||h[p||g]===u[g]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),f0=["symbol","symbolSize","symbolRotate","symbolOffset"],P2=f0.concat(["symbolKeepAspect"]),sR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var o={},i={},n=!1,a=0;a=0&&Pn(l)?l:.5;var d=r.createRadialGradient(a,s,0,a,s,l);return d}function v0(r,t,e){for(var o=t.type==="radial"?MR(r,t,e):bR(r,t,e),i=t.colorStops,n=0;n0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Ee(r)?[r]:K(r)?r:null}function y0(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&TR(t.lineDash,t.lineWidth),o=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=Y(e,function(n){return n/i}),o/=i)}return[e,o]}var wR=new uo(!0);function Du(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function E2(r){return typeof r=="string"&&r!=="none"}function Ou(r){var t=r.fill;return t!=null&&t!=="none"}function $2(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function D2(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function _0(r,t,e){var o=zm(t.image,t.__image,e);if(Oc(o)){var i=r.createPattern(o,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var n=new DOMMatrix;n.translateSelf(t.x||0,t.y||0),n.rotateSelf(0,0,(t.rotation||0)*Ls),n.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(n)}return i}}function CR(r,t,e,o){var i,n=Du(e),a=Ou(e),s=e.strokePercent,l=s<1,d=!t.path;(!t.silent||l)&&d&&t.createPathProxy();var c=t.path||wR,u=t.__dirty;if(!o){var h=e.fill,g=e.stroke,p=a&&!!h.colorStops,x=n&&!!g.colorStops,m=a&&!!h.image,f=n&&!!g.image,v=void 0,y=void 0,_=void 0,S=void 0,b=void 0;(p||x)&&(b=t.getBoundingRect()),p&&(v=u?v0(r,h,b):t.__canvasFillGradient,t.__canvasFillGradient=v),x&&(y=u?v0(r,g,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),m&&(_=u||!t.__canvasFillPattern?_0(r,h,t):t.__canvasFillPattern,t.__canvasFillPattern=_),f&&(S=u||!t.__canvasStrokePattern?_0(r,g,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),p?r.fillStyle=v:m&&(_?r.fillStyle=_:a=!1),x?r.strokeStyle=y:f&&(S?r.strokeStyle=S:n=!1)}var A=t.getGlobalScale();c.setScale(A[0],A[1],t.segmentIgnoreThreshold);var M,T;r.setLineDash&&e.lineDash&&(i=y0(t),M=i[0],T=i[1]);var w=!0;(d||u&da)&&(c.setDPR(r.dpr),l?c.setContext(null):(c.setContext(r),w=!1),c.reset(),t.buildPath(c,t.shape,o),c.toStatic(),t.pathUpdated()),w&&c.rebuildPath(r,l?s:1),M&&(r.setLineDash(M),r.lineDashOffset=T),o||(e.strokeFirst?(n&&D2(r,e),a&&$2(r,e)):(a&&$2(r,e),n&&D2(r,e))),M&&r.setLineDash([])}function PR(r,t,e){var o=t.__image=zm(e.image,t.__image,t,t.onload);if(!(!o||!Oc(o))){var i=e.x||0,n=e.y||0,a=t.getWidth(),s=t.getHeight(),l=o.width/o.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=o.width,s=o.height),e.sWidth&&e.sHeight){var d=e.sx||0,c=e.sy||0;r.drawImage(o,d,c,e.sWidth,e.sHeight,i,n,a,s)}else if(e.sx&&e.sy){var d=e.sx,c=e.sy,u=a-d,h=s-c;r.drawImage(o,d,c,u,h,i,n,a,s)}else r.drawImage(o,i,n,a,s)}}function LR(r,t,e){var o,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||Qo,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var n=void 0,a=void 0;r.setLineDash&&e.lineDash&&(o=y0(t),n=o[0],a=o[1]),n&&(r.setLineDash(n),r.lineDashOffset=a),e.strokeFirst?(Du(e)&&r.strokeText(i,e.x,e.y),Ou(e)&&r.fillText(i,e.x,e.y)):(Ou(e)&&r.fillText(i,e.x,e.y),Du(e)&&r.strokeText(i,e.x,e.y)),n&&r.setLineDash([])}}var O2=["shadowBlur","shadowOffsetX","shadowOffsetY"],B2=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function G2(r,t,e,o,i){var n=!1;if(!o&&(e=e||{},t===e))return!1;if(o||t.opacity!==e.opacity){tr(r,i),n=!0;var a=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(a)?rn.opacity:a}(o||t.blend!==e.blend)&&(n||(tr(r,i),n=!0),r.globalCompositeOperation=t.blend||rn.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,o,i){if(!this[Ot]){if(this._disposed){this.id;return}var n,a,s;if(de(o)&&(i=o.lazyUpdate,n=o.silent,a=o.replaceMerge,s=o.transition,o=o.notMerge),this[Ot]=!0,!this._model||o){var l=new U4(this._api),d=this._theme,c=this._model=new _M;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,d,this._locale,l)}this._model.setOption(e,{replaceMerge:a},D0);var u={seriesTransition:s,optionChanged:!0};if(i)this[rr]={silent:n,updateParams:u},this[Ot]=!1,this.getZr().wakeUp();else{try{Za(this),yi.update.call(this,null,u)}catch(h){throw this[rr]=null,this[Ot]=!1,h}this._ssr||this._zr.flush(),this[rr]=null,this[Ot]=!1,Ol.call(this,n),Bl.call(this,n)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ie.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var o=this._zr.painter;return o.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var o=this._zr.painter;return o.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(Ie.svgSupported){var e=this._zr,o=e.storage.getDisplayList();return E(o,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var o=e.excludeComponents,i=this._model,n=[],a=this;E(o,function(l){i.eachComponent({mainType:l},function(d){var c=a._componentsMap[d.__viewId];c.group.ignore||(n.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return E(n,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var o=e.type==="svg",i=this.group,n=Math.min,a=Math.max,s=1/0;if(Vu[i]){var l=s,d=s,c=-s,u=-s,h=[],g=e&&e.pixelRatio||this.getDevicePixelRatio();E(In,function(y,_){if(y.group===i){var S=o?y.getZr().painter.getSvgDom().innerHTML:y.renderToCanvas(ce(e)),b=y.getDom().getBoundingClientRect();l=n(b.left,l),d=n(b.top,d),c=a(b.right,c),u=a(b.bottom,u),h.push({dom:S,left:b.left,top:b.top})}}),l*=g,d*=g,c*=g,u*=g;var p=c-l,x=u-d,m=Or.createCanvas(),f=Dm(m,{renderer:o?"svg":"canvas"});if(f.resize({width:p,height:x}),o){var v="";return E(h,function(y){var _=y.left-l,S=y.top-d;v+=''+y.dom+""}),f.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&f.painter.setBackgroundColor(e.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()}else return e.connectedBackgroundColor&&f.add(new Pe({shape:{x:0,y:0,width:p,height:x},style:{fill:e.connectedBackgroundColor}})),E(h,function(y){var _=new yt({style:{x:y.left*g-l,y:y.top*g-d,image:y.dom}});f.add(_)}),f.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,o){return C0(this,"convertToPixel",e,o)},t.prototype.convertFromPixel=function(e,o){return C0(this,"convertFromPixel",e,o)},t.prototype.containPixel=function(e,o){if(this._disposed){this.id;return}var i=this._model,n,a=qs(i,e);return E(a,function(s,l){l.indexOf("Models")>=0&&E(s,function(d){var c=d.coordinateSystem;if(c&&c.containPoint)n=n||!!c.containPoint(o);else if(l==="seriesModels"){var u=this._chartsMap[d.__viewId];u&&u.containPoint&&(n=n||u.containPoint(o,d))}},this)},this),!!n},t.prototype.getVisual=function(e,o){var i=this._model,n=qs(i,e,{defaultMainType:"series"}),a=n.seriesModel,s=a.getData(),l=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?s.indexOfRawIndex(n.dataIndex):null;return l!=null?x0(s,l,o):$l(s,o)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;E(t7,function(o){var i=function(n){var a=e.getModel(),s=n.target,l,d=o==="globalout";if(d?l={}:s&&wn(s,function(p){var x=he(p);if(x&&x.dataIndex!=null){var m=x.dataModel||a.getSeriesByIndex(x.seriesIndex);return l=m&&m.getDataParams(x.dataIndex,x.dataType,s)||{},!0}else if(x.eventData)return l=W({},x.eventData),!0},!0),l){var c=l.componentType,u=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",u=l.seriesIndex);var h=c&&u!=null&&a.getComponent(c,u),g=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];l.event=n,l.type=o,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:h,view:g},e.trigger(o,l)}};i.zrEventfulCallAtLast=!0,e._zr.on(o,i,e)}),E(Gl,function(o,i){e._messageCenter.on(i,function(n){this.trigger(i,n)},e)}),E(["selectchanged"],function(o){e._messageCenter.on(o,function(i){this.trigger(o,i)},e)}),dR(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&iS(this.getDom(),B0,"");var o=this,i=o._api,n=o._model;E(o._componentsViews,function(a){a.dispose(n,i)}),E(o._chartsViews,function(a){a.dispose(n,i)}),o._zr.dispose(),o._dom=o._model=o._chartsMap=o._componentsMap=o._chartsViews=o._componentsViews=o._scheduler=o._api=o._zr=o._throttledZrFlush=o._theme=o._coordSysMgr=o._messageCenter=null,delete In[o.id]},t.prototype.resize=function(e){if(!this[Ot]){if(this._disposed){this.id;return}this._zr.resize(e);var o=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!o){var i=o.resetOption("media"),n=e&&e.silent;this[rr]&&(n==null&&(n=this[rr].silent),i=!0,this[rr]=null),this[Ot]=!0;try{i&&Za(this),yi.update.call(this,{type:"resize",animation:W({duration:0},e&&e.animation)})}catch(a){throw this[Ot]=!1,a}this[Ot]=!1,Ol.call(this,n),Bl.call(this,n)}}},t.prototype.showLoading=function(e,o){if(this._disposed){this.id;return}if(de(e)&&(o=e,e=""),e=e||"default",this.hideLoading(),!!O0[e]){var i=O0[e](this._api,o),n=this._zr;this._loadingFX=i,n.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var o=W({},e);return o.type=Gl[e.type],o},t.prototype.dispatchAction=function(e,o){if(this._disposed){this.id;return}if(de(o)||(o={silent:!!o}),!!Ru[e.type]&&this._model){if(this[Ot]){this._pendingActions.push(e);return}var i=o.silent;L0.call(this,e,i);var n=o.flush;n?this._zr.flush():n!==!1&&Ie.browser.weChat&&this._throttledZrFlush(),Ol.call(this,i),Bl.call(this,i)}},t.prototype.updateLabelLayout=function(){zr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var o=e.seriesIndex,i=this.getModel(),n=i.getSeriesByIndex(o);n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Za=function(u){var h=u._scheduler;h.restorePipelines(u._model),h.prepareStageTasks(),w0(u,!0),w0(u,!1),h.plan()},w0=function(u,h){for(var g=u._model,p=u._scheduler,x=h?u._componentsViews:u._chartsViews,m=h?u._componentsMap:u._chartsMap,f=u._zr,v=u._api,y=0;yh.get("hoverLayerThreshold")&&!Ie.node&&!Ie.worker&&h.eachSeries(function(m){if(!m.preventUsingHoverLayer){var f=u._chartsMap[m.__viewId];f.__alive&&f.eachRendered(function(v){v.states.emphasis&&(v.states.emphasis.hoverLayer=!0)})}})}function a(u,h){var g=u.get("blendMode")||null;h.eachRendered(function(p){p.isGroup||(p.style.blend=g)})}function s(u,h){if(!u.preventAutoZ){var g=u.get("z")||0,p=u.get("zlevel")||0;h.eachRendered(function(x){return l(x,g,p,-1/0),!0})}}function l(u,h,g,p){var x=u.getTextContent(),m=u.getTextGuideLine(),f=u.isGroup;if(f)for(var v=u.childrenRef(),y=0;y0?{duration:x,delay:g.get("delay"),easing:g.get("easing")}:null;h.eachRendered(function(f){if(f.states&&f.states.emphasis){if(wa(f))return;if(f instanceof Me&&pN(f),f.__dirty){var v=f.prevStates;v&&f.useStates(v)}if(p){f.stateTransition=m;var y=f.getTextContent(),_=f.getTextGuideLine();y&&(y.stateTransition=m),_&&(_.stateTransition=m)}f.__dirty&&i(f)}})}cA=function(u){return new(function(h){V(g,h);function g(){return h!==null&&h.apply(this,arguments)||this}return g.prototype.getCoordinateSystems=function(){return u._coordSysMgr.getCoordinateSystems()},g.prototype.getComponentByElement=function(p){for(;p;){var x=p.__ecComponentInfo;if(x!=null)return u._model.getComponent(x.mainType,x.index);p=p.parent}},g.prototype.enterEmphasis=function(p,x){Go(p,x),Ar(u)},g.prototype.leaveEmphasis=function(p,x){No(p,x),Ar(u)},g.prototype.enterBlur=function(p){KS(p),Ar(u)},g.prototype.leaveBlur=function(p){gp(p),Ar(u)},g.prototype.enterSelect=function(p){ZS(p),Ar(u)},g.prototype.leaveSelect=function(p){YS(p),Ar(u)},g.prototype.getModel=function(){return u.getModel()},g.prototype.getViewOfComponentModel=function(p){return u.getViewOfComponentModel(p)},g.prototype.getViewOfSeriesModel=function(p){return u.getViewOfSeriesModel(p)},g}(SM))(u)},uA=function(u){function h(g,p){for(var x=0;x=0)){_A.push(e);var n=M2.wrapStageHandler(e,i);n.__prio=t,n.__raw=e,r.push(n)}}function V0(r,t){O0[r]=t}function d7(r){Ly({createCanvas:r})}function SA(r,t,e){var o=Y2("registerMap");o&&o(r,t,e)}function c7(r){var t=Y2("getMap");return t&&t(r)}var bA=vk;_i(M0,Uk),_i(Bu,Wk),_i(Bu,zk),_i(M0,sR),_i(Bu,lR),_i(j2,NR),k0(PM),R0(UR,j4),V0("default",Kk),Kr({type:un,event:un,update:un},qe),Kr({type:Hc,event:Hc,update:Hc},qe),Kr({type:al,event:al,update:al},qe),Kr({type:Xc,event:Xc,update:Xc},qe),Kr({type:sl,event:sl,update:sl},qe),N0("light",iR),N0("dark",nR);var u7={},MA=[],h7={registerPreprocessor:k0,registerProcessor:R0,registerPostInit:fA,registerPostUpdate:xA,registerUpdateLifecycle:Hu,registerAction:Kr,registerCoordinateSystem:vA,registerLayout:yA,registerVisual:_i,registerTransform:bA,registerLoading:V0,registerMap:SA,registerImpl:RR,PRIORITY:q2,ComponentModel:Te,ComponentView:Ye,SeriesModel:ze,ChartView:Fe,registerComponentModel:function(r){Te.registerClass(r)},registerComponentView:function(r){Ye.registerClass(r)},registerSeriesModel:function(r){ze.registerClass(r)},registerChartView:function(r){Fe.registerClass(r)},registerSubTypeDefaulter:function(r,t){Te.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){V_(r,t)}};function be(r){if(K(r)){E(r,function(t){be(t)});return}Se(MA,r)>=0||(MA.push(r),ae(r)&&(r={install:r}),r.install(h7))}function Nl(r){return r==null?0:r.length||1}function AA(r){return r}var g7=function(){function r(t,e,o,i,n,a){this._old=t,this._new=e,this._oldKeyGetter=o||AA,this._newKeyGetter=i||AA,this.context=n,this._diffModeMultiple=a==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,o={},i=new Array(t.length),n=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,o,n,"_newKeyGetter");for(var a=0;a1){var c=l.shift();l.length===1&&(o[s]=l[0]),this._update&&this._update(c,a)}else d===1?(o[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(n,o)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,o={},i={},n=[],a=[];this._initIndexMap(t,o,n,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(c,d),i[l]=null;else if(u===1&&h>1)this._updateOneToMany&&this._updateOneToMany(c,d),i[l]=null;else if(u===1&&h===1)this._update&&this._update(c,d),i[l]=null;else if(u>1&&h>1)this._updateManyToMany&&this._updateManyToMany(c,d),i[l]=null;else if(u>1)for(var g=0;g1)for(var s=0;s30}var kl=de,Si=Y,_7=typeof Int32Array>"u"?Array:Int32Array,S7="e\0\0",IA=-1,b7=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],M7=["_approximateExtent"],EA,Wu,Rl,Fl,X0,zu,U0,A7=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var o,i=!1;wA(t)?(o=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,o=t),o=o||["x","y"];for(var n={},a=[],s={},l=!1,d={},c=0;c=e)){var o=this._store,i=o.getProvider();this._updateOrdinalMeta();var n=this._nameList,a=this._idList,s=i.getSource().sourceFormat,l=s===Sr;if(l&&!i.pure)for(var d=[],c=t;c0},r.prototype.ensureUniqueItemVisual=function(t,e){var o=this._itemVisuals,i=o[t];i||(i=o[t]={});var n=i[e];return n==null&&(n=this.getVisual(e),K(n)?n=n.slice():kl(n)&&(n=W({},n)),i[e]=n),n},r.prototype.setItemVisual=function(t,e,o){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,kl(e)?W(i,e):i[e]=o},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){kl(t)?W(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,o){this._itemLayouts[t]=o?W(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var o=this.hostModel&&this.hostModel.seriesIndex;lp(o,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){E(this._graphicEls,function(o,i){o&&t&&t.call(e,o,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Si(this.dimensions,this._getDimInfo,this),this.hostModel)),X0(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var o=this[t];ae(o)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=o.apply(this,arguments);return e.apply(this,[i].concat(tc(arguments)))})},r.internalField=function(){EA=function(t){var e=t._invertedIndicesMap;E(e,function(o,i){var n=t._dimInfos[i],a=n.ordinalMeta,s=t._store;if(a){o=e[i]=new _7(a.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[e]=l}}}(),r}();const Bt=A7;function T7(r,t){return Ya(r,t).dimensions}function Ya(r,t){r0(r)||(r=i0(r)),t=t||{};var e=t.coordDimensions||[],o=t.dimensionsDefine||r.dimensionsDefine||[],i=ne(),n=[],a=C7(r,e,o,t.dimensionsCount),s=t.canOmitUnusedDimensions&&LA(a),l=o===r.dimensionsDefine,d=l?PA(r):CA(o),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,a));for(var u=ne(c),h=new KM(a),g=0;g0&&(o.name=i+(n-1)),n++,t.set(i,n)}}function C7(r,t,e,o){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,o||0);return E(t,function(n){var a;de(n)&&(a=n.dimsDef)&&(i=Math.max(i,a.length))}),i}function P7(r,t,e){if(e||t.hasKey(r)){for(var o=0;t.hasKey(r+o);)o++;r+=o}return t.set(r,!0),r}var L7=function(){function r(t){this.coordSysDims=[],this.axisMap=ne(),this.categoryAxisMap=ne(),this.coordSysName=t}return r}();function I7(r){var t=r.get("coordinateSystem"),e=new L7(t),o=E7[t];if(o)return o(r,e,e.axisMap,e.categoryAxisMap),e}var E7={cartesian2d:function(r,t,e,o){var i=r.getReferringComponents("xAxis",ot).models[0],n=r.getReferringComponents("yAxis",ot).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",n),Qa(i)&&(o.set("x",i),t.firstCategoryDimIndex=0),Qa(n)&&(o.set("y",n),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,o){var i=r.getReferringComponents("singleAxis",ot).models[0];t.coordSysDims=["single"],e.set("single",i),Qa(i)&&(o.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,o){var i=r.getReferringComponents("polar",ot).models[0],n=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",n),e.set("angle",a),Qa(n)&&(o.set("radius",n),t.firstCategoryDimIndex=0),Qa(a)&&(o.set("angle",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,o){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,o){var i=r.ecModel,n=i.getComponent("parallel",r.get("parallelIndex")),a=t.coordSysDims=n.dimensions.slice();E(n.parallelAxisIndex,function(s,l){var d=i.getComponent("parallelAxis",s),c=a[l];e.set(c,d),Qa(d)&&(o.set(c,d),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Qa(r){return r.get("type")==="category"}function $A(r,t,e){e=e||{};var o=e.byIndex,i=e.stackedCoordDimension,n,a,s;$7(t)?n=t:(a=t.schema,n=a.dimensions,s=t.store);var l=!!(r&&r.get("stack")),d,c,u,h;if(E(n,function(v,y){te(v)&&(n[y]=v={name:v}),l&&!v.isExtraCoord&&(!o&&!d&&v.ordinalMeta&&(d=v),!c&&v.type!=="ordinal"&&v.type!=="time"&&(!i||i===v.coordDim)&&(c=v))}),c&&!o&&!d&&(o=!0),c){u="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,d&&(d.createInvertedIndices=!0);var g=c.coordDim,p=c.type,x=0;E(n,function(v){v.coordDim===g&&x++});var m={name:u,coordDim:g,coordDimIndex:x,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},f={name:h,coordDim:h,coordDimIndex:x+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};a?(s&&(m.storeDimIndex=s.ensureCalculationDimension(h,p),f.storeDimIndex=s.ensureCalculationDimension(u,p)),a.appendCalculationDimension(m),a.appendCalculationDimension(f)):(n.push(m),n.push(f))}return{stackedDimension:c&&c.name,stackedByDimension:d&&d.name,isStackedByIndex:o,stackedOverDimension:h,stackResultDimension:u}}function $7(r){return!wA(r.schema)}function Vo(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function W0(r,t){return Vo(r,t)?r.getCalculationInfo("stackResultDimension"):t}function D7(r,t){var e=r.get("coordinateSystem"),o=Ra.get(e),i;return t&&t.coordSysDims&&(i=Y(t.coordSysDims,function(n){var a={name:n},s=t.axisMap.get(n);if(s){var l=s.get("type");a.type=Xu(l)}return a})),i||(i=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),i}function O7(r,t,e){var o,i;return e&&E(r,function(n,a){var s=n.coordDim,l=e.categoryAxisMap.get(s);l&&(o==null&&(o=a),n.ordinalMeta=l.getOrdinalMeta(),t&&(n.createInvertedIndices=!0)),n.otherDims.itemName!=null&&(i=!0)}),!i&&o!=null&&(r[o].otherDims.itemName=0),o}function po(r,t,e){e=e||{};var o=t.getSourceManager(),i,n=!1;r?(n=!0,i=i0(r)):(i=o.getSource(),n=i.sourceFormat===Sr);var a=I7(t),s=D7(t,a),l=e.useEncodeDefaulter,d=ae(l)?l:l?me(dM,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:d,canOmitUnusedDimensions:!n},u=Ya(i,c),h=O7(u.dimensions,e.createInvertedIndices,a),g=n?null:o.getSharedDataStore(u),p=$A(t,{schema:u,store:g}),x=new Bt(u,t);x.setCalculationInfo(p);var m=h!=null&&B7(i)?function(f,v,y,_){return _===h?y:this.defaultDimValueGetter(f,v,y,_)}:null;return x.hasItemOption=!1,x.initData(n?i:g,null,m),x}function B7(r){if(r.sourceFormat===Sr){var t=G7(r.data||[]);return!K(va(t))}}function G7(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var o=this._extent;isNaN(t)||(o[0]=t),isNaN(e)||(o[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Dc(DA);const Ho=DA;var N7=0,k7=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++N7}return r.createByAxisModel=function(t){var e=t.option,o=e.data,i=o&&Y(o,R7);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,o=this._needCollect;if(!te(t)&&!o)return t;if(o&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(o?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=ne(this.categories))},r}();function R7(r){return de(r)&&r.value!=null?r.value:r+""}const z0=k7;function K0(r){return r.type==="interval"||r.type==="log"}function F7(r,t,e,o){var i={},n=r[1]-r[0],a=i.interval=km(n/t,!0);e!=null&&ao&&(a=i.interval=o);var s=i.intervalPrecision=OA(a),l=i.niceTickExtent=[Qe(Math.ceil(r[0]/a)*a,s),Qe(Math.floor(r[1]/a)*a,s)];return V7(l,r),i}function Z0(r){var t=Math.pow(10,Ec(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Qe(e*t)}function OA(r){return Vr(r)+2}function BA(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function V7(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),BA(r,0,t),BA(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Ku(r,t){return r>=t[0]&&r<=t[1]}function Zu(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Yu(r,t){return r*(t[1]-t[0])+t[0]}var GA=function(r){V(t,r);function t(e){var o=r.call(this,e)||this;o.type="ordinal";var i=o.getSetting("ordinalMeta");return i||(i=new z0({})),K(i)&&(i=new z0({categories:Y(i,function(n){return de(n)?n.value:n})})),o._ordinalMeta=i,o._extent=o.getSetting("extent")||[0,i.categories.length-1],o}return t.prototype.parse=function(e){return e==null?NaN:te(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Ku(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Zu(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Yu(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],o=this._extent,i=o[0];i<=o[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var o=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,o.length);a=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ho);Ho.registerClass(GA);const Y0=GA;var En=Qe,NA=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Ku(e,this._extent)},t.prototype.normalize=function(e){return Zu(e,this._extent)},t.prototype.scale=function(e){return Yu(e,this._extent)},t.prototype.setExtent=function(e,o){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(o)||(i[1]=parseFloat(o))},t.prototype.unionExtent=function(e){var o=this._extent;e[0]o[1]&&(o[1]=e[1]),this.setExtent(o[0],o[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=OA(e)},t.prototype.getTicks=function(e){var o=this._interval,i=this._extent,n=this._niceExtent,a=this._intervalPrecision,s=[];if(!o)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:n[1];return i[1]>c&&(e?s.push({value:En(c+o,a)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var o=this.getTicks(!0),i=[],n=this.getExtent(),a=1;an[0]&&g0&&(n=n===null?s:Math.min(n,s))}e[o]=n}}return e}function FA(r){var t=U7(r),e=[];return E(r,function(o){var i=o.coordinateSystem,n=i.getBaseAxis(),a=n.getExtent(),s;if(n.type==="category")s=n.getBandWidth();else if(n.type==="value"||n.type==="time"){var l=n.dim+"_"+n.index,d=t[l],c=Math.abs(a[1]-a[0]),u=n.scale.getExtent(),h=Math.abs(u[1]-u[0]);s=d?c/h*d:c}else{var g=o.getData();s=Math.abs(a[1]-a[0])/g.count()}var p=ee(o.get("barWidth"),s),x=ee(o.get("barMaxWidth"),s),m=ee(o.get("barMinWidth")||(WA(o)?.5:1),s),f=o.get("barGap"),v=o.get("barCategoryGap");e.push({bandWidth:s,barWidth:p,barMaxWidth:x,barMinWidth:m,barGap:f,barCategoryGap:v,axisKey:j0(n),stackId:J0(o)})}),VA(e)}function VA(r){var t={};E(r,function(o,i){var n=o.axisKey,a=o.bandWidth,s=t[n]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[n]=s;var d=o.stackId;l[d]||s.autoWidthCount++,l[d]=l[d]||{width:0,maxWidth:0};var c=o.barWidth;c&&!l[d].width&&(l[d].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var u=o.barMaxWidth;u&&(l[d].maxWidth=u);var h=o.barMinWidth;h&&(l[d].minWidth=h);var g=o.barGap;g!=null&&(s.gap=g);var p=o.barCategoryGap;p!=null&&(s.categoryGap=p)});var e={};return E(t,function(o,i){e[i]={};var n=o.stacks,a=o.bandWidth,s=o.categoryGap;if(s==null){var l=Ae(n).length;s=Math.max(35-l*4,15)+"%"}var d=ee(s,a),c=ee(o.gap,1),u=o.remainedWidth,h=o.autoWidthCount,g=(u-d)/(h+(h-1)*c);g=Math.max(g,0),E(n,function(f){var v=f.maxWidth,y=f.minWidth;if(f.width){var _=f.width;v&&(_=Math.min(_,v)),y&&(_=Math.max(_,y)),f.width=_,u-=_+c*_,h--}else{var _=g;v&&v<_&&(_=Math.min(v,u)),y&&y>_&&(_=y),_!==g&&(f.width=_,u-=_+c*_,h--)}}),g=(u-d)/(h+(h-1)*c),g=Math.max(g,0);var p=0,x;E(n,function(f,v){f.width||(f.width=g),x=f,p+=f.width*(1+c)}),x&&(p-=x.width*c);var m=-p/2;E(n,function(f,v){e[i][v]=e[i][v]||{bandWidth:a,offset:m,width:f.width},m+=f.width*(1+c)})}),e}function W7(r,t,e){if(r&&t){var o=r[j0(t)];return o!=null&&e!=null?o[J0(e)]:o}}function HA(r,t){var e=RA(r,t),o=FA(e);E(e,function(i){var n=i.getData(),a=i.coordinateSystem,s=a.getBaseAxis(),l=J0(i),d=o[j0(s)][l],c=d.offset,u=d.width;n.setLayout({bandWidth:d.bandWidth,offset:c,size:u})})}function XA(r){return{seriesType:r,plan:Ha(),reset:function(t){if(UA(t)){var e=t.getData(),o=t.coordinateSystem,i=o.getBaseAxis(),n=o.getOtherAxis(i),a=e.getDimensionIndex(e.mapDimension(n.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),l=t.get("showBackground",!0),d=e.mapDimension(n.dim),c=e.getCalculationInfo("stackResultDimension"),u=Vo(e,d)&&!!e.getCalculationInfo("stackedOnSeries"),h=n.isHorizontal(),g=z7(i,n),p=WA(t),x=t.get("barMinHeight")||0,m=c&&e.getDimensionIndex(c),f=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(y,_){for(var S=y.count,b=p&&fo(S*3),A=p&&l&&fo(S*3),M=p&&fo(S),T=o.master.getRect(),w=h?T.width:T.height,C,P=_.getStore(),L=0;(C=y.next())!=null;){var $=P.get(u?m:a,C),O=P.get(s,C),N=g,R=void 0;u&&(R=+$-P.get(a,C));var I=void 0,D=void 0,G=void 0,k=void 0;if(h){var H=o.dataToPoint([$,O]);if(u){var z=o.dataToPoint([R,O]);N=z[0]}I=N,D=H[1]+v,G=H[0]-N,k=f,Math.abs(G)0?e:1:e))}var K7=function(r,t,e,o){for(;e>>1;r[i][1]i&&(this._approxInterval=i);var s=Qu.length,l=Math.min(K7(Qu,this._approxInterval,0,s),s-1);this._interval=Qu[l][1],this._minLevelUnit=Qu[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return Ee(e)?e:+sr(e)},t.prototype.contain=function(e){return Ku(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Zu(this.parse(e),this._extent)},t.prototype.scale=function(e){return Yu(e,this._extent)},t.type="time",t}(bi),Qu=[["second",kp],["minute",Rp],["hour",vl],["quarter-day",vl*6],["half-day",vl*12],["day",_r*1.2],["half-week",_r*3.5],["week",_r*7],["month",_r*31],["quarter",_r*95],["half-year",Ub/2],["year",Ub]];function Z7(r,t,e,o){var i=sr(t),n=sr(e),a=function(p){return Zb(i,p,o)===Zb(n,p,o)},s=function(){return a("year")},l=function(){return s()&&a("month")},d=function(){return l()&&a("day")},c=function(){return d()&&a("hour")},u=function(){return c()&&a("minute")},h=function(){return u()&&a("second")},g=function(){return h()&&a("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return d();case"hour":return c();case"minute":return u();case"second":return h();case"millisecond":return g()}}function Y7(r,t){return r/=_r,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function Q7(r){var t=30*_r;return r/=t,r>6?6:r>3?3:r>2?2:1}function J7(r){return r/=vl,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function KA(r,t){return r/=t?Rp:kp,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function j7(r){return km(r,!0)}function q7(r,t,e){var o=new Date(r);switch(Da(t)){case"year":case"month":o[Yb(e)](0);case"day":o[Qb(e)](1);case"hour":o[Jb(e)](0);case"minute":o[jb(e)](0);case"second":o[qb(e)](0),o[eM(e)](0)}return o.getTime()}function e8(r,t,e,o){var i=1e4,n=zb,a=0;function s(w,C,P,L,$,O,N){for(var R=new Date(C),I=C,D=R[L]();I1&&O===0&&P.unshift({value:P[0].value-I})}}for(var O=0;O=o[0]&&v<=o[1]&&u++)}var y=(o[1]-o[0])/t;if(u>y*1.5&&h>y/1.5||(d.push(m),u>y||r===n[g]))break}c=[]}}}for(var _=Ge(Y(d,function(C){return Ge(C,function(P){return P.value>=o[0]&&P.value<=o[1]&&!P.notAdd})}),function(C){return C.length>0}),S=[],b=_.length-1,g=0;g<_.length;++g)for(var A=_[g],M=0;M0;)n*=10;var s=[Qe(o8(o[0]/n)*n),Qe(r8(o[1]/n)*n)];this._interval=n,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Vl.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Zr(e)/Zr(this.base),Ku(e,this._extent)},t.prototype.normalize=function(e){return e=Zr(e)/Zr(this.base),Zu(e,this._extent)},t.prototype.scale=function(e){return e=Yu(e,this._extent),Ju(this.base,e)},t.type="log",t}(Ho),QA=q0.prototype;QA.getMinorTicks=Vl.getMinorTicks,QA.getLabel=Vl.getLabel;function ju(r,t){return t8(r,Vr(t))}Ho.registerClass(q0);const i8=q0;var n8=function(){function r(t,e,o){this._prepareParams(t,e,o)}return r.prototype._prepareParams=function(t,e,o){o[1]0&&l>0&&!d&&(s=0),s<0&&l<0&&!c&&(l=0));var h=this._determinedMin,g=this._determinedMax;return h!=null&&(s=h,d=!0),g!=null&&(l=g,c=!0),{min:s,max:l,minFixed:d,maxFixed:c,isBlank:u}},r.prototype.modifyDataMinMax=function(t,e){this[s8[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var o=a8[t];this[o]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),a8={min:"_determinedMin",max:"_determinedMax"},s8={min:"_dataMin",max:"_dataMax"};function JA(r,t,e){var o=r.rawExtentInfo;return o||(o=new n8(r,t,e),r.rawExtentInfo=o,o)}function qu(r,t){return t==null?null:aa(t)?NaN:r.parse(t)}function jA(r,t){var e=r.type,o=JA(r,t,r.getExtent()).calculate();r.setBlank(o.isBlank);var i=o.min,n=o.max,a=t.ecModel;if(a&&e==="time"){var s=RA("bar",a),l=!1;if(E(s,function(u){l=l||u.getBaseAxis()===t.axis}),l){var d=FA(s),c=l8(i,n,t,d);i=c.min,n=c.max}}return{extent:[i,n],fixMin:o.minFixed,fixMax:o.maxFixed}}function l8(r,t,e,o){var i=e.axis.getExtent(),n=i[1]-i[0],a=W7(o,e.axis);if(a===void 0)return{min:r,max:t};var s=1/0;E(a,function(g){s=Math.min(g.offset,s)});var l=-1/0;E(a,function(g){l=Math.max(g.offset+g.width,l)}),s=Math.abs(s),l=Math.abs(l);var d=s+l,c=t-r,u=1-(s+l)/n,h=c/u-c;return t+=h*(l/d),r-=h*(s/d),{min:r,max:t}}function $n(r,t){var e=t,o=jA(r,e),i=o.extent,n=e.get("splitNumber");r instanceof i8&&(r.base=e.get("logBase"));var a=r.type,s=e.get("interval"),l=a==="interval"||a==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:n,fixMin:o.fixMin,fixMax:o.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Hl(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Y0({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new ZA({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ho.getClass(t)||bi)}}function d8(r){var t=r.scale.getExtent(),e=t[0],o=t[1];return!(e>0&&o>0||e<0&&o<0)}function Ja(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(o){return function(i,n){return r.scale.getFormattedLabel(i,n,o)}}(t):te(t)?function(o){return function(i){var n=r.scale.getLabel(i),a=o.replace("{value}",n??"");return a}}(t):ae(t)?function(o){return function(i,n){return e!=null&&(n=i.value-e),o(ef(r,i),n,i.level!=null?{level:i.level}:null)}}(t):function(o){return r.scale.getLabel(o)}}function ef(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function c8(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var o,i,n=e.getExtent();e instanceof Y0?i=e.count():(o=e.getTicks(),i=o.length);var a=r.getLabelModel(),s=Ja(r),l,d=1;i>40&&(d=Math.ceil(i/40));for(var c=0;cr[1]&&(r[1]=i[1])})}var ja=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}();function g8(r){return po(null,r)}var m8={isDimensionStacked:Vo,enableDataStack:$A,getStackedDimension:W0};function p8(r,t){var e=t;t instanceof Re||(e=new Re(t));var o=Hl(e);return o.setExtent(r[0],r[1]),$n(o,e),o}function f8(r){je(r,ja)}function x8(r,t){return t=t||{},Ue(r,null,null,t.state!=="normal")}const v8=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:T7,createList:g8,createScale:p8,createSymbol:tt,createTextStyle:x8,dataStack:m8,enableHoverEmphasis:ci,getECData:he,getLayoutRect:it,mixinAxisModelCommonMethods:f8},Symbol.toStringTag,{value:"Module"}));var y8=1e-8;function eT(r,t){return Math.abs(r-t)i&&(o=a,i=l)}if(o)return S8(o.exterior);var d=this.getBoundingRect();return[d.x+d.width/2,d.y+d.height/2]},t.prototype.getBoundingRect=function(e){var o=this._rect;if(o&&!e)return o;var i=[1/0,1/0],n=[-1/0,-1/0],a=this.geometries;return E(a,function(s){s.type==="polygon"?tT(s.exterior,i,n,e):E(s.points,function(l){tT(l,i,n,e)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(n[0])&&isFinite(n[1])||(i[0]=i[1]=n[0]=n[1]=0),o=new ye(i[0],i[1],n[0]-i[0],n[1]-i[1]),e||(this._rect=o),o},t.prototype.contain=function(e){var o=this.getBoundingRect(),i=this.geometries;if(!o.contain(e[0],e[1]))return!1;e:for(var n=0,a=i.length;n>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=n,i=s,n=l,o.push([s/e,l/e])}return o}function nf(r,t){return r=M8(r),Y(Ge(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var o=e.properties,i=e.geometry,n=[];switch(i.type){case"Polygon":var a=i.coordinates;n.push(new oT(a[0],a.slice(1)));break;case"MultiPolygon":E(i.coordinates,function(l){l[0]&&n.push(new oT(l[0],l.slice(1)))});break;case"LineString":n.push(new iT([i.coordinates]));break;case"MultiLineString":n.push(new iT(i.coordinates))}var s=new nT(o[t||"name"],n,o.cp);return s.properties=o,s})}const A8=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:Gm,asc:ar,getPercentWithPrecision:RB,getPixelPrecision:Bm,getPrecision:Vr,getPrecisionSafe:z_,isNumeric:Fm,isRadianAroundZero:xa,linearMap:Ne,nice:km,numericToNumber:no,parseDate:sr,quantile:$c,quantity:Z_,quantityExponent:Ec,reformIntervals:Rm,remRadian:Nm,round:Qe},Symbol.toStringTag,{value:"Module"})),T8=Object.freeze(Object.defineProperty({__proto__:null,format:_l,parse:sr},Symbol.toStringTag,{value:"Module"})),w8=Object.freeze(Object.defineProperty({__proto__:null,Arc:Qc,BezierCurve:gl,BoundingRect:ye,Circle:ko,CompoundPath:Jc,Ellipse:Zc,Group:ue,Image:yt,IncrementalDisplayable:Ab,Line:ht,LinearGradient:Aa,Polygon:Ht,Polyline:Xt,RadialGradient:Mp,Rect:Pe,Ring:hl,Sector:Vt,Text:Le,clipPointsByRect:Pp,clipRectByRect:Eb,createIcon:Pa,extendPath:Pb,extendShape:Cb,getShapeClass:ou,getTransform:hi,initProps:Ze,makeImage:wp,makePath:pl,mergePath:dr,registerShape:yr,resizePath:Cp,updateProps:$e},Symbol.toStringTag,{value:"Module"})),C8=Object.freeze(Object.defineProperty({__proto__:null,addCommas:Hp,capitalFirst:y4,encodeHTML:It,formatTime:v4,formatTpl:zp,getTextRect:f4,getTooltipMarker:rM,normalizeCssArray:yn,toCamelCase:Xp,truncateText:dS},Symbol.toStringTag,{value:"Module"})),P8=Object.freeze(Object.defineProperty({__proto__:null,bind:re,clone:ce,curry:me,defaults:le,each:E,extend:W,filter:Ge,indexOf:Se,inherits:Rg,isArray:K,isFunction:ae,isObject:de,isString:te,map:Y,merge:xe,reduce:ur},Symbol.toStringTag,{value:"Module"}));var Xl=Ce();function sT(r,t){var e=Y(t,function(o){return r.scale.parse(o)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function L8(r){var t=r.getLabelModel().get("customValues");if(t){var e=Ja(r);return{labels:sT(r,t).map(function(o){var i={value:o};return{formattedLabel:e(i),rawLabel:r.scale.getLabel(i),tickValue:o}})}}return r.type==="category"?E8(r):D8(r)}function I8(r,t){var e=r.getTickModel().get("customValues");return e?{ticks:sT(r,e)}:r.type==="category"?$8(r,t):{ticks:Y(r.scale.getTicks(),function(o){return o.value})}}function E8(r){var t=r.getLabelModel(),e=lT(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function lT(r,t){var e=dT(r,"labels"),o=tf(t),i=cT(e,o);if(i)return i;var n,a;return ae(o)?n=gT(r,o):(a=o==="auto"?O8(r):o,n=hT(r,a)),uT(e,o,{labels:n,labelCategoryInterval:a})}function $8(r,t){var e=dT(r,"ticks"),o=tf(t),i=cT(e,o);if(i)return i;var n,a;if((!t.get("show")||r.scale.isBlank())&&(n=[]),ae(o))n=gT(r,o,!0);else if(o==="auto"){var s=lT(r,r.getLabelModel());a=s.labelCategoryInterval,n=Y(s.labels,function(l){return l.tickValue})}else a=o,n=hT(r,a,!0);return uT(e,o,{ticks:n,tickCategoryInterval:a})}function D8(r){var t=r.scale.getTicks(),e=Ja(r);return{labels:Y(t,function(o,i){return{level:o.level,formattedLabel:e(o,i),rawLabel:r.scale.getLabel(o),tickValue:o.value}})}}function dT(r,t){return Xl(r)[t]||(Xl(r)[t]=[])}function cT(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(a/40)));for(var l=n[0],d=r.dataToCoord(l+1)-r.dataToCoord(l),c=Math.abs(d*Math.cos(o)),u=Math.abs(d*Math.sin(o)),h=0,g=0;l<=n[1];l+=s){var p=0,x=0,m=Ys(e({value:l}),t.font,"center","top");p=m.width*1.3,x=m.height*1.3,h=Math.max(h,p,7),g=Math.max(g,x,7)}var f=h/c,v=g/u;isNaN(f)&&(f=1/0),isNaN(v)&&(v=1/0);var y=Math.max(0,Math.floor(Math.min(f,v))),_=Xl(r.model),S=r.getExtent(),b=_.lastAutoInterval,A=_.lastTickCount;return b!=null&&A!=null&&Math.abs(b-y)<=1&&Math.abs(A-a)<=1&&b>y&&_.axisExtent0===S[0]&&_.axisExtent1===S[1]?y=b:(_.lastTickCount=a,_.lastAutoInterval=y,_.axisExtent0=S[0],_.axisExtent1=S[1]),y}function G8(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function hT(r,t,e){var o=Ja(r),i=r.scale,n=i.getExtent(),a=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),d=n[0],c=i.count();d!==0&&l>1&&c/l>2&&(d=Math.round(Math.ceil(d/l)*l));var u=qA(r),h=a.get("showMinLabel")||u,g=a.get("showMaxLabel")||u;h&&d!==n[0]&&x(n[0]);for(var p=d;p<=n[1];p+=l)x(p);g&&p-l!==n[1]&&x(n[1]);function x(m){var f={value:m};s.push(e?m:{formattedLabel:o(f),rawLabel:i.getLabel(f),tickValue:m})}return s}function gT(r,t,e){var o=r.scale,i=Ja(r),n=[];return E(o.getTicks(),function(a){var s=o.getLabel(a),l=a.value;t(a.value,s)&&n.push(e?l:{formattedLabel:i(a),rawLabel:s,tickValue:l})}),n}var mT=[0,1],N8=function(){function r(t,e,o){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=o||[0,0]}return r.prototype.contain=function(t){var e=this._extent,o=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=o&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Bm(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var o=this._extent;o[0]=t,o[1]=e},r.prototype.dataToCoord=function(t,e){var o=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(o=o.slice(),pT(o,i.count())),Ne(t,mT,o,e)},r.prototype.coordToData=function(t,e){var o=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(o=o.slice(),pT(o,i.count()));var n=Ne(t,o,mT,e);return this.scale.scale(n)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),o=I8(this,e),i=o.ticks,n=Y(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=e.get("alignWithLabel");return k8(this,n,a,t.clamp),n},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var o=this.scale.getMinorTicks(e),i=Y(o,function(n){return Y(n,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},r.prototype.getViewLabels=function(){return L8(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),o=e[1]-e[0]+(this.onBand?1:0);o===0&&(o=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/o},r.prototype.calculateCategoryInterval=function(){return B8(this)},r}();function pT(r,t){var e=r[1]-r[0],o=t,i=e/o/2;r[0]+=i,r[1]-=i}function k8(r,t,e,o){var i=t.length;if(!r.onBand||e||!i)return;var n=r.getExtent(),a,s;if(i===1)t[0].coord=n[0],a=t[1]={coord:n[1]};else{var l=t[i-1].tickValue-t[0].tickValue,d=(t[i-1].coord-t[0].coord)/l;E(t,function(g){g.coord-=d/2});var c=r.scale.getExtent();s=1+c[1]-t[i-1].tickValue,a={coord:t[i-1].coord+d*s},t.push(a)}var u=n[0]>n[1];h(t[0].coord,n[0])&&(o?t[0].coord=n[0]:t.shift()),o&&h(n[0],t[0].coord)&&t.unshift({coord:n[0]}),h(n[1],a.coord)&&(o?a.coord=n[1]:t.pop()),o&&h(a.coord,n[1])&&t.push({coord:n[1]});function h(g,p){return g=Qe(g),p=Qe(p),u?g>p:gi&&(i+=Ul);var g=Math.atan2(s,a);if(g<0&&(g+=Ul),g>=o&&g<=i||g+Ul>=o&&g+Ul<=i)return l[0]=c,l[1]=u,d-e;var p=e*Math.cos(o)+r,x=e*Math.sin(o)+t,m=e*Math.cos(i)+r,f=e*Math.sin(i)+t,v=(p-a)*(p-a)+(x-s)*(x-s),y=(m-a)*(m-a)+(f-s)*(f-s);return v0){t=t/180*Math.PI,Qr.fromArray(r[0]),Ke.fromArray(r[1]),rt.fromArray(r[2]),ve.sub(xo,Qr,Ke),ve.sub(vo,rt,Ke);var e=xo.len(),o=vo.len();if(!(e<.001||o<.001)){xo.scale(1/e),vo.scale(1/o);var i=xo.dot(vo),n=Math.cos(t);if(n1&&ve.copy(zt,rt),zt.toArray(r[1])}}}}function Z8(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Qr.fromArray(r[0]),Ke.fromArray(r[1]),rt.fromArray(r[2]),ve.sub(xo,Ke,Qr),ve.sub(vo,rt,Ke);var o=xo.len(),i=vo.len();if(!(o<.001||i<.001)){xo.scale(1/o),vo.scale(1/i);var n=xo.dot(t),a=Math.cos(e);if(n=l)ve.copy(zt,rt);else{zt.scaleAndAdd(vo,s/Math.tan(Math.PI/2-c));var u=rt.x!==Ke.x?(zt.x-Ke.x)/(rt.x-Ke.x):(zt.y-Ke.y)/(rt.y-Ke.y);if(isNaN(u))return;u<0?ve.copy(zt,Ke):u>1&&ve.copy(zt,rt)}zt.toArray(r[1])}}}}function af(r,t,e,o){var i=e==="normal",n=i?r:r.ensureState(e);n.ignore=t;var a=o.get("smooth");a&&a===!0&&(a=.3),n.shape=n.shape||{},a>0&&(n.shape.smooth=a);var s=o.getModel("lineStyle").getLineStyle();i?r.useStyle(s):n.style=s}function Y8(r,t){var e=t.smooth,o=t.points;if(o)if(r.moveTo(o[0][0],o[0][1]),e>0&&o.length>=3){var i=Co(o[0],o[1]),n=Co(o[1],o[2]);if(!i||!n){r.lineTo(o[1][0],o[1][1]),r.lineTo(o[2][0],o[2][1]);return}var a=Math.min(i,n)*e,s=$s([],o[1],o[0],a/i),l=$s([],o[1],o[2],a/n),d=$s([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],d[0],d[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],o[2][0],o[2][1])}else for(var c=1;c0&&n&&S(-c/a,0,a);var x=r[0],m=r[a-1],f,v;y(),f<0&&b(-f,.8),v<0&&b(v,.8),y(),_(f,v,1),_(v,f,-1),y(),f<0&&A(-f),v<0&&A(v);function y(){f=x.rect[t]-o,v=i-m.rect[t]-m.rect[e]}function _(M,T,w){if(M<0){var C=Math.min(T,-M);if(C>0){S(C*w,0,a);var P=C+M;P<0&&b(-P*w,1)}else b(-M*w,1)}}function S(M,T,w){M!==0&&(d=!0);for(var C=T;C0)for(var P=0;P0;P--){var N=w[P-1]*O;S(-N,P,a)}}}function A(M){var T=M<0?-1:1;M=Math.abs(M);for(var w=Math.ceil(M/(a-1)),C=0;C0?S(w,0,C+1):S(-w,a-C-1,a),M-=w,M<=0)return}return d}function Q8(r,t,e,o){return _T(r,"x","width",t,e,o)}function ST(r,t,e,o){return _T(r,"y","height",t,e,o)}function bT(r){var t=[];r.sort(function(x,m){return m.priority-x.priority});var e=new ye(0,0,0,0);function o(x){if(!x.ignore){var m=x.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}x.ignore=!0}for(var i=0;i=0&&o.attr(n.oldLayoutSelect),Se(u,"emphasis")>=0&&o.attr(n.oldLayoutEmphasis)),$e(o,d,e,l)}else if(o.attr(d),!Ia(o).valueAnimation){var h=pe(o.style.opacity,1);o.style.opacity=0,Ze(o,{style:{opacity:h}},e,l)}if(n.oldLayout=d,o.states.select){var g=n.oldLayoutSelect={};oh(g,d,ih),oh(g,o.states.select,ih)}if(o.states.emphasis){var p=n.oldLayoutEmphasis={};oh(p,d,ih),oh(p,o.states.emphasis,ih)}Fb(o,l,c,e,e)}if(i&&!i.ignore&&!i.invisible){var n=q8(i),a=n.oldLayout,x={points:i.shape.points};a?(i.attr({shape:a}),$e(i,{shape:x},e)):(i.setShape(x),i.style.strokePercent=0,Ze(i,{style:{strokePercent:1}},e)),n.oldLayout=x}},r}();const t6=e6;var cf=Ce();function r6(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,o){var i=cf(e).labelManager;i||(i=cf(e).labelManager=new t6),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,o){var i=cf(e).labelManager;o.updatedSeries.forEach(function(n){i.addLabelsOfSeries(e.getViewOfSeriesModel(n))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}var uf=Math.sin,hf=Math.cos,AT=Math.PI,Bn=Math.PI*2,o6=180/AT,i6=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,o,i,n,a){this._add("C",t,e,o,i,n,a)},r.prototype.quadraticCurveTo=function(t,e,o,i){this._add("Q",t,e,o,i)},r.prototype.arc=function(t,e,o,i,n,a){this.ellipse(t,e,o,o,0,i,n,a)},r.prototype.ellipse=function(t,e,o,i,n,a,s,l){var d=s-a,c=!l,u=Math.abs(d),h=ni(u-Bn)||(c?d>=Bn:-d>=Bn),g=d>0?d%Bn:d%Bn+Bn,p=!1;h?p=!0:ni(u)?p=!1:p=g>=AT==!!c;var x=t+o*hf(a),m=e+i*uf(a);this._start&&this._add("M",x,m);var f=Math.round(n*o6);if(h){var v=1/this._p,y=(c?1:-1)*(Bn-v);this._add("A",o,i,f,1,+c,t+o*hf(a+y),e+i*uf(a+y)),v>.01&&this._add("A",o,i,f,0,+c,x,m)}else{var _=t+o*hf(s),S=e+i*uf(s);this._add("A",o,i,f,+p,+c,_,S)}},r.prototype.rect=function(t,e,o,i){this._add("M",t,e),this._add("l",o,0),this._add("l",0,i),this._add("l",-o,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,o,i,n,a,s,l,d){for(var c=[],u=this._p,h=1;h"}function g6(r){return""}function mf(r,t){t=t||{};var e=t.newline?` -`:"";function o(i){var n=i.children,a=i.tag,s=i.attrs,l=i.text;return h6(a,s)+(a!=="style"?It(l):l||"")+(n?""+e+Y(n,function(d){return o(d)}).join(e)+e:"")+g6(a)}return o(r)}function m6(r,t,e){e=e||{};var o=e.newline?` -`:"",i=" {"+o,n=o+"}",a=Y(Ae(r),function(l){return l+i+Y(Ae(r[l]),function(d){return d+":"+r[l][d]+";"}).join(o)+n}).join(o),s=Y(Ae(t),function(l){return"@keyframes "+l+i+Y(Ae(t[l]),function(d){return d+i+Y(Ae(t[l][d]),function(c){var u=t[l][d][c];return c==="d"&&(u='path("'+u+'")'),c+":"+u+";"}).join(o)+n}).join(o)+n}).join(o);return!a&&!s?"":[""].join(o)}function pf(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function IT(r,t,e,o){return pt("svg","root",{width:r,height:t,xmlns:wT,"xmlns:xlink":CT,version:"1.1",baseProfile:"full",viewBox:o?"0 0 "+r+" "+t:!1},e)}var p6=0;function ET(){return p6++}var $T={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Gn="transform-origin";function f6(r,t,e){var o=W({},r.shape);W(o,t),r.buildPath(e,o);var i=new TT;return i.reset(b_(r)),e.rebuildPath(i,1),i.generateStr(),i.getStr()}function x6(r,t){var e=t.originX,o=t.originY;(e||o)&&(r[Gn]=e+"px "+o+"px")}var v6={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function DT(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function y6(r,t,e){var o=r.shape.paths,i={},n,a;if(E(o,function(l){var d=pf(e.zrId);d.animation=!0,nh(l,{},d,!0);var c=d.cssAnims,u=d.cssNodes,h=Ae(c),g=h.length;if(g){a=h[g-1];var p=c[a];for(var x in p){var m=p[x];i[x]=i[x]||{d:""},i[x].d+=m.d||""}for(var f in u){var v=u[f].animation;v.indexOf(a)>=0&&(n=v)}}}),!!n){t.d=!1;var s=DT(i,e);return n.replace(a,s)}}function OT(r){return te(r)?$T[r]?"cubic-bezier("+$T[r]+")":im(r)?r:"":""}function nh(r,t,e,o){var i=r.animators,n=i.length,a=[];if(r instanceof Jc){var s=y6(r,t,e);if(s)a.push(s);else if(!n)return}else if(!n)return;for(var l={},d=0;d0}).length){var B=DT(A,e);return B+" "+v[0]+" both"}}for(var m in l){var s=x(l[m]);s&&a.push(s)}if(a.length){var f=e.zrId+"-cls-"+ET();e.cssNodes["."+f]={animation:a.join(",")},t.class=f}}function _6(r,t,e){if(!r.ignore)if(r.isSilent()){var o={"pointer-events":"none"};BT(o,t,e,!0)}else{var i=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},n=i.fill;if(!n){var a=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||a;l&&(n=xc(l))}var d=i.lineWidth;if(d){var c=!i.strokeNoScale&&r.transform?r.transform[0]:1;d=d/c}var o={cursor:"pointer"};n&&(o.fill=n),i.stroke&&(o.stroke=i.stroke),d&&(o["stroke-width"]=d),BT(o,t,e,!0)}}function BT(r,t,e,o){var i=JSON.stringify(r),n=e.cssStyleCache[i];n||(n=e.zrId+"-cls-"+ET(),e.cssStyleCache[i]=n,e.cssNodes["."+n+(o?":hover":"")]=r),t.class=t.class?t.class+" "+n:n}var zl=Math.round;function GT(r){return r&&te(r.src)}function NT(r){return r&&ae(r.toDataURL)}function ff(r,t,e,o){d6(function(i,n){var a=i==="fill"||i==="stroke";a&&S_(n)?XT(t,r,i,o):a&&um(n)?UT(e,r,i,o):a&&n==="none"?r[i]="transparent":r[i]=n},t,e,!1),C6(e,r,o)}function xf(r,t){var e=H_(t);e&&(e.each(function(o,i){o!=null&&(r[(PT+i).toLowerCase()]=o+"")}),t.isSilent()&&(r[PT+"silent"]="true"))}function kT(r){return ni(r[0]-1)&&ni(r[1])&&ni(r[2])&&ni(r[3]-1)}function S6(r){return ni(r[4])&&ni(r[5])}function vf(r,t,e){if(t&&!(S6(t)&&kT(t))){var o=e?10:1e4;r.transform=kT(t)?"translate("+zl(t[4]*o)/o+" "+zl(t[5]*o)/o+")":qO(t)}}function RT(r,t,e){for(var o=r.points,i=[],n=0;n"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Pt(h,m),Pt(g,m)}else if(h==null||g==null){var f=function(w,C){if(w){var P=w.elm,L=h||C.width,$=g||C.height;w.tag==="pattern"&&(d?($=1,L/=n.width):c&&(L=1,$/=n.height)),w.attrs.width=L,w.attrs.height=$,P&&(P.setAttribute("width",L),P.setAttribute("height",$))}},v=zm(p,null,r,function(w){l||f(b,w),f(u,w)});v&&v.width&&v.height&&(h=h||v.width,g=g||v.height)}u=pt("image","img",{href:p,width:h,height:g}),a.width=h,a.height=g}else i.svgElement&&(u=ce(i.svgElement),a.width=i.svgWidth,a.height=i.svgHeight);if(u){var y,_;l?y=_=1:d?(_=1,y=a.width/n.width):c?(y=1,_=a.height/n.height):a.patternUnits="userSpaceOnUse",y!=null&&!isNaN(y)&&(a.width=y),_!=null&&!isNaN(_)&&(a.height=_);var S=M_(i);S&&(a.patternTransform=S);var b=pt("pattern","",a,[u]),A=mf(b),M=o.patternCache,T=M[A];T||(T=o.zrId+"-p"+o.patternIdx++,M[A]=T,a.id=T,b=o.defs[T]=pt("pattern",T,a,[u])),t[e]=_c(T)}}function P6(r,t,e){var o=e.clipPathCache,i=e.defs,n=o[r.id];if(!n){n=e.zrId+"-c"+e.clipPathIdx++;var a={id:n};o[r.id]=n,i[n]=pt("clipPath",n,a,[VT(r,e)])}t["clip-path"]=_c(n)}function WT(r){return document.createTextNode(r)}function Nn(r,t,e){r.insertBefore(t,e)}function zT(r,t){r.removeChild(t)}function KT(r,t){r.appendChild(t)}function ZT(r){return r.parentNode}function YT(r){return r.nextSibling}function yf(r,t){r.textContent=t}var QT=58,L6=120,I6=pt("","");function _f(r){return r===void 0}function yo(r){return r!==void 0}function E6(r,t,e){for(var o={},i=t;i<=e;++i){var n=r[i].key;n!==void 0&&(o[n]=i)}return o}function Kl(r,t){var e=r.key===t.key,o=r.tag===t.tag;return o&&e}function Zl(r){var t,e=r.children,o=r.tag;if(yo(o)){var i=r.elm=LT(o);if(Sf(I6,r),K(e))for(t=0;tn?(p=e[l+1]==null?null:e[l+1].elm,JT(r,p,e,i,l)):ah(r,t,o,n))}function qa(r,t){var e=t.elm=r.elm,o=r.children,i=t.children;r!==t&&(Sf(r,t),_f(t.text)?yo(o)&&yo(i)?o!==i&&$6(e,o,i):yo(i)?(yo(r.text)&&yf(e,""),JT(e,null,i,0,i.length-1)):yo(o)?ah(e,o,0,o.length-1):yo(r.text)&&yf(e,""):r.text!==t.text&&(yo(o)&&ah(e,o,0,o.length-1),yf(e,t.text)))}function D6(r,t){if(Kl(r,t))qa(r,t);else{var e=r.elm,o=ZT(e);Zl(t),o!==null&&(Nn(o,t.elm,YT(e)),ah(o,[r],0,0))}return t}var O6=0,B6=function(){function r(t,e,o){if(this.type="svg",this.refreshHover=jT(),this.configLayer=jT(),this.storage=e,this._opts=o=W({},o),this.root=t,this._id="zr"+O6++,this._oldVNode=IT(o.width,o.height),t&&!o.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=LT("svg");Sf(null,this._oldVNode),i.appendChild(n),t.appendChild(i)}this.resize(o.width,o.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",D6(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return HT(t,pf(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),o=this._width,i=this._height,n=pf(this._id);n.animation=t.animation,n.willUpdate=t.willUpdate,n.compress=t.compress,n.emphasis=t.emphasis;var a=[],s=this._bgVNode=G6(o,i,this._backgroundColor,n);s&&a.push(s);var l=t.compress?null:this._mainVNode=pt("g","main",{},[]);this._paintList(e,n,l?l.children:a),l&&a.push(l);var d=Y(Ae(n.defs),function(h){return n.defs[h]});if(d.length&&a.push(pt("defs","defs",{},d)),t.animation){var c=m6(n.cssNodes,n.cssAnims,{newline:!0});if(c){var u=pt("style","stl",{},[],c);a.push(u)}}return IT(o,i,a,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},mf(this.renderToVNode({animation:pe(t.cssAnimation,!0),emphasis:pe(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:pe(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,o){for(var i=t.length,n=[],a=0,s,l,d=0,c=0;c=0&&!(h&&l&&h[x]===l[x]);x--);for(var m=p-1;m>x;m--)a--,s=n[a-1];for(var f=x+1;f=s)}}for(var u=this.__startIndex;u15)break}}$.prevElClipPaths&&f.restore()};if(v)if(v.length===0)M=m.__endIndex;else for(var w=g.dpr,C=0;C0&&t>i[0]){for(l=0;lt);l++);s=o[i[l]]}if(i.splice(l+1,0,t),o[t]=e,!e.virtual)if(s){var d=s.dom;d.nextSibling?a.insertBefore(e.dom,d.nextSibling):a.appendChild(e.dom)}else a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var o=this._zlevelList,i=0;i0?sh:0),this._needsManuallyCompositing),c.__builtin__||jd("ZLevel "+d+" has been used by unkown layer "+c.id),c!==n&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,e(l),n=c),i.__dirty&ir&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(u,h){!u.__used&&u.getElementCount()>0&&(u.__dirty=!0,u.__startIndex=u.__endIndex=u.__drawIndex=0),u.__dirty&&u.__drawIndex<0&&(u.__drawIndex=u.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,E(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var o=this._layerConfig;o[t]?xe(o[t],e,!0):o[t]=e;for(var i=0;i-1&&(d.style.stroke=d.style.fill,d.style.fill="#fff",d.style.lineWidth=2),o},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(ze);const K6=z6;function es(r,t){var e=r.mapDimensionsAll("defaultedLabel"),o=e.length;if(o===1){var i=Fa(r,t,e[0]);return i!=null?i+"":null}else if(o){for(var n=[],a=0;a=0&&o.push(t[n])}return o.join(" ")}var Z6=function(r){V(t,r);function t(e,o,i,n){var a=r.call(this)||this;return a.updateData(e,o,i,n),a}return t.prototype._createSymbol=function(e,o,i,n,a){this.removeAll();var s=tt(e,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),s.drift=Y6,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Go(this.childAt(0))},t.prototype.downplay=function(){No(this.childAt(0))},t.prototype.setZ=function(e,o){var i=this.childAt(0);i.zlevel=e,i.z=o},t.prototype.setDraggable=function(e,o){var i=this.childAt(0);i.draggable=e,i.cursor=!o&&e?"move":i.cursor},t.prototype.updateData=function(e,o,i,n){this.silent=!1;var a=e.getItemVisual(o,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,o),d=a!==this._symbolType,c=n&&n.disableAnimation;if(d){var u=e.getItemVisual(o,"symbolKeepAspect");this._createSymbol(a,e,o,l,u)}else{var h=this.childAt(0);h.silent=!1;var g={scaleX:l[0]/2,scaleY:l[1]/2};c?h.attr(g):$e(h,g,s,o),Xr(h)}if(this._updateCommon(e,o,l,i,n),d){var h=this.childAt(0);if(!c){var g={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Ze(h,g,s,o)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,o,i,n,a){var s=this.childAt(0),l=e.hostModel,d,c,u,h,g,p,x,m,f;if(n&&(d=n.emphasisItemStyle,c=n.blurItemStyle,u=n.selectItemStyle,h=n.focus,g=n.blurScope,x=n.labelStatesModels,m=n.hoverScale,f=n.cursorStyle,p=n.emphasisDisabled),!n||e.hasItemOption){var v=n&&n.itemModel?n.itemModel:e.getItemModel(o),y=v.getModel("emphasis");d=y.getModel("itemStyle").getItemStyle(),u=v.getModel(["select","itemStyle"]).getItemStyle(),c=v.getModel(["blur","itemStyle"]).getItemStyle(),h=y.get("focus"),g=y.get("blurScope"),p=y.get("disabled"),x=gt(v),m=y.getShallow("scale"),f=v.getShallow("cursor")}var _=e.getItemVisual(o,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var S=Cn(e.getItemVisual(o,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),f&&s.attr("cursor",f);var b=e.getItemVisual(o,"style"),A=b.fill;if(s instanceof yt){var M=s.style;s.useStyle(W({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},b))}else s.__isEmptyBrush?s.useStyle(W({},b)):s.useStyle(b),s.style.decal=null,s.setColor(A,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var T=e.getItemVisual(o,"liftZ"),w=this._z2;T!=null?w==null&&(this._z2=s.z2,s.z2+=T):w!=null&&(s.z2=w,this._z2=null);var C=a&&a.useNameLabel;At(s,x,{labelFetcher:l,labelDataIndex:o,defaultText:P,inheritColor:A,defaultOpacity:b.opacity});function P(O){return C?e.getName(O):es(e,O)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");L.style=d,s.ensureState("select").style=u,s.ensureState("blur").style=c;var $=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;L.scaleX=this._sizeX*$,L.scaleY=this._sizeY*$,this.setSymbolScale(1),Je(this,h,g,p)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,o,i){var n=this.childAt(0),a=he(this).dataIndex,s=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var l=n.getTextContent();l&&ui(l,{style:{opacity:0}},o,{dataIndex:a,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();ui(n,{style:{opacity:0},scaleX:0,scaleY:0},o,{dataIndex:a,cb:e,removeOpt:s})},t.getSymbolSize=function(e,o){return Wa(e.getItemVisual(o,"symbolSize"))},t}(ue);function Y6(r,t){this.parent.drift(r,t)}const Yl=Z6;function Mf(r,t,e,o){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(o.isIgnore&&o.isIgnore(e))&&!(o.clipShape&&!o.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function rw(r){return r!=null&&!de(r)&&(r={isIgnore:r}),r||{}}function ow(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:gt(t),cursorStyle:t.get("cursor")}}var Q6=function(){function r(t){this.group=new ue,this._SymbolCtor=t||Yl}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=rw(e);var o=this.group,i=t.hostModel,n=this._data,a=this._SymbolCtor,s=e.disableAnimation,l=ow(t),d={disableAnimation:s},c=e.getSymbolPoint||function(u){return t.getItemLayout(u)};n||o.removeAll(),t.diff(n).add(function(u){var h=c(u);if(Mf(t,h,u,e)){var g=new a(t,u,l,d);g.setPosition(h),t.setItemGraphicEl(u,g),o.add(g)}}).update(function(u,h){var g=n.getItemGraphicEl(h),p=c(u);if(!Mf(t,p,u,e)){o.remove(g);return}var x=t.getItemVisual(u,"symbol")||"circle",m=g&&g.getSymbolType&&g.getSymbolType();if(!g||m&&m!==x)o.remove(g),g=new a(t,u,l,d),g.setPosition(p);else{g.updateData(t,u,l,d);var f={x:p[0],y:p[1]};s?g.attr(f):$e(g,f,i)}o.add(g),t.setItemGraphicEl(u,g)}).remove(function(u){var h=n.getItemGraphicEl(u);h&&h.fadeOut(function(){o.remove(h)},i)}).execute(),this._getSymbolPoint=c,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(o,i){var n=t._getSymbolPoint(i);o.setPosition(n),o.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=ow(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,o){this._progressiveEls=[],o=rw(o);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n0?e=o[0]:o[1]<0&&(e=o[1]),e}function nw(r,t,e,o){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),o)),isNaN(i)&&(i=r.valueStart);var n=r.baseDataOffset,a=[];return a[n]=e.get(r.baseDim,o),a[1-n]=i,t.dataToPoint(a)}function j6(r,t){var e=[];return t.diff(r).add(function(o){e.push({cmd:"+",idx:o})}).update(function(o,i){e.push({cmd:"=",idx:i,idx1:o})}).remove(function(o){e.push({cmd:"-",idx:o})}).execute(),e}function q6(r,t,e,o,i,n,a,s){for(var l=j6(r,t),d=[],c=[],u=[],h=[],g=[],p=[],x=[],m=iw(i,t,a),f=r.getLayout("points")||[],v=t.getLayout("points")||[],y=0;y=i||x<0)break;if(Rn(f,v)){if(l){x+=n;continue}break}if(x===e)r[n>0?"moveTo":"lineTo"](f,v),u=f,h=v;else{var y=f-d,_=v-c;if(y*y+_*_<.5){x+=n;continue}if(a>0){for(var S=x+n,b=t[S*2],A=t[S*2+1];b===f&&A===v&&m=o||Rn(b,A))g=f,p=v;else{w=b-d,C=A-c;var $=f-d,O=b-f,N=v-c,R=A-v,I=void 0,D=void 0;if(s==="x"){I=Math.abs($),D=Math.abs(O);var G=w>0?1:-1;g=f-G*I*a,p=v,P=f+G*D*a,L=v}else if(s==="y"){I=Math.abs(N),D=Math.abs(R);var k=C>0?1:-1;g=f,p=v-k*I*a,P=f,L=v+k*D*a}else I=Math.sqrt($*$+N*N),D=Math.sqrt(O*O+R*R),T=D/(D+I),g=f-w*a*(1-T),p=v-C*a*(1-T),P=f+w*a*T,L=v+C*a*T,P=Mi(P,Ai(b,f)),L=Mi(L,Ai(A,v)),P=Ai(P,Mi(b,f)),L=Ai(L,Mi(A,v)),w=P-f,C=L-v,g=f-w*I/D,p=v-C*I/D,g=Mi(g,Ai(d,f)),p=Mi(p,Ai(c,v)),g=Ai(g,Mi(d,f)),p=Ai(p,Mi(c,v)),w=f-g,C=v-p,P=f+w*D/I,L=v+C*D/I}r.bezierCurveTo(u,h,g,p,f,v),u=P,h=L}else r.lineTo(f,v)}d=f,c=v,x+=n}return m}var aw=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),e9=function(r){V(t,r);function t(e){var o=r.call(this,e)||this;return o.type="ec-polyline",o}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new aw},t.prototype.buildPath=function(e,o){var i=o.points,n=0,a=i.length/2;if(o.connectNulls){for(;a>0&&Rn(i[a*2-2],i[a*2-1]);a--);for(;n=0){var _=d?(p-l)*y+l:(g-s)*y+s;return d?[e,_]:[_,e]}s=g,l=p;break;case a.C:g=n[u++],p=n[u++],x=n[u++],m=n[u++],f=n[u++],v=n[u++];var S=d?mc(s,g,x,f,e,c):mc(l,p,m,v,e,c);if(S>0)for(var b=0;b=0){var _=d?ut(l,p,m,v,A):ut(s,g,x,f,A);return d?[e,_]:[_,e]}}s=f,l=v;break}}},t}(Me),t9=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(aw),sw=function(r){V(t,r);function t(e){var o=r.call(this,e)||this;return o.type="ec-polygon",o}return t.prototype.getDefaultShape=function(){return new t9},t.prototype.buildPath=function(e,o){var i=o.points,n=o.stackedOnPoints,a=0,s=i.length/2,l=o.smoothMonotone;if(o.connectNulls){for(;s>0&&Rn(i[s*2-2],i[s*2-1]);s--);for(;at){n?e.push(a(n,l,t)):i&&e.push(a(i,l,0),a(i,l,t));break}else i&&(e.push(a(i,l,0)),i=null),e.push(l),n=l}return e}function i9(r,t,e){var o=r.getVisual("visualMeta");if(!(!o||!o.length||!r.count())&&t.type==="cartesian2d"){for(var i,n,a=o.length-1;a>=0;a--){var s=r.getDimensionInfo(o[a].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){n=o[a];break}}if(n){var l=t.getAxis(i),d=Y(n.stops,function(y){return{coord:l.toGlobalCoord(l.dataToCoord(y.value)),color:y.color}}),c=d.length,u=n.outerColors.slice();c&&d[0].coord>d[c-1].coord&&(d.reverse(),u.reverse());var h=o9(d,i==="x"?e.getWidth():e.getHeight()),g=h.length;if(!g&&c)return d[0].coord<0?u[1]?u[1]:d[c-1].color:u[0]?u[0]:d[0].color;var p=10,x=h[0].coord-p,m=h[g-1].coord+p,f=m-x;if(f<.001)return"transparent";E(h,function(y){y.offset=(y.coord-x)/f}),h.push({offset:g?h[g-1].offset:.5,color:u[1]||"transparent"}),h.unshift({offset:g?h[0].offset:.5,color:u[0]||"transparent"});var v=new Aa(0,0,0,0,h,!0);return v[i]=x,v[i+"2"]=m,v}}}function n9(r,t,e){var o=r.get("showAllSymbol"),i=o==="auto";if(!(o&&!i)){var n=e.getAxesByScale("ordinal")[0];if(n&&!(i&&a9(n,t))){var a=t.mapDimension(n.dim),s={};return E(n.getViewLabels(),function(l){var d=n.scale.getRawOrdinalNumber(l.tickValue);s[d]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function a9(r,t){var e=r.getExtent(),o=Math.abs(e[1]-e[0])/r.scale.count();isNaN(o)&&(o=0);for(var i=t.count(),n=Math.max(1,Math.round(i/5)),a=0;ao)return!1;return!0}function s9(r,t){return isNaN(r)||isNaN(t)}function l9(r){for(var t=r.length/2;t>0&&s9(r[t*2-2],r[t*2-1]);t--);return t-1}function mw(r,t){return[r[t*2],r[t*2+1]]}function d9(r,t,e){for(var o=r.length/2,i=e==="x"?0:1,n,a,s=0,l=-1,d=0;d=t||n>=t&&a<=t){l=d;break}s=d,n=a}return{range:[s,l],t:(t-n)/(a-n)}}function pw(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var G=x.getState("emphasis").style;G.lineWidth=+x.style.lineWidth+1}he(x).seriesIndex=e.seriesIndex,Je(x,R,I,D);var k=gw(e.get("smooth")),H=e.get("smoothMonotone");if(x.setShape({smooth:k,smoothMonotone:H,connectNulls:M}),m){var z=l.getCalculationInfo("stackedOnSeries"),Q=0;m.useStyle(le(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),z&&(Q=gw(z.get("smooth"))),m.setShape({smooth:k,stackedOnSmooth:Q,smoothMonotone:H,connectNulls:M}),Mt(m,e,"areaStyle"),he(m).seriesIndex=e.seriesIndex,Je(m,R,I,D)}var q=function(se){n._changePolyState(se)};l.eachItemGraphicEl(function(se){se&&(se.onHoverStateChange=q)}),this._polyline.onHoverStateChange=q,this._data=l,this._coordSys=a,this._stackedOnPoints=b,this._points=u,this._step=C,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,x),m&&this.packEventData(e,m))},t.prototype.packEventData=function(e,o){he(o).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,o,i,n){var a=e.getData(),s=qi(a,n);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),d=a.getItemGraphicEl(s);if(!d){var c=l[s*2],u=l[s*2+1];if(isNaN(c)||isNaN(u)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,u))return;var h=e.get("zlevel")||0,g=e.get("z")||0;d=new Yl(a,s),d.x=c,d.y=u,d.setZ(h,g);var p=d.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=g,p.z2=this._polyline.z2+1),d.__temp=!0,a.setItemGraphicEl(s,d),d.stopSymbolAnimation(!0),this.group.add(d)}d.highlight()}else Fe.prototype.highlight.call(this,e,o,i,n)},t.prototype.downplay=function(e,o,i,n){var a=e.getData(),s=qi(a,n);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Fe.prototype.downplay.call(this,e,o,i,n)},t.prototype._changePolyState=function(e){var o=this._polygon;Wc(this._polyline,e),o&&Wc(o,e)},t.prototype._newPolyline=function(e){var o=this._polyline;return o&&this._lineGroup.remove(o),o=new e9({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(o),this._polyline=o,o},t.prototype._newPolygon=function(e,o){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new sw({shape:{points:e,stackedOnPoints:o},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,o,i){var n,a,s=o.getBaseAxis(),l=s.inverse;o.type==="cartesian2d"?(n=s.isHorizontal(),a=!1):o.type==="polar"&&(n=s.dim==="angle",a=!0);var d=e.hostModel,c=d.get("animationDuration");ae(c)&&(c=c(null));var u=d.get("animationDelay")||0,h=ae(u)?u(null):u;e.eachItemGraphicEl(function(g,p){var x=g;if(x){var m=[g.x,g.y],f=void 0,v=void 0,y=void 0;if(i)if(a){var _=i,S=o.pointToCoord(m);n?(f=_.startAngle,v=_.endAngle,y=-S[1]/180*Math.PI):(f=_.r0,v=_.r,y=S[0])}else{var b=i;n?(f=b.x,v=b.x+b.width,y=g.x):(f=b.y+b.height,v=b.y,y=g.y)}var A=v===f?0:(y-f)/(v-f);l&&(A=1-A);var M=ae(u)?u(p):c*A+h,T=x.getSymbolPath(),w=T.getTextContent();x.attr({scaleX:0,scaleY:0}),x.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:M}),T.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,o,i){var n=e.getModel("endLabel");if(pw(e)){var a=e.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var d=this._endLabel;d||(d=this._endLabel=new Le({z2:200}),d.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=l9(l);c>=0&&(At(s,gt(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:c,defaultText:function(u,h,g){return g!=null?tw(a,g):es(a,u)},enableTextSetter:!0},c9(n,o)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,o,i,n,a,s,l){var d=this._endLabel,c=this._polyline;if(d){e<1&&n.originalX==null&&(n.originalX=d.x,n.originalY=d.y);var u=i.getLayout("points"),h=i.hostModel,g=h.get("connectNulls"),p=s.get("precision"),x=s.get("distance")||0,m=l.getBaseAxis(),f=m.isHorizontal(),v=m.inverse,y=o.shape,_=v?f?y.x:y.y+y.height:f?y.x+y.width:y.y,S=(f?x:0)*(v?-1:1),b=(f?0:-x)*(v?-1:1),A=f?"x":"y",M=d9(u,_,A),T=M.range,w=T[1]-T[0],C=void 0;if(w>=1){if(w>1&&!g){var P=mw(u,T[0]);d.attr({x:P[0]+S,y:P[1]+b}),a&&(C=h.getRawValue(T[0]))}else{var P=c.getPointOn(_,A);P&&d.attr({x:P[0]+S,y:P[1]+b});var L=h.getRawValue(T[0]),$=h.getRawValue(T[1]);a&&(C=nS(i,p,L,$,M.t))}n.lastFrameIndex=T[0]}else{var O=e===1||n.lastFrameIndex>0?T[0]:0,P=mw(u,O);a&&(C=h.getRawValue(O)),d.attr({x:P[0]+S,y:P[1]+b})}if(a){var N=Ia(d);typeof N.setLabelText=="function"&&N.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,o,i,n,a,s,l){var d=this._polyline,c=this._polygon,u=e.hostModel,h=q6(this._data,e,this._stackedOnPoints,o,this._coordSys,i,this._valueOrigin),g=h.current,p=h.stackedOnCurrent,x=h.next,m=h.stackedOnNext;if(a&&(g=Ti(h.current,i,a,l),p=Ti(h.stackedOnCurrent,i,a,l),x=Ti(h.next,i,a,l),m=Ti(h.stackedOnNext,i,a,l)),hw(g,x)>3e3||c&&hw(p,m)>3e3){d.stopAnimation(),d.setShape({points:x}),c&&(c.stopAnimation(),c.setShape({points:x,stackedOnPoints:m}));return}d.shape.__points=h.current,d.shape.points=g;var f={shape:{points:x}};h.current!==g&&(f.shape.__points=h.next),d.stopAnimation(),$e(d,f,u),c&&(c.setShape({points:g,stackedOnPoints:p}),c.stopAnimation(),$e(c,{shape:{stackedOnPoints:m}},u),d.shape.points!==c.shape.points&&(c.shape.points=d.shape.points));for(var v=[],y=h.status,_=0;_t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;et&&(t=n,e=i)}return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},m9=function(r){return Math.round(r.length/2)};function fw(r){return{seriesType:r,reset:function(t,e,o){var i=t.getData(),n=t.get("sampling"),a=t.coordinateSystem,s=i.count();if(s>10&&a.type==="cartesian2d"&&n){var l=a.getBaseAxis(),d=a.getOtherAxis(l),c=l.getExtent(),u=o.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(u||1),g=Math.round(s/h);if(isFinite(g)&&g>1){n==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(d.dim),1/g));var p=void 0;te(n)?p=g9[n]:ae(n)&&(p=n),p&&t.setData(i.downSample(i.mapDimension(d.dim),1/g,p,m9))}}}}}function p9(r){r.registerChartView(h9),r.registerSeriesModel(K6),r.registerLayout(jl("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),o=t.getModel("lineStyle").getLineStyle();o&&!o.stroke&&(o.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",o)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,fw("line"))}var xw=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,o){return po(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,o,i){var n=this.coordinateSystem;if(n&&n.clampData){var a=n.clampData(e),s=n.dataToPoint(a);if(i)E(n.getAxes(),function(h,g){if(h.type==="category"&&o!=null){var p=h.getTicksCoords(),x=h.getTickModel().get("alignWithLabel"),m=a[g],f=o[g]==="x1"||o[g]==="y1";if(f&&!x&&(m+=1),p.length<2)return;if(p.length===2){s[g]=h.toGlobalCoord(h.getExtent()[f?1:0]);return}for(var v=void 0,y=void 0,_=1,S=0;Sm){y=(b+v)/2;break}S===1&&(_=A-p[0].tickValue)}y==null&&(v?v&&(y=p[p.length-1].coord):y=p[0].coord),s[g]=h.toGlobalCoord(y)}});else{var l=this.getData(),d=l.getLayout("offset"),c=l.getLayout("size"),u=n.getBaseAxis().isHorizontal()?0:1;s[u]+=d+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(ze);ze.registerClass(xw);const lh=xw;var f9=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return po(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),o=this.get("largeThreshold");return o>e&&(e=o),e},t.prototype.brushSelector=function(e,o,i){return i.rect(o.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=mi(lh.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(lh);const x9=f9;var v9=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),y9=function(r){V(t,r);function t(e){var o=r.call(this,e)||this;return o.type="sausage",o}return t.prototype.getDefaultShape=function(){return new v9},t.prototype.buildPath=function(e,o){var i=o.cx,n=o.cy,a=Math.max(o.r0||0,0),s=Math.max(o.r,0),l=(s-a)*.5,d=a+l,c=o.startAngle,u=o.endAngle,h=o.clockwise,g=Math.PI*2,p=h?u-cMath.PI/2&&cs)return!0;s=u}return!1},t.prototype._isOrderDifferentInView=function(e,o){for(var i=o.scale,n=i.getExtent(),a=Math.max(0,n[0]),s=Math.min(n[1],i.getOrdinalMeta().categories.length-1);a<=s;++a)if(e.ordinalNumbers[a]!==i.getRawOrdinalNumber(a))return!0},t.prototype._updateSortWithinSameData=function(e,o,i,n){if(this._isOrderChangedWithinSameData(e,o,i)){var a=this._dataSort(e,i,o);this._isOrderDifferentInView(a,i)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:a}))}},t.prototype._dispatchInitSort=function(e,o,i){var n=o.baseAxis,a=this._dataSort(e,n,function(s){return e.get(e.mapDimension(o.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:a})},t.prototype.remove=function(e,o){this._clear(this._model),this._removeOnRenderedListener(o)},t.prototype.dispose=function(e,o){this._removeOnRenderedListener(o)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var o=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(n){ml(n,e,he(n).dataIndex)})):o.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Fe),vw={cartesian2d:function(r,t){var e=t.width<0?-1:1,o=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),o<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,n=r.y+r.height,a=wf(t.x,r.x),s=Cf(t.x+t.width,i),l=wf(t.y,r.y),d=Cf(t.y+t.height,n),c=si?s:a,t.y=u&&l>n?d:l,t.width=c?0:s-a,t.height=u?0:d-l,e<0&&(t.x+=t.width,t.width=-t.width),o<0&&(t.y+=t.height,t.height=-t.height),c||u},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var o=t.r;t.r=t.r0,t.r0=o}var i=Cf(t.r,r.r),n=wf(t.r0,r.r0);t.r=i,t.r0=n;var a=i-n<0;if(e<0){var o=t.r;t.r=t.r0,t.r0=o}return a}},yw={cartesian2d:function(r,t,e,o,i,n,a,s,l){var d=new Pe({shape:W({},o),z2:1});if(d.__dataIndex=e,d.name="item",n){var c=d.shape,u=i?"height":"width";c[u]=0}return d},polar:function(r,t,e,o,i,n,a,s,l){var d=!i&&l?dh:Vt,c=new d({shape:o,z2:1});c.name="item";var u=Mw(i);if(c.calculateTextPosition=_9(u,{isRoundCap:d===dh}),n){var h=c.shape,g=i?"r":"endAngle",p={};h[g]=i?o.r0:o.startAngle,p[g]=o[g],(s?$e:Ze)(c,{shape:p},n)}return c}};function A9(r,t){var e=r.get("realtimeSort",!0),o=t.getBaseAxis();if(e&&o.type==="category"&&t.type==="cartesian2d")return{baseAxis:o,otherAxis:t.getOtherAxis(o)}}function _w(r,t,e,o,i,n,a,s){var l,d;n?(d={x:o.x,width:o.width},l={y:o.y,height:o.height}):(d={y:o.y,height:o.height},l={x:o.x,width:o.width}),s||(a?$e:Ze)(e,{shape:l},t,i,null);var c=t?r.baseAxis.model:null;(a?$e:Ze)(e,{shape:d},c,i)}function Sw(r,t){for(var e=0;e0?1:-1,a=o.height>0?1:-1;return{x:o.x+n*i/2,y:o.y+a*i/2,width:o.width-n*i,height:o.height-a*i}},polar:function(r,t,e){var o=r.getItemLayout(t);return{cx:o.cx,cy:o.cy,r0:o.r0,r:o.r,startAngle:o.startAngle,endAngle:o.endAngle,clockwise:o.clockwise}}};function C9(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Mw(r){return function(t){var e=t?"Arc":"Angle";return function(o){switch(o){case"start":case"insideStart":case"end":case"insideEnd":return o+e;default:return o}}}(r)}function Aw(r,t,e,o,i,n,a,s){var l=t.getItemVisual(e,"style");if(s){if(!n.get("roundCap")){var d=r.shape,c=Vn(o.getModel("itemStyle"),d,!0);W(d,c),r.setShape(d)}}else{var u=o.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=o.getShallow("cursor");h&&r.attr("cursor",h);var g=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=gt(o);At(r,p,{labelFetcher:n,labelDataIndex:e,defaultText:es(n.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:g});var x=r.getTextContent();if(s&&x){var m=o.get(["label","position"]);r.textConfig.inside=m==="middle"?!0:null,S9(r,m==="outside"?g:m,Mw(a),o.get(["label","rotate"]))}Rb(x,p,n.getRawValue(e),function(v){return tw(t,v)});var f=o.getModel(["emphasis"]);Je(r,f.get("focus"),f.get("blurScope"),f.get("disabled")),Mt(r,o),C9(i)&&(r.style.fill="none",r.style.stroke="none",E(r.states,function(v){v.style&&(v.style.fill=v.style.stroke="none")}))}function P9(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var o=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),n=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(o,i,n)}var L9=function(){function r(){}return r}(),Tw=function(r){V(t,r);function t(e){var o=r.call(this,e)||this;return o.type="largeBar",o}return t.prototype.getDefaultShape=function(){return new L9},t.prototype.buildPath=function(e,o){for(var i=o.points,n=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],d=this.barWidth,c=0;c=0?e:null},30,!1);function I9(r,t,e){for(var o=r.baseDimIdx,i=1-o,n=r.shape.points,a=r.largeDataIndices,s=[],l=[],d=r.barWidth,c=0,u=n.length/3;c=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return a[c]}return-1}function Pw(r,t,e){if(Fn(e,"cartesian2d")){var o=t,i=e.getArea();return{x:r?o.x:i.x,y:r?i.y:o.y,width:r?o.width:i.width,height:r?i.height:o.height}}else{var i=e.getArea(),n=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:n.r0,r:r?i.r:n.r,startAngle:r?n.startAngle:0,endAngle:r?n.endAngle:Math.PI*2}}}function E9(r,t,e){var o=r.type==="polar"?Vt:Pe;return new o({shape:Pw(t,e,r),silent:!0,z2:0})}const $9=M9;function D9(r){r.registerChartView($9),r.registerSeriesModel(x9),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,me(HA,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,XA("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,fw("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var o=t.componentType||"series";e.eachComponent({mainType:o,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var Lw=Math.PI*2,gh=Math.PI/180;function Iw(r,t){return it(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Ew(r,t){var e=Iw(r,t),o=r.get("center"),i=r.get("radius");K(i)||(i=[0,i]);var n=ee(e.width,t.getWidth()),a=ee(e.height,t.getHeight()),s=Math.min(n,a),l=ee(i[0],s/2),d=ee(i[1],s/2),c,u,h=r.coordinateSystem;if(h){var g=h.dataToPoint(o);c=g[0]||0,u=g[1]||0}else K(o)||(o=[o,o]),c=ee(o[0],n)+e.x,u=ee(o[1],a)+e.y;return{cx:c,cy:u,r0:l,r:d}}function O9(r,t,e){t.eachSeriesByType(r,function(o){var i=o.getData(),n=i.mapDimension("value"),a=Iw(o,e),s=Ew(o,e),l=s.cx,d=s.cy,c=s.r,u=s.r0,h=-o.get("startAngle")*gh,g=o.get("endAngle"),p=o.get("padAngle")*gh;g=g==="auto"?h-Lw:-g*gh;var x=o.get("minAngle")*gh,m=x+p,f=0;i.each(n,function(R){!isNaN(R)&&f++});var v=i.getSum(n),y=Math.PI/(v||f)*2,_=o.get("clockwise"),S=o.get("roseType"),b=o.get("stillShowZeroSum"),A=i.getDataExtent(n);A[0]=0;var M=_?1:-1,T=[h,g],w=M*p/2;np(T,!_),h=T[0],g=T[1];var C=$w(o);C.startAngle=h,C.endAngle=g,C.clockwise=_;var P=Math.abs(g-h),L=P,$=0,O=h;if(i.setLayout({viewRect:a,r:c}),i.each(n,function(R,I){var D;if(isNaN(R)){i.setItemLayout(I,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:l,cy:d,r0:u,r:S?NaN:c});return}S!=="area"?D=v===0&&b?y:R*y:D=P/f,DD?(k=O+M*D/2,H=k):(k=O+w,H=G-w),i.setItemLayout(I,{angle:D,startAngle:k,endAngle:H,clockwise:_,cx:l,cy:d,r0:u,r:S?Ne(R,A,[u,c]):c}),O=G}),Le?f:m,S=Math.abs(y.label.y-e);if(S>=_.maxY){var b=y.label.x-t-y.len2*i,A=o+y.len,M=Math.abs(b)r.unconstrainedWidth?null:g:null;o.setStyle("width",p)}var x=o.getBoundingRect();n.width=x.width;var m=(o.style.margin||0)+2.1;n.height=x.height+m,n.y-=(n.height-u)/2}}}function Pf(r){return r.position==="center"}function N9(r){var t=r.getData(),e=[],o,i,n=!1,a=(r.get("minShowLabelAngle")||0)*B9,s=t.getLayout("viewRect"),l=t.getLayout("r"),d=s.width,c=s.x,u=s.y,h=s.height;function g(b){b.ignore=!0}function p(b){if(!b.ignore)return!0;for(var A in b.states)if(b.states[A].ignore===!1)return!0;return!1}t.each(function(b){var A=t.getItemGraphicEl(b),M=A.shape,T=A.getTextContent(),w=A.getTextGuideLine(),C=t.getItemModel(b),P=C.getModel("label"),L=P.get("position")||C.get(["emphasis","label","position"]),$=P.get("distanceToLabelLine"),O=P.get("alignTo"),N=ee(P.get("edgeDistance"),d),R=P.get("bleedMargin"),I=C.getModel("labelLine"),D=I.get("length");D=ee(D,d);var G=I.get("length2");if(G=ee(G,d),Math.abs(M.endAngle-M.startAngle)0?"right":"left":H>0?"left":"right"}var Oe=Math.PI,Ve=0,_e=P.get("rotate");if(Ee(_e))Ve=_e*(Oe/180);else if(L==="center")Ve=0;else if(_e==="radial"||_e===!0){var Zt=H<0?-k+Oe:-k;Ve=Zt}else if(_e==="tangential"&&L!=="outside"&&L!=="outer"){var _t=Math.atan2(H,z);_t<0&&(_t=Oe*2+_t);var Bi=z>0;Bi&&(_t=Oe+_t),Ve=_t-Oe}if(n=!!Ve,T.x=Q,T.y=q,T.rotation=Ve,T.setStyle({verticalAlign:"middle"}),F){T.setStyle({align:B});var Ao=T.states.select;Ao&&(Ao.x+=T.x,Ao.y+=T.y)}else{var To=T.getBoundingRect().clone();To.applyTransform(T.getComputedTransform());var Yt=(T.style.margin||0)+2.1;To.y-=Yt/2,To.height+=Yt,e.push({label:T,labelLine:w,position:L,len:D,len2:G,minTurnAngle:I.get("minTurnAngle"),maxSurfaceAngle:I.get("maxSurfaceAngle"),surfaceNormal:new ve(H,z),linePoints:se,textAlign:B,labelDistance:$,labelAlignTo:O,edgeDistance:N,bleedMargin:R,rect:To,unconstrainedWidth:To.width,labelStyleWidth:T.style.width})}A.setTextConfig({inside:F})}}),!n&&r.get("avoidLabelOverlap")&&G9(e,o,i,l,d,h,c,u);for(var x=0;x0){for(var c=a.getItemLayout(0),u=1;isNaN(c&&c.startAngle)&&u=n.r0}},t.type="pie",t}(Fe);const F9=R9;function ts(r,t,e){t=K(t)&&{coordDimensions:t}||W({encodeDefine:r.getEncode()},t);var o=r.getSource(),i=Ya(o,t).dimensions,n=new Bt(i,r);return n.initData(o,e),n}var V9=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var o=this._getDataWithEncodedVisual();return o.getItemVisual(t,e)},r}();const ed=V9;var H9=Ce(),X9=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new ed(re(this.getData,this),re(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ts(this,{coordDimensions:["value"],encodeDefaulter:me(Zp,this)})},t.prototype.getDataParams=function(e){var o=this.getData(),i=H9(o),n=i.seats;if(!n){var a=[];o.each(o.mapDimension("value"),function(l){a.push(l)}),n=i.seats=K_(a,o.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=n[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){ji(e,"labelLine",["show"]);var o=e.labelLine,i=e.emphasis.labelLine;o.show=o.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(ze);const U9=X9;function W9(r){return{seriesType:r,reset:function(t,e){var o=t.getData();o.filterSelf(function(i){var n=o.mapDimension("value"),a=o.get(n,i);return!(Ee(a)&&!isNaN(a)&&a<0)})}}}function z9(r){r.registerChartView(F9),r.registerSeriesModel(U9),I2("pie",r.registerAction),r.registerLayout(me(O9,"pie")),r.registerProcessor(ql("pie")),r.registerProcessor(W9("pie"))}var K9=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,o){return po(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,o,i){return i.point(o.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(ze);const Z9=K9;var Bw=4,Y9=function(){function r(){}return r}(),Q9=function(r){V(t,r);function t(e){var o=r.call(this,e)||this;return o._off=0,o.hoverDataIdx=-1,o}return t.prototype.getDefaultShape=function(){return new Y9},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,o){var i=o.points,n=o.size,a=this.symbolProxy,s=a.shape,l=e.getContext?e.getContext():e,d=l&&n[0]=0;d--){var c=d*2,u=n[c]-s/2,h=n[c+1]-l/2;if(e>=u&&o>=h&&e<=u+s&&o<=h+l)return d}return-1},t.prototype.contain=function(e,o){var i=this.transformCoordToLocal(e,o),n=this.getBoundingRect();if(e=i[0],o=i[1],n.contain(e,o)){var a=this.hoverDataIdx=this.findDataIndex(e,o);return a>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var o=this.shape,i=o.points,n=o.size,a=n[0],s=n[1],l=1/0,d=1/0,c=-1/0,u=-1/0,h=0;h=0&&(d.dataIndex=u+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const j9=J9;var q9=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,o,i){var n=e.getData(),a=this._updateSymbolDraw(n,e);a.updateData(n,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,o,i){var n=e.getData(),a=this._updateSymbolDraw(n,e);a.incrementalPrepareUpdate(n),this._finished=!1},t.prototype.incrementalRender=function(e,o,i){this._symbolDraw.incrementalUpdate(e,o.getData(),{clipShape:this._getClipShape(o)}),this._finished=e.end===o.getData().count()},t.prototype.updateTransform=function(e,o,i){var n=e.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var a=jl("").reset(e,o,i);a.progress&&a.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var o=e.coordinateSystem;return o&&o.getArea&&o.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,o){var i=this._symbolDraw,n=o.pipelineContext,a=n.large;return(!i||a!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=a?new j9:new Ql,this._isLargeDraw=a,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(e,o){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Fe);const eF=q9;var tF=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Te);const rF=tF;var Lf=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ot).models[0]},t.type="cartesian2dAxis",t}(Te);je(Lf,ja);var Gw={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},oF=xe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Gw),If=xe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Gw),iF=xe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},If),nF=le({logBase:10},If);const Nw={category:oF,value:If,time:iF,log:nF};var aF={value:1,category:1,time:1,log:1};function rs(r,t,e,o){E(aF,function(i,n){var a=xe(xe({},Nw[n],!0),o,!0),s=function(l){V(d,l);function d(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+n,c}return d.prototype.mergeDefaultAndTheme=function(c,u){var h=bl(this),g=h?Ba(c):{},p=u.getTheme();xe(c,p.get(n+"Axis")),xe(c,this.getDefaultOption()),c.type=kw(c),h&&pi(c,g,h)},d.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=z0.createByAxisModel(this))},d.prototype.getCategories=function(c){var u=this.option;if(u.type==="category")return c?u.data:this.__ordinalMeta.categories},d.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},d.type=t+"Axis."+n,d.defaultOption=a,d}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",kw)}function kw(r){return r.type||(r.data?"category":"value")}var sF=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return Y(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ge(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const lF=sF;var Ef=["x","y"];function Rw(r){return r.type==="interval"||r.type==="time"}var dF=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Ef,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,o=this.getAxis("y").scale;if(!(!Rw(e)||!Rw(o))){var i=e.getExtent(),n=o.getExtent(),a=this.dataToPoint([i[0],n[0]]),s=this.dataToPoint([i[1],n[1]]),l=i[1]-i[0],d=n[1]-n[0];if(!(!l||!d)){var c=(s[0]-a[0])/l,u=(s[1]-a[1])/d,h=a[0]-i[0]*c,g=a[1]-n[0]*u,p=this._transform=[c,0,0,u,h,g];this._invTransform=Xi([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var o=this.getAxis("x"),i=this.getAxis("y");return o.contain(o.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,o){var i=this.dataToPoint(e),n=this.dataToPoint(o),a=this.getArea(),s=new ye(i[0],i[1],n[0]-i[0],n[1]-i[1]);return a.intersect(s)},t.prototype.dataToPoint=function(e,o,i){i=i||[];var n=e[0],a=e[1];if(this._transform&&n!=null&&isFinite(n)&&a!=null&&isFinite(a))return xt(i,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(n,o)),i[1]=l.toGlobalCoord(l.dataToCoord(a,o)),i},t.prototype.clampData=function(e,o){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,a=i.getExtent(),s=n.getExtent(),l=i.parse(e[0]),d=n.parse(e[1]);return o=o||[],o[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),o[1]=Math.min(Math.max(Math.min(s[0],s[1]),d),Math.max(s[0],s[1])),o},t.prototype.pointToData=function(e,o){var i=[];if(this._invTransform)return xt(i,e,this._invTransform);var n=this.getAxis("x"),a=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(e[0]),o),i[1]=a.coordToData(a.toLocalCoord(e[1]),o),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var o=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),n=Math.min(o[0],o[1])-e,a=Math.min(i[0],i[1])-e,s=Math.max(o[0],o[1])-n+e,l=Math.max(i[0],i[1])-a+e;return new ye(n,a,s,l)},t}(lF),cF=function(r){V(t,r);function t(e,o,i,n,a){var s=r.call(this,e,o,i)||this;return s.index=0,s.type=n||"value",s.position=a||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var o=this.getExtent();return o[0]=this.toGlobalCoord(o[0]),o[1]=this.toGlobalCoord(o[1]),e&&o[0]>o[1]&&o.reverse(),o},t.prototype.pointToData=function(e,o){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),o)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Tr);const uF=cF;function $f(r,t,e){e=e||{};var o=r.coordinateSystem,i=t.axis,n={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,d=i.dim,c=o.getRect(),u=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},g=t.get("offset")||0,p=d==="x"?[u[2]-g,u[3]+g]:[u[0]-g,u[1]+g];if(a){var x=a.toGlobalCoord(a.dataToCoord(0));p[h.onZero]=Math.max(Math.min(x,p[1]),p[0])}n.position=[d==="y"?p[h[l]]:u[0],d==="x"?p[h[l]]:u[3]],n.rotation=Math.PI/2*(d==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=m[s],n.labelOffset=a?p[h[s]]-p[h.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),ct(e.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var f=t.get(["axisLabel","rotate"]);return n.labelRotate=l==="top"?-f:f,n.z2=1,n}function Fw(r){return r.get("coordinateSystem")==="cartesian2d"}function Vw(r){var t={xAxisModel:null,yAxisModel:null};return E(t,function(e,o){var i=o.replace(/Model$/,""),n=r.getReferringComponents(i,ot).models[0];t[o]=n}),t}var Df=Math.log;function Hw(r,t,e){var o=bi.prototype,i=o.getTicks.call(e),n=o.getTicks.call(e,!0),a=i.length-1,s=o.getInterval.call(e),l=jA(r,t),d=l.extent,c=l.fixMin,u=l.fixMax;if(r.type==="log"){var h=Df(r.base);d=[Df(d[0])/h,Df(d[1])/h]}r.setExtent(d[0],d[1]),r.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:u});var g=o.getExtent.call(r);c&&(d[0]=g[0]),u&&(d[1]=g[1]);var p=o.getInterval.call(r),x=d[0],m=d[1];if(c&&u)p=(m-x)/a;else if(c)for(m=d[0]+p*a;md[0]&&isFinite(x)&&isFinite(d[0]);)p=Z0(p),x=d[1]-p*a;else{var f=r.getTicks().length-1;f>a&&(p=Z0(p));var v=p*a;m=Math.ceil(d[1]/p)*p,x=Qe(m-v),x<0&&d[0]>=0?(x=0,m=Qe(v)):m>0&&d[1]<=0&&(m=0,x=-Qe(v))}var y=(i[0].value-n[0].value)/s,_=(i[a].value-n[a].value)/s;o.setExtent.call(r,x+p*y,m+p*_),o.setInterval.call(r,p),(y||_)&&o.setNiceExtent.call(r,x+p,m-p)}var hF=function(){function r(t,e,o){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ef,this._initCartesian(t,e,o),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var o=this._axesMap;this._updateScale(t,this.model);function i(a){var s,l=Ae(a),d=l.length;if(d){for(var c=[],u=d-1;u>=0;u--){var h=+l[u],g=a[h],p=g.model,x=g.scale;K0(x)&&p.get("alignTicks")&&p.get("interval")==null?c.push(g):($n(x,p),K0(x)&&(s=g))}c.length&&(s||(s=c.pop(),$n(s.scale,s.model)),E(c,function(m){Hw(m.scale,m.model,s.scale)}))}}i(o.x),i(o.y);var n={};E(o.x,function(a){Xw(o,"y",a,n)}),E(o.y,function(a){Xw(o,"x",a,n)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,o){var i=t.getBoxLayoutParams(),n=!o&&t.get("containLabel"),a=it(i,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;l(),n&&(E(s,function(d){if(!d.model.get(["axisLabel","inside"])){var c=c8(d);if(c){var u=d.isHorizontal()?"height":"width",h=d.model.get(["axisLabel","margin"]);a[u]-=c[u]+h,d.position==="top"?a.y+=c.height+h:d.position==="left"&&(a.x+=c.width+h)}}}),l()),E(this._coordsList,function(d){d.calcAffineTransform()});function l(){E(s,function(d){var c=d.isHorizontal(),u=c?[0,a.width]:[0,a.height],h=d.inverse?1:0;d.setExtent(u[h],u[1-h]),gF(d,c?a.x:a.y)})}},r.prototype.getAxis=function(t,e){var o=this._axesMap[t];if(o!=null)return o[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var o="x"+t+"y"+e;return this._coordsMap[o]}de(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,n=this._coordsList;i0?"top":"bottom",n="center"):xa(i-wi)?(a=o>0?"bottom":"top",n="center"):(a="middle",i>0&&i0?"right":"left":n=o>0?"left":"right"),{rotation:i,textAlign:n,textVerticalAlign:a}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),Ww={axisLine:function(r,t,e,o){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var n=t.axis.getExtent(),a=o.transform,s=[n[0],0],l=[n[1],0],d=s[0]>l[0];a&&(xt(s,s,a),xt(l,l,a));var c=W({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),u=new ht({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ca(u.shape,u.style.lineWidth),u.anid="line",e.add(u);var h=t.get(["axisLine","symbol"]);if(h!=null){var g=t.get(["axisLine","symbolSize"]);te(h)&&(h=[h,h]),(te(g)||Ee(g))&&(g=[g,g]);var p=Cn(t.get(["axisLine","symbolOffset"])||0,g),x=g[0],m=g[1];E([{rotate:r.rotation+Math.PI/2,offset:p[0],r:0},{rotate:r.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(f,v){if(h[v]!=="none"&&h[v]!=null){var y=tt(h[v],-x/2,-m/2,x,m,c.stroke,!0),_=f.r+f.offset,S=d?l:s;y.attr({rotation:f.rotate,x:S[0]+_*Math.cos(r.rotation),y:S[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),e.add(y)}})}}},axisTickLabel:function(r,t,e,o){var i=xF(e,o,t,r),n=yF(e,o,t,r);if(fF(t,n,i),vF(e,o,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=yT(Y(n,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));bT(a)}},axisName:function(r,t,e,o){var i=ct(r.axisName,t.get("name"));if(i){var n=t.get("nameLocation"),a=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,d=t.axis.getExtent(),c=d[0]>d[1]?-1:1,u=[n==="start"?d[0]-c*l:n==="end"?d[1]+c*l:(d[0]+d[1])/2,Kw(n)?r.labelOffset+a*l:0],h,g=t.get("nameRotate");g!=null&&(g=g*wi/180);var p;Kw(n)?h=Hn.innerTextLayout(r.rotation,g??r.rotation,a):(h=pF(r.rotation,n,g||0,d),p=r.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(h.rotation)),!isFinite(p)&&(p=null)));var x=s.getFont(),m=t.get("nameTruncate",!0)||{},f=m.ellipsis,v=ct(r.nameTruncateMaxWidth,m.maxWidth,p),y=new Le({x:u[0],y:u[1],rotation:h.rotation,silent:Hn.isLabelSilent(t),style:Ue(s,{text:i,font:x,overflow:"truncate",width:v,ellipsis:f,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(La({el:y,componentModel:t,itemName:i}),y.__fullText=i,y.anid="name",t.get("triggerEvent")){var _=Hn.makeAxisEventDataBase(t);_.targetType="axisName",_.name=i,he(y).eventData=_}o.add(y),y.updateTransform(),e.add(y),y.decomposeTransform()}}};function pF(r,t,e,o){var i=Nm(e-r),n,a,s=o[0]>o[1],l=t==="start"&&!s||t!=="start"&&s;return xa(i-wi/2)?(a=l?"bottom":"top",n="center"):xa(i-wi*1.5)?(a=l?"top":"bottom",n="center"):(a="middle",iwi/2?n=l?"left":"right":n=l?"right":"left"),{rotation:i,textAlign:n,textVerticalAlign:a}}function fF(r,t,e){if(!qA(r.axis)){var o=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var n=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],d=e[0],c=e[1],u=e[e.length-1],h=e[e.length-2];o===!1?(wr(n),wr(d)):zw(n,a)&&(o?(wr(a),wr(c)):(wr(n),wr(d))),i===!1?(wr(s),wr(u)):zw(l,s)&&(i?(wr(l),wr(h)):(wr(s),wr(u)))}}function wr(r){r&&(r.ignore=!0)}function zw(r,t){var e=r&&r.getBoundingRect().clone(),o=t&&t.getBoundingRect().clone();if(!(!e||!o)){var i=Ds([]);return ei(i,i,-r.rotation),e.applyTransform(ro([],i,r.getLocalTransform())),o.applyTransform(ro([],i,t.getLocalTransform())),e.intersect(o)}}function Kw(r){return r==="middle"||r==="center"}function Zw(r,t,e,o,i){for(var n=[],a=[],s=[],l=0;l=0||r===t}function TF(r){var t=Gf(r);if(t){var e=t.axisPointerModel,o=t.axis.scale,i=e.option,n=e.get("status"),a=e.get("value");a!=null&&(a=o.parse(a));var s=Nf(e);n==null&&(i.status=s?"show":"hide");var l=o.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),a0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var x=l;p.color!=null&&(x=le({color:p.color},l));var m=xe(ce(p),{boundaryGap:e,splitNumber:o,scale:i,axisLine:n,axisTick:a,axisLabel:s,name:p.text,showName:d,nameLocation:"end",nameGap:u,nameTextStyle:x,triggerEvent:h},!1);if(te(c)){var f=m.name;m.name=c.replace("{value}",f??"")}else ae(c)&&(m.name=c(m.name,m));var v=new Re(m,null,this.ecModel);return je(v,ja.prototype),v.mainType="radar",v.componentIndex=this.componentIndex,v},this);this._indicatorModels=g},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:xe({lineStyle:{color:"#bbb"}},rd.axisLine),axisLabel:mh(rd.axisLabel,!1),axisTick:mh(rd.axisTick,!1),splitLine:mh(rd.splitLine,!0),splitArea:mh(rd.splitArea,!0),indicator:[]},t}(Te);const VF=FF;var HF=["axisLine","axisTickLabel","axisName"],XF=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,o,i){var n=this.group;n.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var o=e.coordinateSystem,i=o.getIndicatorAxes(),n=Y(i,function(a){var s=a.model.get("showName")?a.name:"",l=new Xo(a.model,{axisName:s,position:[o.cx,o.cy],rotation:a.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});E(n,function(a){E(HF,a.add,a),this.group.add(a.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var o=e.coordinateSystem,i=o.getIndicatorAxes();if(!i.length)return;var n=e.get("shape"),a=e.getModel("splitLine"),s=e.getModel("splitArea"),l=a.getModel("lineStyle"),d=s.getModel("areaStyle"),c=a.get("show"),u=s.get("show"),h=l.get("color"),g=d.get("color"),p=K(h)?h:[h],x=K(g)?g:[g],m=[],f=[];function v(O,N,R){var I=R%N.length;return O[I]=O[I]||[],I}if(n==="circle")for(var y=i[0].getTicksCoords(),_=o.cx,S=o.cy,b=0;b3?1.4:a>1?1.2:1.1,c=n>0?d:1/d;Ff(this,"zoom","zoomOnMouseWheel",e,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var u=Math.abs(n),h=(n>0?1:-1)*(u>3?.4:u>1?.15:.05);Ff(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!nC(this._zr,"globalPan")){var o=e.pinchScale>1?1.1:.9090909090909091;Ff(this,"zoom",null,e,{scale:o,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(gr);function Ff(r,t,e,o,i){r.pointerChecker&&r.pointerChecker(o,i.originX,i.originY)&&(Io(o.event),aC(r,t,e,o,i))}function aC(r,t,e,o,i){i.isAvailableBehavior=re(ph,null,e,o),r.trigger(t,i)}function ph(r,t,e){var o=e[r];return!r||o&&(!te(o)||t.event[o+"Key"])}const od=qF;function Vf(r,t,e){var o=r.target;o.x+=t,o.y+=e,o.dirty()}function Hf(r,t,e,o){var i=r.target,n=r.zoomLimit,a=r.zoom=r.zoom||1;if(a*=t,n){var s=n.min||0,l=n.max||1/0;a=Math.max(Math.min(l,a),s)}var d=a/r.zoom;r.zoom=a,i.x-=(e-i.x)*(d-1),i.y-=(o-i.y)*(d-1),i.scaleX*=d,i.scaleY*=d,i.dirty()}var eV={axisPointer:1,tooltip:1,brush:1};function fh(r,t,e){var o=t.getComponentByElement(r.topTarget),i=o&&o.coordinateSystem;return o&&o!==e&&!eV.hasOwnProperty(o.mainType)&&i&&i.model!==e}function sC(r){if(te(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var Xf,xh={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},lC=Ae(xh),vh={"alignment-baseline":"textBaseline","stop-color":"stopColor"},dC=Ae(vh),tV=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var o=sC(t);this._defsUsePending=[];var i=new ue;this._root=i;var n=[],a=o.getAttribute("viewBox")||"",s=parseFloat(o.getAttribute("width")||e.width),l=parseFloat(o.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),cr(o,i,null,!0,!1);for(var d=o.firstChild;d;)this._parseNode(d,i,n,null,!1,!1),d=d.nextSibling;iV(this._defs,this._defsUsePending),this._defsUsePending=[];var c,u;if(a){var h=yh(a);h.length>=4&&(c={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(c&&s!=null&&l!=null&&(u=xC(c,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var g=i;i=new ue,i.add(g),g.scaleX=g.scaleY=u.scale,g.x=u.x,g.y=u.y}return!e.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Pe({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:u,named:n}},r.prototype._parseNode=function(t,e,o,i,n,a){var s=t.nodeName.toLowerCase(),l,d=i;if(s==="defs"&&(n=!0),s==="text"&&(a=!0),s==="defs"||s==="switch")l=e;else{if(!n){var c=Xf[s];if(c&&oe(Xf,s)){l=c.call(this,t,e);var u=t.getAttribute("name");if(u){var h={name:u,namedFrom:null,svgNodeTagLower:s,el:l};o.push(h),s==="g"&&(d=h)}else i&&o.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});e.add(l)}}var g=cC[s];if(g&&oe(cC,s)){var p=g.call(this,t),x=t.getAttribute("id");x&&(this._defs[x]=p)}}if(l&&l.isGroup)for(var m=t.firstChild;m;)m.nodeType===1?this._parseNode(m,l,o,d,n,a):m.nodeType===3&&a&&this._parseText(m,l),m=m.nextSibling},r.prototype._parseText=function(t,e){var o=new ol({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Cr(e,o),cr(t,o,this._defsUsePending,!1,!1),rV(o,e);var i=o.style,n=i.fontSize;n&&n<9&&(i.fontSize=9,o.scaleX*=n/9,o.scaleY*=n/9);var a=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=a;var s=o.getBoundingRect();return this._textX+=s.width,e.add(o),o},r.internalField=function(){Xf={g:function(t,e){var o=new ue;return Cr(e,o),cr(t,o,this._defsUsePending,!1,!1),o},rect:function(t,e){var o=new Pe;return Cr(e,o),cr(t,o,this._defsUsePending,!1,!1),o.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),o.silent=!0,o},circle:function(t,e){var o=new ko;return Cr(e,o),cr(t,o,this._defsUsePending,!1,!1),o.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),o.silent=!0,o},line:function(t,e){var o=new ht;return Cr(e,o),cr(t,o,this._defsUsePending,!1,!1),o.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),o.silent=!0,o},ellipse:function(t,e){var o=new Zc;return Cr(e,o),cr(t,o,this._defsUsePending,!1,!1),o.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),o.silent=!0,o},polygon:function(t,e){var o=t.getAttribute("points"),i;o&&(i=gC(o));var n=new Ht({shape:{points:i||[]},silent:!0});return Cr(e,n),cr(t,n,this._defsUsePending,!1,!1),n},polyline:function(t,e){var o=t.getAttribute("points"),i;o&&(i=gC(o));var n=new Xt({shape:{points:i||[]},silent:!0});return Cr(e,n),cr(t,n,this._defsUsePending,!1,!1),n},image:function(t,e){var o=new yt;return Cr(e,o),cr(t,o,this._defsUsePending,!1,!1),o.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),o.silent=!0,o},text:function(t,e){var o=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",n=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0";this._textX=parseFloat(o)+parseFloat(n),this._textY=parseFloat(i)+parseFloat(a);var s=new ue;return Cr(e,s),cr(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var o=t.getAttribute("x"),i=t.getAttribute("y");o!=null&&(this._textX=parseFloat(o)),i!=null&&(this._textY=parseFloat(i));var n=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0",s=new ue;return Cr(e,s),cr(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(a),s},path:function(t,e){var o=t.getAttribute("d")||"",i=db(o);return Cr(e,i),cr(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),r}(),cC={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),o=parseInt(r.getAttribute("x2")||"10",10),i=parseInt(r.getAttribute("y2")||"0",10),n=new Aa(t,e,o,i);return uC(r,n),hC(r,n),n},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),o=parseInt(r.getAttribute("r")||"0",10),i=new Mp(t,e,o);return uC(r,i),hC(r,i),i}};function uC(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function hC(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var o=e.getAttribute("offset"),i=void 0;o&&o.indexOf("%")>0?i=parseInt(o,10)/100:o?i=parseFloat(o):i=0;var n={};fC(e,n,n);var a=n.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:a})}e=e.nextSibling}}function Cr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),le(t.__inheritedStyle,r.__inheritedStyle))}function gC(r){for(var t=yh(r),e=[],o=0;o0;n-=2){var a=o[n],s=o[n-1],l=yh(a);switch(i=i||Jt(),s){case"translate":Gr(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":ac(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ei(i,i,-parseFloat(l[0])*Uf,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var d=Math.tan(parseFloat(l[0])*Uf);ro(i,[1,0,d,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*Uf);ro(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var pC=/([^\s:;]+)\s*:\s*([^:;]+)/g;function fC(r,t,e){var o=r.getAttribute("style");if(o){pC.lastIndex=0;for(var i;(i=pC.exec(o))!=null;){var n=i[1],a=oe(xh,n)?xh[n]:null;a&&(t[a]=i[2]);var s=oe(vh,n)?vh[n]:null;s&&(e[s]=i[2])}}}function lV(r,t,e){for(var o=0;o0,m={api:o,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:x,isGeo:a,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(t,e,o),this._updateMapSelectHandler(t,d,o,i)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=ne(),o=ne(),i=this._regionsGroup,n=t.transformInfoRaw,a=t.mapOrGeoModel,s=t.data,l=t.geo.projection,d=l&&l.stream;function c(g,p){return p&&(g=p(g)),g&&[g[0]*n.scaleX+n.x,g[1]*n.scaleY+n.y]}function u(g){for(var p=[],x=!d&&l&&l.project,m=0;m=0)&&(h=i);var g=a?{normal:{align:"center",verticalAlign:"middle"}}:null;At(t,gt(o),{labelFetcher:h,labelDataIndex:u,defaultText:e},g);var p=t.getTextContent();if(p&&(yC(p).ignore=p.ignore,t.textConfig&&a)){var x=t.getBoundingRect().clone();t.textConfig.layoutRect=x,t.textConfig.position=[(a[0]-x.x)/x.width*100+"%",(a[1]-x.y)/x.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function MC(r,t,e,o,i,n){r.data?r.data.setItemGraphicEl(n,t):he(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:e,region:o&&o.option||{}}}function AC(r,t,e,o,i){r.data||La({el:t,componentModel:i,itemName:e,itemTooltipOption:o.get("tooltip")})}function TC(r,t,e,o,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var n=o.getModel("emphasis"),a=n.get("focus");return Je(t,a,n.get("blurScope"),n.get("disabled")),r.isGeo&&gN(t,i,e),a}function wC(r,t,e){var o=[],i;function n(){i=[]}function a(){i.length&&(o.push(i),i=[])}var s=t({polygonStart:n,polygonEnd:a,lineStart:n,lineEnd:a,point:function(l,d){isFinite(l)&&isFinite(d)&&i.push([l,d])},sphere:function(){}});return!e&&s.polygonStart(),E(r,function(l){s.lineStart();for(var d=0;d-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(ze);const IV=LV;function EV(r,t){var e={};return E(r,function(o){o.each(o.mapDimension("value"),function(i,n){var a="ec-"+o.getName(n);e[a]=e[a]||[],isNaN(i)||e[a].push(i)})}),r[0].map(r[0].mapDimension("value"),function(o,i){for(var n="ec-"+r[0].getName(i),a=0,s=1/0,l=-1/0,d=e[n].length,c=0;c1?(_.width=y,_.height=y/m):(_.height=y,_.width=y*m),_.y=v[1]-_.height/2,_.x=v[0]-_.width/2;else{var S=r.getBoxLayoutParams();S.aspect=m,_=it(S,{width:p,height:x})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function GV(r,t){E(t.get("geoCoord"),function(e,o){r.addGeoCoord(o,e)})}var NV=function(){function r(){this.dimensions=IC}return r.prototype.create=function(t,e){var o=[];function i(a){return{nameProperty:a.get("nameProperty"),aspectScale:a.get("aspectScale"),projection:a.get("projection")}}t.eachComponent("geo",function(a,s){var l=a.get("map"),d=new DC(l+s,l,W({nameMap:a.get("nameMap")},i(a)));d.zoomLimit=a.get("scaleLimit"),o.push(d),a.coordinateSystem=d,d.model=a,d.resize=OC,d.resize(a,e)}),t.eachSeries(function(a){var s=a.get("coordinateSystem");if(s==="geo"){var l=a.get("geoIndex")||0;a.coordinateSystem=o[l]}});var n={};return t.eachSeriesByType("map",function(a){if(!a.getHostGeoModel()){var s=a.getMapType();n[s]=n[s]||[],n[s].push(a)}}),E(n,function(a,s){var l=Y(a,function(c){return c.get("nameMap")}),d=new DC(s,s,W({nameMap:qd(l)},i(a[0])));d.zoomLimit=ct.apply(null,Y(a,function(c){return c.get("scaleLimit")})),o.push(d),d.resize=OC,d.resize(a[0],e),E(a,function(c){c.coordinateSystem=d,GV(d,c)})}),o},r.prototype.getFilledRegions=function(t,e,o,i){for(var n=(t||[]).slice(),a=ne(),s=0;s=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},e.push(s)}}function zV(r,t){var e=r.isExpand?r.children:[],o=r.parentNode.children,i=r.hierNode.i?o[r.hierNode.i-1]:null;if(e.length){YV(r);var n=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;i?(r.hierNode.prelim=i.hierNode.prelim+t(r,i),r.hierNode.modifier=r.hierNode.prelim-n):r.hierNode.prelim=n}else i&&(r.hierNode.prelim=i.hierNode.prelim+t(r,i));r.parentNode.hierNode.defaultAncestor=QV(r,i,r.parentNode.hierNode.defaultAncestor||o[0],t)}function KV(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function kC(r){return arguments.length?r:qV}function ad(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function ZV(r,t){return it(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function YV(r){for(var t=r.children,e=t.length,o=0,i=0;--e>=0;){var n=t[e];n.hierNode.prelim+=o,n.hierNode.modifier+=o,i+=n.hierNode.change,o+=n.hierNode.shift+i}}function QV(r,t,e,o){if(t){for(var i=r,n=r,a=n.parentNode.children[0],s=t,l=i.hierNode.modifier,d=n.hierNode.modifier,c=a.hierNode.modifier,u=s.hierNode.modifier;s=Zf(s),n=Yf(n),s&&n;){i=Zf(i),a=Yf(a),i.hierNode.ancestor=r;var h=s.hierNode.prelim+u-n.hierNode.prelim-d+o(s,n);h>0&&(jV(JV(s,r,e),r,h),d+=h,l+=h),u+=s.hierNode.modifier,d+=n.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!Zf(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=u-l),n&&!Yf(a)&&(a.hierNode.thread=n,a.hierNode.modifier+=d-c,e=r)}return e}function Zf(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function Yf(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function JV(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function jV(r,t,e){var o=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=o,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=o}function qV(r,t){return r.parentNode===t.parentNode?1:2}var eH=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),tH=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new eH},t.prototype.buildPath=function(e,o){var i=o.childPoints,n=i.length,a=o.parentPoint,s=i[0],l=i[n-1];if(n===1){e.moveTo(a[0],a[1]),e.lineTo(s[0],s[1]);return}var d=o.orient,c=d==="TB"||d==="BT"?0:1,u=1-c,h=ee(o.forkPosition,1),g=[];g[c]=a[c],g[u]=a[u]+(l[u]-a[u])*h,e.moveTo(a[0],a[1]),e.lineTo(g[0],g[1]),e.moveTo(s[0],s[1]),g[c]=s[c],e.lineTo(g[0],g[1]),g[c]=l[c],e.lineTo(g[0],g[1]),e.lineTo(l[0],l[1]);for(var p=1;pv.x,S||(_=_-Math.PI));var A=S?"left":"right",M=s.getModel("label"),T=M.get("rotate"),w=T*(Math.PI/180),C=m.getTextContent();C&&(m.setTextConfig({position:M.get("position")||A,rotation:T==null?-_:w,origin:"center"}),C.setStyle("verticalAlign","middle"))}var P=s.get(["emphasis","focus"]),L=P==="relative"?Cs(a.getAncestorsIndices(),a.getDescendantIndices()):P==="ancestor"?a.getAncestorsIndices():P==="descendant"?a.getDescendantIndices():null;L&&(he(e).focus=L),oH(i,a,c,e,p,g,x,o),e.__edge&&(e.onHoverStateChange=function($){if($!=="blur"){var O=a.parentNode&&r.getItemGraphicEl(a.parentNode.dataIndex);O&&O.hoverState===il||Wc(e.__edge,$)}})}function oH(r,t,e,o,i,n,a,s){var l=t.getModel(),d=r.get("edgeShape"),c=r.get("layout"),u=r.getOrient(),h=r.get(["lineStyle","curveness"]),g=r.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),x=o.__edge;if(d==="curve")t.parentNode&&t.parentNode!==e&&(x||(x=o.__edge=new gl({shape:Qf(c,u,h,i,i)})),$e(x,{shape:Qf(c,u,h,n,a)},r));else if(d==="polyline"&&c==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var m=t.children,f=[],v=0;ve&&(e=i.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,o=this.children,i=o.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,o=e.data.getItemModel(this.dataIndex);return o.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var o=e.getData().tree.root,i=r.targetNode;if(te(i)&&(i=o.getNodeById(i)),i&&o.contains(i))return{node:i};var n=r.targetNodeId;if(n!=null&&(i=o.getNodeById(n)))return{node:i}}}function zC(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function qf(r,t){var e=zC(r);return Se(e,t)>=0}function Sh(r,t){for(var e=[];r;){var o=r.dataIndex;e.push({name:r.name,dataIndex:o,value:t.getRawValue(o)}),r=r.parentNode}return e.reverse(),e}var mH=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var o={name:e.name,children:e.data},i=e.leaves||{},n=new Re(i,this,this.ecModel),a=jf.createTree(o,this,s);function s(u){u.wrapMethod("getItemModel",function(h,g){var p=a.getNodeByDataIndex(g);return p&&p.children.length&&p.isExpand||(h.parentModel=n),h})}var l=0;a.eachNode("preorder",function(u){u.depth>l&&(l=u.depth)});var d=e.expandAndCollapse,c=d&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return a.root.eachNode("preorder",function(u){var h=u.hostTree.data.getRawDataItem(u.dataIndex);u.isExpand=h&&h.collapsed!=null?!h.collapsed:u.depth<=c}),a.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,o,i){for(var n=this.getData().tree,a=n.root.children[0],s=n.getNodeByDataIndex(e),l=s.getValue(),d=s.name;s&&s!==a;)d=s.parentNode.name+"."+d,s=s.parentNode;return mt("nameValue",{name:d,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var o=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return o.treeAncestors=Sh(i,this),o.collapsed=!i.isExpand,o},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(ze);const pH=mH;function fH(r,t,e){for(var o=[r],i=[],n;n=o.pop();)if(i.push(n),n.isExpand){var a=n.children;if(a.length)for(var s=0;s=0;n--)e.push(i[n])}}function xH(r,t){r.eachSeriesByType("tree",function(e){vH(e,t)})}function vH(r,t){var e=ZV(r,t);r.layoutInfo=e;var o=r.get("layout"),i=0,n=0,a=null;o==="radial"?(i=2*Math.PI,n=Math.min(e.height,e.width)/2,a=kC(function(y,_){return(y.parentNode===_.parentNode?1:2)/y.depth})):(i=e.width,n=e.height,a=kC());var s=r.getData().tree.root,l=s.children[0];if(l){WV(s),fH(l,zV,a),s.hierNode.modifier=-l.hierNode.prelim,ld(l,KV);var d=l,c=l,u=l;ld(l,function(y){var _=y.getLayout().x;_c.getLayout().x&&(c=y),y.depth>u.depth&&(u=y)});var h=d===c?1:a(d,c)/2,g=h-d.getLayout().x,p=0,x=0,m=0,f=0;if(o==="radial")p=i/(c.getLayout().x+h+g),x=n/(u.depth-1||1),ld(l,function(y){m=(y.getLayout().x+g)*p,f=(y.depth-1)*x;var _=ad(m,f);y.setLayout({x:_.x,y:_.y,rawX:m,rawY:f},!0)});else{var v=r.getOrient();v==="RL"||v==="LR"?(x=n/(c.getLayout().x+h+g),p=i/(u.depth-1||1),ld(l,function(y){f=(y.getLayout().x+g)*x,m=v==="LR"?(y.depth-1)*p:i-(y.depth-1)*p,y.setLayout({x:m,y:f},!0)})):(v==="TB"||v==="BT")&&(p=i/(c.getLayout().x+h+g),x=n/(u.depth-1||1),ld(l,function(y){m=(y.getLayout().x+g)*p,f=v==="TB"?(y.depth-1)*x:n-(y.depth-1)*x,y.setLayout({x:m,y:f},!0)}))}}}function yH(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),o=e.tree;o.eachNode(function(i){var n=i.getModel(),a=n.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(i.dataIndex,"style");W(s,a)})})}function _H(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(o){var i=t.dataIndex,n=o.getData().tree,a=n.getNodeByDataIndex(i);a.isExpand=!a.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,o){e.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var n=i.coordinateSystem,a=Kf(n,t,void 0,o);i.setCenter&&i.setCenter(a.center),i.setZoom&&i.setZoom(a.zoom)})})}function SH(r){r.registerChartView(iH),r.registerSeriesModel(pH),r.registerLayout(xH),r.registerVisual(yH),_H(r)}var KC=["treemapZoomToNode","treemapRender","treemapMove"];function bH(r){for(var t=0;t1;)n=n.parentNode;var a=jp(r.ecModel,n.name||n.dataIndex+"",o);i.setVisual("decal",a)})}var MH=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,o){var i={name:e.name,children:e.data};YC(i);var n=e.levels||[],a=this.designatedVisualItemStyle={},s=new Re({itemStyle:a},this,o);n=e.levels=AH(n,o);var l=Y(n||[],function(u){return new Re(u,s,o)},this),d=jf.createTree(i,this,c);function c(u){u.wrapMethod("getItemModel",function(h,g){var p=d.getNodeByDataIndex(g),x=p?l[p.depth]:null;return h.parentModel=x||s,h})}return d.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,o,i){var n=this.getData(),a=this.getRawValue(e),s=n.getName(e);return mt("nameValue",{name:s,value:a})},t.prototype.getDataParams=function(e){var o=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return o.treeAncestors=Sh(i,this),o.treePathInfo=o.treeAncestors,o},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},W(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var o=this._idIndexMap;o||(o=this._idIndexMap=ne(),this._idIndexMapCount=0);var i=o.get(e);return i==null&&o.set(e,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var o=this.getRawData().tree.root;(!e||e!==o&&!o.contains(e))&&(this._viewRoot=o)},t.prototype.enableAriaDecal=function(){ZC(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(ze);function YC(r){var t=0;E(r.children,function(o){YC(o);var i=o.value;K(i)&&(i=i[0]),t+=i});var e=r.value;K(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),K(r.value)?r.value[0]=e:r.value=e}function AH(r,t){var e=ke(t.get("color")),o=ke(t.get(["aria","decal","decals"]));if(e){r=r||[];var i,n;E(r,function(s){var l=new Re(s),d=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||d&&d!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(n=!0)});var a=r[0]||(r[0]={});return i||(a.color=e.slice()),!n&&o&&(a.decal=o.slice()),r}}const TH=MH;var wH=8,QC=8,e1=5,CH=function(){function r(t){this.group=new ue,t.add(this.group)}return r.prototype.render=function(t,e,o,i){var n=t.getModel("breadcrumb"),a=this.group;if(a.removeAll(),!(!n.get("show")||!o)){var s=n.getModel("itemStyle"),l=n.getModel("emphasis"),d=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),u={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(o,u,d),this._renderContent(t,u,s,l,d,c,i),xu(a,u.pos,u.box)}},r.prototype._prepare=function(t,e,o){for(var i=t;i;i=i.parentNode){var n=lt(i.getModel().get("name"),""),a=o.getTextRect(n),s=Math.max(a.width+wH*2,e.emptyItemWidth);e.totalWidth+=s+QC,e.renderList.push({node:i,text:n,width:s})}},r.prototype._renderContent=function(t,e,o,i,n,a,s){for(var l=0,d=e.emptyItemWidth,c=t.get(["breadcrumb","height"]),u=_4(e.pos,e.box),h=e.totalWidth,g=e.renderList,p=i.getModel("itemStyle").getItemStyle(),x=g.length-1;x>=0;x--){var m=g[x],f=m.node,v=m.width,y=m.text;h>u.width&&(h-=v-d,v=d,y=null);var _=new Ht({shape:{points:PH(l,0,v,c,x===g.length-1,x===0)},style:le(o.getItemStyle(),{lineJoin:"bevel"}),textContent:new Le({style:Ue(n,{text:y})}),textConfig:{position:"inside"},z2:_a*1e4,onclick:me(s,f)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Ue(a,{text:y}),_.ensureState("emphasis").style=p,Je(_,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(_),LH(_,t,f),l+=v+QC}},r.prototype.remove=function(){this.group.removeAll()},r}();function PH(r,t,e,o,i,n){var a=[[i?r:r-e1,t],[r+e,t],[r+e,t+o],[i?r:r-e1,t+o]];return!n&&a.splice(2,0,[r+e+e1,t+o/2]),!i&&a.push([r,t+o/2]),a}function LH(r,t,e){he(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&Sh(e,t)}}const IH=CH;var EH=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,o,i,n){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:o,delay:i,easing:n}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,o=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,n=this._storage.length;ijC||Math.abs(e.dy)>jC)){var o=this.seriesModel.getData().tree.root;if(!o)return;var i=o.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+e.dx,y:i.y+e.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(e){var o=e.originX,i=e.originY,n=e.scale;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var s=a.getLayout();if(!s)return;var l=new ye(s.x,s.y,s.width,s.height),d=null,c=this._controllerHost;d=c.zoomLimit;var u=c.zoom=c.zoom||1;if(u*=n,d){var h=d.min||0,g=d.max||1/0;u=Math.max(Math.min(g,u),h)}var p=u/c.zoom;c.zoom=u;var x=this.seriesModel.layoutInfo;o-=x.x,i-=x.y;var m=Jt();Gr(m,m,[-o,-i]),ac(m,m,[p,p]),Gr(m,m,[o,i]),l.applyTransform(m),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(e){var o=this;e.on("click",function(i){if(o._state==="ready"){var n=o.seriesModel.get("nodeClick",!0);if(n){var a=o.findTarget(i.offsetX,i.offsetY);if(a){var s=a.node;if(s.getLayout().isLeafRoot)o._rootToNode(a);else if(n==="zoomToNode")o._zoomToNode(a);else if(n==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),d=l.get("link",!0),c=l.get("target",!0)||"blank";d&&pu(d,c)}}}}},this)},t.prototype._renderBreadcrumb=function(e,o,i){var n=this;i||(i=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(o.getWidth()/2,o.getHeight()/2),i||(i={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new IH(this.group))).render(e,o,i.node,function(a){n._state!=="animating"&&(qf(e.getViewRoot(),a)?n._rootToNode({node:a}):n._zoomToNode({node:a}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=dd(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,o){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(a){var s=this._storage.background[a.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,o),d=s.shape;if(d.x<=l[0]&&l[0]<=d.x+d.width&&d.y<=l[1]&&l[1]<=d.y+d.height)i={node:a,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(Fe);function dd(){return{nodeGroup:[],background:[],content:[]}}function NH(r,t,e,o,i,n,a,s,l,d){if(!a)return;var c=a.getLayout(),u=r.getData(),h=a.getModel();if(u.setItemGraphicEl(a.dataIndex,null),!c||!c.isInView)return;var g=c.width,p=c.height,x=c.borderWidth,m=c.invisible,f=a.getRawIndex(),v=s&&s.getRawIndex(),y=a.viewChildren,_=c.upperHeight,S=y&&y.length,b=h.getModel("itemStyle"),A=h.getModel(["emphasis","itemStyle"]),M=h.getModel(["blur","itemStyle"]),T=h.getModel(["select","itemStyle"]),w=b.get("borderRadius")||0,C=Q("nodeGroup",t1);if(!C)return;if(l.add(C),C.x=c.x||0,C.y=c.y||0,C.markRedraw(),bh(C).nodeWidth=g,bh(C).nodeHeight=p,c.isAboveViewRoot)return C;var P=Q("background",JC,d,OH);P&&D(C,P,S&&c.upperLabelHeight);var L=h.getModel("emphasis"),$=L.get("focus"),O=L.get("blurScope"),N=L.get("disabled"),R=$==="ancestor"?a.getAncestorsIndices():$==="descendant"?a.getDescendantIndices():$;if(S)ll(C)&&gn(C,!1),P&&(gn(P,!N),u.setItemGraphicEl(a.dataIndex,P),xp(P,R,O));else{var I=Q("content",JC,d,BH);I&&G(C,I),P.disableMorphing=!0,P&&ll(P)&&gn(P,!1),gn(C,!N),u.setItemGraphicEl(a.dataIndex,C),xp(C,R,O)}return C;function D(B,F,U){var X=he(F);if(X.dataIndex=a.dataIndex,X.seriesIndex=r.seriesIndex,F.setShape({x:0,y:0,width:g,height:p,r:w}),m)k(F);else{F.invisible=!1;var j=a.getVisual("style"),J=j.stroke,ge=tP(b);ge.fill=J;var fe=zn(A);fe.fill=A.get("borderColor");var Oe=zn(M);Oe.fill=M.get("borderColor");var Ve=zn(T);if(Ve.fill=T.get("borderColor"),U){var _e=g-2*x;H(F,J,j.opacity,{x,y:0,width:_e,height:_})}else F.removeTextContent();F.setStyle(ge),F.ensureState("emphasis").style=fe,F.ensureState("blur").style=Oe,F.ensureState("select").style=Ve,hn(F)}B.add(F)}function G(B,F){var U=he(F);U.dataIndex=a.dataIndex,U.seriesIndex=r.seriesIndex;var X=Math.max(g-2*x,0),j=Math.max(p-2*x,0);if(F.culling=!0,F.setShape({x,y:x,width:X,height:j,r:w}),m)k(F);else{F.invisible=!1;var J=a.getVisual("style"),ge=J.fill,fe=tP(b);fe.fill=ge,fe.decal=J.decal;var Oe=zn(A),Ve=zn(M),_e=zn(T);H(F,ge,J.opacity,null),F.setStyle(fe),F.ensureState("emphasis").style=Oe,F.ensureState("blur").style=Ve,F.ensureState("select").style=_e,hn(F)}B.add(F)}function k(B){!B.invisible&&n.push(B)}function H(B,F,U,X){var j=h.getModel(X?eP:qC),J=lt(h.get("name"),null),ge=j.getShallow("show");At(B,gt(h,X?eP:qC),{defaultText:ge?J:null,inheritColor:F,defaultOpacity:U,labelFetcher:r,labelDataIndex:a.dataIndex});var fe=B.getTextContent();if(fe){var Oe=fe.style,Ve=rc(Oe.padding||0);X&&(B.setTextConfig({layoutRect:X}),fe.disableLabelLayout=!0),fe.beforeUpdate=function(){var Zt=Math.max((X?X.width:B.shape.width)-Ve[1]-Ve[3],0),_t=Math.max((X?X.height:B.shape.height)-Ve[0]-Ve[2],0);(Oe.width!==Zt||Oe.height!==_t)&&fe.setStyle({width:Zt,height:_t})},Oe.truncateMinChar=2,Oe.lineOverflow="truncate",z(Oe,X,c);var _e=fe.getState("emphasis");z(_e?_e.style:null,X,c)}}function z(B,F,U){var X=B?B.text:null;if(!F&&U.isLeafRoot&&X!=null){var j=r.get("drillDownIcon",!0);B.text=j?j+" "+X:X}}function Q(B,F,U,X){var j=v!=null&&e[B][v],J=i[B];return j?(e[B][v]=null,q(J,j)):m||(j=new F,j instanceof xr&&(j.z2=kH(U,X)),se(J,j)),t[B][f]=j}function q(B,F){var U=B[f]={};F instanceof t1?(U.oldX=F.x,U.oldY=F.y):U.oldShape=W({},F.shape)}function se(B,F){var U=B[f]={},X=a.parentNode,j=F instanceof ue;if(X&&(!o||o.direction==="drillDown")){var J=0,ge=0,fe=i.background[X.getRawIndex()];!o&&fe&&fe.oldShape&&(J=fe.oldShape.width,ge=fe.oldShape.height),j?(U.oldX=0,U.oldY=ge):U.oldShape={x:J,y:ge,width:0,height:0}}U.fadein=!j}}function kH(r,t){return r*DH+t}const RH=GH;var cd=E,FH=de,Mh=-1,r1=function(){function r(t){var e=t.mappingMethod,o=t.type,i=this.option=ce(t);this.type=o,this.mappingMethod=e,this._normalizeData=XH[e];var n=r.visualHandlers[o];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[e],e==="piecewise"?(o1(i),VH(i)):e==="category"?i.categories?HH(i):o1(i,!0):(Pt(e!=="linear"||i.dataExtent),o1(i))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return re(this._normalizeData,this)},r.listVisualTypes=function(){return Ae(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,o){de(t)?E(t,e,o):e.call(o,t)},r.mapVisual=function(t,e,o){var i,n=K(t)?[]:de(t)?{}:(i=!0,null);return r.eachVisual(t,function(a,s){var l=e.call(o,a,s);i?n=l:n[s]=l}),n},r.retrieveVisuals=function(t){var e={},o;return t&&cd(r.visualHandlers,function(i,n){t.hasOwnProperty(n)&&(e[n]=t[n],o=!0)}),o?e:null},r.prepareVisualTypes=function(t){if(K(t))t=t.slice();else if(FH(t)){var e=[];cd(t,function(o,i){e.push(i)}),t=e}else return[];return t.sort(function(o,i){return i==="color"&&o!=="color"&&o.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,o){for(var i,n=1/0,a=0,s=e.length;a=0;n--)o[n]==null&&(delete e[t[n]],t.pop())}function o1(r,t){var e=r.visual,o=[];de(e)?cd(e,function(n){o.push(n)}):e!=null&&o.push(e);var i={color:1,symbol:1};!t&&o.length===1&&!i.hasOwnProperty(r.type)&&(o[1]=o[0]),oP(r,o)}function Ah(r){return{applyVisual:function(t,e,o){var i=this.mapValueToVisual(t);o("color",r(e("color"),i))},_normalizedToVisual:i1([0,1])}}function rP(r){var t=this.option.visual;return t[Math.round(Ne(r,[0,1],[0,t.length-1],!0))]||{}}function ud(r){return function(t,e,o){o(r,this.mapValueToVisual(t))}}function hd(r){var t=this.option.visual;return t[this.option.loop&&r!==Mh?r%t.length:r]}function Kn(){return this.option.visual[0]}function i1(r){return{linear:function(t){return Ne(t,r,this.option.visual,!0)},category:hd,piecewise:function(t,e){var o=n1.call(this,e);return o==null&&(o=Ne(t,r,this.option.visual,!0)),o},fixed:Kn}}function n1(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var o=r1.findPieceIndex(r,e),i=e[o];if(i&&i.visual)return i.visual[this.type]}}function oP(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=Y(t,function(e){var o=kt(e);return o||[0,0,0,1]})),t}var XH={linear:function(r){return Ne(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=r1.findPieceIndex(r,t,!0);if(e!=null)return Ne(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??Mh},fixed:qe};function Th(r,t,e){return r?t<=e:t=e.length||x===e[x.depth]){var f=YH(i,l,x,m,p,o);nP(x,f,e,o)}})}}}function zH(r,t,e){var o=W({},t),i=e.designatedVisualItemStyle;return E(["color","colorAlpha","colorSaturation"],function(n){i[n]=t[n];var a=r.get(n);i[n]=null,a!=null&&(o[n]=a)}),o}function aP(r){var t=a1(r,"color");if(t){var e=a1(r,"colorAlpha"),o=a1(r,"colorSaturation");return o&&(t=ha(t,null,null,o)),e&&(t=Xs(t,e)),t}}function KH(r,t){return t!=null?ha(t,null,null,r):null}function a1(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function ZH(r,t,e,o,i,n){if(!(!n||!n.length)){var a=s1(t,"color")||i.color!=null&&i.color!=="none"&&(s1(t,"colorAlpha")||s1(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),d=e.dataExtent.slice();s!=null&&sd[1]&&(d[1]=l);var c=t.get("colorMappingBy"),u={type:a.name,dataExtent:d,visual:a.range};u.type==="color"&&(c==="index"||c==="id")?(u.mappingMethod="category",u.loop=!0):u.mappingMethod="linear";var h=new wt(u);return iP(h).drColorMappingBy=c,h}}}function s1(r,t){var e=r.get(t);return K(e)&&e.length?{name:t,range:e}:null}function YH(r,t,e,o,i,n){var a=W({},t);if(i){var s=i.type,l=s==="color"&&iP(i).drColorMappingBy,d=l==="index"?o:l==="id"?n.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));a[s]=i.mapValueToVisual(d)}return a}var gd=Math.max,wh=Math.min,sP=ct,l1=E,lP=["itemStyle","borderWidth"],QH=["itemStyle","gapWidth"],JH=["upperLabel","show"],jH=["upperLabel","height"];const qH={seriesType:"treemap",reset:function(r,t,e,o){var i=e.getWidth(),n=e.getHeight(),a=r.option,s=it(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),l=a.size||[],d=ee(sP(s.width,l[0]),i),c=ee(sP(s.height,l[1]),n),u=o&&o.type,h=["treemapZoomToNode","treemapRootToNode"],g=sd(o,h,r),p=u==="treemapRender"||u==="treemapMove"?o.rootRect:null,x=r.getViewRoot(),m=zC(x);if(u!=="treemapMove"){var f=u==="treemapZoomToNode"?nX(r,g,x,d,c):p?[p.width,p.height]:[d,c],v=a.sort;v&&v!=="asc"&&v!=="desc"&&(v="desc");var y={squareRatio:a.squareRatio,sort:v,leafDepth:a.leafDepth};x.hostTree.clearLayouts();var _={x:0,y:0,width:f[0],height:f[1],area:f[0]*f[1]};x.setLayout(_),dP(x,y,!1,0),_=x.getLayout(),l1(m,function(b,A){var M=(m[A+1]||x).getValue();b.setLayout(W({dataExtent:[M,M],borderWidth:0,upperHeight:0},_))})}var S=r.getData().tree.root;S.setLayout(aX(s,p,g),!0),r.setLayoutInfo(s),uP(S,new ye(-s.x,-s.y,i,n),m,x,0)}};function dP(r,t,e,o){var i,n;if(!r.isRemoved()){var a=r.getLayout();i=a.width,n=a.height;var s=r.getModel(),l=s.get(lP),d=s.get(QH)/2,c=hP(s),u=Math.max(l,c),h=l-d,g=u-d;r.setLayout({borderWidth:l,upperHeight:u,upperLabelHeight:c},!0),i=gd(i-2*h,0),n=gd(n-h-g,0);var p=i*n,x=eX(r,s,p,t,e,o);if(x.length){var m={x:h,y:g,width:i,height:n},f=wh(i,n),v=1/0,y=[];y.area=0;for(var _=0,S=x.length;_=0;l--){var d=i[o==="asc"?a-l-1:l].getValue();d/e*ts[1]&&(s[1]=d)})),{sum:o,dataExtent:s}}function iX(r,t,e){for(var o=0,i=1/0,n=0,a=void 0,s=r.length;no&&(o=a));var l=r.area*r.area,d=t*t*e;return l?gd(d*o/l,l/(d*i)):1/0}function cP(r,t,e,o,i){var n=t===e.width?0:1,a=1-n,s=["x","y"],l=["width","height"],d=e[s[n]],c=t?r.area/t:0;(i||c>e[l[a]])&&(c=e[l[a]]);for(var u=0,h=r.length;uGm&&(d=Gm),n=s}do&&(o=t);var n=o%2?o+2:o+3;i=[];for(var a=0;a0&&(S[0]=-S[0],S[1]=-S[1]);var A=_[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var M=-Math.atan2(_[1],_[0]);u[0].8?"left":h[0]<-.8?"right":"center",x=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":n.x=-h[0]*f+c[0],n.y=-h[1]*v+c[1],p=h[0]>.8?"right":h[0]<-.8?"left":"center",x=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=f*A+c[0],n.y=c[1]+T,p=_[0]<0?"right":"left",n.originX=-f*A,n.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=b[0],n.y=b[1]+T,p="center",n.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-f*A+u[0],n.y=u[1]+T,p=_[0]>=0?"right":"left",n.originX=f*A,n.originY=-T;break}n.scaleX=n.scaleY=a,n.setStyle({verticalAlign:n.__verticalAlign||x,align:n.__align||p})}},t}(ue);const y1=TX;var wX=function(){function r(t){this.group=new ue,this._LineCtor=t||y1}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var o=this,i=o.group,n=o._lineData;o._lineData=t,n||i.removeAll();var a=MP(t);t.diff(n).add(function(s){e._doAdd(t,s,a)}).update(function(s,l){e._doUpdate(n,t,l,s,a)}).remove(function(s){i.remove(n.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,o){e.updateLayout(t,o)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=MP(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function o(s){!s.isGroup&&!CX(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function MP(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:gt(t)}}function AP(r){return isNaN(r[0])||isNaN(r[1])}function _1(r){return r&&!AP(r[0])&&!AP(r[1])}const S1=wX;var b1=[],M1=[],A1=[],ns=vt,T1=qo,TP=Math.abs;function wP(r,t,e){for(var o=r[0],i=r[1],n=r[2],a=1/0,s,l=e*e,d=.1,c=.1;c<=.9;c+=.1){b1[0]=ns(o[0],i[0],n[0],c),b1[1]=ns(o[1],i[1],n[1],c);var u=TP(T1(b1,t)-l);u=0?s=s+d:s=s-d:p>=0?s=s-d:s=s+d}return s}function w1(r,t){var e=[],o=Rs,i=[[],[],[]],n=[[],[]],a=[];t/=2,r.eachEdge(function(s,l){var d=s.getLayout(),c=s.getVisual("fromSymbol"),u=s.getVisual("toSymbol");d.__original||(d.__original=[to(d[0]),to(d[1])],d[2]&&d.__original.push(to(d[2])));var h=d.__original;if(d[2]!=null){if(Lt(i[0],h[0]),Lt(i[1],h[2]),Lt(i[2],h[1]),c&&c!=="none"){var g=fd(s.node1),p=wP(i,h[0],g*t);o(i[0][0],i[1][0],i[2][0],p,e),i[0][0]=e[3],i[1][0]=e[4],o(i[0][1],i[1][1],i[2][1],p,e),i[0][1]=e[3],i[1][1]=e[4]}if(u&&u!=="none"){var g=fd(s.node2),p=wP(i,h[1],g*t);o(i[0][0],i[1][0],i[2][0],p,e),i[1][0]=e[1],i[2][0]=e[2],o(i[0][1],i[1][1],i[2][1],p,e),i[1][1]=e[1],i[2][1]=e[2]}Lt(d[0],i[0]),Lt(d[1],i[2]),Lt(d[2],i[1])}else{if(Lt(n[0],h[0]),Lt(n[1],h[1]),jo(a,n[1],n[0]),Hi(a,a),c&&c!=="none"){var g=fd(s.node1);oc(n[0],n[0],a,g*t)}if(u&&u!=="none"){var g=fd(s.node2);oc(n[1],n[1],a,-g*t)}Lt(d[0],n[0]),Lt(d[1],n[1])}})}function CP(r){return r.type==="view"}var PX=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,o){var i=new Ql,n=new S1,a=this.group;this._controller=new od(o.getZr()),this._controllerHost={target:a},a.add(i.group),a.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},t.prototype.render=function(e,o,i){var n=this,a=e.coordinateSystem;this._model=e;var s=this._symbolDraw,l=this._lineDraw,d=this.group;if(CP(a)){var c={x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY};this._firstRender?d.attr(c):$e(d,c,e)}w1(e.getGraph(),pd(e));var u=e.getData();s.updateData(u);var h=e.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(e,o,i),clearTimeout(this._layoutTimeout);var g=e.forceLayout,p=e.get(["force","layoutAnimation"]);g&&this._startForceLayoutIteration(g,p);var x=e.get("layout");u.graph.eachNode(function(y){var _=y.dataIndex,S=y.getGraphicEl(),b=y.getModel();if(S){S.off("drag").off("dragend");var A=b.get("draggable");A&&S.on("drag",function(T){switch(x){case"force":g.warmUp(),!n._layouting&&n._startForceLayoutIteration(g,p),g.setFixed(_),u.setItemLayout(_,[S.x,S.y]);break;case"circular":u.setItemLayout(_,[S.x,S.y]),y.setLayout({fixed:!0},!0),m1(e,"symbolSize",y,[T.offsetX,T.offsetY]),n.updateLayout(e);break;case"none":default:u.setItemLayout(_,[S.x,S.y]),h1(e.getGraph(),e),n.updateLayout(e);break}}).on("dragend",function(){g&&g.setUnfixed(_)}),S.setDraggable(A,!!b.get("cursor"));var M=b.get(["emphasis","focus"]);M==="adjacency"&&(he(S).focus=y.getAdjacentDataIndices())}}),u.graph.eachEdge(function(y){var _=y.getGraphicEl(),S=y.getModel().get(["emphasis","focus"]);_&&S==="adjacency"&&(he(_).focus={edge:[y.dataIndex],node:[y.node1.dataIndex,y.node2.dataIndex]})});var m=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),f=u.getLayout("cx"),v=u.getLayout("cy");u.graph.eachNode(function(y){xP(y,m,f,v)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,o){var i=this;(function n(){e.step(function(a){i.updateLayout(i._model),(i._layouting=!a)&&(o?i._layoutTimeout=setTimeout(n,16):n())})})()},t.prototype._updateController=function(e,o,i){var n=this,a=this._controller,s=this._controllerHost,l=this.group;if(a.setPointerChecker(function(d,c,u){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(c,u)&&!fh(d,i,e)}),!CP(e.coordinateSystem)){a.disable();return}a.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(d){Vf(s,d.dx,d.dy),i.dispatchAction({seriesId:e.id,type:"graphRoam",dx:d.dx,dy:d.dy})}).on("zoom",function(d){Hf(s,d.scale,d.originX,d.originY),i.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:d.scale,originX:d.originX,originY:d.originY}),n._updateNodeAndLinkScale(),w1(e.getGraph(),pd(e)),n._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,o=e.getData(),i=pd(e);o.eachItemGraphicEl(function(n,a){n&&n.setSymbolScale(i)})},t.prototype.updateLayout=function(e){w1(e.getGraph(),pd(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Fe);const LX=PX;function as(r){return"_EC_"+r}var IX=function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var o=this._nodesMap;if(!o[as(t)]){var i=new Zn(t,e);return i.hostGraph=this,this.nodes.push(i),o[as(t)]=i,i}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[as(t)]},r.prototype.addEdge=function(t,e,o){var i=this._nodesMap,n=this._edgesMap;if(Ee(t)&&(t=this.nodes[t]),Ee(e)&&(e=this.nodes[e]),t instanceof Zn||(t=i[as(t)]),e instanceof Zn||(e=i[as(e)]),!(!t||!e)){var a=t.id+"-"+e.id,s=new PP(t,e,o);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),n[a]=s,s}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof Zn&&(t=t.id),e instanceof Zn&&(e=e.id);var o=this._edgesMap;return this._directed?o[t+"-"+e]:o[t+"-"+e]||o[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var o=this.nodes,i=o.length,n=0;n=0&&t.call(e,o[n],n)},r.prototype.eachEdge=function(t,e){for(var o=this.edges,i=o.length,n=0;n=0&&o[n].node1.dataIndex>=0&&o[n].node2.dataIndex>=0&&t.call(e,o[n],n)},r.prototype.breadthFirstTraverse=function(t,e,o,i){if(e instanceof Zn||(e=this._nodesMap[as(e)]),!!e){for(var n=o==="out"?"outEdges":o==="in"?"inEdges":"edges",a=0;a=0&&l.node2.dataIndex>=0});for(var n=0,a=i.length;n=0&&this[r][t].setItemVisual(this.dataIndex,e,o)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,o){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,o)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}je(Zn,LP("hostGraph","data")),je(PP,LP("hostGraph","edgeData"));const EX=IX;function IP(r,t,e,o,i){for(var n=new EX(o),a=0;a "+h)),d++)}var g=e.get("coordinateSystem"),p;if(g==="cartesian2d"||g==="polar")p=po(r,e);else{var x=Ra.get(g),m=x?x.dimensions||[]:[];Se(m,"value")<0&&m.concat(["value"]);var f=Ya(r,{coordDimensions:m,encodeDefine:e.getEncode()}).dimensions;p=new Bt(f,e),p.initData(r)}var v=new Bt(["value"],e);return v.initData(l,s),i&&i(p,v),UC({mainData:p,struct:n,structAttr:"graph",datas:{node:p,edge:v},datasAttr:{node:"data",edge:"edgeData"}}),n.update(),n}var $X=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var o=this;function i(){return o._categoriesData}this.legendVisualProvider=new ed(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),ji(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,o){var i=e.edges||e.links||[],n=e.data||e.nodes||[],a=this;if(n&&i){gX(this);var s=IP(n,i,this,!0,l);return E(s.edges,function(d){mX(d.node1,d.node2,this,d.dataIndex)},this),s.data}function l(d,c){d.wrapMethod("getItemModel",function(p){var x=a._categoriesModels,m=p.getShallow("category"),f=x[m];return f&&(f.parentModel=p.parentModel,p.parentModel=f),p});var u=Re.prototype.getModel;function h(p,x){var m=u.call(this,p,x);return m.resolveParentPath=g,m}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=g,p.getModel=h,p});function g(p){if(p&&(p[0]==="label"||p[1]==="label")){var x=p.slice();return p[0]==="label"?x[0]="edgeLabel":p[1]==="label"&&(x[1]="edgeLabel"),x}return p}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,o,i){if(i==="edge"){var n=this.getData(),a=this.getDataParams(e,i),s=n.graph.getEdgeByIndex(e),l=n.getName(s.node1.dataIndex),d=n.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),d!=null&&c.push(d),mt("nameValue",{name:c.join(" > "),value:a.value,noValue:a.value==null})}var u=l2({series:this,dataIndex:e,multipleSeries:o});return u},t.prototype._updateCategoriesData=function(){var e=Y(this.option.categories||[],function(i){return i.value!=null?i:W({value:0},i)}),o=new Bt(["value"],this);o.initData(e),this._categoriesData=o,this._categoriesModels=o.mapArray(function(i){return o.getItemModel(i)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(ze);const DX=$X;var OX={type:"graphRoam",event:"graphRoam",update:"none"};function BX(r){r.registerChartView(LX),r.registerSeriesModel(DX),r.registerProcessor(lX),r.registerVisual(dX),r.registerVisual(cX),r.registerLayout(pX),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,xX),r.registerLayout(yX),r.registerCoordinateSystem("graphView",{dimensions:nd.dimensions,create:SX}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},qe),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},qe),r.registerAction(OX,function(t,e,o){e.eachComponent({mainType:"series",query:t},function(i){var n=i.coordinateSystem,a=Kf(n,t,void 0,o);i.setCenter&&i.setCenter(a.center),i.setZoom&&i.setZoom(a.zoom)})})}var GX=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),NX=function(r){V(t,r);function t(e){var o=r.call(this,e)||this;return o.type="pointer",o}return t.prototype.getDefaultShape=function(){return new GX},t.prototype.buildPath=function(e,o){var i=Math.cos,n=Math.sin,a=o.r,s=o.width,l=o.angle,d=o.x-i(l)*s*(s>=a/3?1:2),c=o.y-n(l)*s*(s>=a/3?1:2);l=o.angle-Math.PI/2,e.moveTo(d,c),e.lineTo(o.x+i(l)*s,o.y+n(l)*s),e.lineTo(o.x+i(o.angle)*a,o.y+n(o.angle)*a),e.lineTo(o.x-i(l)*s,o.y-n(l)*s),e.lineTo(d,c)},t}(Me);const kX=NX;function RX(r,t){var e=r.get("center"),o=t.getWidth(),i=t.getHeight(),n=Math.min(o,i),a=ee(e[0],t.getWidth()),s=ee(e[1],t.getHeight()),l=ee(r.get("radius"),n/2);return{cx:a,cy:s,r:l}}function Lh(r,t){var e=r==null?"":r+"";return t&&(te(t)?e=t.replace("{value}",e):ae(t)&&(e=t(r))),e}var FX=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,o,i){this.group.removeAll();var n=e.get(["axisLine","lineStyle","color"]),a=RX(e,i);this._renderMain(e,o,i,n,a),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,o,i,n,a){var s=this.group,l=e.get("clockwise"),d=-e.get("startAngle")/180*Math.PI,c=-e.get("endAngle")/180*Math.PI,u=e.getModel("axisLine"),h=u.get("roundCap"),g=h?dh:Vt,p=u.get("show"),x=u.getModel("lineStyle"),m=x.get("width"),f=[d,c];np(f,!l),d=f[0],c=f[1];for(var v=c-d,y=d,_=[],S=0;p&&S=T&&(w===0?0:n[w-1][0])Math.PI/2&&(Q+=Math.PI)):z==="tangential"?Q=-M-Math.PI/2:Ee(z)&&(Q=z*Math.PI/180),Q===0?u.add(new Le({style:Ue(y,{text:D,x:k,y:H,verticalAlign:O<-.8?"top":O>.8?"bottom":"middle",align:$<-.4?"left":$>.4?"right":"center"},{inheritColor:G}),silent:!0})):u.add(new Le({style:Ue(y,{text:D,x:k,y:H,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:k,originY:H,rotation:Q}))}if(v.get("show")&&N!==_){var R=v.get("distance");R=R?R+c:c;for(var q=0;q<=S;q++){$=Math.cos(M),O=Math.sin(M);var se=new ht({shape:{x1:$*(p-R)+h,y1:O*(p-R)+g,x2:$*(p-A-R)+h,y2:O*(p-A-R)+g},silent:!0,style:P});P.stroke==="auto"&&se.setStyle({stroke:n((N+q/S)/_)}),u.add(se),M+=w}M-=w}else M+=T}},t.prototype._renderPointer=function(e,o,i,n,a,s,l,d,c){var u=this.group,h=this._data,g=this._progressEls,p=[],x=e.get(["pointer","show"]),m=e.getModel("progress"),f=m.get("show"),v=e.getData(),y=v.mapDimension("value"),_=+e.get("min"),S=+e.get("max"),b=[_,S],A=[s,l];function M(w,C){var P=v.getItemModel(w),L=P.getModel("pointer"),$=ee(L.get("width"),a.r),O=ee(L.get("length"),a.r),N=e.get(["pointer","icon"]),R=L.get("offsetCenter"),I=ee(R[0],a.r),D=ee(R[1],a.r),G=L.get("keepAspect"),k;return N?k=tt(N,I-$/2,D-O,$,O,null,G):k=new kX({shape:{angle:-Math.PI/2,width:$,r:O,x:I,y:D}}),k.rotation=-(C+Math.PI/2),k.x=a.cx,k.y=a.cy,k}function T(w,C){var P=m.get("roundCap"),L=P?dh:Vt,$=m.get("overlap"),O=$?m.get("width"):c/v.count(),N=$?a.r-O:a.r-(w+1)*O,R=$?a.r:a.r-w*O,I=new L({shape:{startAngle:s,endAngle:C,cx:a.cx,cy:a.cy,clockwise:d,r0:N,r:R}});return $&&(I.z2=S-v.get(y,w)%S),I}(f||x)&&(v.diff(h).add(function(w){var C=v.get(y,w);if(x){var P=M(w,s);Ze(P,{rotation:-((isNaN(+C)?A[0]:Ne(C,b,A,!0))+Math.PI/2)},e),u.add(P),v.setItemGraphicEl(w,P)}if(f){var L=T(w,s),$=m.get("clip");Ze(L,{shape:{endAngle:Ne(C,b,A,$)}},e),u.add(L),lp(e.seriesIndex,v.dataType,w,L),p[w]=L}}).update(function(w,C){var P=v.get(y,w);if(x){var L=h.getItemGraphicEl(C),$=L?L.rotation:s,O=M(w,$);O.rotation=$,$e(O,{rotation:-((isNaN(+P)?A[0]:Ne(P,b,A,!0))+Math.PI/2)},e),u.add(O),v.setItemGraphicEl(w,O)}if(f){var N=g[C],R=N?N.shape.endAngle:s,I=T(w,R),D=m.get("clip");$e(I,{shape:{endAngle:Ne(P,b,A,D)}},e),u.add(I),lp(e.seriesIndex,v.dataType,w,I),p[w]=I}}).execute(),v.each(function(w){var C=v.getItemModel(w),P=C.getModel("emphasis"),L=P.get("focus"),$=P.get("blurScope"),O=P.get("disabled");if(x){var N=v.getItemGraphicEl(w),R=v.getItemVisual(w,"style"),I=R.fill;if(N instanceof yt){var D=N.style;N.useStyle(W({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},R))}else N.useStyle(R),N.type!=="pointer"&&N.setColor(I);N.setStyle(C.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",n(Ne(v.get(y,w),b,[0,1],!0))),N.z2EmphasisLift=0,Mt(N,C),Je(N,L,$,O)}if(f){var G=p[w];G.useStyle(v.getItemVisual(w,"style")),G.setStyle(C.getModel(["progress","itemStyle"]).getItemStyle()),G.z2EmphasisLift=0,Mt(G,C),Je(G,L,$,O)}}),this._progressEls=p)},t.prototype._renderAnchor=function(e,o){var i=e.getModel("anchor"),n=i.get("show");if(n){var a=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),d=i.get("keepAspect"),c=tt(s,o.cx-a/2+ee(l[0],o.r),o.cy-a/2+ee(l[1],o.r),a,a,null,d);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(e,o,i,n,a){var s=this,l=e.getData(),d=l.mapDimension("value"),c=+e.get("min"),u=+e.get("max"),h=new ue,g=[],p=[],x=e.isAnimationEnabled(),m=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(f){g[f]=new Le({silent:!0}),p[f]=new Le({silent:!0})}).update(function(f,v){g[f]=s._titleEls[v],p[f]=s._detailEls[v]}).execute(),l.each(function(f){var v=l.getItemModel(f),y=l.get(d,f),_=new ue,S=n(Ne(y,[c,u],[0,1],!0)),b=v.getModel("title");if(b.get("show")){var A=b.get("offsetCenter"),M=a.cx+ee(A[0],a.r),T=a.cy+ee(A[1],a.r),w=g[f];w.attr({z2:m?0:2,style:Ue(b,{x:M,y:T,text:l.getName(f),align:"center",verticalAlign:"middle"},{inheritColor:S})}),_.add(w)}var C=v.getModel("detail");if(C.get("show")){var P=C.get("offsetCenter"),L=a.cx+ee(P[0],a.r),$=a.cy+ee(P[1],a.r),O=ee(C.get("width"),a.r),N=ee(C.get("height"),a.r),R=e.get(["progress","show"])?l.getItemVisual(f,"style").fill:S,w=p[f],I=C.get("formatter");w.attr({z2:m?0:2,style:Ue(C,{x:L,y:$,text:Lh(y,I),width:isNaN(O)?null:O,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:R})}),Rb(w,{normal:C},y,function(G){return Lh(G,I)}),x&&Fb(w,f,l,e,{getFormattedLabel:function(G,k,H,z,Q,q){return Lh(q?q.interpolatedValue:y,I)}}),_.add(w)}h.add(_)}),this.group.add(h),this._titleEls=g,this._detailEls=p},t.type="gauge",t}(Fe);const VX=FX;var HX=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,o){return ts(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(ze);const XX=HX;function UX(r){r.registerChartView(VX),r.registerSeriesModel(XX)}var WX=["itemStyle","opacity"],zX=function(r){V(t,r);function t(e,o){var i=r.call(this)||this,n=i,a=new Xt,s=new Le;return n.setTextContent(s),i.setTextGuideLine(a),i.updateData(e,o,!0),i}return t.prototype.updateData=function(e,o,i){var n=this,a=e.hostModel,s=e.getItemModel(o),l=e.getItemLayout(o),d=s.getModel("emphasis"),c=s.get(WX);c=c??1,i||Xr(n),n.useStyle(e.getItemVisual(o,"style")),n.style.lineJoin="round",i?(n.setShape({points:l.points}),n.style.opacity=0,Ze(n,{style:{opacity:c}},a,o)):$e(n,{style:{opacity:c},shape:{points:l.points}},a,o),Mt(n,s),this._updateLabel(e,o),Je(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},t.prototype._updateLabel=function(e,o){var i=this,n=this.getTextGuideLine(),a=i.getTextContent(),s=e.hostModel,l=e.getItemModel(o),d=e.getItemLayout(o),c=d.label,u=e.getItemVisual(o,"style"),h=u.fill;At(a,gt(l),{labelFetcher:e.hostModel,labelDataIndex:o,defaultOpacity:u.opacity,defaultText:e.getName(o)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:h,outsideFill:h});var g=c.linePoints;n.setShape({points:g}),i.textGuideLineConfig={anchor:g?new ve(g[0][0],g[0][1]):null},$e(a,{style:{x:c.x,y:c.y}},s,o),a.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),sf(i,lf(l),{stroke:h})},t}(Ht),KX=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,o,i){var n=e.getData(),a=this._data,s=this.group;n.diff(a).add(function(l){var d=new zX(n,l);n.setItemGraphicEl(l,d),s.add(d)}).update(function(l,d){var c=a.getItemGraphicEl(d);c.updateData(n,l),s.add(c),n.setItemGraphicEl(l,c)}).remove(function(l){var d=a.getItemGraphicEl(l);ml(d,e,l)}).execute(),this._data=n},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Fe);const ZX=KX;var YX=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new ed(re(this.getData,this),re(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,o){return ts(this,{coordDimensions:["value"],encodeDefaulter:me(Zp,this)})},t.prototype._defaultLabelLine=function(e){ji(e,"labelLine",["show"]);var o=e.labelLine,i=e.emphasis.labelLine;o.show=o.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var o=this.getData(),i=r.prototype.getDataParams.call(this,e),n=o.mapDimension("value"),a=o.getSum(n);return i.percent=a?+(o.get(n,e)/a*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(ze);const QX=YX;function JX(r,t){return it(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function jX(r,t){for(var e=r.mapDimension("value"),o=r.mapArray(e,function(l){return l}),i=[],n=t==="ascending",a=0,s=r.count();axU)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!P1(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),o=e.behavior;o==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(o==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:o==="jump"?null:{duration:0}})}}};function P1(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const _U=vU;var SU=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var o=this.option;e&&xe(o,e,!0),this._initDimensions()},t.prototype.contains=function(e,o){var i=e.get("parallelIndex");return i!=null&&o.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(e){E(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(o){e.hasOwnProperty(o)&&(this.option[o]=e[o])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],o=this.parallelAxisIndex=[],i=Ge(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);E(i,function(n){e.push("dim"+n.get("dim")),o.push(n.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Te);const bU=SU;var MU=function(r){V(t,r);function t(e,o,i,n,a){var s=r.call(this,e,o,i)||this;return s.type=n||"value",s.axisIndex=a,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Tr);const AU=MU;function Yn(r,t,e,o,i,n){r=r||0;var a=e[1]-e[0];if(i!=null&&(i=ss(i,[0,a])),n!=null&&(n=Math.max(n,i??0)),o==="all"){var s=Math.abs(t[1]-t[0]);s=ss(s,[0,a]),i=n=ss(s,[i,n]),o=0}t[0]=ss(t[0],e),t[1]=ss(t[1],e);var l=L1(t,o);t[o]+=r;var d=i||0,c=e.slice();l.sign<0?c[0]+=d:c[1]-=d,t[o]=ss(t[o],c);var u;return u=L1(t,o),i!=null&&(u.sign!==l.sign||u.spann&&(t[1-o]=t[o]+u.sign*n),t}function L1(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function ss(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var I1=E,OP=Math.min,BP=Math.max,GP=Math.floor,TU=Math.ceil,NP=Qe,wU=Math.PI,CU=function(){function r(t,e,o){this.type="parallel",this._axesMap=ne(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,o)}return r.prototype._init=function(t,e,o){var i=t.dimensions,n=t.parallelAxisIndex;I1(i,function(a,s){var l=n[s],d=e.getComponent("parallelAxis",l),c=this._axesMap.set(a,new AU(a,Hl(d),[0,0],d.get("type"),l)),u=c.type==="category";c.onBand=u&&d.get("boundaryGap"),c.inverse=d.get("inverse"),d.axis=c,c.model=d,c.coordinateSystem=d.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),o=e.axisBase,i=e.layoutBase,n=e.pixelDimIndex,a=t[1-n],s=t[n];return a>=o&&a<=o+e.axisLength&&s>=i&&s<=i+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(o){if(t.contains(o,e)){var i=o.getData();I1(this.dimensions,function(n){var a=this._axesMap.get(n);a.scale.unionExtentFromData(i,i.mapDimension(n)),$n(a.scale,a.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=it(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,o=["x","y"],i=["width","height"],n=t.get("layout"),a=n==="horizontal"?0:1,s=e[i[a]],l=[0,s],d=this.dimensions.length,c=Ih(t.get("axisExpandWidth"),l),u=Ih(t.get("axisExpandCount")||0,[0,d]),h=t.get("axisExpandable")&&d>3&&d>u&&u>1&&c>0&&s>0,g=t.get("axisExpandWindow"),p;if(g)p=Ih(g[1]-g[0],l),g[1]=g[0]+p;else{p=Ih(c*(u-1),l);var x=t.get("axisExpandCenter")||GP(d/2);g=[c*x-p/2],g[1]=g[0]+p}var m=(s-p)/(d-u);m<3&&(m=0);var f=[GP(NP(g[0]/c,1))+1,TU(NP(g[1]/c,1))-1],v=m/c*g[0];return{layout:n,pixelDimIndex:a,layoutBase:e[o[a]],layoutLength:s,axisBase:e[o[1-a]],axisLength:e[i[1-a]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:g,axisCount:d,winInnerIndices:f,axisExpandWindow0Pos:v}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,o=this.dimensions,i=this._makeLayoutInfo(),n=i.layout;e.each(function(a){var s=[0,i.axisLength],l=a.inverse?1:0;a.setExtent(s[l],s[1-l])}),I1(o,function(a,s){var l=(i.axisExpandable?LU:PU)(s,i),d={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:wU/2,vertical:0},u=[d[n].x+t.x,d[n].y+t.y],h=c[n],g=Jt();ei(g,g,h),Gr(g,g,u),this._axesLayout[a]={position:u,rotation:h,transform:g,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,o,i){o==null&&(o=0),i==null&&(i=t.count());var n=this._axesMap,a=this.dimensions,s=[],l=[];E(a,function(m){s.push(t.mapDimension(m)),l.push(n.get(m).model)});for(var d=this.hasAxisBrushed(),c=o;cn*(1-u[0])?(d="jump",l=s-n*(1-u[2])):(l=s-n*u[1])>=0&&(l=s-n*(1-u[1]))<=0&&(l=0),l*=e.axisExpandWidth/c,l?Yn(l,i,a,"all"):d="none";else{var g=i[1]-i[0],p=a[1]*s/g;i=[BP(0,p-g/2)],i[1]=OP(a[1],i[0]+g),i[0]=i[1]-g}return{axisExpandWindow:i,behavior:d}},r}();function Ih(r,t){return OP(BP(r,t[0]),t[1])}function PU(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function LU(r,t){var e=t.layoutLength,o=t.axisExpandWidth,i=t.axisCount,n=t.axisCollapseWidth,a=t.winInnerIndices,s,l=n,d=!1,c;return r=0;i--)ar(o[i])},t.prototype.getActiveState=function(e){var o=this.activeIntervals;if(!o.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(o.length===1){var i=o[0];if(i[0]<=e&&e<=i[1])return"active"}else for(var n=0,a=o.length;nGU}function KP(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function ZP(r,t,e,o){var i=new ue;return i.add(new Pe({name:"main",style:G1(e),silent:!0,draggable:!0,cursor:"move",drift:me(JP,r,t,i,["n","s","w","e"]),ondragend:me(Jn,t,{isEnd:!0})})),E(o,function(n){i.add(new Pe({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:me(JP,r,t,i,n),ondragend:me(Jn,t,{isEnd:!0})}))}),i}function YP(r,t,e,o){var i=o.brushStyle.lineWidth||0,n=ls(i,NU),a=e[0][0],s=e[1][0],l=a-i/2,d=s-i/2,c=e[0][1],u=e[1][1],h=c-n+i/2,g=u-n+i/2,p=c-a,x=u-s,m=p+i,f=x+i;Wo(r,t,"main",a,s,p,x),o.transformable&&(Wo(r,t,"w",l,d,n,f),Wo(r,t,"e",h,d,n,f),Wo(r,t,"n",l,d,m,n),Wo(r,t,"s",l,g,m,n),Wo(r,t,"nw",l,d,n,n),Wo(r,t,"ne",h,d,n,n),Wo(r,t,"sw",l,g,n,n),Wo(r,t,"se",h,g,n,n))}function B1(r,t){var e=t.__brushOption,o=e.transformable,i=t.childAt(0);i.useStyle(G1(e)),i.attr({silent:!o,cursor:o?"move":"default"}),E([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var a=t.childOfName(n.join("")),s=n.length===1?N1(r,n[0]):UU(r,n);a&&a.attr({silent:!o,invisible:!o,cursor:o?RU[s]+"-resize":null})})}function Wo(r,t,e,o,i,n,a){var s=t.childOfName(e);s&&s.setShape(zU(k1(r,t,[[o,i],[o+n,i+a]])))}function G1(r){return le({strokeNoScale:!0},r.brushStyle)}function QP(r,t,e,o){var i=[xd(r,e),xd(t,o)],n=[ls(r,e),ls(t,o)];return[[i[0],n[0]],[i[1],n[1]]]}function XU(r){return hi(r.group)}function N1(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},o={left:"w",right:"e",top:"n",bottom:"s"},i=nu(e[t],XU(r));return o[i]}function UU(r,t){var e=[N1(r,t[0]),N1(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function JP(r,t,e,o,i,n){var a=e.__brushOption,s=r.toRectRange(a.range),l=jP(t,i,n);E(o,function(d){var c=kU[d];s[c[0]][c[1]]+=l[c[0]]}),a.range=r.fromRectRange(QP(s[0][0],s[1][0],s[0][1],s[1][1])),E1(t,e),Jn(t,{isEnd:!1})}function WU(r,t,e,o){var i=t.__brushOption.range,n=jP(r,e,o);E(i,function(a){a[0]+=n[0],a[1]+=n[1]}),E1(r,t),Jn(r,{isEnd:!1})}function jP(r,t,e){var o=r.group,i=o.transformCoordToLocal(t,e),n=o.transformCoordToLocal(0,0);return[i[0]-n[0],i[1]-n[1]]}function k1(r,t,e){var o=zP(r,t);return o&&o!==Qn?o.clipPath(e,r._transform):ce(e)}function zU(r){var t=xd(r[0][0],r[1][0]),e=xd(r[0][1],r[1][1]),o=ls(r[0][0],r[1][0]),i=ls(r[0][1],r[1][1]);return{x:t,y:e,width:o-t,height:i-e}}function KU(r,t,e){if(!(!r._brushType||YU(r,t.offsetX,t.offsetY))){var o=r._zr,i=r._covers,n=D1(r,t,e);if(!r._dragging)for(var a=0;ao.getWidth()||e<0||e>o.getHeight()}var Eh={lineX:r5(0),lineY:r5(1),rect:{createCover:function(r,t){function e(o){return o}return ZP({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=KP(r);return QP(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,o){YP(r,t,e,o)},updateCommon:B1,contain:F1},polygon:{createCover:function(r,t){var e=new ue;return e.add(new Xt({name:"main",style:G1(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Ht({name:"main",draggable:!0,drift:me(WU,r,t),ondragend:me(Jn,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,o){t.childAt(0).setShape({points:k1(r,t,e)})},updateCommon:B1,contain:F1}};function r5(r){return{createCover:function(t,e){return ZP({toRectRange:function(o){var i=[o,[0,100]];return r&&i.reverse(),i},fromRectRange:function(o){return o[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=KP(t),o=xd(e[0][r],e[1][r]),i=ls(e[0][r],e[1][r]);return[o,i]},updateCoverShape:function(t,e,o,i){var n,a=zP(t,e);if(a!==Qn&&a.getLinearBrushOtherExtent)n=a.getLinearBrushOtherExtent(r);else{var s=t._zr;n=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[o,n];r&&l.reverse(),YP(t,e,l,i)},updateCommon:B1,contain:F1}}const V1=VU;function o5(r){return r=H1(r),function(t){return Pp(t,r)}}function i5(r,t){return r=H1(r),function(e){var o=t??e,i=o?r.width:r.height,n=o?r.x:r.y;return[n,n+(i||0)]}}function n5(r,t,e){var o=H1(r);return function(i,n){return o.contain(n[0],n[1])&&!fh(i,t,e)}}function H1(r){return ye.create(r)}var QU=["axisLine","axisTickLabel","axisName"],JU=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,o){r.prototype.init.apply(this,arguments),(this._brushController=new V1(o.getZr())).on("brush",re(this._onBrush,this))},t.prototype.render=function(e,o,i,n){if(!jU(e,o,n)){this.axisModel=e,this.api=i,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new ue,this.group.add(this._axisGroup),!!e.get("show")){var s=eW(e,o),l=s.coordinateSystem,d=e.getAreaSelectStyle(),c=d.width,u=e.axis.dim,h=l.getAxisLayout(u),g=W({strokeContainThreshold:c},h),p=new Xo(e,g);E(QU,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(g,d,e,s,c,i),fl(a,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,o,i,n,a,s){var l=i.axis.getExtent(),d=l[1]-l[0],c=Math.min(30,Math.abs(d)*.1),u=ye.create({x:l[0],y:-a/2,width:d,height:a});u.x-=c,u.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:o5(u),isTargetByCursor:n5(u,s,n),getLinearBrushOtherExtent:i5(u,0)}]).enableBrush({brushType:"lineX",brushStyle:o,removeOnClick:!0}).updateCovers(qU(i))},t.prototype._onBrush=function(e){var o=e.areas,i=this.axisModel,n=i.axis,a=Y(o,function(s){return[n.coordToData(s.range[0],!0),n.coordToData(s.range[1],!0)]});(!i.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:a})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Ye);function jU(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function qU(r){var t=r.axis;return Y(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function eW(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const tW=JU;var rW={type:"axisAreaSelect",event:"axisAreaSelected"};function oW(r){r.registerAction(rW,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(o){o.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(o){o.setAxisExpand(t)})})}var iW={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function a5(r){r.registerComponentView(_U),r.registerComponentModel(bU),r.registerCoordinateSystem("parallel",DU),r.registerPreprocessor(mU),r.registerComponentModel(RP),r.registerComponentView(tW),rs(r,"parallel",RP,iW),oW(r)}function nW(r){be(a5),r.registerChartView(aU),r.registerSeriesModel(cU),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,gU)}var aW=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),sW=function(r){V(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new aW},t.prototype.buildPath=function(e,o){var i=o.extent;e.moveTo(o.x1,o.y1),e.bezierCurveTo(o.cpx1,o.cpy1,o.cpx2,o.cpy2,o.x2,o.y2),o.orient==="vertical"?(e.lineTo(o.x2+i,o.y2),e.bezierCurveTo(o.cpx2+i,o.cpy2,o.cpx1+i,o.cpy1,o.x1+i,o.y1)):(e.lineTo(o.x2,o.y2+i),e.bezierCurveTo(o.cpx2,o.cpy2+i,o.cpx1,o.cpy1+i,o.x1,o.y1+i)),e.closePath()},t.prototype.highlight=function(){Go(this)},t.prototype.downplay=function(){No(this)},t}(Me),lW=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._focusAdjacencyDisabled=!1,e}return t.prototype.render=function(e,o,i){var n=this,a=e.getGraph(),s=this.group,l=e.layoutInfo,d=l.width,c=l.height,u=e.getData(),h=e.getData("edge"),g=e.get("orient");this._model=e,s.removeAll(),s.x=l.x,s.y=l.y,a.eachEdge(function(p){var x=new sW,m=he(x);m.dataIndex=p.dataIndex,m.seriesIndex=e.seriesIndex,m.dataType="edge";var f=p.getModel(),v=f.getModel("lineStyle"),y=v.get("curveness"),_=p.node1.getLayout(),S=p.node1.getModel(),b=S.get("localX"),A=S.get("localY"),M=p.node2.getLayout(),T=p.node2.getModel(),w=T.get("localX"),C=T.get("localY"),P=p.getLayout(),L,$,O,N,R,I,D,G;x.shape.extent=Math.max(1,P.dy),x.shape.orient=g,g==="vertical"?(L=(b!=null?b*d:_.x)+P.sy,$=(A!=null?A*c:_.y)+_.dy,O=(w!=null?w*d:M.x)+P.ty,N=C!=null?C*c:M.y,R=L,I=$*(1-y)+N*y,D=O,G=$*y+N*(1-y)):(L=(b!=null?b*d:_.x)+_.dx,$=(A!=null?A*c:_.y)+P.sy,O=w!=null?w*d:M.x,N=(C!=null?C*c:M.y)+P.ty,R=L*(1-y)+O*y,I=$,D=L*y+O*(1-y),G=N),x.setShape({x1:L,y1:$,x2:O,y2:N,cpx1:R,cpy1:I,cpx2:D,cpy2:G}),x.useStyle(v.getItemStyle()),s5(x.style,g,p);var k=""+f.get("value"),H=gt(f,"edgeLabel");At(x,H,{labelFetcher:{getFormattedLabel:function(q,se,B,F,U,X){return e.getFormattedLabel(q,se,"edge",F,Br(U,H.normal&&H.normal.get("formatter"),k),X)}},labelDataIndex:p.dataIndex,defaultText:k}),x.setTextConfig({position:"inside"});var z=f.getModel("emphasis");Mt(x,f,"lineStyle",function(q){var se=q.getItemStyle();return s5(se,g,p),se}),s.add(x),h.setItemGraphicEl(p.dataIndex,x);var Q=z.get("focus");Je(x,Q==="adjacency"?p.getAdjacentDataIndices():Q==="trajectory"?p.getTrajectoryDataIndices():Q,z.get("blurScope"),z.get("disabled"))}),a.eachNode(function(p){var x=p.getLayout(),m=p.getModel(),f=m.get("localX"),v=m.get("localY"),y=m.getModel("emphasis"),_=m.get(["itemStyle","borderRadius"])||0,S=new Pe({shape:{x:f!=null?f*d:x.x,y:v!=null?v*c:x.y,width:x.dx,height:x.dy,r:_},style:m.getModel("itemStyle").getItemStyle(),z2:10});At(S,gt(m),{labelFetcher:{getFormattedLabel:function(A,M){return e.getFormattedLabel(A,M,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Mt(S,m),s.add(S),u.setItemGraphicEl(p.dataIndex,S),he(S).dataType="node";var b=y.get("focus");Je(S,b==="adjacency"?p.getAdjacentDataIndices():b==="trajectory"?p.getTrajectoryDataIndices():b,y.get("blurScope"),y.get("disabled"))}),u.eachItemGraphicEl(function(p,x){var m=u.getItemModel(x);m.get("draggable")&&(p.drift=function(f,v){n._focusAdjacencyDisabled=!0,this.shape.x+=f,this.shape.y+=v,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(x),localX:this.shape.x/d,localY:this.shape.y/c})},p.ondragend=function(){n._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath(dW(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Fe);function s5(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var o=e.node1.getVisual("color"),i=e.node2.getVisual("color");te(o)&&te(i)&&(r.fill=new Aa(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:o,offset:0},{color:i,offset:1}]))}}function dW(r,t,e){var o=new Pe({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ze(o,{shape:{width:r.width+20}},t,e),o}const cW=lW;var uW=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,o){var i=e.edges||e.links,n=e.data||e.nodes,a=e.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[a[l].depth]=new Re(a[l],this,o));if(n&&i){var d=IP(n,i,this,!0,c);return d.data}function c(u,h){u.wrapMethod("getItemModel",function(g,p){var x=g.parentModel,m=x.getData().getItemLayout(p);if(m){var f=m.depth,v=x.levelModels[f];v&&(g.parentModel=v)}return g}),h.wrapMethod("getItemModel",function(g,p){var x=g.parentModel,m=x.getGraph().getEdgeByIndex(p),f=m.node1.getLayout();if(f){var v=f.depth,y=x.levelModels[v];y&&(g.parentModel=y)}return g})}},t.prototype.setNodePosition=function(e,o){var i=this.option.data||this.option.nodes,n=i[e];n.localX=o[0],n.localY=o[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,o,i){function n(g){return isNaN(g)||g==null}if(i==="edge"){var a=this.getDataParams(e,i),s=a.data,l=a.value,d=s.source+" -- "+s.target;return mt("nameValue",{name:d,value:l,noValue:n(l)})}else{var c=this.getGraph().getNodeByIndex(e),u=c.getLayout().value,h=this.getDataParams(e,i).data.name;return mt("nameValue",{name:h!=null?h+"":null,value:u,noValue:n(u)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,o){var i=r.prototype.getDataParams.call(this,e,o);if(i.value==null&&o==="node"){var n=this.getGraph().getNodeByIndex(e),a=n.getLayout().value;i.value=a}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(ze);const hW=uW;function gW(r,t){r.eachSeriesByType("sankey",function(e){var o=e.get("nodeWidth"),i=e.get("nodeGap"),n=mW(e,t);e.layoutInfo=n;var a=n.width,s=n.height,l=e.getGraph(),d=l.nodes,c=l.edges;fW(d);var u=Ge(d,function(x){return x.getLayout().value===0}),h=u.length!==0?0:e.get("layoutIterations"),g=e.get("orient"),p=e.get("nodeAlign");pW(d,c,o,i,a,s,h,g,p)})}function mW(r,t){return it(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function pW(r,t,e,o,i,n,a,s,l){xW(r,t,e,i,n,s,l),SW(r,t,n,i,o,a,s),IW(r,s)}function fW(r){E(r,function(t){var e=Pi(t.outEdges,$h),o=Pi(t.inEdges,$h),i=t.getValue()||0,n=Math.max(e,o,i);t.setLayout({value:n},!0)})}function xW(r,t,e,o,i,n,a){for(var s=[],l=[],d=[],c=[],u=0,h=0;h=0;f&&m.depth>g&&(g=m.depth),x.setLayout({depth:f?m.depth:u},!0),n==="vertical"?x.setLayout({dy:e},!0):x.setLayout({dx:e},!0);for(var v=0;vu-1?g:u-1;a&&a!=="left"&&vW(r,a,n,A);var M=n==="vertical"?(i-e)/A:(o-e)/A;_W(r,M,n)}function l5(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function vW(r,t,e,o){if(t==="right"){for(var i=[],n=r,a=0;n.length;){for(var s=0;s0;n--)l*=.99,AW(s,l,a),X1(s,i,e,o,a),LW(s,l,a),X1(s,i,e,o,a)}function bW(r,t){var e=[],o=t==="vertical"?"y":"x",i=Xm(r,function(n){return n.getLayout()[o]});return i.keys.sort(function(n,a){return n-a}),E(i.keys,function(n){e.push(i.buckets.get(n))}),e}function MW(r,t,e,o,i,n){var a=1/0;E(r,function(s){var l=s.length,d=0;E(s,function(u){d+=u.getLayout().value});var c=n==="vertical"?(o-(l-1)*i)/d:(e-(l-1)*i)/d;c0&&(s=l.getLayout()[n]+d,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[n]+l.getLayout()[h]+t;var p=i==="vertical"?o:e;if(d=c-t-p,d>0){s=l.getLayout()[n]-d,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var g=u-2;g>=0;--g)l=a[g],d=l.getLayout()[n]+l.getLayout()[h]+t-c,d>0&&(s=l.getLayout()[n]-d,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[n]}})}function AW(r,t,e){E(r.slice().reverse(),function(o){E(o,function(i){if(i.outEdges.length){var n=Pi(i.outEdges,TW,e)/Pi(i.outEdges,$h);if(isNaN(n)){var a=i.outEdges.length;n=a?Pi(i.outEdges,wW,e)/a:0}if(e==="vertical"){var s=i.getLayout().x+(n-Ci(i,e))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(n-Ci(i,e))*t;i.setLayout({y:l},!0)}}})})}function TW(r,t){return Ci(r.node2,t)*r.getValue()}function wW(r,t){return Ci(r.node2,t)}function CW(r,t){return Ci(r.node1,t)*r.getValue()}function PW(r,t){return Ci(r.node1,t)}function Ci(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function $h(r){return r.getValue()}function Pi(r,t,e){for(var o=0,i=r.length,n=-1;++na&&(a=l)}),E(o,function(s){var l=new wt({type:"color",mappingMethod:"linear",dataExtent:[n,a],visual:t.get("color")}),d=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",d),s.setVisual("style",{fill:d}))})}i.length&&E(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function $W(r){r.registerChartView(cW),r.registerSeriesModel(hW),r.registerLayout(gW),r.registerVisual(EW),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(o){o.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var d5=function(){function r(){}return r.prototype.getInitialData=function(t,e){var o,i=e.getComponent("xAxis",this.get("xAxisIndex")),n=e.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=n.get("type"),l;a==="category"?(t.layout="horizontal",o=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",o=n.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var d=["x","y"],c=t.layout==="horizontal"?0:1,u=this._baseAxisDim=d[c],h=d[1-c],g=[i,n],p=g[c].get("type"),x=g[1-c].get("type"),m=t.data;if(m&&l){var f=[];E(m,function(_,S){var b;K(_)?(b=_.slice(),_.unshift(S)):K(_.value)?(b=W({},_),b.value=b.value.slice(),_.value.unshift(S)):b=_,f.push(b)}),t.data=f}var v=this.defaultValueDimensions,y=[{name:u,type:Xu(p),ordinalMeta:o,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Xu(x),dimsDef:v.slice()}];return ts(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:me(dM,y,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),c5=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(ze);je(c5,d5,!0);const DW=c5;var OW=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,o,i){var n=e.getData(),a=this.group,s=this._data;this._data||a.removeAll();var l=e.get("layout")==="horizontal"?1:0;n.diff(s).add(function(d){if(n.hasValue(d)){var c=n.getItemLayout(d),u=u5(c,n,d,l,!0);n.setItemGraphicEl(d,u),a.add(u)}}).update(function(d,c){var u=s.getItemGraphicEl(c);if(!n.hasValue(d)){a.remove(u);return}var h=n.getItemLayout(d);u?(Xr(u),h5(h,u,n,d)):u=u5(h,n,d,l),a.add(u),n.setItemGraphicEl(d,u)}).remove(function(d){var c=s.getItemGraphicEl(d);c&&a.remove(c)}).execute(),this._data=n},t.prototype.remove=function(e){var o=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(n){n&&o.remove(n)})},t.type="boxplot",t}(Fe),BW=function(){function r(){}return r}(),GW=function(r){V(t,r);function t(e){var o=r.call(this,e)||this;return o.type="boxplotBoxPath",o}return t.prototype.getDefaultShape=function(){return new BW},t.prototype.buildPath=function(e,o){var i=o.points,n=0;for(e.moveTo(i[n][0],i[n][1]),n++;n<4;n++)e.lineTo(i[n][0],i[n][1]);for(e.closePath();nx){var _=[f,y];o.push(_)}}}return{boxData:e,outliers:o}}var UW={type:"echarts:boxplot",transform:function(r){var t=r.upstream;if(t.sourceFormat!==$t){var e="";Be(e)}var o=XW(t.getRawData(),r.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:o.boxData},{data:o.outliers}]}};function WW(r){r.registerSeriesModel(DW),r.registerChartView(kW),r.registerLayout(RW),r.registerTransform(UW)}var zW=["color","borderColor"],KW=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,o,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,o,i){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,o,i,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,o):this._incrementalRenderNormal(e,o)},t.prototype.eachRendered=function(e){gi(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var o=e.pipelineContext.large;(this._isLargeDraw==null||o!==this._isLargeDraw)&&(this._isLargeDraw=o,this._clear())},t.prototype._renderNormal=function(e){var o=e.getData(),i=this._data,n=this.group,a=o.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,d=l.getArea&&l.getArea();this._data||n.removeAll(),o.diff(i).add(function(c){if(o.hasValue(c)){var u=o.getItemLayout(c);if(s&&g5(d,u))return;var h=U1(u,c,!0);Ze(h,{shape:{points:u.ends}},e,c),W1(h,o,c,a),n.add(h),o.setItemGraphicEl(c,h)}}).update(function(c,u){var h=i.getItemGraphicEl(u);if(!o.hasValue(c)){n.remove(h);return}var g=o.getItemLayout(c);if(s&&g5(d,g)){n.remove(h);return}h?($e(h,{shape:{points:g.ends}},e,c),Xr(h)):h=U1(g),W1(h,o,c,a),n.add(h),o.setItemGraphicEl(c,h)}).remove(function(c){var u=i.getItemGraphicEl(c);u&&n.remove(u)}).execute(),this._data=o},t.prototype._renderLarge=function(e){this._clear(),m5(e,this.group);var o=e.get("clip",!0)?Jl(e.coordinateSystem,!1,e):null;o?this.group.setClipPath(o):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,o){for(var i=o.getData(),n=i.getLayout("isSimpleBox"),a;(a=e.next())!=null;){var s=i.getItemLayout(a),l=U1(s);W1(l,i,a,n),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,o){m5(o,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Fe),ZW=function(){function r(){}return r}(),YW=function(r){V(t,r);function t(e){var o=r.call(this,e)||this;return o.type="normalCandlestickBox",o}return t.prototype.getDefaultShape=function(){return new ZW},t.prototype.buildPath=function(e,o){var i=o.points;this.__simpleBox?(e.moveTo(i[4][0],i[4][1]),e.lineTo(i[6][0],i[6][1])):(e.moveTo(i[0][0],i[0][1]),e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]),e.lineTo(i[3][0],i[3][1]),e.closePath(),e.moveTo(i[4][0],i[4][1]),e.lineTo(i[5][0],i[5][1]),e.moveTo(i[6][0],i[6][1]),e.lineTo(i[7][0],i[7][1]))},t}(Me);function U1(r,t,e){var o=r.ends;return new YW({shape:{points:e?QW(o,r):o},z2:100})}function g5(r,t){for(var e=!0,o=0;o0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]);r===0&&(i=e.get(["itemStyle","borderColorDoji"]));var n=e.getModel("itemStyle").getItemStyle(zW);t.useStyle(n),t.style.fill=null,t.style.stroke=i}const jW=KW;var p5=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,o,i){var n=o.getItemLayout(e);return n&&i.rect(n.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(ze);je(p5,d5,!0);const qW=p5;function ez(r){!r||!K(r.series)||E(r.series,function(t){de(t)&&t.type==="k"&&(t.type="candlestick")})}var tz=["itemStyle","borderColor"],rz=["itemStyle","borderColor0"],oz=["itemStyle","borderColorDoji"],iz=["itemStyle","color"],nz=["itemStyle","color0"],az={seriesType:"candlestick",plan:Ha(),performRawSeries:!0,reset:function(r,t){function e(n,a){return a.get(n>0?iz:nz)}function o(n,a){return a.get(n===0?oz:n>0?tz:rz)}if(!t.isSeriesFiltered(r)){var i=r.pipelineContext.large;return!i&&{progress:function(n,a){for(var s;(s=n.next())!=null;){var l=a.getItemModel(s),d=a.getItemLayout(s).sign,c=l.getItemStyle();c.fill=e(d,l),c.stroke=o(d,l)||c.fill;var u=a.ensureUniqueItemVisual(s,"style");W(u,c)}}}}}};const sz=az;var lz={seriesType:"candlestick",plan:Ha(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),o=dz(r,e),i=0,n=1,a=["x","y"],s=e.getDimensionIndex(e.mapDimension(a[i])),l=Y(e.mapDimensionsAll(a[n]),e.getDimensionIndex,e),d=l[0],c=l[1],u=l[2],h=l[3];if(e.setLayout({candleWidth:o,isSimpleBox:o<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?p:g};function g(x,m){for(var f,v=m.getStore();(f=x.next())!=null;){var y=v.get(s,f),_=v.get(d,f),S=v.get(c,f),b=v.get(u,f),A=v.get(h,f),M=Math.min(_,S),T=Math.max(_,S),w=R(M,y),C=R(T,y),P=R(b,y),L=R(A,y),$=[];I($,C,0),I($,w,1),$.push(G(L),G(C),G(P),G(w));var O=m.getItemModel(f),N=!!O.get(["itemStyle","borderColorDoji"]);m.setItemLayout(f,{sign:f5(v,f,_,S,c,N),initBaseline:_>S?C[n]:w[n],ends:$,brushRect:D(b,A,y)})}function R(k,H){var z=[];return z[i]=H,z[n]=k,isNaN(H)||isNaN(k)?[NaN,NaN]:t.dataToPoint(z)}function I(k,H,z){var Q=H.slice(),q=H.slice();Q[i]=iu(Q[i]+o/2,1,!1),q[i]=iu(q[i]-o/2,1,!0),z?k.push(Q,q):k.push(q,Q)}function D(k,H,z){var Q=R(k,z),q=R(H,z);return Q[i]-=o/2,q[i]-=o/2,{x:Q[0],y:Q[1],width:o,height:q[1]-Q[1]}}function G(k){return k[i]=iu(k[i],1),k}}function p(x,m){for(var f=fo(x.count*4),v=0,y,_=[],S=[],b,A=m.getStore(),M=!!r.get(["itemStyle","borderColorDoji"]);(b=x.next())!=null;){var T=A.get(s,b),w=A.get(d,b),C=A.get(c,b),P=A.get(u,b),L=A.get(h,b);if(isNaN(T)||isNaN(P)||isNaN(L)){f[v++]=NaN,v+=3;continue}f[v++]=f5(A,b,w,C,c,M),_[i]=T,_[n]=P,y=t.dataToPoint(_,null,S),f[v++]=y?y[0]:NaN,f[v++]=y?y[1]:NaN,_[n]=L,y=t.dataToPoint(_,null,S),f[v++]=y?y[1]:NaN}m.setLayout("largePoints",f)}}};function f5(r,t,e,o,i,n){var a;return e>o?a=-1:e0?r.get(i,t-1)<=o?1:-1:1,a}function dz(r,t){var e=r.getBaseAxis(),o,i=e.type==="category"?e.getBandWidth():(o=e.getExtent(),Math.abs(o[1]-o[0])/t.count()),n=ee(pe(r.get("barMaxWidth"),i),i),a=ee(pe(r.get("barMinWidth"),1),i),s=r.get("barWidth");return s!=null?ee(s,i):Math.max(Math.min(i/2,n),a)}const cz=lz;function uz(r){r.registerChartView(jW),r.registerSeriesModel(qW),r.registerPreprocessor(ez),r.registerVisual(sz),r.registerLayout(cz)}function x5(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(o){o.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var hz=function(r){V(t,r);function t(e,o){var i=r.call(this)||this,n=new Yl(e,o),a=new ue;return i.add(n),i.add(a),i.updateData(e,o),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var o=e.symbolType,i=e.color,n=e.rippleNumber,a=this.childAt(1),s=0;s0&&(s=this._getLineLength(n)/c*1e3),s!==this._period||l!==this._loop||d!==this._roundTrip){n.stopAnimation();var h=void 0;ae(u)?h=u(i):h=u,n.__t>0&&(h=-s*n.__t),this._animateSymbol(n,s,h,l,d)}this._period=s,this._loop=l,this._roundTrip=d}},t.prototype._animateSymbol=function(e,o,i,n,a){if(o>0){e.__t=0;var s=this,l=e.animate("",n).when(a?o*2:o,{__t:a?2:1}).delay(i).during(function(){s._updateSymbolPosition(e)});n||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return Co(e.__p1,e.__cp1)+Co(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,o){e.__p1=o[0],e.__p2=o[1],e.__cp1=o[2]||[(o[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2]},t.prototype.updateData=function(e,o,i){this.childAt(0).updateData(e,o,i),this._updateEffectSymbol(e,o)},t.prototype._updateSymbolPosition=function(e){var o=e.__p1,i=e.__p2,n=e.__cp1,a=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),d=vt,c=om;s[0]=d(o[0],n[0],i[0],a),s[1]=d(o[1],n[1],i[1],a);var u=e.__t<1?c(o[0],n[0],i[0],a):c(i[0],n[0],o[0],1-a),h=e.__t<1?c(o[1],n[1],i[1],a):c(i[1],n[1],o[1],1-a);e.rotation=-Math.atan2(h,u)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT=0&&!(n[l]<=o);l--);l=Math.min(l,a-2)}else{for(l=s;lo);l++);l=Math.min(l-1,a-2)}var c=(o-n[l])/(n[l+1]-n[l]),u=i[l],h=i[l+1];e.x=u[0]*(1-c)+c*h[0],e.y=u[1]*(1-c)+c*h[1];var g=e.__t<1?h[0]-u[0]:u[0]-h[0],p=e.__t<1?h[1]-u[1]:u[1]-h[1];e.rotation=-Math.atan2(p,g)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=o,e.ignore=!1}},t}(v5);const bz=Sz;var Mz=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),Az=function(r){V(t,r);function t(e){var o=r.call(this,e)||this;return o._off=0,o.hoverDataIdx=-1,o}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Mz},t.prototype.buildPath=function(e,o){var i=o.segs,n=o.curveness,a;if(o.polyline)for(a=this._off;a0){e.moveTo(i[a++],i[a++]);for(var l=1;l0){var g=(d+u)/2-(c-h)*n,p=(c+h)/2-(u-d)*n;e.quadraticCurveTo(g,p,u,h)}else e.lineTo(u,h)}this.incremental&&(this._off=a,this.notClear=!0)},t.prototype.findDataIndex=function(e,o){var i=this.shape,n=i.segs,a=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,d=0;d0)for(var u=n[d++],h=n[d++],g=1;g0){var m=(u+p)/2-(h-x)*a,f=(h+x)/2-(p-u)*a;if(vS(u,h,m,f,p,x,s,e,o))return l}else if(li(u,h,p,x,s,e,o))return l;l++}return-1},t.prototype.contain=function(e,o){var i=this.transformCoordToLocal(e,o),n=this.getBoundingRect();if(e=i[0],o=i[1],n.contain(e,o)){var a=this.hoverDataIdx=this.findDataIndex(e,o);return a>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var o=this.shape,i=o.segs,n=1/0,a=1/0,s=-1/0,l=-1/0,d=0;d0&&(a.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const wz=Tz;var Cz={seriesType:"lines",plan:Ha(),reset:function(r){var t=r.coordinateSystem;if(t){var e=r.get("polyline"),o=r.pipelineContext.large;return{progress:function(i,n){var a=[];if(o){var s=void 0,l=i.end-i.start;if(e){for(var d=0,c=i.start;c0&&(c||d.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),a.updateData(n);var u=e.get("clip",!0)&&Jl(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,o,i){var n=e.getData(),a=this._updateLineDraw(n,e);a.incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(e,o,i){this._lineDraw.incrementalUpdate(e,o.getData()),this._finished=e.end===o.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,o,i){var n=e.getData(),a=e.pipelineContext;if(!this._finished||a.large||a.progressiveRender)return{update:!0};var s=_5.reset(e,o,i);s.progress&&s.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(e,o){var i=this._lineDraw,n=this._showEffect(o),a=!!o.get("polyline"),s=o.pipelineContext,l=s.large;return(!i||n!==this._hasEffet||a!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new wz:new S1(a?n?bz:y5:n?v5:y1),this._hasEffet=n,this._isPolyline=a,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var o=e.getZr(),i=o.painter.getType()==="svg";!i&&this._lastZlevel!=null&&o.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,o){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(o)},t.prototype.dispose=function(e,o){this.remove(e,o)},t.type="lines",t}(Fe);const Lz=Pz;var Iz=typeof Uint32Array>"u"?Array:Uint32Array,Ez=typeof Float64Array>"u"?Array:Float64Array;function S5(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=Y(t,function(e){var o=[e[0].coord,e[1].coord],i={coords:o};return e[0].name&&(i.fromName=e[0].name),e[1].name&&(i.toName=e[1].name),qd([i,e[0],e[1]])}))}var $z=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],S5(e);var o=this._processFlatCoordsArray(e.data);this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset,o.flatCoords&&(e.data=new Float32Array(o.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(S5(e),e.data){var o=this._processFlatCoordsArray(e.data);this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset,o.flatCoords&&(e.data=new Float32Array(o.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var o=this._processFlatCoordsArray(e.data);o.flatCoords&&(this._flatCoords?(this._flatCoords=Cs(this._flatCoords,o.flatCoords),this._flatCoordsOffset=Cs(this._flatCoordsOffset,o.flatCoordsOffset)):(this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset),e.data=new Float32Array(o.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var o=this.getData().getItemModel(e),i=o.option instanceof Array?o.option:o.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,o){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[e*2],n=this._flatCoordsOffset[e*2+1],a=0;a ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),o=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&o>0?o+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(ze);const Dz=$z;function Dh(r){return r instanceof Array||(r=[r,r]),r}var Oz={seriesType:"lines",reset:function(r){var t=Dh(r.get("symbol")),e=Dh(r.get("symbolSize")),o=r.getData();o.setVisual("fromSymbol",t&&t[0]),o.setVisual("toSymbol",t&&t[1]),o.setVisual("fromSymbolSize",e&&e[0]),o.setVisual("toSymbolSize",e&&e[1]);function i(n,a){var s=n.getItemModel(a),l=Dh(s.getShallow("symbol",!0)),d=Dh(s.getShallow("symbolSize",!0));l[0]&&n.setItemVisual(a,"fromSymbol",l[0]),l[1]&&n.setItemVisual(a,"toSymbol",l[1]),d[0]&&n.setItemVisual(a,"fromSymbolSize",d[0]),d[1]&&n.setItemVisual(a,"toSymbolSize",d[1])}return{dataEach:o.hasItemOption?i:null}}};const Bz=Oz;function Gz(r){r.registerChartView(Lz),r.registerSeriesModel(Dz),r.registerLayout(_5),r.registerVisual(Bz)}var Nz=256,kz=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Or.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,o,i,n,a){var s=this._getBrush(),l=this._getGradient(n,"inRange"),d=this._getGradient(n,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,h=u.getContext("2d"),g=t.length;u.width=e,u.height=o;for(var p=0;p0){var P=a(y)?l:d;y>0&&(y=y*w+M),S[b++]=P[C],S[b++]=P[C+1],S[b++]=P[C+2],S[b++]=P[C+3]*y*256}else b+=4}return h.putImageData(_,0,0),u},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Or.createCanvas()),e=this.pointSize+this.blurSize,o=e*2;t.width=o,t.height=o;var i=t.getContext("2d");return i.clearRect(0,0,o,o),i.shadowOffsetX=o,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},r.prototype._getGradient=function(t,e){for(var o=this._gradientPixels,i=o[e]||(o[e]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],a=0,s=0;s<256;s++)t[e](s/255,!0,n),i[a++]=n[0],i[a++]=n[1],i[a++]=n[2],i[a++]=n[3];return i},r}();const Rz=kz;function Fz(r,t,e){var o=r[1]-r[0];t=Y(t,function(a){return{interval:[(a.interval[0]-r[0])/o,(a.interval[1]-r[0])/o]}});var i=t.length,n=0;return function(a){var s;for(s=n;s=0;s--){var l=t[s].interval;if(l[0]<=a&&a<=l[1]){n=s;break}}return s>=0&&s=t[0]&&o<=t[1]}}function b5(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var Hz=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,o,i){var n;o.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(n=s)})}),this._progressiveEls=null,this.group.removeAll();var a=e.coordinateSystem;a.type==="cartesian2d"||a.type==="calendar"?this._renderOnCartesianAndCalendar(e,i,0,e.getData().count()):b5(a)&&this._renderOnGeo(a,e,n,i)},t.prototype.incrementalPrepareRender=function(e,o,i){this.group.removeAll()},t.prototype.incrementalRender=function(e,o,i,n){var a=o.coordinateSystem;a&&(b5(a)?this.render(o,i,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(o,n,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){gi(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,o,i,n,a){var s=e.coordinateSystem,l=Fn(s,"cartesian2d"),d,c,u,h;if(l){var g=s.getAxis("x"),p=s.getAxis("y");d=g.getBandWidth()+.5,c=p.getBandWidth()+.5,u=g.scale.getExtent(),h=p.scale.getExtent()}for(var x=this.group,m=e.getData(),f=e.getModel(["emphasis","itemStyle"]).getItemStyle(),v=e.getModel(["blur","itemStyle"]).getItemStyle(),y=e.getModel(["select","itemStyle"]).getItemStyle(),_=e.get(["itemStyle","borderRadius"]),S=gt(e),b=e.getModel("emphasis"),A=b.get("focus"),M=b.get("blurScope"),T=b.get("disabled"),w=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],C=i;Cu[1]||Oh[1])continue;var N=s.dataToPoint([$,O]);P=new Pe({shape:{x:N[0]-d/2,y:N[1]-c/2,width:d,height:c},style:L})}else{if(isNaN(m.get(w[1],C)))continue;P=new Pe({z2:1,shape:s.dataToRect([m.get(w[0],C)]).contentShape,style:L})}if(m.hasItemOption){var R=m.getItemModel(C),I=R.getModel("emphasis");f=I.getModel("itemStyle").getItemStyle(),v=R.getModel(["blur","itemStyle"]).getItemStyle(),y=R.getModel(["select","itemStyle"]).getItemStyle(),_=R.get(["itemStyle","borderRadius"]),A=I.get("focus"),M=I.get("blurScope"),T=I.get("disabled"),S=gt(R)}P.shape.r=_;var D=e.getRawValue(C),G="-";D&&D[2]!=null&&(G=D[2]+""),At(P,S,{labelFetcher:e,labelDataIndex:C,defaultOpacity:L.opacity,defaultText:G}),P.ensureState("emphasis").style=f,P.ensureState("blur").style=v,P.ensureState("select").style=y,Je(P,A,M,T),P.incremental=a,a&&(P.states.emphasis.hoverLayer=!0),x.add(P),m.setItemGraphicEl(C,P),this._progressiveEls&&this._progressiveEls.push(P)}},t.prototype._renderOnGeo=function(e,o,i,n){var a=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=o.getData(),d=this._hmLayer||this._hmLayer||new Rz;d.blurSize=o.get("blurSize"),d.pointSize=o.get("pointSize"),d.minOpacity=o.get("minOpacity"),d.maxOpacity=o.get("maxOpacity");var c=e.getViewRect().clone(),u=e.getRoamTransform();c.applyTransform(u);var h=Math.max(c.x,0),g=Math.max(c.y,0),p=Math.min(c.width+c.x,n.getWidth()),x=Math.min(c.height+c.y,n.getHeight()),m=p-h,f=x-g,v=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],y=l.mapArray(v,function(A,M,T){var w=e.dataToPoint([A,M]);return w[0]-=h,w[1]-=g,w.push(T),w}),_=i.getExtent(),S=i.type==="visualMap.continuous"?Vz(_,i.option.range):Fz(_,i.getPieceList(),i.option.selected);d.update(y,m,f,a.color.getNormalizer(),{inRange:a.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var b=new yt({style:{width:m,height:f,x:h,y:g,image:d.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Fe);const Xz=Hz;var Uz=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,o){return po(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Ra.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(ze);const Wz=Uz;function zz(r){r.registerChartView(Xz),r.registerSeriesModel(Wz)}var Kz=["itemStyle","borderWidth"],M5=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Z1=new ko,Zz=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,o,i){var n=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,d=l.getBaseAxis(),c=d.isHorizontal(),u=l.master.getRect(),h={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:c,valueDim:M5[+c],categoryDim:M5[1-+c]};a.diff(s).add(function(p){if(a.hasValue(p)){var x=I5(a,p),m=A5(a,p,x,h),f=E5(a,h,m);a.setItemGraphicEl(p,f),n.add(f),O5(f,h,m)}}).update(function(p,x){var m=s.getItemGraphicEl(x);if(!a.hasValue(p)){n.remove(m);return}var f=I5(a,p),v=A5(a,p,f,h),y=D5(a,v);m&&y!==m.__pictorialShapeStr&&(n.remove(m),a.setItemGraphicEl(p,null),m=null),m?tK(m,h,v):m=E5(a,h,v,!0),a.setItemGraphicEl(p,m),m.__pictorialSymbolMeta=v,n.add(m),O5(m,h,v)}).remove(function(p){var x=s.getItemGraphicEl(p);x&&$5(s,p,x.__pictorialSymbolMeta.animationModel,x)}).execute();var g=e.get("clip",!0)?Jl(e.coordinateSystem,!1,e):null;return g?n.setClipPath(g):n.removeClipPath(),this._data=a,this.group},t.prototype.remove=function(e,o){var i=this.group,n=this._data;e.get("animation")?n&&n.eachItemGraphicEl(function(a){$5(n,he(a).dataIndex,e,a)}):i.removeAll()},t.type="pictorialBar",t}(Fe);function A5(r,t,e,o){var i=r.getItemLayout(t),n=e.get("symbolRepeat"),a=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),d=(l||0)*Math.PI/180||0,c=e.get("symbolPatternSize")||2,u=e.isAnimationEnabled(),h={dataIndex:t,layout:i,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:n,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:d,animationModel:u?e:null,hoverScale:u&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};Yz(e,n,i,o,h),Qz(r,t,i,n,a,h.boundingLength,h.pxSign,c,o,h),Jz(e,h.symbolScale,d,o,h);var g=h.symbolSize,p=Cn(e.get("symbolOffset"),g);return jz(e,g,i,n,a,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,o,h),h}function Yz(r,t,e,o,i){var n=o.valueDim,a=r.get("symbolBoundingData"),s=o.coordSys.getOtherAxis(o.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),d=1-+(e[n.wh]<=0),c;if(K(a)){var u=[Y1(s,a[0])-l,Y1(s,a[1])-l];u[1]0?1:-1}function Y1(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function Qz(r,t,e,o,i,n,a,s,l,d){var c=l.valueDim,u=l.categoryDim,h=Math.abs(e[u.wh]),g=r.getItemVisual(t,"symbolSize"),p;K(g)?p=g.slice():g==null?p=["100%","100%"]:p=[g,g],p[u.index]=ee(p[u.index],h),p[c.index]=ee(p[c.index],o?h:Math.abs(n)),d.symbolSize=p;var x=d.symbolScale=[p[0]/s,p[1]/s];x[c.index]*=(l.isHorizontal?-1:1)*a}function Jz(r,t,e,o,i){var n=r.get(Kz)||0;n&&(Z1.attr({scaleX:t[0],scaleY:t[1],rotation:e}),Z1.updateTransform(),n/=Z1.getLineScale(),n*=t[o.valueDim.index]),i.valueLineWidth=n||0}function jz(r,t,e,o,i,n,a,s,l,d,c,u){var h=c.categoryDim,g=c.valueDim,p=u.pxSign,x=Math.max(t[g.index]+s,0),m=x;if(o){var f=Math.abs(l),v=ct(r.get("symbolMargin"),"15%")+"",y=!1;v.lastIndexOf("!")===v.length-1&&(y=!0,v=v.slice(0,v.length-1));var _=ee(v,t[g.index]),S=Math.max(x+_*2,0),b=y?0:_*2,A=Fm(o),M=A?o:B5((f+b)/S),T=f-M*x;_=T/2/(y?M:Math.max(M-1,1)),S=x+_*2,b=y?0:_*2,!A&&o!=="fixed"&&(M=d?B5((Math.abs(d)+b)/S):0),m=M*S-b,u.repeatTimes=M,u.symbolMargin=_}var w=p*(m/2),C=u.pathPosition=[];C[h.index]=e[h.wh]/2,C[g.index]=a==="start"?w:a==="end"?l-w:l/2,n&&(C[0]+=n[0],C[1]+=n[1]);var P=u.bundlePosition=[];P[h.index]=e[h.xy],P[g.index]=e[g.xy];var L=u.barRectShape=W({},e);L[g.wh]=p*Math.max(Math.abs(e[g.wh]),Math.abs(C[g.index]+w)),L[h.wh]=e[h.wh];var $=u.clipShape={};$[h.xy]=-e[h.xy],$[h.wh]=c.ecSize[h.wh],$[g.xy]=0,$[g.wh]=e[g.wh]}function T5(r){var t=r.symbolPatternSize,e=tt(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function w5(r,t,e,o){var i=r.__pictorialBundle,n=e.symbolSize,a=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,d=e.repeatTimes||0,c=0,u=n[t.valueDim.index]+a+e.symbolMargin*2;for(Q1(r,function(x){x.__pictorialAnimationIndex=c,x.__pictorialRepeatTimes=d,c0:f<0)&&(v=d-1-x),m[l.index]=u*(v-d/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function C5(r,t,e,o){var i=r.__pictorialBundle,n=r.__pictorialMainPath;n?ds(n,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,o):(n=r.__pictorialMainPath=T5(e),i.add(n),ds(n,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,o))}function P5(r,t,e){var o=W({},t.barRectShape),i=r.__pictorialBarRect;i?ds(i,null,{shape:o},t,e):(i=r.__pictorialBarRect=new Pe({z2:2,shape:o,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,r.add(i))}function L5(r,t,e,o){if(e.symbolClip){var i=r.__pictorialClipPath,n=W({},e.clipShape),a=t.valueDim,s=e.animationModel,l=e.dataIndex;if(i)$e(i,{shape:n},s,l);else{n[a.wh]=0,i=new Pe({shape:n}),r.__pictorialBundle.setClipPath(i),r.__pictorialClipPath=i;var d={};d[a.wh]=e.clipShape[a.wh],xn[o?"updateProps":"initProps"](i,{shape:d},s,l)}}}function I5(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=qz,e.isAnimationEnabled=eK,e}function qz(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function eK(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function E5(r,t,e,o){var i=new ue,n=new ue;return i.add(n),i.__pictorialBundle=n,n.x=e.bundlePosition[0],n.y=e.bundlePosition[1],e.symbolRepeat?w5(i,t,e):C5(i,t,e),P5(i,e,o),L5(i,t,e,o),i.__pictorialShapeStr=D5(r,e),i.__pictorialSymbolMeta=e,i}function tK(r,t,e){var o=e.animationModel,i=e.dataIndex,n=r.__pictorialBundle;$e(n,{x:e.bundlePosition[0],y:e.bundlePosition[1]},o,i),e.symbolRepeat?w5(r,t,e,!0):C5(r,t,e,!0),P5(r,e,!0),L5(r,t,e,!0)}function $5(r,t,e,o){var i=o.__pictorialBarRect;i&&i.removeTextContent();var n=[];Q1(o,function(a){n.push(a)}),o.__pictorialMainPath&&n.push(o.__pictorialMainPath),o.__pictorialClipPath&&(e=null),E(n,function(a){ui(a,{scaleX:0,scaleY:0},e,t,function(){o.parent&&o.parent.remove(o)})}),r.setItemGraphicEl(t,null)}function D5(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Q1(r,t,e){E(r.__pictorialBundle.children(),function(o){o!==r.__pictorialBarRect&&t.call(e,o)})}function ds(r,t,e,o,i,n){t&&r.attr(t),o.symbolClip&&!i?e&&r.attr(e):e&&xn[i?"updateProps":"initProps"](r,e,o.animationModel,o.dataIndex,n)}function O5(r,t,e){var o=e.dataIndex,i=e.itemModel,n=i.getModel("emphasis"),a=n.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),d=i.getShallow("cursor"),c=n.get("focus"),u=n.get("blurScope"),h=n.get("scale");Q1(r,function(x){if(x instanceof yt){var m=x.style;x.useStyle(W({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},e.style))}else x.useStyle(e.style);var f=x.ensureState("emphasis");f.style=a,h&&(f.scaleX=x.scaleX*1.1,f.scaleY=x.scaleY*1.1),x.ensureState("blur").style=s,x.ensureState("select").style=l,d&&(x.cursor=d),x.z2=e.z2});var g=t.valueDim.posDesc[+(e.boundingLength>0)],p=r.__pictorialBarRect;p.ignoreClip=!0,At(p,gt(i),{labelFetcher:t.seriesModel,labelDataIndex:o,defaultText:es(t.seriesModel.getData(),o),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:g}),Je(r,c,u,n.get("disabled"))}function B5(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const rK=Zz;var oK=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=mi(lh.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(lh);const iK=oK;function nK(r){r.registerChartView(rK),r.registerSeriesModel(iK),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,me(HA,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,XA("pictorialBar"))}var aK=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,o,i){var n=e.getData(),a=this,s=this.group,l=e.getLayerSeries(),d=n.getLayout("layoutInfo"),c=d.rect,u=d.boundaryGap;s.x=0,s.y=c.y+u[0];function h(m){return m.name}var g=new Fo(this._layersSeries||[],l,h,h),p=[];g.add(re(x,this,"add")).update(re(x,this,"update")).remove(re(x,this,"remove")).execute();function x(m,f,v){var y=a._layers;if(m==="remove"){s.remove(y[f]);return}for(var _=[],S=[],b,A=l[f].indices,M=0;Mn&&(n=s),o.push(s)}for(var d=0;dn&&(n=u)}return{y0:i,max:n}}function gK(r){r.registerChartView(lK),r.registerSeriesModel(cK),r.registerLayout(uK),r.registerProcessor(ql("themeRiver"))}var mK=2,pK=4,fK=function(r){V(t,r);function t(e,o,i,n){var a=r.call(this)||this;a.z2=mK,a.textConfig={inside:!0},he(a).seriesIndex=o.seriesIndex;var s=new Le({z2:pK,silent:e.getModel().get(["label","silent"])});return a.setTextContent(s),a.updateData(!0,e,o,i,n),a}return t.prototype.updateData=function(e,o,i,n,a){this.node=o,o.piece=this,i=i||this._seriesModel,n=n||this._ecModel;var s=this;he(s).dataIndex=o.dataIndex;var l=o.getModel(),d=l.getModel("emphasis"),c=o.getLayout(),u=W({},c);u.label=null;var h=o.getVisual("style");h.lineJoin="bevel";var g=o.getVisual("decal");g&&(h.decal=Ka(g,a));var p=Vn(l.getModel("itemStyle"),u,!0);W(u,p),E(Ft,function(v){var y=s.ensureState(v),_=l.getModel([v,"itemStyle"]);y.style=_.getItemStyle();var S=Vn(_,u);S&&(y.shape=S)}),e?(s.setShape(u),s.shape.r=c.r0,Ze(s,{shape:{r:c.r}},i,o.dataIndex)):($e(s,{shape:u},i),Xr(s)),s.useStyle(h),this._updateLabel(i);var x=l.getShallow("cursor");x&&s.attr("cursor",x),this._seriesModel=i||this._seriesModel,this._ecModel=n||this._ecModel;var m=d.get("focus"),f=m==="ancestor"?o.getAncestorsIndices():m==="descendant"?o.getDescendantIndices():m;Je(this,f,d.get("blurScope"),d.get("disabled"))},t.prototype._updateLabel=function(e){var o=this,i=this.node.getModel(),n=i.getModel("label"),a=this.node.getLayout(),s=a.endAngle-a.startAngle,l=(a.startAngle+a.endAngle)/2,d=Math.cos(l),c=Math.sin(l),u=this,h=u.getTextContent(),g=this.node.dataIndex,p=n.get("minAngle")/180*Math.PI,x=n.get("show")&&!(p!=null&&Math.abs(s)$&&!xa(N-$)&&N0?(a.virtualPiece?a.virtualPiece.updateData(!1,v,e,o,i):(a.virtualPiece=new N5(v,e,o,i),c.add(a.virtualPiece)),y.piece.off("click"),a.virtualPiece.on("click",function(_){a._rootToNode(y.parentNode)})):a.virtualPiece&&(c.remove(a.virtualPiece),a.virtualPiece=null)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(o){var i=!1,n=e.seriesModel.getViewRoot();n.eachNode(function(a){if(!i&&a.piece&&a.piece===o.target){var s=a.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(a);else if(s==="link"){var l=a.getModel(),d=l.get("link");if(d){var c=l.get("target",!0)||"_blank";pu(d,c)}}i=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:j1,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,o){var i=o.getData(),n=i.getItemLayout(0);if(n){var a=e[0]-n.cx,s=e[1]-n.cy,l=Math.sqrt(a*a+s*s);return l<=n.r&&l>=n.r0}},t.type="sunburst",t}(Fe);const _K=yK;var SK=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,o){var i={name:e.name,children:e.data};R5(i);var n=this._levelModels=Y(e.levels||[],function(l){return new Re(l,this,o)},this),a=jf.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(d,c){var u=a.getNodeByDataIndex(c),h=n[u.depth];return h&&(d.parentModel=h),d})}return a.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var o=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return o.treePathInfo=Sh(i,this),o},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var o=this.getRawData().tree.root;(!e||e!==o&&!o.contains(e))&&(this._viewRoot=o)},t.prototype.enableAriaDecal=function(){ZC(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(ze);function R5(r){var t=0;E(r.children,function(o){R5(o);var i=o.value;K(i)&&(i=i[0]),t+=i});var e=r.value;K(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),K(r.value)?r.value[0]=e:r.value=e}const bK=SK;var F5=Math.PI/180;function MK(r,t,e){t.eachSeriesByType(r,function(o){var i=o.get("center"),n=o.get("radius");K(n)||(n=[0,n]),K(i)||(i=[i,i]);var a=e.getWidth(),s=e.getHeight(),l=Math.min(a,s),d=ee(i[0],a),c=ee(i[1],s),u=ee(n[0],l/2),h=ee(n[1],l/2),g=-o.get("startAngle")*F5,p=o.get("minAngle")*F5,x=o.getData().tree.root,m=o.getViewRoot(),f=m.depth,v=o.get("sort");v!=null&&V5(m,v);var y=0;E(m.children,function(N){!isNaN(N.getValue())&&y++});var _=m.getValue(),S=Math.PI/(_||y)*2,b=m.depth>0,A=m.height-(b?-1:1),M=(h-u)/(A||1),T=o.get("clockwise"),w=o.get("stillShowZeroSum"),C=T?1:-1,P=function(N,R){if(N){var I=R;if(N!==x){var D=N.getValue(),G=_===0&&w?S:D*S;G1;)a=a.parentNode;var s=i.getColorFromPalette(a.name||a.dataIndex+"",t);return o.depth>1&&te(s)&&(s=fc(s,(o.depth-1)/(n-1)*.5)),s}r.eachSeriesByType("sunburst",function(o){var i=o.getData(),n=i.tree;n.eachNode(function(a){var s=a.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(a,o,n.root.height));var d=i.ensureUniqueItemVisual(a.dataIndex,"style");W(d,l)})})}function wK(r){r.registerChartView(_K),r.registerSeriesModel(bK),r.registerLayout(me(MK,"sunburst")),r.registerProcessor(me(ql,"sunburst")),r.registerVisual(TK),vK(r)}var H5={color:"fill",borderColor:"stroke"},CK={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},zo=Ce(),PK=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,o){return po(null,this)},t.prototype.getDataParams=function(e,o,i){var n=r.prototype.getDataParams.call(this,e,o);return i&&(n.info=zo(i).info),n},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(ze);const LK=PK;function IK(r,t){return t=t||[0,0],Y(["x","y"],function(e,o){var i=this.getAxis(e),n=t[o],a=r[o]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(n-a)-i.dataToCoord(n+a))},this)}function EK(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:re(IK,r)}}}function $K(r,t){return t=t||[0,0],Y([0,1],function(e){var o=t[e],i=r[e]/2,n=[],a=[];return n[e]=o-i,a[e]=o+i,n[1-e]=a[1-e]=t[1-e],Math.abs(this.dataToPoint(n)[e]-this.dataToPoint(a)[e])},this)}function DK(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:re($K,r)}}}function OK(r,t){var e=this.getAxis(),o=t instanceof Array?t[0]:t,i=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(o-i)-e.dataToCoord(o+i))}function BK(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:re(OK,r)}}}function GK(r,t){return t=t||[0,0],Y(["Radius","Angle"],function(e,o){var i="get"+e+"Axis",n=this[i](),a=t[o],s=r[o]/2,l=n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(a-s)-n.dataToCoord(a+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function NK(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),o=t.getExtent();return o[0]>o[1]&&o.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:o[1],r0:o[0]},api:{coord:function(i){var n=t.dataToRadius(i[0]),a=e.dataToAngle(i[1]),s=r.coordToPoint([n,a]);return s.push(n,a*Math.PI/180),s},size:re(GK,r)}}}function kK(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(o,i){return r.dataToPoint(o,i)}}}}function X5(r,t,e,o){return r&&(r.legacy||r.legacy!==!1&&!e&&!o&&t!=="tspan"&&(t==="text"||oe(r,"text")))}function U5(r,t,e){var o=r,i,n,a;if(t==="text")a=o;else{a={},oe(o,"text")&&(a.text=o.text),oe(o,"rich")&&(a.rich=o.rich),oe(o,"textFill")&&(a.fill=o.textFill),oe(o,"textStroke")&&(a.stroke=o.textStroke),oe(o,"fontFamily")&&(a.fontFamily=o.fontFamily),oe(o,"fontSize")&&(a.fontSize=o.fontSize),oe(o,"fontStyle")&&(a.fontStyle=o.fontStyle),oe(o,"fontWeight")&&(a.fontWeight=o.fontWeight),n={type:"text",style:a,silent:!0},i={};var s=oe(o,"textPosition");e?i.position=s?o.textPosition:"inside":s&&(i.position=o.textPosition),oe(o,"textPosition")&&(i.position=o.textPosition),oe(o,"textOffset")&&(i.offset=o.textOffset),oe(o,"textRotation")&&(i.rotation=o.textRotation),oe(o,"textDistance")&&(i.distance=o.textDistance)}return W5(a,r),E(a.rich,function(l){W5(l,l)}),{textConfig:i,textContent:n}}function W5(r,t){t&&(t.font=t.textFont||t.font,oe(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),oe(t,"textAlign")&&(r.align=t.textAlign),oe(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),oe(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),oe(t,"textWidth")&&(r.width=t.textWidth),oe(t,"textHeight")&&(r.height=t.textHeight),oe(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),oe(t,"textPadding")&&(r.padding=t.textPadding),oe(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),oe(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),oe(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),oe(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),oe(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),oe(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),oe(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function z5(r,t,e){var o=r;o.textPosition=o.textPosition||e.position||"inside",e.offset!=null&&(o.textOffset=e.offset),e.rotation!=null&&(o.textRotation=e.rotation),e.distance!=null&&(o.textDistance=e.distance);var i=o.textPosition.indexOf("inside")>=0,n=r.fill||"#000";K5(o,t);var a=o.textFill==null;return i?a&&(o.textFill=e.insideFill||"#fff",!o.textStroke&&e.insideStroke&&(o.textStroke=e.insideStroke),!o.textStroke&&(o.textStroke=n),o.textStrokeWidth==null&&(o.textStrokeWidth=2)):(a&&(o.textFill=r.fill||e.outsideFill||"#000"),!o.textStroke&&e.outsideStroke&&(o.textStroke=e.outsideStroke)),o.text=t.text,o.rich=t.rich,E(t.rich,function(s){K5(s,s)}),o}function K5(r,t){t&&(oe(t,"fill")&&(r.textFill=t.fill),oe(t,"stroke")&&(r.textStroke=t.fill),oe(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),oe(t,"font")&&(r.font=t.font),oe(t,"fontStyle")&&(r.fontStyle=t.fontStyle),oe(t,"fontWeight")&&(r.fontWeight=t.fontWeight),oe(t,"fontSize")&&(r.fontSize=t.fontSize),oe(t,"fontFamily")&&(r.fontFamily=t.fontFamily),oe(t,"align")&&(r.textAlign=t.align),oe(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),oe(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),oe(t,"width")&&(r.textWidth=t.width),oe(t,"height")&&(r.textHeight=t.height),oe(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),oe(t,"padding")&&(r.textPadding=t.padding),oe(t,"borderColor")&&(r.textBorderColor=t.borderColor),oe(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),oe(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),oe(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),oe(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),oe(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),oe(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),oe(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),oe(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),oe(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),oe(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var Z5={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Y5=Ae(Z5);ur(io,function(r,t){return r[t]=1,r},{}),io.join(", ");var Oh=["","style","shape","extra"],cs=Ce();function q1(r,t,e,o,i){var n=r+"Animation",a=Ta(r,o,i)||{},s=cs(t).userDuring;return a.duration>0&&(a.during=s?re(XK,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=r),W(a,e[n]),a}function Bh(r,t,e,o){o=o||{};var i=o.dataIndex,n=o.isInit,a=o.clearStyle,s=e.isAnimationEnabled(),l=cs(r),d=t.style;l.userDuring=t.during;var c={},u={};if(WK(r,t,u),j5("shape",t,u),j5("extra",t,u),!n&&s&&(UK(r,t,c),J5("shape",r,t,c),J5("extra",r,t,c),zK(r,t,d,c)),u.style=d,RK(r,u,a),VK(r,t),s)if(n){var h={};E(Oh,function(p){var x=p?t[p]:t;x&&x.enterFrom&&(p&&(h[p]=h[p]||{}),W(p?h[p]:h,x.enterFrom))});var g=q1("enter",r,t,e,i);g.duration>0&&r.animateFrom(h,g)}else FK(r,t,i||0,e,c);Q5(r,t),d?r.dirty():r.markRedraw()}function Q5(r,t){for(var e=cs(r).leaveToProps,o=0;o0&&r.animateFrom(i,n)}}function VK(r,t){oe(t,"silent")&&(r.silent=t.silent),oe(t,"ignore")&&(r.ignore=t.ignore),r instanceof xr&&oe(t,"invisible")&&(r.invisible=t.invisible),r instanceof Me&&oe(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var _o={},HK={setTransform:function(r,t){return _o.el[r]=t,this},getTransform:function(r){return _o.el[r]},setShape:function(r,t){var e=_o.el,o=e.shape||(e.shape={});return o[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=_o.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=_o.el,o=e.style;return o&&(o[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=_o.el.style;if(t)return t[r]},setExtra:function(r,t){var e=_o.el.extra||(_o.el.extra={});return e[r]=t,this},getExtra:function(r){var t=_o.el.extra;if(t)return t[r]}};function XK(){var r=this,t=r.el;if(t){var e=cs(t).userDuring,o=r.userDuring;if(e!==o){r.el=r.userDuring=null;return}_o.el=t,o(HK)}}function J5(r,t,e,o){var i=e[r];if(i){var n=t[r],a;if(n){var s=e.transition,l=i.transition;if(l)if(!a&&(a=o[r]={}),jn(l))W(a,n);else for(var d=ke(l),c=0;c=0){!a&&(a=o[r]={});for(var g=Ae(n),c=0;c=0)){var h=r.getAnimationStyleProps(),g=h?h.style:null;if(g){!n&&(n=o.style={});for(var p=Ae(e),d=0;d=0?t.getStore().get(R,O):void 0}var I=t.get(N.name,O),D=N&&N.ordinalMeta;return D?D.categories[I]:I}function b($,O){O==null&&(O=d);var N=t.getItemVisual(O,"style"),R=N&&N.fill,I=N&&N.opacity,D=v(O,Li).getItemStyle();R!=null&&(D.fill=R),I!=null&&(D.opacity=I);var G={inheritColor:te(R)?R:"#000"},k=y(O,Li),H=Ue(k,null,G,!1,!0);H.text=k.getShallow("show")?pe(r.getFormattedLabel(O,Li),es(t,O)):null;var z=su(k,G,!1);return T($,D),D=z5(D,H,z),$&&M(D,$),D.legacy=!0,D}function A($,O){O==null&&(O=d);var N=v(O,Ko).getItemStyle(),R=y(O,Ko),I=Ue(R,null,null,!0,!0);I.text=R.getShallow("show")?Br(r.getFormattedLabel(O,Ko),r.getFormattedLabel(O,Li),es(t,O)):null;var D=su(R,null,!0);return T($,N),N=z5(N,I,D),$&&M(N,$),N.legacy=!0,N}function M($,O){for(var N in O)oe(O,N)&&($[N]=O[N])}function T($,O){$&&($.textFill&&(O.textFill=$.textFill),$.textPosition&&(O.textPosition=$.textPosition))}function w($,O){if(O==null&&(O=d),oe(H5,$)){var N=t.getItemVisual(O,"style");return N?N[H5[$]]:null}if(oe(CK,$))return t.getItemVisual(O,$)}function C($){if(n.type==="cartesian2d"){var O=n.getBaseAxis();return X7(le({axis:O},$))}}function P(){return e.getCurrentSeriesIndices()}function L($){return Ep($,e)}}function oZ(r){var t={};return E(r.dimensions,function(e){var o=r.getDimensionInfo(e);if(!o.isExtraCoord){var i=o.coordDim,n=t[i]=t[i]||[];n[o.coordDimIndex]=r.getDimensionIndex(e)}}),t}function lx(r,t,e,o,i,n,a){if(!o){n.remove(t);return}var s=dx(r,t,e,o,i,n);return s&&a.setItemGraphicEl(e,s),s&&Je(s,o.focus,o.blurScope,o.emphasisDisabled),s}function dx(r,t,e,o,i,n){var a=-1,s=t;t&&oL(t,o,i)&&(a=Se(n.childrenRef(),t),t=null);var l=!t,d=t;d?d.clearStates():(d=ax(o),s&&jK(s,d)),o.morph===!1?d.disableMorphing=!0:d.disableMorphing&&(d.disableMorphing=!1),Lr.normal.cfg=Lr.normal.conOpt=Lr.emphasis.cfg=Lr.emphasis.conOpt=Lr.blur.cfg=Lr.blur.conOpt=Lr.select.cfg=Lr.select.conOpt=null,Lr.isLegacy=!1,nZ(d,e,o,i,l,Lr),iZ(d,e,o,i,l),sx(r,d,e,o,Lr,i,l),oe(o,"info")&&(zo(d).info=o.info);for(var c=0;c=0?n.replaceAt(d,a):n.add(d),d}function oL(r,t,e){var o=zo(r),i=t.type,n=t.shape,a=t.style;return e.isUniversalTransitionEnabled()||i!=null&&i!==o.customGraphicType||i==="path"&&cZ(n)&&sL(n)!==o.customPathData||i==="image"&&oe(a,"image")&&a.image!==o.customImagePath}function iZ(r,t,e,o,i){var n=e.clipPath;if(n===!1)r&&r.getClipPath()&&r.removeClipPath();else if(n){var a=r.getClipPath();a&&oL(a,n,o)&&(a=null),a||(a=ax(n),r.setClipPath(a)),sx(null,a,t,n,null,o,i)}}function nZ(r,t,e,o,i,n){if(!r.isGroup){iL(e,null,n),iL(e,Ko,n);var a=n.normal.conOpt,s=n.emphasis.conOpt,l=n.blur.conOpt,d=n.select.conOpt;if(a!=null||s!=null||d!=null||l!=null){var c=r.getTextContent();if(a===!1)c&&r.removeTextContent();else{a=n.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=ax(a),r.setTextContent(c)),sx(null,c,t,a,null,o,i);for(var u=a&&a.style,h=0;h=c;g--){var p=t.childAt(g);sZ(t,p,i)}}}function sZ(r,t,e){t&&Gh(t,zo(r).option,e)}function lZ(r){new Fo(r.oldChildren,r.newChildren,nL,nL,r).add(aL).update(aL).remove(dZ).execute()}function nL(r,t){var e=r&&r.name;return e??QK+t}function aL(r,t){var e=this.context,o=r!=null?e.newChildren[r]:null,i=t!=null?e.oldChildren[t]:null;dx(e.api,i,e.dataIndex,o,e.seriesModel,e.group)}function dZ(r){var t=this.context,e=t.oldChildren[r];e&&Gh(e,zo(e).option,t.seriesModel)}function sL(r){return r&&(r.pathData||r.d)}function cZ(r){return r&&(oe(r,"pathData")||oe(r,"d"))}function uZ(r){r.registerChartView(eZ),r.registerSeriesModel(LK)}var qn=Ce(),lL=ce,ux=re,hZ=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,o,i){var n=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=o,!(!i&&this._lastValue===n&&this._lastStatus===a)){this._lastValue=n,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var d={};this.makeElOption(d,n,t,e,o);var c=d.graphicKey;c!==this._lastGraphicKey&&this.clear(o),this._lastGraphicKey=c;var u=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new ue,this.createPointerEl(s,d,t,e),this.createLabelEl(s,d,t,e),o.getZr().add(s);else{var h=me(dL,e,u);this.updatePointerEl(s,d,h),this.updateLabelEl(s,d,h,e)}hL(s,e,!0),this._renderHandle(n)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var o=e.get("animation"),i=t.axis,n=i.type==="category",a=e.get("snap");if(!a&&!n)return!1;if(o==="auto"||o==null){var s=this.animationThreshold;if(n&&i.getBandWidth()>s)return!0;if(a){var l=Gf(t).seriesDataCount,d=i.getExtent();return Math.abs(d[0]-d[1])/l>s}return!1}return o===!0},r.prototype.makeElOption=function(t,e,o,i,n){},r.prototype.createPointerEl=function(t,e,o,i){var n=e.pointer;if(n){var a=qn(t).pointerEl=new xn[n.type](lL(e.pointer));t.add(a)}},r.prototype.createLabelEl=function(t,e,o,i){if(e.label){var n=qn(t).labelEl=new Le(lL(e.label));t.add(n),uL(n,i)}},r.prototype.updatePointerEl=function(t,e,o){var i=qn(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),o(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,o,i){var n=qn(t).labelEl;n&&(n.setStyle(e.label.style),o(n,{x:e.label.x,y:e.label.y}),uL(n,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,o=this._api.getZr(),i=this._handle,n=e.getModel("handle"),a=e.get("status");if(!n.get("show")||!a||a==="hide"){i&&o.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Pa(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(d){Io(d.event)},onmousedown:ux(this._onHandleDragMove,this,0,0),drift:ux(this._onHandleDragMove,this),ondragend:ux(this._onHandleDragEnd,this)}),o.add(i)),hL(i,e,!1),i.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");K(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Xa(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){dL(this._axisPointerModel,!e&&this._moveAnimation,this._handle,hx(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var o=this._handle;if(o){this._dragging=!0;var i=this.updateHandleTransform(hx(o),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,o.stopAnimation(),o.attr(hx(i)),qn(o).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,o=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:o.axis.dim,axisIndex:o.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),o=this._group,i=this._handle;e&&o&&(this._lastGraphicKey=null,o&&e.remove(o),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Ll(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,o){return o=o||0,{x:t[o],y:t[1-o],width:e[o],height:e[1-o]}},r}();function dL(r,t,e,o){cL(qn(e).lastProp,o)||(qn(e).lastProp=o,t?$e(e,o,r):(e.stopAnimation(),e.attr(o)))}function cL(r,t){if(de(r)&&de(t)){var e=!0;return E(t,function(o,i){e=e&&cL(r[i],o)}),!!e}else return r===t}function uL(r,t){r[t.get(["label","show"])?"show":"hide"]()}function hx(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function hL(r,t,e){var o=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(n){n.type!=="group"&&(o!=null&&(n.z=o),i!=null&&(n.zlevel=i),n.silent=e)})}const gx=hZ;function mx(r){var t=r.get("type"),e=r.getModel(t+"Style"),o;return t==="line"?(o=e.getLineStyle(),o.fill=null):t==="shadow"&&(o=e.getAreaStyle(),o.stroke=null),o}function gL(r,t,e,o,i){var n=e.get("value"),a=mL(n,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=yn(s.get("padding")||0),d=s.getFont(),c=Ys(a,d),u=i.position,h=c.width+l[1]+l[3],g=c.height+l[0]+l[2],p=i.align;p==="right"&&(u[0]-=h),p==="center"&&(u[0]-=h/2);var x=i.verticalAlign;x==="bottom"&&(u[1]-=g),x==="middle"&&(u[1]-=g/2),gZ(u,h,g,o);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),r.label={x:u[0],y:u[1],style:Ue(s,{text:a,font:d,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function gZ(r,t,e,o){var i=o.getWidth(),n=o.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,n)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function mL(r,t,e,o,i){r=t.scale.parse(r);var n=t.scale.getLabel({value:r},{precision:i.precision}),a=i.formatter;if(a){var s={value:ef(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};E(o,function(l){var d=e.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,u=d&&d.getDataParams(c);u&&s.seriesData.push(u)}),te(a)?n=a.replace("{value}",n):ae(a)&&(n=a(s))}return n}function px(r,t,e){var o=Jt();return ei(o,o,e.rotation),Gr(o,o,e.position),Ur([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],o)}function pL(r,t,e,o,i,n){var a=Xo.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),gL(t,o,i,n,{position:px(o.axis,r,e),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function fx(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function fL(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function xL(r,t,e,o,i,n){return{cx:r,cy:t,r0:e,r:o,startAngle:i,endAngle:n,clockwise:!0}}var mZ=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,o,i,n,a){var s=i.axis,l=s.grid,d=n.get("type"),c=vL(l,s).getOtherAxis(s).getGlobalExtent(),u=s.toGlobalCoord(s.dataToCoord(o,!0));if(d&&d!=="none"){var h=mx(n),g=pZ[d](s,u,c);g.style=h,e.graphicKey=g.type,e.pointer=g}var p=$f(l.model,i);pL(o,e,p,i,n,a)},t.prototype.getHandleTransform=function(e,o,i){var n=$f(o.axis.grid.model,o,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var a=px(o.axis,e,n);return{x:a[0],y:a[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,o,i,n){var a=i.axis,s=a.grid,l=a.getGlobalExtent(!0),d=vL(s,a).getOtherAxis(a).getGlobalExtent(),c=a.dim==="x"?0:1,u=[e.x,e.y];u[c]+=o[c],u[c]=Math.min(l[1],u[c]),u[c]=Math.max(l[0],u[c]);var h=(d[1]+d[0])/2,g=[h,h];g[c]=u[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:g,tooltipOption:p[c]}},t}(gx);function vL(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var pZ={line:function(r,t,e){var o=fx([t,e[0]],[t,e[1]],yL(r));return{type:"Line",subPixelOptimize:!0,shape:o}},shadow:function(r,t,e){var o=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:fL([t-o/2,e[0]],[o,i],yL(r))}}};function yL(r){return r.dim==="x"?0:1}const fZ=mZ;var xZ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Te);const vZ=xZ;var Zo=Ce(),yZ=E;function _L(r,t,e){if(!Ie.node){var o=t.getZr();Zo(o).records||(Zo(o).records={}),_Z(o,t);var i=Zo(o).records[r]||(Zo(o).records[r]={});i.handler=e}}function _Z(r,t){if(Zo(r).initialized)return;Zo(r).initialized=!0,e("click",me(SL,"click")),e("mousemove",me(SL,"mousemove")),e("globalout",bZ);function e(o,i){r.on(o,function(n){var a=MZ(t);yZ(Zo(r).records,function(s){s&&i(s,n,a.dispatchAction)}),SZ(a.pendings,t)})}}function SZ(r,t){var e=r.showTip.length,o=r.hideTip.length,i;e?i=r.showTip[e-1]:o&&(i=r.hideTip[o-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function bZ(r,t,e){r.handler("leave",null,e)}function SL(r,t,e,o){t.handler(r,e,o)}function MZ(r){var t={showTip:[],hideTip:[]},e=function(o){var i=t[o.type];i?i.push(o):(o.dispatchAction=e,r.dispatchAction(o))};return{dispatchAction:e,pendings:t}}function xx(r,t){if(!Ie.node){var e=t.getZr(),o=(Zo(e).records||{})[r];o&&(Zo(e).records[r]=null)}}var AZ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,o,i){var n=o.getComponent("tooltip"),a=e.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";_L("axisPointer",i,function(s,l,d){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&d({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,o){xx("axisPointer",o)},t.prototype.dispose=function(e,o){xx("axisPointer",o)},t.type="axisPointer",t}(Ye);const TZ=AZ;function bL(r,t){var e=[],o=r.seriesIndex,i;if(o==null||!(i=t.getSeriesByIndex(o)))return{point:[]};var n=i.getData(),a=qi(n,r);if(a==null||a<0||K(a))return{point:[]};var s=n.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(r.isStacked){var d=l.getBaseAxis(),c=l.getOtherAxis(d),u=c.dim,h=d.dim,g=u==="x"||u==="radius"?1:0,p=n.mapDimension(h),x=[];x[g]=n.get(p,a),x[1-g]=n.get(n.getCalculationInfo("stackResultDimension"),a),e=l.dataToPoint(x)||[]}else e=l.dataToPoint(n.getValues(Y(l.dimensions,function(f){return n.mapDimension(f)}),a))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),e=[m.x+m.width/2,m.y+m.height/2]}return{point:e,el:s}}var ML=Ce();function wZ(r,t,e){var o=r.currTrigger,i=[r.x,r.y],n=r,a=r.dispatchAction||re(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Rh(i)&&(i=bL({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},t).point);var l=Rh(i),d=n.axesInfo,c=s.axesInfo,u=o==="leave"||Rh(i),h={},g={},p={list:[],map:{}},x={showPointer:me(PZ,g),showTooltip:me(LZ,p)};E(s.coordSysMap,function(f,v){var y=l||f.containPoint(i);E(s.coordSysAxesInfo[v],function(_,S){var b=_.axis,A=DZ(d,_);if(!u&&y&&(!d||A)){var M=A&&A.value;M==null&&!l&&(M=b.pointToData(i)),M!=null&&AL(_,M,x,!1,h)}})});var m={};return E(c,function(f,v){var y=f.linkGroup;y&&!g[v]&&E(y.axesInfo,function(_,S){var b=g[S];if(_!==f&&b){var A=b.value;y.mapper&&(A=f.axis.scale.parse(y.mapper(A,TL(_),TL(f)))),m[f.key]=A}})}),E(m,function(f,v){AL(c[v],f,x,!0,h)}),IZ(g,c,h),EZ(p,i,r,a),$Z(c,a,e),h}}function AL(r,t,e,o,i){var n=r.axis;if(!(n.scale.isBlank()||!n.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var a=CZ(t,r),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&W(i,s[0]),!o&&r.snap&&n.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,a,l)}}function CZ(r,t){var e=t.axis,o=e.dim,i=r,n=[],a=Number.MAX_VALUE,s=-1;return E(t.seriesModels,function(l,d){var c=l.getData().mapDimensionsAll(o),u,h;if(l.getAxisTooltipData){var g=l.getAxisTooltipData(c,r,e);h=g.dataIndices,u=g.nestestValue}else{if(h=l.getData().indicesOfNearest(c[0],r,e.type==="category"?.5:null),!h.length)return;u=l.getData().get(c[0],h[0])}if(!(u==null||!isFinite(u))){var p=r-u,x=Math.abs(p);x<=a&&((x=0&&s<0)&&(a=x,s=p,i=u,n.length=0),E(h,function(m){n.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:n,snapToValue:i}}function PZ(r,t,e,o){r[t.key]={value:e,payloadBatch:o}}function LZ(r,t,e,o){var i=e.payloadBatch,n=t.axis,a=n.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,d=td(l),c=r.map[d];c||(c=r.map[d]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:n.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:o,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function IZ(r,t,e){var o=e.axesInfo=[];E(t,function(i,n){var a=i.axisPointerModel.option,s=r[n];s?(!i.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(a.status="hide"),a.status==="show"&&o.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:a.value})})}function EZ(r,t,e,o){if(Rh(t)||!r.list.length){o({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};o({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function $Z(r,t,e){var o=e.getZr(),i="axisPointerLastHighlights",n=ML(o)[i]||{},a=ML(o)[i]={};E(r,function(d,c){var u=d.axisPointerModel.option;u.status==="show"&&d.triggerEmphasis&&E(u.seriesDataIndices,function(h){var g=h.seriesIndex+" | "+h.dataIndex;a[g]=h})});var s=[],l=[];E(n,function(d,c){!a[c]&&l.push(d)}),E(a,function(d,c){!n[c]&&s.push(d)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function DZ(r,t){for(var e=0;e<(r||[]).length;e++){var o=r[e];if(t.axis.dim===o.axisDim&&t.axis.model.componentIndex===o.axisIndex)return o}}function TL(r){var t=r.axis.model,e={},o=e.axisDim=r.axis.dim;return e.axisIndex=e[o+"AxisIndex"]=t.componentIndex,e.axisName=e[o+"AxisName"]=t.name,e.axisId=e[o+"AxisId"]=t.id,e}function Rh(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function yd(r){Xn.registerAxisPointerClass("CartesianAxisPointer",fZ),r.registerComponentModel(vZ),r.registerComponentView(TZ),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!K(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=_F(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},wZ)}function OZ(r){be(tC),be(yd)}var BZ=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,o,i,n,a){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,d=l.getOtherAxis(s),c=d.getExtent(),u=s.dataToCoord(o),h=n.get("type");if(h&&h!=="none"){var g=mx(n),p=NZ[h](s,l,u,c);p.style=g,e.graphicKey=p.type,e.pointer=p}var x=n.get(["label","margin"]),m=GZ(o,i,n,l,x);gL(e,i,n,a,m)},t}(gx);function GZ(r,t,e,o,i){var n=t.axis,a=n.dataToCoord(r),s=o.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=o.getRadiusAxis().getExtent(),d,c,u;if(n.dim==="radius"){var h=Jt();ei(h,h,s),Gr(h,h,[o.cx,o.cy]),d=Ur([a,-i],h);var g=t.getModel("axisLabel").get("rotate")||0,p=Xo.innerTextLayout(s,g*Math.PI/180,-1);c=p.textAlign,u=p.textVerticalAlign}else{var x=l[1];d=o.coordToPoint([x+i,a]);var m=o.cx,f=o.cy;c=Math.abs(d[0]-m)/x<.3?"center":d[0]>m?"left":"right",u=Math.abs(d[1]-f)/x<.3?"middle":d[1]>f?"top":"bottom"}return{position:d,align:c,verticalAlign:u}}var NZ={line:function(r,t,e,o){return r.dim==="angle"?{type:"Line",shape:fx(t.coordToPoint([o[0],e]),t.coordToPoint([o[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,o){var i=Math.max(1,r.getBandWidth()),n=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:xL(t.cx,t.cy,o[0],o[1],(-e-i/2)*n,(-e+i/2)*n)}:{type:"Sector",shape:xL(t.cx,t.cy,e-i/2,e+i/2,0,Math.PI*2)}}};const kZ=BZ;var RZ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var o,i=this.ecModel;return i.eachComponent(e,function(n){n.getCoordSysModel()===this&&(o=n)},this),o},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Te);const FZ=RZ;var vx=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ot).models[0]},t.type="polarAxis",t}(Te);je(vx,ja);var VZ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(vx),HZ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(vx),yx=function(r){V(t,r);function t(e,o){return r.call(this,"radius",e,o)||this}return t.prototype.pointToData=function(e,o){return this.polar.pointToData(e,o)[this.dim==="radius"?0:1]},t}(Tr);yx.prototype.dataToRadius=Tr.prototype.dataToCoord,yx.prototype.radiusToData=Tr.prototype.coordToData;const XZ=yx;var UZ=Ce(),_x=function(r){V(t,r);function t(e,o){return r.call(this,"angle",e,o||[0,360])||this}return t.prototype.pointToData=function(e,o){return this.polar.pointToData(e,o)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,o=e.getLabelModel(),i=e.scale,n=i.getExtent(),a=i.count();if(n[1]-n[0]<1)return 0;var s=n[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),d=Math.abs(l),c=Ys(s==null?"":s+"",o.getFont(),"center","top"),u=Math.max(c.height,7),h=u/d;isNaN(h)&&(h=1/0);var g=Math.max(0,Math.floor(h)),p=UZ(e.model),x=p.lastAutoInterval,m=p.lastTickCount;return x!=null&&m!=null&&Math.abs(x-g)<=1&&Math.abs(m-a)<=1&&x>g?g=x:(p.lastTickCount=a,p.lastAutoInterval=g),g},t}(Tr);_x.prototype.dataToAngle=Tr.prototype.dataToCoord,_x.prototype.angleToData=Tr.prototype.coordToData;const WZ=_x;var wL=["radius","angle"],zZ=function(){function r(t){this.dimensions=wL,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new XZ,this._angleAxis=new WZ,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],o=this._angleAxis,i=this._radiusAxis;return o.scale.type===t&&e.push(o),i.scale.type===t&&e.push(i),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var o=this.pointToCoord(t);return[this._radiusAxis.radiusToData(o[0],e),this._angleAxis.angleToData(o[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,o=t[1]-this.cy,i=this.getAngleAxis(),n=i.getExtent(),a=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]);i.inverse?a=s-360:s=a+360;var l=Math.sqrt(e*e+o*o);e/=l,o/=l;for(var d=Math.atan2(-o,e)/Math.PI*180,c=ds;)d+=c*360;return[l,d]},r.prototype.coordToPoint=function(t){var e=t[0],o=t[1]/180*Math.PI,i=Math.cos(o)*e+this.cx,n=-Math.sin(o)*e+this.cy;return[i,n]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),o=e.getExtent().slice();o[0]>o[1]&&o.reverse();var i=t.getExtent(),n=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:o[0],r:o[1],startAngle:-i[0]*n,endAngle:-i[1]*n,clockwise:t.inverse,contain:function(a,s){var l=a-this.cx,d=s-this.cy,c=l*l+d*d-1e-4,u=this.r,h=this.r0;return c<=u*u&&c>=h*h}}},r.prototype.convertToPixel=function(t,e,o){var i=CL(e);return i===this?this.dataToPoint(o):null},r.prototype.convertFromPixel=function(t,e,o){var i=CL(e);return i===this?this.pointToData(o):null},r}();function CL(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const KZ=zZ;function ZZ(r,t,e){var o=t.get("center"),i=e.getWidth(),n=e.getHeight();r.cx=ee(o[0],i),r.cy=ee(o[1],n);var a=r.getRadiusAxis(),s=Math.min(i,n)/2,l=t.get("radius");l==null?l=[0,"100%"]:K(l)||(l=[0,l]);var d=[ee(l[0],s),ee(l[1],s)];a.inverse?a.setExtent(d[1],d[0]):a.setExtent(d[0],d[1])}function YZ(r,t){var e=this,o=e.getAngleAxis(),i=e.getRadiusAxis();if(o.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();E(eh(l,"radius"),function(d){i.scale.unionExtentFromData(l,d)}),E(eh(l,"angle"),function(d){o.scale.unionExtentFromData(l,d)})}}),$n(o.scale,o.model),$n(i.scale,i.model),o.type==="category"&&!o.onBand){var n=o.getExtent(),a=360/o.scale.count();o.inverse?n[1]+=a:n[1]-=a,o.setExtent(n[0],n[1])}}function QZ(r){return r.mainType==="angleAxis"}function PL(r,t){var e;if(r.type=t.get("type"),r.scale=Hl(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),QZ(t)){r.inverse=r.inverse!==t.get("clockwise");var o=t.get("startAngle"),i=(e=t.get("endAngle"))!==null&&e!==void 0?e:o+(r.inverse?-360:360);r.setExtent(o,i)}t.axis=r,r.model=t}var JZ={dimensions:wL,create:function(r,t){var e=[];return r.eachComponent("polar",function(o,i){var n=new KZ(i+"");n.update=YZ;var a=n.getRadiusAxis(),s=n.getAngleAxis(),l=o.findAxisModel("radiusAxis"),d=o.findAxisModel("angleAxis");PL(a,l),PL(s,d),ZZ(n,o,t),e.push(n),o.coordinateSystem=n,n.model=o}),r.eachSeries(function(o){if(o.get("coordinateSystem")==="polar"){var i=o.getReferringComponents("polar",ot).models[0];o.coordinateSystem=i.coordinateSystem}}),e}};const jZ=JZ;var qZ=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Fh(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var o=r.coordToPoint([t[0],e]),i=r.coordToPoint([t[1],e]);return{x1:o[0],y1:o[1],x2:i[0],y2:i[1]}}function Vh(r){var t=r.getRadiusAxis();return t.inverse?0:1}function LL(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var eY=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,o){if(this.group.removeAll(),!!e.get("show")){var i=e.axis,n=i.polar,a=n.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),d=Y(i.getViewLabels(),function(c){c=ce(c);var u=i.scale,h=u.type==="ordinal"?u.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(h),c});LL(d),LL(s),E(qZ,function(c){e.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&tY[c](this.group,e,n,s,l,a,d)},this)}},t.type="angleAxis",t}(Xn),tY={axisLine:function(r,t,e,o,i,n){var a=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,d=s.getExtent(),c=Vh(e),u=c?0:1,h,g=Math.abs(d[1]-d[0])===360?"Circle":"Arc";n[u]===0?h=new xn[g]({shape:{cx:e.cx,cy:e.cy,r:n[c],startAngle:-d[0]*l,endAngle:-d[1]*l,clockwise:s.inverse},style:a.getLineStyle(),z2:1,silent:!0}):h=new hl({shape:{cx:e.cx,cy:e.cy,r:n[c],r0:n[u]},style:a.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,r.add(h)},axisTick:function(r,t,e,o,i,n){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=n[Vh(e)],d=Y(o,function(c){return new ht({shape:Fh(e,[l,l+s],c.coord)})});r.add(dr(d,{style:le(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,o,i,n){if(i.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),d=n[Vh(e)],c=[],u=0;uf?"left":"right",_=Math.abs(m[1]-v)/x<.3?"middle":m[1]>v?"top":"bottom";if(s&&s[p]){var S=s[p];de(S)&&S.textStyle&&(g=new Re(S.textStyle,l,l.ecModel))}var b=new Le({silent:Xo.isLabelSilent(t),style:Ue(g,{x:m[0],y:m[1],fill:g.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:u.formattedLabel,align:y,verticalAlign:_})});if(r.add(b),c){var A=Xo.makeAxisEventDataBase(t);A.targetType="axisLabel",A.value=u.rawLabel,he(b).eventData=A}},this)},splitLine:function(r,t,e,o,i,n){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),d=0;l=l instanceof Array?l:[l];for(var c=[],u=0;u=0?"p":"n",O=T;S&&(o[c][L]||(o[c][L]={p:T,n:T}),O=o[c][L][$]);var N=void 0,R=void 0,I=void 0,D=void 0;if(p.dim==="radius"){var G=p.dataToCoord(P)-T,k=l.dataToCoord(L);Math.abs(G)=D})}}})}function cY(r){var t={};E(r,function(o,i){var n=o.getData(),a=o.coordinateSystem,s=a.getBaseAxis(),l=EL(a,s),d=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(d[1]-d[0])/n.count(),u=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=u.stacks;t[l]=u;var g=IL(o);h[g]||u.autoWidthCount++,h[g]=h[g]||{width:0,maxWidth:0};var p=ee(o.get("barWidth"),c),x=ee(o.get("barMaxWidth"),c),m=o.get("barGap"),f=o.get("barCategoryGap");p&&!h[g].width&&(p=Math.min(u.remainedWidth,p),h[g].width=p,u.remainedWidth-=p),x&&(h[g].maxWidth=x),m!=null&&(u.gap=m),f!=null&&(u.categoryGap=f)});var e={};return E(t,function(o,i){e[i]={};var n=o.stacks,a=o.bandWidth,s=ee(o.categoryGap,a),l=ee(o.gap,1),d=o.remainedWidth,c=o.autoWidthCount,u=(d-s)/(c+(c-1)*l);u=Math.max(u,0),E(n,function(x,m){var f=x.maxWidth;f&&f=e.y&&t[1]<=e.y+e.height:o.contain(o.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t[e.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(t){var e=this.getAxis(),o=this.getRect(),i=[],n=e.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[n]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-n]=n===0?o.y+o.height/2:o.x+o.width/2,i},r.prototype.convertToPixel=function(t,e,o){var i=OL(e);return i===this?this.dataToPoint(o):null},r.prototype.convertFromPixel=function(t,e,o){var i=OL(e);return i===this?this.pointToData(o):null},r}();function OL(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function MY(r,t){var e=[];return r.eachComponent("singleAxis",function(o,i){var n=new bY(o,r,t);n.name="single_"+i,n.resize(o,t),o.coordinateSystem=n,e.push(n)}),r.eachSeries(function(o){if(o.get("coordinateSystem")==="singleAxis"){var i=o.getReferringComponents("singleAxis",ot).models[0];o.coordinateSystem=i&&i.coordinateSystem}}),e}var AY={create:MY,dimensions:DL};const TY=AY;var BL=["x","y"],wY=["width","height"],CY=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,o,i,n,a){var s=i.axis,l=s.coordinateSystem,d=Mx(l,1-Hh(s)),c=l.dataToPoint(o)[0],u=n.get("type");if(u&&u!=="none"){var h=mx(n),g=PY[u](s,c,d);g.style=h,e.graphicKey=g.type,e.pointer=g}var p=Sx(i);pL(o,e,p,i,n,a)},t.prototype.getHandleTransform=function(e,o,i){var n=Sx(o,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var a=px(o.axis,e,n);return{x:a[0],y:a[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,o,i,n){var a=i.axis,s=a.coordinateSystem,l=Hh(a),d=Mx(s,l),c=[e.x,e.y];c[l]+=o[l],c[l]=Math.min(d[1],c[l]),c[l]=Math.max(d[0],c[l]);var u=Mx(s,1-l),h=(u[1]+u[0])/2,g=[h,h];return g[l]=c[l],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:g,tooltipOption:{verticalAlign:"middle"}}},t}(gx),PY={line:function(r,t,e){var o=fx([t,e[0]],[t,e[1]],Hh(r));return{type:"Line",subPixelOptimize:!0,shape:o}},shadow:function(r,t,e){var o=r.getBandWidth(),i=e[1]-e[0];return{type:"Rect",shape:fL([t-o/2,e[0]],[o,i],Hh(r))}}};function Hh(r){return r.isHorizontal()?0:1}function Mx(r,t){var e=r.getRect();return[e[BL[t]],e[BL[t]]+e[wY[t]]]}const LY=CY;var IY=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(Ye);function EY(r){be(yd),Xn.registerAxisPointerClass("SingleAxisPointer",LY),r.registerComponentView(IY),r.registerComponentView(yY),r.registerComponentModel(bx),rs(r,"single",bx,bx.defaultOption),r.registerCoordinateSystem("single",TY)}var $Y=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,o,i){var n=Ba(e);r.prototype.init.apply(this,arguments),GL(e,n)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),GL(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Te);function GL(r,t){var e=r.cellSize,o;K(e)?o=e:o=r.cellSize=[e,e],o.length===1&&(o[1]=o[0]);var i=Y([0,1],function(n){return S4(t,n)&&(o[n]="auto"),o[n]!=null&&o[n]!=="auto"});pi(r,t,{type:"box",ignoreSize:i})}const DY=$Y;var OY=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,o,i){var n=this.group;n.removeAll();var a=e.coordinateSystem,s=a.getRangeInfo(),l=a.getOrient(),d=o.getLocaleModel();this._renderDayRect(e,s,n),this._renderLines(e,s,l,n),this._renderYearText(e,s,l,n),this._renderMonthText(e,d,l,n),this._renderWeekText(e,d,s,l,n)},t.prototype._renderDayRect=function(e,o,i){for(var n=e.coordinateSystem,a=e.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),l=n.getCellHeight(),d=o.start.time;d<=o.end.time;d=n.getNextNDay(d,1).time){var c=n.dataToRect([d],!1).tl,u=new Pe({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:a});i.add(u)}},t.prototype._renderLines=function(e,o,i,n){var a=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),d=e.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=o.start,h=0;u.time<=o.end.time;h++){p(u.formatedDate),h===0&&(u=s.getDateInfo(o.start.y+"-"+o.start.m));var g=u.date;g.setMonth(g.getMonth()+1),u=s.getDateInfo(g)}p(s.getNextNDay(o.end.time,1).formatedDate);function p(x){a._firstDayOfMonth.push(s.getDateInfo(x)),a._firstDayPoints.push(s.dataToRect([x],!1).tl);var m=a._getLinePointsOfOneWeek(e,x,i);a._tlpoints.push(m[0]),a._blpoints.push(m[m.length-1]),d&&a._drawSplitline(m,l,n)}d&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,c,i),l,n),d&&this._drawSplitline(a._getEdgesPoints(a._blpoints,c,i),l,n)},t.prototype._getEdgesPoints=function(e,o,i){var n=[e[0].slice(),e[e.length-1].slice()],a=i==="horizontal"?0:1;return n[0][a]=n[0][a]-o/2,n[1][a]=n[1][a]+o/2,n},t.prototype._drawSplitline=function(e,o,i){var n=new Xt({z2:20,shape:{points:e},style:o});i.add(n)},t.prototype._getLinePointsOfOneWeek=function(e,o,i){for(var n=e.coordinateSystem,a=n.getDateInfo(o),s=[],l=0;l<7;l++){var d=n.getNextNDay(a.time,l),c=n.dataToRect([d.time],!1);s[2*d.day]=c.tl,s[2*d.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,o){return te(e)&&e?x4(e,o):ae(e)?e(o):o.nameMap},t.prototype._yearTextPositionControl=function(e,o,i,n,a){var s=o[0],l=o[1],d=["center","bottom"];n==="bottom"?(l+=a,d=["center","top"]):n==="left"?s-=a:n==="right"?(s+=a,d=["center","top"]):l-=a;var c=0;return(n==="left"||n==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:d[0],verticalAlign:d[1]}}},t.prototype._renderYearText=function(e,o,i,n){var a=e.getModel("yearLabel");if(a.get("show")){var s=a.get("margin"),l=a.get("position");l||(l=i!=="horizontal"?"top":"left");var d=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(d[0][0]+d[1][0])/2,u=(d[0][1]+d[1][1])/2,h=i==="horizontal"?0:1,g={top:[c,d[h][1]],bottom:[c,d[1-h][1]],left:[d[1-h][0],u],right:[d[h][0],u]},p=o.start.y;+o.end.y>+o.start.y&&(p=p+"-"+o.end.y);var x=a.get("formatter"),m={start:o.start.y,end:o.end.y,nameMap:p},f=this._formatterLabel(x,m),v=new Le({z2:30,style:Ue(a,{text:f})});v.attr(this._yearTextPositionControl(v,g[l],i,l,s)),n.add(v)}},t.prototype._monthTextPositionControl=function(e,o,i,n,a){var s="left",l="top",d=e[0],c=e[1];return i==="horizontal"?(c=c+a,o&&(s="center"),n==="start"&&(l="bottom")):(d=d+a,o&&(l="middle"),n==="start"&&(s="right")),{x:d,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,o,i,n){var a=e.getModel("monthLabel");if(a.get("show")){var s=a.get("nameMap"),l=a.get("margin"),d=a.get("position"),c=a.get("align"),u=[this._tlpoints,this._blpoints];(!s||te(s))&&(s&&(o=Np(s)||o),s=o.get(["time","monthAbbr"])||[]);var h=d==="start"?0:1,g=i==="horizontal"?0:1;l=d==="start"?-l:l;for(var p=c==="center",x=0;x=i.start.time&&o.times.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],o;e[0].time>e[1].time&&(o=!0,e.reverse());var i=Math.floor(e[1].time/Ax)-Math.floor(e[0].time/Ax)+1,n=new Date(e[0].time),a=n.getDate(),s=e[1].date.getDate();n.setDate(a+i-1);var l=n.getDate();if(l!==s)for(var d=n.getTime()-e[1].time>0?1:-1;(l=n.getDate())!==s&&(n.getTime()-e[1].time)*d>0;)i-=d,n.setDate(l-d);var c=Math.floor((i+e[0].day+6)/7),u=o?-c+1:c-1;return o&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:i,weeks:c,nthWeek:u,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,o){var i=this._getRangeInfo(o);if(t>i.weeks||t===0&&ei.lweek)return null;var n=(t-1)*7-i.fweek+e,a=new Date(i.start.time);return a.setDate(+i.start.d+n),this.getDateInfo(a)},r.create=function(t,e){var o=[];return t.eachComponent("calendar",function(i){var n=new r(i);o.push(n),i.coordinateSystem=n}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=o[i.get("calendarIndex")||0])}),o},r.dimensions=["time","value"],r}();function NL(r){var t=r.calendarModel,e=r.seriesModel,o=t?t.coordinateSystem:e?e.coordinateSystem:null;return o}const NY=GY;function kY(r){r.registerComponentModel(DY),r.registerComponentView(BY),r.registerCoordinateSystem("calendar",NY)}function RY(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var o=t.parentOption;o?t.parentId=o.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function kL(r,t){var e;return E(t,function(o){r[o]!=null&&r[o]!=="auto"&&(e=!0)}),e}function FY(r,t,e){var o=W({},e),i=r[t],n=e.$action||"merge";n==="merge"?i?(xe(i,o,!0),pi(i,o,{ignoreSize:!0}),iM(e,i),Xh(e,i),Xh(e,i,"shape"),Xh(e,i,"style"),Xh(e,i,"extra"),e.clipPath=i.clipPath):r[t]=o:n==="replace"?r[t]=o:n==="remove"&&i&&(r[t]=null)}var RL=["transition","enterFrom","leaveTo"],VY=RL.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Xh(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var o=e?RL:VY,i=0;i=0;c--){var u=i[c],h=lt(u.id,null),g=h!=null?a.get(h):null;if(g){var p=g.parent,f=Ir(p),v=p===n?{width:s,height:l}:{width:f.width,height:f.height},y={},_=xu(g,u,v,null,{hv:u.hv,boundingMode:u.bounding},y);if(!Ir(g).isNew&&_){for(var S=u.transition,b={},A=0;A=0)?b[M]=T:g[M]=T}$e(g,b,e,0)}else g.attr(y)}}},t.prototype._clear=function(){var e=this,o=this._elMap;o.each(function(i){Uh(i,Ir(i).option,o,e._lastGraphicModel)}),this._elMap=ne()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ye);function Tx(r){var t=oe(FL,r)?FL[r]:ou(r),e=new t({});return Ir(e).type=r,e}function VL(r,t,e,o){var i=Tx(e);return t.add(i),o.set(r,i),Ir(i).id=r,Ir(i).isNew=!0,i}function Uh(r,t,e,o){var i=r&&r.parent;i&&(r.type==="group"&&r.traverse(function(n){Uh(n,t,e,o)}),Gh(r,t,o),e.removeKey(Ir(r).id))}function HL(r,t,e,o){r.isGroup||E([["cursor",xr.prototype.cursor],["zlevel",o||0],["z",e||0],["z2",0]],function(i){var n=i[0];oe(t,n)?r[n]=pe(t[n],i[1]):r[n]==null&&(r[n]=i[1])}),E(Ae(t),function(i){if(i.indexOf("on")===0){var n=t[i];r[i]=ae(n)?n:null}}),oe(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function WY(r){return r=W({},r),E(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(oM),function(t){delete r[t]}),r}function zY(r,t,e){var o=he(r).eventData;!r.silent&&!r.ignore&&!o&&(o=he(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),o&&(o.info=e.info)}function KY(r){r.registerComponentModel(XY),r.registerComponentView(UY),r.registerPreprocessor(function(t){var e=t.graphic;K(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var XL=["x","y","radius","angle","single"],ZY=["cartesian2d","polar","singleAxis"];function YY(r){var t=r.get("coordinateSystem");return Se(ZY,t)>=0}function Ei(r){return r+"Axis"}function QY(r,t){var e=ne(),o=[],i=ne();r.eachComponent({mainType:"dataZoom",query:t},function(c){i.get(c.uid)||s(c)});var n;do n=!1,r.eachComponent("dataZoom",a);while(n);function a(c){!i.get(c.uid)&&l(c)&&(s(c),n=!0)}function s(c){i.set(c.uid,!0),o.push(c),d(c)}function l(c){var u=!1;return c.eachTargetAxis(function(h,g){var p=e.get(h);p&&p[g]&&(u=!0)}),u}function d(c){c.eachTargetAxis(function(u,h){(e.get(u)||e.set(u,[]))[h]=!0})}return o}function UL(r){var t=r.ecModel,e={infoList:[],infoMap:ne()};return r.eachTargetAxis(function(o,i){var n=t.getComponent(Ei(o),i);if(n){var a=n.getCoordSysModel();if(a){var s=a.uid,l=e.infoMap.get(s);l||(l={model:a,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(n)}}}),e}var Cx=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),JY=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,o,i){var n=WL(e);this.settledOption=n,this.mergeDefaultAndTheme(e,i),this._doInit(n)},t.prototype.mergeOption=function(e){var o=WL(e);xe(this.option,e,!0),xe(this.settledOption,o,!0),this._doInit(o)},t.prototype._doInit=function(e){var o=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;E([["start","startValue"],["end","endValue"]],function(n,a){this._rangePropMode[a]==="value"&&(o[n[0]]=i[n[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),o=this._targetAxisInfoMap=ne(),i=this._fillSpecifiedTargetAxis(o);i?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(o,this._orient)),this._noTarget=!0,o.each(function(n){n.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var o=!1;return E(XL,function(i){var n=this.getReferringComponents(Ei(i),eG);if(n.specified){o=!0;var a=new Cx;E(n.models,function(s){a.add(s.componentIndex)}),e.set(i,a)}},this),o},t.prototype._fillAutoTargetAxisByOrient=function(e,o){var i=this.ecModel,n=!0;if(n){var a=o==="vertical"?"y":"x",s=i.findComponents({mainType:a+"Axis"});l(s,a)}if(n){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===o}});l(s,"single")}function l(d,c){var u=d[0];if(u){var h=new Cx;if(h.add(u.componentIndex),e.set(c,h),n=!1,c==="x"||c==="y"){var g=u.getReferringComponents("grid",ot).models[0];g&&E(d,function(p){u.componentIndex!==p.componentIndex&&g===p.getReferringComponents("grid",ot).models[0]&&h.add(p.componentIndex)})}}}n&&E(XL,function(d){if(n){var c=i.findComponents({mainType:Ei(d),filter:function(h){return h.get("type",!0)==="category"}});if(c[0]){var u=new Cx;u.add(c[0].componentIndex),e.set(d,u),n=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(o){!e&&(e=o)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var o=this.ecModel.option;this.option.throttle=o.animation&&o.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var o=this._rangePropMode,i=this.get("rangeMode");E([["start","startValue"],["end","endValue"]],function(n,a){var s=e[n[0]]!=null,l=e[n[1]]!=null;s&&!l?o[a]="percent":!s&&l?o[a]="value":i?o[a]=i[a]:s&&(o[a]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(o,i){e==null&&(e=this.ecModel.getComponent(Ei(o),i))},this),e},t.prototype.eachTargetAxis=function(e,o){this._targetAxisInfoMap.each(function(i,n){E(i.indexList,function(a){e.call(o,n,a)})})},t.prototype.getAxisProxy=function(e,o){var i=this.getAxisModel(e,o);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,o){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[o])return this.ecModel.getComponent(Ei(e),o)},t.prototype.setRawRange=function(e){var o=this.option,i=this.settledOption;E([["start","startValue"],["end","endValue"]],function(n){(e[n[0]]!=null||e[n[1]]!=null)&&(o[n[0]]=i[n[0]]=e[n[0]],o[n[1]]=i[n[1]]=e[n[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var o=this.option;E(["start","startValue","end","endValue"],function(i){o[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,o){if(e==null&&o==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,o).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var o,i=this._targetAxisInfoMap.keys(),n=0;na[1];if(y&&!_&&!S)return!0;y&&(m=!0),_&&(p=!0),S&&(x=!0)}return m&&p&&x})}else us(c,function(g){if(n==="empty")l.setData(d=d.map(g,function(x){return s(x)?x:NaN}));else{var p={};p[g]=a,d.selectRange(p)}});us(c,function(g){d.setApproximateExtent(a,g)})}});function s(l){return l>=a[0]&&l<=a[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,o=this._dataExtent;us(["min","max"],function(i){var n=e.get(i+"Span"),a=e.get(i+"ValueSpan");a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a!=null?n=Ne(o[0]+a,o,[0,100],!0):n!=null&&(a=Ne(n,[0,100],o,!0)-o[0]),t[i+"Span"]=n,t[i+"ValueSpan"]=a},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,o=this._valueWindow;if(e){var i=Bm(o,[0,500]);i=Math.min(i,20);var n=t.axis.scale.rawExtentInfo;e[0]!==0&&n.setDeterminedMinMax("min",+o[0].toFixed(i)),e[1]!==100&&n.setDeterminedMinMax("max",+o[1].toFixed(i)),n.freeze()}},r}();function iQ(r,t,e){var o=[1/0,-1/0];us(e,function(a){h8(o,a.getData(),t)});var i=r.getAxisModel(),n=JA(i.axis.scale,i,o).calculate();return[n.min,n.max]}const nQ=oQ;var aQ={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(a,s){var l=r.getComponent(Ei(a),s);i(a,s,l,n)})})}t(function(i,n,a,s){a.__dzAxisProxy=null});var e=[];t(function(i,n,a,s){a.__dzAxisProxy||(a.__dzAxisProxy=new nQ(i,n,s,r),e.push(a.__dzAxisProxy))});var o=ne();return E(e,function(i){E(i.getTargetSeriesModels(),function(n){o.set(n.uid,n)})}),o},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(o,i){e.getAxisProxy(o,i).reset(e)}),e.eachTargetAxis(function(o,i){e.getAxisProxy(o,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var o=e.findRepresentativeAxisProxy();if(o){var i=o.getDataPercentWindow(),n=o.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}})}};const sQ=aQ;function lQ(r){r.registerAction("dataZoom",function(t,e){var o=QY(e,t);E(o,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var KL=!1;function Lx(r){KL||(KL=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,sQ),lQ(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function dQ(r){r.registerComponentModel(qY),r.registerComponentView(rQ),Lx(r)}var Er=function(){function r(){}return r}(),ZL={};function hs(r,t){ZL[r]=t}function YL(r){return ZL[r]}var cQ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;E(this.option.feature,function(o,i){var n=YL(i);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(e)),xe(o,n.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Te);const uQ=cQ;function hQ(r,t,e){var o=t.getBoxLayoutParams(),i=t.get("padding"),n={width:e.getWidth(),height:e.getHeight()},a=it(o,n,i);bn(t.get("orient"),r,t.get("itemGap"),a.width,a.height),xu(r,o,n,i)}function QL(r,t){var e=yn(t.get("padding")),o=t.getItemStyle(["color","opacity"]);return o.fill=t.get("backgroundColor"),r=new Pe({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:o,silent:!0,z2:-1}),r}var gQ=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,o,i,n){var a=this.group;if(a.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",d=e.get("feature")||{},c=this._features||(this._features={}),u=[];E(d,function(p,x){u.push(x)}),new Fo(this._featureNames||[],u).add(h).update(h).remove(me(h,null)).execute(),this._featureNames=u;function h(p,x){var m=u[p],f=u[x],v=d[m],y=new Re(v,e,e.ecModel),_;if(n&&n.newTitle!=null&&n.featureName===m&&(v.title=n.newTitle),m&&!f){if(mQ(m))_={onclick:y.option.onclick,featureName:m};else{var S=YL(m);if(!S)return;_=new S}c[m]=_}else if(_=c[f],!_)return;_.uid=Ea("toolbox-feature"),_.model=y,_.ecModel=o,_.api=i;var b=_ instanceof Er;if(!m&&f){b&&_.dispose&&_.dispose(o,i);return}if(!y.get("show")||b&&_.unusable){b&&_.remove&&_.remove(o,i);return}g(y,_,m),y.setIconStatus=function(A,M){var T=this.option,w=this.iconPaths;T.iconStatus=T.iconStatus||{},T.iconStatus[A]=M,w[A]&&(M==="emphasis"?Go:No)(w[A])},_ instanceof Er&&_.render&&_.render(y,o,i,n)}function g(p,x,m){var f=p.getModel("iconStyle"),v=p.getModel(["emphasis","iconStyle"]),y=x instanceof Er&&x.getIcons?x.getIcons():p.get("icon"),_=p.get("title")||{},S,b;te(y)?(S={},S[m]=y):S=y,te(_)?(b={},b[m]=_):b=_;var A=p.iconPaths={};E(S,function(M,T){var w=Pa(M,{},{x:-s/2,y:-s/2,width:s,height:s});w.setStyle(f.getItemStyle());var C=w.ensureState("emphasis");C.style=v.getItemStyle();var P=new Le({style:{text:b[T],align:v.get("textAlign"),borderRadius:v.get("textBorderRadius"),padding:v.get("textPadding"),fill:null,font:Ep({fontStyle:v.get("textFontStyle"),fontFamily:v.get("textFontFamily"),fontSize:v.get("textFontSize"),fontWeight:v.get("textFontWeight")},o)},ignore:!0});w.setTextContent(P),La({el:w,componentModel:e,itemName:T,formatterParamsExtra:{title:b[T]}}),w.__title=b[T],w.on("mouseover",function(){var L=v.getItemStyle(),$=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";P.setStyle({fill:v.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:v.get("textBackgroundColor")}),w.setTextConfig({position:v.get("textPosition")||$}),P.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",T])!=="emphasis"&&i.leaveEmphasis(this),P.hide()}),(p.get(["iconStatus",T])==="emphasis"?Go:No)(w),a.add(w),w.on("click",re(x.onclick,x,o,i,T)),A[T]=w})}hQ(a,e,i),a.add(QL(a.getBoundingRect(),e)),l||a.eachChild(function(p){var x=p.__title,m=p.ensureState("emphasis"),f=m.textConfig||(m.textConfig={}),v=p.getTextContent(),y=v&&v.ensureState("emphasis");if(y&&!ae(y)&&x){var _=y.style||(y.style={}),S=Ys(x,Le.makeFont(_)),b=p.x+a.x,A=p.y+a.y+s,M=!1;A+S.height>i.getHeight()&&(f.position="top",M=!0);var T=M?-5-S.height:s+10;b+S.width/2>i.getWidth()?(f.position=["100%",T],_.align="right"):b-S.width/2<0&&(f.position=[0,T],_.align="left")}})},t.prototype.updateView=function(e,o,i,n){E(this._features,function(a){a instanceof Er&&a.updateView&&a.updateView(a.model,o,i,n)})},t.prototype.remove=function(e,o){E(this._features,function(i){i instanceof Er&&i.remove&&i.remove(e,o)}),this.group.removeAll()},t.prototype.dispose=function(e,o){E(this._features,function(i){i instanceof Er&&i.dispose&&i.dispose(e,o)})},t.type="toolbox",t}(Ye);function mQ(r){return r.indexOf("my")===0}const pQ=gQ;var fQ=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,o){var i=this.model,n=i.get("name")||e.get("title.0.text")||"echarts",a=o.getZr().painter.getType()==="svg",s=a?"svg":i.get("type",!0)||"png",l=o.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),d=Ie.browser;if(typeof MouseEvent=="function"&&(d.newEdge||!d.ie&&!d.edge)){var c=document.createElement("a");c.download=n+"."+s,c.target="_blank",c.href=l;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||a){var h=l.split(","),g=h[0].indexOf("base64")>-1,p=a?decodeURIComponent(h[1]):h[1];g&&(p=window.atob(p));var x=n+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=p.length,f=new Uint8Array(m);m--;)f[m]=p.charCodeAt(m);var v=new Blob([f]);window.navigator.msSaveOrOpenBlob(v,x)}else{var y=document.createElement("iframe");document.body.appendChild(y);var _=y.contentWindow,S=_.document;S.open("image/svg+xml","replace"),S.write(p),S.close(),_.focus(),S.execCommand("SaveAs",!0,x),document.body.removeChild(y)}}else{var b=i.get("lang"),A='',M=window.open();M.document.write(A),M.document.title=n}},t.getDefaultOption=function(e){var o={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return o},t}(Er);const xQ=fQ;var JL="__ec_magicType_stack__",vQ=[["line","bar"],["stack"]],yQ=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,o=e.get("icon"),i={};return E(e.get("type"),function(n){o[n]&&(i[n]=o[n])}),i},t.getDefaultOption=function(e){var o={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return o},t.prototype.onclick=function(e,o,i){var n=this.model,a=n.get(["seriesIndex",i]);if(jL[i]){var s={series:[]},l=function(u){var h=u.subType,g=u.id,p=jL[i](h,g,u,n);p&&(le(p,u.option),s.series.push(p));var x=u.coordinateSystem;if(x&&x.type==="cartesian2d"&&(i==="line"||i==="bar")){var m=x.getAxesByScale("ordinal")[0];if(m){var f=m.dim,v=f+"Axis",y=u.getReferringComponents(v,ot).models[0],_=y.componentIndex;s[v]=s[v]||[];for(var S=0;S<=_;S++)s[v][_]=s[v][_]||{};s[v][_].boundaryGap=i==="bar"}}};E(vQ,function(u){Se(u,i)>=0&&E(u,function(h){n.setIconStatus(h,"normal")})}),n.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},l);var d,c=i;i==="stack"&&(d=xe({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),n.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),o.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:d,featureName:"magicType"})}},t}(Er),jL={line:function(r,t,e,o){if(r==="bar")return xe({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},o.get(["option","line"])||{},!0)},bar:function(r,t,e,o){if(r==="line")return xe({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},o.get(["option","bar"])||{},!0)},stack:function(r,t,e,o){var i=e.get("stack")===JL;if(r==="line"||r==="bar")return o.setIconStatus("stack",i?"normal":"emphasis"),xe({id:t,stack:i?"":JL},o.get(["option","stack"])||{},!0)}};Kr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const _Q=yQ;var Wh=new Array(60).join("-"),gs=" ";function SQ(r){var t={},e=[],o=[];return r.eachRawSeries(function(i){var n=i.coordinateSystem;if(n&&(n.type==="cartesian2d"||n.type==="polar")){var a=n.getBaseAxis();if(a.type==="category"){var s=a.dim+"_"+a.index;t[s]||(t[s]={categoryAxis:a,valueAxis:n.getOtherAxis(a),series:[]},o.push({axisDim:a.dim,axisIndex:a.index})),t[s].series.push(i)}else e.push(i)}else e.push(i)}),{seriesGroupByCategoryAxis:t,other:e,meta:o}}function bQ(r){var t=[];return E(r,function(e,o){var i=e.categoryAxis,n=e.valueAxis,a=n.dim,s=[" "].concat(Y(e.series,function(g){return g.name})),l=[i.model.getCategories()];E(e.series,function(g){var p=g.getRawData();l.push(g.getRawData().mapArray(p.mapDimension(a),function(x){return x}))});for(var d=[s.join(gs)],c=0;c=0)return!0}var Ix=new RegExp("["+gs+"]+","g");function wQ(r){for(var t=r.split(/\n+/g),e=zh(t.shift()).split(Ix),o=[],i=Y(e,function(l){return{name:l,data:[]}}),n=0;n=0;n--){var a=e[n];if(a[i])break}if(n<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();e[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),e.push(t)}function DQ(r){var t=Ex(r),e=t[t.length-1];t.length>1&&t.pop();var o={};return qL(e,function(i,n){for(var a=t.length-1;a>=0;a--)if(i=t[a][n],i){o[n]=i;break}}),o}function OQ(r){eI(r).snapshots=null}function BQ(r){return Ex(r).length}function Ex(r){var t=eI(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var GQ=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,o){OQ(e),o.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var o={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return o},t}(Er);Kr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const NQ=GQ;var kQ=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],RQ=function(){function r(t,e,o){var i=this;this._targetInfoList=[];var n=tI(e,t);E(FQ,function(a,s){(!o||!o.include||Se(o.include,s)>=0)&&a(n,i._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(o,i,n){if((o.coordRanges||(o.coordRanges=[])).push(i),!o.coordRange){o.coordRange=i;var a=Dx[o.brushType](0,n,i);o.__rangeOffset={offset:nI[o.brushType](a.values,o.range,[1,1]),xyMinMax:a.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,o){E(t,function(i){var n=this.findTargetInfo(i,e);n&&n!==!0&&E(n.coordSyses,function(a){var s=Dx[i.brushType](1,a,i.range,!0);o(i,s.values,a,e)})},this)},r.prototype.setInputRanges=function(t,e){E(t,function(o){var i=this.findTargetInfo(o,e);if(o.range=o.range||[],i&&i!==!0){o.panelId=i.panelId;var n=Dx[o.brushType](0,i.coordSys,o.coordRange),a=o.__rangeOffset;o.range=a?nI[o.brushType](n.values,a.offset,VQ(n.xyMinMax,a.xyMinMax)):n.values}},this)},r.prototype.makePanelOpts=function(t,e){return Y(this._targetInfoList,function(o){var i=o.getPanelRect();return{panelId:o.panelId,defaultBrushType:e?e(o):null,clipPath:o5(i),isTargetByCursor:n5(i,t,o.coordSysModel),getLinearBrushOtherExtent:i5(i)}})},r.prototype.controlSeries=function(t,e,o){var i=this.findTargetInfo(t,o);return i===!0||i&&Se(i.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var o=this._targetInfoList,i=tI(e,t),n=0;nr[1]&&r.reverse(),r}function tI(r,t){return qs(r,t,{includeMainTypes:kQ})}var FQ={grid:function(r,t){var e=r.xAxisModels,o=r.yAxisModels,i=r.gridModels,n=ne(),a={},s={};!e&&!o&&!i||(E(e,function(l){var d=l.axis.grid.model;n.set(d.id,d),a[d.id]=!0}),E(o,function(l){var d=l.axis.grid.model;n.set(d.id,d),s[d.id]=!0}),E(i,function(l){n.set(l.id,l),a[l.id]=!0,s[l.id]=!0}),n.each(function(l){var d=l.coordinateSystem,c=[];E(d.getCartesians(),function(u,h){(Se(e,u.getAxis("x").model)>=0||Se(o,u.getAxis("y").model)>=0)&&c.push(u)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:oI.grid,xAxisDeclared:a[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){E(r.geoModels,function(e){var o=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:o,coordSyses:[o],getPanelRect:oI.geo})})}},rI=[function(r,t){var e=r.xAxisModel,o=r.yAxisModel,i=r.gridModel;return!i&&e&&(i=e.axis.grid.model),!i&&o&&(i=o.axis.grid.model),i&&i===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],oI={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(hi(r)),t}},Dx={lineX:me(iI,0),lineY:me(iI,1),rect:function(r,t,e,o){var i=r?t.pointToData([e[0][0],e[1][0]],o):t.dataToPoint([e[0][0],e[1][0]],o),n=r?t.pointToData([e[0][1],e[1][1]],o):t.dataToPoint([e[0][1],e[1][1]],o),a=[$x([i[0],n[0]]),$x([i[1],n[1]])];return{values:a,xyMinMax:a}},polygon:function(r,t,e,o){var i=[[1/0,-1/0],[1/0,-1/0]],n=Y(e,function(a){var s=r?t.pointToData(a,o):t.dataToPoint(a,o);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:n,xyMinMax:i}}};function iI(r,t,e,o){var i=e.getAxis(["x","y"][r]),n=$x(Y([0,1],function(s){return t?i.coordToData(i.toLocalCoord(o[s]),!0):i.toGlobalCoord(i.dataToCoord(o[s]))})),a=[];return a[r]=n,a[1-r]=[NaN,NaN],{values:n,xyMinMax:a}}var nI={lineX:me(aI,0),lineY:me(aI,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return Y(r,function(o,i){return[o[0]-e[0]*t[i][0],o[1]-e[1]*t[i][1]]})}};function aI(r,t,e,o){return[t[0]-o[r]*e[0],t[1]-o[r]*e[1]]}function VQ(r,t){var e=sI(r),o=sI(t),i=[e[0]/o[0],e[1]/o[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function sI(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const Ox=RQ;var Bx=E,HQ=YB("toolbox-dataZoom_"),XQ=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,o,i,n){this._brushController||(this._brushController=new V1(i.getZr()),this._brushController.on("brush",re(this._onBrush,this)).mount()),zQ(e,o,this,n,i),WQ(e,o)},t.prototype.onclick=function(e,o,i){UQ[i].call(this)},t.prototype.remove=function(e,o){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,o){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var o=e.areas;if(!e.isEnd||!o.length)return;var i={},n=this.ecModel;this._brushController.updateCovers([]);var a=new Ox(Gx(this.model),n,{include:["grid"]});a.matchOutputRanges(o,n,function(d,c,u){if(u.type==="cartesian2d"){var h=d.brushType;h==="rect"?(s("x",u,c[0]),s("y",u,c[1])):s({lineX:"x",lineY:"y"}[h],u,c)}}),$Q(n,i),this._dispatchZoomAction(i);function s(d,c,u){var h=c.getAxis(d),g=h.model,p=l(d,g,n),x=p.findRepresentativeAxisProxy(g).getMinMaxSpan();(x.minValueSpan!=null||x.maxValueSpan!=null)&&(u=Yn(0,u.slice(),h.scale.getExtent(),0,x.minValueSpan,x.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:u[0],endValue:u[1]})}function l(d,c,u){var h;return u.eachComponent({mainType:"dataZoom",subType:"select"},function(g){var p=g.getAxisModel(d,c.componentIndex);p&&(h=g)}),h}},t.prototype._dispatchZoomAction=function(e){var o=[];Bx(e,function(i,n){o.push(ce(i))}),o.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:o})},t.getDefaultOption=function(e){var o={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return o},t}(Er),UQ={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(DQ(this.ecModel))}};function Gx(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function WQ(r,t){r.setIconStatus("back",BQ(t)>1?"emphasis":"normal")}function zQ(r,t,e,o,i){var n=e._isZoomActive;o&&o.type==="takeGlobalCursor"&&(n=o.key==="dataZoomSelect"?o.dataZoomSelectActive:!1),e._isZoomActive=n,r.setIconStatus("zoom",n?"emphasis":"normal");var a=new Ox(Gx(r),t,{include:["grid"]}),s=a.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(n&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}C4("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var o=t.getModel(e),i=[],n=Gx(o),a=qs(r,n);Bx(a.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Bx(a.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,d,c){var u=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:o.get("filterMode",!0)||"filter",id:HQ+d+u};h[c]=u,i.push(h)}return i});const KQ=XQ;function ZQ(r){r.registerComponentModel(uQ),r.registerComponentView(pQ),hs("saveAsImage",xQ),hs("magicType",_Q),hs("dataView",EQ),hs("dataZoom",KQ),hs("restore",NQ),be(dQ)}var YQ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Te);const QQ=YQ;function lI(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function dI(r){if(Ie.domSupported){for(var t=document.documentElement.style,e=0,o=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(d=n==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(d=n==="top"?225:45)+"deg)");var c=d*Math.PI/180,u=a+i,h=u*Math.abs(Math.cos(c))+u*Math.abs(Math.sin(c)),g=Math.round(((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-u)/2)*100)/100;s+=";"+n+":-"+g+"px";var p=t+" solid "+i+"px;",x=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+o+";"];return'
'}function oJ(r,t){var e="cubic-bezier(0.23,1,0.32,1)",o=" "+r/2+"s "+e,i="opacity"+o+",visibility"+o;return t||(o=" "+r+"s "+e,i+=Ie.transformSupported?","+Nx+o:",left"+o+",top"+o),qQ+":"+i}function hI(r,t,e){var o=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Ie.transformSupported)return e?"top:"+i+";left:"+o+";":[["top",i],["left",o]];var n=Ie.transform3dSupported,a="translate"+(n?"3d":"")+"("+o+","+i+(n?",0":"")+")";return e?"top:0;left:0;"+Nx+":"+a+";":[["top",0],["left",0],[cI,a]]}function iJ(r){var t=[],e=r.get("fontSize"),o=r.getTextColor();o&&t.push("color:"+o),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var i=r.get("textShadowColor"),n=r.get("textShadowBlur")||0,a=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return i&&n&&t.push("text-shadow:"+a+"px "+s+"px "+n+"px "+i),E(["decoration","align"],function(l){var d=r.get(l);d&&t.push("text-"+l+":"+d)}),t.join(";")}function nJ(r,t,e){var o=[],i=r.get("transitionDuration"),n=r.get("backgroundColor"),a=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),d=r.get("shadowOffsetY"),c=r.getModel("textStyle"),u=s2(r,"html"),h=l+"px "+d+"px "+a+"px "+s;return o.push("box-shadow:"+h),t&&i&&o.push(oJ(i,e)),n&&o.push("background-color:"+n),E(["width","color","radius"],function(g){var p="border-"+g,x=Xp(p),m=r.get(x);m!=null&&o.push(p+":"+m+(g==="color"?"":"px"))}),o.push(iJ(c)),u!=null&&o.push("padding:"+yn(u).join("px ")+"px"),o.join(";")+";"}function gI(r,t,e,o,i){var n=t&&t.painter;if(e){var a=n&&n.getViewportRoot();a&&gO(r,a,e,o,i)}else{r[0]=o,r[1]=i;var s=n&&n.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var aJ=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ie.wxa)return null;var o=document.createElement("div");o.domBelongToZr=!0,this.el=o;var i=this._zr=t.getZr(),n=e.appendTo,a=n&&(te(n)?document.querySelector(n):Vi(n)?n:ae(n)&&n(t.getDom()));gI(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(o),this._api=t,this._container=a;var s=this;o.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},o.onmousemove=function(l){if(l=l||window.event,!s._enterable){var d=i.handler,c=i.painter.getViewportRoot();mr(c,l,!0),d.dispatch("mousemove",l)}},o.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),o=jQ(e,"position"),i=e.style;i.position!=="absolute"&&o!=="absolute"&&(i.position="relative")}var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var o=this.el,i=o.style,n=this._styleCoord;o.innerHTML?i.cssText=eJ+nJ(t,!this._firstShow,this._longHide)+hI(n[0],n[1],!0)+("border-color:"+_n(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,o,i,n){var a=this.el;if(t==null){a.innerHTML="";return}var s="";if(te(n)&&o.get("trigger")==="item"&&!lI(o)&&(s=rJ(o,i,n)),te(t))a.innerHTML=t+s;else if(t){a.innerHTML="",K(t)||(t=[t]);for(var l=0;l=0?this._tryShow(n,a):i==="leave"&&this._hide(a))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,o=this._ecModel,i=this._api,n=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&n!=="none"&&n!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(e,o,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,o,i,n){if(!(n.from===this.uid||Ie.node||!i.getDom())){var a=fI(n,i);this._ticket="";var s=n.dataByCoordSys,l=pJ(n,o,i);if(l){var d=l.el.getBoundingRect().clone();d.applyTransform(l.el.transform),this._tryShow({offsetX:d.x+d.width/2,offsetY:d.y+d.height/2,target:l.el,position:n.position,positionDefault:"bottom"},a)}else if(n.tooltip&&n.x!=null&&n.y!=null){var c=cJ;c.x=n.x,c.y=n.y,c.update(),he(c).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:c},a)}else if(s)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},a);else if(n.seriesIndex!=null){if(this._manuallyAxisShowTip(e,o,i,n))return;var u=bL(n,o),h=u.point[0],g=u.point[1];h!=null&&g!=null&&this._tryShow({offsetX:h,offsetY:g,target:u.el,position:n.position,positionDefault:"bottom"},a)}else n.x!=null&&n.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},a))}},t.prototype.manuallyHideTip=function(e,o,i,n){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(fI(n,i))},t.prototype._manuallyAxisShowTip=function(e,o,i,n){var a=n.seriesIndex,s=n.dataIndex,l=o.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var d=o.getSeriesByIndex(a);if(d){var c=d.getData(),u=Sd([c.getItemModel(s),d,(d.coordinateSystem||{}).model],this._tooltipModel);if(u.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:n.position}),!0}}},t.prototype._tryShow=function(e,o){var i=e.target,n=this._tooltipModel;if(n){this._lastX=e.offsetX,this._lastY=e.offsetY;var a=e.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,e);else if(i){var s=he(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,d;wn(i,function(c){if(he(c).dataIndex!=null)return l=c,!0;if(he(c).tooltipConfig!=null)return d=c,!0},!0),l?this._showSeriesItemTooltip(e,l,o):d?this._showComponentItemTooltip(e,d,o):this._hide(o)}else this._lastDataByCoordSys=null,this._hide(o)}},t.prototype._showOrMove=function(e,o){var i=e.get("showDelay");o=re(o,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(o,i):o()},t.prototype._showAxisTooltip=function(e,o){var i=this._ecModel,n=this._tooltipModel,a=[o.offsetX,o.offsetY],s=Sd([o.tooltipOption],n),l=this._renderMode,d=[],c=mt("section",{blocks:[],noHeader:!0}),u=[],h=new h0;E(e,function(v){E(v.dataByAxis,function(y){var _=i.getComponent(y.axisDim+"Axis",y.axisIndex),S=y.value;if(!(!_||S==null)){var b=mL(S,_.axis,i,y.seriesDataIndices,y.valueLabelOpt),A=mt("section",{header:b,noHeader:!hr(b),sortBlocks:!0,blocks:[]});c.blocks.push(A),E(y.seriesDataIndices,function(M){var T=i.getSeriesByIndex(M.seriesIndex),w=M.dataIndexInside,C=T.getDataParams(w);if(!(C.dataIndex<0)){C.axisDim=y.axisDim,C.axisIndex=y.axisIndex,C.axisType=y.axisType,C.axisId=y.axisId,C.axisValue=ef(_.axis,{value:S}),C.axisValueLabel=b,C.marker=h.makeTooltipMarker("item",_n(C.color),l);var P=VM(T.formatTooltip(w,!0,null)),L=P.frag;if(L){var $=Sd([T],n).get("valueFormatter");A.blocks.push($?W({valueFormatter:$},L):L)}P.text&&u.push(P.text),d.push(C)}})}})}),c.blocks.reverse(),u.reverse();var g=o.position,p=s.get("order"),x=i2(c,h,l,p,i.get("useUTC"),s.get("textStyle"));x&&u.unshift(x);var m=l==="richText"?` - -`:"
",f=u.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,d)?this._updatePosition(s,g,a[0],a[1],this._tooltipContent,d):this._showTooltipContent(s,f,d,Math.random()+"",a[0],a[1],g,null,h)})},t.prototype._showSeriesItemTooltip=function(e,o,i){var n=this._ecModel,a=he(o),s=a.seriesIndex,l=n.getSeriesByIndex(s),d=a.dataModel||l,c=a.dataIndex,u=a.dataType,h=d.getData(u),g=this._renderMode,p=e.positionDefault,x=Sd([h.getItemModel(c),d,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=x.get("trigger");if(!(m!=null&&m!=="item")){var f=d.getDataParams(c,u),v=new h0;f.marker=v.makeTooltipMarker("item",_n(f.color),g);var y=VM(d.formatTooltip(c,!1,u)),_=x.get("order"),S=x.get("valueFormatter"),b=y.frag,A=b?i2(S?W({valueFormatter:S},b):b,v,g,_,n.get("useUTC"),x.get("textStyle")):y.text,M="item_"+d.name+"_"+c;this._showOrMove(x,function(){this._showTooltipContent(x,A,f,M,e.offsetX,e.offsetY,e.position,e.target,v)}),i({type:"showTip",dataIndexInside:c,dataIndex:h.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,o,i){var n=this._renderMode==="html",a=he(o),s=a.tooltipConfig,l=s.option||{},d=l.encodeHTMLContent;if(te(l)){var c=l;l={content:c,formatter:c},d=!0}d&&n&&l.content&&(l=ce(l),l.content=It(l.content));var u=[l],h=this._ecModel.getComponent(a.componentMainType,a.componentIndex);h&&u.push(h),u.push({formatter:l.content});var g=e.positionDefault,p=Sd(u,this._tooltipModel,g?{position:g}:null),x=p.get("content"),m=Math.random()+"",f=new h0;this._showOrMove(p,function(){var v=ce(p.get("formatterParams")||{});this._showTooltipContent(p,x,v,m,e.offsetX,e.offsetY,e.position,o,f)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,o,i,n,a,s,l,d,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var g=o,p=this._getNearestPoint([a,s],i,e.get("trigger"),e.get("borderColor")),x=p.color;if(h)if(te(h)){var m=e.ecModel.get("useUTC"),f=K(i)?i[0]:i,v=f&&f.axisType&&f.axisType.indexOf("time")>=0;g=h,v&&(g=_l(f.axisValue,g,m)),g=zp(g,i,!0)}else if(ae(h)){var y=re(function(_,S){_===this._ticket&&(u.setContent(S,c,e,x,l),this._updatePosition(e,l,a,s,u,i,d))},this);this._ticket=n,g=h(i,n,y)}else g=h;u.setContent(g,c,e,x,l),u.show(e,x),this._updatePosition(e,l,a,s,u,i,d)}},t.prototype._getNearestPoint=function(e,o,i,n){if(i==="axis"||K(o))return{color:n||(this._renderMode==="html"?"#fff":"none")};if(!K(o))return{color:n||o.color||o.borderColor}},t.prototype._updatePosition=function(e,o,i,n,a,s,l){var d=this._api.getWidth(),c=this._api.getHeight();o=o||e.get("position");var u=a.getSize(),h=e.get("align"),g=e.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),ae(o)&&(o=o([i,n],s,a.el,p,{viewSize:[d,c],contentSize:u.slice()})),K(o))i=ee(o[0],d),n=ee(o[1],c);else if(de(o)){var x=o;x.width=u[0],x.height=u[1];var m=it(x,{width:d,height:c});i=m.x,n=m.y,h=null,g=null}else if(te(o)&&l){var f=mJ(o,p,u,e.get("borderWidth"));i=f[0],n=f[1]}else{var f=hJ(i,n,a,d,c,h?null:20,g?null:20);i=f[0],n=f[1]}if(h&&(i-=xI(h)?u[0]/2:h==="right"?u[0]:0),g&&(n-=xI(g)?u[1]/2:g==="bottom"?u[1]:0),lI(e)){var f=gJ(i,n,a,d,c);i=f[0],n=f[1]}a.moveTo(i,n)},t.prototype._updateContentNotChangedOnAxis=function(e,o){var i=this._lastDataByCoordSys,n=this._cbParamsList,a=!!i&&i.length===e.length;return a&&E(i,function(s,l){var d=s.dataByAxis||[],c=e[l]||{},u=c.dataByAxis||[];a=a&&d.length===u.length,a&&E(d,function(h,g){var p=u[g]||{},x=h.seriesDataIndices||[],m=p.seriesDataIndices||[];a=a&&h.value===p.value&&h.axisType===p.axisType&&h.axisId===p.axisId&&x.length===m.length,a&&E(x,function(f,v){var y=m[v];a=a&&f.seriesIndex===y.seriesIndex&&f.dataIndex===y.dataIndex}),n&&E(h.seriesDataIndices,function(f){var v=f.seriesIndex,y=o[v],_=n[v];y&&_&&_.data!==y.data&&(a=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=o,!!a},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,o){Ie.node||!o.getDom()||(Ll(this,"_updatePosition"),this._tooltipContent.dispose(),xx("itemTooltip",o))},t.type="tooltip",t}(Ye);function Sd(r,t,e){var o=t.ecModel,i;e?(i=new Re(e,o,o),i=new Re(t.option,i,o)):i=t;for(var n=r.length-1;n>=0;n--){var a=r[n];a&&(a instanceof Re&&(a=a.get("tooltip",!0)),te(a)&&(a={formatter:a}),a&&(i=new Re(a,i,o)))}return i}function fI(r,t){return r.dispatchAction||re(t.dispatchAction,t)}function hJ(r,t,e,o,i,n,a){var s=e.getSize(),l=s[0],d=s[1];return n!=null&&(r+l+n+2>o?r-=l+n:r+=n),a!=null&&(t+d+a>i?t-=d+a:t+=a),[r,t]}function gJ(r,t,e,o,i){var n=e.getSize(),a=n[0],s=n[1];return r=Math.min(r+a,o)-a,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function mJ(r,t,e,o){var i=e[0],n=e[1],a=Math.ceil(Math.SQRT2*o)+8,s=0,l=0,d=t.width,c=t.height;switch(r){case"inside":s=t.x+d/2-i/2,l=t.y+c/2-n/2;break;case"top":s=t.x+d/2-i/2,l=t.y-n-a;break;case"bottom":s=t.x+d/2-i/2,l=t.y+c+a;break;case"left":s=t.x-i-a,l=t.y+c/2-n/2;break;case"right":s=t.x+d+a,l=t.y+c/2-n/2}return[s,l]}function xI(r){return r==="center"||r==="middle"}function pJ(r,t,e){var o=Hm(r).queryOptionMap,i=o.keys()[0];if(!(!i||i==="series")){var n=el(t,i,o.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=n.models[0];if(a){var s=e.getViewOfComponentModel(a),l;if(s.group.traverse(function(d){var c=he(d).tooltipConfig;if(c&&c.name===r.name)return l=d,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}const fJ=uJ;function xJ(r){be(yd),r.registerComponentModel(QQ),r.registerComponentView(fJ),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},qe),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},qe)}var vJ=["rect","polygon","keep","clear"];function yJ(r,t){var e=ke(r?r.brush:[]);if(e.length){var o=[];E(e,function(l){var d=l.hasOwnProperty("toolbox")?l.toolbox:[];d instanceof Array&&(o=o.concat(d))});var i=r&&r.toolbox;K(i)&&(i=i[0]),i||(i={feature:{}},r.toolbox=[i]);var n=i.feature||(i.feature={}),a=n.brush||(n.brush={}),s=a.type||(a.type=[]);s.push.apply(s,o),_J(s),t&&!s.length&&s.push.apply(s,vJ)}}function _J(r){var t={};E(r,function(e){t[e]=1}),r.length=0,E(t,function(e,o){r.push(o)})}var vI=E;function yI(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function kx(r,t,e){var o={};return vI(t,function(n){var a=o[n]=i();vI(r[n],function(s,l){if(wt.isValidType(l)){var d={type:l,visual:s};e&&e(d,n),a[l]=new wt(d),l==="opacity"&&(d=ce(d),d.type="colorAlpha",a.__hidden.__alphaForOpacity=new wt(d))}})}),o;function i(){var n=function(){};n.prototype.__hidden=n.prototype;var a=new n;return a}}function _I(r,t,e){var o;E(e,function(i){t.hasOwnProperty(i)&&yI(t[i])&&(o=!0)}),o&&E(e,function(i){t.hasOwnProperty(i)&&yI(t[i])?r[i]=ce(t[i]):delete r[i]})}function SJ(r,t,e,o,i,n){var a={};E(r,function(u){var h=wt.prepareVisualTypes(t[u]);a[u]=h});var s;function l(u){return x0(e,s,u)}function d(u,h){L2(e,s,u,h)}n==null?e.each(c):e.each([n],c);function c(u,h){s=n==null?u:h;var g=e.getRawDataItem(s);if(!(g&&g.visualMap===!1))for(var p=o.call(i,u),x=t[p],m=a[p],f=0,v=m.length;ft[0][1]&&(t[0][1]=n[0]),n[1]t[1][1]&&(t[1][1]=n[1])}return t&&wI(t)}};function wI(r){return new ye(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var LJ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,o){this.ecModel=e,this.api=o,this.model,(this._brushController=new V1(o.getZr())).on("brush",re(this._onBrush,this)).mount()},t.prototype.render=function(e,o,i,n){this.model=e,this._updateController(e,o,i,n)},t.prototype.updateTransform=function(e,o,i,n){AI(o),this._updateController(e,o,i,n)},t.prototype.updateVisual=function(e,o,i,n){this.updateTransform(e,o,i,n)},t.prototype.updateView=function(e,o,i,n){this._updateController(e,o,i,n)},t.prototype._updateController=function(e,o,i,n){(!n||n.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(i)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var o=this.model.id,i=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:o,areas:ce(i),$from:o}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:o,areas:ce(i),$from:o})},t.type="brush",t}(Ye);const IJ=LJ;var EJ="#ddd",$J=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,o){var i=this.option;!o&&_I(i,e,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:EJ},n.hasOwnProperty("liftZ")||(n.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Y(e,function(o){return CI(this.option,o)},this))},t.prototype.setBrushOption=function(e){this.brushOption=CI(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Te);function CI(r,t){return xe({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Re(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}const DJ=$J;var OJ=["rect","polygon","lineX","lineY","keep","clear"],BJ=function(r){V(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,o,i){var n,a,s;o.eachComponent({mainType:"brush"},function(l){n=l.brushType,a=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=n,this._brushMode=a,E(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?a==="multiple":l==="clear"?s:l===n)?"emphasis":"normal")})},t.prototype.updateView=function(e,o,i){this.render(e,o,i)},t.prototype.getIcons=function(){var e=this.model,o=e.get("icon",!0),i={};return E(e.get("type",!0),function(n){o[n]&&(i[n]=o[n])}),i},t.prototype.onclick=function(e,o,i){var n=this._brushType,a=this._brushMode;i==="clear"?(o.dispatchAction({type:"axisAreaSelect",intervals:[]}),o.dispatchAction({type:"brush",command:"clear",areas:[]})):o.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?n:n===i?!1:i,brushMode:i==="keep"?a==="multiple"?"single":"multiple":a}})},t.getDefaultOption=function(e){var o={show:!0,type:OJ.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return o},t}(Er);const GJ=BJ;function NJ(r){r.registerComponentView(IJ),r.registerComponentModel(DJ),r.registerPreprocessor(yJ),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,AJ),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(o){o.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},qe),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},qe),hs("brush",GJ)}var kJ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Te),RJ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,o,i){if(this.group.removeAll(),!!e.get("show")){var n=this.group,a=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),d=pe(e.get("textBaseline"),e.get("textVerticalAlign")),c=new Le({style:Ue(a,{text:e.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),u=c.getBoundingRect(),h=e.get("subtext"),g=new Le({style:Ue(s,{text:h,fill:s.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),x=e.get("sublink"),m=e.get("triggerEvent",!0);c.silent=!p&&!m,g.silent=!x&&!m,p&&c.on("click",function(){pu(p,"_"+e.get("target"))}),x&&g.on("click",function(){pu(x,"_"+e.get("subtarget"))}),he(c).eventData=he(g).eventData=m?{componentType:"title",componentIndex:e.componentIndex}:null,n.add(c),h&&n.add(g);var f=n.getBoundingRect(),v=e.getBoxLayoutParams();v.width=f.width,v.height=f.height;var y=it(v,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?y.x+=y.width:l==="center"&&(y.x+=y.width/2)),d||(d=e.get("top")||e.get("bottom"),d==="center"&&(d="middle"),d==="bottom"?y.y+=y.height:d==="middle"&&(y.y+=y.height/2),d=d||"top"),n.x=y.x,n.y=y.y,n.markRedraw();var _={align:l,verticalAlign:d};c.setStyle(_),g.setStyle(_),f=n.getBoundingRect();var S=y.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var A=new Pe({shape:{x:f.x-S[3],y:f.y-S[0],width:f.width+S[1]+S[3],height:f.height+S[0]+S[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});n.add(A)}},t.type="title",t}(Ye);function FJ(r){r.registerComponentModel(kJ),r.registerComponentView(RJ)}var VJ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,o,i){this.mergeDefaultAndTheme(e,i),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var o=this._data.count();this.option.loop?e=(e%o+o)%o:(e>=o&&(e=o-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,o=e.data||[],i=e.axisType,n=this._names=[],a;i==="category"?(a=[],E(o,function(d,c){var u=lt(va(d),""),h;de(d)?(h=ce(d),h.value=c):h=c,a.push(h),n.push(u)})):a=o;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new Bt([{name:"value",type:s}],this);l.initData(a,n)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Te);const PI=VJ;var LI=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=mi(PI.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(PI);je(LI,_u.prototype);const HJ=LI;var XJ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(Ye);const UJ=XJ;var WJ=function(r){V(t,r);function t(e,o,i,n){var a=r.call(this,e,o,i)||this;return a.type=n||"value",a}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Tr);const zJ=WJ;var Vx=Math.PI,II=Ce(),KJ=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,o){this.api=o},t.prototype.render=function(e,o,i){if(this.model=e,this.api=i,this.ecModel=o,this.group.removeAll(),e.get("show",!0)){var n=this._layout(e,i),a=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(n,e);e.formatTooltip=function(d){var c=l.scale.getLabel({value:d});return mt("nameValue",{noName:!0,value:c})},E(["AxisLine","AxisTick","Control","CurrentPointer"],function(d){this["_render"+d](n,a,l,e)},this),this._renderAxisLabel(n,s,l,e),this._position(n,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,o){var i=e.get(["label","position"]),n=e.get("orient"),a=YJ(e,o),s;i==null||i==="auto"?s=n==="horizontal"?a.y+a.height/2=0||s==="+"?"left":"right"},d={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:Vx/2},u=n==="vertical"?a.height:a.width,h=e.getModel("controlStyle"),g=h.get("show",!0),p=g?h.get("itemSize"):0,x=g?h.get("itemGap"):0,m=p+x,f=e.get(["label","rotate"])||0;f=f*Vx/180;var v,y,_,S=h.get("position",!0),b=g&&h.get("showPlayBtn",!0),A=g&&h.get("showPrevBtn",!0),M=g&&h.get("showNextBtn",!0),T=0,w=u;S==="left"||S==="bottom"?(b&&(v=[0,0],T+=m),A&&(y=[T,0],T+=m),M&&(_=[w-p,0],w-=m)):(b&&(v=[w-p,0],w-=m),A&&(y=[0,0],T+=m),M&&(_=[w-p,0],w-=m));var C=[T,w];return e.get("inverse")&&C.reverse(),{viewRect:a,mainLength:u,orient:n,rotation:c[n],labelRotation:f,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[n],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||d[n],playPosition:v,prevBtnPosition:y,nextBtnPosition:_,axisExtent:C,controlSize:p,controlGap:x}},t.prototype._position=function(e,o){var i=this._mainGroup,n=this._labelGroup,a=e.viewRect;if(e.orient==="vertical"){var s=Jt(),l=a.x,d=a.y+a.height;Gr(s,s,[-l,-d]),ei(s,s,-Vx/2),Gr(s,s,[l,d]),a=a.clone(),a.applyTransform(s)}var c=v(a),u=v(i.getBoundingRect()),h=v(n.getBoundingRect()),g=[i.x,i.y],p=[n.x,n.y];p[0]=g[0]=c[0][0];var x=e.labelPosOpt;if(x==null||te(x)){var m=x==="+"?0:1;y(g,u,c,1,m),y(p,h,c,1,1-m)}else{var m=x>=0?0:1;y(g,u,c,1,m),p[1]=g[1]+x}i.setPosition(g),n.setPosition(p),i.rotation=n.rotation=e.rotation,f(i),f(n);function f(_){_.originX=c[0][0]-_.x,_.originY=c[1][0]-_.y}function v(_){return[[_.x,_.x+_.width],[_.y,_.y+_.height]]}function y(_,S,b,A,M){_[A]+=b[A][M]-S[A][M]}},t.prototype._createAxis=function(e,o){var i=o.getData(),n=o.get("axisType"),a=ZJ(o,n);a.getTicks=function(){return i.mapArray(["value"],function(d){return{value:d}})};var s=i.getDataExtent("value");a.setExtent(s[0],s[1]),a.calcNiceTicks();var l=new zJ("value",a,e.axisExtent,n);return l.model=o,l},t.prototype._createGroup=function(e){var o=this[e]=new ue;return this.group.add(o),o},t.prototype._renderAxisLine=function(e,o,i,n){var a=i.getExtent();if(n.get(["lineStyle","show"])){var s=new ht({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:W({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});o.add(s);var l=this._progressLine=new ht({shape:{x1:a[0],x2:this._currentPointer?this._currentPointer.x:a[0],y1:0,y2:0},style:le({lineCap:"round",lineWidth:s.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});o.add(l)}},t.prototype._renderAxisTick=function(e,o,i,n){var a=this,s=n.getData(),l=i.scale.getTicks();this._tickSymbols=[],E(l,function(d){var c=i.dataToCoord(d.value),u=s.getItemModel(d.value),h=u.getModel("itemStyle"),g=u.getModel(["emphasis","itemStyle"]),p=u.getModel(["progress","itemStyle"]),x={x:c,y:0,onclick:re(a._changeTimeline,a,d.value)},m=EI(u,h,o,x);m.ensureState("emphasis").style=g.getItemStyle(),m.ensureState("progress").style=p.getItemStyle(),ci(m);var f=he(m);u.get("tooltip")?(f.dataIndex=d.value,f.dataModel=n):f.dataIndex=f.dataModel=null,a._tickSymbols.push(m)})},t.prototype._renderAxisLabel=function(e,o,i,n){var a=this,s=i.getLabelModel();if(s.get("show")){var l=n.getData(),d=i.getViewLabels();this._tickLabels=[],E(d,function(c){var u=c.tickValue,h=l.getItemModel(u),g=h.getModel("label"),p=h.getModel(["emphasis","label"]),x=h.getModel(["progress","label"]),m=i.dataToCoord(c.tickValue),f=new Le({x:m,y:0,rotation:e.labelRotation-e.rotation,onclick:re(a._changeTimeline,a,u),silent:!1,style:Ue(g,{text:c.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});f.ensureState("emphasis").style=Ue(p),f.ensureState("progress").style=Ue(x),o.add(f),ci(f),II(f).dataIndex=u,a._tickLabels.push(f)})}},t.prototype._renderControl=function(e,o,i,n){var a=e.controlSize,s=e.rotation,l=n.getModel("controlStyle").getItemStyle(),d=n.getModel(["emphasis","controlStyle"]).getItemStyle(),c=n.getPlayState(),u=n.get("inverse",!0);h(e.nextBtnPosition,"next",re(this._changeTimeline,this,u?"-":"+")),h(e.prevBtnPosition,"prev",re(this._changeTimeline,this,u?"+":"-")),h(e.playPosition,c?"stop":"play",re(this._handlePlayClick,this,!c),!0);function h(g,p,x,m){if(g){var f=Fr(pe(n.get(["controlStyle",p+"BtnSize"]),a),a),v=[0,-f/2,f,f],y=QJ(n,p+"Icon",v,{x:g[0],y:g[1],originX:a/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:x});y.ensureState("emphasis").style=d,o.add(y),ci(y)}}},t.prototype._renderCurrentPointer=function(e,o,i,n){var a=n.getData(),s=n.getCurrentIndex(),l=a.getItemModel(s).getModel("checkpointStyle"),d=this,c={onCreate:function(u){u.draggable=!0,u.drift=re(d._handlePointerDrag,d),u.ondragend=re(d._handlePointerDragend,d),$I(u,d._progressLine,s,i,n,!0)},onUpdate:function(u){$I(u,d._progressLine,s,i,n)}};this._currentPointer=EI(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,o,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,o){var i=this._toAxisCoord(e)[0],n=this._axis,a=ar(n.getExtent().slice());i>a[1]&&(i=a[1]),i=0&&(a[n]=+a[n].toFixed(h)),[a,u]}var Ux={min:me(Yh,"min"),max:me(Yh,"max"),average:me(Yh,"average"),median:me(Yh,"median")};function Md(r,t){if(t){var e=r.getData(),o=r.coordinateSystem,i=o&&o.dimensions;if(!ij(t)&&!K(t.coord)&&K(i)){var n=BI(t,e,o,r);if(t=ce(t),t.type&&Ux[t.type]&&n.baseAxis&&n.valueAxis){var a=Se(i,n.baseAxis.dim),s=Se(i,n.valueAxis.dim),l=Ux[t.type](e,n.baseDataDim,n.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!K(i))t.coord=[];else for(var d=t.coord,c=0;c<2;c++)Ux[d[c]]&&(d[c]=Wx(e,e.mapDimension(i[c]),d[c]));return t}}function BI(r,t,e,o){var i={};return r.valueIndex!=null||r.valueDim!=null?(i.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,i.valueAxis=e.getAxis(nj(o,i.valueDataDim)),i.baseAxis=e.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=o.getBaseAxis(),i.valueAxis=e.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function nj(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Ad(r,t){return r&&r.containData&&t.coord&&!Xx(t)?r.containData(t.coord):!0}function aj(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!Xx(t)&&!Xx(e)?r.containZone(t.coord,e.coord):!0}function GI(r,t){return r?function(e,o,i,n){var a=n<2?e.coord&&e.coord[n]:e.value;return xi(a,t[n])}:function(e,o,i,n){return xi(e.value,t[n])}}function Wx(r,t,e){if(e==="average"){var o=0,i=0;return r.each(t,function(n,a){isNaN(n)||(o+=n,i++)}),o/i}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var zx=Ce(),sj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=ne()},t.prototype.render=function(e,o,i){var n=this,a=this.markerGroupMap;a.each(function(s){zx(s).keep=!1}),o.eachSeries(function(s){var l=Di.getMarkerModelFromSeries(s,n.type);l&&n.renderSeries(s,l,o,i)}),a.each(function(s){!zx(s).keep&&n.group.remove(s.group)})},t.prototype.markKeep=function(e){zx(e).keep=!0},t.prototype.toggleBlurSeries=function(e,o){var i=this;E(e,function(n){var a=Di.getMarkerModelFromSeries(n,i.type);if(a){var s=a.getData();s.eachItemGraphicEl(function(l){l&&(o?KS(l):gp(l))})}})},t.type="marker",t}(Ye);const Kx=sj;function NI(r,t,e){var o=t.coordinateSystem;r.each(function(i){var n=r.getItemModel(i),a,s=ee(n.get("x"),e.getWidth()),l=ee(n.get("y"),e.getHeight());if(!isNaN(s)&&!isNaN(l))a=[s,l];else if(t.getMarkerPosition)a=t.getMarkerPosition(r.getValues(r.dimensions,i));else if(o){var d=r.get(o.dimensions[0],i),c=r.get(o.dimensions[1],i);a=o.dataToPoint([d,c])}isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),r.setItemLayout(i,a)})}var lj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,o,i){o.eachSeries(function(n){var a=Di.getMarkerModelFromSeries(n,"markPoint");a&&(NI(a.getData(),n,i),this.markerGroupMap.get(n.id).updateLayout())},this)},t.prototype.renderSeries=function(e,o,i,n){var a=e.coordinateSystem,s=e.id,l=e.getData(),d=this.markerGroupMap,c=d.get(s)||d.set(s,new Ql),u=dj(a,e,o);o.setData(u),NI(o.getData(),e,n),u.each(function(h){var g=u.getItemModel(h),p=g.getShallow("symbol"),x=g.getShallow("symbolSize"),m=g.getShallow("symbolRotate"),f=g.getShallow("symbolOffset"),v=g.getShallow("symbolKeepAspect");if(ae(p)||ae(x)||ae(m)||ae(f)){var y=o.getRawValue(h),_=o.getDataParams(h);ae(p)&&(p=p(y,_)),ae(x)&&(x=x(y,_)),ae(m)&&(m=m(y,_)),ae(f)&&(f=f(y,_))}var S=g.getModel("itemStyle").getItemStyle(),b=$l(l,"color");S.fill||(S.fill=b),u.setItemVisual(h,{symbol:p,symbolSize:x,symbolRotate:m,symbolOffset:f,symbolKeepAspect:v,style:S})}),c.updateData(u),this.group.add(c.group),u.eachItemGraphicEl(function(h){h.traverse(function(g){he(g).dataModel=o})}),this.markKeep(c),c.group.silent=o.get("silent")||e.get("silent")},t.type="markPoint",t}(Kx);function dj(r,t,e){var o;r?o=Y(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return W(W({},l),{name:s,ordinalMeta:null})}):o=[{name:"value",type:"float"}];var i=new Bt(o,e),n=Y(e.get("data"),me(Md,t));r&&(n=Ge(n,me(Ad,r)));var a=GI(!!r,o);return i.initData(n,null,a),i}const cj=lj;function uj(r){r.registerComponentModel(oj),r.registerComponentView(cj),r.registerPreprocessor(function(t){Hx(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var hj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,o,i){return new t(e,o,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Di);const gj=hj;var Qh=Ce(),mj=function(r,t,e,o){var i=r.getData(),n;if(K(o))n=o;else{var a=o.type;if(a==="min"||a==="max"||a==="average"||a==="median"||o.xAxis!=null||o.yAxis!=null){var s=void 0,l=void 0;if(o.yAxis!=null||o.xAxis!=null)s=t.getAxis(o.yAxis!=null?"y":"x"),l=ct(o.yAxis,o.xAxis);else{var d=BI(o,i,t,r);s=d.valueAxis;var c=W0(i,d.valueDataDim);l=Wx(i,c,a)}var u=s.dim==="x"?0:1,h=1-u,g=ce(o),p={coord:[]};g.type=null,g.coord=[],g.coord[h]=-1/0,p.coord[h]=1/0;var x=e.get("precision");x>=0&&Ee(l)&&(l=+l.toFixed(Math.min(x,20))),g.coord[u]=p.coord[u]=l,n=[g,p,{type:a,valueIndex:o.valueIndex,value:l}]}else n=[]}var m=[Md(r,n[0]),Md(r,n[1]),W({},n[2])];return m[2].type=m[2].type||null,xe(m[2],m[0]),xe(m[2],m[1]),m};function Jh(r){return!isNaN(r)&&!isFinite(r)}function kI(r,t,e,o){var i=1-r,n=o.dimensions[r];return Jh(t[i])&&Jh(e[i])&&t[r]===e[r]&&o.getAxis(n).containData(t[r])}function pj(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,o=t[1].coord;if(e&&o&&(kI(1,e,o,r)||kI(0,e,o,r)))return!0}return Ad(r,t[0])&&Ad(r,t[1])}function Zx(r,t,e,o,i){var n=o.coordinateSystem,a=r.getItemModel(t),s,l=ee(a.get("x"),i.getWidth()),d=ee(a.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(d))s=[l,d];else{if(o.getMarkerPosition)s=o.getMarkerPosition(r.getValues(r.dimensions,t));else{var c=n.dimensions,u=r.get(c[0],t),h=r.get(c[1],t);s=n.dataToPoint([u,h])}if(Fn(n,"cartesian2d")){var g=n.getAxis("x"),p=n.getAxis("y"),c=n.dimensions;Jh(r.get(c[0],t))?s[0]=g.toGlobalCoord(g.getExtent()[e?0:1]):Jh(r.get(c[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(d)||(s[1]=d)}r.setItemLayout(t,s)}var fj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,o,i){o.eachSeries(function(n){var a=Di.getMarkerModelFromSeries(n,"markLine");if(a){var s=a.getData(),l=Qh(a).from,d=Qh(a).to;l.each(function(c){Zx(l,c,!0,n,i),Zx(d,c,!1,n,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),d.getItemLayout(c)])}),this.markerGroupMap.get(n.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,o,i,n){var a=e.coordinateSystem,s=e.id,l=e.getData(),d=this.markerGroupMap,c=d.get(s)||d.set(s,new S1);this.group.add(c.group);var u=xj(a,e,o),h=u.from,g=u.to,p=u.line;Qh(o).from=h,Qh(o).to=g,o.setData(p);var x=o.get("symbol"),m=o.get("symbolSize"),f=o.get("symbolRotate"),v=o.get("symbolOffset");K(x)||(x=[x,x]),K(m)||(m=[m,m]),K(f)||(f=[f,f]),K(v)||(v=[v,v]),u.from.each(function(_){y(h,_,!0),y(g,_,!1)}),p.each(function(_){var S=p.getItemModel(_).getModel("lineStyle").getLineStyle();p.setItemLayout(_,[h.getItemLayout(_),g.getItemLayout(_)]),S.stroke==null&&(S.stroke=h.getItemVisual(_,"style").fill),p.setItemVisual(_,{fromSymbolKeepAspect:h.getItemVisual(_,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(_,"symbolOffset"),fromSymbolRotate:h.getItemVisual(_,"symbolRotate"),fromSymbolSize:h.getItemVisual(_,"symbolSize"),fromSymbol:h.getItemVisual(_,"symbol"),toSymbolKeepAspect:g.getItemVisual(_,"symbolKeepAspect"),toSymbolOffset:g.getItemVisual(_,"symbolOffset"),toSymbolRotate:g.getItemVisual(_,"symbolRotate"),toSymbolSize:g.getItemVisual(_,"symbolSize"),toSymbol:g.getItemVisual(_,"symbol"),style:S})}),c.updateData(p),u.line.eachItemGraphicEl(function(_){he(_).dataModel=o,_.traverse(function(S){he(S).dataModel=o})});function y(_,S,b){var A=_.getItemModel(S);Zx(_,S,b,e,n);var M=A.getModel("itemStyle").getItemStyle();M.fill==null&&(M.fill=$l(l,"color")),_.setItemVisual(S,{symbolKeepAspect:A.get("symbolKeepAspect"),symbolOffset:pe(A.get("symbolOffset",!0),v[b?0:1]),symbolRotate:pe(A.get("symbolRotate",!0),f[b?0:1]),symbolSize:pe(A.get("symbolSize"),m[b?0:1]),symbol:pe(A.get("symbol",!0),x[b?0:1]),style:M})}this.markKeep(c),c.group.silent=o.get("silent")||e.get("silent")},t.type="markLine",t}(Kx);function xj(r,t,e){var o;r?o=Y(r&&r.dimensions,function(d){var c=t.getData().getDimensionInfo(t.getData().mapDimension(d))||{};return W(W({},c),{name:d,ordinalMeta:null})}):o=[{name:"value",type:"float"}];var i=new Bt(o,e),n=new Bt(o,e),a=new Bt([],e),s=Y(e.get("data"),me(mj,t,r,e));r&&(s=Ge(s,me(pj,r)));var l=GI(!!r,o);return i.initData(Y(s,function(d){return d[0]}),null,l),n.initData(Y(s,function(d){return d[1]}),null,l),a.initData(Y(s,function(d){return d[2]})),a.hasItemOption=!0,{from:i,to:n,line:a}}const vj=fj;function yj(r){r.registerComponentModel(gj),r.registerComponentView(vj),r.registerPreprocessor(function(t){Hx(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var _j=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,o,i){return new t(e,o,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Di);const Sj=_j;var jh=Ce(),bj=function(r,t,e,o){var i=o[0],n=o[1];if(!(!i||!n)){var a=Md(r,i),s=Md(r,n),l=a.coord,d=s.coord;l[0]=ct(l[0],-1/0),l[1]=ct(l[1],-1/0),d[0]=ct(d[0],1/0),d[1]=ct(d[1],1/0);var c=qd([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function qh(r){return!isNaN(r)&&!isFinite(r)}function RI(r,t,e,o){var i=1-r;return qh(t[i])&&qh(e[i])}function Mj(r,t){var e=t.coord[0],o=t.coord[1],i={coord:e,x:t.x0,y:t.y0},n={coord:o,x:t.x1,y:t.y1};return Fn(r,"cartesian2d")?e&&o&&(RI(1,e,o)||RI(0,e,o))?!0:aj(r,i,n):Ad(r,i)||Ad(r,n)}function FI(r,t,e,o,i){var n=o.coordinateSystem,a=r.getItemModel(t),s,l=ee(a.get(e[0]),i.getWidth()),d=ee(a.get(e[1]),i.getHeight());if(!isNaN(l)&&!isNaN(d))s=[l,d];else{if(o.getMarkerPosition){var c=r.getValues(["x0","y0"],t),u=r.getValues(["x1","y1"],t),h=n.clampData(c),g=n.clampData(u),p=[];e[0]==="x0"?p[0]=h[0]>g[0]?u[0]:c[0]:p[0]=h[0]>g[0]?c[0]:u[0],e[1]==="y0"?p[1]=h[1]>g[1]?u[1]:c[1]:p[1]=h[1]>g[1]?c[1]:u[1],s=o.getMarkerPosition(p,e,!0)}else{var x=r.get(e[0],t),m=r.get(e[1],t),f=[x,m];n.clampData&&n.clampData(f,f),s=n.dataToPoint(f,!0)}if(Fn(n,"cartesian2d")){var v=n.getAxis("x"),y=n.getAxis("y"),x=r.get(e[0],t),m=r.get(e[1],t);qh(x)?s[0]=v.toGlobalCoord(v.getExtent()[e[0]==="x0"?0:1]):qh(m)&&(s[1]=y.toGlobalCoord(y.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(d)||(s[1]=d)}return s}var VI=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Aj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,o,i){o.eachSeries(function(n){var a=Di.getMarkerModelFromSeries(n,"markArea");if(a){var s=a.getData();s.each(function(l){var d=Y(VI,function(u){return FI(s,l,u,n,i)});s.setItemLayout(l,d);var c=s.getItemGraphicEl(l);c.setShape("points",d)})}},this)},t.prototype.renderSeries=function(e,o,i,n){var a=e.coordinateSystem,s=e.id,l=e.getData(),d=this.markerGroupMap,c=d.get(s)||d.set(s,{group:new ue});this.group.add(c.group),this.markKeep(c);var u=Tj(a,e,o);o.setData(u),u.each(function(h){var g=Y(VI,function(M){return FI(u,h,M,e,n)}),p=a.getAxis("x").scale,x=a.getAxis("y").scale,m=p.getExtent(),f=x.getExtent(),v=[p.parse(u.get("x0",h)),p.parse(u.get("x1",h))],y=[x.parse(u.get("y0",h)),x.parse(u.get("y1",h))];ar(v),ar(y);var _=!(m[0]>v[1]||m[1]y[1]||f[1]=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Te);const Yx=Lj;var ms=me,Qx=E,eg=ue,Ij=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new eg),this.group.add(this._selectorGroup=new eg),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,o,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var a=e.get("align"),s=e.get("orient");(!a||a==="auto")&&(a=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),d=e.get("selectorPosition",!0);l&&(!d||d==="auto")&&(d=s==="horizontal"?"end":"start"),this.renderInner(a,e,o,i,l,s,d);var c=e.getBoxLayoutParams(),u={width:i.getWidth(),height:i.getHeight()},h=e.get("padding"),g=it(c,u,h),p=this.layoutInner(e,a,g,n,l,d),x=it(le({width:p.width,height:p.height},c),u,h);this.group.x=x.x-p.x,this.group.y=x.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=QL(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,o,i,n,a,s,l){var d=this.getContentGroup(),c=ne(),u=o.get("selectedMode"),h=[];i.eachRawSeries(function(g){!g.get("legendHoverLink")&&h.push(g.id)}),Qx(o.getData(),function(g,p){var x=g.get("name");if(!this.newlineDisabled&&(x===""||x===` -`)){var m=new eg;m.newline=!0,d.add(m);return}var f=i.getSeriesByName(x)[0];if(!c.get(x))if(f){var v=f.getData(),y=v.getVisual("legendLineStyle")||{},_=v.getVisual("legendIcon"),S=v.getVisual("style"),b=this._createItem(f,x,p,g,o,e,y,S,_,u,n);b.on("click",ms(HI,x,null,n,h)).on("mouseover",ms(Jx,f.name,null,n,h)).on("mouseout",ms(jx,f.name,null,n,h)),i.ssr&&b.eachChild(function(A){var M=he(A);M.seriesIndex=f.seriesIndex,M.dataIndex=p,M.ssrType="legend"}),c.set(x,!0)}else i.eachRawSeries(function(A){if(!c.get(x)&&A.legendVisualProvider){var M=A.legendVisualProvider;if(!M.containName(x))return;var T=M.indexOfName(x),w=M.getItemVisual(T,"style"),C=M.getItemVisual(T,"legendIcon"),P=kt(w.fill);P&&P[3]===0&&(P[3]=.2,w=W(W({},w),{fill:kr(P,"rgba")}));var L=this._createItem(A,x,p,g,o,e,{},w,C,u,n);L.on("click",ms(HI,null,x,n,h)).on("mouseover",ms(Jx,null,x,n,h)).on("mouseout",ms(jx,null,x,n,h)),i.ssr&&L.eachChild(function($){var O=he($);O.seriesIndex=A.seriesIndex,O.dataIndex=p,O.ssrType="legend"}),c.set(x,!0)}},this)},this),a&&this._createSelector(a,o,n,s,l)},t.prototype._createSelector=function(e,o,i,n,a){var s=this.getSelectorGroup();Qx(e,function(l){var d=l.type,c=new Le({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:d==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var u=o.getModel("selectorLabel"),h=o.getModel(["emphasis","selectorLabel"]);At(c,{normal:u,emphasis:h},{defaultText:l.title}),ci(c)})},t.prototype._createItem=function(e,o,i,n,a,s,l,d,c,u,h){var g=e.visualDrawType,p=a.get("itemWidth"),x=a.get("itemHeight"),m=a.isSelected(o),f=n.get("symbolRotate"),v=n.get("symbolKeepAspect"),y=n.get("icon");c=y||c||"roundRect";var _=Ej(c,n,l,d,g,m,h),S=new eg,b=n.getModel("textStyle");if(ae(e.getLegendIcon)&&(!y||y==="inherit"))S.add(e.getLegendIcon({itemWidth:p,itemHeight:x,icon:c,iconRotate:f,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:v}));else{var A=y==="inherit"&&e.getData().getVisual("symbol")?f==="inherit"?e.getData().getVisual("symbolRotate"):f:0;S.add($j({itemWidth:p,itemHeight:x,icon:c,iconRotate:A,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:v}))}var M=s==="left"?p+5:-5,T=s,w=a.get("formatter"),C=o;te(w)&&w?C=w.replace("{name}",o??""):ae(w)&&(C=w(o));var P=m?b.getTextColor():n.get("inactiveColor");S.add(new Le({style:Ue(b,{text:C,x:M,y:x/2,fill:P,align:T,verticalAlign:"middle"},{inheritColor:P})}));var L=new Pe({shape:S.getBoundingRect(),style:{fill:"transparent"}}),$=n.getModel("tooltip");return $.get("show")&&La({el:L,componentModel:a,itemName:o,itemTooltipOption:$.option}),S.add(L),S.eachChild(function(O){O.silent=!0}),L.silent=!u,this.getContentGroup().add(S),ci(S),S.__legendDataIndex=i,S},t.prototype.layoutInner=function(e,o,i,n,a,s){var l=this.getContentGroup(),d=this.getSelectorGroup();bn(e.get("orient"),l,e.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),u=[-c.x,-c.y];if(d.markRedraw(),l.markRedraw(),a){bn("horizontal",d,e.get("selectorItemGap",!0));var h=d.getBoundingRect(),g=[-h.x,-h.y],p=e.get("selectorButtonGap",!0),x=e.getOrient().index,m=x===0?"width":"height",f=x===0?"height":"width",v=x===0?"y":"x";s==="end"?g[x]+=c[m]+p:u[x]+=h[m]+p,g[1-x]+=c[f]/2-h[f]/2,d.x=g[0],d.y=g[1],l.x=u[0],l.y=u[1];var y={x:0,y:0};return y[m]=c[m]+p+h[m],y[f]=Math.max(c[f],h[f]),y[v]=Math.min(0,h[v]+g[1-x]),y}else return l.x=u[0],l.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ye);function Ej(r,t,e,o,i,n,a){function s(m,f){m.lineWidth==="auto"&&(m.lineWidth=f.lineWidth>0?2:0),Qx(m,function(v,y){m[y]==="inherit"&&(m[y]=f[y])})}var l=t.getModel("itemStyle"),d=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",u=l.getShallow("decal");d.decal=!u||u==="inherit"?o.decal:Ka(u,a),d.fill==="inherit"&&(d.fill=o[i]),d.stroke==="inherit"&&(d.stroke=o[c]),d.opacity==="inherit"&&(d.opacity=(i==="fill"?o:e).opacity),s(d,o);var h=t.getModel("lineStyle"),g=h.getLineStyle();if(s(g,e),d.fill==="auto"&&(d.fill=o.fill),d.stroke==="auto"&&(d.stroke=o.fill),g.stroke==="auto"&&(g.stroke=o.fill),!n){var p=t.get("inactiveBorderWidth"),x=d[c];d.lineWidth=p==="auto"?o.lineWidth>0&&x?2:0:d.lineWidth,d.fill=t.get("inactiveColor"),d.stroke=t.get("inactiveBorderColor"),g.stroke=h.get("inactiveColor"),g.lineWidth=h.get("inactiveWidth")}return{itemStyle:d,lineStyle:g}}function $j(r){var t=r.icon||"roundRect",e=tt(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function HI(r,t,e,o){jx(r,t,e,o),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Jx(r,t,e,o)}function XI(r){for(var t=r.getZr().storage.getDisplayList(),e,o=0,i=t.length;oi[a],m=[-g.x,-g.y];o||(m[n]=c[d]);var f=[0,0],v=[-p.x,-p.y],y=pe(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(x){var _=e.get("pageButtonPosition",!0);_==="end"?v[n]+=i[a]-p[a]:f[n]+=p[a]+y}v[1-n]+=g[s]/2-p[s]/2,c.setPosition(m),u.setPosition(f),h.setPosition(v);var S={x:0,y:0};if(S[a]=x?i[a]:g[a],S[s]=Math.max(g[s],p[s]),S[l]=Math.min(0,p[l]+v[1-n]),u.__rectSize=i[a],x){var b={x:0,y:0};b[a]=Math.max(i[a]-p[a]-y,0),b[s]=S[s],u.setClipPath(new Pe({shape:b})),u.__rectSize=b[a]}else h.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(e);return A.pageIndex!=null&&$e(c,{x:A.contentPosition[0],y:A.contentPosition[1]},x?e:null),this._updatePageInfoView(e,A),S},t.prototype._pageGo=function(e,o,i){var n=this._getPageInfo(o)[e];n!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:o.id})},t.prototype._updatePageInfoView=function(e,o){var i=this._controllerGroup;E(["pagePrev","pageNext"],function(c){var u=c+"DataIndex",h=o[u]!=null,g=i.childOfName(c);g&&(g.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),g.cursor=h?"pointer":"default")});var n=i.childOfName("pageText"),a=e.get("pageFormatter"),s=o.pageIndex,l=s!=null?s+1:0,d=o.pageCount;n&&a&&n.setStyle("text",te(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",d==null?"":d+""):a({current:l,total:d}))},t.prototype._getPageInfo=function(e){var o=e.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,a=e.getOrient().index,s=qx[a],l=ev[a],d=this._findTargetItemIndex(o),c=i.children(),u=c[d],h=c.length,g=h?1:0,p={contentPosition:[i.x,i.y],pageCount:g,pageIndex:g-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return p;var x=_(u);p.contentPosition[a]=-x.s;for(var m=d+1,f=x,v=x,y=null;m<=h;++m)y=_(c[m]),(!y&&v.e>f.s+n||y&&!S(y,f.s))&&(v.i>f.i?f=v:f=y,f&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=f.i),++p.pageCount)),v=y;for(var m=d-1,f=x,v=x,y=null;m>=-1;--m)y=_(c[m]),(!y||!S(v,y.s))&&f.i=A&&b.s<=A+n}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var o,i=this.getContentGroup(),n;return i.eachChild(function(a,s){var l=a.__legendDataIndex;n==null&&l!=null&&(n=s),l===e&&(o=s)}),o??n},t.type="legend.scroll",t}(UI);const kj=Nj;function Rj(r){r.registerAction("legendScroll","legendscroll",function(t,e){var o=t.scrollDataIndex;o!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(o)})})}function Fj(r){be(WI),r.registerComponentModel(Gj),r.registerComponentView(kj),Rj(r)}function Vj(r){be(WI),be(Fj)}var Hj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=mi(_d.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(_d);const Xj=Hj;var tv=Ce();function Uj(r,t,e){tv(r).coordSysRecordMap.each(function(o){var i=o.dataZoomInfoMap.get(t.uid);i&&(i.getRange=e)})}function Wj(r,t){for(var e=tv(r).coordSysRecordMap,o=e.keys(),i=0;io[e+t]&&(t=s),i=i&&a.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function Qj(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var o=tv(e),i=o.coordSysRecordMap||(o.coordSysRecordMap=ne());i.each(function(n){n.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var a=UL(n);E(a.infoList,function(s){var l=s.model.uid,d=i.get(l)||i.set(l,zj(e,s.model)),c=d.dataZoomInfoMap||(d.dataZoomInfoMap=ne());c.set(n.uid,{dzReferCoordSysInfo:s,model:n,getRange:null})})}),i.each(function(n){var a=n.controller,s,l=n.dataZoomInfoMap;if(l){var d=l.keys()[0];d!=null&&(s=l.get(d))}if(!s){ZI(i,n);return}var c=Yj(l);a.enable(c.controlType,c.opt),a.setPointerChecker(n.containsPoint),Xa(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Jj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,o,i){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),Uj(i,e,{pan:re(rv.pan,this),zoom:re(rv.zoom,this),scrollMove:re(rv.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Wj(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Px),rv={zoom:function(r,t,e,o){var i=this.range,n=i.slice(),a=r.axisModels[0];if(a){var s=ov[t](null,[o.originX,o.originY],a,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(n[1]-n[0])+n[0],d=Math.max(1/o.scale,0);n[0]=(n[0]-l)*d+l,n[1]=(n[1]-l)*d+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Yn(0,n,[0,100],0,c.minSpan,c.maxSpan),this.range=n,i[0]!==n[0]||i[1]!==n[1])return n}},pan:YI(function(r,t,e,o,i,n){var a=ov[o]([n.oldX,n.oldY],[n.newX,n.newY],t,i,e);return a.signal*(r[1]-r[0])*a.pixel/a.pixelLength}),scrollMove:YI(function(r,t,e,o,i,n){var a=ov[o]([0,0],[n.scrollDelta,n.scrollDelta],t,i,e);return a.signal*(r[1]-r[0])*n.scrollDelta})};function YI(r){return function(t,e,o,i){var n=this.range,a=n.slice(),s=t.axisModels[0];if(s){var l=r(a,s,t,e,o,i);if(Yn(l,a,[0,100],"all"),this.range=a,n[0]!==a[0]||n[1]!==a[1])return a}}}var ov={grid:function(r,t,e,o,i){var n=e.axis,a={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],n.dim==="x"?(a.pixel=t[0]-r[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=n.inverse?1:-1):(a.pixel=t[1]-r[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=n.inverse?-1:1),a},polar:function(r,t,e,o,i){var n=e.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),d=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(a.pixel=t[0]-r[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=n.inverse?1:-1):(a.pixel=t[1]-r[1],a.pixelLength=d[1]-d[0],a.pixelStart=d[0],a.signal=n.inverse?-1:1),a},singleAxis:function(r,t,e,o,i){var n=e.axis,a=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],n.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=n.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=n.inverse?-1:1),s}};const jj=Jj;function QI(r){Lx(r),r.registerComponentModel(Xj),r.registerComponentView(jj),Qj(r)}var qj=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=mi(_d.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(_d);const eq=qj;var wd=Pe,JI=7,tq=1,iv=30,rq=7,Cd="horizontal",jI="vertical",oq=5,iq=["line","bar","candlestick","scatter"],nq={easing:"cubicOut",duration:100,delay:0},aq=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,o){this.api=o,this._onBrush=re(this._onBrush,this),this._onBrushEnd=re(this._onBrushEnd,this)},t.prototype.render=function(e,o,i,n){if(r.prototype.render.apply(this,arguments),Xa(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!n||n.type!=="dataZoom"||n.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Ll(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var o=this._displayables.sliderGroup=new ue;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(o),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,o=this.api,i=e.get("brushSelect"),n=i?rq:0,a=this._findCoordRect(),s={width:o.getWidth(),height:o.getHeight()},l=this._orient===Cd?{right:s.width-a.x-a.width,top:s.height-iv-JI-n,width:a.width,height:iv}:{right:JI,top:a.y,width:iv,height:a.height},d=Ba(e.option);E(["right","top","width","height"],function(u){d[u]==="ph"&&(d[u]=l[u])});var c=it(d,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===jI&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,o=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),a=n&&n.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Cd&&!a?{scaleY:l?1:-1,scaleX:1}:i===Cd&&a?{scaleY:l?1:-1,scaleX:-1}:i===jI&&!a?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var d=e.getBoundingRect([s]);e.x=o.x-d.x,e.y=o.y-d.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,o=this._size,i=this._displayables.sliderGroup,n=e.get("brushSelect");i.add(new wd({silent:!0,shape:{x:0,y:0,width:o[0],height:o[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var a=new wd({shape:{x:0,y:0,width:o[0],height:o[1]},style:{fill:"transparent"},z2:0,onclick:re(this._onClickPanel,this)}),s=this.api.getZr();n?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(a)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var o=this._size,i=this._shadowSize||[],n=e.series,a=n.getRawData(),s=n.getShadowDim&&n.getShadowDim(),l=s&&a.getDimensionInfo(s)?n.getShadowDim():e.otherDim;if(l==null)return;var d=this._shadowPolygonPts,c=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||o[0]!==i[0]||o[1]!==i[1]){var u=a.getDataExtent(l),h=(u[1]-u[0])*.3;u=[u[0]-h,u[1]+h];var g=[0,o[1]],p=[0,o[0]],x=[[o[0],0],[0,0]],m=[],f=p[1]/(a.count()-1),v=0,y=Math.round(a.count()/o[0]),_;a.each([l],function(T,w){if(y>0&&w%y){v+=f;return}var C=T==null||isNaN(T)||T==="",P=C?0:Ne(T,u,g,!0);C&&!_&&w?(x.push([x[x.length-1][0],0]),m.push([m[m.length-1][0],0])):!C&&_&&(x.push([v,0]),m.push([v,0])),x.push([v,P]),m.push([v,P]),v+=f,_=C}),d=this._shadowPolygonPts=x,c=this._shadowPolylinePts=m}this._shadowData=a,this._shadowDim=l,this._shadowSize=[o[0],o[1]];var S=this.dataZoomModel;function b(T){var w=S.getModel(T?"selectedDataBackground":"dataBackground"),C=new ue,P=new Ht({shape:{points:d},segmentIgnoreThreshold:1,style:w.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new Xt({shape:{points:c},segmentIgnoreThreshold:1,style:w.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return C.add(P),C.add(L),C}for(var A=0;A<3;A++){var M=b(A===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,o=e.get("showDataShadow");if(o!==!1){var i,n=this.ecModel;return e.eachTargetAxis(function(a,s){var l=e.getAxisProxy(a,s).getTargetSeriesModels();E(l,function(d){if(!i&&!(o!==!0&&Se(iq,d.get("type"))<0)){var c=n.getComponent(Ei(a),s).axis,u=sq(a),h,g=d.coordinateSystem;u!=null&&g.getOtherAxis&&(h=g.getOtherAxis(c).inverse),u=d.getData().mapDimension(u),i={thisAxis:c,series:d,thisDim:a,otherDim:u,otherAxisInverse:h}}},this)},this),i}},t.prototype._renderHandle=function(){var e=this.group,o=this._displayables,i=o.handles=[null,null],n=o.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,d=this.api,c=l.get("borderRadius")||0,u=l.get("brushSelect"),h=o.filler=new wd({silent:u,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(h),a.add(new wd({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:tq,fill:"rgba(0,0,0,0)"}})),E([0,1],function(y){var _=l.get("handleIcon");!Eu[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_);var S=tt(_,-1,0,2,2,null,!0);S.attr({cursor:qI(this._orient),draggable:!0,drift:re(this._onDragMove,this,y),ondragend:re(this._onDragEnd,this),onmouseover:re(this._showDataInfo,this,!0),onmouseout:re(this._showDataInfo,this,!1),z2:5});var b=S.getBoundingRect(),A=l.get("handleSize");this._handleHeight=ee(A,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,S.setStyle(l.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ci(S);var M=l.get("handleColor");M!=null&&(S.style.fill=M),a.add(i[y]=S);var T=l.getModel("textStyle");e.add(n[y]=new Le({silent:!0,invisible:!0,style:Ue(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var g=h;if(u){var p=ee(l.get("moveHandleSize"),s[1]),x=o.moveHandle=new Pe({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),m=p*.8,f=o.moveHandleIcon=tt(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);f.silent=!0,f.y=s[1]+p/2-.5,x.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(s[1]/2,Math.max(p,10));g=o.moveZone=new Pe({invisible:!0,shape:{y:s[1]-v,height:p+v}}),g.on("mouseover",function(){d.enterEmphasis(x)}).on("mouseout",function(){d.leaveEmphasis(x)}),a.add(x),a.add(f),a.add(g)}g.attr({draggable:!0,cursor:qI(this._orient),drift:re(this._onDragMove,this,"all"),ondragstart:re(this._showDataInfo,this,!0),ondragend:re(this._onDragEnd,this),onmouseover:re(this._showDataInfo,this,!0),onmouseout:re(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),o=this._getViewExtent();this._handleEnds=[Ne(e[0],[0,100],o,!0),Ne(e[1],[0,100],o,!0)]},t.prototype._updateInterval=function(e,o){var i=this.dataZoomModel,n=this._handleEnds,a=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Yn(o,n,a,i.get("zoomLock")?"all":e,s.minSpan!=null?Ne(s.minSpan,l,a,!0):null,s.maxSpan!=null?Ne(s.maxSpan,l,a,!0):null);var d=this._range,c=this._range=ar([Ne(n[0],a,l,!0),Ne(n[1],a,l,!0)]);return!d||d[0]!==c[0]||d[1]!==c[1]},t.prototype._updateView=function(e){var o=this._displayables,i=this._handleEnds,n=ar(i.slice()),a=this._size;E([0,1],function(g){var p=o.handles[g],x=this._handleHeight;p.attr({scaleX:x/2,scaleY:x/2,x:i[g]+(g?-1:1),y:a[1]/2-x/2})},this),o.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:a[1]});var s={x:n[0],width:n[1]-n[0]};o.moveHandle&&(o.moveHandle.setShape(s),o.moveZone.setShape(s),o.moveZone.getBoundingRect(),o.moveHandleIcon&&o.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=o.dataShadowSegs,d=[0,n[0],n[1],a[0]],c=0;co[0]||i[1]<0||i[1]>o[1])){var n=this._handleEnds,a=(n[0]+n[1])/2,s=this._updateInterval("all",i[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var o=e.offsetX,i=e.offsetY;this._brushStart=new ve(o,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var o=this._displayables.brushRect;if(this._brushing=!1,!!o){o.attr("ignore",!0);var i=o.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(i.width)<5)){var a=this._getViewExtent(),s=[0,100];this._range=ar([Ne(i.x,a,s,!0),Ne(i.x+i.width,a,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Io(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,o){var i=this._displayables,n=this.dataZoomModel,a=i.brushRect;a||(a=i.brushRect=new wd({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,d=l.transformCoordToLocal(e,o),c=l.transformCoordToLocal(s.x,s.y),u=this._size;d[0]=Math.max(Math.min(u[0],d[0]),0),a.setShape({x:c[0],y:0,width:d[0]-c[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var o=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?nq:null,start:o[0],end:o[1]})},t.prototype._findCoordRect=function(){var e,o=UL(this.dataZoomModel).infoList;if(!e&&o.length){var i=o[0].model.coordinateSystem;e=i.getRect&&i.getRect()}if(!e){var n=this.api.getWidth(),a=this.api.getHeight();e={x:n*.2,y:a*.2,width:n*.6,height:a*.6}}return e},t.type="dataZoom.slider",t}(Px);function sq(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function qI(r){return r==="vertical"?"ns-resize":"ew-resize"}const lq=aq;function e3(r){r.registerComponentModel(eq),r.registerComponentView(lq),Lx(r)}function dq(r){be(QI),be(e3)}var cq={get:function(r,t,e){var o=ce((uq[r]||{})[t]);return e&&K(o)?o[o.length-1]:o}},uq={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const t3=cq;var r3=wt.mapVisual,hq=wt.eachVisual,gq=K,o3=E,mq=ar,pq=Ne,fq=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,o,i){this.mergeDefaultAndTheme(e,i)},t.prototype.optionUpdated=function(e,o){var i=this.option;!o&&_I(i,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var o=this.stateList;e=re(e,this),this.controllerVisuals=kx(this.option.controller,o,e),this.targetVisuals=kx(this.option.target,o,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,o=[];return e==null||e==="all"?this.ecModel.eachSeries(function(i,n){o.push(n)}):o=ke(e),o},t.prototype.eachTargetSeries=function(e,o){E(this.getTargetSeriesIndices(),function(i){var n=this.ecModel.getSeriesByIndex(i);n&&e.call(o,n)},this)},t.prototype.isTargetSeries=function(e){var o=!1;return this.eachTargetSeries(function(i){i===e&&(o=!0)}),o},t.prototype.formatValueText=function(e,o,i){var n=this.option,a=n.precision,s=this.dataBound,l=n.formatter,d;i=i||["<",">"],K(e)&&(e=e.slice(),d=!0);var c=o?e:d?[u(e[0]),u(e[1])]:u(e);if(te(l))return l.replace("{value}",d?c[0]:c).replace("{value2}",d?c[1]:c);if(ae(l))return d?l(e[0],e[1]):l(e);if(d)return e[0]===s[0]?i[0]+" "+c[1]:e[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function u(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(a,20))}},t.prototype.resetExtent=function(){var e=this.option,o=mq([e.min,e.max]);this._dataExtent=o},t.prototype.getDataDimensionIndex=function(e){var o=this.option.dimension;if(o!=null)return e.getDimensionIndex(o);for(var i=e.dimensions,n=i.length-1;n>=0;n--){var a=i[n],s=e.getDimensionInfo(a);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,o=this.option,i={inRange:o.inRange,outOfRange:o.outOfRange},n=o.target||(o.target={}),a=o.controller||(o.controller={});xe(n,i),xe(a,i);var s=this.isCategory();l.call(this,n),l.call(this,a),d.call(this,n,"inRange","outOfRange"),c.call(this,a);function l(u){gq(o.color)&&!u.inRange&&(u.inRange={color:o.color.slice().reverse()}),u.inRange=u.inRange||{color:e.get("gradientColor")}}function d(u,h,g){var p=u[h],x=u[g];p&&!x&&(x=u[g]={},o3(p,function(m,f){if(wt.isValidType(f)){var v=t3.get(f,"inactive",s);v!=null&&(x[f]=v,f==="color"&&!x.hasOwnProperty("opacity")&&!x.hasOwnProperty("colorAlpha")&&(x.opacity=[0,0]))}}))}function c(u){var h=(u.inRange||{}).symbol||(u.outOfRange||{}).symbol,g=(u.inRange||{}).symbolSize||(u.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),x=this.getItemSymbol(),m=x||"roundRect";o3(this.stateList,function(f){var v=this.itemSize,y=u[f];y||(y=u[f]={color:s?p:[p]}),y.symbol==null&&(y.symbol=h&&ce(h)||(s?m:[m])),y.symbolSize==null&&(y.symbolSize=g&&ce(g)||(s?v[0]:[v[0],v[0]])),y.symbol=r3(y.symbol,function(b){return b==="none"?m:b});var _=y.symbolSize;if(_!=null){var S=-1/0;hq(_,function(b){b>S&&(S=b)}),y.symbolSize=r3(_,function(b){return pq(b,[0,S],[0,v[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Te);const tg=fq;var i3=[20,140],xq=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,o){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=i3[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=i3[1])},t.prototype._resetRange=function(){var e=this.getExtent(),o=this.option.range;!o||o.auto?(e.auto=1,this.option.range=e):K(o)&&(o[0]>o[1]&&o.reverse(),o[0]=Math.max(o[0],e[0]),o[1]=Math.min(o[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),E(this.stateList,function(e){var o=this.option.controller[e].symbolSize;o&&o[0]!==o[1]&&(o[0]=o[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),o=ar((this.get("range")||[]).slice());return o[0]>e[1]&&(o[0]=e[1]),o[1]>e[1]&&(o[1]=e[1]),o[0]=i[1]||e<=o[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var o=[];return this.eachTargetSeries(function(i){var n=[],a=i.getData();a.each(this.getDataDimensionIndex(a),function(s,l){e[0]<=s&&s<=e[1]&&n.push(l)},this),o.push({seriesId:i.id,dataIndex:n})},this),o},t.prototype.getVisualMeta=function(e){var o=n3(this,"outOfRange",this.getExtent()),i=n3(this,"inRange",this.option.range.slice()),n=[];function a(g,p){n.push({value:g,color:e(g,p)})}for(var s=0,l=0,d=i.length,c=o.length;le[1])break;n.push({color:this.getControllerVisual(l,"color",o),offset:s/i})}return n.push({color:this.getControllerVisual(e[1],"color",o),offset:1}),n},t.prototype._createBarPoints=function(e,o){var i=this.visualMapModel.itemSize;return[[i[0]-o[0],e[0]],[i[0],e[0]],[i[0],e[1]],[i[0]-o[1],e[1]]]},t.prototype._createBarGroup=function(e){var o=this._orient,i=this.visualMapModel.get("inverse");return new ue(o==="horizontal"&&!i?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:o==="horizontal"&&i?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:o==="vertical"&&!i?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,o){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,a=i.handleThumbs,s=i.handleLabels,l=n.itemSize,d=n.getExtent();_q([0,1],function(c){var u=a[c];u.setStyle("fill",o.handlesColor[c]),u.y=e[c];var h=So(e[c],[0,l[1]],d,!0),g=this.getControllerVisual(h,"symbolSize");u.scaleX=u.scaleY=g/l[0],u.x=l[0]-g/2;var p=Ur(i.handleLabelPoints[c],hi(u,this.group));s[c].setStyle({x:p[0],y:p[1],text:n.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,o,i,n){var a=this.visualMapModel,s=a.getExtent(),l=a.itemSize,d=[0,l[1]],c=this._shapes,u=c.indicator;if(u){u.attr("invisible",!1);var h={convertOpacityToAlpha:!0},g=this.getControllerVisual(e,"color",h),p=this.getControllerVisual(e,"symbolSize"),x=So(e,s,d,!0),m=l[0]-p/2,f={x:u.x,y:u.y};u.y=x,u.x=m;var v=Ur(c.indicatorLabelPoint,hi(u,this.group)),y=c.indicatorLabel;y.attr("invisible",!1);var _=this._applyTransform("left",c.mainGroup),S=this._orient,b=S==="horizontal";y.setStyle({text:(i||"")+a.formatValueText(o),verticalAlign:b?_:"middle",align:b?"center":_});var A={x:m,y:x,style:{fill:g}},M={style:{x:v[0],y:v[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(A,T),y.animateTo(M,T)}else u.attr(A),y.attr(M);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var C=0;Ca[1]&&(u[1]=1/0),o&&(u[0]===-1/0?this._showIndicator(c,u[1],"< ",l):u[1]===1/0?this._showIndicator(c,u[0],"> ",l):this._showIndicator(c,c,"\u2248 ",l));var h=this._hoverLinkDataIndices,g=[];(o||u3(i))&&(g=this._hoverLinkDataIndices=i.findTargetDataIndices(u));var p=jB(h,g);this._dispatchHighDown("downplay",rg(p[0],i)),this._dispatchHighDown("highlight",rg(p[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var o;if(wn(e.target,function(l){var d=he(l);if(d.dataIndex!=null)return o=d,!0},!0),!!o){var i=this.ecModel.getSeriesByIndex(o.seriesIndex),n=this.visualMapModel;if(n.isTargetSeries(i)){var a=i.getData(o.dataType),s=a.getStore().get(n.getDataDimensionIndex(a),o.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var o=this._shapes.handleLabels;if(o)for(var i=0;i=0&&(n.dimension=a,o.push(n))}}),r.getData().setVisual("visualMeta",o)}}];function Lq(r,t,e,o){for(var i=t.targetVisuals[o],n=wt.prepareVisualTypes(i),a={color:$l(r.getData(),"color")},s=0,l=n.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(wq,Cq),E(Pq,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(Iq))}function f3(r){r.registerComponentModel(vq),r.registerComponentView(Tq),p3(r)}var Eq=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,o){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],$q[this._mode].call(this,this._pieceList),this._resetSelected(e,o);var n=this.option.categories;this.resetVisual(function(a,s){i==="categories"?(a.mappingMethod="category",a.categories=ce(n)):(a.dataExtent=this.getExtent(),a.mappingMethod="piecewise",a.pieceList=Y(this._pieceList,function(l){return l=ce(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,o={},i=wt.listVisualTypes(),n=this.isCategory();E(e.pieces,function(s){E(i,function(l){s.hasOwnProperty(l)&&(o[l]=1)})}),E(o,function(s,l){var d=!1;E(this.stateList,function(c){d=d||a(e,c,l)||a(e.target,c,l)},this),!d&&E(this.stateList,function(c){(e[c]||(e[c]={}))[l]=t3.get(l,c==="inRange"?"active":"inactive",n)})},this);function a(s,l,d){return s&&s[l]&&s[l].hasOwnProperty(d)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,o){var i=this.option,n=this._pieceList,a=(o?i:e).selected||{};if(i.selected=a,E(n,function(l,d){var c=this.getSelectedMapKey(l);a.hasOwnProperty(c)||(a[c]=!0)},this),i.selectedMode==="single"){var s=!1;E(n,function(l,d){var c=this.getSelectedMapKey(l);a[c]&&(s?a[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=ce(e)},t.prototype.getValueState=function(e){var o=wt.findPieceIndex(e,this._pieceList);return o!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[o])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var o=[],i=this._pieceList;return this.eachTargetSeries(function(n){var a=[],s=n.getData();s.each(this.getDataDimensionIndex(s),function(l,d){var c=wt.findPieceIndex(l,i);c===e&&a.push(d)},this),o.push({seriesId:n.id,dataIndex:a})},this),o},t.prototype.getRepresentValue=function(e){var o;if(this.isCategory())o=e.value;else if(e.value!=null)o=e.value;else{var i=e.interval||[];o=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return o},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var o=[],i=["",""],n=this;function a(c,u){var h=n.getRepresentValue({interval:c});u||(u=n.getValueState(h));var g=e(h,u);c[0]===-1/0?i[0]=g:c[1]===1/0?i[1]=g:o.push({value:c[0],color:g},{value:c[1],color:g})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var d=-1/0;return E(s,function(c){var u=c.interval;u&&(u[0]>d&&a([d,u[0]],"outOfRange"),a(u.slice()),d=u[1])},this),{stops:o,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=mi(tg.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(tg),$q={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),o=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var n=(o[1]-o[0])/i;+n.toFixed(e)!==n&&e<5;)e++;t.precision=e,n=+n.toFixed(e),t.minOpen&&r.push({interval:[-1/0,o[0]],close:[0,0]});for(var a=0,s=o[0];a","\u2265"][o[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,i)},this)}};function x3(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const Dq=Eq;var Oq=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var o=this.visualMapModel,i=o.get("textGap"),n=o.textStyleModel,a=n.getFont(),s=n.getTextColor(),l=this._getItemAlign(),d=o.itemSize,c=this._getViewData(),u=c.endsText,h=ct(o.get("showLabel",!0),!u);u&&this._renderEndsText(e,u[0],d,h,l),E(c.viewPieceList,function(g){var p=g.piece,x=new ue;x.onclick=re(this._onItemClick,this,p),this._enableHoverLink(x,g.indexInModelPieceList);var m=o.getRepresentValue(p);if(this._createItemSymbol(x,m,[0,0,d[0],d[1]]),h){var f=this.visualMapModel.getValueState(m);x.add(new Le({style:{x:l==="right"?-i:d[0]+i,y:d[1]/2,text:p.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:f==="outOfRange"?.5:1}}))}e.add(x)},this),u&&this._renderEndsText(e,u[1],d,h,l),bn(o.get("orient"),e,o.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,o){var i=this;e.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(a){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:a,batch:rg(s.findTargetDataIndices(o),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,o=e.option;if(o.orient==="vertical")return l3(e,this.api,e.itemSize);var i=o.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(e,o,i,n,a){if(o){var s=new ue,l=this.visualMapModel.textStyleModel;s.add(new Le({style:Ue(l,{x:n?a==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:n?a:"center",text:o})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,o=Y(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=e.get("text"),n=e.get("orient"),a=e.get("inverse");return(n==="horizontal"?a:!a)?o.reverse():i&&(i=i.slice().reverse()),{viewPieceList:o,endsText:i}},t.prototype._createItemSymbol=function(e,o,i){e.add(tt(this.getControllerVisual(o,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(o,"color")))},t.prototype._onItemClick=function(e){var o=this.visualMapModel,i=o.option,n=i.selectedMode;if(n){var a=ce(i.selected),s=o.getSelectedMapKey(e);n==="single"||n===!0?(a[s]=!0,E(a,function(l,d){a[d]=d===s})):a[s]=!a[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},t.type="visualMap.piecewise",t}(a3);const Bq=Oq;function v3(r){r.registerComponentModel(Dq),r.registerComponentView(Bq),p3(r)}function Gq(r){be(f3),be(v3)}var Nq={label:{enabled:!0},decal:{show:!1}},y3=Ce(),kq={};function Rq(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var o=ce(Nq);xe(o.label,r.getLocaleModel().get("aria"),!1),xe(e.option,o,!1),i(),n();function i(){var d=e.getModel("decal"),c=d.get("show");if(c){var u=ne();r.eachSeries(function(h){if(!h.isColorBySeries()){var g=u.get(h.type);g||(g={},u.set(h.type,g)),y3(h).scope=g}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(ae(h.enableAriaDecal)){h.enableAriaDecal();return}var g=h.getData();if(h.isColorBySeries()){var p=jp(h.ecModel,h.name,kq,r.getSeriesCount()),x=g.getVisual("decal");g.setVisual("decal",_(x,p))}else{var m=h.getRawData(),f={},v=y3(h).scope;g.each(function(S){var b=g.getRawIndex(S);f[b]=S});var y=m.count();m.each(function(S){var b=f[S],A=m.getName(S)||S+"",M=jp(h.ecModel,A,v,y),T=g.getItemVisual(b,"decal");g.setItemVisual(b,"decal",_(T,M))})}function _(S,b){var A=S?W(W({},b),S):b;return A.dirty=!0,A}})}}function n(){var d=t.getZr().dom;if(d){var c=r.getLocaleModel().get("aria"),u=e.getModel("label");if(u.option=le(u.option,c),!!u.get("enabled")){if(u.get("description")){d.setAttribute("aria-label",u.get("description"));return}var h=r.getSeriesCount(),g=u.get(["data","maxCount"])||10,p=u.get(["series","maxCount"])||10,x=Math.min(h,p),m;if(!(h<1)){var f=s();if(f){var v=u.get(["general","withTitle"]);m=a(v,{title:f})}else m=u.get(["general","withoutTitle"]);var y=[],_=h>1?u.get(["series","multiple","prefix"]):u.get(["series","single","prefix"]);m+=a(_,{seriesCount:h}),r.eachSeries(function(M,T){if(T1?u.get(["series","multiple",P]):u.get(["series","single",P]),w=a(w,{seriesId:M.seriesIndex,seriesName:M.get("name"),seriesType:l(M.subType)});var L=M.getData();if(L.count()>g){var $=u.get(["data","partialData"]);w+=a($,{displayCnt:g})}else w+=u.get(["data","allData"]);for(var O=u.get(["data","separator","middle"]),N=u.get(["data","separator","end"]),R=[],I=0;I":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Hq=function(){function r(t){var e=this._condVal=te(t)?new RegExp(t):By(t)?t:null;if(e==null){var o="";Be(o)}}return r.prototype.evaluate=function(t){var e=typeof t;return te(e)?this._condVal.test(t):Ee(e)?this._condVal.test(t+""):!1},r}(),Xq=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),Uq=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&o.push(i),i=[L,$]}function c(L,$,O,N){fs(L,O)&&fs($,N)||i.push(L,$,O,N,O,N)}function u(L,$,O,N,R,I){var D=Math.abs($-L),G=Math.tan(D/4)*4/3,k=$M:C2&&o.push(i),o}function lv(r,t,e,o,i,n,a,s,l,d){if(fs(r,e)&&fs(t,o)&&fs(i,a)&&fs(n,s)){l.push(a,s);return}var c=2/d,u=c*c,h=a-r,g=s-t,p=Math.sqrt(h*h+g*g);h/=p,g/=p;var x=e-r,m=o-t,f=i-a,v=n-s,y=x*x+m*m,_=f*f+v*v;if(y=0&&M=0){l.push(a,s);return}var T=[],w=[];oi(r,e,i,a,.5,T),oi(t,o,n,s,.5,w),lv(T[0],w[0],T[1],w[1],T[2],w[2],T[3],w[3],l,d),lv(T[4],w[4],T[5],w[5],T[6],w[6],T[7],w[7],l,d)}function iee(r,t){var e=sv(r),o=[];t=t||1;for(var i=0;i0)for(var d=0;dMath.abs(d),u=M3([l,d],c?0:1,t),h=(c?s:d)/u.length,g=0;gi,a=M3([o,i],n?0:1,t),s=n?"width":"height",l=n?"height":"width",d=n?"x":"y",c=n?"y":"x",u=r[s]/a.length,h=0;h1?null:new ve(x*l+r,x*d+t)}function see(r,t,e){var o=new ve;ve.sub(o,e,t),o.normalize();var i=new ve;ve.sub(i,r,t);var n=i.dot(o);return n}function xs(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function lee(r,t,e){for(var o=r.length,i=[],n=0;na?(d.x=c.x=s+n/2,d.y=l,c.y=l+a):(d.y=c.y=l+a/2,d.x=s,c.x=s+n),lee(t,d,c)}function og(r,t,e,o){if(e===1)o.push(t);else{var i=Math.floor(e/2),n=r(t);og(r,n[0],i,o),og(r,n[1],e-i,o)}return o}function dee(r,t){for(var e=[],o=0;o0)for(var S=o/e,b=-o/2;b<=o/2;b+=S){for(var A=Math.sin(b),M=Math.cos(b),T=0,y=0;y0;d/=2){var c=0,u=0;(r&d)>0&&(c=1),(t&d)>0&&(u=1),s+=d*d*(3*c^u),u===0&&(c===1&&(r=d-1-r,t=d-1-t),l=r,r=t,t=l)}return s}function ag(r){var t=1/0,e=1/0,o=-1/0,i=-1/0,n=Y(r,function(s){var l=s.getBoundingRect(),d=s.getComputedTransform(),c=l.x+l.width/2+(d?d[4]:0),u=l.y+l.height/2+(d?d[5]:0);return t=Math.min(c,t),e=Math.min(u,e),o=Math.max(c,o),i=Math.max(u,i),[c,u]}),a=Y(n,function(s,l){return{cp:s,z:vee(s[0],s[1],t,e,o,i),path:r[l]}});return a.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function $3(r){return hee(r.path,r.count)}function cv(){return{fromIndividuals:[],toIndividuals:[],count:0}}function yee(r,t,e){var o=[];function i(S){for(var b=0;b=0;i--)if(!e[i].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var n=l.length,d=Math.ceil(n/2);e[i].many=l.slice(d,n),e[s].many=l.slice(0,d),s++}return e}var See={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),o=0;o0))return;var s=o.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},a),d,c;D3(r)&&(d=r,c=t),D3(t)&&(d=t,c=r);function u(f,v,y,_,S){var b=f.many,A=f.one;if(b.length===1&&!S){var M=v?b[0]:A,T=v?A:b[0];if(ig(M))u({many:[M],one:T},!0,y,_,!0);else{var w=s?le({delay:s(y,_)},l):l;dv(M,T,w),n(M,T,M,T,w)}}else for(var C=le({dividePath:See[e],individualDelay:s&&function(R,I,D,G){return s(R+y,_)}},l),P=v?yee(b,A,C):_ee(A,b,C),L=P.fromIndividuals,$=P.toIndividuals,O=L.length,N=0;Nt.length,g=d?O3(c,d):O3(h?t:r,[h?r:t]),p=0,x=0;xB3))for(var n=o.getIndices(),a=0;a0&&b.group.traverse(function(M){M instanceof Me&&!M.animators.length&&M.animateFrom({style:{opacity:0}},A)})})}function V3(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function H3(r){return K(r)?r.sort().join(","):r}function Oi(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Pee(r,t){var e=ne(),o=ne(),i=ne();return E(r.oldSeries,function(n,a){var s=r.oldDataGroupIds[a],l=r.oldData[a],d=V3(n),c=H3(d);o.set(c,{dataGroupId:s,data:l}),K(d)&&E(d,function(u){i.set(u,{key:c,dataGroupId:s,data:l})})}),E(t.updatedSeries,function(n){if(n.isUniversalTransitionEnabled()&&n.isAnimationEnabled()){var a=n.get("dataGroupId"),s=n.getData(),l=V3(n),d=H3(l),c=o.get(d);if(c)e.set(d,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Oi(c.data),data:c.data}],newSeries:[{dataGroupId:a,divide:Oi(s),data:s}]});else if(K(l)){var u=[];E(l,function(p){var x=o.get(p);x.data&&u.push({dataGroupId:x.dataGroupId,divide:Oi(x.data),data:x.data})}),u.length&&e.set(d,{oldSeries:u,newSeries:[{dataGroupId:a,data:s,divide:Oi(s)}]})}else{var h=i.get(l);if(h){var g=e.get(h.key);g||(g={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Oi(h.data)}],newSeries:[]},e.set(h.key,g)),g.newSeries.push({dataGroupId:a,data:s,divide:Oi(s)})}}}}),e}function X3(r,t){for(var e=0;e=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Oi(t.oldData[s]),groupIdDim:a.dimension})}),E(ke(r.to),function(a){var s=X3(e.updatedSeries,a);if(s>=0){var l=e.updatedSeries[s].getData();n.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Oi(l),groupIdDim:a.dimension})}}),i.length>0&&n.length>0&&F3(i,n,o)}function Iee(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,o){E(ke(o.seriesTransition),function(i){E(ke(i.to),function(n){for(var a=o.updatedSeries,s=0;s{const i=mA(t.value),n=()=>{const{top:a,bottom:s}=t.value.getBoundingClientRect();a0&&(window.removeEventListener("scroll",n),i.setOption(e))};window.addEventListener("scroll",n)});function o(){window.open("https://pivotlang.tech/docs/systemlib/immix.html#%E6%80%A7%E8%83%BD")}return(i,n)=>(at(),dt(Nd,null,[ie("div",{ref_key:"echartsDom",ref:t,class:"chart-container"},null,512),ie("div",{class:"button"},[ie("span",{onClick:o},"\u{1F449} See benchmark details")])],64))}}),Dee=["src"],Oee={class:"name"},Bee=jr({__name:"memberCard",props:{avatar:{},name:{},identity:{},github:{}},setup(r){const t=r;function e(){window.open(t.github)}return(o,i)=>(at(),dt("div",{class:"container",onClick:e},[ie("div",null,[ie("img",{class:"avatar",src:t.avatar},null,8,Dee)]),ie("div",Oee,Ss(t.name),1),ie("div",null,Ss(t.identity),1)]))}}),Gee=eo(Bee,[["__scopeId","data-v-2c4d0eb1"]]),Nee={},kee={class:"bottom"};function Ree(r,t){return at(),dt("div",kee,t[0]||(t[0]=[ie("div",{class:"left"},[ie("img",{src:Hv}),ie("span",null,"Pivot Lang")],-1),ie("div",{class:"right"},"\xA9Pivot Lang 2023. All rights reserved | Privacy Policy",-1)]))}const Fee=eo(Nee,[["render",Ree],["__scopeId","data-v-ca86735e"]]),Vee={class:"out-container"},Hee={class:"container"},Xee={class:"line"},Uee={class:"content"},Wee={class:"line"},zee={class:"content"},Kee={class:"line"},Zee={class:"content"},Yee={class:"line"},Qee={class:"content"},Jee={class:"line"},jee={class:"content"},qee=jr({__name:"moreInfo",setup(r){return(t,e)=>(at(),dt("div",Vee,[ie("div",Hee,[ie("div",Xee,[e[3]||(e[3]=ie("div",{class:"title"},"Why PL",-1)),ie("div",Uee,[We(He(St),{href:"https://pivotlang.tech/docs/systemlib/immix.html"},{default:Ct(()=>e[0]||(e[0]=[ie("div",null,"immix GC",-1)])),_:1}),We(He(St),{href:"https://pivotlang.tech/docs/tutorial/vscsupport.html"},{default:Ct(()=>e[1]||(e[1]=[ie("div",null,"VSC Support",-1)])),_:1}),We(He(St),{href:"https://pivotlang.tech/docs/references/module.html"},{default:Ct(()=>e[2]||(e[2]=[ie("div",null,"Module",-1)])),_:1})])]),ie("div",Wee,[e[7]||(e[7]=ie("div",{class:"title"},"Get Started",-1)),ie("div",zee,[We(He(St),{href:"https://pivotlang.tech/docs/index.html"},{default:Ct(()=>e[4]||(e[4]=[ie("div",null,"Documentation",-1)])),_:1}),We(He(St),{href:"https://pivotlang.tech/docs/tutorial/index.html"},{default:Ct(()=>e[5]||(e[5]=[ie("div",null,"Tutorial",-1)])),_:1}),We(He(St),{href:"https://pivotlang.tech/docs/references/index.html"},{default:Ct(()=>e[6]||(e[6]=[ie("div",null,"API Reference",-1)])),_:1})])]),ie("div",Kee,[e[10]||(e[10]=ie("div",{class:"title"},"Resources",-1)),ie("div",Zee,[We(He(St),{href:"https://pivotlang.tech/docs/blogs/aboutpl.html"},{default:Ct(()=>e[8]||(e[8]=[ie("div",null,"Blog",-1)])),_:1}),We(He(St),{href:"https://pivotlang.tech/docs/blogs/lsp_and_salsa.html"},{default:Ct(()=>e[9]||(e[9]=[ie("div",null,"lsp and salsa",-1)])),_:1})])]),ie("div",Yee,[e[13]||(e[13]=ie("div",{class:"title"},"Community",-1)),ie("div",Qee,[We(He(St),{href:"https://pivotlang.tech/docs/CONTRIBUTING-CN.html"},{default:Ct(()=>e[11]||(e[11]=[ie("div",null,"Contributor's Guide",-1)])),_:1}),We(He(St),{href:"https://github.com/Pivot-Studio/pivot-lang/issues"},{default:Ct(()=>e[12]||(e[12]=[ie("div",null,"Good First Issue",-1)])),_:1})])]),ie("div",Jee,[e[16]||(e[16]=ie("div",{class:"title"},"Contact",-1)),ie("div",jee,[We(He(St),{href:"https://github.com/Pivot-Studio/pivot-lang"},{default:Ct(()=>e[14]||(e[14]=[ie("div",null,"Github",-1)])),_:1}),We(He(St),{href:"https://qm.qq.com/q/xjPHKHBl0A"},{default:Ct(()=>e[15]||(e[15]=[ie("div",null,"QQ group",-1)])),_:1})])])])]))}}),ete=eo(qee,[["__scopeId","data-v-d074e1e7"]]),tte="#1db010",rte="#f5d10a",ote="#f50a0a";function mv(r,t,e){var i;if(e===t.length)return r;for(let n=0;n<(((i=r.children)==null?void 0:i.length)??0);n++){const a=r.children[n];if(a.filename===t.slice(0,e+1).join("/"))return mv(a,t,e+1)}const o={value:0,coverage:0,itemStyle:{color:"#fff"},children:[],filename:t.slice(0,e+1).join("/"),father:r,hits:0};return r.children?r.children.push(o):r.children=[o],mv(o,t,e+1)}const ite=r=>{let t={value:0,coverage:0,itemStyle:{color:"#fff"},children:[],filename:"Pivot Lang",hits:0};for(let e=0;e(await Cy.get("https://cov.pivotlang.tech/api/v2/github/Pivot-Studio/repos/pivot-lang/totals/?branch=master",{headers:{accept:"application/json"}})).data,ate={class:"cov"},ste=jr({__name:"codecovEcharts",setup(r){const t=qr(null),e=qr(0),o=qr("Pivot Lang");Bd("isMobile"),Gd(async()=>{LE(()=>Promise.resolve().then(()=>Eee),void 0).then(async s=>{const l=ite(await nte());e.value=l.coverage;const d={tooltip:{trigger:"item"},series:{type:"sunburst",sort:void 0,tooltip:{formatter:i},emphasis:{disable:!0},data:l.children,label:{formatter:"",show:!1},levels:[]}},c=s.init(t.value),u=()=>{const{top:h,bottom:g}=t.value.getBoundingClientRect();h0&&(window.removeEventListener("scroll",u),c.setOption(d))};window.addEventListener("scroll",u)})});function i(s){let l=s.data;if(l.filename)o.value=l.filename,e.value=l.coverage;else{let d=0,c=0;for(let h=0;h=.8?"covHigh":e.value>=.5?"covMiddle":"covLow"}return(s,l)=>(at(),dt(Nd,null,[ie("div",{ref_key:"covchartsDom",ref:t,class:"chart-container"},null,512),ie("div",ate,[pg(Ss(o.value)+" coverage: ",1),ie("span",{class:Vv(a())},Ss((e.value*100).toFixed(2))+"%",3)]),ie("div",{class:"button"},[ie("span",{onClick:n},"\u{1F449} See test details")])],64))}}),lte=eo(ste,[["__scopeId","data-v-df4c4dce"]]);var De=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function W3(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var z3={exports:{}};(function(r){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{},e=function(o){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,a={},s={manual:o.Prism&&o.Prism.manual,disableWorkerMessageHandler:o.Prism&&o.Prism.disableWorkerMessageHandler,util:{encode:function v(y){return y instanceof l?new l(y.type,v(y.content),y.alias):Array.isArray(y)?y.map(v):y.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(S){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(S.stack)||[])[1];if(v){var y=document.getElementsByTagName("script");for(var _ in y)if(y[_].src==v)return y[_]}return null}},isActive:function(v,y,_){for(var S="no-"+y;v;){var b=v.classList;if(b.contains(y))return!0;if(b.contains(S))return!1;v=v.parentElement}return!!_}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(v,y){var _=s.util.clone(s.languages[v]);for(var S in y)_[S]=y[S];return _},insertBefore:function(v,y,_,S){S=S||s.languages;var b=S[v],A={};for(var M in b)if(b.hasOwnProperty(M)){if(M==y)for(var T in _)_.hasOwnProperty(T)&&(A[T]=_[T]);_.hasOwnProperty(M)||(A[M]=b[M])}var w=S[v];return S[v]=A,s.languages.DFS(s.languages,function(C,P){P===w&&C!=v&&(this[C]=A)}),A},DFS:function v(y,_,S,b){b=b||{};var A=s.util.objId;for(var M in y)if(y.hasOwnProperty(M)){_.call(y,M,y[M],S||M);var T=y[M],w=s.util.type(T);w==="Object"&&!b[A(T)]?(b[A(T)]=!0,v(T,_,null,b)):w==="Array"&&!b[A(T)]&&(b[A(T)]=!0,v(T,_,M,b))}}},plugins:{},highlightAll:function(v,y){s.highlightAllUnder(document,v,y)},highlightAllUnder:function(v,y,_){var S={callback:_,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",S),S.elements=Array.prototype.slice.apply(S.container.querySelectorAll(S.selector)),s.hooks.run("before-all-elements-highlight",S);for(var b=0,A;A=S.elements[b++];)s.highlightElement(A,y===!0,S.callback)},highlightElement:function(v,y,_){var S=s.util.getLanguage(v),b=s.languages[S];s.util.setLanguage(v,S);var A=v.parentElement;A&&A.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(A,S);var M=v.textContent,T={element:v,language:S,grammar:b,code:M};function w(P){T.highlightedCode=P,s.hooks.run("before-insert",T),T.element.innerHTML=T.highlightedCode,s.hooks.run("after-highlight",T),s.hooks.run("complete",T),_&&_.call(T.element)}if(s.hooks.run("before-sanity-check",T),A=T.element.parentElement,A&&A.nodeName.toLowerCase()==="pre"&&!A.hasAttribute("tabindex")&&A.setAttribute("tabindex","0"),!T.code){s.hooks.run("complete",T),_&&_.call(T.element);return}if(s.hooks.run("before-highlight",T),!T.grammar){w(s.util.encode(T.code));return}if(y&&o.Worker){var C=new Worker(s.filename);C.onmessage=function(P){w(P.data)},C.postMessage(JSON.stringify({language:T.language,code:T.code,immediateClose:!0}))}else w(s.highlight(T.code,T.grammar,T.language))},highlight:function(v,y,_){var S={code:v,grammar:y,language:_};if(s.hooks.run("before-tokenize",S),!S.grammar)throw new Error('The language "'+S.language+'" has no grammar.');return S.tokens=s.tokenize(S.code,S.grammar),s.hooks.run("after-tokenize",S),l.stringify(s.util.encode(S.tokens),S.language)},tokenize:function(v,y){var _=y.rest;if(_){for(var S in _)y[S]=_[S];delete y.rest}var b=new u;return h(b,b.head,v),c(v,b,y,b.head,0),p(b)},hooks:{all:{},add:function(v,y){var _=s.hooks.all;_[v]=_[v]||[],_[v].push(y)},run:function(v,y){var _=s.hooks.all[v];if(!(!_||!_.length))for(var S=0,b;b=_[S++];)b(y)}},Token:l};o.Prism=s;function l(v,y,_,S){this.type=v,this.content=y,this.alias=_,this.length=(S||"").length|0}l.stringify=function v(y,_){if(typeof y=="string")return y;if(Array.isArray(y)){var S="";return y.forEach(function(w){S+=v(w,_)}),S}var b={type:y.type,content:v(y.content,_),tag:"span",classes:["token",y.type],attributes:{},language:_},A=y.alias;A&&(Array.isArray(A)?Array.prototype.push.apply(b.classes,A):b.classes.push(A)),s.hooks.run("wrap",b);var M="";for(var T in b.attributes)M+=" "+T+'="'+(b.attributes[T]||"").replace(/"/g,""")+'"';return"<"+b.tag+' class="'+b.classes.join(" ")+'"'+M+">"+b.content+""};function d(v,y,_,S){v.lastIndex=y;var b=v.exec(_);if(b&&S&&b[1]){var A=b[1].length;b.index+=A,b[0]=b[0].slice(A)}return b}function c(v,y,_,S,b,A){for(var M in _)if(!(!_.hasOwnProperty(M)||!_[M])){var T=_[M];T=Array.isArray(T)?T:[T];for(var w=0;w=A.reach);D+=I.value.length,I=I.next){var G=I.value;if(y.length>v.length)return;if(!(G instanceof l)){var k=1,H;if($){if(H=d(R,D,v,L),!H||H.index>=v.length)break;var se=H.index,z=H.index+H[0].length,Q=D;for(Q+=I.value.length;se>=Q;)I=I.next,Q+=I.value.length;if(Q-=I.value.length,D=Q,I.value instanceof l)continue;for(var q=I;q!==y.tail&&(QA.reach&&(A.reach=X);var j=I.prev;F&&(j=h(y,j,F),D+=F.length),g(y,j,k);var J=new l(M,P?s.tokenize(B,P):B,O,B);if(I=h(y,j,J),U&&h(y,I,U),k>1){var ge={cause:M+","+w,reach:X};c(v,y,_,I.prev,D,ge),A&&ge.reach>A.reach&&(A.reach=ge.reach)}}}}}}function u(){var v={value:null,prev:null,next:null},y={value:null,prev:v,next:null};v.next=y,this.head=v,this.tail=y,this.length=0}function h(v,y,_){var S=y.next,b={value:_,prev:y,next:S};return y.next=b,S.prev=b,v.length++,b}function g(v,y,_){for(var S=y.next,b=0;b<_&&S!==v.tail;b++)S=S.next;y.next=S,S.prev=y,v.length-=b}function p(v){for(var y=[],_=v.head.next;_!==v.tail;)y.push(_.value),_=_.next;return y}if(!o.document)return o.addEventListener&&(s.disableWorkerMessageHandler||o.addEventListener("message",function(v){var y=JSON.parse(v.data),_=y.language,S=y.code,b=y.immediateClose;o.postMessage(s.highlight(S,s.languages[_],_)),b&&o.close()},!1)),s;var x=s.util.currentScript();x&&(s.filename=x.src,x.hasAttribute("data-manual")&&(s.manual=!0));function m(){s.manual||s.highlightAll()}if(!s.manual){var f=document.readyState;f==="loading"||f==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",m):window.requestAnimationFrame?window.requestAnimationFrame(m):window.setTimeout(m,16)}return s}(t);r.exports&&(r.exports=e),typeof De<"u"&&(De.Prism=e)})(z3);var dte=z3.exports;const cte=W3(dte);(function(r){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",e={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:e,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};r.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:e}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},e.inside=r.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],n=o.variable[1].inside,a=0;a"u"||typeof document>"u")return;var r="line-numbers",t=/\n(?!$)/g,e=Prism.plugins.lineNumbers={getLine:function(a,s){if(!(a.tagName!=="PRE"||!a.classList.contains(r))){var l=a.querySelector(".line-numbers-rows");if(l){var d=parseInt(a.getAttribute("data-start"),10)||1,c=d+(l.children.length-1);sc&&(s=c);var u=s-d;return l.children[u]}}},resize:function(a){o([a])},assumeViewportIndependence:!0};function o(a){if(a=a.filter(function(l){var d=i(l),c=d["white-space"];return c==="pre-wrap"||c==="pre-line"}),a.length!=0){var s=a.map(function(l){var d=l.querySelector("code"),c=l.querySelector(".line-numbers-rows");if(!(!d||!c)){var u=l.querySelector(".line-numbers-sizer"),h=d.textContent.split(t);u||(u=document.createElement("span"),u.className="line-numbers-sizer",d.appendChild(u)),u.innerHTML="0",u.style.display="block";var g=u.getBoundingClientRect().height;return u.innerHTML="",{element:l,lines:h,lineHeights:[],oneLinerHeight:g,sizer:u}}}).filter(Boolean);s.forEach(function(l){var d=l.sizer,c=l.lines,u=l.lineHeights,h=l.oneLinerHeight;u[c.length-1]=void 0,c.forEach(function(g,p){if(g&&g.length>1){var x=d.appendChild(document.createElement("span"));x.style.display="block",x.textContent=g}else u[p]=h})}),s.forEach(function(l){for(var d=l.sizer,c=l.lineHeights,u=0,h=0;h");u=document.createElement("span"),u.setAttribute("aria-hidden","true"),u.className="line-numbers-rows",u.innerHTML=h,l.hasAttribute("data-start")&&(l.style.counterReset="linenumber "+(parseInt(l.getAttribute("data-start"),10)-1)),a.element.appendChild(u),o([l]),Prism.hooks.run("line-numbers",a)}}}),Prism.hooks.add("line-numbers",function(a){a.plugins=a.plugins||{},a.plugins.lineNumbers=!0})}(),function(){if(typeof Prism>"u"||typeof document>"u")return;var r=[],t={},e=function(){};Prism.plugins.toolbar={};var o=Prism.plugins.toolbar.registerButton=function(a,s){var l;if(typeof s=="function"?l=s:l=function(d){var c;return typeof s.onClick=="function"?(c=document.createElement("button"),c.type="button",c.addEventListener("click",function(){s.onClick.call(this,d)})):typeof s.url=="string"?(c=document.createElement("a"),c.href=s.url):c=document.createElement("span"),s.className&&c.classList.add(s.className),c.textContent=s.text,c},a in t){console.warn('There is a button with the key "'+a+'" registered already.');return}r.push(t[a]=l)};function i(a){for(;a;){var s=a.getAttribute("data-toolbar-order");if(s!=null)return s=s.trim(),s.length?s.split(/\s*,\s*/g):[];a=a.parentElement}}var n=Prism.plugins.toolbar.hook=function(a){var s=a.element.parentNode;if(!(!s||!/pre/i.test(s.nodeName))&&!s.parentNode.classList.contains("code-toolbar")){var l=document.createElement("div");l.classList.add("code-toolbar"),s.parentNode.insertBefore(l,s),l.appendChild(s);var d=document.createElement("div");d.classList.add("toolbar");var c=r,u=i(a.element);u&&(c=u.map(function(h){return t[h]||e})),c.forEach(function(h){var g=h(a);if(g){var p=document.createElement("div");p.classList.add("toolbar-item"),p.appendChild(g),d.appendChild(p)}}),l.appendChild(d)}};o("label",function(a){var s=a.element.parentNode;if(!(!s||!/pre/i.test(s.nodeName))&&s.hasAttribute("data-label")){var l,d,c=s.getAttribute("data-label");try{d=document.querySelector("template#"+c)}catch{}return d?l=d.content:(s.hasAttribute("data-url")?(l=document.createElement("a"),l.href=s.getAttribute("data-url")):l=document.createElement("span"),l.textContent=c),l}}),Prism.hooks.add("complete",n)}(),function(){if(typeof Prism>"u"||typeof document>"u")return;if(!Prism.plugins.toolbar){console.warn("Copy to Clipboard plugin loaded before Toolbar plugin.");return}function r(n,a){n.addEventListener("click",function(){e(a)})}function t(n){var a=document.createElement("textarea");a.value=n.getText(),a.style.top="0",a.style.left="0",a.style.position="fixed",document.body.appendChild(a),a.focus(),a.select();try{var s=document.execCommand("copy");setTimeout(function(){s?n.success():n.error()},1)}catch(l){setTimeout(function(){n.error(l)},1)}document.body.removeChild(a)}function e(n){navigator.clipboard?navigator.clipboard.writeText(n.getText()).then(n.success,function(){t(n)}):t(n)}function o(n){window.getSelection().selectAllChildren(n)}function i(n){var a={copy:"Copy","copy-error":"Press Ctrl+C to copy","copy-success":"Copied!","copy-timeout":5e3},s="data-prismjs-";for(var l in a){for(var d=s+l,c=n;c&&!c.hasAttribute(d);)c=c.parentElement;c&&(a[l]=c.getAttribute(d))}return a}Prism.plugins.toolbar.registerButton("copy-to-clipboard",function(n){var a=n.element,s=i(a),l=document.createElement("button");l.className="copy-to-clipboard-button",l.setAttribute("type","button");var d=document.createElement("span");return l.appendChild(d),u("copy"),r(l,{getText:function(){return a.textContent},success:function(){u("copy-success"),c()},error:function(){u("copy-error"),setTimeout(function(){o(a)},1),c()}}),l;function c(){setTimeout(function(){u("copy")},s["copy-timeout"])}function u(h){d.textContent=s[h],l.setAttribute("data-copy-state",h)}})}();const ute={"data-prismjs-copy":"copy","data-prismjs-copy-error":"\u6309Ctrl+C\u590D\u5236","data-prismjs-copy-success":"copied!",class:"pre data-prismjs-copy"},hte={className:"language-jsx",style:{"font-size":"10px"}},gte=jr({__name:"codeBlock",props:{code:{type:String,default:""}},setup(r){const t=r;return Gd(()=>{cte.highlightAll()}),(e,o)=>(at(),dt("pre",ute,[o[0]||(o[0]=pg(" ")),ie("code",hte,Ss(t.code),1),o[1]||(o[1]=pg(` - `))]))}}),mte=eo(gte,[["__scopeId","data-v-f38e72cf"]]);var pv={},sg={},Mo={},fv={};Object.defineProperty(fv,"__esModule",{value:!0}),fv.trim=(r,t)=>r.replace(new RegExp("^["+t+"]+|["+t+"]+$","g"),""),Object.defineProperty(Mo,"__esModule",{value:!0});const pte=fv;Mo.formatVersion=(r,t)=>{if(r===void 0)return"";const e=pte.trim(r,". ").replace(new RegExp("_","g"),"."),o=e.split(".");return/^\d+$/.test(o.join(""))?t!==0&&Number.isInteger(parseFloat(e))?parseInt(e,10).toFixed(1):o.length>1&&t!==null?o.slice(0,t+1).join("."):e:e},Mo.parseBrowserEngineVersion=(r,t)=>{if(!t)return"";if(t==="Gecko"){const i=/[ ](?:rv[: ]([0-9\.]+)).*gecko\/[0-9]{8,10}/i,n=r.match(i);if(n)return n.pop()}const e=new RegExp(`${t}\\s*\\/?\\s*((?:(?=\\d+\\.\\d)\\d+[.\\d]*|\\d{1,7}(?=(?:\\D|$))))`,"i"),o=r.match(e);return o?o.pop():""};var Gt={};Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.variableReplacement=(r,t)=>{const e=new RegExp("\\$\\d","g");return r==null?"":r.replace(e,o=>{const i=parseInt(o.substr(1),10);return t[i-1]||""})};var ft={},xv={};Object.defineProperty(xv,"__esModule",{value:!0}),xv.memoryCache=()=>{const r={};return{set:(t,e)=>{r[t]=e},get:t=>{if(r.hasOwnProperty(t))return r[t]}}},Object.defineProperty(ft,"__esModule",{value:!0});const fte=xv,K3=fte.memoryCache(),xte=r=>{const t=K3.get(r);if(t)return t.value;const e=RegExp(`(?:^|[^A-Z0-9-_]|[^A-Z0-9-]_|sprd-)(?:${r})`,"i");return K3.set(r,{value:e}),e};ft.userAgentParser=(r,t)=>{try{const e=xte(r).exec(t);return e?e.slice(1):null}catch{return null}};const vte=[{regex:"Helio/(\\d+[\\.\\d]+)",name:"Helio",version:"$1",engine:{default:"Blink"}},{regex:"7654Browser/(\\d+[\\.\\d]+)",name:"7654 Browser",version:"$1",engine:{default:"Blink"}},{regex:"Qazweb/(\\d+[\\.\\d]+)",name:"Qazweb",version:"$1",engine:{default:"Gecko"}},{regex:"Degdegan/(\\d+[\\.\\d]+)",name:"deg-degan",version:"$1",engine:{default:"Blink"}},{regex:"JavaFX/(\\d+[\\.\\d]+)",name:"JavaFX",version:"$1",engine:{default:"WebKit"}},{regex:"Chedot/(\\d+[\\.\\d]+)",name:"Chedot",version:"$1",engine:{default:"Blink"}},{regex:"Chrome/(\\d+[\\.\\d]+) \\(Chromium GOST\\)",name:"Chromium GOST",version:"$1",engine:{default:"Blink"}},{regex:"(?:DeledaoPersonal|DeledaoFamily)/(\\d+[\\.\\d]+)",name:"Deledao",version:"$1",engine:{default:"Blink"}},{regex:"HasBrowser/(\\d+[\\.\\d]+)",name:"HasBrowser",version:"$1",engine:{default:"Blink"}},{regex:"Byffox/(\\d+[\\.\\d]+)",name:"Byffox",version:"$1",engine:{default:"Gecko"}},{regex:"Chrome/(\\d+[\\.\\d]+).+AgentWeb.+UCBrowser",name:"CoolBrowser",version:"$1",engine:{default:"Blink"}},{regex:"DotBrowser/(\\d+[\\.\\d]+)",name:"Dot Browser",version:"$1",engine:{default:"Blink"}},{regex:"CravingExplorer/(\\d+[\\.\\d]+)",name:"Craving Explorer",version:"$1",engine:{default:"Blink"}},{regex:"DeskBrowse/(\\d+[\\.\\d]+)",name:"DeskBrowse",version:"$1"},{regex:"Lolifox/(\\d+[\\.\\d]+)",name:"Lolifox",version:"$1"},{regex:"qutebrowser/(\\d+[\\.\\d]+).+Chrome",name:"Qutebrowser",version:"$1",engine:{default:"Blink"}},{regex:"qutebrowser(?:/(\\d+[\\.\\d]+))?",name:"Qutebrowser",version:"$1"},{regex:"flast/(\\d+[\\.\\d]+)",name:"Flast",version:"$1",engine:{default:"Blink"}},{regex:"PolyBrowser/(\\d+[\\.\\d]+)",name:"PolyBrowser",version:"$1",engine:{default:"Gecko"}},{regex:"Chrome.+BriskBard/(\\d+[\\.\\d]+)",name:"BriskBard",version:"$1",engine:{default:"Blink"}},{regex:"BriskBard(?:/(\\d+[\\.\\d]+))?",name:"BriskBard",version:"$1"},{regex:"GinxDroidBrowser/(\\d+[\\.\\d]+)",name:"GinxDroid Browser",version:"$1",engine:{default:"Blink"}},{regex:"AviraScout/(\\d+[\\.\\d]+)",name:"Avira Scout",version:"$1",engine:{default:"Blink"}},{regex:"VenusBrowser/(\\d+[\\.\\d]+)",name:"Venus Browser",version:"$1",engine:{default:"Blink"}},{regex:"Chrome.+Otter(?:[ /](\\d+[\\.\\d]+))?",name:"Otter Browser",version:"$1",engine:{default:"Blink"}},{regex:"Otter(?:[ /](\\d+[\\.\\d]+))?",name:"Otter Browser",version:"$1"},{regex:"Chrome.+Smooz/(\\d+[\\.\\d]+)",name:"Smooz",version:"$1",engine:{default:"Blink"}},{regex:"Smooz/(\\d+[\\.\\d]+)",name:"Smooz",version:"$1"},{regex:"Cornowser/(\\d+[\\.\\d]+)",name:"Cornowser",version:"$1",engine:{default:"Blink"}},{regex:"Orca/(\\d+[\\.\\d]+)",name:"Orca",version:"$1"},{regex:"Flow/(?:(\\d+[\\.\\d]+))",name:"Flow",version:"$1",engine:{default:"EkiohFlow"}},{regex:"Ekioh/(?:(\\d+[\\.\\d]+))",name:"Flow",version:"$1",engine:{default:"EkiohFlow"}},{regex:"xStand/(\\d+[\\.\\d]+)",name:"xStand",version:"$1",engine:{default:"WebKit"}},{regex:"Biyubi/(\\d+[\\.\\d]+)",name:"Biyubi",version:"$1"},{regex:"(?:Perfect%20Browser(?:-iPad)?|Perfect(?:BrowserPro)?)/(\\d+[\\.\\d]+)",name:"Perfect Browser",version:"$1",engine:{default:"WebKit"}},{regex:"Browser/Phantom/V(\\d+[\\.\\d]+)",name:"Phantom Browser",version:"$1"},{regex:"AwoX(?:/(\\d+[\\.\\d]+))? Browser",name:"AwoX",version:"$1"},{regex:"Zetakey/(\\d+[\\.\\d]+)",name:"Zetakey",version:"$1",engine:{default:"WebKit"}},{regex:"PlayFreeBrowser/(?:(\\d+[\\.\\d]+))?",name:"PlayFree Browser",version:"$1"},{regex:"(?:chimlac_browser|chimlac)/(?:(\\d+[\\.\\d]+))",name:"Chim Lac",version:"$1",engine:{default:"Blink"}},{regex:"Odin/(?:(\\d+[\\.\\d]+))",name:"Odin",version:"$1",engine:{default:"Blink"}},{regex:"Tbrowser/(\\d+[\\.\\d]+)",name:"T-Browser",version:"$1",engine:{default:"Blink"}},{regex:"SFive(?:_Android)?/.+ Chrome/(\\d+[\\.\\d]+)",name:"SFive",version:"$1",engine:{default:"Blink"}},{regex:"SFive_IOS/(\\d+[\\.\\d]+)",name:"SFive",version:"$1"},{regex:"Navigateur web/(?:(\\d+[\\.\\d]+))?",name:"Navigateur Web",version:"$1"},{regex:"Sraf(?:[/ ](\\d+[\\.\\d]+))?",name:"Seraphic Sraf",version:"$1",engine:{default:"Blink"}},{regex:"SeewoBrowser/(?:(\\d+[\\.\\d]+))?",name:"Seewo Browser",version:"$1",engine:{default:"Blink"}},{regex:"(?:Kode(?:iOS)?/(?:(\\d+[\\.\\d]+))?|TansoDL)",name:"Kode Browser",version:"$1"},{regex:"UR/(?:(\\d+[\\.\\d]+))",name:"UR Browser",version:"$1",engine:{default:"Blink"}},{regex:"OceanHero/([\\.\\d]+)",name:"OceanHero",version:"$1",engine:{default:"Blink"}},{regex:"Chrome/.+ SLBrowser/(?:(\\d+[\\.\\d]+))?",name:"Smart Lenovo Browser",version:"$1",engine:{default:"Blink"}},{regex:"SLBrowser/(?:(\\d+[\\.\\d]+))?",name:"Smart Lenovo Browser",version:"$1"},{regex:"Browzar",name:"Browzar",version:""},{regex:"Stargon/(?:(\\d+[\\.\\d]+))?",name:"Stargon",version:"$1",engine:{default:"Blink"}},{regex:"NFSBrowser/(?:(\\d+[\\.\\d]+))?",name:"NFS Browser",version:"$1",engine:{default:"Blink"}},{regex:"Borealis/(\\d+[\\.\\d]+)",name:"Borealis Navigator",version:"$1"},{regex:"YoloBrowser/(?:(\\d+[\\.\\d]+))?",name:"Yolo Browser",version:"$1",engine:{default:"Blink"}},{regex:"PHX/(?:(\\d+[\\.\\d]+))?",name:"Phoenix Browser",version:"$1"},{regex:"PrivacyWall/(?:(\\d+[\\.\\d]+))?",name:"PrivacyWall",version:"$1"},{regex:"Ghostery:?(\\d+[\\.\\d]+)?",name:"Ghostery Privacy Browser",version:"$1"},{regex:"Firefox/.*(?:Turkcell-)?YaaniBrowser(?:/(\\d+[\\.\\d]+))?",name:"Yaani Browser",version:"$1",engine:{default:"Gecko"}},{regex:"(?:Turkcell-)?YaaniBrowser(?:/(\\d+[\\.\\d]+))?",name:"Yaani Browser",version:"$1",engine:{default:"Blink"}},{regex:"SEB/(?:(\\d+[\\.\\d]+))?",name:"Safe Exam Browser",version:"$1"},{regex:"Colibri/(?:(\\d+[\\.\\d]+))?",name:"Colibri",version:"$1"},{regex:"Xvast/(?:(\\d+[\\.\\d]+))?",name:"Xvast",version:"$1"},{regex:"TungstenBrowser/(?:(\\d+[\\.\\d]+))?",name:"Tungsten",version:"$1"},{regex:"Lulumi-browser/(?:(\\d+[\\.\\d]+))?",name:"Lulumi",version:"$1"},{regex:"ybrowser/(?:(\\d+[\\.\\d]+))?",name:"Yahoo! Japan Browser",version:"$1"},{regex:"iLunascapeLite/(?:(\\d+[\\.\\d]+))?",name:"Lunascape Lite",version:"$1"},{regex:"Polypane/(?:(\\d+[\\.\\d]+))?",name:"Polypane",version:"$1"},{regex:"OhHaiBrowser/(?:(\\d+[\\.\\d]+))?",name:"OhHai Browser",version:"$1"},{regex:"Sizzy/(?:(\\d+[\\.\\d]+))?",name:"Sizzy",version:"$1"},{regex:"GlassBrowser/(?:(\\d+[\\.\\d]+))?",name:"Glass Browser",version:"$1"},{regex:"ToGate/(?:(\\d+[\\.\\d]+))?",name:"ToGate",version:"$1"},{regex:"AirWatch Browser v(?:(\\d+[\\.\\d]+))?",name:"VMware AirWatch",version:"$1"},{regex:"ADG/(?:(\\d+[\\.\\d]+))?",name:"AOL Desktop",version:"$1"},{regex:"Elements Browser/(?:(\\d+[\\.\\d]+))?",name:"Elements Browser",version:"$1"},{regex:"Light/(\\d+[\\.\\d]+)",name:"Light",version:"$1"},{regex:"Valve Steam GameOverlay/(?:(\\d+[\\.\\d]+))?",name:"Steam In-Game Overlay",version:"$1"},{regex:"115Browser/(?:(\\d+[\\.\\d]+))?",name:"115 Browser",version:"$1"},{regex:"Atom/(?:(\\d+[\\.\\d]+))?",name:"Atom",version:"$1"},{regex:"Mobile VR.+Firefox",name:"Firefox Reality",version:""},{regex:"AVG(?:/(\\d+[\\.\\d]+))?",name:"AVG Secure Browser",version:"$1"},{regex:"Start/(?:(\\d+[\\.\\d]+))?",name:"START Internet Browser",version:"$1"},{regex:"Lovense(?:/(\\d+[\\.\\d]+))?",name:"Lovense Browser",version:"$1"},{regex:"com.airfind.deltabrowser(?:/(\\d+[\\.\\d]+))?",name:"Delta Browser",version:"$1"},{regex:"(?:Ordissimo|webissimo3)(?:/(\\d+[\\.\\d]+))?",name:"Ordissimo",version:"$1"},{regex:"CCleaner(?:/(\\d+[\\.\\d]+))?",name:"CCleaner",version:"$1"},{regex:"AlohaLite(?:/(\\d+[\\.\\d]+))?",name:"Aloha Browser Lite",version:"$1",engine:{default:"Blink"}},{regex:"TaoBrowser(?:/(\\d+[\\.\\d]+))?",name:"Tao Browser",version:"$1"},{regex:"Falkon(?:/(\\d+[\\.\\d]+))?",name:"Falkon",version:"$1"},{regex:"mCent(?:/(\\d+[\\.\\d]+))?",name:"mCent",version:"$1"},{regex:"SalamWeb(?:/(\\d+[\\.\\d]+))?",name:"SalamWeb",version:"$1"},{regex:"BlackHawk(?:/(\\d+[\\.\\d]+))?",name:"BlackHawk",version:"$1"},{regex:"Minimo(?:/(\\d+[\\.\\d]+))?",name:"Minimo",version:"$1"},{regex:"WIB(?:/(\\d+[\\.\\d]+))?",name:"Wear Internet Browser",version:"$1"},{regex:"Origyn Web Browser",name:"Origyn Web Browser",version:""},{regex:"Kinza(?:/(\\d+[\\.\\d]+))?",name:"Kinza",version:"$1"},{regex:"Beamrise(?:/(\\d+[\\.\\d]+))?",name:"Beamrise",version:"$1"},{regex:"Faux(?:/(\\d+[\\.\\d]+))?",name:"Faux Browser",version:"$1"},{regex:"splash Version(?:/(\\d+[\\.\\d]+))?",name:"Splash",version:"$1"},{regex:"MZBrowser(?:/(\\d+[\\.\\d]+))?",name:"Meizu Browser",version:"$1"},{regex:"COSBrowser(?:/(\\d+[\\.\\d]+))?",name:"COS Browser",version:"$1"},{regex:"Crusta(?:/(\\d+[\\.\\d]+))?",name:"Crusta",version:"$1"},{regex:"Hawk/TurboBrowser(?:/v?(\\d+[\\.\\d]+))?",name:"Hawk Turbo Browser",version:"$1",engine:{default:"Blink"}},{regex:"FreeU(?:/(\\d+[\\.\\d]+))?",name:"FreeU",version:"$1",engine:{default:"Blink"}},{regex:"NoxBrowser(?:/(\\d+[\\.\\d]+))?",name:"Nox Browser",version:"$1",engine:{default:"Blink"}},{regex:"Basilisk(?:/(\\d+[\\.\\d]+))?",name:"Basilisk",version:"$1",engine:{default:"Goanna"}},{regex:"SputnikBrowser(?:/(\\d+[\\.\\d]+))?",name:"Sputnik Browser",version:"$1",engine:{default:"Blink"}},{regex:"TNSBrowser(?:/(\\d+[\\.\\d]+))?",name:"K.Browser",version:"$1",engine:{default:"Blink"}},{regex:"OculusBrowser(?:/(\\d+[\\.\\d]+))?",name:"Oculus Browser",version:"$1"},{regex:"Jio(?:Browser|Pages)(?:/(\\d+[\\.\\d]+))?",name:"Jio Browser",version:"$1",engine:{default:"Blink"}},{regex:"Chrome/.+ Hola(?:/(\\d+[\\.\\d]+))?",name:"hola! Browser",version:"$1",engine:{default:"Blink"}},{regex:"Slimjet/(?:(\\d+[\\.\\d]+))",name:"Slimjet",version:"$1",engine:{default:"Blink"}},{regex:"7Star/(?:(\\d+[\\.\\d]+))",name:"7Star",version:"$1",engine:{default:"Blink"}},{regex:"MxNitro/(?:(\\d+[\\.\\d]+))",name:"MxNitro",version:"$1",engine:{default:"Blink"}},{regex:"HuaweiBrowser(?:/(\\d+[\\.\\d]+))?",name:"Huawei Browser",version:"$1"},{regex:"VivoBrowser(?:/(\\d+[\\.\\d]+))?",name:"vivo Browser",version:"$1"},{regex:"RealmeBrowser(?:/(\\d+[\\.\\d]+))?",name:"Realme Browser",version:"$1"},{regex:"Beaker ?Browser(?:[/ ](\\d+[\\.\\d]+))?",name:"Beaker Browser",version:"$1",engine:{default:"Blink"}},{regex:"QwantiOS/(\\d+[\\.\\d]+)",name:"Qwant Mobile",version:"$1",engine:{default:"WebKit"}},{regex:"QwantMobile(?:/(\\d+[\\.\\d]+))?",name:"Qwant Mobile",version:"$1",engine:{default:"Gecko"}},{regex:"Qwant/(\\d+[\\.\\d]+)",name:"Qwant Mobile",version:"$1",engine:{default:"Gecko"}},{regex:"TenFourFox(?:/(\\d+[\\.\\d]+))?",name:"TenFourFox",version:"$1",engine:{default:"Gecko"}},{regex:"AOLShield(?:/(\\d+[\\.\\d]+))?",name:"AOL Shield",version:"$1",engine:{default:"Gecko"}},{regex:"Edge[ /](\\d+[\\.\\d]+)",name:"Microsoft Edge",version:"$1",engine:{default:"Edge"}},{regex:"EdgiOS[ /](\\d+[\\.\\d]+)",name:"Microsoft Edge",version:"$1",engine:{default:"WebKit"}},{regex:"EdgA[ /](\\d+[\\.\\d]+)",name:"Microsoft Edge",version:"$1",engine:{default:"Blink"}},{regex:"Edg[ /](\\d+[\\.\\d]+)",name:"Microsoft Edge",version:"$1",engine:{default:"Blink"}},{regex:"QIHU 360[ES]E",name:"360 Browser",version:""},{regex:"360 Aphone Browser(?: \\((\\d+[\\.\\d]+)(?:beta)?\\))?",name:"360 Phone Browser",version:"$1",engine:{default:"WebKit"}},{regex:"SailfishBrowser(?:/(\\d+[\\.\\d]+))?",name:"Sailfish Browser",version:"$1",engine:{default:"Gecko"}},{regex:"IceCat(?:/(\\d+[\\.\\d]+))?",name:"IceCat",version:"$1",engine:{default:"Gecko"}},{regex:"Mobicip",name:"Mobicip",version:"",engine:{default:"Gecko"}},{regex:"Camino(?:/(\\d+[\\.\\d]+))?",name:"Camino",version:"$1",engine:{default:"Gecko"}},{regex:"Waterfox(?:/(\\d+[\\.\\d]+))?",name:"Waterfox",version:"$1",engine:{default:"Gecko"}},{regex:"Chrome/.+ AlohaBrowser(?:/(\\d+[\\.\\d]+))?",name:"Aloha Browser",version:"$1",engine:{default:"Blink"}},{regex:"AlohaBrowser(?:/(\\d+[\\.\\d]+))?",name:"Aloha Browser",version:"$1"},{regex:"(?:Avast|ASW|Safer)(?:/(\\d+[\\.\\d]+))?",name:"Avast Secure Browser",version:"$1"},{regex:"Epic(?:/(\\d+[\\.\\d]+))",name:"Epic",version:"$1",engine:{default:"Gecko"}},{regex:"Fennec(?:/(\\d+[\\.\\d]+))?",name:"Fennec",version:"$1",engine:{default:"Gecko"}},{regex:"Firefox.*Tablet browser (\\d+[\\.\\d]+)",name:"MicroB",version:"$1",engine:{default:"Gecko"}},{regex:"Maemo Browser(?: (\\d+[\\.\\d]+))?",name:"MicroB",version:"$1",engine:{default:"Gecko"}},{regex:"Deepnet Explorer (\\d+[\\.\\d]+)?",name:"Deepnet Explorer",version:"$1"},{regex:"Avant ?Browser",name:"Avant Browser",version:"",engine:{default:""}},{regex:"OppoBrowser(?:/(\\d+[\\.\\d]+))?",name:"Oppo Browser",version:"$1"},{regex:"Chrome/(\\d+[\\.\\d]+).*MRCHROME",name:"Amigo",version:"$1",engine:{default:"WebKit",versions:{28:"Blink"}}},{regex:"AtomicBrowser(?:/(\\d+[\\.\\d]+))?",name:"Atomic Web Browser",version:"$1"},{regex:"Bunjalloo(?:/(\\d+[\\.\\d]+))?",name:"Bunjalloo",version:"$1"},{regex:"Brave(?:/(\\d+[\\.\\d]+))?",name:"Brave",version:"$1",engine:{default:"Blink"}},{regex:"Iridium(?:/(\\d+[\\.\\d]+))?",name:"Iridium",version:"$1"},{regex:"Iceweasel(?:/(\\d+[\\.\\d]+))?",name:"Iceweasel",version:"$1",engine:{default:"Gecko"}},{regex:"WebPositive",name:"WebPositive",version:"",engine:{default:"WebKit"}},{regex:".*Goanna.*PaleMoon(?:/(\\d+[\\.\\d]+))?",name:"Pale Moon",version:"$1",engine:{default:"Goanna"}},{regex:"PaleMoon(?:/(\\d+[\\.\\d]+))?",name:"Pale Moon",version:"$1",engine:{default:"Gecko"}},{regex:"CometBird(?:/(\\d+[\\.\\d]+))?",name:"CometBird",version:"$1",engine:{default:"Gecko"}},{regex:"IceDragon(?:/(\\d+[\\.\\d]+))?",name:"IceDragon",version:"$1",engine:{default:"Gecko"}},{regex:"Flock(?:/(\\d+[\\.\\d]+))?",name:"Flock",version:"$1",engine:{default:"Gecko",versions:{3:"WebKit"}}},{regex:"JigBrowserPlus/(?:(\\d+[\\.\\d]+))?",name:"Jig Browser Plus",version:"$1"},{regex:"jig browser(?: web;|9i?)?(?:[/ ](\\d+[\\.\\d]+))?",name:"Jig Browser",version:"$1"},{regex:"Kapiko(?:/(\\d+[\\.\\d]+))?",name:"Kapiko",version:"$1",engine:{default:"Gecko"}},{regex:"Kylo(?:/(\\d+[\\.\\d]+))?",name:"Kylo",version:"$1",engine:{default:"Gecko"}},{regex:"Origin/(?:(\\d+[\\.\\d]+))?",name:"Origin In-Game Overlay",version:"$1"},{regex:"Cunaguaro(?:/(\\d+[\\.\\d]+))?",name:"Cunaguaro",version:"$1"},{regex:"(?:TO-Browser/TOB|DT-Browser/DTB)(\\d+[\\.\\d]+)",name:"t-online.de Browser",version:"$1"},{regex:"Kazehakase(?:/(\\d+[\\.\\d]+))?",name:"Kazehakase",version:"$1",engine:{default:""}},{regex:"ArcticFox(?:/(\\d+[\\.\\d]+))?",name:"Arctic Fox",version:"$1",engine:{default:"Goanna"}},{regex:"Mypal(?:/(\\d+[\\.\\d]+))?",name:"Mypal",version:"$1",engine:{default:"Goanna"}},{regex:"Centaury(?:/(\\d+[\\.\\d]+))?",name:"Centaury",version:"$1",engine:{default:"Goanna"}},{regex:"(?:Focus|Klar)(?:/(\\d+[\\.\\d]+))?",name:"Firefox Focus",version:"$1"},{regex:"Cyberfox(?:/(\\d+[\\.\\d]+))?",name:"Cyberfox",version:"$1",engine:{default:"Gecko"}},{regex:"Firefox/(\\d+[\\.\\d]+).*\\(Swiftfox\\)",name:"Swiftfox",version:"$1",engine:{default:"Gecko"}},{regex:"(?:Mobile|Tablet).*Servo.*Firefox(?:/(\\d+[\\.\\d]+))?",name:"Firefox Mobile",version:"$1",engine:{default:"Servo"}},{regex:"(?:Mobile|Tablet).*Firefox(?:/(\\d+[\\.\\d]+))?",name:"Firefox Mobile",version:"$1",engine:{default:"Gecko"}},{regex:"FxiOS/(\\d+[\\.\\d]+)",name:"Firefox Mobile iOS",version:"$1",engine:{default:"WebKit"}},{regex:".*Servo.*Firefox(?:/(\\d+[\\.\\d]+))?",name:"Firefox",version:"$1",engine:{default:"Servo"}},{regex:"(?!.*Opera[ /])Firefox(?:/(\\d+[\\.\\d]+))?",name:"Firefox",version:"$1",engine:{default:"Gecko"}},{regex:"(?:BonEcho|GranParadiso|Lorentz|Minefield|Namoroka|Shiretoko)/(\\d+[\\.\\d]+)",name:"Firefox",version:"$1",engine:{default:"Gecko"}},{regex:"ANTFresco(?:[/ ](\\d+[\\.\\d]+))?",name:"ANT Fresco",version:"$1"},{regex:"ANTGalio(?:/(\\d+[\\.\\d]+))?",name:"ANTGalio",version:"$1"},{regex:"(?:Espial|Escape)(?:[/ ](\\d+[\\.\\d]+))?",name:"Espial TV Browser",version:"$1"},{regex:"RockMelt(?:/(\\d+[\\.\\d]+))?",name:"RockMelt",version:"$1",engine:{default:"WebKit"}},{regex:"Fireweb Navigator(?:/(\\d+[\\.\\d]+))?",name:"Fireweb Navigator",version:"$1"},{regex:"Fireweb(?:/(\\d+[\\.\\d]+))?",name:"Fireweb",version:"$1"},{regex:"(?:Navigator|Netscape6?)(?:/(\\d+[\\.\\d]+))?",name:"Netscape",version:"$1",engine:{default:""}},{regex:"(?:Polarity)(?:[/ ](\\d+[\\.\\d]+))?",name:"Polarity",version:"$1"},{regex:"(?:QupZilla)(?:[/ ](\\d+[\\.\\d]+))?",name:"QupZilla",version:"$1"},{regex:"(?:Dooble)(?:[/ ](\\d+[\\.\\d]+))?",name:"Dooble",version:"$1"},{regex:"Whale/(\\d+[\\.\\d]+)",name:"Whale Browser",version:"$1",engine:{default:"Blink"}},{regex:"Obigo[ ]?(?:InternetBrowser|Browser)?(?:[ /]([a-z0-9]*))?",name:"Obigo",version:"$1"},{regex:"Obigo|Teleca",name:"Obigo",version:""},{regex:"UCBrowserHD/(\\d[\\d\\.]+)",name:"UC Browser HD",version:"$1"},{regex:"UCMini(?:[ /]?(\\d+[\\.\\d]+))?",name:"UC Browser Mini",version:"$1"},{regex:"UC[ ]?Browser.* \\(UCMini\\)",name:"UC Browser Mini",version:""},{regex:"UCTurbo(?:[ /]?(\\d+[\\.\\d]+))?",name:"UC Browser Turbo",version:"$1"},{regex:"UC[ ]?Browser.* \\(UCTurbo\\)",name:"UC Browser Turbo",version:""},{regex:"OPRGX(?:/(\\d+[\\.\\d]+))?",name:"Opera GX",version:"$1",engine:{default:"Blink"}},{regex:"(?:Opera Tablet.*Version|Opera/.+Opera Mobi.+Version|Mobile.+OPR)/(\\d+[\\.\\d]+)",name:"Opera Mobile",version:"$1",engine:{default:"Presto",versions:{15:"Blink"}}},{regex:"MMS/(\\d+[\\.\\d]+)",name:"Opera Neon",version:"$1",engine:{default:"Blink"}},{regex:"OMI/(\\d+[\\.\\d]+)",name:"Opera Devices",version:"$1",engine:{default:"Blink"}},{regex:"Opera%20Touch/(\\d+[\\.\\d]+)? CFNetwork/.+Darwin/.+(?!.*x86_64)",name:"Opera Touch",version:"$1",engine:{default:"WebKit"}},{regex:"OPT/(\\d+[\\.\\d]+)",name:"Opera Touch",version:"$1",engine:{default:"Blink"}},{regex:"Opera/(\\d+[\\.\\d]+).+Opera Mobi",name:"Opera Mobile",version:"$1",engine:{default:"Presto",versions:{15:"Blink"}}},{regex:"Opera ?Mini/(?:att/)?(\\d+[\\.\\d]+)",name:"Opera Mini",version:"$1",engine:{default:"Presto"}},{regex:"Opera ?Mini.+Version/(\\d+[\\.\\d]+)",name:"Opera Mini",version:"$1",engine:{default:"Presto"}},{regex:"OPiOS/(\\d+[\\.\\d]+)",name:"Opera Mini iOS",version:"$1",engine:{default:"WebKit"}},{regex:"Opera%20Mini/(\\d+[\\.\\d]+) CFNetwork",name:"Opera Mini iOS",version:"$1",engine:{default:"WebKit"}},{regex:"Opera.+Edition Next.+Version/(\\d+[\\.\\d]+)",name:"Opera Next",version:"$1",engine:{default:"Presto",versions:{15:"Blink"}}},{regex:"(?:Opera|OPR)[/ ](?:9.80.*Version/)?(\\d+[\\.\\d]+).+Edition Next",name:"Opera Next",version:"$1",engine:{default:"Presto",versions:{15:"Blink"}}},{regex:"(?:Opera[/ ]?|OPR[/ ])(?:9.80.*Version/)?(\\d+[\\.\\d]+)",name:"Opera",version:"$1",engine:{default:"",versions:{7:"Presto",15:"Blink","3.5":"Elektra"}}},{regex:"rekonq(?:/(\\d+[\\.\\d]+))?",name:"Rekonq",version:"$1",engine:{default:"WebKit"}},{regex:"CoolNovo(?:/(\\d+[\\.\\d]+))?",name:"CoolNovo",version:"$1",engine:{default:""}},{regex:"(?:Comodo[ _])?Dragon(?!fruit)(?:/(\\d+[\\.\\d]+))?",name:"Comodo Dragon",version:"$1",engine:{default:"WebKit",versions:{28:"Blink"}}},{regex:"ChromePlus(?:/(\\d+[\\.\\d]+))?",name:"ChromePlus",version:"$1",engine:{default:""}},{regex:"Conkeror(?:/(\\d+[\\.\\d]+))?",name:"Conkeror",version:"$1",engine:{default:"Gecko"}},{regex:"Konqueror(?:/(\\d+[\\.\\d]+))?",name:"Konqueror",version:"$1",engine:{default:"KHTML",versions:{4:""}}},{regex:"(?:baidubrowser|bdbrowser(?:(?:hd)?_i18n)?|FlyFlow|BaiduHD)(?:[/ ](\\d+[\\.\\d]*))?",name:"Baidu Browser",version:"$1"},{regex:"(?:(?:BD)?Spark(?:Safe)?|BIDUBrowser)[/ ](\\d+[\\.\\d]*)",name:"Baidu Spark",version:"$1"},{regex:"YaBrowser(?:/(\\d+[\\.\\d]*)) \\(lite\\)?",name:"Yandex Browser Lite",version:"$1",engine:{default:"Blink"}},{regex:"YaBrowser(?:/(\\d+[\\.\\d]*))(?: \\((alpha|beta)\\))?",name:"Yandex Browser",version:"$1 $2",engine:{default:"Blink"}},{regex:"Ya(?:ndex)?SearchBrowser(?:/(\\d+[\\.\\d]*))",name:"Yandex Browser",version:"$1",engine:{default:"Blink"}},{regex:"Vivaldi(?:/(\\d+[\\.\\d]+))?",name:"Vivaldi",version:"$1",engine:{default:"Blink"}},{regex:"TweakStyle(?:/(\\d+[\\.\\d]+))?",name:"TweakStyle",version:"$1",engine:{default:"Blink"}},{regex:"Chrome.+Midori Browser/(\\d+[\\.\\d]+)",name:"Midori",version:"$1",engine:{default:"Blink"}},{regex:"Midori(?:/(\\d+[\\.\\d]+))?",name:"Midori",version:"$1",engine:{default:"WebKit"}},{regex:"Mercury(?:/(\\d+[\\.\\d]+))?",name:"Mercury",version:"$1"},{regex:"Chrome.+Maxthon(?:.+\\(portable\\))?/(\\d+[\\.\\d]+)",name:"Maxthon",version:"$1",engine:{default:"WebKit",versions:{"5.2":"Blink"}}},{regex:"(?:Maxthon(?:%20Browser)?|MxBrowser(?:-inhouse|-iPhone)?)[ /](\\d+[\\.\\d]+)",name:"Maxthon",version:"$1",engine:{default:"",versions:{3:"WebKit"}}},{regex:"(?:Maxthon|MyIE2)",name:"Maxthon",version:"",engine:{default:""}},{regex:"Puffin(?:/(\\d+[\\.\\d]+))?",name:"Puffin",version:"$1"},{regex:"MobileIron(?:/(\\d+[\\.\\d]+))?",name:"Iron Mobile",version:"$1",engine:{default:"Blink"}},{regex:"Chrome(?:/(\\d+[\\.\\d]+))?.*Iron",name:"Iron",version:"$1",engine:{default:"WebKit"}},{regex:"Iron(?:/(\\d+[\\.\\d]+))?",name:"Iron",version:"$1",engine:{default:"WebKit",versions:{28:"Blink"}}},{regex:"Epiphany(?:/(\\d+[\\.\\d]+))?",name:"GNOME Web",version:"$1",engine:{default:"Gecko",versions:{"2.9.16":"","2.28":"WebKit"}}},{regex:"LieBaoFast(?:[ /](\\d+[\\.\\d]+))?",name:"LieBaoFast",version:"$1"},{regex:"LBBrowser(?:[ /](\\d+[\\.\\d]+))?",name:"Cheetah Browser",version:"$1"},{regex:"SE (\\d+[\\.\\d]+)",name:"Sogou Explorer",version:"$1"},{regex:"QQBrowserLite/([\\d\\.]+)",name:"QQ Browser Lite",version:"$1"},{regex:"M?QQBrowser/Mini([\\.\\d]+)?",name:"QQ Browser Mini",version:"$1",engine:{default:""}},{regex:"M?QQBrowser(?:/([\\.\\d]+))?",name:"QQ Browser",version:"$1",engine:{default:""}},{regex:"(?:MIUIBrowser|MiuiBrowser)(?:/(\\d+[\\.\\d]+))?",name:"MIUI Browser",version:"$1",engine:{default:""}},{regex:"(?:coc_coc_browser|coccocbrowser|CocCoc)(?:/(\\d+[\\.\\d]+))?",name:"Coc Coc",version:"$1",engine:{default:"WebKit",versions:{28:"Blink"}}},{regex:"DuckDuckGo/(\\d+[\\.\\d]*)",name:"DuckDuckGo Privacy Browser",version:"$1",engine:{default:"Blink"}},{regex:"Samsung ?Browser(?:[/ ](\\d+[\\.\\d]+))?",name:"Samsung Browser",version:"$1"},{regex:"(?:SFB(?:rowser)?)/(\\d+[\\.\\d]+)",name:"Super Fast Browser",version:"$1"},{regex:"com.browser.tssomas(?:/(\\d+[\\.\\d]+))?",name:"Super Fast Browser",version:"$1"},{regex:"EUI Browser(?:/(\\d+[\\.\\d]+))?",name:"EUI Browser",version:"$1"},{regex:"UBrowser(?:/(\\d+[\\.\\d]+))?",name:"UBrowser",version:"$1"},{regex:"Streamy(?:/(\\d+[\\.\\d]+))?",name:"Streamy",version:"$1",engine:{default:"WebKit"}},{regex:"isivioo",name:"Isivioo",version:"",engine:{default:"WebKit"}},{regex:"UC[ ]?Browser(?:[ /]?(\\d+[\\.\\d]+))?",name:"UC Browser",version:"$1"},{regex:"UCWEB(?:[ /]?(\\d+[\\.\\d]+))?",name:"UC Browser",version:"$1"},{regex:"UC AppleWebKit",name:"UC Browser",version:""},{regex:"Tenta/(\\d+[\\.\\d]+)",name:"Tenta Browser",version:"$1",engine:{default:"WebKit"}},{regex:"Rocket/(\\d+[\\.\\d]+)",name:"Firefox Rocket",version:"$1",engine:{default:"WebKit"}},{regex:"Web Explorer/(\\d+[\\.\\d]+).*Chrome",name:"Web Explorer",version:"$1",engine:{default:"WebKit"}},{regex:"SznProhlizec/(\\d+[\\.\\d]+)",name:"Seznam Browser",version:"$1",engine:{default:"Blink"}},{regex:"SogouMobileBrowser/(\\d+[\\.\\d]+)",name:"Sogou Mobile Browser",version:"$1",engine:{default:""}},{regex:"Mint Browser/(\\d+[\\.\\d]+)",name:"Mint Browser",version:"$1",engine:{default:""}},{regex:"Ecosia (?:android|ios)@(\\d+[\\.\\d]+)",name:"Ecosia",version:"$1",engine:{default:""}},{regex:"ACHEETAHI",name:"CM Browser",version:"",engine:{default:""}},{regex:"Kiwi Chrome",name:"Kiwi",version:"",engine:{default:""}},{regex:"Mb2345Browser/(\\d+[\\.\\d]+)",name:"2345 Browser",version:"$1",engine:{default:""}},{regex:"QtWebEngine/(\\d+[\\.\\d]+)",name:"QtWebEngine",version:"$1",engine:{default:""}},{regex:"Silk/(\\d+[\\.\\d]+) like Chrome",name:"Mobile Silk",version:"$1",engine:{default:"Blink"}},{regex:"Silk(?:/(\\d+[\\.\\d]+))?",name:"Mobile Silk",version:"$1",engine:{default:"WebKit"}},{regex:"IBrowse(?:[ /](\\d+[\\.\\d]+))?",name:"IBrowse",version:"$1"},{regex:"UP.Browser(?:/(\\d+[\\.\\d]+))?",name:"Openwave Mobile Browser",version:"$1"},{regex:"Openwave(?:/(\\d+[\\.\\d]+))?",name:"Openwave Mobile Browser",version:"$1"},{regex:"OneBrowser(?:[ /](\\d+[\\.\\d]+))?",name:"ONE Browser",version:"$1",engine:{default:"WebKit"}},{regex:"(?:NokiaBrowser|BrowserNG)(?:/(\\d+[\\.\\d]+))?",name:"Nokia Browser",version:"$1"},{regex:"Series60/5\\.0",name:"Nokia Browser",version:"7.0"},{regex:"Series60/(\\d+[\\.\\d]+)",name:"Nokia OSS Browser",version:"$1"},{regex:"S40OviBrowser/(\\d+[\\.\\d]+)",name:"Nokia Ovi Browser",version:"$1"},{regex:"^Nokia|Nokia[EN]?\\d+",name:"Nokia Browser",version:""},{regex:"Sleipnir(?:(?:%20Browser)?[ /](\\d+[\\.\\d]+))?",name:"Sleipnir",version:"$1",engine:{default:""}},{regex:"NTENTBrowser(?:/(\\d+[\\.\\d]+))?",name:"NTENT Browser",version:"$1"},{regex:"TV Bro/(\\d+[\\.\\d]+)",name:"TV Bro",version:"$1"},{regex:"Chrome/.+ Quark(?:/(\\d+[\\.\\d]+))?",name:"Quark",version:"$1",engine:{default:"WebKit"}},{regex:"MonumentBrowser(?:/(\\d+[\\.\\d]+))?",name:"Monument Browser",version:"$1",engine:{default:"WebKit"}},{regex:"BlueBrowser(?:/(\\d+[\\.\\d]+))?",name:"Blue Browser",version:"$1",engine:{default:"WebKit"}},{regex:"JAPAN Browser(?:/(\\d+[\\.\\d]+))?",name:"Japan Browser",version:"$1",engine:{default:"WebKit"}},{regex:"Version/.* Chrome(?:/(\\d+[\\.\\d]+))?",name:"Chrome Webview",version:"$1",engine:{default:"WebKit",versions:{28:"Blink"}}},{regex:"CrMo(?:/(\\d+[\\.\\d]+))?",name:"Chrome Mobile",version:"$1",engine:{default:"WebKit",versions:{28:"Blink"}}},{regex:"CriOS(?:/(\\d+[\\.\\d]+))?",name:"Chrome Mobile iOS",version:"$1",engine:{default:"WebKit"}},{regex:"Chrome(?:/(\\d+[\\.\\d]+))? Mobile",name:"Chrome Mobile",version:"$1",engine:{default:"WebKit",versions:{28:"Blink"}}},{regex:"chromeframe(?:/(\\d+[\\.\\d]+))?",name:"Chrome Frame",version:"$1",engine:{default:"WebKit"}},{regex:"Chromium(?:/(\\d+[\\.\\d]+))?",name:"Chromium",version:"$1",engine:{default:"WebKit",versions:{28:"Blink"}}},{regex:"HeadlessChrome(?:/(\\d+[\\.\\d]+))?",name:"Headless Chrome",version:"$1",engine:{default:"Blink"}},{regex:"Chrome(?!book)(?:/(\\d+[\\.\\d]+))?",name:"Chrome",version:"$1",engine:{default:"WebKit",versions:{28:"Blink"}}},{regex:"(?:Tizen|SLP) Browser(?:/(\\d+[\\.\\d]+))?",name:"Tizen Browser",version:"$1"},{regex:"Blazer(?:/(\\d+[\\.\\d]+))?",name:"Palm Blazer",version:"$1"},{regex:"Pre/(\\d+[\\.\\d]+)",name:"Palm Pre",version:"$1"},{regex:"(?:hpw|web)OS/(\\d+[\\.\\d]+)",name:"wOSBrowser",version:"$1"},{regex:"WebPro(?:[ /](\\d+[\\.\\d]+))?",name:"Palm WebPro",version:"$1"},{regex:"Palmscape(?:[ /](\\d+[\\.\\d]+))?",name:"Palmscape",version:"$1"},{regex:"Jasmine(?:[ /](\\d+[\\.\\d]+))?",name:"Jasmine",version:"$1"},{regex:"Lynx(?:/(\\d+[\\.\\d]+))?",name:"Lynx",version:"$1",engine:{default:"Text-based"}},{regex:"NCSA_Mosaic(?:/(\\d+[\\.\\d]+))?",name:"NCSA Mosaic",version:"$1"},{regex:"ABrowse(?: (\\d+[\\.\\d]+))?",name:"ABrowse",version:"$1"},{regex:"amaya(?:/(\\d+[\\.\\d]+))?",name:"Amaya",version:"$1"},{regex:"AmigaVoyager(?:/(\\d+[\\.\\d]+))?",name:"Amiga Voyager",version:"$1"},{regex:"Amiga-Aweb(?:/(\\d+[\\.\\d]+))?",name:"Amiga Aweb",version:"$1"},{regex:"Arora(?:/(\\d+[\\.\\d]+))?",name:"Arora",version:"$1",engine:{default:"WebKit"}},{regex:"Beonex(?:/(\\d+[\\.\\d]+))?",name:"Beonex",version:"$1",engine:{default:"Gecko"}},{regex:"bline(?:/(\\d+[\\.\\d]+))?",name:"B-Line",version:"$1",engine:{default:"WebKit"}},{regex:"BrowseX \\((\\d+[\\.\\d]+)",name:"BrowseX",version:"$1"},{regex:"Charon(?:[/ ](\\d+[\\.\\d]+))?",name:"Charon",version:"$1"},{regex:"Cheshire(?:/(\\d+[\\.\\d]+))?",name:"Cheshire",version:"$1"},{regex:"dbrowser",name:"dbrowser",version:"",engine:{default:"WebKit"}},{regex:"Dillo(?:/(\\d+[\\.\\d]+))?",name:"Dillo",version:"$1",engine:{default:"Dillo"}},{regex:"Dolfin(?:/(\\d+[\\.\\d]+))?|dolphin",name:"Dolphin",version:"$1",engine:{default:"WebKit"}},{regex:"Elinks(?:/(\\d+[\\.\\d]+))?",name:"Elinks",version:"$1",engine:{default:"Text-based"}},{regex:"Element Browser(?:[ /](\\d+[\\.\\d]+))?",name:"Element Browser",version:"$1"},{regex:"eZBrowser(?:/(\\d+[\\.\\d]+))?",name:"eZ Browser",version:"$1"},{regex:"Firebird(?! Build)(?:/(\\d+[\\.\\d]+))?",name:"Firebird",version:"$1",engine:{default:"Gecko"}},{regex:"Fluid(?:/(\\d+[\\.\\d]+))?",name:"Fluid",version:"$1",engine:{default:"WebKit"}},{regex:"Galeon(?:/(\\d+[\\.\\d]+))?",name:"Galeon",version:"$1",engine:{default:"Gecko"}},{regex:"Google Earth(?:/(\\d+[\\.\\d]+))?",name:"Google Earth",version:"$1",engine:{default:"WebKit"}},{regex:"HotJava(?:/(\\d+[\\.\\d]+))?",name:"HotJava",version:"$1"},{regex:"iCabMobile(?:[ /](\\d+[\\.\\d]+))?",name:"iCab Mobile",version:"$1",engine:{default:"WebKit"}},{regex:"iCab(?:[ /](\\d+[\\.\\d]+))?",name:"iCab",version:"$1",engine:{default:"iCab",versions:{4:"WebKit"}}},{regex:"i?Lunascape(?:[/ ](\\d+[\\.\\d]+))?",name:"Lunascape",version:"$1",engine:{default:""}},{regex:"Crazy Browser (\\d+[\\.\\d]+)",name:"Crazy Browser",version:"$1",engine:{default:"Trident"}},{regex:"IEMobile[ /](\\d+[\\.\\d]+)",name:"IE Mobile",version:"$1",engine:{default:"Trident"}},{regex:"MSIE (\\d+[\\.\\d]+).*XBLWP7",name:"IE Mobile",version:"$1",engine:{default:"Trident"}},{regex:"MSIE.*Trident/4.0",name:"Internet Explorer",version:"8.0",engine:{default:"Trident"}},{regex:"MSIE.*Trident/5.0",name:"Internet Explorer",version:"9.0",engine:{default:"Trident"}},{regex:"MSIE.*Trident/6.0",name:"Internet Explorer",version:"10.0",engine:{default:"Trident"}},{regex:"Trident/[78].0",name:"Internet Explorer",version:"11.0",engine:{default:"Trident"}},{regex:"MSIE (\\d+[\\.\\d]+)",name:"Internet Explorer",version:"$1",engine:{default:"Trident"}},{regex:"IE[ /](\\d+[\\.\\d]+)",name:"Internet Explorer",version:"$1",engine:{default:"Trident"}},{regex:"Kindle/(\\d+[\\.\\d]+)",name:"Kindle Browser",version:"$1"},{regex:"K-meleon(?:/(\\d+[\\.\\d]+))?",name:"K-meleon",version:"$1",engine:{default:"Gecko"}},{regex:"Links(?: \\((\\d+[\\.\\d]+))?",name:"Links",version:"$1",engine:{default:"Text-based"}},{regex:"LG Browser(?:/(\\d+[\\.\\d]+))",name:"LG Browser",version:"$1"},{regex:"LuaKit(?:/(\\d+[\\.\\d]+))?",name:"LuaKit",version:"$1"},{regex:"OmniWeb(?:/[v]?(\\d+[\\.\\d]+))?",name:"OmniWeb",version:"$1",engine:{default:"WebKit"}},{regex:"Phoenix(?:/(\\d+[\\.\\d]+))?",name:"Phoenix",version:"$1"},{regex:"NetFrontLifeBrowser(?:/(\\d+[\\.\\d]+))?",name:"NetFront Life",version:"$1",engine:{default:"NetFront"}},{regex:"NetFront(?:/(\\d+[\\.\\d]+))?",name:"NetFront",version:"$1",engine:{default:"NetFront"}},{regex:"PLAYSTATION|NINTENDO 3|AppleWebKit.+ N[XF]/\\d+\\.\\d+\\.\\d+",name:"NetFront",version:""},{regex:"NetPositive(?:/(\\d+[\\.\\d]+))?",name:"NetPositive",version:"$1"},{regex:"Odyssey Web Browser(?:.*OWB/(\\d+[\\.\\d]+))?",name:"Odyssey Web Browser",version:"$1"},{regex:"OffByOne",name:"Off By One",version:""},{regex:"(?:Oregano|OreganMediaBrowser)(?:[ /](\\d+[\\.\\d]+))?",name:"Oregano",version:"$1"},{regex:"(?:Polaris|Embider)(?:[/ ](\\d+[\\.\\d]+))?",name:"Polaris",version:"$1"},{regex:"SEMC-Browser(?:[/ ](\\d+[\\.\\d]+))?",name:"SEMC-Browser",version:"$1"},{regex:"Shiira(?:[/ ](\\d+[\\.\\d]+))?",name:"Shiira",version:"$1",engine:{default:"WebKit"}},{regex:"Skyfire(?:[/ ](\\d+[\\.\\d]+))?",name:"Skyfire",version:"$1"},{regex:"Snowshoe(?:/(\\d+[\\.\\d]+))?",name:"Snowshoe",version:"$1",engine:{default:"WebKit"}},{regex:"Sunrise(?:Browser)?(?:/(\\d+[\\.\\d]+))?",name:"Sunrise",version:"$1"},{regex:"SuperBird(?:/(\\d+[\\.\\d]+))?",name:"SuperBird",version:"$1"},{regex:"Vision-Browser(?:/(\\d+[\\.\\d]+))",name:"Vision Mobile Browser",version:"$1"},{regex:"WeTab-Browser",name:"WeTab Browser",version:""},{regex:"Xiino(?:/(\\d+[\\.\\d]+))?",name:"Xiino",version:"$1"},{regex:"BlackBerry|PlayBook|BB10",name:"BlackBerry Browser",version:""},{regex:"Android",name:"Android Browser",version:"",engine:{default:"WebKit"}},{regex:"Coast(?:/(\\d+[\\.\\d]+))?",name:"Coast",version:"$1"},{regex:"Surf(?:/(\\d+[\\.\\d]+))?",name:"surf",version:"$1",engine:{default:"WebKit"}},{regex:"(?:(?:iPod|iPad|iPhone).+Version|MobileSafari)/(\\d+[\\.\\d]+)",name:"Mobile Safari",version:"$1",engine:{default:"WebKit"}},{regex:"(?:Version/(\\d+[\\.\\d]+).*)?Mobile.*Safari/",name:"Mobile Safari",version:"$1",engine:{default:"WebKit"}},{regex:"(?:iPod|iPhone|iPad)",name:"Mobile Safari",version:"",engine:{default:"WebKit"}},{regex:"Version/(\\d+[\\.\\d]+).*Safari/|Safari/?\\d+",name:"Safari",version:"$1",engine:{default:"WebKit"}},{regex:"Dorado WAP-Browser[/ ](\\d+[\\.\\d]+)",name:"Dorado",version:"$1"},{regex:"NetSurf(?:/(\\d+[\\.\\d]+))?",name:"NetSurf",version:"$1",engine:{default:"NetSurf"}},{regex:"Uzbl",name:"Uzbl",version:""},{regex:"SimpleBrowser",name:"SimpleBrowser",version:""},{regex:"Zvu(?:/(\\d+[\\.\\d]+))?",name:"Zvu",version:"$1",engine:{default:"Gecko"}},{regex:"GOGGalaxyClient/(\\d+[\\.\\d]+)?",name:"GOG Galaxy",version:"$1"},{regex:"WAP Browser/MAUI|(?:\\w+)?Maui Wap Browser|MAUI[- ]Browser",name:"MAUI WAP Browser",version:""},{regex:"SP%20Browser/(\\d+[\\.\\d]+)",name:"SP Browser",version:"$1",engine:{default:"WebKit"}}],yte=[{regex:"NetFront",name:"NetFront"},{regex:"Edge",name:"Edge"},{regex:"Trident",name:"Trident"},{regex:"(?{const o={type:"",name:"",version:"",engine:"",engineVersion:""};for(const i of fse.default){const n=pse.userAgentParser(i.regex,e);if(!n)continue;const a=Z3.variableReplacement(i.version,n),s=dg.formatVersion(a,this.options.versionTruncation),l=s&&parseFloat(dg.formatVersion(a,1))||"";if(i.engine&&(o.engine=i.engine.default,i.engine&&i.engine.versions&&l)){const d=Object.entries(i.engine.versions).sort((c,u)=>parseFloat(c[0])>parseFloat(u[0])?1:-1);for(const[c,u]of d)parseFloat(c)<=l&&(o.engine=u||"")}o.type="browser",o.name=Z3.variableReplacement(i.name,n),o.version=s;break}if(!o.engine)for(const i of xse.default){let n=null;try{n=RegExp(i.regex,"i").exec(e)}catch{}if(n){o.engine=i.name;break}}return o.engineVersion=dg.formatVersion(dg.parseBrowserEngineVersion(e,o.engine),this.options.versionTruncation),o},this.options=Object.assign(Object.assign({},this.options),t)}}sg.default=cg,cg.getBrowserShortName=r=>{for(const[t,e]of Object.entries(vse.default))if(e===r)return t;return""},cg.isMobileOnlyBrowser=r=>yse.default.includes(cg.getBrowserShortName(r));var vv={};const _se=[{regex:"AndroidDownloadManager(?:[ /]([\\d\\.]+))?",name:"AndroidDownloadManager",version:"$1"},{regex:"(?:Apple)?News(?:[ /][\\d\\.]+)? Version(?:[ /]([\\d\\.]+))?",name:"Apple News",version:"$1"},{regex:"bPod",name:"bPod",version:""},{regex:"MessengerLiteForiOS.(?:FBAV)(?:[ /]([\\d\\.]+))?",name:"Facebook Messenger Lite",version:"$1"},{regex:"(?:MessengerForiOS|MESSENGER).(?:FBAV)(?:[ /]([\\d\\.]+))?",name:"Facebook Messenger",version:"$1"},{regex:"(?:FBAV|com.facebook.katana)(?:[ /]([\\d\\.]+))?",name:"Facebook",version:"$1"},{regex:"(?:FBAN|FBSV|FBID|FBBV)/",name:"Facebook",version:""},{regex:"FeedR(?:/([\\d\\.]+))?",name:"FeedR",version:"$1"},{regex:"com.google.android.apps.searchlite",name:"Google Go",version:""},{regex:"com.google.android.apps.magazines",name:"Google Play Newsstand",version:""},{regex:"com.google.GooglePlus",name:"Google Plus",version:""},{regex:"MicroMessenger/([^; ]+)",name:"WeChat",version:"$1"},{regex:"WeChatShareExtensionNew/([\\d\\.]+)",name:"WeChat Share Extension",version:"$1"},{regex:"DingTalk/([0-9\\.]+)",name:"DingTalk",version:"$1"},{regex:".*__weibo__([0-9\\.]+)__",name:"Sina Weibo",version:"$1"},{regex:"Pinterest(?: for (?:Android|iOS))?(?:/([\\d\\.]+))?",name:"Pinterest",version:"$1"},{regex:"Podcatcher Deluxe",name:"Podcatcher Deluxe",version:""},{regex:"com.google.android.youtube(?:/([\\d\\.]+))?",name:"YouTube",version:"$1"},{regex:"([^/]+)/(\\d+(?:\\.\\d+)+) \\((?:iPhone|iPad); iOS [0-9\\.]+; Scale/[0-9\\.]+\\)",name:"$1",version:"$2"},{regex:"WhatsApp(?:[ /]([\\d\\.]+))?",name:"WhatsApp",version:"$1"},{regex:"Line(?:[ /]([\\d\\.]+))",name:"Line",version:"$1"},{regex:"Instacast(?:HD)?/(\\d\\.[\\d\\.abc]+) CFNetwork/([\\d\\.]+) Darwin/([\\d\\.]+)",name:"Instacast",version:"$1"},{regex:"Podcasts/([\\d\\.]+)",name:"Podcasts",version:"$1"},{regex:"Pocket Casts(?:, (?:Android|iOS) v([\\d\\.]+))?",name:"Pocket Casts",version:"$1"},{regex:"Podcat/([\\d\\.]+)",name:"Podcat",version:"$1"},{regex:"BeyondPod",name:"BeyondPod",version:null},{regex:"AntennaPod/?([\\d\\.]+)?",name:"AntennaPod",version:"$1"},{regex:"Overcast/([\\d\\.]+)",name:"Overcast",version:"$1"},{regex:"(?:CastBox|fm.castbox.audiobook.radio.podcast)/?([\\d\\.]+)?",name:"CastBox",version:"$1"},{regex:"Player FM",name:"Player FM",version:""},{regex:"Podkicker(?: Pro)?/([\\d\\.]+)",name:"Podkicker",version:"$1"},{regex:"PodcastRepublic/([\\d\\.]+)",name:"Podcast Republic",version:"$1"},{regex:"Castro/(\\d+)",name:"Castro",version:"$1"},{regex:"Castro 2 ([\\d\\.]+)/[\\d]+ Like iTunes",name:"Castro 2",version:"$1"},{regex:"Castro 2",name:"Castro 2",version:""},{regex:"DoggCatcher",name:"DoggCatcher",version:null},{regex:"PodcastAddict/v([\\d]+)",name:"Podcast & Radio Addict",version:"$1"},{regex:"Podcat(?:%202)?/([\\d]+) CFNetwork",name:"Podcat",version:"$1"},{regex:"iCatcher[^\\d]+([\\d\\.]+)",name:"iCatcher",version:"$1"},{regex:"YelpApp/([\\d\\.]+)",name:"Yelp Mobile",version:"$1"},{regex:"jp.co.yahoo.android.yjtop/([\\d\\.]+)",name:"Yahoo! Japan",version:"$1"},{regex:"RSSRadio/([\\d]+)?",name:"RSSRadio",version:"$1"},{regex:"SogouSearch Android[\\d\\.]+ version([\\d\\.]+)?",name:"SogouSearch App",version:"$1"},{regex:"NewsArticle/([\\d\\.]+)?",name:"NewsArticle App",version:"$1"},{regex:"tieba/([\\d\\.]+)?",name:"tieba",version:"$1"},{regex:"com\\.douban\\.group/([\\d\\.]+)?",name:"douban App",version:"$1"},{regex:"BingWeb/([\\d\\.]+)?",name:"BingWebApp",version:"$1"},{regex:"(?:com.google.GoogleMobile|GSA)/([\\d\\.]+)?",name:"Google Search App",version:"$1"},{regex:"Flipboard/([\\d\\.]+)?",name:"Flipboard App",version:"$1"},{regex:"Instagram[ /]([\\d\\.]+)?",name:"Instagram App",version:"$1"},{regex:"baiduboxapp/([\\d\\.]+)?",name:"Baidu Box App",version:"$1"},{regex:"Crosswalk(?!.*(?:Streamy|QwantMobile))/([\\d\\.]+)?",name:"CrosswalkApp",version:"$1"},{regex:"Twitter for iPhone[/]?([\\d\\.]+)?",name:"Twitter",version:"$1"},{regex:"Twitter/([\\d\\.]+)",name:"Twitter",version:"$1"},{regex:"TwitterAndroid[/]?([\\d\\.]+)?",name:"Twitter",version:"$1"},{regex:"TopBuzz/([\\d\\.]+)",name:"TopBuzz",version:"$1"},{regex:"Snapchat/([\\d\\.]+)",name:"Snapchat",version:"$1"},{regex:"UnityPlayer/([\\d\\.]+)",name:"UnityPlayer",version:"$1"},{regex:"UCURSOS/v([\\d\\.]+)",name:"U-Cursos",version:"$1"},{regex:"HeyTapBrowser/([\\d\\.]+)",name:"HeyTapBrowser",version:"$1"},{regex:"RobloxApp/([\\d\\.]+)",name:"Roblox",version:"$1"},{regex:"Viber/([\\d\\.]+)",name:"Viber",version:"$1"},{regex:"Siri/1",name:"Siri",version:"1.0"},{regex:"LinkedIn/([\\d\\.]+)",name:"LinkedIn",version:"$1"},{regex:"Instapaper/([\\d\\.]+)",name:"Instapaper",version:"$1"},{regex:"Keeper/([\\d\\.]+)",name:"Keeper Password Manager",version:"$1"},{regex:"Skyeng Teachers/([\\d\\.]+)",name:"Skyeng Teachers",version:"$1"},{regex:"Kik/([\\d\\.]+) \\(Android",name:"Kik",version:"$1"},{regex:"Procast/?([\\d\\.]+)?",name:"Procast",version:"$1"},{regex:"DeviantArt/([\\d\\.]+)",name:"DeviantArt",version:""},{regex:"Discord/([\\d\\.]+)",name:"Discord",version:""},{regex:"Covenant%20Eyes/([\\d\\.]+)",name:"Covenant Eyes",version:"$1"},{regex:"HP%20Smart/([\\d\\.]+)",name:"HP Smart",version:""},{regex:"Bitsboard/([\\d\\.]+)",name:"Bitsboard",version:"$1"},{regex:"Betbull/([\\d\\.]+)",name:"BetBull",version:""},{regex:"U-Cursos/([\\d\\.]+)",name:"U-Cursos",version:""},{regex:"1PasswordThumbs/([\\d\\.]+)",name:"1Password",version:"$1"},{regex:"(?:Microsoft Office )?(Access|Excel|OneDrive for Business|OneNote|PowerPoint|Project|Publisher|Visio|Word)[ /]([\\d\\.]+)",name:"Microsoft Office $1",version:"$2"},{regex:"OneDriveiOSApp/([\\d\\.]+)",name:"Microsoft OneDrive",version:"$1"},{regex:"Microsoft Office Mobile/([\\d\\.]+)",name:"Microsoft Office Mobile",version:"$1"},{regex:"OC/([\\d\\.]+) \\(Skype for Business\\)",name:"Skype for Business",version:"$1"},{regex:"TikTok[/ ](\\d+\\.(?:[\\.\\d]+))?",name:"TikTok",version:"$1"},{regex:"NAVER/(\\d+[\\.\\d]+) CFNetwork",name:"Naver",version:"$1"},{regex:"Copied/(\\d+[\\.\\d]+) CFNetwork",name:"Copied",version:""},{regex:"Pic%20Collage/(\\d+[\\.\\d]+) CFNetwork",name:"Pic Collage",version:"$1"},{regex:"Papers/(\\d+[\\.\\d]+) CFNetwork",name:"Papers",version:"$1"},{regex:"RoboForm/(\\d+[\\.\\d]+) CFNetwork",name:"RoboForm",version:""},{regex:"Slack/(\\d+[\\.\\d]+) CFNetwork",name:"Slack",version:""},{regex:"KAKAOTALK (\\d+\\.(?:[\\.\\d]+))?",name:"KakaoTalk",version:"$1"},{regex:"ShopeeVN/([\\d\\.]+)",name:"Shopee",version:"$1"},{regex:"SPORT1/([\\d\\.]+)",name:"SPORT1",version:""},{regex:"Clovia/([\\d\\.]+)",name:"Clovia",version:"$1"},{regex:"ShowMe/([\\d\\.]+)",name:"ShowMe",version:"$1"},{regex:"Wattpad/([\\d\\.]+)",name:"Wattpad",version:"$1"},{regex:"WSJ/([\\d\\.]+)",name:"The Wall Street Journal",version:""},{regex:"WH%20Questions/([\\d\\.]+)",name:"WH Questions",version:"$1"},{regex:"whisper/([\\d\\.]+)",name:"Whisper",version:""},{regex:"Opal/([\\d\\.]+)",name:"Opal Travel",version:"$1"},{regex:"Zalo/([\\d\\.]+)",name:"Zalo",version:"$1"},{regex:"Yandex/([\\d\\.]+)",name:"Yandex",version:""},{regex:"Zoho%20Chat/([\\d\\.]+)",name:"Zoho Chat",version:"$1"},{regex:"Thunder/(\\d+[\\.\\d]+)",name:"Thunder",version:"$1"},{regex:"CGNBrowser/(\\d+[\\.\\d]+)",name:"CGN",version:"$1"},{regex:"Podbean/.+App (\\d+[\\.\\d]+)",name:"Podbean",version:"$1"},{regex:"AlexaMediaPlayer/(\\d+[\\.\\d]+)",name:"Alexa Media Player",version:"$1"},{regex:"TuneIn Radio Pro(?:[^/]+)?/(\\d+[\\.\\d]+)",name:"TuneIn Radio Pro",version:"$1"},{regex:"TuneIn Radio(?:[^/]+)?/(\\d+[\\.\\d]+)",name:"TuneIn Radio",version:"$1"},{regex:"Podcaster/(\\d+[\\.\\d]+)",name:"Podcaster",version:"$1"},{regex:"Swoot/(\\d+[\\.\\d]+)",name:"Swoot",version:"$1"},{regex:"RadioPublic/android-(\\d+[\\.\\d]+)",name:"RadioPublic",version:"$1"},{regex:"Podimo/(\\d+[\\.\\d]+)",name:"Podimo",version:"$1"},{regex:"com.evolve.podcast/(\\d+[\\.\\d]+)",name:"Evolve Podcast",version:"$1"},{regex:" Rocket.Chat\\+?/(\\d+[\\.\\d]+)",name:"Rocket Chat",version:"$1"},{regex:"^Pandora Audio.+Android",name:"Pandora",version:""},{regex:"^NPROneAndroid",name:"NPR One",version:""},{regex:"^WirtschaftsWoche-iOS-(\\d+[\\.\\d]+)",name:"Wirtschafts Woche",version:"$1"},{regex:"^Outlook-iOS/.+\\((\\d+[\\.\\d]+)\\)$",name:"Microsoft Outlook",version:"$1"},{regex:"^TVirl/(\\d+[\\.\\d]+)",name:"TVirl",version:"$1"},{regex:"2?chMate/(\\d+[\\.\\d]+)",name:"ChMate",version:"$1"},{regex:"2tch/(\\d+[\\.\\d]+)",name:"2tch",version:"$1"},{regex:"Ciisaa/(\\d+[\\.\\d]+)",name:"Ciisaa",version:"$1"},{regex:"BB2C (\\d+[\\.\\d]+)",name:"BB2C",version:"$1"},{regex:"twinkle/(\\d+[\\.\\d]+)",name:"twinkle",version:"$1"},{regex:"JaneStyle_iOS/(\\d+[\\.\\d]+)",name:"JaneStyle",version:"$1"}];var Sse=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(vv,"__esModule",{value:!0});const bse=Sse(_se),Mse=Mo,Y3=Gt,Ase=ft;class Tse{constructor(t){this.options={versionTruncation:1},this.parse=e=>{const o={type:"",name:"",version:""};for(const i of bse.default){const n=Ase.userAgentParser(i.regex,e);if(n){o.type="mobile app",o.name=Y3.variableReplacement(i.name,n),o.version=Mse.formatVersion(Y3.variableReplacement(i.version,n),this.options.versionTruncation);break}}return o},this.options=Object.assign(Object.assign({},this.options),t)}}vv.default=Tse;var yv={};const wse=[{regex:"Akregator(?:/(\\d+[\\.\\d]+))?",name:"Akregator",version:"$1",url:"http://userbase.kde.org/Akregator",type:"Feed Reader"},{regex:"Apple-PubSub(?:/(\\d+[\\.\\d]+))?",name:"Apple PubSub",version:"$1",url:"https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/pubsub.1.html",type:"Feed Reader"},{regex:"BashPodder",name:"BashPodder",version:"",url:"http://lincgeek.org/bashpodder/",type:"Feed Reader"},{regex:"Breaker/v([\\d\\.]+)",name:"Breaker",version:"$1",url:"https://www.breaker.audio/",type:"Feed Reader App"},{regex:"Downcast/([\\d\\.]+)",name:"Downcast",version:"$1",url:"http://downcastapp.com/",type:"Feed Reader App"},{regex:"FeedDemon(?:/(\\d+[\\.\\d]+))?",name:"FeedDemon",version:"$1",url:"http://www.feeddemon.com/",type:"Feed Reader"},{regex:"Feeddler(?:RSS|PRO)(?:[/ ](\\d+[\\.\\d]+))?",name:"Feeddler RSS Reader",version:"$1",url:"http://www.chebinliu.com/projects/iphone/feeddler-rss-reader/",type:"Feed Reader App"},{regex:"QuiteRSS(?:[/ ](\\d+[\\.\\d]+))?",name:"QuiteRSS",version:"$1",url:"https://quiterss.org",type:"Feed Reader App"},{regex:"gPodder/([\\d\\.]+)",name:"gPodder",version:"$1",url:"http://gpodder.org/",type:"Feed Reader App"},{regex:"JetBrains Omea Reader(?:[/ ](\\d+[\\.\\d]+))?",name:"JetBrains Omea Reader",version:"$1",url:"http://www.jetbrains.com/omea/reader/",type:"Feed Reader"},{regex:"Liferea(?:[/ ](\\d+[\\.\\d]+))?",name:"Liferea",version:"$1",url:"http://liferea.sf.net/",type:"Feed Reader"},{regex:"(?:NetNewsWire|Evergreen.+MacOS)(?:[/ ](\\d+[\\.\\d]+))?",name:"NetNewsWire",version:"$1",url:"http://netnewswireapp.com/",type:"Feed Reader"},{regex:"NewsBlur (?:iPhone|iPad) App(?: v(\\d+[\\.\\d]+))?",name:"NewsBlur Mobile App",version:"$1",url:"http://www.newsblur.com",type:"Feed Reader App"},{regex:"NewsBlur(?:/(\\d+[\\.\\d]+))",name:"NewsBlur",version:"$1",url:"http://www.newsblur.com",type:"Feed Reader"},{regex:"newsbeuter(?:[/ ](\\d+[\\.\\d]+))?",name:"Newsbeuter",version:"$1",url:"http://www.newsbeuter.org/",type:"Feed Reader"},{regex:"PritTorrent/([\\d\\.]+)",name:"PritTorrent",version:"$1",url:"http://bitlove.org",type:"Feed Reader"},{regex:"Pulp[/ ](\\d+[\\.\\d]+)",name:"Pulp",version:"$1",url:"http://www.acrylicapps.com/pulp/",type:"Feed Reader App"},{regex:"ReadKit(?:[/ ](\\d+[\\.\\d]+))?",name:"ReadKit",version:"$1",url:"http://readkitapp.com/",type:"Feed Reader App"},{regex:"Reeder[/ ](\\d+[\\.\\d]+)",name:"Reeder",version:"$1",url:"http://reederapp.com/",type:"Feed Reader App"},{regex:"RSSBandit(?:[/ ](\\d+[\\.\\d]+))?",name:"RSS Bandit",version:"$1",url:"http://www.rssbandit.org)",type:"Feed Reader"},{regex:"RSS Junkie(?:[/ ](\\d+[\\.\\d]+))?",name:"RSS Junkie",version:"$1",url:"https://play.google.com/store/apps/details?id=com.bitpowder.rssjunkie",type:"Feed Reader App"},{regex:"RSSOwl(?:[/ ](\\d+[\\.\\d]+))?",name:"RSSOwl",version:"$1",url:"http://www.rssowl.org/",type:"Feed Reader"},{regex:"Stringer",name:"Stringer",version:"",url:"https://github.com/swanson/stringer",type:"Feed Reader"}];var Cse=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(yv,"__esModule",{value:!0});const Pse=Cse(wse),Lse=Mo,Q3=Gt,Ise=ft;class Ese{constructor(t){this.options={versionTruncation:1},this.parse=e=>{const o={type:"",name:"",version:"",url:""};for(const i of Pse.default){const n=Ise.userAgentParser(i.regex,e);if(n){o.type="feed reader",o.name=Q3.variableReplacement(i.name,n),o.version=Lse.formatVersion(Q3.variableReplacement(i.version,n),this.options.versionTruncation),o.url=i.url;break}}return o},this.options=Object.assign(Object.assign({},this.options),t)}}yv.default=Ese;var _v={};const $se=[{regex:"Wget(?:/(\\d+[\\.\\d]+))?",name:"Wget",version:"$1"},{regex:"Guzzle(?:/(\\d+[\\.\\d]+))?",name:"Guzzle (PHP HTTP Client)",version:"$1"},{regex:"(?:lib)?curl(?:/(\\d+[\\.\\d]+))?",name:"curl",version:"$1"},{regex:"python-requests(?:/(\\d+[\\.\\d]+))?",name:"Python Requests",version:"$1"},{regex:"Python-urllib(?:/?(\\d+[\\.\\d]+))?",name:"Python urllib",version:"$1"},{regex:"Java(?:/?(\\d+[\\.\\d]+))?",name:"Java",version:"$1"},{regex:"(?:perlclient|libwww-perl)(?:/?(\\d+[\\.\\d]+))?",name:"Perl",version:"$1"},{regex:"okhttp/([\\d\\.]+)",name:"OkHttp",version:"$1"},{regex:"HTTP_Request2(?:/(\\d+[\\.\\d]+))?",name:"HTTP_Request2",version:"$1"},{regex:"HTTP_Request2(?:/(\\d+[\\.\\d]+))?",name:"HTTP_Request2",version:"$1",url:"http://pear.php.net/package/http_request2"},{regex:"Mechanize(?:/(\\d+[\\.\\d]+))?",name:"Mechanize",version:"$1",url:"http://github.com/sparklemotion/mechanize/"},{regex:"aiohttp(?:/(\\d+[\\.\\d]+))?",name:"aiohttp",version:"$1"},{regex:"Google-HTTP-Java-Client(?:/(\\d+[\\.\\d\\w-]+))?",name:"Google HTTP Java Client",version:"$1"},{regex:"WWW-Mechanize(?:/(\\d+[\\.\\d]+))?",name:"WWW-Mechanize",version:"$1"},{regex:"Faraday(?: v(\\d+[\\.\\d]+))?",name:"Faraday",version:"$1"},{regex:"(?:Go-http-client|Go )/?(?:(\\d+[\\.\\d]+))?(?: package http)?",name:"Go-http-client",version:"$1"},{regex:"urlgrabber(?:/(\\d+[\\.\\d]+))?",name:"urlgrabber (yum)",version:"$1"},{regex:"libdnf(?:/(\\d+[\\.\\d]+))?",name:"libdnf",version:"$1"},{regex:"HTTPie(?:/(\\d+[\\.\\d]+))?",name:"HTTPie",version:"$1"},{regex:"rest-client/(\\d+[\\.\\d]+).*ruby",name:"REST Client for Ruby",version:"$1"},{regex:"RestSharp/(\\d+[\\.\\d]+)",name:"RestSharp",version:"$1",url:"http://restsharp.org/"},{regex:"scalaj-http/(\\d+[\\.\\d]+)",name:"ScalaJ HTTP",version:"$1",url:"https://github.com/scalaj/scalaj-http"},{regex:"REST::Client/(\\d+)",name:"Perl REST::Client",version:"$1",url:"https://metacpan.org/pod/REST::Client"},{regex:"node-fetch/(\\d+[\\.\\d]+)",name:"Node Fetch",version:"$1",url:"https://github.com/node-fetch/node-fetch"},{regex:"ReactorNetty/(\\d+[\\.\\d]+)",name:"ReactorNetty",version:"$1",url:"https://github.com/reactor/reactor-netty"},{regex:"PostmanRuntime(?:/(\\d+[\\.\\d]+))?",name:"Postman Desktop",version:"$1",url:"https://github.com/postmanlabs/postman-runtime"},{regex:"Jakarta Commons-HttpClient/([\\.\\d]+)",name:"Jakarta Commons HttpClient",version:"$1",url:"https://hc.apache.org/httpclient-3.x"},{regex:"WinHttp.WinHttpRequest.+([\\.\\d]+)",name:"WinHttp WinHttpRequest",version:"$1"},{regex:"Embarcadero URI Client/([\\.\\d]+)",name:"Embarcadero URI Client",version:"$1"},{regex:"Mikrotik/([\\.\\d]+)",name:"Mikrotik Fetch",version:"$1"},{regex:"GRequests(?:/(\\d+[\\.\\d]+))?",name:"GRequests",version:"$1"},{regex:"akka-http/([\\.\\d]+)",name:"Akka HTTP",version:"$1"}];var Dse=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(_v,"__esModule",{value:!0});const Ose=Dse($se),Bse=Mo,J3=Gt,Gse=ft;class Nse{constructor(t){this.options={versionTruncation:1},this.parse=e=>{const o={type:"",name:"",version:"",url:""};for(const i of Ose.default){const n=Gse.userAgentParser(i.regex,e);if(n){o.type="library",o.name=J3.variableReplacement(i.name,n),o.version=Bse.formatVersion(J3.variableReplacement(i.version,n),this.options.versionTruncation),o.url=i.url||"";break}}return o},this.options=Object.assign(Object.assign({},this.options),t)}}_v.default=Nse;var Sv={};const kse=[{regex:"Audacious(?:[ /]([\\d\\.]+))?",name:"Audacious",version:"$1"},{regex:"Banshee(?:[ /]([\\d\\.]+))?",name:"Banshee",version:"$1"},{regex:"Boxee(?:[ /]([\\d\\.]+))?",name:"Boxee",version:"$1"},{regex:"Clementine(?:[ /]([\\d\\.]+))?",name:"Clementine",version:"$1"},{regex:"Deezer(?:/([\\d\\.]+))?",name:"Deezer",version:"$1"},{regex:"iTunes(?:-iPhone|-iPad)?(?:/([\\d\\.]+))?",name:"iTunes",version:"$1"},{regex:"FlyCast(?:/([\\d\\.]+))?",name:"FlyCast",version:"$1"},{regex:"foobar2000(?:/([\\d\\.]+))?",name:"Foobar2000",version:"$1"},{regex:"MediaMonkey(?:[ /](\\d+[\\.\\d]+))?",name:"MediaMonkey",version:"$1"},{regex:"Miro(?:/(\\d+[\\.\\d]+))?",name:"Miro",version:"$1"},{regex:"NexPlayer(?:/(\\d+[\\.\\d]+))?",name:"NexPlayer",version:"$1"},{regex:"Nightingale(?:/([\\d\\.]+))?",name:"Nightingale",version:"$1"},{regex:"QuickTime(?:(?:(?:.+qtver=)|(?:(?: E-)?[\\./]))([\\d\\.]+))?",name:"QuickTime",version:"$1"},{regex:"Songbird(?:/([\\d\\.]+))?",name:"Songbird",version:"$1"},{regex:"SubStream(?:/([\\d\\.]+))?",name:"SubStream",version:"$1"},{regex:"Sonos/([\\d\\.]+)?",name:"SONOS",version:"$1"},{regex:"(?:Lib)?VLC(?:/([\\d\\.]+))?",name:"VLC",version:"$1"},{regex:"Winamp(?:MPEG)?(?:/(\\d+[\\.\\d]+))?",name:"Winamp",version:"$1"},{regex:"(?:Windows-Media-Player|NSPlayer)(?:/(\\d+[\\.\\d]+))?",name:"Windows Media Player",version:"$1"},{regex:"XBMC(?:/([\\d\\.]+))?",name:"XBMC",version:"$1"},{regex:"Kodi(?:/([\\d\\.]+))?",name:"Kodi",version:"$1"},{regex:"stagefright(?:/([\\d\\.]+))?",name:"Stagefright",version:"$1"},{regex:"GoogleChirp(?:/(\\d+[\\.\\d]+))?",name:"Google Podcasts",version:"$1"},{regex:"Music Player Daemon (?:(\\d+[\\.\\d]+))?",name:"Music Player Daemon",version:"$1"},{regex:"mpv (?:(\\d+[\\.\\d]+))?",name:"mpv",version:"$1"}];var Rse=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Sv,"__esModule",{value:!0});const Fse=Rse(kse),Vse=Mo,j3=Gt,Hse=ft;class Xse{constructor(t){this.options={versionTruncation:1},this.parse=e=>{const o={type:"",name:"",version:""};for(const i of Fse.default){const n=Hse.userAgentParser(i.regex,e);if(n){o.type="media player",o.name=j3.variableReplacement(i.name,n),o.version=Vse.formatVersion(j3.variableReplacement(i.version,n),this.options.versionTruncation);break}}return o},this.options=Object.assign(Object.assign({},this.options),t)}}Sv.default=Xse;var bv={};const Use=[{regex:"Outlook-Express(?:/(\\d+[\\.\\d]+))?",name:"Outlook Express",version:"$1"},{regex:"Microsoft Outlook(?:[/ ](\\d+[\\.\\d]+))?",name:"Microsoft Outlook",version:"$1"},{regex:"(?:Thunderbird|Icedove|Shredder)(?:/(\\d+[\\.\\d]+))?",name:"Thunderbird",version:"$1"},{regex:"Airmail(?: (\\d+[\\.\\d]+))?",name:"Airmail",version:"$1"},{regex:"Lotus-Notes(?:/(\\d+[\\.\\d]+))?",name:"Lotus Notes",version:"$1"},{regex:"Barca(?:Pro)?(?:[/ ](\\d+[\\.\\d]+))?",name:"Barca",version:"$1"},{regex:"Postbox(?:[/ ](\\d+[\\.\\d]+))?",name:"Postbox",version:"$1"},{regex:"MailBar(?:[/ ](\\d+[\\.\\d]+))?",name:"MailBar",version:"$1"},{regex:"The Bat!(?: Voyager)?(?:[/ ](\\d+[\\.\\d]+))?",name:"The Bat!",version:"$1"},{regex:"DAVdroid(?:/(\\d+[\\.\\d]+))?",name:"DAVdroid",version:"$1"},{regex:"(?:SeaMonkey|Iceape)(?:/(\\d+[\\.\\d]+))?",name:"SeaMonkey",version:"$1"},{regex:"Live5ch/(\\d+[\\.\\d]+)",name:"Live5ch",version:"$1"},{regex:"JaneView/",name:"JaneView",version:""},{regex:"BathyScaphe/",name:"BathyScaphe",version:""}];var Wse=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(bv,"__esModule",{value:!0});const zse=Wse(Use),Kse=Mo,q3=Gt,Zse=ft;class Yse{constructor(t){this.options={versionTruncation:1},this.parse=e=>{const o={type:"",name:"",version:""};for(const i of zse.default){const n=Zse.userAgentParser(i.regex,e);if(n){o.type="personal information manager",o.name=q3.variableReplacement(i.name,n),o.version=Kse.formatVersion(q3.variableReplacement(i.version,n),this.options.versionTruncation);break}}return o},this.options=Object.assign(Object.assign({},this.options),t)}}bv.default=Yse;var ys=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(pv,"__esModule",{value:!0});const Qse=ys(sg),Jse=ys(vv),jse=ys(yv),qse=ys(_v),ele=ys(Sv),tle=ys(bv),rle=[jse.default,Jse.default,ele.default,tle.default,Qse.default,qse.default];let ole=class{constructor(r){this.options={versionTruncation:1},this.parse=t=>{for(const e of rle){const o=new e(this.options).parse(t);if(o.type!=="")return o}return null},this.options=Object.assign(Object.assign({},this.options),r)}};pv.default=ole;var Mv={},Av={};const ile={regex:"Coolpix S800c",device:"camera",model:"Coolpix S800c"},nle={regex:"EK-G[CN][0-9]{3}",device:"camera",models:[{regex:"EK-GN120",model:"Galaxy NX"},{regex:"EK-GC100",model:"Galaxy Camera"},{regex:"EK-GC110",model:"Galaxy Camera WiFi only"},{regex:"EK-GC200",model:"Galaxy Camera 2"},{regex:"EK-GC([0-9]{3})",model:"Galaxy Camera $1"}]},ale={Nikon:ile,Samsung:nle};var sle=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Av,"__esModule",{value:!0});const lle=sle(ale),eE=Gt,tE=ft;class dle{constructor(){this.parse=t=>{const e={type:"",brand:"",model:""};for(const[o,i]of Object.entries(lle.default)){const n=tE.userAgentParser(i.regex,t);if(n){if(e.type="camera",e.brand=o,"model"in i&&i.model)e.model=eE.variableReplacement(i.model,n).trim();else if("models"in i&&i.models)for(const a of i.models){const s=tE.userAgentParser(a.regex,t);if(s){e.model=eE.variableReplacement(a.model,s).trim();break}}break}}return e}}}Av.default=dle;var Tv={};const cle={regex:"(?:BUZZ [12]|BUZZ 2|CLEVER 1|URBAN 1(?: Pro)?)(?:[);/ ]|$)",device:"smartphone",models:[{regex:"BUZZ ([12]) Lite",model:"Buzz $1 Lite"},{regex:"BUZZ ([12]) Plus",model:"Buzz $1 Plus"},{regex:"BUZZ ([12])",model:"Buzz $1"},{regex:"CLEVER 1",model:"Clever 1"},{regex:"URBAN 1 Pro",model:"Urban 1 Pro"},{regex:"URBAN 1",model:"Urban 1"}]},ule={regex:"StarShine|StarTrail|STARADDICT|StarText|StarNaute|StarXtrem|StarTab",device:"smartphone",models:[{regex:"StarXtrem II(?:[);/ ]|$)",model:"StarXtrem 2"},{regex:"StarXtrem ?([3-6])(?:[);/ ]|$)",model:"StarXtrem $1"},{regex:"StarXtrem(?:[);/ ]|$)",model:"StarXtrem"},{regex:"StarTrail III(?:[);/ ]|$)",model:"StarTrail 3"},{regex:"StarTrail II(?:[);/ ]|$)",model:"StarTrail 2"},{regex:"StarTrail[ _]?([1-9])[ _]([34])G(?:[);/ ]|$)",model:"StarTrail $1 $2G"},{regex:"StarTrail[ _]?([1-9])(?:[);/ ]|$)",model:"StarTrail $1"},{regex:"StarTrail(?:[);/ ]|$)",model:"StarTrail"},{regex:"StarShine II(?:[);/ ]|$)",model:"StarShine 2"},{regex:"StarShine(?:[);/ ]|$)",model:"StarShine"},{regex:"STARADDICT 4(?:[);/ ]|$)",model:"Staraddict 4"},{regex:"STARADDICT III(?:[);/ ]|$)",model:"Staraddict 3"},{regex:"STARADDICT II Plus(?:[);/ ]|$)",model:"Staraddict 2 Plus"},{regex:"STARADDICT II(?:[);/ ]|$)",model:"Staraddict 2"},{regex:"STARADDICT(?:[);/ ]|$)",model:"Staraddict"},{regex:"StarText II(?:[);/ ]|$)",model:"StarText 2"},{regex:"StarText(?:[);/ ]|$)",model:"StarText"},{regex:"StarNaute II(?:[);/ ]|$)",model:"StarNaute 2"},{regex:"StarNaute(?:[);/ ]|$)",model:"StarNaute"},{regex:"StarTab",model:"StarTab",device:"tablet"},{regex:"((?:StarShine|StarTrail|STARADDICT|StarText|StarNaute|StarXtrem)[^;/]*) Build",model:"$1"}]},hle={regex:"HTC|Sprint (?:APA|ATP)|ADR(?!910L)[a-z0-9]+|NexusHD2|Amaze[ _]4G(?:[);/ ]|$)|(Desire|Sensation|Evo ?3D|IncredibleS|Wildfire|Butterfly)[ _]?([^;/)]+)(?: Build|\\))|(Amaze[ _]4G|(?(r=r.replace(/_/g," "),r=r.replace(RegExp(" TD$","i"),""),r==="Build"?"":r);var TSe=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Tv,"__esModule",{value:!0});const wSe=TSe(ASe),rE=Gt,oE=ft,iE=Ld;class CSe{constructor(){this.parse=t=>{const e={type:"",brand:"",model:""};let o="";for(const[i,n]of Object.entries(wSe.default)){const a=oE.userAgentParser(n.regex,t);if(a){if(o="device"in n&&n.device||"",e.brand=i,"model"in n&&n.model)e.model=iE.buildModel(rE.variableReplacement(n.model,a)).trim();else if("models"in n&&n.models)for(const s of n.models){const l=oE.userAgentParser(s.regex,t);if(l){e.model=iE.buildModel(rE.variableReplacement(s.model,l)).trim(),"device"in s&&s.device&&(o=s.device),"brand"in s&&(e.brand=s.brand||"");break}}break}}return o==="tv"?e.type="television":o==="car browser"?e.type="car":e.type=o,e.brand==="Unknown"&&(e.brand=""),e}}}Tv.default=CSe;var wv={};const PSe={regex:"Airties",device:"tv",models:[{regex:"Airties; ?([^);/]+)",model:"$1"}]},LSe={regex:"AOC",device:"tv",models:[{regex:"(LE43S5970-20|S50856)",model:"$1"}]},ISe={regex:"ARRIS[;,]",device:"tv",models:[{regex:"FS-ARS-01B",model:"FS-ARS-01B"}]},ESe={regex:"ATVIO",device:"tv",models:[{regex:"55D1620",model:"55D1620"}]},$Se={regex:"Bangolufsen",device:"tv",model:"BeoVision"},DSe={regex:"Blaupunkt_UMC[;,]",device:"tv",models:[{regex:"LC-65CUG8052E",model:"LC-65CUG8052E"}]},OSe={regex:"BUSH[;,]",device:"tv",model:""},BSe={regex:"CELCUS[;,]",device:"tv",model:""},GSe={regex:"Changhong",device:"tv",models:[{regex:"Changhong; ?([^);/]+)",model:"$1"}]},NSe={regex:"CreNova",device:"tv",model:"CNV001"},kSe={regex:"DIGIHOME[;,]",device:"tv",model:""},RSe={regex:"DMM",device:"tv",model:"Dreambox"},FSe={regex:"ELECTRONIA[;,]",device:"tv",model:""},VSe={regex:"ESSENTIELB[;,]",device:"tv",model:""},HSe={regex:"FINLUX[;,]",device:"tv",model:""},XSe={regex:"FUEGO[;,]",device:"tv",model:""},USe={regex:"GOGEN[;,]",device:"tv",model:""},WSe={regex:"(OWB|Grundig|Arcelik)",device:"tv",model:""},zSe={regex:"(?:HHW_)?HAIER",device:"tv",models:[{regex:"LE55X7000U",model:"LE55X7000U"}]},KSe={regex:"Hisense|Eurofins_Digital_Testing",device:"tv",models:[{regex:"50ADEVTOOL",model:"50ADEVTOOL"},{regex:"50A683FEVS",model:"50A683FEVS"},{regex:"55A6100EE",model:"55A6100EE"},{regex:"55U62QGAVT",model:"55U62QGAVT"},{regex:"50A6502EA",model:"50A6502EA"},{regex:"MICALIDVB6886",model:"MICALIDVB6886"},{regex:"(L[A-Z]{2,3}[0-9]{2}[A-Z][0-9]{3,4}[A-Z]{0,6}[0-9]?[A-Z]?)",model:"$1"},{regex:"(H[A-Z]?[0-9]{2}[A-Z][0-9]{3,4}[A-Z]{0,4})",model:"$1"}]},ZSe={regex:"Hitachi[;,]",device:"tv",models:[{regex:"49D2900",model:"49D2900"}]},YSe={regex:"HORIZON[;,]",device:"tv",model:""},QSe={regex:"HOTEL[;,]",device:"tv",model:""},JSe={regex:"Humax",device:"tv",models:[{regex:"(HD-FOX C|HD (FOX\\+|NANO)|iCord (HD\\+|MINI|Cable)|(CX|IR)HD-5100(C|S)|HM9503HD)",model:"$1"},{regex:"HMS1000S",model:"HMS-1000S"},{regex:"Humax; ([^);/]+)",model:"$1"}]},jSe={regex:"HYUNDAI[;,]",device:"tv",model:""},qSe={regex:"Ikea",device:"tv",model:""},ebe={regex:"Intek",device:"tv",models:[{regex:"(Vantage|VT-100|VT-1)",model:"$1"}]},tbe={regex:"Inverto",device:"tv",models:[{regex:"inverto; ([^);/]+)",model:"$1"},{regex:"(Volksbox Web Edition|Volksbox Essential|Volksbox II|Volksbox)",model:"$1"}]},rbe={regex:"AFTSO001|JVC[;,]",device:"tv",models:[{regex:"AFTSO001",model:"4K (2019)"}]},obe={regex:"KALLEY[;,]",device:"tv",models:[{regex:"32D1620",model:"32D1620"}]},ibe={regex:"KUBO[;,]",device:"tv",model:""},nbe={regex:"LAURUS[;,]",device:"tv",model:""},abe={regex:"LGE",device:"tv",models:[{regex:"XU43WT180N",model:"XU43WT180N"},{regex:"43LJ614V-ZA",model:"43LJ614V-ZA"},{regex:"55SK850V-ZA",model:"55SK850V-ZA"},{regex:"KEY0000213F1z",model:"KEY0000213F1z"},{regex:"KEY0000213F",model:"KEY0000213F"},{regex:"KEY000000(2E|2F|3B|3F)",model:"KEY000000$1"},{regex:"(NetCast [0-9]{1}.[0-9]{1}|GLOBAL_PLAT3)",model:"$1"},{regex:"(OLED[0-9]{2}[A-Z0-9]{3}[A-Z]{2})",model:"$1"},{regex:"(OLED[0-9]{2}[A-Z][0-9][A-Z])",model:"$1"},{regex:"(OLED[0-9]{2}[A-Z0-9]{2})",model:"$1"},{regex:"([0-9]{2}[A-Z]{2}[0-9]{4}[A-Z0-9]{1}[A-Z]{2})",model:"$1"},{regex:"([0-9]{2}NANO[0-9]{3}[A-Z]{2})",model:"$1"},{regex:"([0-9]{2}NANO[0-9]{2})",model:"$1"},{regex:"LGE;? ?([0-9]{2}[A-Z]{2}[0-9]{2,4}[A-Z]?)",model:"$1"},{regex:"LM21U",model:"LM21U"},{regex:"32LM",model:"32LM"}]},sbe={regex:"Lifemaxx[;,]",device:"tv",model:""},lbe={regex:"LINSAR[;,]",device:"tv",model:""},dbe={regex:"Loewe",device:"tv",models:[{regex:"([A-Z]{2}[0-9]{3})",model:"$1"}]},cbe={regex:"LUXOR[;,]",device:"tv",model:""},ube={regex:"Manhattan",device:"tv",models:[{regex:"T3",model:"T3"}]},hbe={regex:"MTK|MediaTek;",device:"tv",models:[{regex:"(MT[0-9]{4})",model:"$1"}]},gbe={regex:"Medion",device:"tv",model:""},mbe={regex:"MIRAY",device:"tv",models:[{regex:"LEDM-322NIP",model:"LEDM-322NIP"}]},pbe={regex:"MStar[;,]",device:"tv",models:[{regex:"([24])KTV18",model:"$1KTV18"}]},fbe={regex:"MTC[;,]",device:"tv",models:[{regex:"([24])K_Android_TV_V01",model:"$1K Android TV"}]},xbe={regex:"NORDMENDE[;,]",device:"tv",model:""},vbe={regex:"Metz",device:"tv",model:""},ybe={regex:"OK[;,]",device:"tv",model:""},_be={regex:"Panasonic",device:"tv",models:[{regex:"VIERA (201[1-9])",model:"VIERA ($1)"},{regex:"(DIGA [A-Z]{1}[0-9]{4})",model:"$1"},{regex:"DIGA Webkit ([A-Z]{1}[0-9]{4})",model:"DIGA $1"},{regex:"SmartTV(201[89]|202[0-1])",model:"Smart TV ($1)"}]},Sbe={regex:"PEAQ",device:"tv",model:""},bbe={regex:"Philips|NETTV/",device:"tv",models:[{regex:"Philips[,;] ?((?! )[^),;/]+)",model:"$1"},{regex:"NETTV/[0-9\\.]{5}",model:"NetTV Series"}]},Mbe={regex:"POLAROID[;,]",device:"tv",model:""},Abe={regex:"PROFILO[;,]",device:"tv",model:""},Tbe={regex:"QILIVE[;,]",device:"tv",model:""},wbe={regex:"REGAL[;,]",device:"tv",model:""},Cbe={regex:"Saba[;,]",device:"tv",model:""},Pbe={regex:"Salora[;,]",device:"tv",model:""},Lbe={regex:"Samsung|Maple_2011",device:"tv",models:[{regex:"SmartTV(201[2-9]|202[0-1]):([^);/]+)",model:"$2"},{regex:"SmartTV(201[2-9]|202[0-1])",model:"Smart TV ($1)"},{regex:"Maple_2011",model:"Smart TV (2011)"}]},Ibe={regex:"SCBC[;,]",device:"tv",models:[{regex:"SCBC586",model:"SCBC586"},{regex:"43D1850",model:"43D1850"}]},Ebe={regex:"SEG[;,]",device:"tv",model:""},$be={regex:"Selevision",device:"tv",models:[{regex:"Selevision; (?:Selevision )?([^);/]+)",model:"$1"},{regex:"(EMC1000i)",model:"$1"}]},Dbe={regex:"(?:UMC-)?Sharp",device:"tv",models:[{regex:"Sharp[,;] ?((?! |HbbTV)[^),;/]+)",model:"$1"},{regex:"(LE[0-9]{3}[A-Z]{0,3})",model:"$1"},{regex:"LC-([^);/]+)",model:"LC-$1"},{regex:"BLA-43",model:"BLA-43"}]},Obe={regex:"Sky_worth",device:"tv",models:[{regex:"Sky_worth;([^);/]+)",model:"$1"}]},Bbe={regex:"Smart[;,]",device:"tv",models:[{regex:"Smart; ([^);/]+)",model:"$1"},{regex:"([A-Z]{2}[0-9]{2}|ZAPPIX)",model:"$1"}]},Gbe={regex:"Sony",device:"tv",models:[{regex:"KDL-GR1",model:"KDL-GR1"},{regex:"KDL-GN([56])",model:"KDL-GN$1"},{regex:"BRAVIA (VH1|4K VH2)",model:"BRAVIA $1"},{regex:"(KDL?-?[0-9]{2}[A-Z]{1}[0-9]{4}[A-Z]{1})",model:"$1"},{regex:"(KDL?-?[0-9]{2}[A-Z]{1}[0-9]{3}[A-Z]{1})",model:"$1"},{regex:"(KDL?-?[0-9]{2}[A-Z]{1,2}[0-9]{1,5})",model:"$1"}]},Nbe={regex:"SWTV[;,]",device:"tv",models:[{regex:"SKWE20E21",model:"SKWE20E21"}]},kbe={regex:"Technicolor",device:"tv",models:[{regex:"uzw4054ttg",model:"UZW4054TTG"}]},Rbe={regex:"TECHNIKA[;,]",device:"tv",model:""},Fbe={regex:"TechniSat",device:"tv",models:[{regex:"((DigiCorder|MultyVision|Digit) (ISIO S|ISIO C|ISIO))",model:"$1"}]},Vbe={regex:"TechnoTrend",device:"tv",models:[{regex:"([A-Z]{1}-[0-9]{3})",model:"$1"}]},Hbe={regex:"Techwood[;,]",device:"tv",model:""},Xbe={regex:"Telefunken",device:"tv",model:""},Ube={regex:"TCL",device:"tv",models:[{regex:"(32D1820|(?:39|55)D2900|32D2930|(?:32|43)S4900)",model:"$1"}]},Wbe={regex:"THOMSON[,]?|THOM",device:"tv",models:[{regex:"(TB28D19DHS-01|T28D18SFS-01B)",model:'$1 28.0"'},{regex:"(T32RTM5040|T32D18SFS-01B)",model:'$1 32.0"'},{regex:"(T43FSL5031|T43D18SFS-01B)",model:'$1 43.0"'},{regex:"(T40D18SFS-01B)",model:'$1 40.0"'},{regex:"(T49D18SFS-01B)",model:'$1 49.0"'},{regex:"(T55D18[SD]FS-01B)",model:'$1 55.0"'},{regex:"40FB5426",model:"40FB5426"}]},zbe={regex:"TOKYO[;,]",device:"tv",models:[{regex:"TOKTCLED32S",model:"TOKTCLED32S"}]},Kbe={regex:"Toshiba",device:"tv",models:[{regex:"40L2600",model:"40L2600"},{regex:"(([0-9]{2}|DTV_)[A-Z]{2}[0-9]{1,3})",model:"$1"}]},Zbe={regex:"videoweb|tv2n",device:"tv",models:[{regex:"(tv2n)",model:"$1"},{regex:"(videowebtv)",model:"VideoWeb TV"}]},Ybe={regex:"VOX[;,]",device:"tv",model:""},Qbe={regex:"WELLINGTON[;,]",device:"tv",model:""},Jbe={regex:"(?:Vestel.+VESTEL|VESTEL;)",device:"tv",model:""},jbe={Airties:PSe,"ALDI NORD":{regex:"ALDINORD[;,]",device:"tv",model:""},"ALDI S\xDCD":{regex:"ALDISUED[;,]",device:"tv",model:""},"Altech UEC":{regex:"Altech UEC",device:"tv",models:[{regex:"Altech UEC; ?([^);/]+)",model:"$1"}]},AOC:LSe,ARRIS:ISe,Atvio:ESe,BangOlufsen:$Se,Blaupunkt:DSe,Bush:OSe,Celcus:BSe,Changhong:GSe,CreNova:NSe,Digihome:kSe,DMM:RSe,ELECTRONIA:FSe,Essentielb:VSe,Finlux:HSe,"F&U":{regex:"FU[;,]",device:"tv",model:""},Fuego:XSe,GoGEN:USe,Grundig:WSe,Haier:zSe,"Hi-Level":{regex:"HI-LEVEL[;,]",device:"tv",model:""},Hisense:KSe,Hitachi:ZSe,Horizon:YSe,Hotel:QSe,Humax:JSe,Hyundai:jSe,Ikea:qSe,Intek:ebe,Inverto:tbe,JVC:rbe,Kalley:obe,KUBO:ibe,Laurus:nbe,LG:abe,Lifemaxx:sbe,Linsar:lbe,Loewe:dbe,Luxor:cbe,Manhattan:ube,MediaTek:hbe,Medion:gbe,Miray:mbe,MStar:pbe,MTC:fbe,Nordmende:xbe,Metz:vbe,Ok:ybe,Panasonic:_be,PEAQ:Sbe,Philips:bbe,Polaroid:Mbe,PROFiLO:Abe,Qilive:Tbe,REGAL:wbe,Saba:Cbe,Salora:Pbe,Samsung:Lbe,SCBC:Ibe,SEG:Ebe,Selevision:$be,Sharp:Dbe,Skyworth:Obe,Smart:Bbe,Sony:Gbe,SWTV:Nbe,"TD Systems":{regex:"TDSystems[;,]",device:"tv",models:[{regex:"SmartTV(2019|2020)",model:"Smart TV ($1)"}]},Technicolor:kbe,Technika:Rbe,TechniSat:Fbe,TechnoTrend:Vbe,Techwood:Hbe,Telefunken:Xbe,TCL:Ube,Thomson:Wbe,TOKYO:zbe,Toshiba:Kbe,Videoweb:Zbe,VOX:Ybe,WELLINGTON:Qbe,"X.Vision":{regex:"X-VISION[;,]",device:"tv",model:""},Vestel:Jbe};var qbe=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(wv,"__esModule",{value:!0});const eMe=qbe(jbe),nE=Gt,Cv=ft,aE=Ld;class tMe{constructor(){this.parse=t=>{const e={type:"",brand:"",model:""};if(!this.isHbbTv(t))return e;e.type="television";for(const[o,i]of Object.entries(eMe.default)){const n=Cv.userAgentParser(i.regex,t);if(n){if(e.brand=o,"model"in i&&i.model)e.model=aE.buildModel(nE.variableReplacement(i.model,n)).trim();else if("models"in i&&i.models)for(const a of i.models){const s=Cv.userAgentParser(a.regex,t);if(s){e.model=aE.buildModel(nE.variableReplacement(a.model,s)).trim();break}}break}}return e},this.isHbbTv=t=>Cv.userAgentParser("HbbTV/([1-9]{1}(?:.[0-9]{1}){1,2})",t)}}wv.default=tMe;var Pv={};const rMe={regex:"(?:Tesla/[0-9.]+|QtCarBrowser)",device:"car browser",models:[{regex:"QtCarBrowser",model:"Model S"},{regex:"Tesla/[0-9.]+",model:""}]},oMe={regex:"sp9853i_1h10_vmm",device:"car browser",models:[{regex:"sp9853i_1h10_vmm",model:"TS9"}]},iMe={Tesla:rMe,"MAC AUDIO":{regex:"Mac Audio Spro",device:"car browser",models:[{regex:"Spro",model:"S Pro"}]},Topway:oMe};var nMe=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Pv,"__esModule",{value:!0});const aMe=nMe(iMe),sMe=Gt,sE=ft;class lMe{constructor(){this.parse=t=>{const e={type:"",brand:"",model:""};for(const[o,i]of Object.entries(aMe.default))if(sE.userAgentParser(i.regex,t)){e.type="car",e.brand=o;for(const n of i.models){const a=sE.userAgentParser(n.regex,t);a&&(e.model=sMe.variableReplacement(n.model,a).trim())}break}return e}}}Pv.default=lMe;var Lv={};const dMe={regex:"Archos.*GAMEPAD([2]?)",device:"console",model:"Gamepad $1"},cMe={regex:"Xbox",device:"console",models:[{regex:"Xbox Series X",model:"Xbox Series X"},{regex:"Xbox One X",model:"Xbox One X"},{regex:"Xbox One",model:"Xbox One"},{regex:"XBOX_ONE_ED",model:"Xbox One S"},{regex:"Xbox",model:"Xbox 360"}]},uMe={regex:"Nintendo (([3]?DS[i]?)|Wii[U]?|Switch)",device:"console",model:"$1"},hMe={regex:"OUYA",device:"console",model:"OUYA"},gMe={regex:"Dreamcast",device:"console",model:"Dreamcast"},mMe={regex:"PlayStation (3|4 Pro|4|Portable|Vita)",device:"console",model:"PlayStation $1"},pMe={Archos:dMe,Microsoft:cMe,Nintendo:uMe,OUYA:hMe,Sega:gMe,Sony:mMe};var fMe=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Lv,"__esModule",{value:!0});const xMe=fMe(pMe),lE=Gt,dE=ft;class vMe{constructor(){this.parse=t=>{const e={type:"",brand:"",model:""};for(const[o,i]of Object.entries(xMe.default)){const n=dE.userAgentParser(i.regex,t);if(n){if(e.type=i.device,e.brand=o,"model"in i&&i.model)e.model=lE.variableReplacement(i.model,n).trim();else if("models"in i&&i.models)for(const a of i.models){const s=dE.userAgentParser(a.regex,t);if(s){e.model=lE.variableReplacement(a.model,s).trim();break}}break}}return e}}}Lv.default=vMe;var Iv={};const yMe={regex:"FBMD/(?:Aspire E5-421G|Z5WAL|One S1003);",device:"desktop",models:[{regex:"FBMD/Aspire E5-421G;",model:"Aspire E5-421G"},{regex:"FBMD/Z5WAL;",model:"Aspire E5-511"},{regex:"FBMD/One S1003;",model:"One 10"}]},_Me={regex:"FBMD/(?:K50IN|K54L|T100HAN|T103HAF|UX360CAK|X550LB|X553MA|X555LN|X556UQK);",device:"desktop",models:[{regex:"FBMD/K50IN;",model:"K50IN"},{regex:"FBMD/K54L;",model:"K54L"},{regex:"FBMD/T100HAN;",model:"Transformer Book"},{regex:"FBMD/T103HAF;",model:"Transformer Mini"},{regex:"FBMD/UX360CAK;",model:"ZenBook Flip"},{regex:"FBMD/X550LB;",model:"X550LB"},{regex:"FBMD/X553MA;",model:"X553MA"},{regex:"FBMD/X555LN;",model:"X555LN"},{regex:"FBMD/X556UQK;",model:"X556UQK"}]},SMe={regex:"FBMD/(?:Latitude E4300|Inspiron 3541|XPS 15 95[35]0);",device:"desktop",models:[{regex:"Latitude E4300",model:"Latitude E4300"},{regex:"Inspiron 3541",model:"Inspiron 3541"},{regex:"XPS 15 9530",model:"XPS 15 9530"},{regex:"XPS 15 9550",model:"XPS 15 9550"}]},bMe={regex:"FBMD/((?:Compaq|HP) |23-f364)",device:"desktop",models:[{regex:"Compaq Presario CQ61 Notebook PC",model:"Compaq Presario CQ61"},{regex:"HP Pavilion x2 Detachable",model:"Pavilion x2"},{regex:"HP Laptop 15-bs0xx",model:"15 Laptop PC"},{regex:"HP ENVY x360 Convertible 15-bp0xx",model:"ENVY x360 Convertible PC"},{regex:"HP EliteBook (25[67]0p)",model:"EliteBook $1"},{regex:"HP ProBook (440 G5|6[35]60b)",model:"ProBook $1"},{regex:"HP Pavilion dv6 Notebook PC",model:"Pavilion dv6"},{regex:"HP Pavilion Notebook",model:"Pavilion"},{regex:"HP Spectre x360 Convertible",model:"Spectre x360"},{regex:"HP Pavilion All-in-One 24-r0xx",model:"Pavilion 24-r0xx All-in-One Desktop PC",device:"desktop"},{regex:"23-f364",model:"Pavilion TouchSmart 23-f364 All-in-One Desktop PC",device:"desktop"}]},MMe={regex:"FBMD/(?:37021C5|80E5|80SM|80VR);",device:"desktop",models:[{regex:"FBMD/37021C5;",model:"ThinkPad Helix 3702"},{regex:"FBMD/80E5;",model:"G50-80"},{regex:"FBMD/80SM;",model:"Ideapad 310-15ISK"},{regex:"FBMD/80VR;",model:"Legion Y720"}]},AMe={regex:"FBMD/SCL141CTP;",device:"desktop",model:'Notebook 14" Cherry Trail'},TMe={regex:"FBMD/TH360R12.32CTW;",device:"desktop",model:"Prestige TH-360R12.32CTW"},wMe={regex:"FBMD/Satellite ",device:"desktop",models:[{regex:"Satellite (A[25]00|C650|C855|L650|S855)",model:"Satellite $1"},{regex:"Satellite ([^;\\)]+);",model:"Satellite $1"}]},CMe={Acer:yMe,Asus:_Me,Dell:SMe,HP:bMe,Lenovo:MMe,Schneider:AMe,Thomson:TMe,Toshiba:wMe};var PMe=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Iv,"__esModule",{value:!0});const LMe=PMe(CMe),cE=Gt,Ev=ft,IMe=Ld;class EMe{constructor(){this.parse=t=>{const e={type:"",brand:"",model:""};if(!Ev.userAgentParser("FBMD/",t))return e;for(const[o,i]of Object.entries(LMe.default)){const n=Ev.userAgentParser(i.regex,t);if(n){if(e.type="desktop",e.brand=o,"model"in i&&i.model)e.model=IMe.buildModel(cE.variableReplacement(i.model,n)).trim();else if("models"in i&&i.models)for(const a of i.models){const s=Ev.userAgentParser(a.regex,t);s&&(e.model=cE.variableReplacement(a.model,s).trim())}break}}return e}}}Iv.default=EMe;var $v={};const $Me={regex:"(?:Apple-)?iPod",device:"portable media player",models:[{regex:"(?:Apple-)?iPod1[C,]1",model:"iPod Touch 1G"},{regex:"(?:Apple-)?iPod2[C,]1",model:"iPod Touch 2G"},{regex:"(?:Apple-)?iPod3[C,]1",model:"iPod Touch 3"},{regex:"(?:Apple-)?iPod4[C,]1",model:"iPod Touch 4"},{regex:"(?:Apple-)?iPod5[C,]1",model:"iPod Touch 5"},{regex:"(?:Apple-)?iPod7[C,]1",model:"iPod Touch 6"},{regex:"(?:Apple-)?iPod",model:"iPod Touch"}]},DMe={regex:"COWON ([^;/]+) Build",device:"portable media player",model:"$1"},OMe={regex:"Microsoft ZuneHD",device:"portable media player",model:"Zune HD"},BMe={regex:"(SV-MV100)",device:"portable media player",model:"$1"},GMe={regex:"YP-(G[SIPB]?1|G[57]0|GB70D)",device:"portable media player",models:[{regex:"YP-G[B]?1",model:"Galaxy Player 4.0"},{regex:"YP-G70",model:"Galaxy Player 5.0"},{regex:"YP-GS1",model:"Galaxy Player 3.6"},{regex:"YP-GI1",model:"Galaxy Player 4.2"},{regex:"YP-GP1",model:"Galaxy Player 5.8"},{regex:"YP-G50",model:"Galaxy Player 50"},{regex:"YP-GB70D",model:"Galaxy Player 70 Plus"}]},NMe={regex:"(DV-PTB1080)(?:[);/ ]|$)",device:"portable media player",model:"$1"},kMe={regex:"Sonos/.+\\((?:ZP.+)\\)|Sonos;",device:"portable media player",models:[{regex:"\\((ZPS(?:[13569]|1[1-578]|2[03])|ZP90)\\)",model:"$1"},{regex:"Sonos;Play5;",model:"Play:5"},{regex:"Sonos;One;",model:"One"}]},RMe={Apple:$Me,Cowon:DMe,Microsoft:OMe,Panasonic:BMe,Samsung:GMe,Wizz:NMe,SONOS:kMe};var FMe=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($v,"__esModule",{value:!0});const VMe=FMe(RMe),uE=Gt,hE=ft;class HMe{constructor(){this.parse=t=>{const e={type:"",brand:"",model:""};for(const[o,i]of Object.entries(VMe.default)){const n=hE.userAgentParser(i.regex,t);if(n){if(e.type=i.device,e.brand=o,"model"in i&&i.model)e.model=uE.variableReplacement(i.model,n).trim();else if("models"in i&&i.models)for(const a of i.models){const s=hE.userAgentParser(a.regex,t);if(s){e.model=uE.variableReplacement(a.model,s).trim();break}}break}}return e}}}$v.default=HMe;var ra=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Mv,"__esModule",{value:!0});const XMe=ra(Av),UMe=ra(Tv),WMe=ra(wv),zMe=ra(Pv),KMe=ra(Lv),ZMe=ra(Iv),YMe=ra($v),QMe=[KMe.default,zMe.default,XMe.default,WMe.default,YMe.default,UMe.default,ZMe.default];class JMe{constructor(){this.parse=t=>{for(const e of QMe){const o=new e().parse(t);if(o.type!=="")return o}return null}}}Mv.default=JMe;var Dv={};const jMe=[{regex:"Grid OS (\\d+[\\.\\d]+)",name:"GridOS",version:"$1"},{regex:"CaixaMagica",name:"Caixa M\xE1gica",version:""},{regex:"Mageia; Linux",name:"Mageia",version:""},{regex:"(?:WH|WhaleTV/)(\\d+[\\.\\d]+)",name:"Whale OS",version:"$1"},{regex:"Tizen[ /]?(\\d+[\\.\\d]+)?",name:"Tizen",version:"$1"},{regex:"Sailfish|Jolla",name:"Sailfish OS",version:""},{regex:"(?:Ali)?YunOS[ /]?(\\d+[\\.\\d]+)?",name:"YunOS",version:"$1"},{regex:"Windows Phone;FBSV/(\\d+[\\.\\d]+)",name:"Windows Phone",version:"$1"},{regex:"(?:Windows Phone (?:OS)?|wds)[ /]?(\\d+[\\.\\d]+)",name:"Windows Phone",version:"$1"},{regex:"XBLWP7|Windows Phone",name:"Windows Phone",version:""},{regex:"Windows CE(?: (\\d+[\\.\\d]+))?",name:"Windows CE",version:"$1"},{regex:"(?:IEMobile|Windows ?Mobile)(?: (\\d+[\\.\\d]+))?",name:"Windows Mobile",version:"$1"},{regex:"Windows NT 6.2; ARM;",name:"Windows RT",version:""},{regex:"Windows NT 6.3; ARM;",name:"Windows RT",version:"8.1"},{regex:"Windows IoT 10.0",name:"Windows IoT",version:"10"},{regex:"KAIOS(?:/(\\d+[\\.\\d]+))?",name:"KaiOS",version:"$1"},{regex:"RazoDroiD(?: v(\\d+[\\.\\d]*))?",name:"RazoDroiD",version:"$1"},{regex:"MildWild(?: CM-(\\d+[\\.\\d]*))?",name:"MildWild",version:"$1"},{regex:"CyanogenMod(?:[\\-/](?:CM)?(\\d+[\\.\\d]*))?",name:"CyanogenMod",version:"$1"},{regex:"(?:.*_)?MocorDroid(?:(\\d+[\\.\\d]*))?",name:"MocorDroid",version:"$1"},{regex:"Fire OS(?:/(\\d+[\\.\\d]*))?",name:"Fire OS",version:"$1"},{regex:"AFTSO001",name:"Fire OS",version:"7"},{regex:"FydeOS",name:"FydeOS",version:""},{regex:"(?:Podbean|Podimo)(?:.+)?/Android",name:"Android",version:""},{regex:"Pinterest for Android/.+; (\\d(?:[\\d\\.]+)?)\\)$",name:"Android",version:"$1"},{regex:"Android; (\\d+[\\.\\d]*); Mobile;",name:"Android",version:"$1"},{regex:"[ ]([\\d\\.]+)\\) AppleWebKit.*ROBLOX Android App",name:"Android",version:"$1"},{regex:"(?:(?:Orca-)?Android|Adr)[ /]?(?:[a-z]+ )?(\\d+[\\.\\d]*)",name:"Android",version:"$1"},{regex:"(?:Allview_TX1_Quasar|Cosmote_My_mini_Tab) (\\d+[\\.\\d]*)",name:"Android",version:"$1"},{regex:"Android ?(?:jelly bean|Kit Kat|S.O. Ginger Bread|The FireCyano|:) (\\d+[\\.\\d]*)",name:"Android",version:"$1"},{regex:"(?:Orca-Android|FB4A).*FBSV/(\\d+[\\.\\d]*);",name:"Android",version:"$1"},{regex:" Adr |Android|Silk-Accelerated=[a-z]{4,5}",name:"Android",version:""},{regex:"(?:TwitterAndroid).*[ /](?:[a-z]+ )?(\\d+[\\.\\d]*)",name:"Android",version:"$1"},{regex:"BeyondPod|AntennaPod|Podkicker|DoggCatcher|Player FM|okhttp|Podcatcher Deluxe|.+K_?Android_?TV_|Sonos/.+\\(ACR_",name:"Android",version:""},{regex:"Linux; Andr0id[; ](\\d+[\\.\\d]*)",name:"Android",version:"$1"},{regex:"Linux; diordnA[; ](\\d+[\\.\\d]*)",name:"Android",version:"$1"},{regex:"AmigaOS[ ]?(\\d+[\\.\\d]+)",name:"AmigaOS",version:"$1"},{regex:"AmigaOS|AmigaVoyager|Amiga-AWeb",name:"AmigaOS",version:""},{regex:"ThreadX(?:/(\\d+[\\.\\d]*))?",name:"ThreadX",version:"$1"},{regex:"Nucleus(?:(?: |/v?)(\\d+[\\.\\d]*))?",name:"MTK / Nucleus",version:"$1"},{regex:"MTK(?:(?: |/v?)(\\d+[\\.\\d]*))?",name:"MTK / Nucleus",version:"$1"},{regex:"MRE/(\\d+)\\.(\\d+).*;MAUI",name:"MRE",version:"$1.$2"},{regex:"dvkbuntu",name:"DVKBuntu",version:""},{regex:"Helio/(\\d+[\\.\\d]+)",name:"Lumin OS",version:"$1"},{regex:"HasCodingOs (\\d+[\\.\\d]+)",name:"HasCodingOS",version:"$1"},{regex:"PCLinuxOS/(\\d+[\\.\\d]+)",name:"PCLinuxOS",version:"$1"},{regex:"(Ordissimo|webissimo3)",name:"Ordissimo",version:""},{regex:"(?:Win|Sistema )Fenix",name:"Fenix",version:""},{regex:"TOS; Linux",name:"TmaxOS",version:""},{regex:"Maemo",name:"Maemo",version:""},{regex:"Arch ?Linux(?:[ /\\-](\\d+[\\.\\d]+))?",name:"Arch Linux",version:"$1"},{regex:"VectorLinux(?: package)?(?:[ /\\-](\\d+[\\.\\d]+))?",name:"VectorLinux",version:"$1"},{regex:"Linux; .*((?:Debian|Knoppix|Mint|Ubuntu|Kubuntu|Xubuntu|Lubuntu|Fedora|Red Hat|Mandriva|Gentoo|Sabayon|Slackware|SUSE|CentOS|BackTrack))[ /](\\d+[\\.\\d]+)",name:"$1",version:"$2"},{regex:"Deepin[ /](\\d+[\\.\\d]+)",name:"Deepin",version:"$1"},{regex:"(Debian|Knoppix|Mint(?! Browser)|Ubuntu|Kubuntu|Xubuntu|Lubuntu|Fedora|Red Hat|Mandriva|Gentoo|Sabayon|Slackware|SUSE|CentOS|BackTrack|Freebox)(?:(?: Enterprise)? Linux)?(?:[ /\\-](\\d+[\\.\\d]+))?",name:"$1",version:"$2"},{regex:"OS ROSA; Linux",name:"Rosa",version:""},{regex:"WEBOS(\\d+[\\.\\d]+)",name:"webOS",version:"$1"},{regex:"Web0S; Linux/SmartTV.+Chrome/68",name:"webOS",version:"5"},{regex:"Web0S; Linux/SmartTV.+Chrome/53",name:"webOS",version:"4"},{regex:"Web0S; Linux/SmartTV.+Chrome/38",name:"webOS",version:"3"},{regex:"Web0S; Linux/SmartTV.+Safari/538",name:"webOS",version:"2"},{regex:"Web0S; Linux/SmartTV.+Safari/537",name:"webOS",version:"1"},{regex:"(?:Web0S; .*WEBOS|webOS|web0S|Palm webOS|hpwOS)(?:[/]?(\\d+[\\.\\d]+))?",name:"webOS",version:"$1"},{regex:"(?:PalmOS|Palm OS)(?:[/ ](\\d+[\\.\\d]+))?|Palm",name:"palmOS",version:"$1"},{regex:"Xiino(?:.*v\\. (\\d+[\\.\\d]+))?",name:"palmOS",version:"$1"},{regex:"MorphOS(?:[ /](\\d+[\\.\\d]+))?",name:"MorphOS",version:"$1"},{regex:"FBW.+FBSV/(\\d+[\\.\\d]*);",name:"Windows",version:"$1"},{regex:"mingw32",name:"Windows",version:""},{regex:"Windows/(\\d+\\.\\d+)",name:"Windows",version:"$1"},{regex:"CYGWIN_NT-10.0|Windows NT 10.0|Windows 10",name:"Windows",version:"10"},{regex:"CYGWIN_NT-6.4|Windows NT 6.4|Windows 10|win10",name:"Windows",version:"10"},{regex:"CYGWIN_NT-6.3|Windows NT 6.3|Windows 8.1",name:"Windows",version:"8.1"},{regex:"CYGWIN_NT-6.2|Windows NT 6.2|Windows 8",name:"Windows",version:"8"},{regex:"CYGWIN_NT-6.1|Windows NT 6.1|Windows 7|win7",name:"Windows",version:"7"},{regex:"CYGWIN_NT-6.0|Windows NT 6.0|Windows Vista",name:"Windows",version:"Vista"},{regex:"CYGWIN_NT-5.2|Windows NT 5.2|Windows Server 2003 / XP x64",name:"Windows",version:"Server 2003"},{regex:"CYGWIN_NT-5.1|Windows NT 5.1|Windows XP",name:"Windows",version:"XP"},{regex:"CYGWIN_NT-5.0|Windows NT 5.0|Windows 2000",name:"Windows",version:"2000"},{regex:"CYGWIN_NT-4.0|Windows NT 4.0|WinNT|Windows NT",name:"Windows",version:"NT"},{regex:"CYGWIN_ME-4.90|Win 9x 4.90|Windows ME",name:"Windows",version:"ME"},{regex:"CYGWIN_98-4.10|Win98|Windows 98",name:"Windows",version:"98"},{regex:"CYGWIN_95-4.0|Win32|Win95|Windows 95|Windows_95",name:"Windows",version:"95"},{regex:"Windows 3.1",name:"Windows",version:"3.1"},{regex:"Windows",name:"Windows",version:""},{regex:"Haiku",name:"Haiku OS",version:""},{regex:"(?:Watch1,[12]/|Watch OS,|watchOS[ /])(\\d+[\\.\\d]*)",name:"watchOS",version:"$1"},{regex:"iPad/([89]|1[012]).(\\d+[\\.\\d]*)",name:"iOS",version:"$1.$2"},{regex:"Pinterest for iOS/.+; (\\d(?:[\\d\\.]+)?)\\)$",name:"iOS",version:"$1"},{regex:"CFNetwork/.+ Darwin/20.4.0(?!.*x86_64)",name:"iOS",version:"14.5"},{regex:"CFNetwork/.+ Darwin/20.3.0(?!.*x86_64)",name:"iOS",version:"14.4"},{regex:"CFNetwork/.+ Darwin/20.2.0(?!.*x86_64)",name:"iOS",version:"14.3"},{regex:"CFNetwork/.+ Darwin/20.1.0(?!.*x86_64)",name:"iOS",version:"14.2"},{regex:"CFNetwork/.+ Darwin/20.0.0(?!.*x86_64)",name:"iOS",version:"14.0"},{regex:"CFNetwork/.+ Darwin/19.6.0(?!.*x86_64)",name:"iOS",version:"13.6"},{regex:"CFNetwork/.+ Darwin/19.5.0(?!.*x86_64)",name:"iOS",version:"13.5"},{regex:"CFNetwork/.+ Darwin/19.4.0(?!.*x86_64)",name:"iOS",version:"13.4"},{regex:"CFNetwork/.+ Darwin/19.3.0(?!.*x86_64)",name:"iOS",version:"13.3.1"},{regex:"CFNetwork/.+ Darwin/19.2.0(?!.*x86_64)",name:"iOS",version:"13.3"},{regex:"CFNetwork/.+ Darwin/19.0.0(?!.*x86_64)",name:"iOS",version:"13.0"},{regex:"CFNetwork/.+ Darwin/18.7.0(?!.*x86_64)",name:"iOS",version:"12.4"},{regex:"CFNetwork/.+ Darwin/18.6.0(?!.*x86_64)",name:"iOS",version:"12.3"},{regex:"CFNetwork/.+ Darwin/18.5.0(?!.*x86_64)",name:"iOS",version:"12.2"},{regex:"CFNetwork/.+ Darwin/18.2.0(?!.*x86_64)",name:"iOS",version:"12.1"},{regex:"CFNetwork/.+ Darwin/18.0.0(?!.*x86_64)",name:"iOS",version:"12.0"},{regex:"CFNetwork/.+ Darwin/17.7.0(?!.*x86_64)",name:"iOS",version:"11.4.1"},{regex:"CFNetwork/.+ Darwin/17.6.0(?!.*x86_64)",name:"iOS",version:"11.4"},{regex:"CFNetwork/889(?!.*x86_64)",name:"iOS",version:"11.1"},{regex:"CFNetwork/887(?!.*x86_64)",name:"iOS",version:"11.0"},{regex:"CFNetwork/811(?!.*x86_64)",name:"iOS",version:"10.3"},{regex:"CFNetwork/808\\.3",name:"iOS",version:"10.3"},{regex:"CFNetwork/808\\.2",name:"iOS",version:"10.2"},{regex:"CFNetwork/808\\.1",name:"iOS",version:"10.1"},{regex:"CFNetwork/808\\.0",name:"iOS",version:"10.0"},{regex:"CFNetwork/808",name:"iOS",version:"10"},{regex:"CFNetwork/758\\.4\\.3",name:"iOS",version:"9.3.2"},{regex:"CFNetwork/758\\.3\\.15",name:"iOS",version:"9.3"},{regex:"CFNetwork/758\\.2\\.[78]",name:"iOS",version:"9.2"},{regex:"CFNetwork/758\\.1\\.6",name:"iOS",version:"9.1"},{regex:"CFNetwork/758\\.0\\.2",name:"iOS",version:"9.0"},{regex:"CFNetwork/711\\.5\\.6",name:"iOS",version:"8.4.1"},{regex:"CFNetwork/711\\.4\\.6",name:"iOS",version:"8.4"},{regex:"CFNetwork/711\\.3\\.18",name:"iOS",version:"8.3"},{regex:"CFNetwork/711\\.2\\.23",name:"iOS",version:"8.2"},{regex:"CFNetwork/711\\.1\\.1[26]",name:"iOS",version:"8.1"},{regex:"CFNetwork/711\\.0\\.6",name:"iOS",version:"8.0"},{regex:"CFNetwork/672\\.1",name:"iOS",version:"7.1"},{regex:"CFNetwork/672\\.0",name:"iOS",version:"7.0"},{regex:"CFNetwork/609\\.1",name:"iOS",version:"6.1"},{regex:"CFNetwork/60[29]",name:"iOS",version:"6.0"},{regex:"CFNetwork/548\\.1",name:"iOS",version:"5.1"},{regex:"CFNetwork/548\\.0",name:"iOS",version:"5.0"},{regex:"CFNetwork/485\\.13",name:"iOS",version:"4.3"},{regex:"CFNetwork/485\\.12",name:"iOS",version:"4.2"},{regex:"CFNetwork/485\\.10",name:"iOS",version:"4.1"},{regex:"CFNetwork/485\\.2",name:"iOS",version:"4.0"},{regex:"CFNetwork/467\\.12",name:"iOS",version:"3.2"},{regex:"CFNetwork/459",name:"iOS",version:"3.1"},{regex:"iPhone/(\\d+[\\.\\d]*) hw/",name:"iOS",version:"$1"},{regex:"iOS(\\d+\\.\\d+\\.\\d+)",name:"iOS",version:"$1"},{regex:"iOS(\\d+)\\.(\\d+)0",name:"iOS",version:"$1.$2"},{regex:"iPhone OS ([0-9]{1})([0-9]{1})([0-9]{1})",name:"iOS",version:"$1.$2.$3"},{regex:"(?:CPU OS|iPh(?:one)?[ _]OS|iOS)[ _/](\\d+(?:[_\\.]\\d+)*)",name:"iOS",version:"$1"},{regex:"(?:FBIOS|Messenger(?:Lite)?ForiOS).*FBSV/ ?(\\d+[\\.\\d]*);",name:"iOS",version:"$1"},{regex:"(?:Apple-)?(?:iPhone|iPad|iPod)(?:.*Mac OS X.*Version/(\\d+\\.\\d+)|; Opera)?",name:"iOS",version:"$1"},{regex:"(?:Podcasts/(?:[\\d\\.]+)|Instacast(?:HD)?/(?:\\d\\.[\\d\\.abc]+)|Pocket Casts, iOS|\\(iOS\\)|iOS; Opera|Overcast|Castro|Podcat|iCatcher|RSSRadio/|MobileSafari/)(?!.*x86_64)",name:"iOS",version:""},{regex:"iTunes-(iPod|iPad|iPhone)/(?:[\\d\\.]+)",name:"iOS",version:""},{regex:"iOS/Version ([\\d\\.]+)",name:"iOS",version:"$1"},{regex:"Sonos/.+\\(ICRU_",name:"iOS",version:""},{regex:"CFNetwork/.+ Darwin/20.2.0.*(x86_64)|(x86_64-apple-)?darwin20.2.0",name:"Mac",version:"11.1"},{regex:"CFNetwork/.+ Darwin/20.[01].0.*(x86_64)|(x86_64-apple-)?darwin20.[01].0",name:"Mac",version:"11.0"},{regex:"CFNetwork/.+ Darwin/19.6.0.*(x86_64)|(x86_64-apple-)?darwin19.6.0",name:"Mac",version:"10.15.6"},{regex:"CFNetwork/.+ Darwin/19.5.0.*(x86_64)|(x86_64-apple-)?darwin19.5.0",name:"Mac",version:"10.15.5"},{regex:"CFNetwork/.+ Darwin/19.4.0.*(x86_64)|(x86_64-apple-)?darwin19.4.0",name:"Mac",version:"10.15.4"},{regex:"CFNetwork/.+ Darwin/19.3.0.*(x86_64)|(x86_64-apple-)?darwin19.3.0",name:"Mac",version:"10.15.3"},{regex:"CFNetwork/.+ Darwin/19.2.0.*(x86_64)|(x86_64-apple-)?darwin19.2.0",name:"Mac",version:"10.15.2"},{regex:"CFNetwork/(?:108[258]|109[18]|1103).*(x86_64)",name:"Mac",version:"10.15"},{regex:"CFNetwork/.+ Darwin/18.2.0.*(x86_64)|(x86_64-apple-)?darwin18.2.0",name:"Mac",version:"10.14.1"},{regex:"CFNetwork/(?:96[29]|97[14568]).*(x86_64)",name:"Mac",version:"10.14"},{regex:"CFNetwork/.+ Darwin/17.7.0.*(x86_64)|(x86_64-apple-)?darwin17.7.0",name:"Mac",version:"10.13.6"},{regex:"CFNetwork/.+ Darwin/17.6.0.*(x86_64)|(x86_64-apple-)?darwin17.6.0",name:"Mac",version:"10.13.5"},{regex:"CFNetwork/.+ Darwin/17.5.0.*(x86_64)|(x86_64-apple-)?darwin17.5.0",name:"Mac",version:"10.13.4"},{regex:"CFNetwork/.+ Darwin/17.4.0.*(x86_64)|(x86_64-apple-)?darwin17.4.0",name:"Mac",version:"10.13.3"},{regex:"CFNetwork/.+ Darwin/17.3.0.*(x86_64)|(x86_64-apple-)?darwin17.3.0",name:"Mac",version:"10.13.2"},{regex:"CFNetwork/.+ Darwin/17.2.0.*(x86_64)|(x86_64-apple-)?darwin17.2.0",name:"Mac",version:"10.13.1"},{regex:"CFNetwork/(?:887|889|893|897|901|902).*(x86_64)",name:"Mac",version:"10.13"},{regex:"CFNetwork/.+ Darwin/16.7.0.*(x86_64)|(x86_64-apple-)?darwin16.7.0",name:"Mac",version:"10.12.6"},{regex:"CFNetwork/.+ Darwin/16.6.0.*(x86_64)|(x86_64-apple-)?darwin16.6.0",name:"Mac",version:"10.12.5"},{regex:"CFNetwork/.+ Darwin/16.5.0.*(x86_64)|(x86_64-apple-)?darwin16.5.0",name:"Mac",version:"10.12.4"},{regex:"CFNetwork/.+ Darwin/16.3.0.*(x86_64)|(x86_64-apple-)?darwin16.3.0",name:"Mac",version:"10.12.3"},{regex:"CFNetwork/.+ Darwin/16.2.0.*(x86_64)|(x86_64-apple-)?darwin16.2.0",name:"Mac",version:"10.12.2"},{regex:"CFNetwork/.+ Darwin/16.1.0.*(x86_64)|(x86_64-apple-)?darwin16.1.0",name:"Mac",version:"10.12.1"},{regex:"CFNetwork/811.*(x86_64)",name:"Mac",version:"10.12"},{regex:"CFNetwork/807",name:"Mac",version:"10.12"},{regex:"CFNetwork/.+ Darwin/15.6.0.*(x86_64)|(x86_64-apple-)?darwin15.6.0",name:"Mac",version:"10.11.6"},{regex:"CFNetwork/.+ Darwin/15.5.0.*(x86_64)|(x86_64-apple-)?darwin15.5.0",name:"Mac",version:"10.11.5"},{regex:"CFNetwork/.+ Darwin/15.4.0.*(x86_64)|(x86_64-apple-)?darwin15.4.0",name:"Mac",version:"10.11.4"},{regex:"CFNetwork/.+ Darwin/15.3.0.*(x86_64)|(x86_64-apple-)?darwin15.3.0",name:"Mac",version:"10.11.3"},{regex:"CFNetwork/.+ Darwin/15.2.0.*(x86_64)|(x86_64-apple-)?darwin15.2.0",name:"Mac",version:"10.11.2"},{regex:"CFNetwork/760",name:"Mac",version:"10.11"},{regex:"CFNetwork/.+ Darwin/14.5.0.*(x86_64)|(x86_64-apple-)?darwin14.5.0",name:"Mac",version:"10.10.5"},{regex:"CFNetwork/.+ Darwin/14.4.0.*(x86_64)|(x86_64-apple-)?darwin14.4.0",name:"Mac",version:"10.10.4"},{regex:"CFNetwork/.+ Darwin/14.3.0.*(x86_64)|(x86_64-apple-)?darwin14.3.0",name:"Mac",version:"10.10.3"},{regex:"CFNetwork/.+ Darwin/14.1.0.*(x86_64)|(x86_64-apple-)?darwin14.1.0",name:"Mac",version:"10.10.2"},{regex:"CFNetwork/720",name:"Mac",version:"10.10"},{regex:"CFNetwork/.+ Darwin/13.4.0.*(x86_64)|(x86_64-apple-)?darwin13.4.0",name:"Mac",version:"10.9.5"},{regex:"CFNetwork/.+ Darwin/13.3.0.*(x86_64)|(x86_64-apple-)?darwin13.3.0",name:"Mac",version:"10.9.4"},{regex:"CFNetwork/.+ Darwin/13.2.0.*(x86_64)|(x86_64-apple-)?darwin13.2.0",name:"Mac",version:"10.9.3"},{regex:"CFNetwork/.+ Darwin/13.1.0.*(x86_64)|(x86_64-apple-)?darwin13.1.0",name:"Mac",version:"10.9.2"},{regex:"CFNetwork/673",name:"Mac",version:"10.9"},{regex:"CFNetwork/.+ Darwin/12.5.0.*(x86_64)|(x86_64-apple-)?darwin12.5.0",name:"Mac",version:"10.8.5"},{regex:"CFNetwork/.+ Darwin/12.4.0.*(x86_64)|(x86_64-apple-)?darwin12.4.0",name:"Mac",version:"10.8.4"},{regex:"CFNetwork/.+ Darwin/12.3.0.*(x86_64)|(x86_64-apple-)?darwin12.3.0",name:"Mac",version:"10.8.3"},{regex:"CFNetwork/.+ Darwin/12.2.0.*(x86_64)|(x86_64-apple-)?darwin12.2.0",name:"Mac",version:"10.8.2"},{regex:"CFNetwork/.+ Darwin/12.1.0.*(x86_64)|(x86_64-apple-)?darwin12.1.0",name:"Mac",version:"10.8.1"},{regex:"CFNetwork/596",name:"Mac",version:"10.8"},{regex:"CFNetwork/.+ Darwin/11.5.0.*(x86_64)|(x86_64-apple-)?darwin11.5.0",name:"Mac",version:"10.7.5"},{regex:"CFNetwork/.+ Darwin/11.4.0.*(x86_64)|(x86_64-apple-)?darwin11.4.0",name:"Mac",version:"10.7.4"},{regex:"CFNetwork/.+ Darwin/11.3.0.*(x86_64)|(x86_64-apple-)?darwin11.3.0",name:"Mac",version:"10.7.3"},{regex:"CFNetwork/.+ Darwin/11.2.0.*(x86_64)|(x86_64-apple-)?darwin11.2.0",name:"Mac",version:"10.7.2"},{regex:"CFNetwork/.+ Darwin/11.1.0.*(x86_64)|(x86_64-apple-)?darwin11.1.0",name:"Mac",version:"10.7.1"},{regex:"CFNetwork/520",name:"Mac",version:"10.7"},{regex:"CFNetwork/454",name:"Mac",version:"10.6"},{regex:"CFNetwork/(?:438|422|339|330|221|220|217)",name:"Mac",version:"10.5"},{regex:"CFNetwork/12[89]",name:"Mac",version:"10.4"},{regex:"CFNetwork/1\\.2",name:"Mac",version:"10.3"},{regex:"CFNetwork/1\\.1",name:"Mac",version:"10.2"},{regex:"Mac[ +]OS[ +]?X(?:[ /](?:Version )?(\\d+(?:[_\\.]\\d+)+))?",name:"Mac",version:"$1"},{regex:"Mac (?:OS/)?(\\d+(?:[_\\.]\\d+)+)",name:"Mac",version:"$1"},{regex:"macOS/(\\d+[\\.\\d]+)",name:"Mac",version:"$1"},{regex:"Darwin|Macintosh|Mac_PowerPC|PPC|Mac PowerPC|iMac|MacBook|macOS|Sonos/.+\\(MDCR_",name:"Mac",version:""},{regex:"SeewoOS x86_64 (\\d+[\\.\\d]+)",name:"SeewoOS",version:"$1"},{regex:"CrOS [a-z0-9_]+ .* Chrome/(\\d+[\\.\\d]+)",name:"Chrome OS",version:"$1"},{regex:"(?:BB10;.+Version|Black[Bb]erry[0-9a-z]+|Black[Bb]erry.+Version)/(\\d+[\\.\\d]+)",name:"BlackBerry OS",version:"$1"},{regex:"RIM Tablet OS (\\d+[\\.\\d]+)",name:"BlackBerry Tablet OS",version:"$1"},{regex:"RIM Tablet OS|QNX|Play[Bb]ook",name:"BlackBerry Tablet OS",version:""},{regex:"BlackBerry",name:"BlackBerry OS",version:""},{regex:"bPod",name:"BlackBerry OS",version:""},{regex:"BeOS",name:"BeOS",version:""},{regex:"Symbian/3.+NokiaBrowser/7\\.3",name:"Symbian^3",version:"Anna"},{regex:"Symbian/3.+NokiaBrowser/7\\.4",name:"Symbian^3",version:"Belle"},{regex:"Symbian/3",name:"Symbian^3",version:""},{regex:"(?:Series ?60|SymbOS|S60)(?:[ /]?(\\d+[\\.\\d]+|V\\d+))?",name:"Symbian OS Series 60",version:"$1"},{regex:"Series40",name:"Symbian OS Series 40",version:""},{regex:"SymbianOS/(\\d+[\\.\\d]+)",name:"Symbian OS",version:"$1"},{regex:"MeeGo|WeTab",name:"MeeGo",version:""},{regex:"Symbian(?: OS)?|SymbOS",name:"Symbian OS",version:""},{regex:"Nokia",name:"Symbian",version:""},{regex:"(?:Mobile|Tablet);.+Firefox/\\d+\\.\\d+",name:"Firefox OS",version:""},{regex:"RISC OS(?:-NC)?(?:[ /](\\d+[\\.\\d]+))?",name:"RISC OS",version:"$1"},{regex:"Inferno(?:[ /](\\d+[\\.\\d]+))?",name:"Inferno",version:"$1"},{regex:"bada(?:[ /](\\d+[\\.\\d]+))?",name:"Bada",version:"$1"},{regex:"(?:Brew(?!-Applet)(?: MP)?|BMP)(?:[ /](\\d+[\\.\\d]+))?",name:"Brew",version:"$1"},{regex:"GoogleTV(?:[ /](\\d+[\\.\\d]+))?",name:"Google TV",version:"$1"},{regex:"AppleTV(?:/?(\\d+[\\.\\d]+))?",name:"Apple TV",version:"$1"},{regex:"WebTV/(\\d+[\\.\\d]+)",name:"WebTV",version:"$1"},{regex:"RemixOS 5.1.1",name:"Remix OS",version:"1"},{regex:"RemixOS 6.0",name:"Remix OS",version:"2"},{regex:"RemixOS",name:"Remix OS",version:""},{regex:"(?:SunOS|Solaris)(?:[/ ](\\d+[\\.\\d]+))?",name:"Solaris",version:"$1"},{regex:"AIX(?:[/ ]?(\\d+[\\.\\d]+))?",name:"AIX",version:"$1"},{regex:"HP-UX(?:[/ ]?(\\d+[\\.\\d]+))?",name:"HP-UX",version:"$1"},{regex:"FreeBSD(?:[/ ]?(\\d+[\\.\\d]+))?",name:"FreeBSD",version:"$1"},{regex:"NetBSD(?:[/ ]?(\\d+[\\.\\d]+))?",name:"NetBSD",version:"$1"},{regex:"OpenBSD(?:[/ ]?(\\d+[\\.\\d]+))?",name:"OpenBSD",version:"$1"},{regex:"DragonFly(?:[/ ]?(\\d+[\\.\\d]+))?",name:"DragonFly",version:"$1"},{regex:"Syllable(?:[/ ]?(\\d+[\\.\\d]+))?",name:"Syllable",version:"$1"},{regex:"IRIX(?:;64)?(?:[/ ]?(\\d+[\\.\\d]+))",name:"IRIX",version:"$1"},{regex:"OSF1(?:[/ ]?v?(\\d+[\\.\\d]+))?",name:"OSF1",version:"$1"},{regex:"Nintendo (Wii|Switch)",name:"Nintendo",version:"$1"},{regex:"PlayStation ?([34])",name:"PlayStation",version:"$1"},{regex:"Xbox|KIN\\.(?:One|Two)",name:"Xbox",version:"360"},{regex:"Nitro|Nintendo ([3]?DS[i]?)",name:"Nintendo Mobile",version:"$1"},{regex:"PlayStation ((?:Portable|Vita))",name:"PlayStation Portable",version:"$1"},{regex:"OS/2",name:"OS/2",version:""},{regex:"Linux(?:OS)?[^a-z]",name:"GNU/Linux",version:""}],qMe={AIX:"AIX",AND:"Android",AMG:"AmigaOS",ATV:"Apple TV",ARL:"Arch Linux",BTR:"BackTrack",SBA:"Bada",BEO:"BeOS",BLB:"BlackBerry OS",QNX:"BlackBerry Tablet OS",BMP:"Brew",CES:"CentOS",COS:"Chrome OS",CYN:"CyanogenMod",DEB:"Debian",DEE:"Deepin",DFB:"DragonFly",FED:"Fedora",FOS:"Firefox OS",FIR:"Fire OS",FRE:"Freebox",BSD:"FreeBSD",FYD:"FydeOS",GNT:"Gentoo",GTV:"Google TV",HPX:"HP-UX",HAI:"Haiku OS",IRI:"IRIX",INF:"Inferno",KOS:"KaiOS",KNO:"Knoppix",KBT:"Kubuntu",LIN:"GNU/Linux",LBT:"Lubuntu",VLN:"VectorLinux",MAC:"Mac",MAE:"Maemo",MDR:"Mandriva",SMG:"MeeGo",MCD:"MocorDroid",MIN:"Mint",MLD:"MildWild",MOR:"MorphOS",NBS:"NetBSD",MTK:"MTK / Nucleus",MRE:"MRE",WII:"Nintendo",NDS:"Nintendo Mobile",OS2:"OS/2",T64:"OSF1",OBS:"OpenBSD",ORD:"Ordissimo",PSP:"PlayStation Portable",PS3:"PlayStation",RHT:"Red Hat",ROS:"RISC OS",RSO:"Rosa",REM:"Remix OS",RZD:"RazoDroiD",SAB:"Sabayon",SSE:"SUSE",SAF:"Sailfish OS",SEE:"SeewoOS",SLW:"Slackware",SOS:"Solaris",SYL:"Syllable",SYM:"Symbian",SYS:"Symbian OS",S40:"Symbian OS Series 40",S60:"Symbian OS Series 60",SY3:"Symbian^3",TDX:"ThreadX",TIZ:"Tizen",TOS:"TmaxOS",UBT:"Ubuntu",WAS:"watchOS",WTV:"WebTV",WHS:"Whale OS",WIN:"Windows",WCE:"Windows CE",WIO:"Windows IoT",WMO:"Windows Mobile",WPH:"Windows Phone",WRT:"Windows RT",XBX:"Xbox",XBT:"Xubuntu",YNS:"YunOs",IOS:"iOS",POS:"palmOS",WOS:"webOS"},e2e={Android:["AND","CYN","FIR","REM","RZD","MLD","MCD","YNS"],AmigaOS:["AMG","MOR"],"Apple TV":["ATV"],BlackBerry:["BLB","QNX"],Brew:["BMP"],BeOS:["BEO","HAI"],"Chrome OS":["COS","FYD","SEE"],"Firefox OS":["FOS","KOS"],"Gaming Console":["WII","PS3"],"Google TV":["GTV"],IBM:["OS2"],iOS:["IOS","WAS"],"RISC OS":["ROS"],"GNU/Linux":["LIN","ARL","DEB","KNO","MIN","UBT","KBT","XBT","LBT","FED","RHT","VLN","MDR","GNT","SAB","SLW","SSE","CES","BTR","SAF","ORD","TOS","RSO","DEE","FRE"],Mac:["MAC"],"Mobile Gaming Console":["PSP","NDS","XBX"],"Real-time OS":["MTK","TDX","MRE"],"Other Mobile":["WOS","POS","SBA","TIZ","SMG","MAE"],Symbian:["SYM","SYS","SY3","S60","S40"],Unix:["SOS","AIX","HPX","BSD","NBS","OBS","DFB","SYL","IRI","T64","INF"],WebTV:["WTV"],Windows:["WIN"],"Windows Mobile":["WPH","WMO","WCE","WRT","WIO"],"Other Smart TV":["WHS"]},t2e={operatingSystem:qMe,osFamilies:e2e};var gE=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Dv,"__esModule",{value:!0});const r2e=gE(jMe),o2e=Mo,mE=Gt,_s=ft,pE=gE(t2e),i2e=["AmigaOS","IBM","GNU/Linux","Mac","Unix","Windows","BeOS","Chrome OS"],n2e=pE.default.operatingSystem,a2e=pE.default.osFamilies;class Id{constructor(t){this.options={versionTruncation:1},this.parse=e=>{const o={name:"",version:"",platform:this.parsePlatform(e)};for(const i of r2e.default){const n=_s.userAgentParser(i.regex,e);if(n)return o.name=mE.variableReplacement(i.name,n),o.version=o2e.formatVersion(mE.variableReplacement(i.version,n),this.options.versionTruncation),o.name==="lubuntu"&&(o.name="Lubuntu"),o.name==="debian"&&(o.name="Debian"),o.name==="YunOS"&&(o.name="YunOs"),o}return null},this.parsePlatform=e=>_s.userAgentParser("arm|aarch64|Watch ?OS|Watch1,[12]",e)?"ARM":_s.userAgentParser("mips",e)?"MIPS":_s.userAgentParser("sh4",e)?"SuperH":_s.userAgentParser("WOW64|x64|win64|amd64|x86_?64",e)?"x64":_s.userAgentParser("(?:i[0-9]|x)86|i86pc",e)?"x86":"",this.options=Object.assign(Object.assign({},this.options),t)}}Dv.default=Id,Id.getDesktopOsArray=()=>i2e,Id.getOsFamily=r=>{const t=Id.getOsShortName(r);for(const[e,o]of Object.entries(a2e))if(o.includes(t))return e;return""},Id.getOsShortName=r=>{for(const[t,e]of Object.entries(n2e))if(e===r)return t;return""};var Ov={};const s2e=["MDDR(JS)?","MDDC(JS)?","MDDS(JS)?"],l2e=["MAAR(JS)?"],d2e=["MASE(JS)?","MASP(JS)?","MASA(JS)?"],c2e=["MAAU","NP0[26789]","ASJB","ASU2(JS)?"],u2e=["MASM(JS)?","SMJB"],h2e=["MALC(JS)?","MALE(JS)?","MALN(JS)?","LCJB","LEN2"],g2e=["MATM(JS)?","MATB(JS)?","MATP(JS)?","TNJB","TAJB"],m2e=["MAMD"],p2e=["MAMI(JS)?","MAM3"],f2e=["MAGW(JS)?"],x2e=["MAFS(JS)?","FSJB"],v2e=["CPDTDF","CPNTDF(JS?)","CMNTDF(JS)?","CMDTDF(JS)?"],y2e=["HPCMHP","HPNTDF(JS)?","HPDTDF(JS)?"],_2e=["MANM(JS)?"],S2e=["Ordissimo","webissimo3"],b2e={Dell:s2e,Acer:l2e,Sony:d2e,Asus:c2e,Samsung:u2e,Lenovo:h2e,Toshiba:g2e,Medion:m2e,MSI:p2e,Gateway:f2e,Fujitsu:x2e,Compaq:v2e,HP:y2e,Hyrican:_2e,Ordissimo:S2e};var M2e=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ov,"__esModule",{value:!0});const A2e=M2e(b2e),T2e=ft;class w2e{constructor(){this.parse=t=>{for(const[e,o]of Object.entries(A2e.default))for(const i of o)if(T2e.userAgentParser(i,t))return e;return""}}}Ov.default=w2e;const C2e=[{regex:"360Spider(-Image|-Video)?",name:"360Spider",category:"Search bot",url:"https://www.so.com/help/help_3_2.html",producer:{name:"Online Media Group, Inc.",url:""}},{regex:"Aboundex",name:"Aboundexbot",category:"Search bot",url:"http://www.aboundex.com/crawler/",producer:{name:"Aboundex.com",url:"http://www.aboundex.com"}},{regex:"AcoonBot",name:"Acoon",category:"Search bot",url:"http://www.acoon.de/robot.asp",producer:{name:"Acoon GmbH",url:"http://www.acoon.de"}},{regex:"AddThis\\.com",name:"AddThis.com",category:"Social Media Agent",url:"",producer:{name:"Clearspring Technologies, Inc.",url:"http://www.clearspring.com"}},{regex:"AhrefsBot",name:"aHrefs Bot",category:"Crawler",url:"https://ahrefs.com/robot",producer:{name:"Ahrefs Pte Ltd",url:"https://ahrefs.com/robot"}},{regex:"ia_archiver|alexabot|verifybot",name:"Alexa Crawler",category:"Search bot",url:"https://support.alexa.com/hc/en-us/sections/200100794-Crawlers",producer:{name:"Alexa Internet",url:"https://www.alexa.com"}},{regex:"alexa site audit",name:"Alexa Site Audit",category:"Site Monitor",url:"https://support.alexa.com/hc/en-us/articles/200450194",producer:{name:"Alexa Internet",url:"https://www.alexa.com"}},{regex:"Amazon[ -]Route ?53[ -]Health[ -]Check[ -]Service",name:"Amazon Route53 Health Check",category:"Service Agent",producer:{name:"Amazon Web Services",url:"https://aws.amazon.com/"}},{regex:"AmorankSpider",name:"Amorank Spider",category:"Crawler",url:"http://amorank.com/webcrawler.html",producer:{name:"Amorank",url:"http://www.amorank.com"}},{regex:"ApacheBench",name:"ApacheBench",category:"Benchmark",url:"https://httpd.apache.org/docs/2.4/programs/ab.html",producer:{name:"The Apache Software Foundation",url:"https://www.apache.org/foundation/"}},{regex:"Applebot",name:"Applebot",category:"Crawler",url:"https://support.apple.com/en-us/HT204683",producer:{name:"Apple Inc",url:"https://www.apple.com"}},{regex:"AppSignalBot",name:"AppSignalBot",category:"Site Monitor",url:"https://docs.appsignal.com/uptime-monitoring/",producer:{name:"AppSignal",url:"https://appsignal.com/"}},{regex:"Arachni",name:"Arachni",category:"Security Checker",url:"https://www.arachni-scanner.com/",producer:{name:"Sarosys LLC",url:"https://www.sarosys.com/"}},{regex:"AspiegelBot",name:"AspiegelBot",category:"Crawler",url:"https://aspiegel.com/",producer:{name:"Huawei",url:"https://www.huawei.com/"}},{regex:"Castro 2, Episode Duration Lookup",name:"Castro 2",category:"Service Agent",url:"http://supertop.co/castro/",producer:{name:"Supertop",url:"http://supertop.co"}},{regex:"Curious George",name:"Analytics SEO Crawler",category:"Crawler",url:"http://www.analyticsseo.com/crawler",producer:{name:"Analytics SEO",url:"http://www.analyticsseo.com"}},{regex:"archive\\.org_bot|special_archiver",name:"archive.org bot",category:"Crawler",url:"https://archive.org/details/archive.org_bot",producer:{name:"The Internet Archive",url:"https://archive.org"}},{regex:"Ask Jeeves/Teoma",name:"Ask Jeeves",category:"Search bot",url:"",producer:{name:"Ask Jeeves Inc.",url:"http://www.ask.com"}},{regex:"Backlink-Check\\.de",name:"Backlink-Check.de",category:"Crawler",url:"http://www.backlink-check.de/bot.html",producer:{name:"Mediagreen Medienservice",url:"http://www.backlink-check.de"}},{regex:"BacklinkCrawler",name:"BacklinkCrawler",category:"Crawler",url:"http://www.backlinktest.com/crawler.html",producer:{name:"2.0Promotion GbR",url:"http://www.backlinktest.com"}},{regex:"baiduspider(-image)?|baidu Transcoder|baidu.*spider",name:"Baidu Spider",category:"Search bot",url:"http://www.baidu.com/search/spider.htm",producer:{name:"Baidu",url:"http://www.baidu.com"}},{regex:"BazQux",name:"BazQux Reader",url:"https://bazqux.com/fetcher",category:"Feed Fetcher",producer:{name:"",url:""}},{regex:"MSNBot|msrbot|bingbot|BingPreview|msnbot-(UDiscovery|NewsBlogs)|adidxbot",name:"BingBot",category:"Search bot",url:"http://search.msn.com/msnbot.htmn",producer:{name:"Microsoft Corporation",url:"http://www.microsoft.com"}},{regex:"Blekkobot",name:"Blekkobot",category:"Search bot",url:"http://blekko.com/about/blekkobot",producer:{name:"Blekko",url:"http://blekko.com"}},{regex:"BLEXBot(Test)?",name:"BLEXBot Crawler",category:"Crawler",url:"http://webmeup-crawler.com",producer:{name:"WebMeUp",url:"http://webmeup.com"}},{regex:"Bloglovin",name:"Bloglovin",url:"http://www.bloglovin.com",category:"Feed Fetcher",producer:{name:"",url:""}},{regex:"Blogtrottr",name:"Blogtrottr",url:"",category:"Feed Fetcher",producer:{name:"Blogtrottr Ltd",url:"https://blogtrottr.com/"}},{regex:"BoardReader Blog Indexer",name:"BoardReader Blog Indexer",category:"Crawler",producer:{name:"BoardReader",url:"https://boardreader.com/"}},{regex:"BountiiBot",name:"Bountii Bot",category:"Search bot",url:"http://bountii.com/contact.php",producer:{name:"Bountii Inc.",url:"http://bountii.com"}},{regex:"Browsershots",name:"Browsershots",category:"Service Agent",url:"http://browsershots.org/faq",producer:{name:"Browsershots.org",url:"http://browsershots.org"}},{regex:"BUbiNG",name:"BUbiNG",category:"Crawler",url:"http://law.di.unimi.it/BUbiNG.html",producer:{name:"The Laboratory for Web Algorithmics (LAW)",url:"http://law.di.unimi.it/software.php#buging"}},{regex:"(?{var t,e,o,i;for(const n of L2e.default)if(I2e.userAgentParser(n.regex,r))return{name:n.name,category:n.category||"",url:n.url||"",producer:{name:((e=(t=n)===null||t===void 0?void 0:t.producer)===null||e===void 0?void 0:e.name)||"",url:((i=(o=n)===null||o===void 0?void 0:o.producer)===null||i===void 0?void 0:i.url)||""}};return null}}},Bv={};Object.defineProperty(Bv,"__esModule",{value:!0}),Bv.versionCompare=(r,t,e)=>{let o,i,n=0;const a={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},s=d=>(d=(""+d).replace(/[_\-+]/g,"."),d=d.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,"."),d.length?d.split("."):[-8]),l=d=>d?isNaN(d)?a[d]||-7:parseInt(d,10):0;for(r=s(r),t=s(t),i=Math.max(r.length,t.length),o=0;ot[o]){n=1;break}}if(!e)return n;switch(e){case">":case"gt":return n>0;case">=":case"ge":return n>=0;case"<=":case"le":return n<=0;case"===":case"=":case"eq":return n===0;case"<>":case"!==":case"ne":return n!==0;case"":case"<":case"lt":return n<0;default:return null}};var Ed=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};const $2e=Ed(pv),D2e=Ed(Mv),Gv=Ed(Dv),O2e=Ed(Ov),B2e=Ed(sg),G2e=E2e,Jr=ft,ug=Bv;class N2e{constructor(t){this.options={skipBotDetection:!1,versionTruncation:1},this.parse=e=>{var o,i,n,a,s,l,d,c,u,h,g,p,x,m;const f={client:this.clientParser.parse(e),os:this.operatingSystemParser.parse(e),device:this.deviceParser.parse(e),bot:this.options.skipBotDetection?null:this.botParser.parse(e)},v=(o=f.os)===null||o===void 0?void 0:o.name,y=(i=f.os)===null||i===void 0?void 0:i.version,_=Gv.default.getOsFamily(v||"");if(!(!((n=f.device)===null||n===void 0)&&n.brand)){const S=this.vendorFragmentParser.parse(e);S&&(f.device||(f.device=this.createDeviceObject()),f.device.brand=S)}return!(!((a=f.device)===null||a===void 0)&&a.brand)&&["Apple TV","watchOS","iOS","Mac"].includes(v||"")&&(f.device||(f.device=this.createDeviceObject()),f.device.brand="Apple"),!(!((s=f.device)===null||s===void 0)&&s.type)&&_==="Android"&&Jr.userAgentParser("Chrome/[\\.0-9]*",e)&&(Jr.userAgentParser("Chrome/[.0-9]* (?:Mobile|eliboM)",e)?(f.device||(f.device=this.createDeviceObject()),f.device.type="smartphone"):Jr.userAgentParser("Chrome/[.0-9]* (?!Mobile)",e)&&(f.device||(f.device=this.createDeviceObject()),f.device.type="tablet")),(!(!((l=f.device)===null||l===void 0)&&l.type)&&this.hasAndroidTabletFragment(e)||Jr.userAgentParser("Opera Tablet",e))&&(f.device||(f.device=this.createDeviceObject()),f.device.type="tablet"),!(!((d=f.device)===null||d===void 0)&&d.type)&&this.hasAndroidMobileFragment(e)&&(f.device||(f.device=this.createDeviceObject()),f.device.type="smartphone"),!(!((c=f.device)===null||c===void 0)&&c.type)&&v==="Android"&&y!==""&&(ug.versionCompare(y,"2.0")===-1?(f.device||(f.device=this.createDeviceObject()),f.device.type="smartphone"):ug.versionCompare(y,"3.0")>=0&&ug.versionCompare(y,"4.0")===-1&&(f.device||(f.device=this.createDeviceObject()),f.device.type="tablet")),((u=f.device)===null||u===void 0?void 0:u.type)==="feature phone"&&_==="Android"&&(f.device.type="smartphone"),!(!((h=f.device)===null||h===void 0)&&h.type)&&this.isToucheEnabled(e)&&(v==="Windows RT"||v==="Windows"&&ug.versionCompare(y,"8.0")>=0)&&(f.device||(f.device=this.createDeviceObject()),f.device.type="tablet"),Jr.userAgentParser("Opera TV Store",e)&&(f.device||(f.device=this.createDeviceObject()),f.device.type="television"),Jr.userAgentParser("SmartTV|Tizen.+ TV .+$",e)&&(f.device||(f.device=this.createDeviceObject()),f.device.type="television"),!(!((g=f.device)===null||g===void 0)&&g.type)&&["Kylo","Espial TV Browser"].includes(((p=f.client)===null||p===void 0?void 0:p.name)||"")&&(f.device||(f.device=this.createDeviceObject()),f.device.type="television"),((x=f.device)===null||x===void 0?void 0:x.type)!=="desktop"&&Jr.userAgentParser("Desktop",e)!==null&&this.hasDesktopFragment(e)&&(f.device||(f.device=this.createDeviceObject()),f.device.type="desktop"),!(!((m=f.device)===null||m===void 0)&&m.type)&&this.isDesktop(f,_)&&(f.device||(f.device=this.createDeviceObject()),f.device.type="desktop"),f},this.hasAndroidMobileFragment=e=>Jr.userAgentParser("Android( [.0-9]+)?; Mobile;",e),this.hasAndroidTabletFragment=e=>Jr.userAgentParser("Android( [.0-9]+)?; Tablet;",e),this.hasDesktopFragment=e=>Jr.userAgentParser("Desktop (x(?:32|64)|WOW64);",e),this.isDesktop=(e,o)=>!e.os||this.usesMobileBrowser(e.client)?!1:Gv.default.getDesktopOsArray().includes(o),this.usesMobileBrowser=e=>{var o,i;return e?((o=e)===null||o===void 0?void 0:o.type)==="browser"&&B2e.default.isMobileOnlyBrowser((i=e)===null||i===void 0?void 0:i.name):!1},this.isToucheEnabled=e=>Jr.userAgentParser("Touch",e),this.createDeviceObject=()=>({type:"",brand:"",model:""}),this.options=Object.assign(Object.assign({},this.options),t),this.clientParser=new $2e.default(this.options),this.deviceParser=new D2e.default,this.operatingSystemParser=new Gv.default(this.options),this.vendorFragmentParser=new O2e.default,this.botParser=new G2e}}var k2e=N2e;const R2e=W3(k2e),F2e=new R2e,V2e=()=>{var o;const r=qr("other"),t=navigator.userAgent,e=(o=F2e.parse(t).os)==null?void 0:o.name;return e==="Mac"?r.value="apple":e!=null&&e.includes("Windows")?r.value="windows":(e!=null&&e.includes("Linux")||e!=null&&e.includes("Debian")||e!=null&&e.includes("Ubuntu"))&&(r.value="linux"),r},H2e={id:"advantage"},X2e={class:"advantages"},U2e={class:"code-block-container"},W2e=jr({__name:"crossPlatforms",setup(r){const t=V2e(),e=qr("");t.value!=="other"?e.value=t.value:e.value="apple";function o(a){e.value=a}const i=[{type:"apple",icon:"fa-brands fa-apple",iconColor:"#8465ff",code:`brew tap pivot-studio/tap -brew install pivot-lang`},{type:"windows",icon:"fa-brands fa-windows",iconColor:"#409eff",code:`scoop bucket add pivot https://github.com/Pivot-Studio/scoop -scoop install plc`},{type:"linux",icon:"fa-brands fa-linux",iconColor:"rgb(200, 150, 50)",code:`apt install wget gnupg -wget -O - https://pivotlang.tech/apt/public.key | apt-key add - -echo "deb [arch=amd64] https://pivotlang.tech/apt/repo focal main -# deb-src [arch=amd64] https://pivotlang.tech/apt/repo focal main -deb [arch=amd64] https://pivotlang.tech/apt/repo jammy main -# deb-src [arch=amd64] https://pivotlang.tech/apt/repo jammy main">/etc/apt/sources.list.d/pl.list -apt update -apt install pivot-lang`}],n=eAe(()=>{var a;return(a=i.find(s=>s.type===e.value))==null?void 0:a.code});return(a,s)=>{const l=CE("font-awesome-icon");return at(),dt("div",H2e,[s[0]||(s[0]=ie("div",{class:"gradient-font title"},"Cross Platforms",-1)),s[1]||(s[1]=ie("div",{class:"detail-describe"}," Install Pivot Lang compiler with only a few commands! ",-1)),ie("div",X2e,[(at(),dt(Nd,null,Fv(i,d=>ie("div",{class:Vv({"advantage-item":!0,"selected-item":d.type===e.value}),key:d.type},[We(l,{onClick:c=>o(d.type),inverse:"",icon:d.icon,style:PE({color:d.iconColor}),size:"10x",class:"picture"},null,8,["onClick","icon","style"])],2)),64))]),ie("div",U2e,[We(mte,{class:"code-block'",code:n.value},null,8,["code"])])])}}}),z2e=eo(W2e,[["__scopeId","data-v-dcca6d62"]]),K2e=[{name:"Chronostasys",github:"https://github.com/Chronostasys",avatar:"https://avatars.githubusercontent.com/u/49905799?v=4",identity:"core member && main developer"},{name:"kamome",github:"https://github.com/RINNE-TAN",avatar:"https://avatars.githubusercontent.com/u/73805584?v=4",identity:"core member"},{name:"CjiW",github:"https://github.com/CjiW",avatar:"https://avatars.githubusercontent.com/u/64598696?v=4",identity:"core member"},{name:"\u76D0\u7117\u4E73\u9E3D\u8FD8\u8981\u7802\u9505",github:"https://github.com/1360151219",avatar:"https://avatars.githubusercontent.com/u/74706849?v=4",identity:"core member"},{name:"ZZGuo",github:"https://github.com/Super-ZZGuo",avatar:"https://avatars.githubusercontent.com/u/75672325?v=4",identity:"developer"},{name:"Junxiao Deng",github:"https://github.com/husterdjx",avatar:"https://avatars.githubusercontent.com/u/80690447?v=4",identity:"developer"},{name:"Nolan",github:"https://github.com/KuJyoAi",avatar:"https://avatars.githubusercontent.com/u/87118768?v=4",identity:"developer"},{name:"Nick Ritchie",github:"https://github.com/nick887",avatar:"https://avatars.githubusercontent.com/u/57340076?v=4",identity:"developer"},{name:"matto",github:"https://github.com/matto49",avatar:"https://avatars.githubusercontent.com/u/54560462?v=4",identity:"page design"},{name:"MoonOld",github:"https://github.com/MoonOld",avatar:"https://avatars.githubusercontent.com/u/47448870?v=4",identity:"developer"},{name:"^1e%",github:"https://github.com/Alex4210987",avatar:"https://avatars.githubusercontent.com/u/113411296?v=4",identity:"developer"},{name:"Griffin",github:"https://github.com/xieyuschen",avatar:"https://avatars.githubusercontent.com/u/52945328?v=4",identity:"developer"}],hg=[{title:"hello world",code:`use std::io; -fn main() i64 { - println!("hello world!"); - return 0; -} -`},{title:"fibonacci",code:`use std::io; -fn main() i64 { - let result = getFibonacci(10); - println!(result); - return 0; -} - -fn getFibonacci(n: i64) i64 { - let pre = 0; - let nxt = 0; - let result = 1; - for let i = 0; i < n; i = i + 1 { - result = result + pre; - pre = nxt; - nxt = result; - } - return result; -} -`},{title:"fixed point",code:`use core::panic; -pub fn main() i64 { - let g = |f, x| => { - if x == 0 { - return 1; - } - return x * f(x - 1); - }; - let fact = Y(g); - for let x = 0; x < 10; x = x + 1 { - panic::assert(fact(x) == fact_recursion(x)); - } - return 0; -} - -struct Func { - f: |Func, A| => F; -} - -impl Func { - fn call(f: Func, x: A) F { - return self.f(f, x); - } - -} - -fn Y(g: ||A| => R, A| => R) |A| => R { - return |x| => { - return |f, x| => { - return f.call(f, x); - }(Func{ - f: |f, x| => { - return g(|x| => { - return f.call(f, x); - }, x); - } - }, x); - }; -} - -fn fact_recursion(x: i64) i64 { - if x == 0 { - return 1; - } - return x * fact_recursion(x - 1); -} - - -`},{title:"find islands",code:`use core::panic; -use std::io; -pub fn main() i64 { - // count = 5 - // 1, 0, 1, 1, 1 - // 1, 1, 0, 1, 1 - // 1, 0, 0, 1, 1 - // 0, 1, 1, 0, 0 - // 1, 0, 0, 1, 1 - let mp = [[1, 0, 1, 1, 1], [1, 1, 0, 1, 1], [1, 0, 0, 1, 1], [0, 1, 1, 0, 0], [1, 0, 0, 1, 1]]; - let c = count(mp); - panic::assert(c == 5); - println!(c); - return 0; -} - -pub fn count(mp: [[i64]]) i64 { - let res = 0; - let w = 5; - let h = 5; - let dfs: |i64, i64| => void; - dfs = |i, j| => { - if i == -1 || i == h || j == -1 || j == w || mp[i][j] == 0 { - return; - } - mp[i][j] = 0; - dfs(i + 1, j); - dfs(i, j + 1); - dfs(i - 1, j); - dfs(i, j - 1); - return; - }; - for let i = 0; i < h; i = i + 1 { - for let j = 0; j < w; j = j + 1 { - if mp[i][j] == 0 { - continue; - } - res = res + 1; - dfs(i, j); - } - } - return res; -} - -`},{title:"hash table",code:`use std::cols::hashtable; -use core::panic::assert; -use core::eq::*; - -fn main() i64 { - let table = hashtable::new_hash_table(10 as u64, 1 as u64); - table.insert("hello","world"); - table.insert("bye","bye"); - assert(table.get("hello") is string); - let v = table.get("hello") as string!; - assert("world".eq(&v)); - return 0; -} - -`}];var fE={exports:{}};(function(r,t){(function(e,o){r.exports=o()})(self,()=>(()=>{var e={4567:function(a,s,l){var d=this&&this.__decorate||function(y,_,S,b){var A,M=arguments.length,T=M<3?_:b===null?b=Object.getOwnPropertyDescriptor(_,S):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(y,_,S,b);else for(var w=y.length-1;w>=0;w--)(A=y[w])&&(T=(M<3?A(T):M>3?A(_,S,T):A(_,S))||T);return M>3&&T&&Object.defineProperty(_,S,T),T},c=this&&this.__param||function(y,_){return function(S,b){_(S,b,y)}};Object.defineProperty(s,"__esModule",{value:!0}),s.AccessibilityManager=void 0;const u=l(9042),h=l(6114),g=l(9924),p=l(844),x=l(5596),m=l(4725),f=l(3656);let v=s.AccessibilityManager=class extends p.Disposable{constructor(y,_){super(),this._terminal=y,this._renderService=_,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let S=0;Sthis._handleBoundaryFocus(S,0),this._bottomBoundaryFocusListener=S=>this._handleBoundaryFocus(S,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new g.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(S=>this._handleResize(S.rows))),this.register(this._terminal.onRender(S=>this._refreshRows(S.start,S.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(S=>this._handleChar(S))),this.register(this._terminal.onLineFeed(()=>this._handleChar(` -`))),this.register(this._terminal.onA11yTab(S=>this._handleTab(S))),this.register(this._terminal.onKey(S=>this._handleKey(S.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new x.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,f.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,p.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(y){for(let _=0;_0?this._charsToConsume.shift()!==y&&(this._charsToAnnounce+=y):this._charsToAnnounce+=y,y===` -`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=u.tooMuchOutput)),h.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityContainer.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,h.isMac&&this._liveRegion.remove()}_handleKey(y){this._clearLiveRegion(),/\p{Control}/u.test(y)||this._charsToConsume.push(y)}_refreshRows(y,_){this._liveRegionDebouncer.refresh(y,_,this._terminal.rows)}_renderRows(y,_){const S=this._terminal.buffer,b=S.lines.length.toString();for(let A=y;A<=_;A++){const M=S.translateBufferLineToString(S.ydisp+A,!0),T=(S.ydisp+A+1).toString(),w=this._rowElements[A];w&&(M.length===0?w.innerText="\xA0":w.textContent=M,w.setAttribute("aria-posinset",T),w.setAttribute("aria-setsize",b))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(y,_){const S=y.target,b=this._rowElements[_===0?1:this._rowElements.length-2];if(S.getAttribute("aria-posinset")===(_===0?"1":`${this._terminal.buffer.lines.length}`)||y.relatedTarget!==b)return;let A,M;if(_===0?(A=S,M=this._rowElements.pop(),this._rowContainer.removeChild(M)):(A=this._rowElements.shift(),M=S,this._rowContainer.removeChild(A)),A.removeEventListener("focus",this._topBoundaryFocusListener),M.removeEventListener("focus",this._bottomBoundaryFocusListener),_===0){const T=this._createAccessibilityTreeNode();this._rowElements.unshift(T),this._rowContainer.insertAdjacentElement("afterbegin",T)}else{const T=this._createAccessibilityTreeNode();this._rowElements.push(T),this._rowContainer.appendChild(T)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(_===0?-1:1),this._rowElements[_===0?1:this._rowElements.length-2].focus(),y.preventDefault(),y.stopImmediatePropagation()}_handleResize(y){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let _=this._rowContainer.children.length;_y;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const y=document.createElement("div");return y.setAttribute("role","listitem"),y.tabIndex=-1,this._refreshRowDimensions(y),y}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let y=0;y{function l(h){return h.replace(/\r?\n/g,"\r")}function d(h,g){return g?"\x1B[200~"+h+"\x1B[201~":h}function c(h,g,p,x){h=d(h=l(h),p.decPrivateModes.bracketedPasteMode&&x.rawOptions.ignoreBracketedPasteMode!==!0),p.triggerDataEvent(h,!0),g.value=""}function u(h,g,p){const x=p.getBoundingClientRect(),m=h.clientX-x.left-10,f=h.clientY-x.top-10;g.style.width="20px",g.style.height="20px",g.style.left=`${m}px`,g.style.top=`${f}px`,g.style.zIndex="1000",g.focus()}Object.defineProperty(s,"__esModule",{value:!0}),s.rightClickHandler=s.moveTextAreaUnderMouseCursor=s.paste=s.handlePasteEvent=s.copyHandler=s.bracketTextForPaste=s.prepareTextForTerminal=void 0,s.prepareTextForTerminal=l,s.bracketTextForPaste=d,s.copyHandler=function(h,g){h.clipboardData&&h.clipboardData.setData("text/plain",g.selectionText),h.preventDefault()},s.handlePasteEvent=function(h,g,p,x){h.stopPropagation(),h.clipboardData&&c(h.clipboardData.getData("text/plain"),g,p,x)},s.paste=c,s.moveTextAreaUnderMouseCursor=u,s.rightClickHandler=function(h,g,p,x,m){u(h,g,p),m&&x.rightClickSelect(h),g.value=x.selectionText,g.select()}},7239:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ColorContrastCache=void 0;const d=l(1505);s.ColorContrastCache=class{constructor(){this._color=new d.TwoKeyMap,this._css=new d.TwoKeyMap}setCss(c,u,h){this._css.set(c,u,h)}getCss(c,u){return this._css.get(c,u)}setColor(c,u,h){this._color.set(c,u,h)}getColor(c,u){return this._color.get(c,u)}clear(){this._color.clear(),this._css.clear()}}},3656:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.addDisposableDomListener=void 0,s.addDisposableDomListener=function(l,d,c,u){l.addEventListener(d,c,u);let h=!1;return{dispose:()=>{h||(h=!0,l.removeEventListener(d,c,u))}}}},6465:function(a,s,l){var d=this&&this.__decorate||function(m,f,v,y){var _,S=arguments.length,b=S<3?f:y===null?y=Object.getOwnPropertyDescriptor(f,v):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(m,f,v,y);else for(var A=m.length-1;A>=0;A--)(_=m[A])&&(b=(S<3?_(b):S>3?_(f,v,b):_(f,v))||b);return S>3&&b&&Object.defineProperty(f,v,b),b},c=this&&this.__param||function(m,f){return function(v,y){f(v,y,m)}};Object.defineProperty(s,"__esModule",{value:!0}),s.Linkifier2=void 0;const u=l(3656),h=l(8460),g=l(844),p=l(2585);let x=s.Linkifier2=class extends g.Disposable{get currentLink(){return this._currentLink}constructor(m){super(),this._bufferService=m,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new h.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new h.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,g.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,g.toDisposable)(()=>{this._lastMouseEvent=void 0})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0}))}registerLinkProvider(m){return this._linkProviders.push(m),{dispose:()=>{const f=this._linkProviders.indexOf(m);f!==-1&&this._linkProviders.splice(f,1)}}}attachToDom(m,f,v){this._element=m,this._mouseService=f,this._renderService=v,this.register((0,u.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,u.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,u.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,u.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(m){if(this._lastMouseEvent=m,!this._element||!this._mouseService)return;const f=this._positionFromMouseEvent(m,this._element,this._mouseService);if(!f)return;this._isMouseOut=!1;const v=m.composedPath();for(let y=0;y{S==null||S.forEach(b=>{b.link.dispose&&b.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=m.y);let _=!1;for(const[S,b]of this._linkProviders.entries())f?!((y=this._activeProviderReplies)===null||y===void 0)&&y.get(S)&&(_=this._checkLinkProviderResult(S,m,_)):b.provideLinks(m.y,A=>{var M,T;if(this._isMouseOut)return;const w=A==null?void 0:A.map(C=>({link:C}));(M=this._activeProviderReplies)===null||M===void 0||M.set(S,w),_=this._checkLinkProviderResult(S,m,_),((T=this._activeProviderReplies)===null||T===void 0?void 0:T.size)===this._linkProviders.length&&this._removeIntersectingLinks(m.y,this._activeProviderReplies)})}_removeIntersectingLinks(m,f){const v=new Set;for(let y=0;ym?this._bufferService.cols:b.link.range.end.x;for(let T=A;T<=M;T++){if(v.has(T)){_.splice(S--,1);break}v.add(T)}}}}_checkLinkProviderResult(m,f,v){var y;if(!this._activeProviderReplies)return v;const _=this._activeProviderReplies.get(m);let S=!1;for(let b=0;bthis._linkAtPosition(A.link,f));b&&(v=!0,this._handleNewLink(b))}if(this._activeProviderReplies.size===this._linkProviders.length&&!v)for(let b=0;bthis._linkAtPosition(M.link,f));if(A){v=!0,this._handleNewLink(A);break}}return v}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(m){if(!this._element||!this._mouseService||!this._currentLink)return;const f=this._positionFromMouseEvent(m,this._element,this._mouseService);f&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,f)&&this._currentLink.link.activate(m,this._currentLink.link.text)}_clearCurrentLink(m,f){this._element&&this._currentLink&&this._lastMouseEvent&&(!m||!f||this._currentLink.link.range.start.y>=m&&this._currentLink.link.range.end.y<=f)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,g.disposeArray)(this._linkCacheDisposables))}_handleNewLink(m){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;const f=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);f&&this._linkAtPosition(m.link,f)&&(this._currentLink=m,this._currentLink.state={decorations:{underline:m.link.decorations===void 0||m.link.decorations.underline,pointerCursor:m.link.decorations===void 0||m.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,m.link,this._lastMouseEvent),m.link.decorations={},Object.defineProperties(m.link.decorations,{pointerCursor:{get:()=>{var v,y;return(y=(v=this._currentLink)===null||v===void 0?void 0:v.state)===null||y===void 0?void 0:y.decorations.pointerCursor},set:v=>{var y,_;!((y=this._currentLink)===null||y===void 0)&&y.state&&this._currentLink.state.decorations.pointerCursor!==v&&(this._currentLink.state.decorations.pointerCursor=v,this._currentLink.state.isHovered&&((_=this._element)===null||_===void 0||_.classList.toggle("xterm-cursor-pointer",v)))}},underline:{get:()=>{var v,y;return(y=(v=this._currentLink)===null||v===void 0?void 0:v.state)===null||y===void 0?void 0:y.decorations.underline},set:v=>{var y,_,S;!((y=this._currentLink)===null||y===void 0)&&y.state&&((S=(_=this._currentLink)===null||_===void 0?void 0:_.state)===null||S===void 0?void 0:S.decorations.underline)!==v&&(this._currentLink.state.decorations.underline=v,this._currentLink.state.isHovered&&this._fireUnderlineEvent(m.link,v))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(v=>{if(!this._currentLink)return;const y=v.start===0?0:v.start+1+this._bufferService.buffer.ydisp,_=this._bufferService.buffer.ydisp+1+v.end;if(this._currentLink.link.range.start.y>=y&&this._currentLink.link.range.end.y<=_&&(this._clearCurrentLink(y,_),this._lastMouseEvent&&this._element)){const S=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);S&&this._askForLink(S,!1)}})))}_linkHover(m,f,v){var y;!((y=this._currentLink)===null||y===void 0)&&y.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(f,!0),this._currentLink.state.decorations.pointerCursor&&m.classList.add("xterm-cursor-pointer")),f.hover&&f.hover(v,f.text)}_fireUnderlineEvent(m,f){const v=m.range,y=this._bufferService.buffer.ydisp,_=this._createLinkUnderlineEvent(v.start.x-1,v.start.y-y-1,v.end.x,v.end.y-y-1,void 0);(f?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(_)}_linkLeave(m,f,v){var y;!((y=this._currentLink)===null||y===void 0)&&y.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(f,!1),this._currentLink.state.decorations.pointerCursor&&m.classList.remove("xterm-cursor-pointer")),f.leave&&f.leave(v,f.text)}_linkAtPosition(m,f){const v=m.range.start.y*this._bufferService.cols+m.range.start.x,y=m.range.end.y*this._bufferService.cols+m.range.end.x,_=f.y*this._bufferService.cols+f.x;return v<=_&&_<=y}_positionFromMouseEvent(m,f,v){const y=v.getCoords(m,f,this._bufferService.cols,this._bufferService.rows);if(y)return{x:y[0],y:y[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(m,f,v,y,_){return{x1:m,y1:f,x2:v,y2:y,cols:this._bufferService.cols,fg:_}}};s.Linkifier2=x=d([c(0,p.IBufferService)],x)},9042:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.tooMuchOutput=s.promptLabel=void 0,s.promptLabel="Terminal input",s.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(a,s,l){var d=this&&this.__decorate||function(x,m,f,v){var y,_=arguments.length,S=_<3?m:v===null?v=Object.getOwnPropertyDescriptor(m,f):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(x,m,f,v);else for(var b=x.length-1;b>=0;b--)(y=x[b])&&(S=(_<3?y(S):_>3?y(m,f,S):y(m,f))||S);return _>3&&S&&Object.defineProperty(m,f,S),S},c=this&&this.__param||function(x,m){return function(f,v){m(f,v,x)}};Object.defineProperty(s,"__esModule",{value:!0}),s.OscLinkProvider=void 0;const u=l(511),h=l(2585);let g=s.OscLinkProvider=class{constructor(x,m,f){this._bufferService=x,this._optionsService=m,this._oscLinkService=f}provideLinks(x,m){var f;const v=this._bufferService.buffer.lines.get(x-1);if(!v)return void m(void 0);const y=[],_=this._optionsService.rawOptions.linkHandler,S=new u.CellData,b=v.getTrimmedLength();let A=-1,M=-1,T=!1;for(let w=0;w_?_.activate($,O,P):p(0,O),hover:($,O)=>{var N;return(N=_==null?void 0:_.hover)===null||N===void 0?void 0:N.call(_,$,O,P)},leave:($,O)=>{var N;return(N=_==null?void 0:_.leave)===null||N===void 0?void 0:N.call(_,$,O,P)}})}T=!1,S.hasExtendedAttrs()&&S.extended.urlId?(M=w,A=S.extended.urlId):(M=-1,A=-1)}}m(y)}};function p(x,m){if(confirm(`Do you want to navigate to ${m}? - -WARNING: This link could potentially be dangerous`)){const f=window.open();if(f){try{f.opener=null}catch{}f.location.href=m}else console.warn("Opening link blocked as opener could not be cleared")}}s.OscLinkProvider=g=d([c(0,h.IBufferService),c(1,h.IOptionsService),c(2,h.IOscLinkService)],g)},6193:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.RenderDebouncer=void 0,s.RenderDebouncer=class{constructor(l,d){this._parentWindow=l,this._renderCallback=d,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._parentWindow.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(l){return this._refreshCallbacks.push(l),this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh())),this._animationFrame}refresh(l,d,c){this._rowCount=c,l=l!==void 0?l:0,d=d!==void 0?d:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,l):l,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,d):d,this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return void this._runRefreshCallbacks();const l=Math.max(this._rowStart,0),d=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(l,d),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const l of this._refreshCallbacks)l(0);this._refreshCallbacks=[]}}},5596:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ScreenDprMonitor=void 0;const d=l(844);class c extends d.Disposable{constructor(h){super(),this._parentWindow=h,this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this.register((0,d.toDisposable)(()=>{this.clearListener()}))}setListener(h){this._listener&&this.clearListener(),this._listener=h,this._outerListener=()=>{this._listener&&(this._listener(this._parentWindow.devicePixelRatio,this._currentDevicePixelRatio),this._updateDpr())},this._updateDpr()}_updateDpr(){var h;this._outerListener&&((h=this._resolutionMediaMatchList)===null||h===void 0||h.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)}}s.ScreenDprMonitor=c},3236:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Terminal=void 0;const d=l(3614),c=l(3656),u=l(6465),h=l(9042),g=l(3730),p=l(1680),x=l(3107),m=l(5744),f=l(2950),v=l(1296),y=l(428),_=l(4269),S=l(5114),b=l(8934),A=l(3230),M=l(9312),T=l(4725),w=l(6731),C=l(8055),P=l(8969),L=l(8460),$=l(844),O=l(6114),N=l(8437),R=l(2584),I=l(7399),D=l(5941),G=l(9074),k=l(2585),H=l(5435),z=l(4567),Q=typeof window<"u"?window.document:null;class q extends P.CoreTerminal{get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}constructor(B={}){super(B),this.browser=O,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this.register(new $.MutableDisposable),this._onCursorMove=this.register(new L.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new L.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new L.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new L.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new L.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new L.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new L.EventEmitter),this._onBlur=this.register(new L.EventEmitter),this._onA11yCharEmitter=this.register(new L.EventEmitter),this._onA11yTabEmitter=this.register(new L.EventEmitter),this._onWillOpen=this.register(new L.EventEmitter),this._setup(),this.linkifier2=this.register(this._instantiationService.createInstance(u.Linkifier2)),this.linkifier2.registerLinkProvider(this._instantiationService.createInstance(g.OscLinkProvider)),this._decorationService=this._instantiationService.createInstance(G.DecorationService),this._instantiationService.setService(k.IDecorationService,this._decorationService),this.register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this.register(this._inputHandler.onRequestRefreshRows((F,U)=>this.refresh(F,U))),this.register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this.register(this._inputHandler.onRequestReset(()=>this.reset())),this.register(this._inputHandler.onRequestWindowsOptionsReport(F=>this._reportWindowsOptions(F))),this.register(this._inputHandler.onColor(F=>this._handleColorEvent(F))),this.register((0,L.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,L.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,L.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,L.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize(F=>this._afterResize(F.cols,F.rows))),this.register((0,$.toDisposable)(()=>{var F,U;this._customKeyEventHandler=void 0,(U=(F=this.element)===null||F===void 0?void 0:F.parentNode)===null||U===void 0||U.removeChild(this.element)}))}_handleColorEvent(B){if(this._themeService)for(const F of B){let U,X="";switch(F.index){case 256:U="foreground",X="10";break;case 257:U="background",X="11";break;case 258:U="cursor",X="12";break;default:U="ansi",X="4;"+F.index}switch(F.type){case 0:const j=C.color.toColorRGB(U==="ansi"?this._themeService.colors.ansi[F.index]:this._themeService.colors[U]);this.coreService.triggerDataEvent(`${R.C0.ESC}]${X};${(0,D.toRgbString)(j)}${R.C1_ESCAPED.ST}`);break;case 1:if(U==="ansi")this._themeService.modifyColors(J=>J.ansi[F.index]=C.rgba.toColor(...F.color));else{const J=U;this._themeService.modifyColors(ge=>ge[J]=C.rgba.toColor(...F.color))}break;case 2:this._themeService.restoreColor(F.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(B){B?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(z.AccessibilityManager,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(B){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(R.C0.ESC+"[I"),this.updateCursorStyle(B),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var B;return(B=this.textarea)===null||B===void 0?void 0:B.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(R.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;const B=this.buffer.ybase+this.buffer.y,F=this.buffer.lines.get(B);if(!F)return;const U=Math.min(this.buffer.x,this.cols-1),X=this._renderService.dimensions.css.cell.height,j=F.getWidth(U),J=this._renderService.dimensions.css.cell.width*j,ge=this.buffer.y*this._renderService.dimensions.css.cell.height,fe=U*this._renderService.dimensions.css.cell.width;this.textarea.style.left=fe+"px",this.textarea.style.top=ge+"px",this.textarea.style.width=J+"px",this.textarea.style.height=X+"px",this.textarea.style.lineHeight=X+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,c.addDisposableDomListener)(this.element,"copy",F=>{this.hasSelection()&&(0,d.copyHandler)(F,this._selectionService)}));const B=F=>(0,d.handlePasteEvent)(F,this.textarea,this.coreService,this.optionsService);this.register((0,c.addDisposableDomListener)(this.textarea,"paste",B)),this.register((0,c.addDisposableDomListener)(this.element,"paste",B)),O.isFirefox?this.register((0,c.addDisposableDomListener)(this.element,"mousedown",F=>{F.button===2&&(0,d.rightClickHandler)(F,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this.register((0,c.addDisposableDomListener)(this.element,"contextmenu",F=>{(0,d.rightClickHandler)(F,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),O.isLinux&&this.register((0,c.addDisposableDomListener)(this.element,"auxclick",F=>{F.button===1&&(0,d.moveTextAreaUnderMouseCursor)(F,this.textarea,this.screenElement)}))}_bindKeys(){this.register((0,c.addDisposableDomListener)(this.textarea,"keyup",B=>this._keyUp(B),!0)),this.register((0,c.addDisposableDomListener)(this.textarea,"keydown",B=>this._keyDown(B),!0)),this.register((0,c.addDisposableDomListener)(this.textarea,"keypress",B=>this._keyPress(B),!0)),this.register((0,c.addDisposableDomListener)(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this.register((0,c.addDisposableDomListener)(this.textarea,"compositionupdate",B=>this._compositionHelper.compositionupdate(B))),this.register((0,c.addDisposableDomListener)(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this.register((0,c.addDisposableDomListener)(this.textarea,"input",B=>this._inputEvent(B),!0)),this.register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(B){var F;if(!B)throw new Error("Terminal requires a parent element.");B.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=B.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),B.appendChild(this.element);const U=Q.createDocumentFragment();this._viewportElement=Q.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),U.appendChild(this._viewportElement),this._viewportScrollArea=Q.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=Q.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=Q.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),U.appendChild(this.screenElement),this.textarea=Q.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",h.promptLabel),O.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this._instantiationService.createInstance(S.CoreBrowserService,this.textarea,(F=this._document.defaultView)!==null&&F!==void 0?F:window),this._instantiationService.setService(T.ICoreBrowserService,this._coreBrowserService),this.register((0,c.addDisposableDomListener)(this.textarea,"focus",X=>this._handleTextAreaFocus(X))),this.register((0,c.addDisposableDomListener)(this.textarea,"blur",()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(y.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(T.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(w.ThemeService),this._instantiationService.setService(T.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(_.CharacterJoinerService),this._instantiationService.setService(T.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(A.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(T.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(X=>this._onRender.fire(X))),this.onResize(X=>this._renderService.resize(X.cols,X.rows)),this._compositionView=Q.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(f.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(U);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._mouseService=this._instantiationService.createInstance(b.MouseService),this._instantiationService.setService(T.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(p.Viewport,this._viewportElement,this._viewportScrollArea),this.viewport.onRequestScrollLines(X=>this.scrollLines(X.amount,X.suppressScrollEvent,1)),this.register(this._inputHandler.onRequestSyncScrollBar(()=>this.viewport.syncScrollArea())),this.register(this.viewport),this.register(this.onCursorMove(()=>{this._renderService.handleCursorMove(),this._syncTextArea()})),this.register(this.onResize(()=>this._renderService.handleResize(this.cols,this.rows))),this.register(this.onBlur(()=>this._renderService.handleBlur())),this.register(this.onFocus(()=>this._renderService.handleFocus())),this.register(this._renderService.onDimensionsChange(()=>this.viewport.syncScrollArea())),this._selectionService=this.register(this._instantiationService.createInstance(M.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(T.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(X=>this.scrollLines(X.amount,X.suppressScrollEvent))),this.register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this.register(this._selectionService.onRequestRedraw(X=>this._renderService.handleSelectionChanged(X.start,X.end,X.columnSelectMode))),this.register(this._selectionService.onLinuxMouseSelection(X=>{this.textarea.value=X,this.textarea.focus(),this.textarea.select()})),this.register(this._onScroll.event(X=>{this.viewport.syncScrollArea(),this._selectionService.refresh()})),this.register((0,c.addDisposableDomListener)(this._viewportElement,"scroll",()=>this._selectionService.refresh())),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(x.BufferDecorationRenderer,this.screenElement)),this.register((0,c.addDisposableDomListener)(this.element,"mousedown",X=>this._selectionService.handleMouseDown(X))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(z.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",X=>this._handleScreenReaderModeOptionChange(X))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(m.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",X=>{!this._overviewRulerRenderer&&X&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(m.OverviewRulerRenderer,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(v.DomRenderer,this.element,this.screenElement,this._viewportElement,this.linkifier2)}bindMouse(){const B=this,F=this.element;function U(J){const ge=B._mouseService.getMouseReportCoords(J,B.screenElement);if(!ge)return!1;let fe,Oe;switch(J.overrideType||J.type){case"mousemove":Oe=32,J.buttons===void 0?(fe=3,J.button!==void 0&&(fe=J.button<3?J.button:3)):fe=1&J.buttons?0:4&J.buttons?1:2&J.buttons?2:3;break;case"mouseup":Oe=0,fe=J.button<3?J.button:3;break;case"mousedown":Oe=1,fe=J.button<3?J.button:3;break;case"wheel":if(B.viewport.getLinesScrolled(J)===0)return!1;Oe=J.deltaY<0?0:1,fe=4;break;default:return!1}return!(Oe===void 0||fe===void 0||fe>4)&&B.coreMouseService.triggerMouseEvent({col:ge.col,row:ge.row,x:ge.x,y:ge.y,button:fe,action:Oe,ctrl:J.ctrlKey,alt:J.altKey,shift:J.shiftKey})}const X={mouseup:null,wheel:null,mousedrag:null,mousemove:null},j={mouseup:J=>(U(J),J.buttons||(this._document.removeEventListener("mouseup",X.mouseup),X.mousedrag&&this._document.removeEventListener("mousemove",X.mousedrag)),this.cancel(J)),wheel:J=>(U(J),this.cancel(J,!0)),mousedrag:J=>{J.buttons&&U(J)},mousemove:J=>{J.buttons||U(J)}};this.register(this.coreMouseService.onProtocolChange(J=>{J?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(J)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&J?X.mousemove||(F.addEventListener("mousemove",j.mousemove),X.mousemove=j.mousemove):(F.removeEventListener("mousemove",X.mousemove),X.mousemove=null),16&J?X.wheel||(F.addEventListener("wheel",j.wheel,{passive:!1}),X.wheel=j.wheel):(F.removeEventListener("wheel",X.wheel),X.wheel=null),2&J?X.mouseup||(F.addEventListener("mouseup",j.mouseup),X.mouseup=j.mouseup):(this._document.removeEventListener("mouseup",X.mouseup),F.removeEventListener("mouseup",X.mouseup),X.mouseup=null),4&J?X.mousedrag||(X.mousedrag=j.mousedrag):(this._document.removeEventListener("mousemove",X.mousedrag),X.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,c.addDisposableDomListener)(F,"mousedown",J=>{if(J.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(J))return U(J),X.mouseup&&this._document.addEventListener("mouseup",X.mouseup),X.mousedrag&&this._document.addEventListener("mousemove",X.mousedrag),this.cancel(J)})),this.register((0,c.addDisposableDomListener)(F,"wheel",J=>{if(!X.wheel){if(!this.buffer.hasScrollback){const ge=this.viewport.getLinesScrolled(J);if(ge===0)return;const fe=R.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(J.deltaY<0?"A":"B");let Oe="";for(let Ve=0;Ve{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(J),this.cancel(J)},{passive:!0})),this.register((0,c.addDisposableDomListener)(F,"touchmove",J=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(J)?void 0:this.cancel(J)},{passive:!1}))}refresh(B,F){var U;(U=this._renderService)===null||U===void 0||U.refreshRows(B,F)}updateCursorStyle(B){var F;!((F=this._selectionService)===null||F===void 0)&&F.shouldColumnSelect(B)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(B,F,U=0){var X;U===1?(super.scrollLines(B,F,U),this.refresh(0,this.rows-1)):(X=this.viewport)===null||X===void 0||X.scrollLines(B)}paste(B){(0,d.paste)(B,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(B){this._customKeyEventHandler=B}registerLinkProvider(B){return this.linkifier2.registerLinkProvider(B)}registerCharacterJoiner(B){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");const F=this._characterJoinerService.register(B);return this.refresh(0,this.rows-1),F}deregisterCharacterJoiner(B){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(B)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(B){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+B)}registerDecoration(B){return this._decorationService.registerDecoration(B)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(B,F,U){this._selectionService.setSelection(B,F,U)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var B;(B=this._selectionService)===null||B===void 0||B.clearSelection()}selectAll(){var B;(B=this._selectionService)===null||B===void 0||B.selectAll()}selectLines(B,F){var U;(U=this._selectionService)===null||U===void 0||U.selectLines(B,F)}_keyDown(B){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(B)===!1)return!1;const F=this.browser.isMac&&this.options.macOptionIsMeta&&B.altKey;if(!F&&!this._compositionHelper.keydown(B))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;F||B.key!=="Dead"&&B.key!=="AltGraph"||(this._unprocessedDeadKey=!0);const U=(0,I.evaluateKeyboardEvent)(B,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(B),U.type===3||U.type===2){const X=this.rows-1;return this.scrollLines(U.type===2?-X:X),this.cancel(B,!0)}return U.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,B)||(U.cancel&&this.cancel(B,!0),!U.key||!!(B.key&&!B.ctrlKey&&!B.altKey&&!B.metaKey&&B.key.length===1&&B.key.charCodeAt(0)>=65&&B.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(U.key!==R.C0.ETX&&U.key!==R.C0.CR||(this.textarea.value=""),this._onKey.fire({key:U.key,domEvent:B}),this._showCursor(),this.coreService.triggerDataEvent(U.key,!0),!this.optionsService.rawOptions.screenReaderMode||B.altKey||B.ctrlKey?this.cancel(B,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(B,F){const U=B.isMac&&!this.options.macOptionIsMeta&&F.altKey&&!F.ctrlKey&&!F.metaKey||B.isWindows&&F.altKey&&F.ctrlKey&&!F.metaKey||B.isWindows&&F.getModifierState("AltGraph");return F.type==="keypress"?U:U&&(!F.keyCode||F.keyCode>47)}_keyUp(B){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(B)===!1||(function(F){return F.keyCode===16||F.keyCode===17||F.keyCode===18}(B)||this.focus(),this.updateCursorStyle(B),this._keyPressHandled=!1)}_keyPress(B){let F;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(B)===!1)return!1;if(this.cancel(B),B.charCode)F=B.charCode;else if(B.which===null||B.which===void 0)F=B.keyCode;else{if(B.which===0||B.charCode===0)return!1;F=B.which}return!(!F||(B.altKey||B.ctrlKey||B.metaKey)&&!this._isThirdLevelShift(this.browser,B)||(F=String.fromCharCode(F),this._onKey.fire({key:F,domEvent:B}),this._showCursor(),this.coreService.triggerDataEvent(F,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(B){if(B.data&&B.inputType==="insertText"&&(!B.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;const F=B.data;return this.coreService.triggerDataEvent(F,!0),this.cancel(B),!0}return!1}resize(B,F){B!==this.cols||F!==this.rows?super.resize(B,F):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(B,F){var U,X;(U=this._charSizeService)===null||U===void 0||U.measure(),(X=this.viewport)===null||X===void 0||X.syncScrollArea(!0)}clear(){var B;if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let F=1;F{Object.defineProperty(s,"__esModule",{value:!0}),s.TimeBasedDebouncer=void 0,s.TimeBasedDebouncer=class{constructor(l,d=1e3){this._renderCallback=l,this._debounceThresholdMS=d,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(l,d,c){this._rowCount=c,l=l!==void 0?l:0,d=d!==void 0?d:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,l):l,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,d):d;const u=Date.now();if(u-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=u,this._innerRefresh();else if(!this._additionalRefreshRequested){const h=u-this._lastRefreshMs,g=this._debounceThresholdMS-h;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},g)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;const l=Math.max(this._rowStart,0),d=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(l,d)}}},1680:function(a,s,l){var d=this&&this.__decorate||function(f,v,y,_){var S,b=arguments.length,A=b<3?v:_===null?_=Object.getOwnPropertyDescriptor(v,y):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(f,v,y,_);else for(var M=f.length-1;M>=0;M--)(S=f[M])&&(A=(b<3?S(A):b>3?S(v,y,A):S(v,y))||A);return b>3&&A&&Object.defineProperty(v,y,A),A},c=this&&this.__param||function(f,v){return function(y,_){v(y,_,f)}};Object.defineProperty(s,"__esModule",{value:!0}),s.Viewport=void 0;const u=l(3656),h=l(4725),g=l(8460),p=l(844),x=l(2585);let m=s.Viewport=class extends p.Disposable{constructor(f,v,y,_,S,b,A,M){super(),this._viewportElement=f,this._scrollArea=v,this._bufferService=y,this._optionsService=_,this._charSizeService=S,this._renderService=b,this._coreBrowserService=A,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this._onRequestScrollLines=this.register(new g.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,u.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(T=>this._activeBuffer=T.activeBuffer)),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange(T=>this._renderDimensions=T)),this._handleThemeChange(M.colors),this.register(M.onChangeColors(T=>this._handleThemeChange(T))),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.syncScrollArea())),setTimeout(()=>this.syncScrollArea())}_handleThemeChange(f){this._viewportElement.style.backgroundColor=f.background.css}reset(){this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._coreBrowserService.window.requestAnimationFrame(()=>this.syncScrollArea())}_refresh(f){if(f)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderService.dimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;const v=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.css.canvas.height);this._lastRecordedBufferHeight!==v&&(this._lastRecordedBufferHeight=v,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const f=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==f&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=f),this._refreshAnimationFrame=null}syncScrollArea(f=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(f);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(f)}_handleScroll(f){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._onRequestScrollLines.fire({amount:0,suppressScrollEvent:!0});const v=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._onRequestScrollLines.fire({amount:v,suppressScrollEvent:!0})}_smoothScroll(){if(this._isDisposed||this._smoothScrollState.origin===-1||this._smoothScrollState.target===-1)return;const f=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(f*(this._smoothScrollState.target-this._smoothScrollState.origin)),f<1?this._coreBrowserService.window.requestAnimationFrame(()=>this._smoothScroll()):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(f,v){const y=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(v<0&&this._viewportElement.scrollTop!==0||v>0&&y0&&(_=P),S=""}}return{bufferElements:b,cursorElement:_}}getLinesScrolled(f){if(f.deltaY===0||f.shiftKey)return 0;let v=this._applyScrollModifier(f.deltaY,f);return f.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(v/=this._currentRowHeight+0,this._wheelPartialScroll+=v,v=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):f.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(v*=this._bufferService.rows),v}_applyScrollModifier(f,v){const y=this._optionsService.rawOptions.fastScrollModifier;return y==="alt"&&v.altKey||y==="ctrl"&&v.ctrlKey||y==="shift"&&v.shiftKey?f*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:f*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(f){this._lastTouchY=f.touches[0].pageY}handleTouchMove(f){const v=this._lastTouchY-f.touches[0].pageY;return this._lastTouchY=f.touches[0].pageY,v!==0&&(this._viewportElement.scrollTop+=v,this._bubbleScroll(f,v))}};s.Viewport=m=d([c(2,x.IBufferService),c(3,x.IOptionsService),c(4,h.ICharSizeService),c(5,h.IRenderService),c(6,h.ICoreBrowserService),c(7,h.IThemeService)],m)},3107:function(a,s,l){var d=this&&this.__decorate||function(m,f,v,y){var _,S=arguments.length,b=S<3?f:y===null?y=Object.getOwnPropertyDescriptor(f,v):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(m,f,v,y);else for(var A=m.length-1;A>=0;A--)(_=m[A])&&(b=(S<3?_(b):S>3?_(f,v,b):_(f,v))||b);return S>3&&b&&Object.defineProperty(f,v,b),b},c=this&&this.__param||function(m,f){return function(v,y){f(v,y,m)}};Object.defineProperty(s,"__esModule",{value:!0}),s.BufferDecorationRenderer=void 0;const u=l(3656),h=l(4725),g=l(844),p=l(2585);let x=s.BufferDecorationRenderer=class extends g.Disposable{constructor(m,f,v,y){super(),this._screenElement=m,this._bufferService=f,this._decorationService=v,this._renderService=y,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange(()=>this._doRefreshDecorations())),this.register(this._renderService.onDimensionsChange(()=>{this._dimensionsChanged=!0,this._queueRefresh()})),this.register((0,u.addDisposableDomListener)(window,"resize",()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt})),this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh())),this.register(this._decorationService.onDecorationRemoved(_=>this._removeDecoration(_))),this.register((0,g.toDisposable)(()=>{this._container.remove(),this._decorationElements.clear()}))}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this._doRefreshDecorations(),this._animationFrame=void 0}))}_doRefreshDecorations(){for(const m of this._decorationService.decorations)this._renderDecoration(m);this._dimensionsChanged=!1}_renderDecoration(m){this._refreshStyle(m),this._dimensionsChanged&&this._refreshXPosition(m)}_createElement(m){var f,v;const y=document.createElement("div");y.classList.add("xterm-decoration"),y.classList.toggle("xterm-decoration-top-layer",((f=m==null?void 0:m.options)===null||f===void 0?void 0:f.layer)==="top"),y.style.width=`${Math.round((m.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,y.style.height=(m.options.height||1)*this._renderService.dimensions.css.cell.height+"px",y.style.top=(m.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",y.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;const _=(v=m.options.x)!==null&&v!==void 0?v:0;return _&&_>this._bufferService.cols&&(y.style.display="none"),this._refreshXPosition(m,y),y}_refreshStyle(m){const f=m.marker.line-this._bufferService.buffers.active.ydisp;if(f<0||f>=this._bufferService.rows)m.element&&(m.element.style.display="none",m.onRenderEmitter.fire(m.element));else{let v=this._decorationElements.get(m);v||(v=this._createElement(m),m.element=v,this._decorationElements.set(m,v),this._container.appendChild(v),m.onDispose(()=>{this._decorationElements.delete(m),v.remove()})),v.style.top=f*this._renderService.dimensions.css.cell.height+"px",v.style.display=this._altBufferIsActive?"none":"block",m.onRenderEmitter.fire(v)}}_refreshXPosition(m,f=m.element){var v;if(!f)return;const y=(v=m.options.x)!==null&&v!==void 0?v:0;(m.options.anchor||"left")==="right"?f.style.right=y?y*this._renderService.dimensions.css.cell.width+"px":"":f.style.left=y?y*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(m){var f;(f=this._decorationElements.get(m))===null||f===void 0||f.remove(),this._decorationElements.delete(m),m.dispose()}};s.BufferDecorationRenderer=x=d([c(1,p.IBufferService),c(2,p.IDecorationService),c(3,h.IRenderService)],x)},5871:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ColorZoneStore=void 0,s.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(l){if(l.options.overviewRulerOptions){for(const d of this._zones)if(d.color===l.options.overviewRulerOptions.color&&d.position===l.options.overviewRulerOptions.position){if(this._lineIntersectsZone(d,l.marker.line))return;if(this._lineAdjacentToZone(d,l.marker.line,l.options.overviewRulerOptions.position))return void this._addLineToZone(d,l.marker.line)}if(this._zonePoolIndex=l.startBufferLine&&d<=l.endBufferLine}_lineAdjacentToZone(l,d,c){return d>=l.startBufferLine-this._linePadding[c||"full"]&&d<=l.endBufferLine+this._linePadding[c||"full"]}_addLineToZone(l,d){l.startBufferLine=Math.min(l.startBufferLine,d),l.endBufferLine=Math.max(l.endBufferLine,d)}}},5744:function(a,s,l){var d=this&&this.__decorate||function(_,S,b,A){var M,T=arguments.length,w=T<3?S:A===null?A=Object.getOwnPropertyDescriptor(S,b):A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(_,S,b,A);else for(var C=_.length-1;C>=0;C--)(M=_[C])&&(w=(T<3?M(w):T>3?M(S,b,w):M(S,b))||w);return T>3&&w&&Object.defineProperty(S,b,w),w},c=this&&this.__param||function(_,S){return function(b,A){S(b,A,_)}};Object.defineProperty(s,"__esModule",{value:!0}),s.OverviewRulerRenderer=void 0;const u=l(5871),h=l(3656),g=l(4725),p=l(844),x=l(2585),m={full:0,left:0,center:0,right:0},f={full:0,left:0,center:0,right:0},v={full:0,left:0,center:0,right:0};let y=s.OverviewRulerRenderer=class extends p.Disposable{get _width(){return this._optionsService.options.overviewRulerWidth||0}constructor(_,S,b,A,M,T,w){var C;super(),this._viewportElement=_,this._screenElement=S,this._bufferService=b,this._decorationService=A,this._renderService=M,this._optionsService=T,this._coreBrowseService=w,this._colorZoneStore=new u.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),(C=this._viewportElement.parentElement)===null||C===void 0||C.insertBefore(this._canvas,this._viewportElement);const P=this._canvas.getContext("2d");if(!P)throw new Error("Ctx cannot be null");this._ctx=P,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,p.toDisposable)(()=>{var L;(L=this._canvas)===null||L===void 0||L.remove()}))}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this.register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0)))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())}))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender(()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",()=>this._queueRefresh(!0))),this.register((0,h.addDisposableDomListener)(this._coreBrowseService.window,"resize",()=>this._queueRefresh(!0))),this._queueRefresh(!0)}_refreshDrawConstants(){const _=Math.floor(this._canvas.width/3),S=Math.ceil(this._canvas.width/3);f.full=this._canvas.width,f.left=_,f.center=S,f.right=_,this._refreshDrawHeightConstants(),v.full=0,v.left=0,v.center=f.left,v.right=f.left+f.center}_refreshDrawHeightConstants(){m.full=Math.round(2*this._coreBrowseService.dpr);const _=this._canvas.height/this._bufferService.buffer.lines.length,S=Math.round(Math.max(Math.min(_,12),6)*this._coreBrowseService.dpr);m.left=S,m.center=S,m.right=S}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*m.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*m.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*m.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*m.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowseService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowseService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(const S of this._decorationService.decorations)this._colorZoneStore.addDecoration(S);this._ctx.lineWidth=1;const _=this._colorZoneStore.zones;for(const S of _)S.position!=="full"&&this._renderColorZone(S);for(const S of _)S.position==="full"&&this._renderColorZone(S);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(_){this._ctx.fillStyle=_.color,this._ctx.fillRect(v[_.position||"full"],Math.round((this._canvas.height-1)*(_.startBufferLine/this._bufferService.buffers.active.lines.length)-m[_.position||"full"]/2),f[_.position||"full"],Math.round((this._canvas.height-1)*((_.endBufferLine-_.startBufferLine)/this._bufferService.buffers.active.lines.length)+m[_.position||"full"]))}_queueRefresh(_,S){this._shouldUpdateDimensions=_||this._shouldUpdateDimensions,this._shouldUpdateAnchor=S||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowseService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}};s.OverviewRulerRenderer=y=d([c(2,x.IBufferService),c(3,x.IDecorationService),c(4,g.IRenderService),c(5,x.IOptionsService),c(6,g.ICoreBrowserService)],y)},2950:function(a,s,l){var d=this&&this.__decorate||function(x,m,f,v){var y,_=arguments.length,S=_<3?m:v===null?v=Object.getOwnPropertyDescriptor(m,f):v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(x,m,f,v);else for(var b=x.length-1;b>=0;b--)(y=x[b])&&(S=(_<3?y(S):_>3?y(m,f,S):y(m,f))||S);return _>3&&S&&Object.defineProperty(m,f,S),S},c=this&&this.__param||function(x,m){return function(f,v){m(f,v,x)}};Object.defineProperty(s,"__esModule",{value:!0}),s.CompositionHelper=void 0;const u=l(4725),h=l(2585),g=l(2584);let p=s.CompositionHelper=class{get isComposing(){return this._isComposing}constructor(x,m,f,v,y,_){this._textarea=x,this._compositionView=m,this._bufferService=f,this._optionsService=v,this._coreService=y,this._renderService=_,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(x){this._compositionView.textContent=x.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(x){if(this._isComposing||this._isSendingComposition){if(x.keyCode===229||x.keyCode===16||x.keyCode===17||x.keyCode===18)return!1;this._finalizeComposition(!1)}return x.keyCode!==229||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(x){if(this._compositionView.classList.remove("active"),this._isComposing=!1,x){const m={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{if(this._isSendingComposition){let f;this._isSendingComposition=!1,m.start+=this._dataAlreadySent.length,f=this._isComposing?this._textarea.value.substring(m.start,m.end):this._textarea.value.substring(m.start),f.length>0&&this._coreService.triggerDataEvent(f,!0)}},0)}else{this._isSendingComposition=!1;const m=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(m,!0)}}_handleAnyTextareaChanges(){const x=this._textarea.value;setTimeout(()=>{if(!this._isComposing){const m=this._textarea.value,f=m.replace(x,"");this._dataAlreadySent=f,m.length>x.length?this._coreService.triggerDataEvent(f,!0):m.lengththis.updateCompositionElements(!0),0)}}};s.CompositionHelper=p=d([c(2,h.IBufferService),c(3,h.IOptionsService),c(4,h.ICoreService),c(5,u.IRenderService)],p)},9806:(a,s)=>{function l(d,c,u){const h=u.getBoundingClientRect(),g=d.getComputedStyle(u),p=parseInt(g.getPropertyValue("padding-left")),x=parseInt(g.getPropertyValue("padding-top"));return[c.clientX-h.left-p,c.clientY-h.top-x]}Object.defineProperty(s,"__esModule",{value:!0}),s.getCoords=s.getCoordsRelativeToElement=void 0,s.getCoordsRelativeToElement=l,s.getCoords=function(d,c,u,h,g,p,x,m,f){if(!p)return;const v=l(d,c,u);return v?(v[0]=Math.ceil((v[0]+(f?x/2:0))/x),v[1]=Math.ceil(v[1]/m),v[0]=Math.min(Math.max(v[0],1),h+(f?1:0)),v[1]=Math.min(Math.max(v[1],1),g),v):void 0}},9504:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.moveToCellSequence=void 0;const d=l(2584);function c(m,f,v,y){const _=m-u(m,v),S=f-u(f,v),b=Math.abs(_-S)-function(A,M,T){let w=0;const C=A-u(A,T),P=M-u(M,T);for(let L=0;L=0&&mf?"A":"B"}function g(m,f,v,y,_,S){let b=m,A=f,M="";for(;b!==v||A!==y;)b+=_?1:-1,_&&b>S.cols-1?(M+=S.buffer.translateBufferLineToString(A,!1,m,b),b=0,m=0,A++):!_&&b<0&&(M+=S.buffer.translateBufferLineToString(A,!1,0,m+1),b=S.cols-1,m=b,A--);return M+S.buffer.translateBufferLineToString(A,!1,m,b)}function p(m,f){const v=f?"O":"[";return d.C0.ESC+v+m}function x(m,f){m=Math.floor(m);let v="";for(let y=0;y0?C-u(C,P):T;const O=C,N=function(R,I,D,G,k,H){let z;return z=c(D,G,k,H).length>0?G-u(G,k):I,R=D&&zm?"D":"C",x(Math.abs(_-m),p(b,y));b=S>f?"D":"C";const A=Math.abs(S-f);return x(function(M,T){return T.cols-M}(S>f?m:_,v)+(A-1)*v.cols+1+((S>f?_:m)-1),p(b,y))}},1296:function(a,s,l){var d=this&&this.__decorate||function(P,L,$,O){var N,R=arguments.length,I=R<3?L:O===null?O=Object.getOwnPropertyDescriptor(L,$):O;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(P,L,$,O);else for(var D=P.length-1;D>=0;D--)(N=P[D])&&(I=(R<3?N(I):R>3?N(L,$,I):N(L,$))||I);return R>3&&I&&Object.defineProperty(L,$,I),I},c=this&&this.__param||function(P,L){return function($,O){L($,O,P)}};Object.defineProperty(s,"__esModule",{value:!0}),s.DomRenderer=void 0;const u=l(3787),h=l(2550),g=l(2223),p=l(6171),x=l(4725),m=l(8055),f=l(8460),v=l(844),y=l(2585),_="xterm-dom-renderer-owner-",S="xterm-rows",b="xterm-fg-",A="xterm-bg-",M="xterm-focus",T="xterm-selection";let w=1,C=s.DomRenderer=class extends v.Disposable{constructor(P,L,$,O,N,R,I,D,G,k){super(),this._element=P,this._screenElement=L,this._viewportElement=$,this._linkifier2=O,this._charSizeService=R,this._optionsService=I,this._bufferService=D,this._coreBrowserService=G,this._themeService=k,this._terminalClass=w++,this._rowElements=[],this.onRequestRedraw=this.register(new f.EventEmitter).event,this._rowContainer=document.createElement("div"),this._rowContainer.classList.add(S),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=document.createElement("div"),this._selectionContainer.classList.add(T),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,p.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._themeService.onChangeColors(H=>this._injectCss(H))),this._injectCss(this._themeService.colors),this._rowFactory=N.createInstance(u.DomRendererRowFactory,document),this._element.classList.add(_+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline(H=>this._handleLinkHover(H))),this.register(this._linkifier2.onHideLinkUnderline(H=>this._handleLinkLeave(H))),this.register((0,v.toDisposable)(()=>{this._element.classList.remove(_+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()})),this._widthCache=new h.WidthCache(document),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){const P=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*P,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*P),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/P),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/P),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(const $ of this._rowElements)$.style.width=`${this.dimensions.css.canvas.width}px`,$.style.height=`${this.dimensions.css.cell.height}px`,$.style.lineHeight=`${this.dimensions.css.cell.height}px`,$.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));const L=`${this._terminalSelector} .${S} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=L,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(P){this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let L=`${this._terminalSelector} .${S} { color: ${P.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;L+=`${this._terminalSelector} .${S} .xterm-dim { color: ${m.color.multiplyOpacity(P.foreground,.5).css};}`,L+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`,L+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { border-bottom-style: hidden; }}",L+="@keyframes blink_block_"+this._terminalClass+` { 0% { background-color: ${P.cursor.css}; color: ${P.cursorAccent.css}; } 50% { background-color: inherit; color: ${P.cursor.css}; }}`,L+=`${this._terminalSelector} .${S}.${M} .xterm-cursor.xterm-cursor-blink:not(.xterm-cursor-block) { animation: blink_box_shadow_`+this._terminalClass+` 1s step-end infinite;}${this._terminalSelector} .${S}.${M} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: blink_block_`+this._terminalClass+` 1s step-end infinite;}${this._terminalSelector} .${S} .xterm-cursor.xterm-cursor-block { background-color: ${P.cursor.css}; color: ${P.cursorAccent.css};}${this._terminalSelector} .${S} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${P.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${S} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${P.cursor.css} inset;}${this._terminalSelector} .${S} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${P.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,L+=`${this._terminalSelector} .${T} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${T} div { position: absolute; background-color: ${P.selectionBackgroundOpaque.css};}${this._terminalSelector} .${T} div { position: absolute; background-color: ${P.selectionInactiveBackgroundOpaque.css};}`;for(const[$,O]of P.ansi.entries())L+=`${this._terminalSelector} .${b}${$} { color: ${O.css}; }${this._terminalSelector} .${b}${$}.xterm-dim { color: ${m.color.multiplyOpacity(O,.5).css}; }${this._terminalSelector} .${A}${$} { background-color: ${O.css}; }`;L+=`${this._terminalSelector} .${b}${g.INVERTED_DEFAULT_COLOR} { color: ${m.color.opaque(P.background).css}; }${this._terminalSelector} .${b}${g.INVERTED_DEFAULT_COLOR}.xterm-dim { color: ${m.color.multiplyOpacity(m.color.opaque(P.background),.5).css}; }${this._terminalSelector} .${A}${g.INVERTED_DEFAULT_COLOR} { background-color: ${P.foreground.css}; }`,this._themeStyleElement.textContent=L}_setDefaultSpacing(){const P=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${P}px`,this._rowFactory.defaultSpacing=P}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(P,L){for(let $=this._rowElements.length;$<=L;$++){const O=document.createElement("div");this._rowContainer.appendChild(O),this._rowElements.push(O)}for(;this._rowElements.length>L;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(P,L){this._refreshRowElements(P,L),this._updateDimensions()}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(M)}handleFocus(){this._rowContainer.classList.add(M),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(P,L,$){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(P,L,$),this.renderRows(0,this._bufferService.rows-1),!P||!L)return;const O=P[1]-this._bufferService.buffer.ydisp,N=L[1]-this._bufferService.buffer.ydisp,R=Math.max(O,0),I=Math.min(N,this._bufferService.rows-1);if(R>=this._bufferService.rows||I<0)return;const D=document.createDocumentFragment();if($){const G=P[0]>L[0];D.appendChild(this._createSelectionElement(R,G?L[0]:P[0],G?P[0]:L[0],I-R+1))}else{const G=O===R?P[0]:0,k=R===N?L[0]:this._bufferService.cols;D.appendChild(this._createSelectionElement(R,G,k));const H=I-R-1;if(D.appendChild(this._createSelectionElement(R+1,0,this._bufferService.cols,H)),R!==I){const z=N===I?L[0]:this._bufferService.cols;D.appendChild(this._createSelectionElement(I,0,z))}}this._selectionContainer.appendChild(D)}_createSelectionElement(P,L,$,O=1){const N=document.createElement("div");return N.style.height=O*this.dimensions.css.cell.height+"px",N.style.top=P*this.dimensions.css.cell.height+"px",N.style.left=L*this.dimensions.css.cell.width+"px",N.style.width=this.dimensions.css.cell.width*($-L)+"px",N}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(const P of this._rowElements)P.replaceChildren()}renderRows(P,L){const $=this._bufferService.buffer,O=$.ybase+$.y,N=Math.min($.x,this._bufferService.cols-1),R=this._optionsService.rawOptions.cursorBlink,I=this._optionsService.rawOptions.cursorStyle,D=this._optionsService.rawOptions.cursorInactiveStyle;for(let G=P;G<=L;G++){const k=G+$.ydisp,H=this._rowElements[G],z=$.lines.get(k);if(!H||!z)break;H.replaceChildren(...this._rowFactory.createRow(z,k,k===O,I,D,N,R,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${_}${this._terminalClass}`}_handleLinkHover(P){this._setCellUnderline(P.x1,P.x2,P.y1,P.y2,P.cols,!0)}_handleLinkLeave(P){this._setCellUnderline(P.x1,P.x2,P.y1,P.y2,P.cols,!1)}_setCellUnderline(P,L,$,O,N,R){$<0&&(P=0),O<0&&(L=0);const I=this._bufferService.rows-1;$=Math.max(Math.min($,I),0),O=Math.max(Math.min(O,I),0),N=Math.min(N,this._bufferService.cols);const D=this._bufferService.buffer,G=D.ybase+D.y,k=Math.min(D.x,N-1),H=this._optionsService.rawOptions.cursorBlink,z=this._optionsService.rawOptions.cursorStyle,Q=this._optionsService.rawOptions.cursorInactiveStyle;for(let q=$;q<=O;++q){const se=q+D.ydisp,B=this._rowElements[q],F=D.lines.get(se);if(!B||!F)break;B.replaceChildren(...this._rowFactory.createRow(F,se,se===G,z,Q,k,H,this.dimensions.css.cell.width,this._widthCache,R?q===$?P:0:-1,R?(q===O?L:N)-1:-1))}}};s.DomRenderer=C=d([c(4,y.IInstantiationService),c(5,x.ICharSizeService),c(6,y.IOptionsService),c(7,y.IBufferService),c(8,x.ICoreBrowserService),c(9,x.IThemeService)],C)},3787:function(a,s,l){var d=this&&this.__decorate||function(b,A,M,T){var w,C=arguments.length,P=C<3?A:T===null?T=Object.getOwnPropertyDescriptor(A,M):T;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(b,A,M,T);else for(var L=b.length-1;L>=0;L--)(w=b[L])&&(P=(C<3?w(P):C>3?w(A,M,P):w(A,M))||P);return C>3&&P&&Object.defineProperty(A,M,P),P},c=this&&this.__param||function(b,A){return function(M,T){A(M,T,b)}};Object.defineProperty(s,"__esModule",{value:!0}),s.DomRendererRowFactory=void 0;const u=l(2223),h=l(643),g=l(511),p=l(2585),x=l(8055),m=l(4725),f=l(4269),v=l(6171),y=l(3734);let _=s.DomRendererRowFactory=class{constructor(b,A,M,T,w,C,P){this._document=b,this._characterJoinerService=A,this._optionsService=M,this._coreBrowserService=T,this._coreService=w,this._decorationService=C,this._themeService=P,this._workCell=new g.CellData,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(b,A,M){this._selectionStart=b,this._selectionEnd=A,this._columnSelectMode=M}createRow(b,A,M,T,w,C,P,L,$,O,N){const R=[],I=this._characterJoinerService.getJoinedCharacters(A),D=this._themeService.colors;let G,k=b.getNoBgTrimmedLength();M&&k0&&ge===I[0][0]){Oe=!0;const et=I.shift();_e=new f.JoinedCellData(this._workCell,b.translateToString(!0,et[0],et[1]),et[1]-et[0]),Ve=et[1]-1,fe=_e.getWidth()}const Zt=this._isCellInSelection(ge,A),_t=M&&ge===C,Bi=J&&ge>=O&&ge<=N;let Ao=!1;this._decorationService.forEachDecorationAtCell(ge,A,void 0,et=>{Ao=!0});let To=_e.getChars()||h.WHITESPACE_CELL_CHAR;if(To===" "&&(_e.isUnderline()||_e.isOverline())&&(To="\xA0"),X=fe*L-$.get(To,_e.isBold(),_e.isItalic()),G){if(H&&(Zt&&U||!Zt&&!U&&_e.bg===Q)&&(Zt&&U&&D.selectionForeground||_e.fg===q)&&_e.extended.ext===se&&Bi===B&&X===F&&!_t&&!Oe&&!Ao){z+=To,H++;continue}H&&(G.textContent=z),G=this._document.createElement("span"),H=0,z=""}else G=this._document.createElement("span");if(Q=_e.bg,q=_e.fg,se=_e.extended.ext,B=Bi,F=X,U=Zt,Oe&&C>=ge&&C<=Ve&&(C=ge),!this._coreService.isCursorHidden&&_t){if(j.push("xterm-cursor"),this._coreBrowserService.isFocused)P&&j.push("xterm-cursor-blink"),j.push(T==="bar"?"xterm-cursor-bar":T==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(w)switch(w){case"outline":j.push("xterm-cursor-outline");break;case"block":j.push("xterm-cursor-block");break;case"bar":j.push("xterm-cursor-bar");break;case"underline":j.push("xterm-cursor-underline")}}if(_e.isBold()&&j.push("xterm-bold"),_e.isItalic()&&j.push("xterm-italic"),_e.isDim()&&j.push("xterm-dim"),z=_e.isInvisible()?h.WHITESPACE_CELL_CHAR:_e.getChars()||h.WHITESPACE_CELL_CHAR,_e.isUnderline()&&(j.push(`xterm-underline-${_e.extended.underlineStyle}`),z===" "&&(z="\xA0"),!_e.isUnderlineColorDefault()))if(_e.isUnderlineColorRGB())G.style.textDecorationColor=`rgb(${y.AttributeData.toColorRGB(_e.getUnderlineColor()).join(",")})`;else{let et=_e.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&_e.isBold()&&et<8&&(et+=8),G.style.textDecorationColor=D.ansi[et].css}_e.isOverline()&&(j.push("xterm-overline"),z===" "&&(z="\xA0")),_e.isStrikethrough()&&j.push("xterm-strikethrough"),Bi&&(G.style.textDecoration="underline");let Yt=_e.getFgColor(),$d=_e.getFgColorMode(),wo=_e.getBgColor(),Dd=_e.getBgColorMode();const Nv=!!_e.isInverse();if(Nv){const et=Yt;Yt=wo,wo=et;const Y2e=$d;$d=Dd,Dd=Y2e}let Gi,kv,Ni,Od=!1;switch(this._decorationService.forEachDecorationAtCell(ge,A,void 0,et=>{et.options.layer!=="top"&&Od||(et.backgroundColorRGB&&(Dd=50331648,wo=et.backgroundColorRGB.rgba>>8&16777215,Gi=et.backgroundColorRGB),et.foregroundColorRGB&&($d=50331648,Yt=et.foregroundColorRGB.rgba>>8&16777215,kv=et.foregroundColorRGB),Od=et.options.layer==="top")}),!Od&&Zt&&(Gi=this._coreBrowserService.isFocused?D.selectionBackgroundOpaque:D.selectionInactiveBackgroundOpaque,wo=Gi.rgba>>8&16777215,Dd=50331648,Od=!0,D.selectionForeground&&($d=50331648,Yt=D.selectionForeground.rgba>>8&16777215,kv=D.selectionForeground)),Od&&j.push("xterm-decoration-top"),Dd){case 16777216:case 33554432:Ni=D.ansi[wo],j.push(`xterm-bg-${wo}`);break;case 50331648:Ni=x.rgba.toColor(wo>>16,wo>>8&255,255&wo),this._addStyle(G,`background-color:#${S((wo>>>0).toString(16),"0",6)}`);break;default:Nv?(Ni=D.foreground,j.push(`xterm-bg-${u.INVERTED_DEFAULT_COLOR}`)):Ni=D.background}switch(Gi||_e.isDim()&&(Gi=x.color.multiplyOpacity(Ni,.5)),$d){case 16777216:case 33554432:_e.isBold()&&Yt<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(Yt+=8),this._applyMinimumContrast(G,Ni,D.ansi[Yt],_e,Gi,void 0)||j.push(`xterm-fg-${Yt}`);break;case 50331648:const et=x.rgba.toColor(Yt>>16&255,Yt>>8&255,255&Yt);this._applyMinimumContrast(G,Ni,et,_e,Gi,kv)||this._addStyle(G,`color:#${S(Yt.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(G,Ni,D.foreground,_e,Gi,void 0)||Nv&&j.push(`xterm-fg-${u.INVERTED_DEFAULT_COLOR}`)}j.length&&(G.className=j.join(" "),j.length=0),_t||Oe||Ao?G.textContent=z:H++,X!==this.defaultSpacing&&(G.style.letterSpacing=`${X}px`),R.push(G),ge=Ve}return G&&H&&(G.textContent=z),R}_applyMinimumContrast(b,A,M,T,w,C){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,v.excludeFromContrastRatioDemands)(T.getCode()))return!1;const P=this._getContrastCache(T);let L;if(w||C||(L=P.getColor(A.rgba,M.rgba)),L===void 0){const $=this._optionsService.rawOptions.minimumContrastRatio/(T.isDim()?2:1);L=x.color.ensureContrastRatio(w||A,C||M,$),P.setColor((w||A).rgba,(C||M).rgba,L??null)}return!!L&&(this._addStyle(b,`color:${L.css}`),!0)}_getContrastCache(b){return b.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(b,A){b.setAttribute("style",`${b.getAttribute("style")||""}${A};`)}_isCellInSelection(b,A){const M=this._selectionStart,T=this._selectionEnd;return!(!M||!T)&&(this._columnSelectMode?M[0]<=T[0]?b>=M[0]&&A>=M[1]&&b=M[1]&&b>=T[0]&&A<=T[1]:A>M[1]&&A=M[0]&&b=M[0])}};function S(b,A,M){for(;b.length{Object.defineProperty(s,"__esModule",{value:!0}),s.WidthCache=void 0,s.WidthCache=class{constructor(l){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=l.createElement("div"),this._container.style.position="absolute",this._container.style.top="-50000px",this._container.style.width="50000px",this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";const d=l.createElement("span"),c=l.createElement("span");c.style.fontWeight="bold";const u=l.createElement("span");u.style.fontStyle="italic";const h=l.createElement("span");h.style.fontWeight="bold",h.style.fontStyle="italic",this._measureElements=[d,c,u,h],this._container.appendChild(d),this._container.appendChild(c),this._container.appendChild(u),this._container.appendChild(h),l.body.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(l,d,c,u){l===this._font&&d===this._fontSize&&c===this._weight&&u===this._weightBold||(this._font=l,this._fontSize=d,this._weight=c,this._weightBold=u,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${c}`,this._measureElements[1].style.fontWeight=`${u}`,this._measureElements[2].style.fontWeight=`${c}`,this._measureElements[3].style.fontWeight=`${u}`,this.clear())}get(l,d,c){let u=0;if(!d&&!c&&l.length===1&&(u=l.charCodeAt(0))<256)return this._flat[u]!==-9999?this._flat[u]:this._flat[u]=this._measure(l,0);let h=l;d&&(h+="B"),c&&(h+="I");let g=this._holey.get(h);if(g===void 0){let p=0;d&&(p|=1),c&&(p|=2),g=this._measure(l,p),this._holey.set(h,g)}return g}_measure(l,d){const c=this._measureElements[d];return c.textContent=l.repeat(32),c.offsetWidth/32}}},2223:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.TEXT_BASELINE=s.DIM_OPACITY=s.INVERTED_DEFAULT_COLOR=void 0;const d=l(6114);s.INVERTED_DEFAULT_COLOR=257,s.DIM_OPACITY=.5,s.TEXT_BASELINE=d.isFirefox||d.isLegacyEdge?"bottom":"ideographic"},6171:(a,s)=>{function l(d){return 57508<=d&&d<=57558}Object.defineProperty(s,"__esModule",{value:!0}),s.createRenderDimensions=s.excludeFromContrastRatioDemands=s.isRestrictedPowerlineGlyph=s.isPowerlineGlyph=s.throwIfFalsy=void 0,s.throwIfFalsy=function(d){if(!d)throw new Error("value must not be falsy");return d},s.isPowerlineGlyph=l,s.isRestrictedPowerlineGlyph=function(d){return 57520<=d&&d<=57527},s.excludeFromContrastRatioDemands=function(d){return l(d)||function(c){return 9472<=c&&c<=9631}(d)},s.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}}},456:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.SelectionModel=void 0,s.SelectionModel=class{constructor(l){this._bufferService=l,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){const l=this.selectionStart[0]+this.selectionStartLength;return l>this._bufferService.cols?l%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(l/this._bufferService.cols)-1]:[l%this._bufferService.cols,this.selectionStart[1]+Math.floor(l/this._bufferService.cols)]:[l,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){const l=this.selectionStart[0]+this.selectionStartLength;return l>this._bufferService.cols?[l%this._bufferService.cols,this.selectionStart[1]+Math.floor(l/this._bufferService.cols)]:[Math.max(l,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){const l=this.selectionStart,d=this.selectionEnd;return!(!l||!d)&&(l[1]>d[1]||l[1]===d[1]&&l[0]>d[0])}handleTrim(l){return this.selectionStart&&(this.selectionStart[1]-=l),this.selectionEnd&&(this.selectionEnd[1]-=l),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(a,s,l){var d=this&&this.__decorate||function(m,f,v,y){var _,S=arguments.length,b=S<3?f:y===null?y=Object.getOwnPropertyDescriptor(f,v):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(m,f,v,y);else for(var A=m.length-1;A>=0;A--)(_=m[A])&&(b=(S<3?_(b):S>3?_(f,v,b):_(f,v))||b);return S>3&&b&&Object.defineProperty(f,v,b),b},c=this&&this.__param||function(m,f){return function(v,y){f(v,y,m)}};Object.defineProperty(s,"__esModule",{value:!0}),s.CharSizeService=void 0;const u=l(2585),h=l(8460),g=l(844);let p=s.CharSizeService=class extends g.Disposable{get hasValidSize(){return this.width>0&&this.height>0}constructor(m,f,v){super(),this._optionsService=v,this.width=0,this.height=0,this._onCharSizeChange=this.register(new h.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event,this._measureStrategy=new x(m,f,this._optionsService),this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],()=>this.measure()))}measure(){const m=this._measureStrategy.measure();m.width===this.width&&m.height===this.height||(this.width=m.width,this.height=m.height,this._onCharSizeChange.fire())}};s.CharSizeService=p=d([c(2,u.IOptionsService)],p);class x{constructor(f,v,y){this._document=f,this._parentElement=v,this._optionsService=y,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`;const f={height:Number(this._measureElement.offsetHeight),width:Number(this._measureElement.offsetWidth)};return f.width!==0&&f.height!==0&&(this._result.width=f.width/32,this._result.height=Math.ceil(f.height)),this._result}}},4269:function(a,s,l){var d=this&&this.__decorate||function(f,v,y,_){var S,b=arguments.length,A=b<3?v:_===null?_=Object.getOwnPropertyDescriptor(v,y):_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(f,v,y,_);else for(var M=f.length-1;M>=0;M--)(S=f[M])&&(A=(b<3?S(A):b>3?S(v,y,A):S(v,y))||A);return b>3&&A&&Object.defineProperty(v,y,A),A},c=this&&this.__param||function(f,v){return function(y,_){v(y,_,f)}};Object.defineProperty(s,"__esModule",{value:!0}),s.CharacterJoinerService=s.JoinedCellData=void 0;const u=l(3734),h=l(643),g=l(511),p=l(2585);class x extends u.AttributeData{constructor(v,y,_){super(),this.content=0,this.combinedData="",this.fg=v.fg,this.bg=v.bg,this.combinedData=y,this._width=_}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(v){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}s.JoinedCellData=x;let m=s.CharacterJoinerService=class EE{constructor(v){this._bufferService=v,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new g.CellData}register(v){const y={id:this._nextCharacterJoinerId++,handler:v};return this._characterJoiners.push(y),y.id}deregister(v){for(let y=0;y1){const P=this._getJoinedRanges(S,M,A,y,b);for(let L=0;L1){const C=this._getJoinedRanges(S,M,A,y,b);for(let P=0;P{Object.defineProperty(s,"__esModule",{value:!0}),s.CoreBrowserService=void 0,s.CoreBrowserService=class{constructor(l,d){this._textarea=l,this.window=d,this._isFocused=!1,this._cachedIsFocused=void 0,this._textarea.addEventListener("focus",()=>this._isFocused=!0),this._textarea.addEventListener("blur",()=>this._isFocused=!1)}get dpr(){return this.window.devicePixelRatio}get isFocused(){return this._cachedIsFocused===void 0&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask(()=>this._cachedIsFocused=void 0)),this._cachedIsFocused}}},8934:function(a,s,l){var d=this&&this.__decorate||function(p,x,m,f){var v,y=arguments.length,_=y<3?x:f===null?f=Object.getOwnPropertyDescriptor(x,m):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(p,x,m,f);else for(var S=p.length-1;S>=0;S--)(v=p[S])&&(_=(y<3?v(_):y>3?v(x,m,_):v(x,m))||_);return y>3&&_&&Object.defineProperty(x,m,_),_},c=this&&this.__param||function(p,x){return function(m,f){x(m,f,p)}};Object.defineProperty(s,"__esModule",{value:!0}),s.MouseService=void 0;const u=l(4725),h=l(9806);let g=s.MouseService=class{constructor(p,x){this._renderService=p,this._charSizeService=x}getCoords(p,x,m,f,v){return(0,h.getCoords)(window,p,x,m,f,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,v)}getMouseReportCoords(p,x){const m=(0,h.getCoordsRelativeToElement)(window,p,x);if(this._charSizeService.hasValidSize)return m[0]=Math.min(Math.max(m[0],0),this._renderService.dimensions.css.canvas.width-1),m[1]=Math.min(Math.max(m[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(m[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(m[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(m[0]),y:Math.floor(m[1])}}};s.MouseService=g=d([c(0,u.IRenderService),c(1,u.ICharSizeService)],g)},3230:function(a,s,l){var d=this&&this.__decorate||function(_,S,b,A){var M,T=arguments.length,w=T<3?S:A===null?A=Object.getOwnPropertyDescriptor(S,b):A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(_,S,b,A);else for(var C=_.length-1;C>=0;C--)(M=_[C])&&(w=(T<3?M(w):T>3?M(S,b,w):M(S,b))||w);return T>3&&w&&Object.defineProperty(S,b,w),w},c=this&&this.__param||function(_,S){return function(b,A){S(b,A,_)}};Object.defineProperty(s,"__esModule",{value:!0}),s.RenderService=void 0;const u=l(3656),h=l(6193),g=l(5596),p=l(4725),x=l(8460),m=l(844),f=l(7226),v=l(2585);let y=s.RenderService=class extends m.Disposable{get dimensions(){return this._renderer.value.dimensions}constructor(_,S,b,A,M,T,w,C){if(super(),this._rowCount=_,this._charSizeService=A,this._renderer=this.register(new m.MutableDisposable),this._pausedResizeTask=new f.DebouncedIdleTask,this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this.register(new x.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new x.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new x.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new x.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new h.RenderDebouncer(w.window,(P,L)=>this._renderRows(P,L)),this.register(this._renderDebouncer),this._screenDprMonitor=new g.ScreenDprMonitor(w.window),this._screenDprMonitor.setListener(()=>this.handleDevicePixelRatioChange()),this.register(this._screenDprMonitor),this.register(T.onResize(()=>this._fullRefresh())),this.register(T.buffers.onBufferActivate(()=>{var P;return(P=this._renderer.value)===null||P===void 0?void 0:P.clear()})),this.register(b.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._charSizeService.onCharSizeChange(()=>this.handleCharSizeChanged())),this.register(M.onDecorationRegistered(()=>this._fullRefresh())),this.register(M.onDecorationRemoved(()=>this._fullRefresh())),this.register(b.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio"],()=>{this.clear(),this.handleResize(T.cols,T.rows),this._fullRefresh()})),this.register(b.onMultipleOptionChange(["cursorBlink","cursorStyle"],()=>this.refreshRows(T.buffer.y,T.buffer.y,!0))),this.register((0,u.addDisposableDomListener)(w.window,"resize",()=>this.handleDevicePixelRatioChange())),this.register(C.onChangeColors(()=>this._fullRefresh())),"IntersectionObserver"in w.window){const P=new w.window.IntersectionObserver(L=>this._handleIntersectionChange(L[L.length-1]),{threshold:0});P.observe(S),this.register({dispose:()=>P.disconnect()})}}_handleIntersectionChange(_){this._isPaused=_.isIntersecting===void 0?_.intersectionRatio===0:!_.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(_,S,b=!1){this._isPaused?this._needsFullRefresh=!0:(b||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(_,S,this._rowCount))}_renderRows(_,S){this._renderer.value&&(_=Math.min(_,this._rowCount-1),S=Math.min(S,this._rowCount-1),this._renderer.value.renderRows(_,S),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:_,end:S}),this._onRender.fire({start:_,end:S}),this._isNextRenderRedrawOnly=!0)}resize(_,S){this._rowCount=S,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(_){this._renderer.value=_,this._renderer.value.onRequestRedraw(S=>this.refreshRows(S.start,S.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh()}addRefreshCallback(_){return this._renderDebouncer.addRefreshCallback(_)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var _,S;this._renderer.value&&((S=(_=this._renderer.value).clearTextureAtlas)===null||S===void 0||S.call(_),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(_,S){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set(()=>this._renderer.value.handleResize(_,S)):this._renderer.value.handleResize(_,S),this._fullRefresh())}handleCharSizeChanged(){var _;(_=this._renderer.value)===null||_===void 0||_.handleCharSizeChanged()}handleBlur(){var _;(_=this._renderer.value)===null||_===void 0||_.handleBlur()}handleFocus(){var _;(_=this._renderer.value)===null||_===void 0||_.handleFocus()}handleSelectionChanged(_,S,b){var A;this._selectionState.start=_,this._selectionState.end=S,this._selectionState.columnSelectMode=b,(A=this._renderer.value)===null||A===void 0||A.handleSelectionChanged(_,S,b)}handleCursorMove(){var _;(_=this._renderer.value)===null||_===void 0||_.handleCursorMove()}clear(){var _;(_=this._renderer.value)===null||_===void 0||_.clear()}};s.RenderService=y=d([c(2,v.IOptionsService),c(3,p.ICharSizeService),c(4,v.IDecorationService),c(5,v.IBufferService),c(6,p.ICoreBrowserService),c(7,p.IThemeService)],y)},9312:function(a,s,l){var d=this&&this.__decorate||function(M,T,w,C){var P,L=arguments.length,$=L<3?T:C===null?C=Object.getOwnPropertyDescriptor(T,w):C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")$=Reflect.decorate(M,T,w,C);else for(var O=M.length-1;O>=0;O--)(P=M[O])&&($=(L<3?P($):L>3?P(T,w,$):P(T,w))||$);return L>3&&$&&Object.defineProperty(T,w,$),$},c=this&&this.__param||function(M,T){return function(w,C){T(w,C,M)}};Object.defineProperty(s,"__esModule",{value:!0}),s.SelectionService=void 0;const u=l(9806),h=l(9504),g=l(456),p=l(4725),x=l(8460),m=l(844),f=l(6114),v=l(4841),y=l(511),_=l(2585),S=String.fromCharCode(160),b=new RegExp(S,"g");let A=s.SelectionService=class extends m.Disposable{constructor(M,T,w,C,P,L,$,O,N){super(),this._element=M,this._screenElement=T,this._linkifier=w,this._bufferService=C,this._coreService=P,this._mouseService=L,this._optionsService=$,this._renderService=O,this._coreBrowserService=N,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new y.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new x.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new x.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new x.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new x.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=R=>this._handleMouseMove(R),this._mouseUpListener=R=>this._handleMouseUp(R),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(R=>this._handleTrim(R)),this.register(this._bufferService.buffers.onBufferActivate(R=>this._handleBufferActivate(R))),this.enable(),this._model=new g.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,m.toDisposable)(()=>{this._removeMouseDownListeners()}))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){const M=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;return!(!M||!T||M[0]===T[0]&&M[1]===T[1])}get selectionText(){const M=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;if(!M||!T)return"";const w=this._bufferService.buffer,C=[];if(this._activeSelectionMode===3){if(M[0]===T[0])return"";const P=M[0]P.replace(b," ")).join(f.isWindows?`\r -`:` -`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(M){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),f.isLinux&&M&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(M){const T=this._getMouseBufferCoords(M),w=this._model.finalSelectionStart,C=this._model.finalSelectionEnd;return!!(w&&C&&T)&&this._areCoordsInSelection(T,w,C)}isCellInSelection(M,T){const w=this._model.finalSelectionStart,C=this._model.finalSelectionEnd;return!(!w||!C)&&this._areCoordsInSelection([M,T],w,C)}_areCoordsInSelection(M,T,w){return M[1]>T[1]&&M[1]=T[0]&&M[0]=T[0]}_selectWordAtCursor(M,T){var w,C;const P=(C=(w=this._linkifier.currentLink)===null||w===void 0?void 0:w.link)===null||C===void 0?void 0:C.range;if(P)return this._model.selectionStart=[P.start.x-1,P.start.y-1],this._model.selectionStartLength=(0,v.getRangeLength)(P,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const L=this._getMouseBufferCoords(M);return!!L&&(this._selectWordAt(L,T),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(M,T){this._model.clearSelection(),M=Math.max(M,0),T=Math.min(T,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,M],this._model.selectionEnd=[this._bufferService.cols,T],this.refresh(),this._onSelectionChange.fire()}_handleTrim(M){this._model.handleTrim(M)&&this.refresh()}_getMouseBufferCoords(M){const T=this._mouseService.getCoords(M,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(T)return T[0]--,T[1]--,T[1]+=this._bufferService.buffer.ydisp,T}_getMouseEventScrollAmount(M){let T=(0,u.getCoordsRelativeToElement)(this._coreBrowserService.window,M,this._screenElement)[1];const w=this._renderService.dimensions.css.canvas.height;return T>=0&&T<=w?0:(T>w&&(T-=w),T=Math.min(Math.max(T,-50),50),T/=50,T/Math.abs(T)+Math.round(14*T))}shouldForceSelection(M){return f.isMac?M.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:M.shiftKey}handleMouseDown(M){if(this._mouseDownTimeStamp=M.timeStamp,(M.button!==2||!this.hasSelection)&&M.button===0){if(!this._enabled){if(!this.shouldForceSelection(M))return;M.stopPropagation()}M.preventDefault(),this._dragScrollAmount=0,this._enabled&&M.shiftKey?this._handleIncrementalClick(M):M.detail===1?this._handleSingleClick(M):M.detail===2?this._handleDoubleClick(M):M.detail===3&&this._handleTripleClick(M),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(M){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(M))}_handleSingleClick(M){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(M)?3:0,this._model.selectionStart=this._getMouseBufferCoords(M),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const T=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);T&&T.length!==this._model.selectionStart[0]&&T.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(M){this._selectWordAtCursor(M,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(M){const T=this._getMouseBufferCoords(M);T&&(this._activeSelectionMode=2,this._selectLineAt(T[1]))}shouldColumnSelect(M){return M.altKey&&!(f.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(M){if(M.stopImmediatePropagation(),!this._model.selectionStart)return;const T=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(M),!this._model.selectionEnd)return void this.refresh(!0);this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const w=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(M.ydisp+this._bufferService.rows,M.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=M.ydisp),this.refresh()}}_handleMouseUp(M){const T=M.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&T<500&&M.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const w=this._mouseService.getCoords(M,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(w&&w[0]!==void 0&&w[1]!==void 0){const C=(0,h.moveToCellSequence)(w[0]-1,w[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(C,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const M=this._model.finalSelectionStart,T=this._model.finalSelectionEnd,w=!(!M||!T||M[0]===T[0]&&M[1]===T[1]);w?M&&T&&(this._oldSelectionStart&&this._oldSelectionEnd&&M[0]===this._oldSelectionStart[0]&&M[1]===this._oldSelectionStart[1]&&T[0]===this._oldSelectionEnd[0]&&T[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(M,T,w)):this._oldHasSelection&&this._fireOnSelectionChange(M,T,w)}_fireOnSelectionChange(M,T,w){this._oldSelectionStart=M,this._oldSelectionEnd=T,this._oldHasSelection=w,this._onSelectionChange.fire()}_handleBufferActivate(M){this.clearSelection(),this._trimListener.dispose(),this._trimListener=M.activeBuffer.lines.onTrim(T=>this._handleTrim(T))}_convertViewportColToCharacterIndex(M,T){let w=T;for(let C=0;T>=C;C++){const P=M.loadCell(C,this._workCell).getChars().length;this._workCell.getWidth()===0?w--:P>1&&T!==C&&(w+=P-1)}return w}setSelection(M,T,w){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[M,T],this._model.selectionStartLength=w,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(M){this._isClickInSelection(M)||(this._selectWordAtCursor(M,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(M,T,w=!0,C=!0){if(M[0]>=this._bufferService.cols)return;const P=this._bufferService.buffer,L=P.lines.get(M[1]);if(!L)return;const $=P.translateBufferLineToString(M[1],!1);let O=this._convertViewportColToCharacterIndex(L,M[0]),N=O;const R=M[0]-O;let I=0,D=0,G=0,k=0;if($.charAt(O)===" "){for(;O>0&&$.charAt(O-1)===" ";)O--;for(;N<$.length&&$.charAt(N+1)===" ";)N++}else{let Q=M[0],q=M[0];L.getWidth(Q)===0&&(I++,Q--),L.getWidth(q)===2&&(D++,q++);const se=L.getString(q).length;for(se>1&&(k+=se-1,N+=se-1);Q>0&&O>0&&!this._isCharWordSeparator(L.loadCell(Q-1,this._workCell));){L.loadCell(Q-1,this._workCell);const B=this._workCell.getChars().length;this._workCell.getWidth()===0?(I++,Q--):B>1&&(G+=B-1,O-=B-1),O--,Q--}for(;q1&&(k+=B-1,N+=B-1),N++,q++}}N++;let H=O+R-I+G,z=Math.min(this._bufferService.cols,N-O+I+D-G-k);if(T||$.slice(O,N).trim()!==""){if(w&&H===0&&L.getCodePoint(0)!==32){const Q=P.lines.get(M[1]-1);if(Q&&L.isWrapped&&Q.getCodePoint(this._bufferService.cols-1)!==32){const q=this._getWordAt([this._bufferService.cols-1,M[1]-1],!1,!0,!1);if(q){const se=this._bufferService.cols-q.start;H-=se,z+=se}}}if(C&&H+z===this._bufferService.cols&&L.getCodePoint(this._bufferService.cols-1)!==32){const Q=P.lines.get(M[1]+1);if(Q!=null&&Q.isWrapped&&Q.getCodePoint(0)!==32){const q=this._getWordAt([0,M[1]+1],!1,!1,!0);q&&(z+=q.length)}}return{start:H,length:z}}}_selectWordAt(M,T){const w=this._getWordAt(M,T);if(w){for(;w.start<0;)w.start+=this._bufferService.cols,M[1]--;this._model.selectionStart=[w.start,M[1]],this._model.selectionStartLength=w.length}}_selectToWordAt(M){const T=this._getWordAt(M,!0);if(T){let w=M[1];for(;T.start<0;)T.start+=this._bufferService.cols,w--;if(!this._model.areSelectionValuesReversed())for(;T.start+T.length>this._bufferService.cols;)T.length-=this._bufferService.cols,w++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?T.start:T.start+T.length,w]}}_isCharWordSeparator(M){return M.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(M.getChars())>=0}_selectLineAt(M){const T=this._bufferService.buffer.getWrappedRangeForLine(M),w={start:{x:0,y:T.first},end:{x:this._bufferService.cols-1,y:T.last}};this._model.selectionStart=[0,T.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,v.getRangeLength)(w,this._bufferService.cols)}};s.SelectionService=A=d([c(3,_.IBufferService),c(4,_.ICoreService),c(5,p.IMouseService),c(6,_.IOptionsService),c(7,p.IRenderService),c(8,p.ICoreBrowserService)],A)},4725:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.IThemeService=s.ICharacterJoinerService=s.ISelectionService=s.IRenderService=s.IMouseService=s.ICoreBrowserService=s.ICharSizeService=void 0;const d=l(8343);s.ICharSizeService=(0,d.createDecorator)("CharSizeService"),s.ICoreBrowserService=(0,d.createDecorator)("CoreBrowserService"),s.IMouseService=(0,d.createDecorator)("MouseService"),s.IRenderService=(0,d.createDecorator)("RenderService"),s.ISelectionService=(0,d.createDecorator)("SelectionService"),s.ICharacterJoinerService=(0,d.createDecorator)("CharacterJoinerService"),s.IThemeService=(0,d.createDecorator)("ThemeService")},6731:function(a,s,l){var d=this&&this.__decorate||function(A,M,T,w){var C,P=arguments.length,L=P<3?M:w===null?w=Object.getOwnPropertyDescriptor(M,T):w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(A,M,T,w);else for(var $=A.length-1;$>=0;$--)(C=A[$])&&(L=(P<3?C(L):P>3?C(M,T,L):C(M,T))||L);return P>3&&L&&Object.defineProperty(M,T,L),L},c=this&&this.__param||function(A,M){return function(T,w){M(T,w,A)}};Object.defineProperty(s,"__esModule",{value:!0}),s.ThemeService=s.DEFAULT_ANSI_COLORS=void 0;const u=l(7239),h=l(8055),g=l(8460),p=l(844),x=l(2585),m=h.css.toColor("#ffffff"),f=h.css.toColor("#000000"),v=h.css.toColor("#ffffff"),y=h.css.toColor("#000000"),_={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};s.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const A=[h.css.toColor("#2e3436"),h.css.toColor("#cc0000"),h.css.toColor("#4e9a06"),h.css.toColor("#c4a000"),h.css.toColor("#3465a4"),h.css.toColor("#75507b"),h.css.toColor("#06989a"),h.css.toColor("#d3d7cf"),h.css.toColor("#555753"),h.css.toColor("#ef2929"),h.css.toColor("#8ae234"),h.css.toColor("#fce94f"),h.css.toColor("#729fcf"),h.css.toColor("#ad7fa8"),h.css.toColor("#34e2e2"),h.css.toColor("#eeeeec")],M=[0,95,135,175,215,255];for(let T=0;T<216;T++){const w=M[T/36%6|0],C=M[T/6%6|0],P=M[T%6];A.push({css:h.channels.toCss(w,C,P),rgba:h.channels.toRgba(w,C,P)})}for(let T=0;T<24;T++){const w=8+10*T;A.push({css:h.channels.toCss(w,w,w),rgba:h.channels.toRgba(w,w,w)})}return A})());let S=s.ThemeService=class extends p.Disposable{get colors(){return this._colors}constructor(A){super(),this._optionsService=A,this._contrastCache=new u.ColorContrastCache,this._halfContrastCache=new u.ColorContrastCache,this._onChangeColors=this.register(new g.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:m,background:f,cursor:v,cursorAccent:y,selectionForeground:void 0,selectionBackgroundTransparent:_,selectionBackgroundOpaque:h.color.blend(f,_),selectionInactiveBackgroundTransparent:_,selectionInactiveBackgroundOpaque:h.color.blend(f,_),ansi:s.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",()=>this._contrastCache.clear())),this.register(this._optionsService.onSpecificOptionChange("theme",()=>this._setTheme(this._optionsService.rawOptions.theme)))}_setTheme(A={}){const M=this._colors;if(M.foreground=b(A.foreground,m),M.background=b(A.background,f),M.cursor=b(A.cursor,v),M.cursorAccent=b(A.cursorAccent,y),M.selectionBackgroundTransparent=b(A.selectionBackground,_),M.selectionBackgroundOpaque=h.color.blend(M.background,M.selectionBackgroundTransparent),M.selectionInactiveBackgroundTransparent=b(A.selectionInactiveBackground,M.selectionBackgroundTransparent),M.selectionInactiveBackgroundOpaque=h.color.blend(M.background,M.selectionInactiveBackgroundTransparent),M.selectionForeground=A.selectionForeground?b(A.selectionForeground,h.NULL_COLOR):void 0,M.selectionForeground===h.NULL_COLOR&&(M.selectionForeground=void 0),h.color.isOpaque(M.selectionBackgroundTransparent)&&(M.selectionBackgroundTransparent=h.color.opacity(M.selectionBackgroundTransparent,.3)),h.color.isOpaque(M.selectionInactiveBackgroundTransparent)&&(M.selectionInactiveBackgroundTransparent=h.color.opacity(M.selectionInactiveBackgroundTransparent,.3)),M.ansi=s.DEFAULT_ANSI_COLORS.slice(),M.ansi[0]=b(A.black,s.DEFAULT_ANSI_COLORS[0]),M.ansi[1]=b(A.red,s.DEFAULT_ANSI_COLORS[1]),M.ansi[2]=b(A.green,s.DEFAULT_ANSI_COLORS[2]),M.ansi[3]=b(A.yellow,s.DEFAULT_ANSI_COLORS[3]),M.ansi[4]=b(A.blue,s.DEFAULT_ANSI_COLORS[4]),M.ansi[5]=b(A.magenta,s.DEFAULT_ANSI_COLORS[5]),M.ansi[6]=b(A.cyan,s.DEFAULT_ANSI_COLORS[6]),M.ansi[7]=b(A.white,s.DEFAULT_ANSI_COLORS[7]),M.ansi[8]=b(A.brightBlack,s.DEFAULT_ANSI_COLORS[8]),M.ansi[9]=b(A.brightRed,s.DEFAULT_ANSI_COLORS[9]),M.ansi[10]=b(A.brightGreen,s.DEFAULT_ANSI_COLORS[10]),M.ansi[11]=b(A.brightYellow,s.DEFAULT_ANSI_COLORS[11]),M.ansi[12]=b(A.brightBlue,s.DEFAULT_ANSI_COLORS[12]),M.ansi[13]=b(A.brightMagenta,s.DEFAULT_ANSI_COLORS[13]),M.ansi[14]=b(A.brightCyan,s.DEFAULT_ANSI_COLORS[14]),M.ansi[15]=b(A.brightWhite,s.DEFAULT_ANSI_COLORS[15]),A.extendedAnsi){const T=Math.min(M.ansi.length-16,A.extendedAnsi.length);for(let w=0;w{Object.defineProperty(s,"__esModule",{value:!0}),s.CircularList=void 0;const d=l(8460),c=l(844);class u extends c.Disposable{constructor(g){super(),this._maxLength=g,this.onDeleteEmitter=this.register(new d.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new d.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new d.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(g){if(this._maxLength===g)return;const p=new Array(g);for(let x=0;xthis._length)for(let p=this._length;p=g;m--)this._array[this._getCyclicIndex(m+x.length)]=this._array[this._getCyclicIndex(m)];for(let m=0;mthis._maxLength){const m=this._length+x.length-this._maxLength;this._startIndex+=m,this._length=this._maxLength,this.onTrimEmitter.fire(m)}else this._length+=x.length}trimStart(g){g>this._length&&(g=this._length),this._startIndex+=g,this._length-=g,this.onTrimEmitter.fire(g)}shiftElements(g,p,x){if(!(p<=0)){if(g<0||g>=this._length)throw new Error("start argument out of range");if(g+x<0)throw new Error("Cannot shift elements in list beyond index 0");if(x>0){for(let f=p-1;f>=0;f--)this.set(g+f+x,this.get(g+f));const m=g+p+x-this._length;if(m>0)for(this._length+=m;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let m=0;m{Object.defineProperty(s,"__esModule",{value:!0}),s.clone=void 0,s.clone=function l(d,c=5){if(typeof d!="object")return d;const u=Array.isArray(d)?[]:{};for(const h in d)u[h]=c<=1?d[h]:d[h]&&l(d[h],c-1);return u}},8055:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.contrastRatio=s.toPaddedHex=s.rgba=s.rgb=s.css=s.color=s.channels=s.NULL_COLOR=void 0;const d=l(6114);let c=0,u=0,h=0,g=0;var p,x,m,f,v;function y(S){const b=S.toString(16);return b.length<2?"0"+b:b}function _(S,b){return S>>0}}(p||(s.channels=p={})),function(S){function b(A,M){return g=Math.round(255*M),[c,u,h]=v.toChannels(A.rgba),{css:p.toCss(c,u,h,g),rgba:p.toRgba(c,u,h,g)}}S.blend=function(A,M){if(g=(255&M.rgba)/255,g===1)return{css:M.css,rgba:M.rgba};const T=M.rgba>>24&255,w=M.rgba>>16&255,C=M.rgba>>8&255,P=A.rgba>>24&255,L=A.rgba>>16&255,$=A.rgba>>8&255;return c=P+Math.round((T-P)*g),u=L+Math.round((w-L)*g),h=$+Math.round((C-$)*g),{css:p.toCss(c,u,h),rgba:p.toRgba(c,u,h)}},S.isOpaque=function(A){return(255&A.rgba)==255},S.ensureContrastRatio=function(A,M,T){const w=v.ensureContrastRatio(A.rgba,M.rgba,T);if(w)return v.toColor(w>>24&255,w>>16&255,w>>8&255)},S.opaque=function(A){const M=(255|A.rgba)>>>0;return[c,u,h]=v.toChannels(M),{css:p.toCss(c,u,h),rgba:M}},S.opacity=b,S.multiplyOpacity=function(A,M){return g=255&A.rgba,b(A,g*M/255)},S.toColorRGB=function(A){return[A.rgba>>24&255,A.rgba>>16&255,A.rgba>>8&255]}}(x||(s.color=x={})),function(S){let b,A;if(!d.isNode){const M=document.createElement("canvas");M.width=1,M.height=1;const T=M.getContext("2d",{willReadFrequently:!0});T&&(b=T,b.globalCompositeOperation="copy",A=b.createLinearGradient(0,0,1,1))}S.toColor=function(M){if(M.match(/#[\da-f]{3,8}/i))switch(M.length){case 4:return c=parseInt(M.slice(1,2).repeat(2),16),u=parseInt(M.slice(2,3).repeat(2),16),h=parseInt(M.slice(3,4).repeat(2),16),v.toColor(c,u,h);case 5:return c=parseInt(M.slice(1,2).repeat(2),16),u=parseInt(M.slice(2,3).repeat(2),16),h=parseInt(M.slice(3,4).repeat(2),16),g=parseInt(M.slice(4,5).repeat(2),16),v.toColor(c,u,h,g);case 7:return{css:M,rgba:(parseInt(M.slice(1),16)<<8|255)>>>0};case 9:return{css:M,rgba:parseInt(M.slice(1),16)>>>0}}const T=M.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(T)return c=parseInt(T[1]),u=parseInt(T[2]),h=parseInt(T[3]),g=Math.round(255*(T[5]===void 0?1:parseFloat(T[5]))),v.toColor(c,u,h,g);if(!b||!A)throw new Error("css.toColor: Unsupported css format");if(b.fillStyle=A,b.fillStyle=M,typeof b.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(b.fillRect(0,0,1,1),[c,u,h,g]=b.getImageData(0,0,1,1).data,g!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:p.toRgba(c,u,h,g),css:M}}}(m||(s.css=m={})),function(S){function b(A,M,T){const w=A/255,C=M/255,P=T/255;return .2126*(w<=.03928?w/12.92:Math.pow((w+.055)/1.055,2.4))+.7152*(C<=.03928?C/12.92:Math.pow((C+.055)/1.055,2.4))+.0722*(P<=.03928?P/12.92:Math.pow((P+.055)/1.055,2.4))}S.relativeLuminance=function(A){return b(A>>16&255,A>>8&255,255&A)},S.relativeLuminance2=b}(f||(s.rgb=f={})),function(S){function b(M,T,w){const C=M>>24&255,P=M>>16&255,L=M>>8&255;let $=T>>24&255,O=T>>16&255,N=T>>8&255,R=_(f.relativeLuminance2($,O,N),f.relativeLuminance2(C,P,L));for(;R0||O>0||N>0);)$-=Math.max(0,Math.ceil(.1*$)),O-=Math.max(0,Math.ceil(.1*O)),N-=Math.max(0,Math.ceil(.1*N)),R=_(f.relativeLuminance2($,O,N),f.relativeLuminance2(C,P,L));return($<<24|O<<16|N<<8|255)>>>0}function A(M,T,w){const C=M>>24&255,P=M>>16&255,L=M>>8&255;let $=T>>24&255,O=T>>16&255,N=T>>8&255,R=_(f.relativeLuminance2($,O,N),f.relativeLuminance2(C,P,L));for(;R>>0}S.ensureContrastRatio=function(M,T,w){const C=f.relativeLuminance(M>>8),P=f.relativeLuminance(T>>8);if(_(C,P)>8));if(N_(C,f.relativeLuminance(R>>8))?O:R}return O}const L=A(M,T,w),$=_(C,f.relativeLuminance(L>>8));if($_(C,f.relativeLuminance(O>>8))?L:O}return L}},S.reduceLuminance=b,S.increaseLuminance=A,S.toChannels=function(M){return[M>>24&255,M>>16&255,M>>8&255,255&M]},S.toColor=function(M,T,w,C){return{css:p.toCss(M,T,w,C),rgba:p.toRgba(M,T,w,C)}}}(v||(s.rgba=v={})),s.toPaddedHex=y,s.contrastRatio=_},8969:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CoreTerminal=void 0;const d=l(844),c=l(2585),u=l(4348),h=l(7866),g=l(744),p=l(7302),x=l(6975),m=l(8460),f=l(1753),v=l(1480),y=l(7994),_=l(9282),S=l(5435),b=l(5981),A=l(2660);let M=!1;class T extends d.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new m.EventEmitter),this._onScroll.event(C=>{var P;(P=this._onScrollApi)===null||P===void 0||P.fire(C.position)})),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(C){for(const P in C)this.optionsService.options[P]=C[P]}constructor(C){super(),this._windowsWrappingHeuristics=this.register(new d.MutableDisposable),this._onBinary=this.register(new m.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new m.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new m.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new m.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new m.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new m.EventEmitter),this._instantiationService=new u.InstantiationService,this.optionsService=this.register(new p.OptionsService(C)),this._instantiationService.setService(c.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(g.BufferService)),this._instantiationService.setService(c.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(h.LogService)),this._instantiationService.setService(c.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(x.CoreService)),this._instantiationService.setService(c.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(f.CoreMouseService)),this._instantiationService.setService(c.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(v.UnicodeService)),this._instantiationService.setService(c.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(y.CharsetService),this._instantiationService.setService(c.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(A.OscLinkService),this._instantiationService.setService(c.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new S.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,m.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,m.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,m.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,m.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom())),this.register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],()=>this._handleWindowsPtyOptionChange())),this.register(this._bufferService.onScroll(P=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this.register(this._inputHandler.onScroll(P=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this.register(new b.WriteBuffer((P,L)=>this._inputHandler.parse(P,L))),this.register((0,m.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(C,P){this._writeBuffer.write(C,P)}writeSync(C,P){this._logService.logLevel<=c.LogLevelEnum.WARN&&!M&&(this._logService.warn("writeSync is unreliable and will be removed soon."),M=!0),this._writeBuffer.writeSync(C,P)}resize(C,P){isNaN(C)||isNaN(P)||(C=Math.max(C,g.MINIMUM_COLS),P=Math.max(P,g.MINIMUM_ROWS),this._bufferService.resize(C,P))}scroll(C,P=!1){this._bufferService.scroll(C,P)}scrollLines(C,P,L){this._bufferService.scrollLines(C,P,L)}scrollPages(C){this.scrollLines(C*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(C){const P=C-this._bufferService.buffer.ydisp;P!==0&&this.scrollLines(P)}registerEscHandler(C,P){return this._inputHandler.registerEscHandler(C,P)}registerDcsHandler(C,P){return this._inputHandler.registerDcsHandler(C,P)}registerCsiHandler(C,P){return this._inputHandler.registerCsiHandler(C,P)}registerOscHandler(C,P){return this._inputHandler.registerOscHandler(C,P)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let C=!1;const P=this.optionsService.rawOptions.windowsPty;P&&P.buildNumber!==void 0&&P.buildNumber!==void 0?C=P.backend==="conpty"&&P.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(C=!0),C?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){const C=[];C.push(this.onLineFeed(_.updateWindowsModeWrappedState.bind(null,this._bufferService))),C.push(this.registerCsiHandler({final:"H"},()=>((0,_.updateWindowsModeWrappedState)(this._bufferService),!1))),this._windowsWrappingHeuristics.value=(0,d.toDisposable)(()=>{for(const P of C)P.dispose()})}}}s.CoreTerminal=T},8460:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.forwardEvent=s.EventEmitter=void 0,s.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=l=>(this._listeners.push(l),{dispose:()=>{if(!this._disposed){for(let d=0;dd.fire(c))}},5435:function(a,s,l){var d=this&&this.__decorate||function(R,I,D,G){var k,H=arguments.length,z=H<3?I:G===null?G=Object.getOwnPropertyDescriptor(I,D):G;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")z=Reflect.decorate(R,I,D,G);else for(var Q=R.length-1;Q>=0;Q--)(k=R[Q])&&(z=(H<3?k(z):H>3?k(I,D,z):k(I,D))||z);return H>3&&z&&Object.defineProperty(I,D,z),z},c=this&&this.__param||function(R,I){return function(D,G){I(D,G,R)}};Object.defineProperty(s,"__esModule",{value:!0}),s.InputHandler=s.WindowsOptionsReportType=void 0;const u=l(2584),h=l(7116),g=l(2015),p=l(844),x=l(482),m=l(8437),f=l(8460),v=l(643),y=l(511),_=l(3734),S=l(2585),b=l(6242),A=l(6351),M=l(5941),T={"(":0,")":1,"*":2,"+":3,"-":1,".":2},w=131072;function C(R,I){if(R>24)return I.setWinLines||!1;switch(R){case 1:return!!I.restoreWin;case 2:return!!I.minimizeWin;case 3:return!!I.setWinPosition;case 4:return!!I.setWinSizePixels;case 5:return!!I.raiseWin;case 6:return!!I.lowerWin;case 7:return!!I.refreshWin;case 8:return!!I.setWinSizeChars;case 9:return!!I.maximizeWin;case 10:return!!I.fullscreenWin;case 11:return!!I.getWinState;case 13:return!!I.getWinPosition;case 14:return!!I.getWinSizePixels;case 15:return!!I.getScreenSizePixels;case 16:return!!I.getCellSizePixels;case 18:return!!I.getWinSizeChars;case 19:return!!I.getScreenSizeChars;case 20:return!!I.getIconTitle;case 21:return!!I.getWinTitle;case 22:return!!I.pushTitle;case 23:return!!I.popTitle;case 24:return!!I.setWinLines}return!1}var P;(function(R){R[R.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",R[R.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(P||(s.WindowsOptionsReportType=P={}));let L=0;class $ extends p.Disposable{getAttrData(){return this._curAttrData}constructor(I,D,G,k,H,z,Q,q,se=new g.EscapeSequenceParser){super(),this._bufferService=I,this._charsetService=D,this._coreService=G,this._logService=k,this._optionsService=H,this._oscLinkService=z,this._coreMouseService=Q,this._unicodeService=q,this._parser=se,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new x.StringToUtf32,this._utf8Decoder=new x.Utf8ToUtf32,this._workCell=new y.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=m.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=m.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new f.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new f.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new f.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new f.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new f.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new f.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new f.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new f.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new f.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new f.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new f.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new f.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new f.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new O(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(B=>this._activeBuffer=B.activeBuffer)),this._parser.setCsiHandlerFallback((B,F)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(B),params:F.toArray()})}),this._parser.setEscHandlerFallback(B=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(B)})}),this._parser.setExecuteHandlerFallback(B=>{this._logService.debug("Unknown EXECUTE code: ",{code:B})}),this._parser.setOscHandlerFallback((B,F,U)=>{this._logService.debug("Unknown OSC code: ",{identifier:B,action:F,data:U})}),this._parser.setDcsHandlerFallback((B,F,U)=>{F==="HOOK"&&(U=U.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(B),action:F,payload:U})}),this._parser.setPrintHandler((B,F,U)=>this.print(B,F,U)),this._parser.registerCsiHandler({final:"@"},B=>this.insertChars(B)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},B=>this.scrollLeft(B)),this._parser.registerCsiHandler({final:"A"},B=>this.cursorUp(B)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},B=>this.scrollRight(B)),this._parser.registerCsiHandler({final:"B"},B=>this.cursorDown(B)),this._parser.registerCsiHandler({final:"C"},B=>this.cursorForward(B)),this._parser.registerCsiHandler({final:"D"},B=>this.cursorBackward(B)),this._parser.registerCsiHandler({final:"E"},B=>this.cursorNextLine(B)),this._parser.registerCsiHandler({final:"F"},B=>this.cursorPrecedingLine(B)),this._parser.registerCsiHandler({final:"G"},B=>this.cursorCharAbsolute(B)),this._parser.registerCsiHandler({final:"H"},B=>this.cursorPosition(B)),this._parser.registerCsiHandler({final:"I"},B=>this.cursorForwardTab(B)),this._parser.registerCsiHandler({final:"J"},B=>this.eraseInDisplay(B,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},B=>this.eraseInDisplay(B,!0)),this._parser.registerCsiHandler({final:"K"},B=>this.eraseInLine(B,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},B=>this.eraseInLine(B,!0)),this._parser.registerCsiHandler({final:"L"},B=>this.insertLines(B)),this._parser.registerCsiHandler({final:"M"},B=>this.deleteLines(B)),this._parser.registerCsiHandler({final:"P"},B=>this.deleteChars(B)),this._parser.registerCsiHandler({final:"S"},B=>this.scrollUp(B)),this._parser.registerCsiHandler({final:"T"},B=>this.scrollDown(B)),this._parser.registerCsiHandler({final:"X"},B=>this.eraseChars(B)),this._parser.registerCsiHandler({final:"Z"},B=>this.cursorBackwardTab(B)),this._parser.registerCsiHandler({final:"`"},B=>this.charPosAbsolute(B)),this._parser.registerCsiHandler({final:"a"},B=>this.hPositionRelative(B)),this._parser.registerCsiHandler({final:"b"},B=>this.repeatPrecedingCharacter(B)),this._parser.registerCsiHandler({final:"c"},B=>this.sendDeviceAttributesPrimary(B)),this._parser.registerCsiHandler({prefix:">",final:"c"},B=>this.sendDeviceAttributesSecondary(B)),this._parser.registerCsiHandler({final:"d"},B=>this.linePosAbsolute(B)),this._parser.registerCsiHandler({final:"e"},B=>this.vPositionRelative(B)),this._parser.registerCsiHandler({final:"f"},B=>this.hVPosition(B)),this._parser.registerCsiHandler({final:"g"},B=>this.tabClear(B)),this._parser.registerCsiHandler({final:"h"},B=>this.setMode(B)),this._parser.registerCsiHandler({prefix:"?",final:"h"},B=>this.setModePrivate(B)),this._parser.registerCsiHandler({final:"l"},B=>this.resetMode(B)),this._parser.registerCsiHandler({prefix:"?",final:"l"},B=>this.resetModePrivate(B)),this._parser.registerCsiHandler({final:"m"},B=>this.charAttributes(B)),this._parser.registerCsiHandler({final:"n"},B=>this.deviceStatus(B)),this._parser.registerCsiHandler({prefix:"?",final:"n"},B=>this.deviceStatusPrivate(B)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},B=>this.softReset(B)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},B=>this.setCursorStyle(B)),this._parser.registerCsiHandler({final:"r"},B=>this.setScrollRegion(B)),this._parser.registerCsiHandler({final:"s"},B=>this.saveCursor(B)),this._parser.registerCsiHandler({final:"t"},B=>this.windowOptions(B)),this._parser.registerCsiHandler({final:"u"},B=>this.restoreCursor(B)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},B=>this.insertColumns(B)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},B=>this.deleteColumns(B)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},B=>this.selectProtected(B)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},B=>this.requestMode(B,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},B=>this.requestMode(B,!1)),this._parser.setExecuteHandler(u.C0.BEL,()=>this.bell()),this._parser.setExecuteHandler(u.C0.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(u.C0.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(u.C0.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(u.C0.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(u.C0.BS,()=>this.backspace()),this._parser.setExecuteHandler(u.C0.HT,()=>this.tab()),this._parser.setExecuteHandler(u.C0.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(u.C0.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(u.C1.IND,()=>this.index()),this._parser.setExecuteHandler(u.C1.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(u.C1.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new b.OscHandler(B=>(this.setTitle(B),this.setIconName(B),!0))),this._parser.registerOscHandler(1,new b.OscHandler(B=>this.setIconName(B))),this._parser.registerOscHandler(2,new b.OscHandler(B=>this.setTitle(B))),this._parser.registerOscHandler(4,new b.OscHandler(B=>this.setOrReportIndexedColor(B))),this._parser.registerOscHandler(8,new b.OscHandler(B=>this.setHyperlink(B))),this._parser.registerOscHandler(10,new b.OscHandler(B=>this.setOrReportFgColor(B))),this._parser.registerOscHandler(11,new b.OscHandler(B=>this.setOrReportBgColor(B))),this._parser.registerOscHandler(12,new b.OscHandler(B=>this.setOrReportCursorColor(B))),this._parser.registerOscHandler(104,new b.OscHandler(B=>this.restoreIndexedColor(B))),this._parser.registerOscHandler(110,new b.OscHandler(B=>this.restoreFgColor(B))),this._parser.registerOscHandler(111,new b.OscHandler(B=>this.restoreBgColor(B))),this._parser.registerOscHandler(112,new b.OscHandler(B=>this.restoreCursorColor(B))),this._parser.registerEscHandler({final:"7"},()=>this.saveCursor()),this._parser.registerEscHandler({final:"8"},()=>this.restoreCursor()),this._parser.registerEscHandler({final:"D"},()=>this.index()),this._parser.registerEscHandler({final:"E"},()=>this.nextLine()),this._parser.registerEscHandler({final:"H"},()=>this.tabSet()),this._parser.registerEscHandler({final:"M"},()=>this.reverseIndex()),this._parser.registerEscHandler({final:"="},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:">"},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:"c"},()=>this.fullReset()),this._parser.registerEscHandler({final:"n"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"o"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"|"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"}"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"~"},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:"%",final:"@"},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:"%",final:"G"},()=>this.selectDefaultCharset());for(const B in h.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:B},()=>this.selectCharset("("+B)),this._parser.registerEscHandler({intermediates:")",final:B},()=>this.selectCharset(")"+B)),this._parser.registerEscHandler({intermediates:"*",final:B},()=>this.selectCharset("*"+B)),this._parser.registerEscHandler({intermediates:"+",final:B},()=>this.selectCharset("+"+B)),this._parser.registerEscHandler({intermediates:"-",final:B},()=>this.selectCharset("-"+B)),this._parser.registerEscHandler({intermediates:".",final:B},()=>this.selectCharset("."+B)),this._parser.registerEscHandler({intermediates:"/",final:B},()=>this.selectCharset("/"+B));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(B=>(this._logService.error("Parsing error: ",B),B)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new A.DcsHandler((B,F)=>this.requestStatusString(B,F)))}_preserveStack(I,D,G,k){this._parseStack.paused=!0,this._parseStack.cursorStartX=I,this._parseStack.cursorStartY=D,this._parseStack.decodedLength=G,this._parseStack.position=k}_logSlowResolvingAsync(I){this._logService.logLevel<=S.LogLevelEnum.WARN&&Promise.race([I,new Promise((D,G)=>setTimeout(()=>G("#SLOW_TIMEOUT"),5e3))]).catch(D=>{if(D!=="#SLOW_TIMEOUT")throw D;console.warn("async parser handler taking longer than 5000 ms")})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(I,D){let G,k=this._activeBuffer.x,H=this._activeBuffer.y,z=0;const Q=this._parseStack.paused;if(Q){if(G=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,D))return this._logSlowResolvingAsync(G),G;k=this._parseStack.cursorStartX,H=this._parseStack.cursorStartY,this._parseStack.paused=!1,I.length>w&&(z=this._parseStack.position+w)}if(this._logService.logLevel<=S.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+(typeof I=="string"?` "${I}"`:` "${Array.prototype.map.call(I,q=>String.fromCharCode(q)).join("")}"`),typeof I=="string"?I.split("").map(q=>q.charCodeAt(0)):I),this._parseBuffer.lengthw)for(let q=z;q0&&U.getWidth(this._activeBuffer.x-1)===2&&U.setCellFromCodePoint(this._activeBuffer.x-1,0,1,F.fg,F.bg,F.extended);for(let X=D;X=q){if(se){for(;this._activeBuffer.x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),U=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=q-1,H===2)continue}if(B&&(U.insertCells(this._activeBuffer.x,H,this._activeBuffer.getNullCell(F),F),U.getWidth(q-1)===2&&U.setCellFromCodePoint(q-1,v.NULL_CELL_CODE,v.NULL_CELL_WIDTH,F.fg,F.bg,F.extended)),U.setCellFromCodePoint(this._activeBuffer.x++,k,H,F.fg,F.bg,F.extended),H>0)for(;--H;)U.setCellFromCodePoint(this._activeBuffer.x++,0,0,F.fg,F.bg,F.extended)}else U.getWidth(this._activeBuffer.x-1)?U.addCodepointToCell(this._activeBuffer.x-1,k):U.addCodepointToCell(this._activeBuffer.x-2,k)}G-D>0&&(U.loadCell(this._activeBuffer.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x0&&U.getWidth(this._activeBuffer.x)===0&&!U.hasContent(this._activeBuffer.x)&&U.setCellFromCodePoint(this._activeBuffer.x,0,1,F.fg,F.bg,F.extended),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(I,D){return I.final!=="t"||I.prefix||I.intermediates?this._parser.registerCsiHandler(I,D):this._parser.registerCsiHandler(I,G=>!C(G.params[0],this._optionsService.rawOptions.windowOptions)||D(G))}registerDcsHandler(I,D){return this._parser.registerDcsHandler(I,new A.DcsHandler(D))}registerEscHandler(I,D){return this._parser.registerEscHandler(I,D)}registerOscHandler(I,D){return this._parser.registerOscHandler(I,new b.OscHandler(D))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var I;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&!((I=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))===null||I===void 0)&&I.isWrapped){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const D=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);D.hasWidth(this._activeBuffer.x)&&!D.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;const I=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-I),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(I=this._bufferService.cols-1){this._activeBuffer.x=Math.min(I,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(I,D){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=I,this._activeBuffer.y=this._activeBuffer.scrollTop+D):(this._activeBuffer.x=I,this._activeBuffer.y=D),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(I,D){this._restrictCursor(),this._setCursor(this._activeBuffer.x+I,this._activeBuffer.y+D)}cursorUp(I){const D=this._activeBuffer.y-this._activeBuffer.scrollTop;return D>=0?this._moveCursor(0,-Math.min(D,I.params[0]||1)):this._moveCursor(0,-(I.params[0]||1)),!0}cursorDown(I){const D=this._activeBuffer.scrollBottom-this._activeBuffer.y;return D>=0?this._moveCursor(0,Math.min(D,I.params[0]||1)):this._moveCursor(0,I.params[0]||1),!0}cursorForward(I){return this._moveCursor(I.params[0]||1,0),!0}cursorBackward(I){return this._moveCursor(-(I.params[0]||1),0),!0}cursorNextLine(I){return this.cursorDown(I),this._activeBuffer.x=0,!0}cursorPrecedingLine(I){return this.cursorUp(I),this._activeBuffer.x=0,!0}cursorCharAbsolute(I){return this._setCursor((I.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(I){return this._setCursor(I.length>=2?(I.params[1]||1)-1:0,(I.params[0]||1)-1),!0}charPosAbsolute(I){return this._setCursor((I.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(I){return this._moveCursor(I.params[0]||1,0),!0}linePosAbsolute(I){return this._setCursor(this._activeBuffer.x,(I.params[0]||1)-1),!0}vPositionRelative(I){return this._moveCursor(0,I.params[0]||1),!0}hVPosition(I){return this.cursorPosition(I),!0}tabClear(I){const D=I.params[0];return D===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:D===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(I){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let D=I.params[0]||1;for(;D--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(I){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let D=I.params[0]||1;for(;D--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(I){const D=I.params[0];return D===1&&(this._curAttrData.bg|=536870912),D!==2&&D!==0||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(I,D,G,k=!1,H=!1){const z=this._activeBuffer.lines.get(this._activeBuffer.ybase+I);z.replaceCells(D,G,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),H),k&&(z.isWrapped=!1)}_resetBufferLine(I,D=!1){const G=this._activeBuffer.lines.get(this._activeBuffer.ybase+I);G&&(G.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),D),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+I),G.isWrapped=!1)}eraseInDisplay(I,D=!1){let G;switch(this._restrictCursor(this._bufferService.cols),I.params[0]){case 0:for(G=this._activeBuffer.y,this._dirtyRowTracker.markDirty(G),this._eraseInBufferLine(G++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,D);G=this._bufferService.cols&&(this._activeBuffer.lines.get(G+1).isWrapped=!1);G--;)this._resetBufferLine(G,D);this._dirtyRowTracker.markDirty(0);break;case 2:for(G=this._bufferService.rows,this._dirtyRowTracker.markDirty(G-1);G--;)this._resetBufferLine(G,D);this._dirtyRowTracker.markDirty(0);break;case 3:const k=this._activeBuffer.lines.length-this._bufferService.rows;k>0&&(this._activeBuffer.lines.trimStart(k),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-k,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-k,0),this._onScroll.fire(0))}return!0}eraseInLine(I,D=!1){switch(this._restrictCursor(this._bufferService.cols),I.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,D);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,D);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,D)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(I){this._restrictCursor();let D=I.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(u.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(u.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(I){return I.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(u.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(u.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(I.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(u.C0.ESC+"[>83;40003;0c")),!0}_is(I){return(this._optionsService.rawOptions.termName+"").indexOf(I)===0}setMode(I){for(let D=0;Dge?1:2,X=I.params[0];return j=X,J=D?X===2?4:X===4?U(z.modes.insertMode):X===12?3:X===20?U(F.convertEol):0:X===1?U(G.applicationCursorKeys):X===3?F.windowOptions.setWinLines?q===80?2:q===132?1:0:0:X===6?U(G.origin):X===7?U(G.wraparound):X===8?3:X===9?U(k==="X10"):X===12?U(F.cursorBlink):X===25?U(!z.isCursorHidden):X===45?U(G.reverseWraparound):X===66?U(G.applicationKeypad):X===67?4:X===1e3?U(k==="VT200"):X===1002?U(k==="DRAG"):X===1003?U(k==="ANY"):X===1004?U(G.sendFocus):X===1005?4:X===1006?U(H==="SGR"):X===1015?4:X===1016?U(H==="SGR_PIXELS"):X===1048?1:X===47||X===1047||X===1049?U(se===B):X===2004?U(G.bracketedPasteMode):0,z.triggerDataEvent(`${u.C0.ESC}[${D?"":"?"}${j};${J}$y`),!0;var j,J}_updateAttrColor(I,D,G,k,H){return D===2?(I|=50331648,I&=-16777216,I|=_.AttributeData.fromColorRGB([G,k,H])):D===5&&(I&=-50331904,I|=33554432|255&G),I}_extractColor(I,D,G){const k=[0,0,-1,0,0,0];let H=0,z=0;do{if(k[z+H]=I.params[D+z],I.hasSubParams(D+z)){const Q=I.getSubParams(D+z);let q=0;do k[1]===5&&(H=1),k[z+q+1+H]=Q[q];while(++q=2||k[1]===2&&z+H>=5)break;k[1]&&(H=1)}while(++z+D5)&&(I=1),D.extended.underlineStyle=I,D.fg|=268435456,I===0&&(D.fg&=-268435457),D.updateExtended()}_processSGR0(I){I.fg=m.DEFAULT_ATTR_DATA.fg,I.bg=m.DEFAULT_ATTR_DATA.bg,I.extended=I.extended.clone(),I.extended.underlineStyle=0,I.extended.underlineColor&=-67108864,I.updateExtended()}charAttributes(I){if(I.length===1&&I.params[0]===0)return this._processSGR0(this._curAttrData),!0;const D=I.length;let G;const k=this._curAttrData;for(let H=0;H=30&&G<=37?(k.fg&=-50331904,k.fg|=16777216|G-30):G>=40&&G<=47?(k.bg&=-50331904,k.bg|=16777216|G-40):G>=90&&G<=97?(k.fg&=-50331904,k.fg|=16777224|G-90):G>=100&&G<=107?(k.bg&=-50331904,k.bg|=16777224|G-100):G===0?this._processSGR0(k):G===1?k.fg|=134217728:G===3?k.bg|=67108864:G===4?(k.fg|=268435456,this._processUnderline(I.hasSubParams(H)?I.getSubParams(H)[0]:1,k)):G===5?k.fg|=536870912:G===7?k.fg|=67108864:G===8?k.fg|=1073741824:G===9?k.fg|=2147483648:G===2?k.bg|=134217728:G===21?this._processUnderline(2,k):G===22?(k.fg&=-134217729,k.bg&=-134217729):G===23?k.bg&=-67108865:G===24?(k.fg&=-268435457,this._processUnderline(0,k)):G===25?k.fg&=-536870913:G===27?k.fg&=-67108865:G===28?k.fg&=-1073741825:G===29?k.fg&=2147483647:G===39?(k.fg&=-67108864,k.fg|=16777215&m.DEFAULT_ATTR_DATA.fg):G===49?(k.bg&=-67108864,k.bg|=16777215&m.DEFAULT_ATTR_DATA.bg):G===38||G===48||G===58?H+=this._extractColor(I,H,k):G===53?k.bg|=1073741824:G===55?k.bg&=-1073741825:G===59?(k.extended=k.extended.clone(),k.extended.underlineColor=-1,k.updateExtended()):G===100?(k.fg&=-67108864,k.fg|=16777215&m.DEFAULT_ATTR_DATA.fg,k.bg&=-67108864,k.bg|=16777215&m.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",G);return!0}deviceStatus(I){switch(I.params[0]){case 5:this._coreService.triggerDataEvent(`${u.C0.ESC}[0n`);break;case 6:const D=this._activeBuffer.y+1,G=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${u.C0.ESC}[${D};${G}R`)}return!0}deviceStatusPrivate(I){if(I.params[0]===6){const D=this._activeBuffer.y+1,G=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${u.C0.ESC}[?${D};${G}R`)}return!0}softReset(I){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=m.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(I){const D=I.params[0]||1;switch(D){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}const G=D%2==1;return this._optionsService.options.cursorBlink=G,!0}setScrollRegion(I){const D=I.params[0]||1;let G;return(I.length<2||(G=I.params[1])>this._bufferService.rows||G===0)&&(G=this._bufferService.rows),G>D&&(this._activeBuffer.scrollTop=D-1,this._activeBuffer.scrollBottom=G-1,this._setCursor(0,0)),!0}windowOptions(I){if(!C(I.params[0],this._optionsService.rawOptions.windowOptions))return!0;const D=I.length>1?I.params[1]:0;switch(I.params[0]){case 14:D!==2&&this._onRequestWindowsOptionsReport.fire(P.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(P.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${u.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:D!==0&&D!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),D!==0&&D!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:D!==0&&D!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),D!==0&&D!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(I){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(I){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(I){return this._windowTitle=I,this._onTitleChange.fire(I),!0}setIconName(I){return this._iconName=I,!0}setOrReportIndexedColor(I){const D=[],G=I.split(";");for(;G.length>1;){const k=G.shift(),H=G.shift();if(/^\d+$/.exec(k)){const z=parseInt(k);if(N(z))if(H==="?")D.push({type:0,index:z});else{const Q=(0,M.parseColor)(H);Q&&D.push({type:1,index:z,color:Q})}}}return D.length&&this._onColor.fire(D),!0}setHyperlink(I){const D=I.split(";");return!(D.length<2)&&(D[1]?this._createHyperlink(D[0],D[1]):!D[0]&&this._finishHyperlink())}_createHyperlink(I,D){this._getCurrentLinkId()&&this._finishHyperlink();const G=I.split(":");let k;const H=G.findIndex(z=>z.startsWith("id="));return H!==-1&&(k=G[H].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:k,uri:D}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(I,D){const G=I.split(";");for(let k=0;k=this._specialColors.length);++k,++D)if(G[k]==="?")this._onColor.fire([{type:0,index:this._specialColors[D]}]);else{const H=(0,M.parseColor)(G[k]);H&&this._onColor.fire([{type:1,index:this._specialColors[D],color:H}])}return!0}setOrReportFgColor(I){return this._setOrReportSpecialColor(I,0)}setOrReportBgColor(I){return this._setOrReportSpecialColor(I,1)}setOrReportCursorColor(I){return this._setOrReportSpecialColor(I,2)}restoreIndexedColor(I){if(!I)return this._onColor.fire([{type:2}]),!0;const D=[],G=I.split(";");for(let k=0;k=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){const I=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,I,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=m.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=m.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(I){return this._charsetService.setgLevel(I),!0}screenAlignmentPattern(){const I=new y.CellData;I.content=4194304|"E".charCodeAt(0),I.fg=this._curAttrData.fg,I.bg=this._curAttrData.bg,this._setCursor(0,0);for(let D=0;D(this._coreService.triggerDataEvent(`${u.C0.ESC}${H}${u.C0.ESC}\\`),!0))(I==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:I==='"p'?'P1$r61;1"p':I==="r"?`P1$r${G.scrollTop+1};${G.scrollBottom+1}r`:I==="m"?"P1$r0m":I===" q"?`P1$r${{block:2,underline:4,bar:6}[k.cursorStyle]-(k.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(I,D){this._dirtyRowTracker.markRangeDirty(I,D)}}s.InputHandler=$;let O=class{constructor(R){this._bufferService=R,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(R){Rthis.end&&(this.end=R)}markRangeDirty(R,I){R>I&&(L=R,R=I,I=L),Rthis.end&&(this.end=I)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function N(R){return 0<=R&&R<256}O=d([c(0,S.IBufferService)],O)},844:(a,s)=>{function l(d){for(const c of d)c.dispose();d.length=0}Object.defineProperty(s,"__esModule",{value:!0}),s.getDisposeArrayDisposable=s.disposeArray=s.toDisposable=s.MutableDisposable=s.Disposable=void 0,s.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const d of this._disposables)d.dispose();this._disposables.length=0}register(d){return this._disposables.push(d),d}unregister(d){const c=this._disposables.indexOf(d);c!==-1&&this._disposables.splice(c,1)}},s.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(d){var c;this._isDisposed||d===this._value||((c=this._value)===null||c===void 0||c.dispose(),this._value=d)}clear(){this.value=void 0}dispose(){var d;this._isDisposed=!0,(d=this._value)===null||d===void 0||d.dispose(),this._value=void 0}},s.toDisposable=function(d){return{dispose:d}},s.disposeArray=l,s.getDisposeArrayDisposable=function(d){return{dispose:()=>l(d)}}},1505:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.FourKeyMap=s.TwoKeyMap=void 0;class l{constructor(){this._data={}}set(c,u,h){this._data[c]||(this._data[c]={}),this._data[c][u]=h}get(c,u){return this._data[c]?this._data[c][u]:void 0}clear(){this._data={}}}s.TwoKeyMap=l,s.FourKeyMap=class{constructor(){this._data=new l}set(d,c,u,h,g){this._data.get(d,c)||this._data.set(d,c,new l),this._data.get(d,c).set(u,h,g)}get(d,c,u,h){var g;return(g=this._data.get(d,c))===null||g===void 0?void 0:g.get(u,h)}clear(){this._data.clear()}}},6114:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.isChromeOS=s.isLinux=s.isWindows=s.isIphone=s.isIpad=s.isMac=s.getSafariVersion=s.isSafari=s.isLegacyEdge=s.isFirefox=s.isNode=void 0,s.isNode=typeof navigator>"u";const l=s.isNode?"node":navigator.userAgent,d=s.isNode?"node":navigator.platform;s.isFirefox=l.includes("Firefox"),s.isLegacyEdge=l.includes("Edge"),s.isSafari=/^((?!chrome|android).)*safari/i.test(l),s.getSafariVersion=function(){if(!s.isSafari)return 0;const c=l.match(/Version\/(\d+)/);return c===null||c.length<2?0:parseInt(c[1])},s.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(d),s.isIpad=d==="iPad",s.isIphone=d==="iPhone",s.isWindows=["Windows","Win16","Win32","WinCE"].includes(d),s.isLinux=d.indexOf("Linux")>=0,s.isChromeOS=/\bCrOS\b/.test(l)},6106:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.SortedList=void 0;let l=0;s.SortedList=class{constructor(d){this._getKey=d,this._array=[]}clear(){this._array.length=0}insert(d){this._array.length!==0?(l=this._search(this._getKey(d)),this._array.splice(l,0,d)):this._array.push(d)}delete(d){if(this._array.length===0)return!1;const c=this._getKey(d);if(c===void 0||(l=this._search(c),l===-1)||this._getKey(this._array[l])!==c)return!1;do if(this._array[l]===d)return this._array.splice(l,1),!0;while(++l=this._array.length)&&this._getKey(this._array[l])===d))do yield this._array[l];while(++l=this._array.length)&&this._getKey(this._array[l])===d))do c(this._array[l]);while(++l=c;){let h=c+u>>1;const g=this._getKey(this._array[h]);if(g>d)u=h-1;else{if(!(g0&&this._getKey(this._array[h-1])===d;)h--;return h}c=h+1}}return c}}},7226:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.DebouncedIdleTask=s.IdleTaskQueue=s.PriorityTaskQueue=void 0;const d=l(6114);class c{constructor(){this._tasks=[],this._i=0}enqueue(g){this._tasks.push(g),this._start()}flush(){for(;this._if)return m-p<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(m-p))}ms`),void this._start();m=f}this.clear()}}class u extends c{_requestCallback(g){return setTimeout(()=>g(this._createDeadline(16)))}_cancelCallback(g){clearTimeout(g)}_createDeadline(g){const p=Date.now()+g;return{timeRemaining:()=>Math.max(0,p-Date.now())}}}s.PriorityTaskQueue=u,s.IdleTaskQueue=!d.isNode&&"requestIdleCallback"in window?class extends c{_requestCallback(h){return requestIdleCallback(h)}_cancelCallback(h){cancelIdleCallback(h)}}:u,s.DebouncedIdleTask=class{constructor(){this._queue=new s.IdleTaskQueue}set(h){this._queue.clear(),this._queue.enqueue(h)}flush(){this._queue.flush()}}},9282:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.updateWindowsModeWrappedState=void 0;const d=l(643);s.updateWindowsModeWrappedState=function(c){const u=c.buffer.lines.get(c.buffer.ybase+c.buffer.y-1),h=u==null?void 0:u.get(c.cols-1),g=c.buffer.lines.get(c.buffer.ybase+c.buffer.y);g&&h&&(g.isWrapped=h[d.CHAR_DATA_CODE_INDEX]!==d.NULL_CELL_CODE&&h[d.CHAR_DATA_CODE_INDEX]!==d.WHITESPACE_CELL_CODE)}},3734:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ExtendedAttrs=s.AttributeData=void 0;class l{constructor(){this.fg=0,this.bg=0,this.extended=new d}static toColorRGB(u){return[u>>>16&255,u>>>8&255,255&u]}static fromColorRGB(u){return(255&u[0])<<16|(255&u[1])<<8|255&u[2]}clone(){const u=new l;return u.fg=this.fg,u.bg=this.bg,u.extended=this.extended.clone(),u}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return(50331648&this.fg)==50331648}isBgRGB(){return(50331648&this.bg)==50331648}isFgPalette(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432}isBgPalette(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432}isFgDefault(){return(50331648&this.fg)==0}isBgDefault(){return(50331648&this.bg)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}s.AttributeData=l;class d{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(u){this._ext=u}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(u){this._ext&=-469762049,this._ext|=u<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(u){this._ext&=-67108864,this._ext|=67108863&u}get urlId(){return this._urlId}set urlId(u){this._urlId=u}constructor(u=0,h=0){this._ext=0,this._urlId=0,this._ext=u,this._urlId=h}clone(){return new d(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}s.ExtendedAttrs=d},9092:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Buffer=s.MAX_BUFFER_SIZE=void 0;const d=l(6349),c=l(7226),u=l(3734),h=l(8437),g=l(4634),p=l(511),x=l(643),m=l(4863),f=l(7116);s.MAX_BUFFER_SIZE=4294967295,s.Buffer=class{constructor(v,y,_){this._hasScrollback=v,this._optionsService=y,this._bufferService=_,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=h.DEFAULT_ATTR_DATA.clone(),this.savedCharset=f.DEFAULT_CHARSET,this.markers=[],this._nullCell=p.CellData.fromCharData([0,x.NULL_CELL_CHAR,x.NULL_CELL_WIDTH,x.NULL_CELL_CODE]),this._whitespaceCell=p.CellData.fromCharData([0,x.WHITESPACE_CELL_CHAR,x.WHITESPACE_CELL_WIDTH,x.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new c.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new d.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(v){return v?(this._nullCell.fg=v.fg,this._nullCell.bg=v.bg,this._nullCell.extended=v.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new u.ExtendedAttrs),this._nullCell}getWhitespaceCell(v){return v?(this._whitespaceCell.fg=v.fg,this._whitespaceCell.bg=v.bg,this._whitespaceCell.extended=v.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new u.ExtendedAttrs),this._whitespaceCell}getBlankLine(v,y){return new h.BufferLine(this._bufferService.cols,this.getNullCell(v),y)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const v=this.ybase+this.y-this.ydisp;return v>=0&&vs.MAX_BUFFER_SIZE?s.MAX_BUFFER_SIZE:y}fillViewportRows(v){if(this.lines.length===0){v===void 0&&(v=h.DEFAULT_ATTR_DATA);let y=this._rows;for(;y--;)this.lines.push(this.getBlankLine(v))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new d.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(v,y){const _=this.getNullCell(h.DEFAULT_ATTR_DATA);let S=0;const b=this._getCorrectBufferLength(y);if(b>this.lines.maxLength&&(this.lines.maxLength=b),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+A+1?(this.ybase--,A++,this.ydisp>0&&this.ydisp--):this.lines.push(new h.BufferLine(v,_)));else for(let M=this._rows;M>y;M--)this.lines.length>y+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(b0&&(this.lines.trimStart(M),this.ybase=Math.max(this.ybase-M,0),this.ydisp=Math.max(this.ydisp-M,0),this.savedY=Math.max(this.savedY-M,0)),this.lines.maxLength=b}this.x=Math.min(this.x,v-1),this.y=Math.min(this.y,y-1),A&&(this.y+=A),this.savedX=Math.min(this.savedX,v-1),this.scrollTop=0}if(this.scrollBottom=y-1,this._isReflowEnabled&&(this._reflow(v,y),this._cols>v))for(let A=0;A.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let v=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,v=!1);let y=0;for(;this._memoryCleanupPosition100)return!0;return v}get _isReflowEnabled(){const v=this._optionsService.rawOptions.windowsPty;return v&&v.buildNumber?this._hasScrollback&&v.backend==="conpty"&&v.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(v,y){this._cols!==v&&(v>this._cols?this._reflowLarger(v,y):this._reflowSmaller(v,y))}_reflowLarger(v,y){const _=(0,g.reflowLargerGetLinesToRemove)(this.lines,this._cols,v,this.ybase+this.y,this.getNullCell(h.DEFAULT_ATTR_DATA));if(_.length>0){const S=(0,g.reflowLargerCreateNewLayout)(this.lines,_);(0,g.reflowLargerApplyNewLayout)(this.lines,S.layout),this._reflowLargerAdjustViewport(v,y,S.countRemoved)}}_reflowLargerAdjustViewport(v,y,_){const S=this.getNullCell(h.DEFAULT_ATTR_DATA);let b=_;for(;b-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length=0;A--){let M=this.lines.get(A);if(!M||!M.isWrapped&&M.getTrimmedLength()<=v)continue;const T=[M];for(;M.isWrapped&&A>0;)M=this.lines.get(--A),T.unshift(M);const w=this.ybase+this.y;if(w>=A&&w0&&(S.push({start:A+T.length+b,newLines:O}),b+=O.length),T.push(...O);let N=P.length-1,R=P[N];R===0&&(N--,R=P[N]);let I=T.length-L-1,D=C;for(;I>=0;){const k=Math.min(D,R);if(T[N]===void 0)break;if(T[N].copyCellsFrom(T[I],D-k,R-k,k,!0),R-=k,R===0&&(N--,R=P[N]),D-=k,D===0){I--;const H=Math.max(I,0);D=(0,g.getWrappedLineTrimmedLength)(T,H,this._cols)}}for(let k=0;k0;)this.ybase===0?this.y0){const A=[],M=[];for(let N=0;N=0;N--)if(P&&P.start>w+L){for(let R=P.newLines.length-1;R>=0;R--)this.lines.set(N--,P.newLines[R]);N++,A.push({index:w+1,amount:P.newLines.length}),L+=P.newLines.length,P=S[++C]}else this.lines.set(N,M[w--]);let $=0;for(let N=A.length-1;N>=0;N--)A[N].index+=$,this.lines.onInsertEmitter.fire(A[N]),$+=A[N].amount;const O=Math.max(0,T+b-this.lines.maxLength);O>0&&this.lines.onTrimEmitter.fire(O)}}translateBufferLineToString(v,y,_=0,S){const b=this.lines.get(v);return b?b.translateToString(y,_,S):""}getWrappedRangeForLine(v){let y=v,_=v;for(;y>0&&this.lines.get(y).isWrapped;)y--;for(;_+10;);return v>=this._cols?this._cols-1:v<0?0:v}nextStop(v){for(v==null&&(v=this.x);!this.tabs[++v]&&v=this._cols?this._cols-1:v<0?0:v}clearMarkers(v){this._isClearing=!0;for(let y=0;y{y.line-=_,y.line<0&&y.dispose()})),y.register(this.lines.onInsert(_=>{y.line>=_.index&&(y.line+=_.amount)})),y.register(this.lines.onDelete(_=>{y.line>=_.index&&y.line<_.index+_.amount&&y.dispose(),y.line>_.index&&(y.line-=_.amount)})),y.register(y.onDispose(()=>this._removeMarker(y))),y}_removeMarker(v){this._isClearing||this.markers.splice(this.markers.indexOf(v),1)}}},8437:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.BufferLine=s.DEFAULT_ATTR_DATA=void 0;const d=l(3734),c=l(511),u=l(643),h=l(482);s.DEFAULT_ATTR_DATA=Object.freeze(new d.AttributeData);let g=0;class p{constructor(m,f,v=!1){this.isWrapped=v,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*m);const y=f||c.CellData.fromCharData([0,u.NULL_CELL_CHAR,u.NULL_CELL_WIDTH,u.NULL_CELL_CODE]);for(let _=0;_>22,2097152&f?this._combined[m].charCodeAt(this._combined[m].length-1):v]}set(m,f){this._data[3*m+1]=f[u.CHAR_DATA_ATTR_INDEX],f[u.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[m]=f[1],this._data[3*m+0]=2097152|m|f[u.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*m+0]=f[u.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|f[u.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(m){return this._data[3*m+0]>>22}hasWidth(m){return 12582912&this._data[3*m+0]}getFg(m){return this._data[3*m+1]}getBg(m){return this._data[3*m+2]}hasContent(m){return 4194303&this._data[3*m+0]}getCodePoint(m){const f=this._data[3*m+0];return 2097152&f?this._combined[m].charCodeAt(this._combined[m].length-1):2097151&f}isCombined(m){return 2097152&this._data[3*m+0]}getString(m){const f=this._data[3*m+0];return 2097152&f?this._combined[m]:2097151&f?(0,h.stringFromCodePoint)(2097151&f):""}isProtected(m){return 536870912&this._data[3*m+2]}loadCell(m,f){return g=3*m,f.content=this._data[g+0],f.fg=this._data[g+1],f.bg=this._data[g+2],2097152&f.content&&(f.combinedData=this._combined[m]),268435456&f.bg&&(f.extended=this._extendedAttrs[m]),f}setCell(m,f){2097152&f.content&&(this._combined[m]=f.combinedData),268435456&f.bg&&(this._extendedAttrs[m]=f.extended),this._data[3*m+0]=f.content,this._data[3*m+1]=f.fg,this._data[3*m+2]=f.bg}setCellFromCodePoint(m,f,v,y,_,S){268435456&_&&(this._extendedAttrs[m]=S),this._data[3*m+0]=f|v<<22,this._data[3*m+1]=y,this._data[3*m+2]=_}addCodepointToCell(m,f){let v=this._data[3*m+0];2097152&v?this._combined[m]+=(0,h.stringFromCodePoint)(f):(2097151&v?(this._combined[m]=(0,h.stringFromCodePoint)(2097151&v)+(0,h.stringFromCodePoint)(f),v&=-2097152,v|=2097152):v=f|4194304,this._data[3*m+0]=v)}insertCells(m,f,v,y){if((m%=this.length)&&this.getWidth(m-1)===2&&this.setCellFromCodePoint(m-1,0,1,(y==null?void 0:y.fg)||0,(y==null?void 0:y.bg)||0,(y==null?void 0:y.extended)||new d.ExtendedAttrs),f=0;--S)this.setCell(m+f+S,this.loadCell(m+S,_));for(let S=0;Sthis.length){if(this._data.buffer.byteLength>=4*v)this._data=new Uint32Array(this._data.buffer,0,v);else{const y=new Uint32Array(v);y.set(this._data),this._data=y}for(let y=this.length;y=m&&delete this._combined[b]}const _=Object.keys(this._extendedAttrs);for(let S=0;S<_.length;S++){const b=parseInt(_[S],10);b>=m&&delete this._extendedAttrs[b]}}return this.length=m,4*v*2=0;--m)if(4194303&this._data[3*m+0])return m+(this._data[3*m+0]>>22);return 0}getNoBgTrimmedLength(){for(let m=this.length-1;m>=0;--m)if(4194303&this._data[3*m+0]||50331648&this._data[3*m+2])return m+(this._data[3*m+0]>>22);return 0}copyCellsFrom(m,f,v,y,_){const S=m._data;if(_)for(let A=y-1;A>=0;A--){for(let M=0;M<3;M++)this._data[3*(v+A)+M]=S[3*(f+A)+M];268435456&S[3*(f+A)+2]&&(this._extendedAttrs[v+A]=m._extendedAttrs[f+A])}else for(let A=0;A=f&&(this._combined[M-f+v]=m._combined[M])}}translateToString(m=!1,f=0,v=this.length){m&&(v=Math.min(v,this.getTrimmedLength()));let y="";for(;f>22||1}return y}}s.BufferLine=p},4841:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.getRangeLength=void 0,s.getRangeLength=function(l,d){if(l.start.y>l.end.y)throw new Error(`Buffer range end (${l.end.x}, ${l.end.y}) cannot be before start (${l.start.x}, ${l.start.y})`);return d*(l.end.y-l.start.y)+(l.end.x-l.start.x+1)}},4634:(a,s)=>{function l(d,c,u){if(c===d.length-1)return d[c].getTrimmedLength();const h=!d[c].hasContent(u-1)&&d[c].getWidth(u-1)===1,g=d[c+1].getWidth(0)===2;return h&&g?u-1:u}Object.defineProperty(s,"__esModule",{value:!0}),s.getWrappedLineTrimmedLength=s.reflowSmallerGetNewLineLengths=s.reflowLargerApplyNewLayout=s.reflowLargerCreateNewLayout=s.reflowLargerGetLinesToRemove=void 0,s.reflowLargerGetLinesToRemove=function(d,c,u,h,g){const p=[];for(let x=0;x=x&&h0&&(M>y||v[M].getTrimmedLength()===0);M--)A++;A>0&&(p.push(x+v.length-A),p.push(A)),x+=v.length-1}return p},s.reflowLargerCreateNewLayout=function(d,c){const u=[];let h=0,g=c[h],p=0;for(let x=0;xl(d,v,c)).reduce((f,v)=>f+v);let p=0,x=0,m=0;for(;mf&&(p-=f,x++);const v=d[x].getWidth(p-1)===2;v&&p--;const y=v?u-1:u;h.push(y),m+=y}return h},s.getWrappedLineTrimmedLength=l},5295:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.BufferSet=void 0;const d=l(8460),c=l(844),u=l(9092);class h extends c.Disposable{constructor(p,x){super(),this._optionsService=p,this._bufferService=x,this._onBufferActivate=this.register(new d.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.resize(this._bufferService.cols,this._bufferService.rows))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",()=>this.setupTabStops()))}reset(){this._normal=new u.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new u.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(p){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(p),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(p,x){this._normal.resize(p,x),this._alt.resize(p,x),this.setupTabStops(p)}setupTabStops(p){this._normal.setupTabStops(p),this._alt.setupTabStops(p)}}s.BufferSet=h},511:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CellData=void 0;const d=l(482),c=l(643),u=l(3734);class h extends u.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new u.ExtendedAttrs,this.combinedData=""}static fromCharData(p){const x=new h;return x.setFromCharData(p),x}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,d.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(p){this.fg=p[c.CHAR_DATA_ATTR_INDEX],this.bg=0;let x=!1;if(p[c.CHAR_DATA_CHAR_INDEX].length>2)x=!0;else if(p[c.CHAR_DATA_CHAR_INDEX].length===2){const m=p[c.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=m&&m<=56319){const f=p[c.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=f&&f<=57343?this.content=1024*(m-55296)+f-56320+65536|p[c.CHAR_DATA_WIDTH_INDEX]<<22:x=!0}else x=!0}else this.content=p[c.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|p[c.CHAR_DATA_WIDTH_INDEX]<<22;x&&(this.combinedData=p[c.CHAR_DATA_CHAR_INDEX],this.content=2097152|p[c.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}s.CellData=h},643:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.WHITESPACE_CELL_CODE=s.WHITESPACE_CELL_WIDTH=s.WHITESPACE_CELL_CHAR=s.NULL_CELL_CODE=s.NULL_CELL_WIDTH=s.NULL_CELL_CHAR=s.CHAR_DATA_CODE_INDEX=s.CHAR_DATA_WIDTH_INDEX=s.CHAR_DATA_CHAR_INDEX=s.CHAR_DATA_ATTR_INDEX=s.DEFAULT_EXT=s.DEFAULT_ATTR=s.DEFAULT_COLOR=void 0,s.DEFAULT_COLOR=0,s.DEFAULT_ATTR=256|s.DEFAULT_COLOR<<9,s.DEFAULT_EXT=0,s.CHAR_DATA_ATTR_INDEX=0,s.CHAR_DATA_CHAR_INDEX=1,s.CHAR_DATA_WIDTH_INDEX=2,s.CHAR_DATA_CODE_INDEX=3,s.NULL_CELL_CHAR="",s.NULL_CELL_WIDTH=1,s.NULL_CELL_CODE=0,s.WHITESPACE_CELL_CHAR=" ",s.WHITESPACE_CELL_WIDTH=1,s.WHITESPACE_CELL_CODE=32},4863:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Marker=void 0;const d=l(8460),c=l(844);class u{get id(){return this._id}constructor(g){this.line=g,this.isDisposed=!1,this._disposables=[],this._id=u._nextId++,this._onDispose=this.register(new d.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,c.disposeArray)(this._disposables),this._disposables.length=0)}register(g){return this._disposables.push(g),g}}s.Marker=u,u._nextId=1},7116:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.DEFAULT_CHARSET=s.CHARSETS=void 0,s.CHARSETS={},s.DEFAULT_CHARSET=s.CHARSETS.B,s.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},s.CHARSETS.A={"#":"\xA3"},s.CHARSETS.B=void 0,s.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},s.CHARSETS.C=s.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},s.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},s.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},s.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},s.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},s.CHARSETS.E=s.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},s.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},s.CHARSETS.H=s.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},s.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},2584:(a,s)=>{var l,d,c;Object.defineProperty(s,"__esModule",{value:!0}),s.C1_ESCAPED=s.C1=s.C0=void 0,function(u){u.NUL="\0",u.SOH="",u.STX="",u.ETX="",u.EOT="",u.ENQ="",u.ACK="",u.BEL="\x07",u.BS="\b",u.HT=" ",u.LF=` -`,u.VT="\v",u.FF="\f",u.CR="\r",u.SO="",u.SI="",u.DLE="",u.DC1="",u.DC2="",u.DC3="",u.DC4="",u.NAK="",u.SYN="",u.ETB="",u.CAN="",u.EM="",u.SUB="",u.ESC="\x1B",u.FS="",u.GS="",u.RS="",u.US="",u.SP=" ",u.DEL="\x7F"}(l||(s.C0=l={})),function(u){u.PAD="\x80",u.HOP="\x81",u.BPH="\x82",u.NBH="\x83",u.IND="\x84",u.NEL="\x85",u.SSA="\x86",u.ESA="\x87",u.HTS="\x88",u.HTJ="\x89",u.VTS="\x8A",u.PLD="\x8B",u.PLU="\x8C",u.RI="\x8D",u.SS2="\x8E",u.SS3="\x8F",u.DCS="\x90",u.PU1="\x91",u.PU2="\x92",u.STS="\x93",u.CCH="\x94",u.MW="\x95",u.SPA="\x96",u.EPA="\x97",u.SOS="\x98",u.SGCI="\x99",u.SCI="\x9A",u.CSI="\x9B",u.ST="\x9C",u.OSC="\x9D",u.PM="\x9E",u.APC="\x9F"}(d||(s.C1=d={})),function(u){u.ST=`${l.ESC}\\`}(c||(s.C1_ESCAPED=c={}))},7399:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.evaluateKeyboardEvent=void 0;const d=l(2584),c={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};s.evaluateKeyboardEvent=function(u,h,g,p){const x={type:0,cancel:!1,key:void 0},m=(u.shiftKey?1:0)|(u.altKey?2:0)|(u.ctrlKey?4:0)|(u.metaKey?8:0);switch(u.keyCode){case 0:u.key==="UIKeyInputUpArrow"?x.key=h?d.C0.ESC+"OA":d.C0.ESC+"[A":u.key==="UIKeyInputLeftArrow"?x.key=h?d.C0.ESC+"OD":d.C0.ESC+"[D":u.key==="UIKeyInputRightArrow"?x.key=h?d.C0.ESC+"OC":d.C0.ESC+"[C":u.key==="UIKeyInputDownArrow"&&(x.key=h?d.C0.ESC+"OB":d.C0.ESC+"[B");break;case 8:if(u.altKey){x.key=d.C0.ESC+d.C0.DEL;break}x.key=d.C0.DEL;break;case 9:if(u.shiftKey){x.key=d.C0.ESC+"[Z";break}x.key=d.C0.HT,x.cancel=!0;break;case 13:x.key=u.altKey?d.C0.ESC+d.C0.CR:d.C0.CR,x.cancel=!0;break;case 27:x.key=d.C0.ESC,u.altKey&&(x.key=d.C0.ESC+d.C0.ESC),x.cancel=!0;break;case 37:if(u.metaKey)break;m?(x.key=d.C0.ESC+"[1;"+(m+1)+"D",x.key===d.C0.ESC+"[1;3D"&&(x.key=d.C0.ESC+(g?"b":"[1;5D"))):x.key=h?d.C0.ESC+"OD":d.C0.ESC+"[D";break;case 39:if(u.metaKey)break;m?(x.key=d.C0.ESC+"[1;"+(m+1)+"C",x.key===d.C0.ESC+"[1;3C"&&(x.key=d.C0.ESC+(g?"f":"[1;5C"))):x.key=h?d.C0.ESC+"OC":d.C0.ESC+"[C";break;case 38:if(u.metaKey)break;m?(x.key=d.C0.ESC+"[1;"+(m+1)+"A",g||x.key!==d.C0.ESC+"[1;3A"||(x.key=d.C0.ESC+"[1;5A")):x.key=h?d.C0.ESC+"OA":d.C0.ESC+"[A";break;case 40:if(u.metaKey)break;m?(x.key=d.C0.ESC+"[1;"+(m+1)+"B",g||x.key!==d.C0.ESC+"[1;3B"||(x.key=d.C0.ESC+"[1;5B")):x.key=h?d.C0.ESC+"OB":d.C0.ESC+"[B";break;case 45:u.shiftKey||u.ctrlKey||(x.key=d.C0.ESC+"[2~");break;case 46:x.key=m?d.C0.ESC+"[3;"+(m+1)+"~":d.C0.ESC+"[3~";break;case 36:x.key=m?d.C0.ESC+"[1;"+(m+1)+"H":h?d.C0.ESC+"OH":d.C0.ESC+"[H";break;case 35:x.key=m?d.C0.ESC+"[1;"+(m+1)+"F":h?d.C0.ESC+"OF":d.C0.ESC+"[F";break;case 33:u.shiftKey?x.type=2:u.ctrlKey?x.key=d.C0.ESC+"[5;"+(m+1)+"~":x.key=d.C0.ESC+"[5~";break;case 34:u.shiftKey?x.type=3:u.ctrlKey?x.key=d.C0.ESC+"[6;"+(m+1)+"~":x.key=d.C0.ESC+"[6~";break;case 112:x.key=m?d.C0.ESC+"[1;"+(m+1)+"P":d.C0.ESC+"OP";break;case 113:x.key=m?d.C0.ESC+"[1;"+(m+1)+"Q":d.C0.ESC+"OQ";break;case 114:x.key=m?d.C0.ESC+"[1;"+(m+1)+"R":d.C0.ESC+"OR";break;case 115:x.key=m?d.C0.ESC+"[1;"+(m+1)+"S":d.C0.ESC+"OS";break;case 116:x.key=m?d.C0.ESC+"[15;"+(m+1)+"~":d.C0.ESC+"[15~";break;case 117:x.key=m?d.C0.ESC+"[17;"+(m+1)+"~":d.C0.ESC+"[17~";break;case 118:x.key=m?d.C0.ESC+"[18;"+(m+1)+"~":d.C0.ESC+"[18~";break;case 119:x.key=m?d.C0.ESC+"[19;"+(m+1)+"~":d.C0.ESC+"[19~";break;case 120:x.key=m?d.C0.ESC+"[20;"+(m+1)+"~":d.C0.ESC+"[20~";break;case 121:x.key=m?d.C0.ESC+"[21;"+(m+1)+"~":d.C0.ESC+"[21~";break;case 122:x.key=m?d.C0.ESC+"[23;"+(m+1)+"~":d.C0.ESC+"[23~";break;case 123:x.key=m?d.C0.ESC+"[24;"+(m+1)+"~":d.C0.ESC+"[24~";break;default:if(!u.ctrlKey||u.shiftKey||u.altKey||u.metaKey)if(g&&!p||!u.altKey||u.metaKey)!g||u.altKey||u.ctrlKey||u.shiftKey||!u.metaKey?u.key&&!u.ctrlKey&&!u.altKey&&!u.metaKey&&u.keyCode>=48&&u.key.length===1?x.key=u.key:u.key&&u.ctrlKey&&(u.key==="_"&&(x.key=d.C0.US),u.key==="@"&&(x.key=d.C0.NUL)):u.keyCode===65&&(x.type=1);else{const f=c[u.keyCode],v=f==null?void 0:f[u.shiftKey?1:0];if(v)x.key=d.C0.ESC+v;else if(u.keyCode>=65&&u.keyCode<=90){const y=u.ctrlKey?u.keyCode-64:u.keyCode+32;let _=String.fromCharCode(y);u.shiftKey&&(_=_.toUpperCase()),x.key=d.C0.ESC+_}else if(u.keyCode===32)x.key=d.C0.ESC+(u.ctrlKey?d.C0.NUL:" ");else if(u.key==="Dead"&&u.code.startsWith("Key")){let y=u.code.slice(3,4);u.shiftKey||(y=y.toLowerCase()),x.key=d.C0.ESC+y,x.cancel=!0}}else u.keyCode>=65&&u.keyCode<=90?x.key=String.fromCharCode(u.keyCode-64):u.keyCode===32?x.key=d.C0.NUL:u.keyCode>=51&&u.keyCode<=55?x.key=String.fromCharCode(u.keyCode-51+27):u.keyCode===56?x.key=d.C0.DEL:u.keyCode===219?x.key=d.C0.ESC:u.keyCode===220?x.key=d.C0.FS:u.keyCode===221&&(x.key=d.C0.GS)}return x}},482:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Utf8ToUtf32=s.StringToUtf32=s.utf32ToString=s.stringFromCodePoint=void 0,s.stringFromCodePoint=function(l){return l>65535?(l-=65536,String.fromCharCode(55296+(l>>10))+String.fromCharCode(l%1024+56320)):String.fromCharCode(l)},s.utf32ToString=function(l,d=0,c=l.length){let u="";for(let h=d;h65535?(g-=65536,u+=String.fromCharCode(55296+(g>>10))+String.fromCharCode(g%1024+56320)):u+=String.fromCharCode(g)}return u},s.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(l,d){const c=l.length;if(!c)return 0;let u=0,h=0;if(this._interim){const g=l.charCodeAt(h++);56320<=g&&g<=57343?d[u++]=1024*(this._interim-55296)+g-56320+65536:(d[u++]=this._interim,d[u++]=g),this._interim=0}for(let g=h;g=c)return this._interim=p,u;const x=l.charCodeAt(g);56320<=x&&x<=57343?d[u++]=1024*(p-55296)+x-56320+65536:(d[u++]=p,d[u++]=x)}else p!==65279&&(d[u++]=p)}return u}},s.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(l,d){const c=l.length;if(!c)return 0;let u,h,g,p,x=0,m=0,f=0;if(this.interim[0]){let _=!1,S=this.interim[0];S&=(224&S)==192?31:(240&S)==224?15:7;let b,A=0;for(;(b=63&this.interim[++A])&&A<4;)S<<=6,S|=b;const M=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,T=M-A;for(;f=c)return 0;if(b=l[f++],(192&b)!=128){f--,_=!0;break}this.interim[A++]=b,S<<=6,S|=63&b}_||(M===2?S<128?f--:d[x++]=S:M===3?S<2048||S>=55296&&S<=57343||S===65279||(d[x++]=S):S<65536||S>1114111||(d[x++]=S)),this.interim.fill(0)}const v=c-4;let y=f;for(;y=c)return this.interim[0]=u,x;if(h=l[y++],(192&h)!=128){y--;continue}if(m=(31&u)<<6|63&h,m<128){y--;continue}d[x++]=m}else if((240&u)==224){if(y>=c)return this.interim[0]=u,x;if(h=l[y++],(192&h)!=128){y--;continue}if(y>=c)return this.interim[0]=u,this.interim[1]=h,x;if(g=l[y++],(192&g)!=128){y--;continue}if(m=(15&u)<<12|(63&h)<<6|63&g,m<2048||m>=55296&&m<=57343||m===65279)continue;d[x++]=m}else if((248&u)==240){if(y>=c)return this.interim[0]=u,x;if(h=l[y++],(192&h)!=128){y--;continue}if(y>=c)return this.interim[0]=u,this.interim[1]=h,x;if(g=l[y++],(192&g)!=128){y--;continue}if(y>=c)return this.interim[0]=u,this.interim[1]=h,this.interim[2]=g,x;if(p=l[y++],(192&p)!=128){y--;continue}if(m=(7&u)<<18|(63&h)<<12|(63&g)<<6|63&p,m<65536||m>1114111)continue;d[x++]=m}}return x}}},225:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.UnicodeV6=void 0;const l=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],d=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let c;s.UnicodeV6=class{constructor(){if(this.version="6",!c){c=new Uint8Array(65536),c.fill(1),c[0]=0,c.fill(0,1,32),c.fill(0,127,160),c.fill(2,4352,4448),c[9001]=2,c[9002]=2,c.fill(2,11904,42192),c[12351]=1,c.fill(2,44032,55204),c.fill(2,63744,64256),c.fill(2,65040,65050),c.fill(2,65072,65136),c.fill(2,65280,65377),c.fill(2,65504,65511);for(let u=0;ug[m][1])return!1;for(;m>=x;)if(p=x+m>>1,h>g[p][1])x=p+1;else{if(!(h=131072&&u<=196605||u>=196608&&u<=262141?2:1}}},5981:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.WriteBuffer=void 0;const d=l(8460),c=l(844);class u extends c.Disposable{constructor(g){super(),this._action=g,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new d.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(g,p){if(p!==void 0&&this._syncCalls>p)return void(this._syncCalls=0);if(this._pendingData+=g.length,this._writeBuffer.push(g),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let x;for(this._isSyncWriting=!0;x=this._writeBuffer.shift();){this._action(x);const m=this._callbacks.shift();m&&m()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(g,p){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=g.length,this._writeBuffer.push(g),this._callbacks.push(p),void this._innerWrite();setTimeout(()=>this._innerWrite())}this._pendingData+=g.length,this._writeBuffer.push(g),this._callbacks.push(p)}_innerWrite(g=0,p=!0){const x=g||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const m=this._writeBuffer[this._bufferOffset],f=this._action(m,p);if(f){const y=_=>Date.now()-x>=12?setTimeout(()=>this._innerWrite(0,_)):this._innerWrite(x,_);return void f.catch(_=>(queueMicrotask(()=>{throw _}),Promise.resolve(!1))).then(y)}const v=this._callbacks[this._bufferOffset];if(v&&v(),this._bufferOffset++,this._pendingData-=m.length,Date.now()-x>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}s.WriteBuffer=u},5941:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.toRgbString=s.parseColor=void 0;const l=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,d=/^[\da-f]+$/;function c(u,h){const g=u.toString(16),p=g.length<2?"0"+g:g;switch(h){case 4:return g[0];case 8:return p;case 12:return(p+p).slice(0,3);default:return p+p}}s.parseColor=function(u){if(!u)return;let h=u.toLowerCase();if(h.indexOf("rgb:")===0){h=h.slice(4);const g=l.exec(h);if(g){const p=g[1]?15:g[4]?255:g[7]?4095:65535;return[Math.round(parseInt(g[1]||g[4]||g[7]||g[10],16)/p*255),Math.round(parseInt(g[2]||g[5]||g[8]||g[11],16)/p*255),Math.round(parseInt(g[3]||g[6]||g[9]||g[12],16)/p*255)]}}else if(h.indexOf("#")===0&&(h=h.slice(1),d.exec(h)&&[3,6,9,12].includes(h.length))){const g=h.length/3,p=[0,0,0];for(let x=0;x<3;++x){const m=parseInt(h.slice(g*x,g*x+g),16);p[x]=g===1?m<<4:g===2?m:g===3?m>>4:m>>8}return p}},s.toRgbString=function(u,h=16){const[g,p,x]=u;return`rgb:${c(g,h)}/${c(p,h)}/${c(x,h)}`}},5770:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PAYLOAD_LIMIT=void 0,s.PAYLOAD_LIMIT=1e7},6351:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.DcsHandler=s.DcsParser=void 0;const d=l(482),c=l(8742),u=l(5770),h=[];s.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=h,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=h}registerHandler(p,x){this._handlers[p]===void 0&&(this._handlers[p]=[]);const m=this._handlers[p];return m.push(x),{dispose:()=>{const f=m.indexOf(x);f!==-1&&m.splice(f,1)}}}clearHandler(p){this._handlers[p]&&delete this._handlers[p]}setHandlerFallback(p){this._handlerFb=p}reset(){if(this._active.length)for(let p=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;p>=0;--p)this._active[p].unhook(!1);this._stack.paused=!1,this._active=h,this._ident=0}hook(p,x){if(this.reset(),this._ident=p,this._active=this._handlers[p]||h,this._active.length)for(let m=this._active.length-1;m>=0;m--)this._active[m].hook(x);else this._handlerFb(this._ident,"HOOK",x)}put(p,x,m){if(this._active.length)for(let f=this._active.length-1;f>=0;f--)this._active[f].put(p,x,m);else this._handlerFb(this._ident,"PUT",(0,d.utf32ToString)(p,x,m))}unhook(p,x=!0){if(this._active.length){let m=!1,f=this._active.length-1,v=!1;if(this._stack.paused&&(f=this._stack.loopPosition-1,m=x,v=this._stack.fallThrough,this._stack.paused=!1),!v&&m===!1){for(;f>=0&&(m=this._active[f].unhook(p),m!==!0);f--)if(m instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=f,this._stack.fallThrough=!1,m;f--}for(;f>=0;f--)if(m=this._active[f].unhook(!1),m instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=f,this._stack.fallThrough=!0,m}else this._handlerFb(this._ident,"UNHOOK",p);this._active=h,this._ident=0}};const g=new c.Params;g.addParam(0),s.DcsHandler=class{constructor(p){this._handler=p,this._data="",this._params=g,this._hitLimit=!1}hook(p){this._params=p.length>1||p.params[0]?p.clone():g,this._data="",this._hitLimit=!1}put(p,x,m){this._hitLimit||(this._data+=(0,d.utf32ToString)(p,x,m),this._data.length>u.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(p){let x=!1;if(this._hitLimit)x=!1;else if(p&&(x=this._handler(this._data,this._params),x instanceof Promise))return x.then(m=>(this._params=g,this._data="",this._hitLimit=!1,m));return this._params=g,this._data="",this._hitLimit=!1,x}}},2015:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.EscapeSequenceParser=s.VT500_TRANSITION_TABLE=s.TransitionTable=void 0;const d=l(844),c=l(8742),u=l(6242),h=l(6351);class g{constructor(f){this.table=new Uint8Array(f)}setDefault(f,v){this.table.fill(f<<4|v)}add(f,v,y,_){this.table[v<<8|f]=y<<4|_}addMany(f,v,y,_){for(let S=0;SM),v=(A,M)=>f.slice(A,M),y=v(32,127),_=v(0,24);_.push(25),_.push.apply(_,v(28,32));const S=v(0,14);let b;for(b in m.setDefault(1,0),m.addMany(y,0,2,0),S)m.addMany([24,26,153,154],b,3,0),m.addMany(v(128,144),b,3,0),m.addMany(v(144,152),b,3,0),m.add(156,b,0,0),m.add(27,b,11,1),m.add(157,b,4,8),m.addMany([152,158,159],b,0,7),m.add(155,b,11,3),m.add(144,b,11,9);return m.addMany(_,0,3,0),m.addMany(_,1,3,1),m.add(127,1,0,1),m.addMany(_,8,0,8),m.addMany(_,3,3,3),m.add(127,3,0,3),m.addMany(_,4,3,4),m.add(127,4,0,4),m.addMany(_,6,3,6),m.addMany(_,5,3,5),m.add(127,5,0,5),m.addMany(_,2,3,2),m.add(127,2,0,2),m.add(93,1,4,8),m.addMany(y,8,5,8),m.add(127,8,5,8),m.addMany([156,27,24,26,7],8,6,0),m.addMany(v(28,32),8,0,8),m.addMany([88,94,95],1,0,7),m.addMany(y,7,0,7),m.addMany(_,7,0,7),m.add(156,7,0,0),m.add(127,7,0,7),m.add(91,1,11,3),m.addMany(v(64,127),3,7,0),m.addMany(v(48,60),3,8,4),m.addMany([60,61,62,63],3,9,4),m.addMany(v(48,60),4,8,4),m.addMany(v(64,127),4,7,0),m.addMany([60,61,62,63],4,0,6),m.addMany(v(32,64),6,0,6),m.add(127,6,0,6),m.addMany(v(64,127),6,0,0),m.addMany(v(32,48),3,9,5),m.addMany(v(32,48),5,9,5),m.addMany(v(48,64),5,0,6),m.addMany(v(64,127),5,7,0),m.addMany(v(32,48),4,9,5),m.addMany(v(32,48),1,9,2),m.addMany(v(32,48),2,9,2),m.addMany(v(48,127),2,10,0),m.addMany(v(48,80),1,10,0),m.addMany(v(81,88),1,10,0),m.addMany([89,90,92],1,10,0),m.addMany(v(96,127),1,10,0),m.add(80,1,11,9),m.addMany(_,9,0,9),m.add(127,9,0,9),m.addMany(v(28,32),9,0,9),m.addMany(v(32,48),9,9,12),m.addMany(v(48,60),9,8,10),m.addMany([60,61,62,63],9,9,10),m.addMany(_,11,0,11),m.addMany(v(32,128),11,0,11),m.addMany(v(28,32),11,0,11),m.addMany(_,10,0,10),m.add(127,10,0,10),m.addMany(v(28,32),10,0,10),m.addMany(v(48,60),10,8,10),m.addMany([60,61,62,63],10,0,11),m.addMany(v(32,48),10,9,12),m.addMany(_,12,0,12),m.add(127,12,0,12),m.addMany(v(28,32),12,0,12),m.addMany(v(32,48),12,9,12),m.addMany(v(48,64),12,0,11),m.addMany(v(64,127),12,12,13),m.addMany(v(64,127),10,12,13),m.addMany(v(64,127),9,12,13),m.addMany(_,13,13,13),m.addMany(y,13,13,13),m.add(127,13,0,13),m.addMany([27,156,24,26],13,14,0),m.add(p,0,2,0),m.add(p,8,5,8),m.add(p,6,0,6),m.add(p,11,0,11),m.add(p,13,13,13),m}();class x extends d.Disposable{constructor(f=s.VT500_TRANSITION_TABLE){super(),this._transitions=f,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new c.Params,this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._printHandlerFb=(v,y,_)=>{},this._executeHandlerFb=v=>{},this._csiHandlerFb=(v,y)=>{},this._escHandlerFb=v=>{},this._errorHandlerFb=v=>v,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,d.toDisposable)(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this.register(new u.OscParser),this._dcsParser=this.register(new h.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(f,v=[64,126]){let y=0;if(f.prefix){if(f.prefix.length>1)throw new Error("only one byte as prefix supported");if(y=f.prefix.charCodeAt(0),y&&60>y||y>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(f.intermediates){if(f.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let S=0;Sb||b>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");y<<=8,y|=b}}if(f.final.length!==1)throw new Error("final must be a single byte");const _=f.final.charCodeAt(0);if(v[0]>_||_>v[1])throw new Error(`final must be in range ${v[0]} .. ${v[1]}`);return y<<=8,y|=_,y}identToString(f){const v=[];for(;f;)v.push(String.fromCharCode(255&f)),f>>=8;return v.reverse().join("")}setPrintHandler(f){this._printHandler=f}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(f,v){const y=this._identifier(f,[48,126]);this._escHandlers[y]===void 0&&(this._escHandlers[y]=[]);const _=this._escHandlers[y];return _.push(v),{dispose:()=>{const S=_.indexOf(v);S!==-1&&_.splice(S,1)}}}clearEscHandler(f){this._escHandlers[this._identifier(f,[48,126])]&&delete this._escHandlers[this._identifier(f,[48,126])]}setEscHandlerFallback(f){this._escHandlerFb=f}setExecuteHandler(f,v){this._executeHandlers[f.charCodeAt(0)]=v}clearExecuteHandler(f){this._executeHandlers[f.charCodeAt(0)]&&delete this._executeHandlers[f.charCodeAt(0)]}setExecuteHandlerFallback(f){this._executeHandlerFb=f}registerCsiHandler(f,v){const y=this._identifier(f);this._csiHandlers[y]===void 0&&(this._csiHandlers[y]=[]);const _=this._csiHandlers[y];return _.push(v),{dispose:()=>{const S=_.indexOf(v);S!==-1&&_.splice(S,1)}}}clearCsiHandler(f){this._csiHandlers[this._identifier(f)]&&delete this._csiHandlers[this._identifier(f)]}setCsiHandlerFallback(f){this._csiHandlerFb=f}registerDcsHandler(f,v){return this._dcsParser.registerHandler(this._identifier(f),v)}clearDcsHandler(f){this._dcsParser.clearHandler(this._identifier(f))}setDcsHandlerFallback(f){this._dcsParser.setHandlerFallback(f)}registerOscHandler(f,v){return this._oscParser.registerHandler(f,v)}clearOscHandler(f){this._oscParser.clearHandler(f)}setOscHandlerFallback(f){this._oscParser.setHandlerFallback(f)}setErrorHandler(f){this._errorHandler=f}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(f,v,y,_,S){this._parseStack.state=f,this._parseStack.handlers=v,this._parseStack.handlerPos=y,this._parseStack.transition=_,this._parseStack.chunkPos=S}parse(f,v,y){let _,S=0,b=0,A=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,A=this._parseStack.chunkPos+1;else{if(y===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const M=this._parseStack.handlers;let T=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(y===!1&&T>-1){for(;T>=0&&(_=M[T](this._params),_!==!0);T--)if(_ instanceof Promise)return this._parseStack.handlerPos=T,_}this._parseStack.handlers=[];break;case 4:if(y===!1&&T>-1){for(;T>=0&&(_=M[T](),_!==!0);T--)if(_ instanceof Promise)return this._parseStack.handlerPos=T,_}this._parseStack.handlers=[];break;case 6:if(S=f[this._parseStack.chunkPos],_=this._dcsParser.unhook(S!==24&&S!==26,y),_)return _;S===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(S=f[this._parseStack.chunkPos],_=this._oscParser.end(S!==24&&S!==26,y),_)return _;S===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,A=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(let M=A;M>4){case 2:for(let L=M+1;;++L){if(L>=v||(S=f[L])<32||S>126&&S=v||(S=f[L])<32||S>126&&S=v||(S=f[L])<32||S>126&&S=v||(S=f[L])<32||S>126&&S=0&&(_=T[w](this._params),_!==!0);w--)if(_ instanceof Promise)return this._preserveStack(3,T,w,b,M),_;w<0&&this._csiHandlerFb(this._collect<<8|S,this._params),this.precedingCodepoint=0;break;case 8:do switch(S){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(S-48)}while(++M47&&S<60);M--;break;case 9:this._collect<<=8,this._collect|=S;break;case 10:const C=this._escHandlers[this._collect<<8|S];let P=C?C.length-1:-1;for(;P>=0&&(_=C[P](),_!==!0);P--)if(_ instanceof Promise)return this._preserveStack(4,C,P,b,M),_;P<0&&this._escHandlerFb(this._collect<<8|S),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|S,this._params);break;case 13:for(let L=M+1;;++L)if(L>=v||(S=f[L])===24||S===26||S===27||S>127&&S=v||(S=f[L])<32||S>127&&S{Object.defineProperty(s,"__esModule",{value:!0}),s.OscHandler=s.OscParser=void 0;const d=l(5770),c=l(482),u=[];s.OscParser=class{constructor(){this._state=0,this._active=u,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(h,g){this._handlers[h]===void 0&&(this._handlers[h]=[]);const p=this._handlers[h];return p.push(g),{dispose:()=>{const x=p.indexOf(g);x!==-1&&p.splice(x,1)}}}clearHandler(h){this._handlers[h]&&delete this._handlers[h]}setHandlerFallback(h){this._handlerFb=h}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=u}reset(){if(this._state===2)for(let h=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;h>=0;--h)this._active[h].end(!1);this._stack.paused=!1,this._active=u,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||u,this._active.length)for(let h=this._active.length-1;h>=0;h--)this._active[h].start();else this._handlerFb(this._id,"START")}_put(h,g,p){if(this._active.length)for(let x=this._active.length-1;x>=0;x--)this._active[x].put(h,g,p);else this._handlerFb(this._id,"PUT",(0,c.utf32ToString)(h,g,p))}start(){this.reset(),this._state=1}put(h,g,p){if(this._state!==3){if(this._state===1)for(;g0&&this._put(h,g,p)}}end(h,g=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let p=!1,x=this._active.length-1,m=!1;if(this._stack.paused&&(x=this._stack.loopPosition-1,p=g,m=this._stack.fallThrough,this._stack.paused=!1),!m&&p===!1){for(;x>=0&&(p=this._active[x].end(h),p!==!0);x--)if(p instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=x,this._stack.fallThrough=!1,p;x--}for(;x>=0;x--)if(p=this._active[x].end(!1),p instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=x,this._stack.fallThrough=!0,p}else this._handlerFb(this._id,"END",h);this._active=u,this._id=-1,this._state=0}}},s.OscHandler=class{constructor(h){this._handler=h,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(h,g,p){this._hitLimit||(this._data+=(0,c.utf32ToString)(h,g,p),this._data.length>d.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(h){let g=!1;if(this._hitLimit)g=!1;else if(h&&(g=this._handler(this._data),g instanceof Promise))return g.then(p=>(this._data="",this._hitLimit=!1,p));return this._data="",this._hitLimit=!1,g}}},8742:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Params=void 0;const l=2147483647;class d{static fromArray(u){const h=new d;if(!u.length)return h;for(let g=Array.isArray(u[0])?1:0;g256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(u),this.length=0,this._subParams=new Int32Array(h),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(u),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){const u=new d(this.maxLength,this.maxSubParamsLength);return u.params.set(this.params),u.length=this.length,u._subParams.set(this._subParams),u._subParamsLength=this._subParamsLength,u._subParamsIdx.set(this._subParamsIdx),u._rejectDigits=this._rejectDigits,u._rejectSubDigits=this._rejectSubDigits,u._digitIsSub=this._digitIsSub,u}toArray(){const u=[];for(let h=0;h>8,p=255&this._subParamsIdx[h];p-g>0&&u.push(Array.prototype.slice.call(this._subParams,g,p))}return u}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(u){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(u<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=u>l?l:u}}addSubParam(u){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(u<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=u>l?l:u,this._subParamsIdx[this.length-1]++}}hasSubParams(u){return(255&this._subParamsIdx[u])-(this._subParamsIdx[u]>>8)>0}getSubParams(u){const h=this._subParamsIdx[u]>>8,g=255&this._subParamsIdx[u];return g-h>0?this._subParams.subarray(h,g):null}getSubParamsAll(){const u={};for(let h=0;h>8,p=255&this._subParamsIdx[h];p-g>0&&(u[h]=this._subParams.slice(g,p))}return u}addDigit(u){let h;if(this._rejectDigits||!(h=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const g=this._digitIsSub?this._subParams:this.params,p=g[h-1];g[h-1]=~p?Math.min(10*p+u,l):u}}s.Params=d},5741:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.AddonManager=void 0,s.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let l=this._addons.length-1;l>=0;l--)this._addons[l].instance.dispose()}loadAddon(l,d){const c={instance:d,dispose:d.dispose,isDisposed:!1};this._addons.push(c),d.dispose=()=>this._wrappedAddonDispose(c),d.activate(l)}_wrappedAddonDispose(l){if(l.isDisposed)return;let d=-1;for(let c=0;c{Object.defineProperty(s,"__esModule",{value:!0}),s.BufferApiView=void 0;const d=l(3785),c=l(511);s.BufferApiView=class{constructor(u,h){this._buffer=u,this.type=h}init(u){return this._buffer=u,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(u){const h=this._buffer.lines.get(u);if(h)return new d.BufferLineApiView(h)}getNullCell(){return new c.CellData}}},3785:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.BufferLineApiView=void 0;const d=l(511);s.BufferLineApiView=class{constructor(c){this._line=c}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(c,u){if(!(c<0||c>=this._line.length))return u?(this._line.loadCell(c,u),u):this._line.loadCell(c,new d.CellData)}translateToString(c,u,h){return this._line.translateToString(c,u,h)}}},8285:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.BufferNamespaceApi=void 0;const d=l(8771),c=l(8460),u=l(844);class h extends u.Disposable{constructor(p){super(),this._core=p,this._onBufferChange=this.register(new c.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new d.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new d.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}s.BufferNamespaceApi=h},7975:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ParserApi=void 0,s.ParserApi=class{constructor(l){this._core=l}registerCsiHandler(l,d){return this._core.registerCsiHandler(l,c=>d(c.toArray()))}addCsiHandler(l,d){return this.registerCsiHandler(l,d)}registerDcsHandler(l,d){return this._core.registerDcsHandler(l,(c,u)=>d(c,u.toArray()))}addDcsHandler(l,d){return this.registerDcsHandler(l,d)}registerEscHandler(l,d){return this._core.registerEscHandler(l,d)}addEscHandler(l,d){return this.registerEscHandler(l,d)}registerOscHandler(l,d){return this._core.registerOscHandler(l,d)}addOscHandler(l,d){return this.registerOscHandler(l,d)}}},7090:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.UnicodeApi=void 0,s.UnicodeApi=class{constructor(l){this._core=l}register(l){this._core.unicodeService.register(l)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(l){this._core.unicodeService.activeVersion=l}}},744:function(a,s,l){var d=this&&this.__decorate||function(m,f,v,y){var _,S=arguments.length,b=S<3?f:y===null?y=Object.getOwnPropertyDescriptor(f,v):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(m,f,v,y);else for(var A=m.length-1;A>=0;A--)(_=m[A])&&(b=(S<3?_(b):S>3?_(f,v,b):_(f,v))||b);return S>3&&b&&Object.defineProperty(f,v,b),b},c=this&&this.__param||function(m,f){return function(v,y){f(v,y,m)}};Object.defineProperty(s,"__esModule",{value:!0}),s.BufferService=s.MINIMUM_ROWS=s.MINIMUM_COLS=void 0;const u=l(8460),h=l(844),g=l(5295),p=l(2585);s.MINIMUM_COLS=2,s.MINIMUM_ROWS=1;let x=s.BufferService=class extends h.Disposable{get buffer(){return this.buffers.active}constructor(m){super(),this.isUserScrolling=!1,this._onResize=this.register(new u.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new u.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(m.rawOptions.cols||0,s.MINIMUM_COLS),this.rows=Math.max(m.rawOptions.rows||0,s.MINIMUM_ROWS),this.buffers=this.register(new g.BufferSet(m,this))}resize(m,f){this.cols=m,this.rows=f,this.buffers.resize(m,f),this._onResize.fire({cols:m,rows:f})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(m,f=!1){const v=this.buffer;let y;y=this._cachedBlankLine,y&&y.length===this.cols&&y.getFg(0)===m.fg&&y.getBg(0)===m.bg||(y=v.getBlankLine(m,f),this._cachedBlankLine=y),y.isWrapped=f;const _=v.ybase+v.scrollTop,S=v.ybase+v.scrollBottom;if(v.scrollTop===0){const b=v.lines.isFull;S===v.lines.length-1?b?v.lines.recycle().copyFrom(y):v.lines.push(y.clone()):v.lines.splice(S+1,0,y.clone()),b?this.isUserScrolling&&(v.ydisp=Math.max(v.ydisp-1,0)):(v.ybase++,this.isUserScrolling||v.ydisp++)}else{const b=S-_+1;v.lines.shiftElements(_+1,b-1,-1),v.lines.set(S,y.clone())}this.isUserScrolling||(v.ydisp=v.ybase),this._onScroll.fire(v.ydisp)}scrollLines(m,f,v){const y=this.buffer;if(m<0){if(y.ydisp===0)return;this.isUserScrolling=!0}else m+y.ydisp>=y.ybase&&(this.isUserScrolling=!1);const _=y.ydisp;y.ydisp=Math.max(Math.min(y.ydisp+m,y.ybase),0),_!==y.ydisp&&(f||this._onScroll.fire(y.ydisp))}};s.BufferService=x=d([c(0,p.IOptionsService)],x)},7994:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CharsetService=void 0,s.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(l){this.glevel=l,this.charset=this._charsets[l]}setgCharset(l,d){this._charsets[l]=d,this.glevel===l&&(this.charset=d)}}},1753:function(a,s,l){var d=this&&this.__decorate||function(y,_,S,b){var A,M=arguments.length,T=M<3?_:b===null?b=Object.getOwnPropertyDescriptor(_,S):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(y,_,S,b);else for(var w=y.length-1;w>=0;w--)(A=y[w])&&(T=(M<3?A(T):M>3?A(_,S,T):A(_,S))||T);return M>3&&T&&Object.defineProperty(_,S,T),T},c=this&&this.__param||function(y,_){return function(S,b){_(S,b,y)}};Object.defineProperty(s,"__esModule",{value:!0}),s.CoreMouseService=void 0;const u=l(2585),h=l(8460),g=l(844),p={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:y=>y.button!==4&&y.action===1&&(y.ctrl=!1,y.alt=!1,y.shift=!1,!0)},VT200:{events:19,restrict:y=>y.action!==32},DRAG:{events:23,restrict:y=>y.action!==32||y.button!==3},ANY:{events:31,restrict:y=>!0}};function x(y,_){let S=(y.ctrl?16:0)|(y.shift?4:0)|(y.alt?8:0);return y.button===4?(S|=64,S|=y.action):(S|=3&y.button,4&y.button&&(S|=64),8&y.button&&(S|=128),y.action===32?S|=32:y.action!==0||_||(S|=3)),S}const m=String.fromCharCode,f={DEFAULT:y=>{const _=[x(y,!1)+32,y.col+32,y.row+32];return _[0]>255||_[1]>255||_[2]>255?"":`\x1B[M${m(_[0])}${m(_[1])}${m(_[2])}`},SGR:y=>{const _=y.action===0&&y.button!==4?"m":"M";return`\x1B[<${x(y,!0)};${y.col};${y.row}${_}`},SGR_PIXELS:y=>{const _=y.action===0&&y.button!==4?"m":"M";return`\x1B[<${x(y,!0)};${y.x};${y.y}${_}`}};let v=s.CoreMouseService=class extends g.Disposable{constructor(y,_){super(),this._bufferService=y,this._coreService=_,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new h.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const S of Object.keys(p))this.addProtocol(S,p[S]);for(const S of Object.keys(f))this.addEncoding(S,f[S]);this.reset()}addProtocol(y,_){this._protocols[y]=_}addEncoding(y,_){this._encodings[y]=_}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(y){if(!this._protocols[y])throw new Error(`unknown protocol "${y}"`);this._activeProtocol=y,this._onProtocolChange.fire(this._protocols[y].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(y){if(!this._encodings[y])throw new Error(`unknown encoding "${y}"`);this._activeEncoding=y}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(y){if(y.col<0||y.col>=this._bufferService.cols||y.row<0||y.row>=this._bufferService.rows||y.button===4&&y.action===32||y.button===3&&y.action!==32||y.button!==4&&(y.action===2||y.action===3)||(y.col++,y.row++,y.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,y,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(y))return!1;const _=this._encodings[this._activeEncoding](y);return _&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(_):this._coreService.triggerDataEvent(_,!0)),this._lastEvent=y,!0}explainEvents(y){return{down:!!(1&y),up:!!(2&y),drag:!!(4&y),move:!!(8&y),wheel:!!(16&y)}}_equalEvents(y,_,S){if(S){if(y.x!==_.x||y.y!==_.y)return!1}else if(y.col!==_.col||y.row!==_.row)return!1;return y.button===_.button&&y.action===_.action&&y.ctrl===_.ctrl&&y.alt===_.alt&&y.shift===_.shift}};s.CoreMouseService=v=d([c(0,u.IBufferService),c(1,u.ICoreService)],v)},6975:function(a,s,l){var d=this&&this.__decorate||function(v,y,_,S){var b,A=arguments.length,M=A<3?y:S===null?S=Object.getOwnPropertyDescriptor(y,_):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(v,y,_,S);else for(var T=v.length-1;T>=0;T--)(b=v[T])&&(M=(A<3?b(M):A>3?b(y,_,M):b(y,_))||M);return A>3&&M&&Object.defineProperty(y,_,M),M},c=this&&this.__param||function(v,y){return function(_,S){y(_,S,v)}};Object.defineProperty(s,"__esModule",{value:!0}),s.CoreService=void 0;const u=l(1439),h=l(8460),g=l(844),p=l(2585),x=Object.freeze({insertMode:!1}),m=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let f=s.CoreService=class extends g.Disposable{constructor(v,y,_){super(),this._bufferService=v,this._logService=y,this._optionsService=_,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new h.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new h.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new h.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new h.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,u.clone)(x),this.decPrivateModes=(0,u.clone)(m)}reset(){this.modes=(0,u.clone)(x),this.decPrivateModes=(0,u.clone)(m)}triggerDataEvent(v,y=!1){if(this._optionsService.rawOptions.disableStdin)return;const _=this._bufferService.buffer;y&&this._optionsService.rawOptions.scrollOnUserInput&&_.ybase!==_.ydisp&&this._onRequestScrollToBottom.fire(),y&&this._onUserInput.fire(),this._logService.debug(`sending data "${v}"`,()=>v.split("").map(S=>S.charCodeAt(0))),this._onData.fire(v)}triggerBinaryEvent(v){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${v}"`,()=>v.split("").map(y=>y.charCodeAt(0))),this._onBinary.fire(v))}};s.CoreService=f=d([c(0,p.IBufferService),c(1,p.ILogService),c(2,p.IOptionsService)],f)},9074:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.DecorationService=void 0;const d=l(8055),c=l(8460),u=l(844),h=l(6106);let g=0,p=0;class x extends u.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new h.SortedList(v=>v==null?void 0:v.marker.line),this._onDecorationRegistered=this.register(new c.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new c.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,u.toDisposable)(()=>this.reset()))}registerDecoration(v){if(v.marker.isDisposed)return;const y=new m(v);if(y){const _=y.marker.onDispose(()=>y.dispose());y.onDispose(()=>{y&&(this._decorations.delete(y)&&this._onDecorationRemoved.fire(y),_.dispose())}),this._decorations.insert(y),this._onDecorationRegistered.fire(y)}return y}reset(){for(const v of this._decorations.values())v.dispose();this._decorations.clear()}*getDecorationsAtCell(v,y,_){var S,b,A;let M=0,T=0;for(const w of this._decorations.getKeyIterator(y))M=(S=w.options.x)!==null&&S!==void 0?S:0,T=M+((b=w.options.width)!==null&&b!==void 0?b:1),v>=M&&v{var A,M,T;g=(A=b.options.x)!==null&&A!==void 0?A:0,p=g+((M=b.options.width)!==null&&M!==void 0?M:1),v>=g&&v{Object.defineProperty(s,"__esModule",{value:!0}),s.InstantiationService=s.ServiceCollection=void 0;const d=l(2585),c=l(8343);class u{constructor(...g){this._entries=new Map;for(const[p,x]of g)this.set(p,x)}set(g,p){const x=this._entries.get(g);return this._entries.set(g,p),x}forEach(g){for(const[p,x]of this._entries.entries())g(p,x)}has(g){return this._entries.has(g)}get(g){return this._entries.get(g)}}s.ServiceCollection=u,s.InstantiationService=class{constructor(){this._services=new u,this._services.set(d.IInstantiationService,this)}setService(h,g){this._services.set(h,g)}getService(h){return this._services.get(h)}createInstance(h,...g){const p=(0,c.getServiceDependencies)(h).sort((f,v)=>f.index-v.index),x=[];for(const f of p){const v=this._services.get(f.id);if(!v)throw new Error(`[createInstance] ${h.name} depends on UNKNOWN service ${f.id}.`);x.push(v)}const m=p.length>0?p[0].index:g.length;if(g.length!==m)throw new Error(`[createInstance] First service dependency of ${h.name} at position ${m+1} conflicts with ${g.length} static arguments`);return new h(...g,...x)}}},7866:function(a,s,l){var d=this&&this.__decorate||function(m,f,v,y){var _,S=arguments.length,b=S<3?f:y===null?y=Object.getOwnPropertyDescriptor(f,v):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(m,f,v,y);else for(var A=m.length-1;A>=0;A--)(_=m[A])&&(b=(S<3?_(b):S>3?_(f,v,b):_(f,v))||b);return S>3&&b&&Object.defineProperty(f,v,b),b},c=this&&this.__param||function(m,f){return function(v,y){f(v,y,m)}};Object.defineProperty(s,"__esModule",{value:!0}),s.traceCall=s.setTraceLogger=s.LogService=void 0;const u=l(844),h=l(2585),g={trace:h.LogLevelEnum.TRACE,debug:h.LogLevelEnum.DEBUG,info:h.LogLevelEnum.INFO,warn:h.LogLevelEnum.WARN,error:h.LogLevelEnum.ERROR,off:h.LogLevelEnum.OFF};let p,x=s.LogService=class extends u.Disposable{get logLevel(){return this._logLevel}constructor(m){super(),this._optionsService=m,this._logLevel=h.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel())),p=this}_updateLogLevel(){this._logLevel=g[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(m){for(let f=0;fJSON.stringify(b)).join(", ")})`);const S=y.apply(this,_);return p.trace(`GlyphRenderer#${y.name} return`,S),S}}},7302:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.OptionsService=s.DEFAULT_OPTIONS=void 0;const d=l(8460),c=l(844),u=l(6114);s.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:u.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const h=["normal","bold","100","200","300","400","500","600","700","800","900"];class g extends c.Disposable{constructor(x){super(),this._onOptionChange=this.register(new d.EventEmitter),this.onOptionChange=this._onOptionChange.event;const m=Object.assign({},s.DEFAULT_OPTIONS);for(const f in x)if(f in m)try{const v=x[f];m[f]=this._sanitizeAndValidateOption(f,v)}catch(v){console.error(v)}this.rawOptions=m,this.options=Object.assign({},m),this._setupOptions()}onSpecificOptionChange(x,m){return this.onOptionChange(f=>{f===x&&m(this.rawOptions[x])})}onMultipleOptionChange(x,m){return this.onOptionChange(f=>{x.indexOf(f)!==-1&&m()})}_setupOptions(){const x=f=>{if(!(f in s.DEFAULT_OPTIONS))throw new Error(`No option with key "${f}"`);return this.rawOptions[f]},m=(f,v)=>{if(!(f in s.DEFAULT_OPTIONS))throw new Error(`No option with key "${f}"`);v=this._sanitizeAndValidateOption(f,v),this.rawOptions[f]!==v&&(this.rawOptions[f]=v,this._onOptionChange.fire(f))};for(const f in this.rawOptions){const v={get:x.bind(this,f),set:m.bind(this,f)};Object.defineProperty(this.options,f,v)}}_sanitizeAndValidateOption(x,m){switch(x){case"cursorStyle":if(m||(m=s.DEFAULT_OPTIONS[x]),!function(f){return f==="block"||f==="underline"||f==="bar"}(m))throw new Error(`"${m}" is not a valid value for ${x}`);break;case"wordSeparator":m||(m=s.DEFAULT_OPTIONS[x]);break;case"fontWeight":case"fontWeightBold":if(typeof m=="number"&&1<=m&&m<=1e3)break;m=h.includes(m)?m:s.DEFAULT_OPTIONS[x];break;case"cursorWidth":m=Math.floor(m);case"lineHeight":case"tabStopWidth":if(m<1)throw new Error(`${x} cannot be less than 1, value: ${m}`);break;case"minimumContrastRatio":m=Math.max(1,Math.min(21,Math.round(10*m)/10));break;case"scrollback":if((m=Math.min(m,4294967295))<0)throw new Error(`${x} cannot be less than 0, value: ${m}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(m<=0)throw new Error(`${x} cannot be less than or equal to 0, value: ${m}`);break;case"rows":case"cols":if(!m&&m!==0)throw new Error(`${x} must be numeric, value: ${m}`);break;case"windowsPty":m=m??{}}return m}}s.OptionsService=g},2660:function(a,s,l){var d=this&&this.__decorate||function(g,p,x,m){var f,v=arguments.length,y=v<3?p:m===null?m=Object.getOwnPropertyDescriptor(p,x):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(g,p,x,m);else for(var _=g.length-1;_>=0;_--)(f=g[_])&&(y=(v<3?f(y):v>3?f(p,x,y):f(p,x))||y);return v>3&&y&&Object.defineProperty(p,x,y),y},c=this&&this.__param||function(g,p){return function(x,m){p(x,m,g)}};Object.defineProperty(s,"__esModule",{value:!0}),s.OscLinkService=void 0;const u=l(2585);let h=s.OscLinkService=class{constructor(g){this._bufferService=g,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(g){const p=this._bufferService.buffer;if(g.id===void 0){const _=p.addMarker(p.ybase+p.y),S={data:g,id:this._nextId++,lines:[_]};return _.onDispose(()=>this._removeMarkerFromLink(S,_)),this._dataByLinkId.set(S.id,S),S.id}const x=g,m=this._getEntryIdKey(x),f=this._entriesWithId.get(m);if(f)return this.addLineToLink(f.id,p.ybase+p.y),f.id;const v=p.addMarker(p.ybase+p.y),y={id:this._nextId++,key:this._getEntryIdKey(x),data:x,lines:[v]};return v.onDispose(()=>this._removeMarkerFromLink(y,v)),this._entriesWithId.set(y.key,y),this._dataByLinkId.set(y.id,y),y.id}addLineToLink(g,p){const x=this._dataByLinkId.get(g);if(x&&x.lines.every(m=>m.line!==p)){const m=this._bufferService.buffer.addMarker(p);x.lines.push(m),m.onDispose(()=>this._removeMarkerFromLink(x,m))}}getLinkData(g){var p;return(p=this._dataByLinkId.get(g))===null||p===void 0?void 0:p.data}_getEntryIdKey(g){return`${g.id};;${g.uri}`}_removeMarkerFromLink(g,p){const x=g.lines.indexOf(p);x!==-1&&(g.lines.splice(x,1),g.lines.length===0&&(g.data.id!==void 0&&this._entriesWithId.delete(g.key),this._dataByLinkId.delete(g.id)))}};s.OscLinkService=h=d([c(0,u.IBufferService)],h)},8343:(a,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.createDecorator=s.getServiceDependencies=s.serviceRegistry=void 0;const l="di$target",d="di$dependencies";s.serviceRegistry=new Map,s.getServiceDependencies=function(c){return c[d]||[]},s.createDecorator=function(c){if(s.serviceRegistry.has(c))return s.serviceRegistry.get(c);const u=function(h,g,p){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");(function(x,m,f){m[l]===m?m[d].push({id:x,index:f}):(m[d]=[{id:x,index:f}],m[l]=m)})(u,h,p)};return u.toString=()=>c,s.serviceRegistry.set(c,u),u}},2585:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.IDecorationService=s.IUnicodeService=s.IOscLinkService=s.IOptionsService=s.ILogService=s.LogLevelEnum=s.IInstantiationService=s.ICharsetService=s.ICoreService=s.ICoreMouseService=s.IBufferService=void 0;const d=l(8343);var c;s.IBufferService=(0,d.createDecorator)("BufferService"),s.ICoreMouseService=(0,d.createDecorator)("CoreMouseService"),s.ICoreService=(0,d.createDecorator)("CoreService"),s.ICharsetService=(0,d.createDecorator)("CharsetService"),s.IInstantiationService=(0,d.createDecorator)("InstantiationService"),function(u){u[u.TRACE=0]="TRACE",u[u.DEBUG=1]="DEBUG",u[u.INFO=2]="INFO",u[u.WARN=3]="WARN",u[u.ERROR=4]="ERROR",u[u.OFF=5]="OFF"}(c||(s.LogLevelEnum=c={})),s.ILogService=(0,d.createDecorator)("LogService"),s.IOptionsService=(0,d.createDecorator)("OptionsService"),s.IOscLinkService=(0,d.createDecorator)("OscLinkService"),s.IUnicodeService=(0,d.createDecorator)("UnicodeService"),s.IDecorationService=(0,d.createDecorator)("DecorationService")},1480:(a,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.UnicodeService=void 0;const d=l(8460),c=l(225);s.UnicodeService=class{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new d.EventEmitter,this.onChange=this._onChange.event;const u=new c.UnicodeV6;this.register(u),this._active=u.version,this._activeProvider=u}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(u){if(!this._providers[u])throw new Error(`unknown Unicode version "${u}"`);this._active=u,this._activeProvider=this._providers[u],this._onChange.fire(u)}register(u){this._providers[u.version]=u}wcwidth(u){return this._activeProvider.wcwidth(u)}getStringCellWidth(u){let h=0;const g=u.length;for(let p=0;p=g)return h+this.wcwidth(x);const m=u.charCodeAt(p);56320<=m&&m<=57343?x=1024*(x-55296)+m-56320+65536:h+=this.wcwidth(m)}h+=this.wcwidth(x)}return h}}}},o={};function i(a){var s=o[a];if(s!==void 0)return s.exports;var l=o[a]={exports:{}};return e[a].call(l.exports,l,l.exports,i),l.exports}var n={};return(()=>{var a=n;Object.defineProperty(a,"__esModule",{value:!0}),a.Terminal=void 0;const s=i(9042),l=i(3236),d=i(844),c=i(5741),u=i(8285),h=i(7975),g=i(7090),p=["cols","rows"];class x extends d.Disposable{constructor(f){super(),this._core=this.register(new l.Terminal(f)),this._addonManager=this.register(new c.AddonManager),this._publicOptions=Object.assign({},this._core.options);const v=_=>this._core.options[_],y=(_,S)=>{this._checkReadonlyOptions(_),this._core.options[_]=S};for(const _ in this._core.options){const S={get:v.bind(this,_),set:y.bind(this,_)};Object.defineProperty(this._publicOptions,_,S)}}_checkReadonlyOptions(f){if(p.includes(f))throw new Error(`Option "${f}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new h.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new g.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new u.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const f=this._core.coreService.decPrivateModes;let v="none";switch(this._core.coreMouseService.activeProtocol){case"X10":v="x10";break;case"VT200":v="vt200";break;case"DRAG":v="drag";break;case"ANY":v="any"}return{applicationCursorKeysMode:f.applicationCursorKeys,applicationKeypadMode:f.applicationKeypad,bracketedPasteMode:f.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:v,originMode:f.origin,reverseWraparoundMode:f.reverseWraparound,sendFocusMode:f.sendFocus,wraparoundMode:f.wraparound}}get options(){return this._publicOptions}set options(f){for(const v in f)this._publicOptions[v]=f[v]}blur(){this._core.blur()}focus(){this._core.focus()}resize(f,v){this._verifyIntegers(f,v),this._core.resize(f,v)}open(f){this._core.open(f)}attachCustomKeyEventHandler(f){this._core.attachCustomKeyEventHandler(f)}registerLinkProvider(f){return this._core.registerLinkProvider(f)}registerCharacterJoiner(f){return this._checkProposedApi(),this._core.registerCharacterJoiner(f)}deregisterCharacterJoiner(f){this._checkProposedApi(),this._core.deregisterCharacterJoiner(f)}registerMarker(f=0){return this._verifyIntegers(f),this._core.registerMarker(f)}registerDecoration(f){var v,y,_;return this._checkProposedApi(),this._verifyPositiveIntegers((v=f.x)!==null&&v!==void 0?v:0,(y=f.width)!==null&&y!==void 0?y:0,(_=f.height)!==null&&_!==void 0?_:0),this._core.registerDecoration(f)}hasSelection(){return this._core.hasSelection()}select(f,v,y){this._verifyIntegers(f,v,y),this._core.select(f,v,y)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(f,v){this._verifyIntegers(f,v),this._core.selectLines(f,v)}dispose(){super.dispose()}scrollLines(f){this._verifyIntegers(f),this._core.scrollLines(f)}scrollPages(f){this._verifyIntegers(f),this._core.scrollPages(f)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(f){this._verifyIntegers(f),this._core.scrollToLine(f)}clear(){this._core.clear()}write(f,v){this._core.write(f,v)}writeln(f,v){this._core.write(f),this._core.write(`\r -`,v)}paste(f){this._core.paste(f)}refresh(f,v){this._verifyIntegers(f,v),this._core.refresh(f,v)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(f){this._addonManager.loadAddon(this,f)}static get strings(){return s}_verifyIntegers(...f){for(const v of f)if(v===1/0||isNaN(v)||v%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...f){for(const v of f)if(v&&(v===1/0||isNaN(v)||v%1!=0||v<0))throw new Error("This API only accepts positive integers")}}a.Terminal=x})(),n})())})(fE);var Z2e=fE.exports;let xE,vE,yE,_E,SE,bE,ME,AE,TE,wE;xE={class:"container"},vE={id:"code-show"},yE={class:"code-now-container"},_E={class:"code-box"},SE={class:"code-now-container"},bE={id:"advantage"},ME={id:"advantage"},AE={id:"team"},TE={class:"team-card"},wE={class:"card-container"},IE=jr({__name:"index",setup(r){const t=qr("hello world"),e=hg.map(d=>d.title);let o=qr(""),i=qr(""),n=qr(!1),a=d=>{console.log("not initialized yet...")};const s=new Z2e.Terminal({convertEol:!0,disableStdin:!0,fontSize:14,theme:{foreground:"#ECECEC",background:"#000000"}});function l(d){i.value=d[d.length-1]===` -`?d.slice(0,-1):d,s.reset(),s.write(i.value)}return Gd(async()=>{o.value=hg[0].code,LE(()=>import("./index-98f94ad6.js").then(async d=>(await d.__tla,d)).then(d=>d.i),["assets/index-98f94ad6.js","assets/index-713b12db.js","assets/index-50c67f50.css","assets/index-46db971c.css"]).then(d=>{let c=d.default(document.getElementById("container"),hg[0].code);c.editor.onDidChangeModelContent(()=>{o.value=c.editor.getModel().getValue()}),s.open(document.querySelector(".code-block")),s.resize(44,17),a=u=>{var g;const h=((g=hg.find(p=>p.title===u))==null?void 0:g.code)||"";o.value=h,c.setContent(h)},n.value=!0})}),tAe(()=>t.value,d=>{a(d)}),(d,c)=>(at(),dt("div",xE,[We(He(jE)),We(He(GE)),ie("div",vE,[c[4]||(c[4]=ie("div",{class:"gradient-font title"},"Enjoy coding pivot lang now!",-1)),c[5]||(c[5]=ie("div",{class:"detail-describe"}," With the help of Web Assembly technology, we are able to provide support for some of the Pivot Lang syntax in the browser for you to experience. ",-1)),gg(ie("div",yE,[ie("div",_E,[We(He(kD),{onUpdateVal:c[0]||(c[0]=u=>t.value=u),onUpdateOutput:l,tablist:He(e),val:t.value,code:He(o)},null,8,["tablist","val","code"]),c[1]||(c[1]=ie("div",{class:"code-container"},[ie("div",{id:"container"})],-1))]),c[2]||(c[2]=ie("div",{class:"execution"},[ie("div",{class:"execution-title"},"Execution"),ie("div",{class:"code-block"})],-1))],512),[[mg,He(n)]]),gg(ie("div",SE,c[3]||(c[3]=[ie("div",{class:"spinner"},null,-1)]),512),[[mg,!He(n)]])]),ie("div",bE,[c[6]||(c[6]=ie("div",{class:"gradient-font title"},"Immix Garbage Collector",-1)),c[7]||(c[7]=ie("div",{class:"detail-describe"}," Significantly outperforming the well known Boehm-Demers-Weiser (BDW) collector in the multi-thread environment, the Immix collector is a state-of-the-art garbage collector for modern hardware. It is designed to be highly concurrent and to exploit the locality of reference patterns in modern programs. ",-1)),We(He($ee))]),ie("div",ME,[c[8]||(c[8]=ie("div",{class:"gradient-font title"},"Reliability",-1)),c[9]||(c[9]=ie("div",{class:"detail-describe"}," Pivot Lang is heavily tested to ensure that it is stable and reliable. We have a large number of unit tests and integration tests to ensure that the coverage of the code is as high as possible. ",-1)),We(He(lte))]),We(He(z2e)),We(He(UE)),ie("div",AE,[c[10]||(c[10]=ie("div",{class:"gradient-font title"},"Meet The Team",-1)),ie("div",TE,[ie("div",wE,[(at(!0),dt(Nd,null,Fv(He(K2e),u=>(at(),rAe(He(Gee),{key:u.name,name:u.name,github:u.github,avatar:u.avatar,identity:u.identity},null,8,["name","github","avatar","identity"]))),128))])])]),c[11]||(c[11]=Rv('
Join Our Team
Pivot lang is still developing and we long for every geek joingus, completing the language together. If you are interested in pivot lang, click the button and write the email to mstmole@163.com introduce yourself now!
',1)),We(He(ete)),We(He(Fee))]))}})});export{iAe as __tla,IE as default}; diff --git a/assets/index-98f94ad6.js b/assets/index-fbc129af.js similarity index 64% rename from assets/index-98f94ad6.js rename to assets/index-fbc129af.js index 72b282b..8f9e23e 100644 --- a/assets/index-98f94ad6.js +++ b/assets/index-fbc129af.js @@ -1,35 +1,34 @@ -var V1e=Object.defineProperty;var H1e=(Ec,Ga,ze)=>Ga in Ec?V1e(Ec,Ga,{enumerable:!0,configurable:!0,writable:!0,value:ze}):Ec[Ga]=ze;var si=(Ec,Ga,ze)=>(H1e(Ec,typeof Ga!="symbol"?Ga+"":Ga,ze),ze);import{_ as fe,__tla as z1e}from"./index-713b12db.js";let pV,Lu,vS,U1e=Promise.all([(()=>{try{return z1e}catch{}})()]).then(async()=>{const Ec="/assets/plclib_bg-8d4ec758.wasm",Ga=async(n={},e)=>{let t;if(e.startsWith("data:")){const i=e.replace(/^data:.*?base64,/,"");let s;if(typeof Buffer=="function"&&typeof Buffer.from=="function")s=Buffer.from(i,"base64");else if(typeof atob=="function"){const o=atob(i);s=new Uint8Array(o.length);for(let r=0;r"u"?(0,module.require)("util").TextDecoder:TextDecoder;let lA=new XV("utf-8",{ignoreBOM:!0,fatal:!0});lA.decode();let h1=null;function c1(){return(h1===null||h1.byteLength===0)&&(h1=new Uint8Array(ze.memory.buffer)),h1}function no(n,e){return n=n>>>0,lA.decode(c1().subarray(n,n+e))}function NS(n){const e=typeof n;if(e=="number"||e=="boolean"||n==null)return`${n}`;if(e=="string")return`"${n}"`;if(e=="symbol"){const s=n.description;return s==null?"Symbol":`Symbol(${s})`}if(e=="function"){const s=n.name;return typeof s=="string"&&s.length>0?`Function(${s})`:"Function"}if(Array.isArray(n)){const s=n.length;let o="[";s>0&&(o+=NS(n[0]));for(let r=1;r1)i=t[1];else return toString.call(n);if(i=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message} -${n.stack}`:i}let Ql=0;const ZV=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let d1=new ZV("utf-8");const QV=typeof d1.encodeInto=="function"?function(n,e){return d1.encodeInto(n,e)}:function(n,e){const t=d1.encode(n);return e.set(t),{read:n.length,written:t.length}};function Nu(n,e,t){if(t===void 0){const a=d1.encode(n),l=e(a.length,1)>>>0;return c1().subarray(l,l+a.length).set(a),Ql=a.length,l}let i=n.length,s=e(i,1)>>>0;const o=c1();let r=0;for(;r127)break;o[s+r]=a}if(r!==i){r!==0&&(n=n.slice(r)),s=t(s,i,i=r+n.length*3,1)>>>0;const a=c1().subarray(s+r,s+i),l=QV(n,a);r+=l.written,s=t(s,i,r,1)>>>0}return Ql=r,s}let u1=null;function Pi(){return(u1===null||u1.byteLength===0)&&(u1=new Int32Array(ze.memory.buffer)),u1}function Kr(n,e){try{return n.apply(this,e)}catch(t){ze.__wbindgen_exn_store(xi(t))}}function JV(n){let e,t;try{const o=ze.__wbindgen_add_to_stack_pointer(-16),r=Nu(n,ze.__wbindgen_malloc,ze.__wbindgen_realloc),a=Ql;ze.on_change_doc(o,r,a);var i=Pi()[o/4+0],s=Pi()[o/4+1];return e=i,t=s,no(i,s)}finally{ze.__wbindgen_add_to_stack_pointer(16),ze.__wbindgen_free(e,t,1)}}function eH(n){let e,t;try{const o=ze.__wbindgen_add_to_stack_pointer(-16),r=Nu(n,ze.__wbindgen_malloc,ze.__wbindgen_realloc),a=Ql;ze.set_init_content(o,r,a);var i=Pi()[o/4+0],s=Pi()[o/4+1];return e=i,t=s,no(i,s)}finally{ze.__wbindgen_add_to_stack_pointer(16),ze.__wbindgen_free(e,t,1)}}function tH(){let n,e;try{const s=ze.__wbindgen_add_to_stack_pointer(-16);ze.get_semantic_tokens(s);var t=Pi()[s/4+0],i=Pi()[s/4+1];return n=t,e=i,no(t,i)}finally{ze.__wbindgen_add_to_stack_pointer(16),ze.__wbindgen_free(n,e,1)}}function iH(){let n,e;try{const s=ze.__wbindgen_add_to_stack_pointer(-16);ze.get_semantic_tokens_full(s);var t=Pi()[s/4+0],i=Pi()[s/4+1];return n=t,e=i,no(t,i)}finally{ze.__wbindgen_add_to_stack_pointer(16),ze.__wbindgen_free(n,e,1)}}function nH(){let n,e;try{const s=ze.__wbindgen_add_to_stack_pointer(-16);ze.get_legend(s);var t=Pi()[s/4+0],i=Pi()[s/4+1];return n=t,e=i,no(t,i)}finally{ze.__wbindgen_add_to_stack_pointer(16),ze.__wbindgen_free(n,e,1)}}function sH(){let n,e;try{const s=ze.__wbindgen_add_to_stack_pointer(-16);ze.get_completions(s);var t=Pi()[s/4+0],i=Pi()[s/4+1];return n=t,e=i,no(t,i)}finally{ze.__wbindgen_add_to_stack_pointer(16),ze.__wbindgen_free(n,e,1)}}function oH(){let n,e;try{const s=ze.__wbindgen_add_to_stack_pointer(-16);ze.get_inlay_hints(s);var t=Pi()[s/4+0],i=Pi()[s/4+1];return n=t,e=i,no(t,i)}finally{ze.__wbindgen_add_to_stack_pointer(16),ze.__wbindgen_free(n,e,1)}}function rH(n){let e,t;try{const o=ze.__wbindgen_add_to_stack_pointer(-16),r=Nu(n,ze.__wbindgen_malloc,ze.__wbindgen_realloc),a=Ql;ze.go_to_def(o,r,a);var i=Pi()[o/4+0],s=Pi()[o/4+1];return e=i,t=s,no(i,s)}finally{ze.__wbindgen_add_to_stack_pointer(16),ze.__wbindgen_free(e,t,1)}}function aH(n){let e,t;try{const o=ze.__wbindgen_add_to_stack_pointer(-16),r=Nu(n,ze.__wbindgen_malloc,ze.__wbindgen_realloc),a=Ql;ze.get_refs(o,r,a);var i=Pi()[o/4+0],s=Pi()[o/4+1];return e=i,t=s,no(i,s)}finally{ze.__wbindgen_add_to_stack_pointer(16),ze.__wbindgen_free(e,t,1)}}function lH(){const n=new Error;return xi(n)}function hH(n,e){const t=et(e).stack,i=Nu(t,ze.__wbindgen_malloc,ze.__wbindgen_realloc),s=Ql;Pi()[n/4+1]=s,Pi()[n/4+0]=i}function cH(n,e){let t,i;try{t=n,i=e,console.error(no(n,e))}finally{ze.__wbindgen_free(t,i,1)}}function dH(n){aA(n)}function uH(n){const e=et(n);return xi(e)}function gH(n){const e=et(n).crypto;return xi(e)}function pH(n){const e=et(n);return typeof e=="object"&&e!==null}function mH(n){const e=et(n).process;return xi(e)}function fH(n){const e=et(n).versions;return xi(e)}function _H(n){const e=et(n).node;return xi(e)}function vH(n){return typeof et(n)=="string"}function bH(){return Kr(function(){const n=module.require;return xi(n)},arguments)}function CH(n){return typeof et(n)=="function"}function wH(n,e){const t=no(n,e);return xi(t)}function yH(){return Kr(function(n,e,t){const i=et(n).call(et(e),et(t));return xi(i)},arguments)}function SH(n){const e=et(n).msCrypto;return xi(e)}function LH(n){const e=new Uint8Array(n>>>0);return xi(e)}function kH(){return Kr(function(n,e){const t=Reflect.get(et(n),et(e));return xi(t)},arguments)}function xH(n){return et(n).now()}function DH(){return Kr(function(){const n=self.self;return xi(n)},arguments)}function EH(){return Kr(function(){const n=window.window;return xi(n)},arguments)}function NH(){return Kr(function(){const n=globalThis.globalThis;return xi(n)},arguments)}function IH(){return Kr(function(){const n=global.global;return xi(n)},arguments)}function TH(n){return et(n)===void 0}function MH(n,e){const t=new Function(no(n,e));return xi(t)}function AH(){return Kr(function(n,e){const t=et(n).call(et(e));return xi(t)},arguments)}function RH(n){console.error(et(n))}function OH(){const n=ze.memory;return xi(n)}function PH(n){const e=et(n).buffer;return xi(e)}function FH(n,e,t){const i=new Uint8Array(et(n),e>>>0,t>>>0);return xi(i)}function BH(){return Kr(function(n,e){et(n).randomFillSync(aA(e))},arguments)}function WH(n,e,t){const i=et(n).subarray(e>>>0,t>>>0);return xi(i)}function VH(){return Kr(function(n,e){et(n).getRandomValues(et(e))},arguments)}function HH(n){const e=new Uint8Array(et(n));return xi(e)}function zH(n,e,t){et(n).set(et(e),t>>>0)}function UH(n,e){const t=NS(et(e)),i=Nu(t,ze.__wbindgen_malloc,ze.__wbindgen_realloc),s=Ql;Pi()[n/4+1]=s,Pi()[n/4+0]=i}function KH(n,e){throw new Error(no(n,e))}function jH(n,e,t,i){console.error(et(n),et(e),et(t),et(i))}function qH(n,e,t,i){console.warn(et(n),et(e),et(t),et(i))}function $H(n,e,t,i){console.info(et(n),et(e),et(t),et(i))}function GH(n,e,t,i){console.log(et(n),et(e),et(t),et(i))}function YH(n,e,t,i){console.debug(et(n),et(e),et(t),et(i))}URL=globalThis.URL;const Jn=await Ga({"./plclib_bg.js":{__wbg_new_abda76e883ba8a5f:lH,__wbg_stack_658279fe44541cf6:hH,__wbg_error_f851667af71bcfc6:cH,__wbindgen_object_drop_ref:dH,__wbindgen_object_clone_ref:uH,__wbg_crypto_1d1f22824a6a080c:gH,__wbindgen_is_object:pH,__wbg_process_4a72847cc503995b:mH,__wbg_versions_f686565e586dd935:fH,__wbg_node_104a2ff8d6ea03a2:_H,__wbindgen_is_string:vH,__wbg_require_cca90b1a94a0255b:bH,__wbindgen_is_function:CH,__wbindgen_string_new:wH,__wbg_call_b3ca7c6051f9bec1:yH,__wbg_msCrypto_eb05e62b530a1508:SH,__wbg_newwithlength_e9b4878cebadb3d3:LH,__wbg_get_e3c254076557e348:kH,__wbg_now_4e659b3d15f470d9:xH,__wbg_self_ce0dbfc45cf2f5be:DH,__wbg_window_c6fb939a7f436783:EH,__wbg_globalThis_d1e6af4856ba331b:NH,__wbg_global_207b558942527489:IH,__wbindgen_is_undefined:TH,__wbg_newnoargs_e258087cd0daa0ea:MH,__wbg_call_27c0f87801dedf93:AH,__wbg_error_8e3928cfb8a43e2b:RH,__wbindgen_memory:OH,__wbg_buffer_12d079cc21e14bdb:PH,__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb:FH,__wbg_randomFillSync_5c9c955aa56b6049:BH,__wbg_subarray_a1f73cd4b5b42fe1:WH,__wbg_getRandomValues_3aa56aa6edec874c:VH,__wbg_new_63b92bc8671ed464:HH,__wbg_set_a47bac70306a19a7:zH,__wbindgen_debug_string:UH,__wbindgen_throw:KH,__wbg_error_696630710900ec44:jH,__wbg_warn_5d3f783b0bae8943:qH,__wbg_info_80803d9a3f0aad16:$H,__wbg_log_151eb4333ef0fe39:GH,__wbg_debug_7d879afce6cf56cb:YH}},Ec),XH=Jn.memory,ZH=Jn.on_change_doc,QH=Jn.set_init_content,JH=Jn.get_semantic_tokens,ez=Jn.get_semantic_tokens_full,tz=Jn.get_legend,iz=Jn.get_completions,nz=Jn.get_inlay_hints,sz=Jn.get_doc_symbol,oz=Jn.go_to_def,rz=Jn.get_refs,az=Jn.__wbindgen_malloc,lz=Jn.__wbindgen_realloc,hz=Jn.__wbindgen_free,cz=Jn.__wbindgen_exn_store,dz=Jn.__wbindgen_add_to_stack_pointer,uz=Object.freeze(Object.defineProperty({__proto__:null,__wbindgen_add_to_stack_pointer:dz,__wbindgen_exn_store:cz,__wbindgen_free:hz,__wbindgen_malloc:az,__wbindgen_realloc:lz,get_completions:iz,get_doc_symbol:sz,get_inlay_hints:nz,get_legend:tz,get_refs:rz,get_semantic_tokens:JH,get_semantic_tokens_full:ez,go_to_def:oz,memory:XH,on_change_doc:ZH,set_init_content:QH},Symbol.toStringTag,{value:"Module"}));GV(uz),globalThis&&globalThis.__awaiter;let gz=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function pz(n,e){let t;return e.length===0?t=n:t=n.replace(/\{(\d+)\}/g,(i,s)=>{const o=s[0],r=e[o];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),gz&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function p(n,e,...t){return pz(e,t)}var IS;const Iu="en";let g1=!1,p1=!1,m1=!1,hA=!1,TS=!1,MS=!1,cA=!1,f1,_1=Iu,dA=Iu,mz,rr;const us=typeof self=="object"?self:typeof global=="object"?global:{};let Vn;typeof us.vscode<"u"&&typeof us.vscode.process<"u"?Vn=us.vscode.process:typeof process<"u"&&(Vn=process);const fz=typeof((IS=Vn==null?void 0:Vn.versions)===null||IS===void 0?void 0:IS.electron)=="string",_z=fz&&(Vn==null?void 0:Vn.type)==="renderer";if(typeof navigator=="object"&&!_z)rr=navigator.userAgent,g1=rr.indexOf("Windows")>=0,p1=rr.indexOf("Macintosh")>=0,MS=(rr.indexOf("Macintosh")>=0||rr.indexOf("iPad")>=0||rr.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,m1=rr.indexOf("Linux")>=0,cA=(rr==null?void 0:rr.indexOf("Mobi"))>=0,TS=!0,p({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),f1=Iu,_1=f1,dA=navigator.language;else if(typeof Vn=="object"){g1=Vn.platform==="win32",p1=Vn.platform==="darwin",m1=Vn.platform==="linux",m1&&Vn.env.SNAP&&Vn.env.SNAP_REVISION,Vn.env.CI||Vn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,f1=Iu,_1=Iu;const n=Vn.env.VSCODE_NLS_CONFIG;if(n)try{const e=JSON.parse(n),t=e.availableLanguages["*"];f1=e.locale,dA=e.osLocale,_1=t||Iu,mz=e._translationsConfigFile}catch{}hA=!0}else console.error("Unable to resolve platform.");const Zi=g1,Ge=p1,cn=m1,ar=hA,Jl=TS,vz=TS&&typeof us.importScripts=="function",jr=MS,bz=cA,qr=rr,Cz=_1,wz=typeof us.postMessage=="function"&&!us.importScripts,uA=(()=>{if(wz){const n=[];us.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,s=n.length;i{const i=++e;n.push({id:i,callback:t}),us.postMessage({vscodeScheduleAsyncWork:i},"*")}}return n=>setTimeout(n)})(),Ns=p1||MS?2:g1?1:3;let gA=!0,pA=!1;function mA(){if(!pA){pA=!0;const n=new Uint8Array(2);n[0]=1,n[1]=2,gA=new Uint16Array(n.buffer)[0]===512+1}return gA}const fA=!!(qr&&qr.indexOf("Chrome")>=0),yz=!!(qr&&qr.indexOf("Firefox")>=0),Sz=!!(!fA&&qr&&qr.indexOf("Safari")>=0),Lz=!!(qr&&qr.indexOf("Edg/")>=0);qr&&qr.indexOf("Android")>=0;var it;(function(n){function e(b){return b&&typeof b=="object"&&typeof b[Symbol.iterator]=="function"}n.is=e;const t=Object.freeze([]);function i(){return t}n.empty=i;function*s(b){yield b}n.single=s;function o(b){return e(b)?b:s(b)}n.wrap=o;function r(b){return b||t}n.from=r;function a(b){return!b||b[Symbol.iterator]().next().done===!0}n.isEmpty=a;function l(b){return b[Symbol.iterator]().next().value}n.first=l;function h(b,v){for(const C of b)if(v(C))return!0;return!1}n.some=h;function c(b,v){for(const C of b)if(v(C))return C}n.find=c;function*d(b,v){for(const C of b)v(C)&&(yield C)}n.filter=d;function*u(b,v){let C=0;for(const w of b)yield v(w,C++)}n.map=u;function*g(...b){for(const v of b)for(const C of v)yield C}n.concat=g;function m(b,v,C){let w=C;for(const S of b)w=v(w,S);return w}n.reduce=m;function*f(b,v,C=b.length){for(v<0&&(v+=b.length),C<0?C+=b.length:C>b.length&&(C=b.length);v{s||(s=!0,this._remove(i))}}shift(){if(this._first!==wi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==wi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==wi.Undefined&&e.next!==wi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===wi.Undefined&&e.next===wi.Undefined?(this._first=wi.Undefined,this._last=wi.Undefined):e.next===wi.Undefined?(this._last=this._last.prev,this._last.next=wi.Undefined):e.prev===wi.Undefined&&(this._first=this._first.next,this._first.prev=wi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==wi.Undefined;)yield e.element,e=e.next}}const _A="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function kz(n=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of _A)n.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const AS=kz();function vA(n){let e=AS;if(n&&n instanceof RegExp)if(n.global)e=n;else{let t="g";n.ignoreCase&&(t+="i"),n.multiline&&(t+="m"),n.unicode&&(t+="u"),e=new RegExp(n.source,t)}return e.lastIndex=0,e}const bA=new dn;bA.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function mm(n,e,t,i,s){if(s||(s=it.first(bA)),t.length>s.maxLen){let h=n-s.maxLen/2;return h<0?h=0:i+=h,t=t.substring(h,n+s.maxLen/2),mm(n,e,t,i,s)}const o=Date.now(),r=n-1-i;let a=-1,l=null;for(let h=1;!(Date.now()-o>=s.timeBudget);h++){const c=r-s.windowSize*h;e.lastIndex=Math.max(0,c);const d=xz(e,t,r,a);if(!d&&l||(l=d,c<=0))break;a=c}if(l){const h={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,h}return null}function xz(n,e,t,i){let s;for(;s=n.exec(e);){const o=s.index||0;if(o<=t&&n.lastIndex>=t)return s;if(i>0&&o>i)return null}return null}function so(n,e=0){return n[n.length-(1+e)]}function Dz(n){if(n.length===0)throw new Error("Invalid tail call");return[n.slice(0,n.length-1),n[n.length-1]]}function un(n,e,t=(i,s)=>i===s){if(n===e)return!0;if(!n||!e||n.length!==e.length)return!1;for(let i=0,s=n.length;it(n[i],e))}function Nz(n,e){let t=0,i=n-1;for(;t<=i;){const s=(t+i)/2|0,o=e(s);if(o<0)t=s+1;else if(o>0)i=s-1;else return s}return-(t+1)}function CA(n,e){let t=0,i=n.length;if(i===0)return 0;for(;t=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],s=[],o=[],r=[];for(const a of e){const l=t(a,i);l<0?s.push(a):l>0?o.push(a):r.push(a)}return n!!e)}function yA(n){let e=0;for(let t=0;t0}function eh(n,e=t=>t){const t=new Set;return n.filter(i=>{const s=e(i);return t.has(s)?!1:(t.add(s),!0)})}function LA(n,e){const t=Iz(n,e);if(t!==-1)return n[t]}function Iz(n,e){for(let t=n.length-1;t>=0;t--){const i=n[t];if(e(i))return t}return-1}function kA(n,e){return n.length>0?n[0]:e}function Hn(n,e){let t=typeof e=="number"?n:0;typeof e=="number"?t=n:(t=0,e=n);const i=[];if(t<=e)for(let s=t;se;s--)i.push(s);return i}function v1(n,e,t){const i=n.slice(0,e),s=n.slice(e);return i.concat(t,s)}function OS(n,e){const t=n.indexOf(e);t>-1&&(n.splice(t,1),n.unshift(e))}function b1(n,e){const t=n.indexOf(e);t>-1&&(n.splice(t,1),n.push(e))}function xA(n,e){for(const t of e)n.push(t)}function PS(n){return Array.isArray(n)?n:[n]}function Tz(n,e,t){const i=EA(n,e),s=n.length,o=t.length;n.length=s+o;for(let r=s-1;r>=i;r--)n[r+o]=n[r];for(let r=0;r0}n.isGreaterThan=t;function i(s){return s===0}n.isNeitherLessOrGreaterThan=i,n.greaterThan=1,n.lessThan=-1,n.neitherLessOrGreaterThan=0})(FS||(FS={}));function _m(n,e){return(t,i)=>e(n(t),n(i))}const Mz=(n,e)=>n-e;function NA(n,e){if(n.length===0)return;let t=n[0];for(let i=1;i0&&(t=s)}return t}function Az(n,e){if(n.length===0)return;let t=n[0];for(let i=1;i=0&&(t=s)}return t}function Rz(n,e){return NA(n,(t,i)=>-e(t,i))}class Mu{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class $r{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new $r(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new $r(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(s=>((i||FS.isGreaterThan(e(s,t)))&&(i=!1,t=s),!0)),t}}$r.empty=new $r(n=>{});function zn(n){return typeof n=="string"}function es(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function Oz(n){const e=Object.getPrototypeOf(Uint8Array);return typeof n=="object"&&n instanceof e}function th(n){return typeof n=="number"&&!isNaN(n)}function IA(n){return!!n&&typeof n[Symbol.iterator]=="function"}function TA(n){return n===!0||n===!1}function gs(n){return typeof n>"u"}function Pz(n){return!Is(n)}function Is(n){return gs(n)||n===null}function wt(n,e){if(!n)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Au(n){if(Is(n))throw new Error("Assertion Failed: argument is undefined or null");return n}function C1(n){return typeof n=="function"}function Fz(n,e){const t=Math.min(n.length,e.length);for(let i=0;i{e[t]=i&&typeof i=="object"?Xa(i):i}),e}function Wz(n){if(!n||typeof n!="object")return n;const e=[n];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(MA.call(t,i)){const s=t[i];typeof s=="object"&&!Object.isFrozen(s)&&!Oz(s)&&e.push(s)}}return n}const MA=Object.prototype.hasOwnProperty;function AA(n,e){return BS(n,e,new Set)}function BS(n,e,t){if(Is(n))return n;const i=e(n);if(typeof i<"u")return i;if(Array.isArray(n)){const s=[];for(const o of n)s.push(BS(o,e,t));return s}if(es(n)){if(t.has(n))throw new Error("Cannot clone recursive data-structure");t.add(n);const s={};for(const o in n)MA.call(n,o)&&(s[o]=BS(n[o],e,t));return t.delete(n),s}return n}function vm(n,e,t=!0){return es(n)?(es(e)&&Object.keys(e).forEach(i=>{i in n?t&&(es(n[i])&&es(e[i])?vm(n[i],e[i],t):n[i]=e[i]):n[i]=e[i]}),n):e}function Ts(n,e){if(n===e)return!0;if(n==null||e===null||e===void 0||typeof n!=typeof e||typeof n!="object"||Array.isArray(n)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(n)){if(n.length!==e.length)return!1;for(t=0;tfunction(){const o=Array.prototype.slice.call(arguments,0);return e(s,o)},i={};for(const s of n)i[s]=t(s);return i}const wn={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},ih=8;class RA{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class OA{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Jt{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return w1(e,t)}compute(e,t,i){return i}}class bm{constructor(e,t){this.newValue=e,this.didChange=t}}function w1(n,e){if(typeof n!="object"||typeof e!="object"||!n||!e)return new bm(e,n!==e);if(Array.isArray(n)||Array.isArray(e)){const i=Array.isArray(n)&&Array.isArray(e)&&un(n,e);return new bm(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const s=w1(n[i],e[i]);s.didChange&&(n[i]=s.newValue,t=!0)}return new bm(n,t)}class Cm{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return w1(e,t)}validate(e){return this.defaultValue}}class Ru{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return w1(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function ye(n,e){return typeof n>"u"?e:n==="false"?!1:!!n}class rt extends Ru{constructor(e,t,i,s=void 0){typeof s<"u"&&(s.type="boolean",s.default=i),super(e,t,i,s)}validate(e){return ye(e,this.defaultValue)}}function VS(n,e,t,i){if(typeof n>"u")return e;let s=parseInt(n,10);return isNaN(s)?e:(s=Math.max(t,s),s=Math.min(i,s),s|0)}class xt extends Ru{static clampedInt(e,t,i,s){return VS(e,t,i,s)}constructor(e,t,i,s,o,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=s,r.maximum=o),super(e,t,i,r),this.minimum=s,this.maximum=o}validate(e){return xt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Gr extends Ru{static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,s,o){typeof o<"u"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=s}validate(e){return this.validationFn(Gr.float(e,this.defaultValue))}}class ps extends Ru{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,s=void 0){typeof s<"u"&&(s.type="string",s.default=i),super(e,t,i,s)}validate(e){return ps.string(e,this.defaultValue)}}function yi(n,e,t){return typeof n!="string"||t.indexOf(n)===-1?e:n}class ci extends Ru{constructor(e,t,i,s,o=void 0){typeof o<"u"&&(o.type="string",o.enum=s,o.default=i),super(e,t,i,o),this._allowedValues=s}validate(e){return yi(e,this.defaultValue,this._allowedValues)}}class y1 extends Jt{constructor(e,t,i,s,o,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=s),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function zz(n){switch(n){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class Uz extends Jt{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),p("accessibilitySupport.on","Optimize for usage with a Screen Reader"),p("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:p("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class Kz extends Jt{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(21,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:ye(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:ye(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function jz(n){switch(n){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Ji;(function(n){n[n.Line=1]="Line",n[n.Block=2]="Block",n[n.Underline=3]="Underline",n[n.LineThin=4]="LineThin",n[n.BlockOutline=5]="BlockOutline",n[n.UnderlineThin=6]="UnderlineThin"})(Ji||(Ji={}));function qz(n){switch(n){case"line":return Ji.Line;case"block":return Ji.Block;case"underline":return Ji.Underline;case"line-thin":return Ji.LineThin;case"block-outline":return Ji.BlockOutline;case"underline-thin":return Ji.UnderlineThin}}class $z extends Cm{constructor(){super(136)}compute(e,t,i){const s=["monaco-editor"];return t.get(37)&&s.push(t.get(37)),e.extraEditorClassName&&s.push(e.extraEditorClassName),t.get(71)==="default"?s.push("mouse-default"):t.get(71)==="copy"&&s.push("mouse-copy"),t.get(106)&&s.push("showUnused"),t.get(134)&&s.push("showDeprecated"),s.join(" ")}}class Gz extends rt{constructor(){super(35,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class Yz extends Jt{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(39,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Ge},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:ye(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":yi(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":yi(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:ye(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:ye(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:ye(t.loop,this.defaultValue.loop)}}}class Ms extends Jt{constructor(){super(49,"fontLigatures",Ms.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?Ms.OFF:e==="true"?Ms.ON:e:e?Ms.ON:Ms.OFF}}Ms.OFF='"liga" off, "calt" off',Ms.ON='"liga" on, "calt" on';class lr extends Jt{constructor(){super(52,"fontVariations",lr.OFF,{anyOf:[{type:"boolean",description:p("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:p("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:p("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?lr.OFF:e==="true"?lr.TRANSLATE:e:e?lr.TRANSLATE:lr.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}lr.OFF="normal",lr.TRANSLATE="translate";class Xz extends Cm{constructor(){super(48)}compute(e,t,i){return e.fontInfo}}class Zz extends Ru{constructor(){super(50,"fontSize",ms.fontSize,{type:"number",minimum:6,maximum:100,default:ms.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=Gr.float(e,this.defaultValue);return t===0?ms.fontSize:Gr.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class Yr extends Jt{constructor(){super(51,"fontWeight",ms.fontWeight,{anyOf:[{type:"number",minimum:Yr.MINIMUM_VALUE,maximum:Yr.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:Yr.SUGGESTION_VALUES}],default:ms.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(xt.clampedInt(e,ms.fontWeight,Yr.MINIMUM_VALUE,Yr.MAXIMUM_VALUE))}}Yr.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],Yr.MINIMUM_VALUE=1,Yr.MAXIMUM_VALUE=1e3;class Qz extends Jt{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(56,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,s,o,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:yi(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:yi(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:yi(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(s=a.multipleDeclarations)!==null&&s!==void 0?s:yi(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:yi(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:yi(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:ps.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:ps.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:ps.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:ps.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:ps.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class Jz extends Jt{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(58,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ye(t.enabled,this.defaultValue.enabled),delay:xt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:ye(t.sticky,this.defaultValue.sticky),above:ye(t.above,this.defaultValue.above)}}}class Ou extends Cm{constructor(){super(139)}compute(e,t,i){return Ou.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let s=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(s=Math.max(s,t-1));const o=(i+e.viewLineCount+s)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/o);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:s,desiredRatio:o,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,s=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*s),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:s};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,h=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,d=e.minimap.renderCharacters;let u=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,m=e.minimap.size,f=e.minimap.side,_=e.verticalScrollbarWidth,b=e.viewLineCount,v=e.remainingWidth,C=e.isViewportWrapping,w=d?2:3;let S=Math.floor(o*s);const T=S/o;let x=!1,k=!1,D=w*u,P=u/o,R=1;if(m==="fill"||m==="fit"){const{typicalViewportLineCount:Re,extraLinesBeforeFirstLine:Ee,extraLinesBeyondLastLine:gt,desiredRatio:qe,minimapLineCount:Ce}=Ou.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:c,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:s,lineHeight:l,pixelRatio:o});if(b/Ce>1)x=!0,k=!0,u=1,D=1,P=u/o;else{let be=!1,Vt=u+1;if(m==="fit"){const Es=Math.ceil((Ee+b+gt)*D);C&&a&&v<=t.stableFitRemainingWidth?(be=!0,Vt=t.stableFitMaxMinimapScale):be=Es>S}if(m==="fill"||be){x=!0;const Es=u;D=Math.min(l*o,Math.max(1,Math.floor(1/qe))),C&&a&&v<=t.stableFitRemainingWidth&&(Vt=t.stableFitMaxMinimapScale),u=Math.min(Vt,Math.max(1,Math.floor(D/w))),u>Es&&(R=Math.min(2,u/Es)),P=u/o/R,S=Math.ceil(Math.max(Re,Ee+b+gt)*D),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const V=Math.floor(g*P),U=Math.min(V,Math.max(0,Math.floor((v-_-2)*P/(h+P)))+ih);let se=Math.floor(o*U);const ge=se/o;se=Math.floor(se*R);const Oe=d?1:2,He=f==="left"?0:i-U-_;return{renderMinimap:Oe,minimapLeft:He,minimapWidth:U,minimapHeightIsEditorHeight:x,minimapIsSampling:k,minimapScale:u,minimapLineHeight:D,minimapCanvasInnerWidth:se,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:ge,minimapCanvasOuterHeight:T}}static computeLayout(e,t){const i=t.outerWidth|0,s=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,h=t.pixelRatio,c=t.viewLineCount,d=e.get(131),u=d==="inherit"?e.get(130):d,g=u==="inherit"?e.get(126):u,m=e.get(129),f=t.isDominatedByLongLines,_=e.get(55),b=e.get(65).renderType!==0,v=e.get(66),C=e.get(100),w=e.get(81),S=e.get(70),T=e.get(98),x=T.verticalScrollbarSize,k=T.verticalHasArrows,D=T.arrowSize,P=T.horizontalScrollbarSize,R=e.get(41),V=e.get(105)!=="never";let U=e.get(63);R&&V&&(U+=16);let se=0;if(b){const Sc=Math.max(r,v);se=Math.round(Sc*l)}let ge=0;_&&(ge=o);let Oe=0,He=Oe+ge,Re=He+se,Ee=Re+U;const gt=i-ge-se-U;let qe=!1,Ce=!1,be=-1;u==="inherit"&&f?(qe=!0,Ce=!0):g==="on"||g==="bounded"?Ce=!0:g==="wordWrapColumn"&&(be=m);const Vt=Ou._computeMinimapLayout({outerWidth:i,outerHeight:s,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:h,scrollBeyondLastLine:C,paddingTop:w.top,paddingBottom:w.bottom,minimap:S,verticalScrollbarWidth:x,viewLineCount:c,remainingWidth:gt,isViewportWrapping:Ce},t.memory||new OA);Vt.renderMinimap!==0&&Vt.minimapLeft===0&&(Oe+=Vt.minimapWidth,He+=Vt.minimapWidth,Re+=Vt.minimapWidth,Ee+=Vt.minimapWidth);const Es=gt-Vt.minimapWidth,to=Math.max(1,Math.floor((Es-x-2)/a)),Hr=k?D:0;return Ce&&(be=Math.max(1,to),g==="bounded"&&(be=Math.min(be,m))),{width:i,height:s,glyphMarginLeft:Oe,glyphMarginWidth:ge,lineNumbersLeft:He,lineNumbersWidth:se,decorationsLeft:Re,decorationsWidth:U,contentLeft:Ee,contentWidth:Es,minimap:Vt,viewportColumn:to,isWordWrapMinified:qe,isViewportWrapping:Ce,wrappingColumn:be,verticalScrollbarWidth:x,horizontalScrollbarHeight:P,overviewRuler:{top:Hr,width:x,height:s-2*Hr,right:0}}}}class eU extends Jt{constructor(){super(133,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[p("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),p("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:p("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return yi(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}class tU extends Jt{constructor(){const e={enabled:!0};super(62,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:p("codeActions","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:ye(e.enabled,this.defaultValue.enabled)}}}class iU extends Jt{constructor(){const e={enabled:!1,maxLineCount:5,defaultModel:"outlineModel"};super(110,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:p("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:p("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:p("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ye(t.enabled,this.defaultValue.enabled),maxLineCount:xt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,10),defaultModel:yi(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"])}}}class nU extends Jt{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(135,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[p("editor.inlayHints.on","Inlay hints are enabled"),p("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",Ge?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",Ge?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:p("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:yi(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:xt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:ps.string(t.fontFamily,this.defaultValue.fontFamily),padding:ye(t.padding,this.defaultValue.padding)}}}class sU extends Jt{constructor(){super(63,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):xt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?xt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class oU extends Gr{constructor(){super(64,"lineHeight",ms.lineHeight,e=>Gr.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. +var g0e=Object.defineProperty;var p0e=(wc,Ha,p)=>Ha in wc?g0e(wc,Ha,{enumerable:!0,configurable:!0,writable:!0,value:p}):wc[Ha]=p;var ii=(wc,Ha,p)=>(p0e(wc,typeof Ha!="symbol"?Ha+"":Ha,p),p);import{_ as fe,__tla as m0e}from"./index-26445b65.js";import{g as f0e,__tla as _0e}from"./index-a62fcf84.js";let tV,_u,oS,v0e=Promise.all([(()=>{try{return m0e}catch{}})(),(()=>{try{return _0e}catch{}})()]).then(async()=>{globalThis&&globalThis.__awaiter;let wc=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Ha(n,e){let t;return e.length===0?t=n:t=n.replace(/\{(\d+)\}/g,(i,s)=>{const o=s[0],r=e[o];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),wc&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function p(n,e,...t){return Ha(e,t)}var fS;const yu="en";let e1=!1,t1=!1,i1=!1,GM=!1,_S=!1,vS=!1,YM=!1,n1,s1=yu,XM=yu,OV,er;const as=typeof self=="object"?self:typeof global=="object"?global:{};let Pn;typeof as.vscode<"u"&&typeof as.vscode.process<"u"?Pn=as.vscode.process:typeof process<"u"&&(Pn=process);const PV=typeof((fS=Pn==null?void 0:Pn.versions)===null||fS===void 0?void 0:fS.electron)=="string",FV=PV&&(Pn==null?void 0:Pn.type)==="renderer";if(typeof navigator=="object"&&!FV)er=navigator.userAgent,e1=er.indexOf("Windows")>=0,t1=er.indexOf("Macintosh")>=0,vS=(er.indexOf("Macintosh")>=0||er.indexOf("iPad")>=0||er.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,i1=er.indexOf("Linux")>=0,YM=(er==null?void 0:er.indexOf("Mobi"))>=0,_S=!0,p({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),n1=yu,s1=n1,XM=navigator.language;else if(typeof Pn=="object"){e1=Pn.platform==="win32",t1=Pn.platform==="darwin",i1=Pn.platform==="linux",i1&&Pn.env.SNAP&&Pn.env.SNAP_REVISION,Pn.env.CI||Pn.env.BUILD_ARTIFACTSTAGINGDIRECTORY,n1=yu,s1=yu;const n=Pn.env.VSCODE_NLS_CONFIG;if(n)try{const e=JSON.parse(n),t=e.availableLanguages["*"];n1=e.locale,XM=e.osLocale,s1=t||yu,OV=e._translationsConfigFile}catch{}GM=!0}else console.error("Unable to resolve platform.");const $i=e1,$e=t1,rn=i1,tr=GM,ql=_S,BV=_S&&typeof as.importScripts=="function",Br=vS,WV=YM,Wr=er,VV=s1,HV=typeof as.postMessage=="function"&&!as.importScripts,ZM=(()=>{if(HV){const n=[];as.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,s=n.length;i{const i=++e;n.push({id:i,callback:t}),as.postMessage({vscodeScheduleAsyncWork:i},"*")}}return n=>setTimeout(n)})(),Ls=t1||vS?2:e1?1:3;let QM=!0,JM=!1;function eA(){if(!JM){JM=!0;const n=new Uint8Array(2);n[0]=1,n[1]=2,QM=new Uint16Array(n.buffer)[0]===512+1}return QM}const tA=!!(Wr&&Wr.indexOf("Chrome")>=0),zV=!!(Wr&&Wr.indexOf("Firefox")>=0),UV=!!(!tA&&Wr&&Wr.indexOf("Safari")>=0),KV=!!(Wr&&Wr.indexOf("Edg/")>=0);Wr&&Wr.indexOf("Android")>=0;var et;(function(n){function e(b){return b&&typeof b=="object"&&typeof b[Symbol.iterator]=="function"}n.is=e;const t=Object.freeze([]);function i(){return t}n.empty=i;function*s(b){yield b}n.single=s;function o(b){return e(b)?b:s(b)}n.wrap=o;function r(b){return b||t}n.from=r;function a(b){return!b||b[Symbol.iterator]().next().done===!0}n.isEmpty=a;function l(b){return b[Symbol.iterator]().next().value}n.first=l;function h(b,v){for(const C of b)if(v(C))return!0;return!1}n.some=h;function c(b,v){for(const C of b)if(v(C))return C}n.find=c;function*d(b,v){for(const C of b)v(C)&&(yield C)}n.filter=d;function*u(b,v){let C=0;for(const w of b)yield v(w,C++)}n.map=u;function*g(...b){for(const v of b)for(const C of v)yield C}n.concat=g;function m(b,v,C){let w=C;for(const S of b)w=v(w,S);return w}n.reduce=m;function*f(b,v,C=b.length){for(v<0&&(v+=b.length),C<0?C+=b.length:C>b.length&&(C=b.length);v{s||(s=!0,this._remove(i))}}shift(){if(this._first!==bi.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==bi.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==bi.Undefined&&e.next!==bi.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===bi.Undefined&&e.next===bi.Undefined?(this._first=bi.Undefined,this._last=bi.Undefined):e.next===bi.Undefined?(this._last=this._last.prev,this._last.next=bi.Undefined):e.prev===bi.Undefined&&(this._first=this._first.next,this._first.prev=bi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==bi.Undefined;)yield e.element,e=e.next}}const iA="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function jV(n=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of iA)n.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const bS=jV();function nA(n){let e=bS;if(n&&n instanceof RegExp)if(n.global)e=n;else{let t="g";n.ignoreCase&&(t+="i"),n.multiline&&(t+="m"),n.unicode&&(t+="u"),e=new RegExp(n.source,t)}return e.lastIndex=0,e}const sA=new an;sA.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function rm(n,e,t,i,s){if(s||(s=et.first(sA)),t.length>s.maxLen){let h=n-s.maxLen/2;return h<0?h=0:i+=h,t=t.substring(h,n+s.maxLen/2),rm(n,e,t,i,s)}const o=Date.now(),r=n-1-i;let a=-1,l=null;for(let h=1;!(Date.now()-o>=s.timeBudget);h++){const c=r-s.windowSize*h;e.lastIndex=Math.max(0,c);const d=qV(e,t,r,a);if(!d&&l||(l=d,c<=0))break;a=c}if(l){const h={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,h}return null}function qV(n,e,t,i){let s;for(;s=n.exec(e);){const o=s.index||0;if(o<=t&&n.lastIndex>=t)return s;if(i>0&&o>i)return null}return null}function Qs(n,e=0){return n[n.length-(1+e)]}function $V(n){if(n.length===0)throw new Error("Invalid tail call");return[n.slice(0,n.length-1),n[n.length-1]]}function ln(n,e,t=(i,s)=>i===s){if(n===e)return!0;if(!n||!e||n.length!==e.length)return!1;for(let i=0,s=n.length;it(n[i],e))}function YV(n,e){let t=0,i=n-1;for(;t<=i;){const s=(t+i)/2|0,o=e(s);if(o<0)t=s+1;else if(o>0)i=s-1;else return s}return-(t+1)}function oA(n,e){let t=0,i=n.length;if(i===0)return 0;for(;t=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],s=[],o=[],r=[];for(const a of e){const l=t(a,i);l<0?s.push(a):l>0?o.push(a):r.push(a)}return n!!e)}function aA(n){let e=0;for(let t=0;t0}function $l(n,e=t=>t){const t=new Set;return n.filter(i=>{const s=e(i);return t.has(s)?!1:(t.add(s),!0)})}function hA(n,e){const t=XV(n,e);if(t!==-1)return n[t]}function XV(n,e){for(let t=n.length-1;t>=0;t--){const i=n[t];if(e(i))return t}return-1}function cA(n,e){return n.length>0?n[0]:e}function Fn(n,e){let t=typeof e=="number"?n:0;typeof e=="number"?t=n:(t=0,e=n);const i=[];if(t<=e)for(let s=t;se;s--)i.push(s);return i}function o1(n,e,t){const i=n.slice(0,e),s=n.slice(e);return i.concat(t,s)}function wS(n,e){const t=n.indexOf(e);t>-1&&(n.splice(t,1),n.unshift(e))}function r1(n,e){const t=n.indexOf(e);t>-1&&(n.splice(t,1),n.push(e))}function dA(n,e){for(const t of e)n.push(t)}function yS(n){return Array.isArray(n)?n:[n]}function ZV(n,e,t){const i=gA(n,e),s=n.length,o=t.length;n.length=s+o;for(let r=s-1;r>=i;r--)n[r+o]=n[r];for(let r=0;r0}n.isGreaterThan=t;function i(s){return s===0}n.isNeitherLessOrGreaterThan=i,n.greaterThan=1,n.lessThan=-1,n.neitherLessOrGreaterThan=0})(SS||(SS={}));function lm(n,e){return(t,i)=>e(n(t),n(i))}const QV=(n,e)=>n-e;function pA(n,e){if(n.length===0)return;let t=n[0];for(let i=1;i0&&(t=s)}return t}function JV(n,e){if(n.length===0)return;let t=n[0];for(let i=1;i=0&&(t=s)}return t}function eH(n,e){return pA(n,(t,i)=>-e(t,i))}class Lu{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class Vr{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new Vr(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new Vr(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(s=>((i||SS.isGreaterThan(e(s,t)))&&(i=!1,t=s),!0)),t}}Vr.empty=new Vr(n=>{});function Bn(n){return typeof n=="string"}function Yn(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function tH(n){const e=Object.getPrototypeOf(Uint8Array);return typeof n=="object"&&n instanceof e}function Gl(n){return typeof n=="number"&&!isNaN(n)}function mA(n){return!!n&&typeof n[Symbol.iterator]=="function"}function fA(n){return n===!0||n===!1}function ls(n){return typeof n>"u"}function iH(n){return!ks(n)}function ks(n){return ls(n)||n===null}function bt(n,e){if(!n)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function ku(n){if(ks(n))throw new Error("Assertion Failed: argument is undefined or null");return n}function a1(n){return typeof n=="function"}function nH(n,e){const t=Math.min(n.length,e.length);for(let i=0;i{e[t]=i&&typeof i=="object"?za(i):i}),e}function oH(n){if(!n||typeof n!="object")return n;const e=[n];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(_A.call(t,i)){const s=t[i];typeof s=="object"&&!Object.isFrozen(s)&&!tH(s)&&e.push(s)}}return n}const _A=Object.prototype.hasOwnProperty;function vA(n,e){return LS(n,e,new Set)}function LS(n,e,t){if(ks(n))return n;const i=e(n);if(typeof i<"u")return i;if(Array.isArray(n)){const s=[];for(const o of n)s.push(LS(o,e,t));return s}if(Yn(n)){if(t.has(n))throw new Error("Cannot clone recursive data-structure");t.add(n);const s={};for(const o in n)_A.call(n,o)&&(s[o]=LS(n[o],e,t));return t.delete(n),s}return n}function hm(n,e,t=!0){return Yn(n)?(Yn(e)&&Object.keys(e).forEach(i=>{i in n?t&&(Yn(n[i])&&Yn(e[i])?hm(n[i],e[i],t):n[i]=e[i]):n[i]=e[i]}),n):e}function xs(n,e){if(n===e)return!0;if(n==null||e===null||e===void 0||typeof n!=typeof e||typeof n!="object"||Array.isArray(n)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(n)){if(n.length!==e.length)return!1;for(t=0;tfunction(){const o=Array.prototype.slice.call(arguments,0);return e(s,o)},i={};for(const s of n)i[s]=t(s);return i}const _n={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},Yl=8;class bA{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class CA{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Zt{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return l1(e,t)}compute(e,t,i){return i}}class cm{constructor(e,t){this.newValue=e,this.didChange=t}}function l1(n,e){if(typeof n!="object"||typeof e!="object"||!n||!e)return new cm(e,n!==e);if(Array.isArray(n)||Array.isArray(e)){const i=Array.isArray(n)&&Array.isArray(e)&&ln(n,e);return new cm(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const s=l1(n[i],e[i]);s.didChange&&(n[i]=s.newValue,t=!0)}return new cm(n,t)}class dm{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return l1(e,t)}validate(e){return this.defaultValue}}class xu{constructor(e,t,i,s){this.id=e,this.name=t,this.defaultValue=i,this.schema=s}applyUpdate(e,t){return l1(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function ye(n,e){return typeof n>"u"?e:n==="false"?!1:!!n}class st extends xu{constructor(e,t,i,s=void 0){typeof s<"u"&&(s.type="boolean",s.default=i),super(e,t,i,s)}validate(e){return ye(e,this.defaultValue)}}function xS(n,e,t,i){if(typeof n>"u")return e;let s=parseInt(n,10);return isNaN(s)?e:(s=Math.max(t,s),s=Math.min(i,s),s|0)}class Lt extends xu{static clampedInt(e,t,i,s){return xS(e,t,i,s)}constructor(e,t,i,s,o,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=s,r.maximum=o),super(e,t,i,r),this.minimum=s,this.maximum=o}validate(e){return Lt.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class Hr extends xu{static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,s,o){typeof o<"u"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=s}validate(e){return this.validationFn(Hr.float(e,this.defaultValue))}}class hs extends xu{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,s=void 0){typeof s<"u"&&(s.type="string",s.default=i),super(e,t,i,s)}validate(e){return hs.string(e,this.defaultValue)}}function Ci(n,e,t){return typeof n!="string"||t.indexOf(n)===-1?e:n}class li extends xu{constructor(e,t,i,s,o=void 0){typeof o<"u"&&(o.type="string",o.enum=s,o.default=i),super(e,t,i,o),this._allowedValues=s}validate(e){return Ci(e,this.defaultValue,this._allowedValues)}}class h1 extends Zt{constructor(e,t,i,s,o,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=s),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function lH(n){switch(n){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class hH extends Zt{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),p("accessibilitySupport.on","Optimize for usage with a Screen Reader"),p("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:p("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class cH extends Zt{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(21,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:ye(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:ye(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function dH(n){switch(n){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Yi;(function(n){n[n.Line=1]="Line",n[n.Block=2]="Block",n[n.Underline=3]="Underline",n[n.LineThin=4]="LineThin",n[n.BlockOutline=5]="BlockOutline",n[n.UnderlineThin=6]="UnderlineThin"})(Yi||(Yi={}));function uH(n){switch(n){case"line":return Yi.Line;case"block":return Yi.Block;case"underline":return Yi.Underline;case"line-thin":return Yi.LineThin;case"block-outline":return Yi.BlockOutline;case"underline-thin":return Yi.UnderlineThin}}class gH extends dm{constructor(){super(136)}compute(e,t,i){const s=["monaco-editor"];return t.get(37)&&s.push(t.get(37)),e.extraEditorClassName&&s.push(e.extraEditorClassName),t.get(71)==="default"?s.push("mouse-default"):t.get(71)==="copy"&&s.push("mouse-copy"),t.get(106)&&s.push("showUnused"),t.get(134)&&s.push("showDeprecated"),s.join(" ")}}class pH extends st{constructor(){super(35,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class mH extends Zt{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(39,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:$e},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:ye(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":Ci(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":Ci(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:ye(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:ye(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:ye(t.loop,this.defaultValue.loop)}}}class Ds extends Zt{constructor(){super(49,"fontLigatures",Ds.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?Ds.OFF:e==="true"?Ds.ON:e:e?Ds.ON:Ds.OFF}}Ds.OFF='"liga" off, "calt" off',Ds.ON='"liga" on, "calt" on';class ir extends Zt{constructor(){super(52,"fontVariations",ir.OFF,{anyOf:[{type:"boolean",description:p("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:p("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:p("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?ir.OFF:e==="true"?ir.TRANSLATE:e:e?ir.TRANSLATE:ir.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}}ir.OFF="normal",ir.TRANSLATE="translate";class fH extends dm{constructor(){super(48)}compute(e,t,i){return e.fontInfo}}class _H extends xu{constructor(){super(50,"fontSize",cs.fontSize,{type:"number",minimum:6,maximum:100,default:cs.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=Hr.float(e,this.defaultValue);return t===0?cs.fontSize:Hr.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}class zr extends Zt{constructor(){super(51,"fontWeight",cs.fontWeight,{anyOf:[{type:"number",minimum:zr.MINIMUM_VALUE,maximum:zr.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:zr.SUGGESTION_VALUES}],default:cs.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(Lt.clampedInt(e,cs.fontWeight,zr.MINIMUM_VALUE,zr.MAXIMUM_VALUE))}}zr.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],zr.MINIMUM_VALUE=1,zr.MAXIMUM_VALUE=1e3;class vH extends Zt{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(56,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,i,s,o,r;if(!e||typeof e!="object")return this.defaultValue;const a=e;return{multiple:Ci(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(t=a.multipleDefinitions)!==null&&t!==void 0?t:Ci(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(i=a.multipleTypeDefinitions)!==null&&i!==void 0?i:Ci(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(s=a.multipleDeclarations)!==null&&s!==void 0?s:Ci(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=a.multipleImplementations)!==null&&o!==void 0?o:Ci(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(r=a.multipleReferences)!==null&&r!==void 0?r:Ci(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:hs.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:hs.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:hs.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:hs.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:hs.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class bH extends Zt{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(58,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ye(t.enabled,this.defaultValue.enabled),delay:Lt.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:ye(t.sticky,this.defaultValue.sticky),above:ye(t.above,this.defaultValue.above)}}}class Du extends dm{constructor(){super(139)}compute(e,t,i){return Du.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let s=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(s=Math.max(s,t-1));const o=(i+e.viewLineCount+s)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/o);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:s,desiredRatio:o,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,s=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*s),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:s};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,h=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,d=e.minimap.renderCharacters;let u=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,m=e.minimap.size,f=e.minimap.side,_=e.verticalScrollbarWidth,b=e.viewLineCount,v=e.remainingWidth,C=e.isViewportWrapping,w=d?2:3;let S=Math.floor(o*s);const T=S/o;let x=!1,k=!1,D=w*u,P=u/o,R=1;if(m==="fill"||m==="fit"){const{typicalViewportLineCount:Re,extraLinesBeforeFirstLine:Ee,extraLinesBeyondLastLine:dt,desiredRatio:je,minimapLineCount:Ce}=Du.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:c,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:s,lineHeight:l,pixelRatio:o});if(b/Ce>1)x=!0,k=!0,u=1,D=1,P=u/o;else{let be=!1,Bt=u+1;if(m==="fit"){const Ss=Math.ceil((Ee+b+dt)*D);C&&a&&v<=t.stableFitRemainingWidth?(be=!0,Bt=t.stableFitMaxMinimapScale):be=Ss>S}if(m==="fill"||be){x=!0;const Ss=u;D=Math.min(l*o,Math.max(1,Math.floor(1/je))),C&&a&&v<=t.stableFitRemainingWidth&&(Bt=t.stableFitMaxMinimapScale),u=Math.min(Bt,Math.max(1,Math.floor(D/w))),u>Ss&&(R=Math.min(2,u/Ss)),P=u/o/R,S=Math.ceil(Math.max(Re,Ee+b+dt)*D),C?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=v,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const V=Math.floor(g*P),U=Math.min(V,Math.max(0,Math.floor((v-_-2)*P/(h+P)))+Yl);let se=Math.floor(o*U);const ge=se/o;se=Math.floor(se*R);const Oe=d?1:2,He=f==="left"?0:i-U-_;return{renderMinimap:Oe,minimapLeft:He,minimapWidth:U,minimapHeightIsEditorHeight:x,minimapIsSampling:k,minimapScale:u,minimapLineHeight:D,minimapCanvasInnerWidth:se,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:ge,minimapCanvasOuterHeight:T}}static computeLayout(e,t){const i=t.outerWidth|0,s=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,h=t.pixelRatio,c=t.viewLineCount,d=e.get(131),u=d==="inherit"?e.get(130):d,g=u==="inherit"?e.get(126):u,m=e.get(129),f=t.isDominatedByLongLines,_=e.get(55),b=e.get(65).renderType!==0,v=e.get(66),C=e.get(100),w=e.get(81),S=e.get(70),T=e.get(98),x=T.verticalScrollbarSize,k=T.verticalHasArrows,D=T.arrowSize,P=T.horizontalScrollbarSize,R=e.get(41),V=e.get(105)!=="never";let U=e.get(63);R&&V&&(U+=16);let se=0;if(b){const fc=Math.max(r,v);se=Math.round(fc*l)}let ge=0;_&&(ge=o);let Oe=0,He=Oe+ge,Re=He+se,Ee=Re+U;const dt=i-ge-se-U;let je=!1,Ce=!1,be=-1;u==="inherit"&&f?(je=!0,Ce=!0):g==="on"||g==="bounded"?Ce=!0:g==="wordWrapColumn"&&(be=m);const Bt=Du._computeMinimapLayout({outerWidth:i,outerHeight:s,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:h,scrollBeyondLastLine:C,paddingTop:w.top,paddingBottom:w.bottom,minimap:S,verticalScrollbarWidth:x,viewLineCount:c,remainingWidth:dt,isViewportWrapping:Ce},t.memory||new CA);Bt.renderMinimap!==0&&Bt.minimapLeft===0&&(Oe+=Bt.minimapWidth,He+=Bt.minimapWidth,Re+=Bt.minimapWidth,Ee+=Bt.minimapWidth);const Ss=dt-Bt.minimapWidth,Xs=Math.max(1,Math.floor((Ss-x-2)/a)),Or=k?D:0;return Ce&&(be=Math.max(1,Xs),g==="bounded"&&(be=Math.min(be,m))),{width:i,height:s,glyphMarginLeft:Oe,glyphMarginWidth:ge,lineNumbersLeft:He,lineNumbersWidth:se,decorationsLeft:Re,decorationsWidth:U,contentLeft:Ee,contentWidth:Ss,minimap:Bt,viewportColumn:Xs,isWordWrapMinified:je,isViewportWrapping:Ce,wrappingColumn:be,verticalScrollbarWidth:x,horizontalScrollbarHeight:P,overviewRuler:{top:Or,width:x,height:s-2*Or,right:0}}}}class CH extends Zt{constructor(){super(133,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[p("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),p("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:p("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return Ci(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}class wH extends Zt{constructor(){const e={enabled:!0};super(62,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:p("codeActions","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:ye(e.enabled,this.defaultValue.enabled)}}}class yH extends Zt{constructor(){const e={enabled:!1,maxLineCount:5,defaultModel:"outlineModel"};super(110,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:p("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:p("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:p("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ye(t.enabled,this.defaultValue.enabled),maxLineCount:Lt.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,10),defaultModel:Ci(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"])}}}class SH extends Zt{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(135,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[p("editor.inlayHints.on","Inlay hints are enabled"),p("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",$e?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",$e?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:p("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:Ci(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:Lt.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:hs.string(t.fontFamily,this.defaultValue.fontFamily),padding:ye(t.padding,this.defaultValue.padding)}}}class LH extends Zt{constructor(){super(63,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):Lt.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?Lt.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class kH extends Hr{constructor(){super(64,"lineHeight",cs.lineHeight,e=>Hr.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. - Use 0 to automatically compute the line height from the font size. - Values between 0 and 8 will be used as a multiplier with the font size. - - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class rU extends Jt{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(70,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:p("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:p("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[p("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),p("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),p("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:p("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:p("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:p("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:p("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:p("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:p("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ye(t.enabled,this.defaultValue.enabled),autohide:ye(t.autohide,this.defaultValue.autohide),size:yi(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:yi(t.side,this.defaultValue.side,["right","left"]),showSlider:yi(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:ye(t.renderCharacters,this.defaultValue.renderCharacters),scale:xt.clampedInt(t.scale,1,1,3),maxColumn:xt.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function aU(n){return n==="ctrlCmd"?Ge?"metaKey":"ctrlKey":"altKey"}class lU extends Jt{constructor(){super(81,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:xt.clampedInt(t.top,0,0,1e3),bottom:xt.clampedInt(t.bottom,0,0,1e3)}}}class hU extends Jt{constructor(){const e={enabled:!0,cycle:!0};super(82,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:p("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:p("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ye(t.enabled,this.defaultValue.enabled),cycle:ye(t.cycle,this.defaultValue.cycle)}}}class cU extends Cm{constructor(){super(137)}compute(e,t,i){return e.pixelRatio}}class dU extends Jt{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[p("on","Quick suggestions show inside the suggest widget"),p("inline","Quick suggestions show as ghost text"),p("off","Quick suggestions are disabled")]}];super(85,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:p("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:p("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:p("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:p("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const h=e?"on":"off";return{comments:h,strings:h,other:h}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:i,strings:s}=e,o=["on","inline","off"];let r,a,l;return typeof t=="boolean"?r=t?"on":"off":r=yi(t,this.defaultValue.other,o),typeof i=="boolean"?a=i?"on":"off":a=yi(i,this.defaultValue.comments,o),typeof s=="boolean"?l=s?"on":"off":l=yi(s,this.defaultValue.strings,o),{other:r,comments:a,strings:l}}}class uU extends Jt{constructor(){super(65,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[p("lineNumbers.off","Line numbers are not rendered."),p("lineNumbers.on","Line numbers are rendered as absolute number."),p("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),p("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:p("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function S1(n){const e=n.get(93);return e==="editable"?n.get(87):e!=="on"}class gU extends Jt{constructor(){const e=[],t={type:"number",description:p("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(97,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:p("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:p("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="number")t.push({column:xt.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const s=i;t.push({column:xt.clampedInt(s.column,0,0,1e4),color:s.color})}return t.sort((i,s)=>i.column-s.column),t}return this.defaultValue}}function PA(n,e){if(typeof n!="string")return e;switch(n){case"hidden":return 2;case"visible":return 3;default:return 1}}let pU=class extends Jt{constructor(){const n={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(98,"scrollbar",n,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),p("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),p("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),p("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),p("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:n.verticalScrollbarSize,description:p("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:n.horizontalScrollbarSize,description:p("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:n.scrollByPage,description:p("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(n){if(!n||typeof n!="object")return this.defaultValue;const e=n,t=xt.clampedInt(e.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),i=xt.clampedInt(e.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:xt.clampedInt(e.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:PA(e.vertical,this.defaultValue.vertical),horizontal:PA(e.horizontal,this.defaultValue.horizontal),useShadows:ye(e.useShadows,this.defaultValue.useShadows),verticalHasArrows:ye(e.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:ye(e.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:ye(e.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:ye(e.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:t,horizontalSliderSize:xt.clampedInt(e.horizontalSliderSize,t,0,1e3),verticalScrollbarSize:i,verticalSliderSize:xt.clampedInt(e.verticalSliderSize,i,0,1e3),scrollByPage:ye(e.scrollByPage,this.defaultValue.scrollByPage)}}};const As="inUntrustedWorkspace",ts={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class mU extends Jt{constructor(){const e={nonBasicASCII:As,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:As,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(120,"unicodeHighlight",e,{[ts.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,As],default:e.nonBasicASCII,description:p("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[ts.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:p("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[ts.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:p("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[ts.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,As],default:e.includeComments,description:p("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[ts.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,As],default:e.includeStrings,description:p("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[ts.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:p("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[ts.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:p("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(Ts(e.allowedCharacters,t.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),i=!0)),t.allowedLocales&&e&&(Ts(e.allowedLocales,t.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:t.allowedLocales}),i=!0));const s=super.applyUpdate(e,t);return i?new bm(s.newValue,!0):s}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:Pu(t.nonBasicASCII,As,[!0,!1,As]),invisibleCharacters:ye(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:ye(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:Pu(t.includeComments,As,[!0,!1,As]),includeStrings:Pu(t.includeStrings,As,[!0,!1,As]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[s,o]of Object.entries(e))o===!0&&(i[s]=!0);return i}}class fU extends Jt{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1};super(60,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:p("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover"],enumDescriptions:[p("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),p("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion.")],description:p("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:p("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ye(t.enabled,this.defaultValue.enabled),mode:yi(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:yi(t.showToolbar,this.defaultValue.showToolbar,["always","onHover"]),suppressSuggestions:ye(t.suppressSuggestions,this.defaultValue.suppressSuggestions)}}}class _U extends Jt{constructor(){const e={enabled:wn.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:wn.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(13,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:p("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ye(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:ye(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class vU extends Jt{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(14,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairs.true","Enables bracket pair guides."),p("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),p("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:p("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),p("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),p("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:p("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:p("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:p("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[p("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),p("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),p("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:p("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:Pu(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:Pu(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:ye(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:ye(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:Pu(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function Pu(n,e,t){const i=t.indexOf(n);return i===-1?e:t[i]}class bU extends Jt{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(113,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[p("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),p("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:p("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:p("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:p("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:p("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[p("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),p("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),p("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),p("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:p("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:p("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:p("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:p("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:p("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:p("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:p("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:p("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:yi(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:ye(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:ye(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:ye(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:ye(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:yi(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:ye(t.showIcons,this.defaultValue.showIcons),showStatusBar:ye(t.showStatusBar,this.defaultValue.showStatusBar),preview:ye(t.preview,this.defaultValue.preview),previewMode:yi(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:ye(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:ye(t.showMethods,this.defaultValue.showMethods),showFunctions:ye(t.showFunctions,this.defaultValue.showFunctions),showConstructors:ye(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:ye(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:ye(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:ye(t.showFields,this.defaultValue.showFields),showVariables:ye(t.showVariables,this.defaultValue.showVariables),showClasses:ye(t.showClasses,this.defaultValue.showClasses),showStructs:ye(t.showStructs,this.defaultValue.showStructs),showInterfaces:ye(t.showInterfaces,this.defaultValue.showInterfaces),showModules:ye(t.showModules,this.defaultValue.showModules),showProperties:ye(t.showProperties,this.defaultValue.showProperties),showEvents:ye(t.showEvents,this.defaultValue.showEvents),showOperators:ye(t.showOperators,this.defaultValue.showOperators),showUnits:ye(t.showUnits,this.defaultValue.showUnits),showValues:ye(t.showValues,this.defaultValue.showValues),showConstants:ye(t.showConstants,this.defaultValue.showConstants),showEnums:ye(t.showEnums,this.defaultValue.showEnums),showEnumMembers:ye(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:ye(t.showKeywords,this.defaultValue.showKeywords),showWords:ye(t.showWords,this.defaultValue.showWords),showColors:ye(t.showColors,this.defaultValue.showColors),showFiles:ye(t.showFiles,this.defaultValue.showFiles),showReferences:ye(t.showReferences,this.defaultValue.showReferences),showFolders:ye(t.showFolders,this.defaultValue.showFolders),showTypeParameters:ye(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:ye(t.showSnippets,this.defaultValue.showSnippets),showUsers:ye(t.showUsers,this.defaultValue.showUsers),showIssues:ye(t.showIssues,this.defaultValue.showIssues)}}}class CU extends Jt{constructor(){super(108,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:p("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:ye(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class wU extends Jt{constructor(){super(132,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[p("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),p("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),p("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),p("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:p("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return t.get(2)===2?0:i}}class yU extends Cm{constructor(){super(140)}compute(e,t,i){const s=t.get(139);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:s.isWordWrapMinified,isViewportWrapping:s.isViewportWrapping,wrappingColumn:s.wrappingColumn}}}class SU extends Jt{constructor(){const e={enabled:!0};super(34,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:ye(e.enabled,this.defaultValue.enabled)}}}const LU="Consolas, 'Courier New', monospace",kU="Menlo, Monaco, 'Courier New', monospace",xU="'Droid Sans Mono', 'monospace', monospace",ms={fontFamily:Ge?kU:cn?xU:LU,fontWeight:"normal",fontSize:Ge?12:14,lineHeight:0,letterSpacing:0},Fu=[];function te(n){return Fu[n.id]=n,n}const hr={acceptSuggestionOnCommitCharacter:te(new rt(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:p("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:te(new ci(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",p("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:p("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:te(new Uz),accessibilityPageSize:te(new xt(3,"accessibilityPageSize",10,1,1073741824,{description:p("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:te(new ps(4,"ariaLabel",p("editorViewAccessibleLabel","Editor content"))),screenReaderAnnounceInlineSuggestion:te(new rt(6,"screenReaderAnnounceInlineSuggestion",!1,{description:p("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader. Note that this does not work on macOS with VoiceOver."),tags:["accessibility"]})),autoClosingBrackets:te(new ci(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),p("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:p("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:te(new ci(7,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:te(new ci(8,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:te(new ci(9,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),p("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:p("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:te(new y1(10,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],zz,{enumDescriptions:[p("editor.autoIndent.none","The editor will not insert indentation automatically."),p("editor.autoIndent.keep","The editor will keep the current line's indentation."),p("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),p("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),p("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:p("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:te(new rt(11,"automaticLayout",!1)),autoSurround:te(new ci(12,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[p("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),p("editor.autoSurround.quotes","Surround with quotes but not brackets."),p("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:p("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:te(new _U),bracketPairGuides:te(new vU),stickyTabStops:te(new rt(111,"stickyTabStops",!1,{description:p("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:te(new rt(15,"codeLens",!0,{description:p("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:te(new ps(16,"codeLensFontFamily","",{description:p("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:te(new xt(17,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:p("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:te(new rt(18,"colorDecorators",!0,{description:p("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorsLimit:te(new xt(19,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:p("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:te(new rt(20,"columnSelection",!1,{description:p("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:te(new Kz),contextmenu:te(new rt(22,"contextmenu",!0)),copyWithSyntaxHighlighting:te(new rt(23,"copyWithSyntaxHighlighting",!0,{description:p("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:te(new y1(24,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],jz,{description:p("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:te(new ci(25,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[p("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),p("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),p("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:p("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:te(new y1(26,"cursorStyle",Ji.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],qz,{description:p("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:te(new xt(27,"cursorSurroundingLines",0,0,1073741824,{description:p("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:te(new ci(28,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[p("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),p("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:p("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:te(new xt(29,"cursorWidth",0,0,1073741824,{markdownDescription:p("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:te(new rt(30,"disableLayerHinting",!1)),disableMonospaceOptimizations:te(new rt(31,"disableMonospaceOptimizations",!1)),domReadOnly:te(new rt(32,"domReadOnly",!1)),dragAndDrop:te(new rt(33,"dragAndDrop",!0,{description:p("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:te(new Gz),dropIntoEditor:te(new SU),stickyScroll:te(new iU),experimentalWhitespaceRendering:te(new ci(36,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[p("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),p("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),p("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:p("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:te(new ps(37,"extraEditorClassName","")),fastScrollSensitivity:te(new Gr(38,"fastScrollSensitivity",5,n=>n<=0?5:n,{markdownDescription:p("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:te(new Yz),fixedOverflowWidgets:te(new rt(40,"fixedOverflowWidgets",!1)),folding:te(new rt(41,"folding",!0,{description:p("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:te(new ci(42,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[p("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),p("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:p("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:te(new rt(43,"foldingHighlight",!0,{description:p("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:te(new rt(44,"foldingImportsByDefault",!1,{description:p("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:te(new xt(45,"foldingMaximumRegions",5e3,10,65e3,{description:p("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:te(new rt(46,"unfoldOnClickAfterEndOfLine",!1,{description:p("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:te(new ps(47,"fontFamily",ms.fontFamily,{description:p("fontFamily","Controls the font family.")})),fontInfo:te(new Xz),fontLigatures2:te(new Ms),fontSize:te(new Zz),fontWeight:te(new Yr),fontVariations:te(new lr),formatOnPaste:te(new rt(53,"formatOnPaste",!1,{description:p("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:te(new rt(54,"formatOnType",!1,{description:p("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:te(new rt(55,"glyphMargin",!0,{description:p("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:te(new Qz),hideCursorInOverviewRuler:te(new rt(57,"hideCursorInOverviewRuler",!1,{description:p("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:te(new Jz),inDiffEditor:te(new rt(59,"inDiffEditor",!1)),letterSpacing:te(new Gr(61,"letterSpacing",ms.letterSpacing,n=>Gr.clamp(n,-5,20),{description:p("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:te(new tU),lineDecorationsWidth:te(new sU),lineHeight:te(new oU),lineNumbers:te(new uU),lineNumbersMinChars:te(new xt(66,"lineNumbersMinChars",5,1,300)),linkedEditing:te(new rt(67,"linkedEditing",!1,{description:p("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:te(new rt(68,"links",!0,{description:p("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:te(new ci(69,"matchBrackets","always",["always","near","never"],{description:p("matchBrackets","Highlight matching brackets.")})),minimap:te(new rU),mouseStyle:te(new ci(71,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:te(new Gr(72,"mouseWheelScrollSensitivity",1,n=>n===0?1:n,{markdownDescription:p("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:te(new rt(73,"mouseWheelZoom",!1,{markdownDescription:p("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:te(new rt(74,"multiCursorMergeOverlapping",!0,{description:p("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:te(new y1(75,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],aU,{markdownEnumDescriptions:[p("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:p({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:te(new ci(76,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[p("multiCursorPaste.spread","Each cursor pastes a single line of the text."),p("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:p("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:te(new xt(77,"multiCursorLimit",1e4,1,1e5,{markdownDescription:p("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:te(new rt(78,"occurrencesHighlight",!0,{description:p("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:te(new rt(79,"overviewRulerBorder",!0,{description:p("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:te(new xt(80,"overviewRulerLanes",3,0,3)),padding:te(new lU),parameterHints:te(new hU),peekWidgetDefaultFocus:te(new ci(83,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[p("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),p("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:p("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:te(new rt(84,"definitionLinkOpensInPeek",!1,{description:p("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:te(new dU),quickSuggestionsDelay:te(new xt(86,"quickSuggestionsDelay",10,0,1073741824,{description:p("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:te(new rt(87,"readOnly",!1)),renameOnType:te(new rt(88,"renameOnType",!1,{description:p("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:p("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:te(new rt(89,"renderControlCharacters",!0,{description:p("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:te(new ci(90,"renderFinalNewline",cn?"dimmed":"on",["off","on","dimmed"],{description:p("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:te(new ci(91,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",p("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:p("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:te(new rt(92,"renderLineHighlightOnlyWhenFocus",!1,{description:p("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:te(new ci(93,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:te(new ci(94,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",p("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),p("renderWhitespace.selection","Render whitespace characters only on selected text."),p("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:p("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:te(new xt(95,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:te(new rt(96,"roundedSelection",!0,{description:p("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:te(new gU),scrollbar:te(new pU),scrollBeyondLastColumn:te(new xt(99,"scrollBeyondLastColumn",4,0,1073741824,{description:p("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:te(new rt(100,"scrollBeyondLastLine",!0,{description:p("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:te(new rt(101,"scrollPredominantAxis",!0,{description:p("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:te(new rt(102,"selectionClipboard",!0,{description:p("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:cn})),selectionHighlight:te(new rt(103,"selectionHighlight",!0,{description:p("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:te(new rt(104,"selectOnLineNumbers",!0)),showFoldingControls:te(new ci(105,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[p("showFoldingControls.always","Always show the folding controls."),p("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),p("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:p("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:te(new rt(106,"showUnused",!0,{description:p("showUnused","Controls fading out of unused code.")})),showDeprecated:te(new rt(134,"showDeprecated",!0,{description:p("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:te(new nU),snippetSuggestions:te(new ci(107,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[p("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),p("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),p("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),p("snippetSuggestions.none","Do not show snippet suggestions.")],description:p("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:te(new CU),smoothScrolling:te(new rt(109,"smoothScrolling",!1,{description:p("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:te(new xt(112,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:te(new bU),inlineSuggest:te(new fU),suggestFontSize:te(new xt(114,"suggestFontSize",0,0,1e3,{markdownDescription:p("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:te(new xt(115,"suggestLineHeight",0,0,1e3,{markdownDescription:p("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:te(new rt(116,"suggestOnTriggerCharacters",!0,{description:p("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:te(new ci(117,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[p("suggestSelection.first","Always select the first suggestion."),p("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),p("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:p("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:te(new ci(118,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[p("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),p("tabCompletion.off","Disable tab completions."),p("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:p("tabCompletion","Enables tab completions.")})),tabIndex:te(new xt(119,"tabIndex",0,-1,1073741824)),unicodeHighlight:te(new mU),unusualLineTerminators:te(new ci(121,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[p("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),p("unusualLineTerminators.off","Unusual line terminators are ignored."),p("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:p("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:te(new rt(122,"useShadowDOM",!0)),useTabStops:te(new rt(123,"useTabStops",!0,{description:p("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordBreak:te(new ci(124,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[p("wordBreak.normal","Use the default line break rule."),p("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:p("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSeparators:te(new ps(125,"wordSeparators",_A,{description:p("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:te(new ci(126,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),p({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:p({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:te(new ps(127,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:te(new ps(128,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:te(new xt(129,"wordWrapColumn",80,1,1073741824,{markdownDescription:p({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:te(new ci(130,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:te(new ci(131,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:te(new $z),pixelRatio:te(new cU),tabFocusMode:te(new rt(138,"tabFocusMode",!1,{markdownDescription:p("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:te(new Ou),wrappingInfo:te(new yU),wrappingIndent:te(new wU),wrappingStrategy:te(new eU)};class DU{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Bu.isErrorNoTelemetry(e)?new Bu(e.message+` + - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class xH extends Zt{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(70,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:p("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:p("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[p("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),p("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),p("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:p("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:p("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:p("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:p("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:p("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:p("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ye(t.enabled,this.defaultValue.enabled),autohide:ye(t.autohide,this.defaultValue.autohide),size:Ci(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:Ci(t.side,this.defaultValue.side,["right","left"]),showSlider:Ci(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:ye(t.renderCharacters,this.defaultValue.renderCharacters),scale:Lt.clampedInt(t.scale,1,1,3),maxColumn:Lt.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function DH(n){return n==="ctrlCmd"?$e?"metaKey":"ctrlKey":"altKey"}class EH extends Zt{constructor(){super(81,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:Lt.clampedInt(t.top,0,0,1e3),bottom:Lt.clampedInt(t.bottom,0,0,1e3)}}}class NH extends Zt{constructor(){const e={enabled:!0,cycle:!0};super(82,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:p("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:p("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ye(t.enabled,this.defaultValue.enabled),cycle:ye(t.cycle,this.defaultValue.cycle)}}}class IH extends dm{constructor(){super(137)}compute(e,t,i){return e.pixelRatio}}class TH extends Zt{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[p("on","Quick suggestions show inside the suggest widget"),p("inline","Quick suggestions show as ghost text"),p("off","Quick suggestions are disabled")]}];super(85,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:p("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:p("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:p("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:p("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const h=e?"on":"off";return{comments:h,strings:h,other:h}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:i,strings:s}=e,o=["on","inline","off"];let r,a,l;return typeof t=="boolean"?r=t?"on":"off":r=Ci(t,this.defaultValue.other,o),typeof i=="boolean"?a=i?"on":"off":a=Ci(i,this.defaultValue.comments,o),typeof s=="boolean"?l=s?"on":"off":l=Ci(s,this.defaultValue.strings,o),{other:r,comments:a,strings:l}}}class MH extends Zt{constructor(){super(65,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[p("lineNumbers.off","Line numbers are not rendered."),p("lineNumbers.on","Line numbers are rendered as absolute number."),p("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),p("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:p("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function c1(n){const e=n.get(93);return e==="editable"?n.get(87):e!=="on"}class AH extends Zt{constructor(){const e=[],t={type:"number",description:p("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(97,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:p("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:p("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="number")t.push({column:Lt.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const s=i;t.push({column:Lt.clampedInt(s.column,0,0,1e4),color:s.color})}return t.sort((i,s)=>i.column-s.column),t}return this.defaultValue}}function wA(n,e){if(typeof n!="string")return e;switch(n){case"hidden":return 2;case"visible":return 3;default:return 1}}let RH=class extends Zt{constructor(){const n={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(98,"scrollbar",n,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),p("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),p("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),p("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),p("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:n.verticalScrollbarSize,description:p("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:n.horizontalScrollbarSize,description:p("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:n.scrollByPage,description:p("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(n){if(!n||typeof n!="object")return this.defaultValue;const e=n,t=Lt.clampedInt(e.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),i=Lt.clampedInt(e.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:Lt.clampedInt(e.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:wA(e.vertical,this.defaultValue.vertical),horizontal:wA(e.horizontal,this.defaultValue.horizontal),useShadows:ye(e.useShadows,this.defaultValue.useShadows),verticalHasArrows:ye(e.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:ye(e.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:ye(e.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:ye(e.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:t,horizontalSliderSize:Lt.clampedInt(e.horizontalSliderSize,t,0,1e3),verticalScrollbarSize:i,verticalSliderSize:Lt.clampedInt(e.verticalSliderSize,i,0,1e3),scrollByPage:ye(e.scrollByPage,this.defaultValue.scrollByPage)}}};const Es="inUntrustedWorkspace",Xn={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class OH extends Zt{constructor(){const e={nonBasicASCII:Es,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:Es,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(120,"unicodeHighlight",e,{[Xn.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Es],default:e.nonBasicASCII,description:p("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[Xn.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:p("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[Xn.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:p("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[Xn.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Es],default:e.includeComments,description:p("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[Xn.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Es],default:e.includeStrings,description:p("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[Xn.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:p("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[Xn.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:p("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(xs(e.allowedCharacters,t.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:t.allowedCharacters}),i=!0)),t.allowedLocales&&e&&(xs(e.allowedLocales,t.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:t.allowedLocales}),i=!0));const s=super.applyUpdate(e,t);return i?new cm(s.newValue,!0):s}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:Eu(t.nonBasicASCII,Es,[!0,!1,Es]),invisibleCharacters:ye(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:ye(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:Eu(t.includeComments,Es,[!0,!1,Es]),includeStrings:Eu(t.includeStrings,Es,[!0,!1,Es]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[s,o]of Object.entries(e))o===!0&&(i[s]=!0);return i}}class PH extends Zt{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1};super(60,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:p("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover"],enumDescriptions:[p("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),p("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion.")],description:p("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:p("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ye(t.enabled,this.defaultValue.enabled),mode:Ci(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:Ci(t.showToolbar,this.defaultValue.showToolbar,["always","onHover"]),suppressSuggestions:ye(t.suppressSuggestions,this.defaultValue.suppressSuggestions)}}}class FH extends Zt{constructor(){const e={enabled:_n.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:_n.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(13,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:p("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:ye(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:ye(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class BH extends Zt{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(14,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairs.true","Enables bracket pair guides."),p("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),p("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:p("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),p("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),p("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:p("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:p("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:p("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[p("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),p("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),p("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:p("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:Eu(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:Eu(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:ye(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:ye(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:Eu(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function Eu(n,e,t){const i=t.indexOf(n);return i===-1?e:t[i]}class WH extends Zt{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(113,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[p("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),p("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:p("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:p("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:p("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:p("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[p("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),p("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),p("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),p("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:p("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:p("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:p("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:p("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:p("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:p("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:p("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:p("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:Ci(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:ye(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:ye(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:ye(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:ye(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:Ci(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:ye(t.showIcons,this.defaultValue.showIcons),showStatusBar:ye(t.showStatusBar,this.defaultValue.showStatusBar),preview:ye(t.preview,this.defaultValue.preview),previewMode:Ci(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:ye(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:ye(t.showMethods,this.defaultValue.showMethods),showFunctions:ye(t.showFunctions,this.defaultValue.showFunctions),showConstructors:ye(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:ye(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:ye(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:ye(t.showFields,this.defaultValue.showFields),showVariables:ye(t.showVariables,this.defaultValue.showVariables),showClasses:ye(t.showClasses,this.defaultValue.showClasses),showStructs:ye(t.showStructs,this.defaultValue.showStructs),showInterfaces:ye(t.showInterfaces,this.defaultValue.showInterfaces),showModules:ye(t.showModules,this.defaultValue.showModules),showProperties:ye(t.showProperties,this.defaultValue.showProperties),showEvents:ye(t.showEvents,this.defaultValue.showEvents),showOperators:ye(t.showOperators,this.defaultValue.showOperators),showUnits:ye(t.showUnits,this.defaultValue.showUnits),showValues:ye(t.showValues,this.defaultValue.showValues),showConstants:ye(t.showConstants,this.defaultValue.showConstants),showEnums:ye(t.showEnums,this.defaultValue.showEnums),showEnumMembers:ye(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:ye(t.showKeywords,this.defaultValue.showKeywords),showWords:ye(t.showWords,this.defaultValue.showWords),showColors:ye(t.showColors,this.defaultValue.showColors),showFiles:ye(t.showFiles,this.defaultValue.showFiles),showReferences:ye(t.showReferences,this.defaultValue.showReferences),showFolders:ye(t.showFolders,this.defaultValue.showFolders),showTypeParameters:ye(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:ye(t.showSnippets,this.defaultValue.showSnippets),showUsers:ye(t.showUsers,this.defaultValue.showUsers),showIssues:ye(t.showIssues,this.defaultValue.showIssues)}}}class VH extends Zt{constructor(){super(108,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:p("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:ye(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class HH extends Zt{constructor(){super(132,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[p("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),p("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),p("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),p("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:p("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return t.get(2)===2?0:i}}class zH extends dm{constructor(){super(140)}compute(e,t,i){const s=t.get(139);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:s.isWordWrapMinified,isViewportWrapping:s.isViewportWrapping,wrappingColumn:s.wrappingColumn}}}class UH extends Zt{constructor(){const e={enabled:!0};super(34,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:ye(e.enabled,this.defaultValue.enabled)}}}const KH="Consolas, 'Courier New', monospace",jH="Menlo, Monaco, 'Courier New', monospace",qH="'Droid Sans Mono', 'monospace', monospace",cs={fontFamily:$e?jH:rn?qH:KH,fontWeight:"normal",fontSize:$e?12:14,lineHeight:0,letterSpacing:0},Nu=[];function te(n){return Nu[n.id]=n,n}const nr={acceptSuggestionOnCommitCharacter:te(new st(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:p("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:te(new li(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",p("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:p("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:te(new hH),accessibilityPageSize:te(new Lt(3,"accessibilityPageSize",10,1,1073741824,{description:p("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:te(new hs(4,"ariaLabel",p("editorViewAccessibleLabel","Editor content"))),screenReaderAnnounceInlineSuggestion:te(new st(6,"screenReaderAnnounceInlineSuggestion",!1,{description:p("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader. Note that this does not work on macOS with VoiceOver."),tags:["accessibility"]})),autoClosingBrackets:te(new li(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),p("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:p("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:te(new li(7,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:te(new li(8,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:te(new li(9,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),p("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:p("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:te(new h1(10,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],lH,{enumDescriptions:[p("editor.autoIndent.none","The editor will not insert indentation automatically."),p("editor.autoIndent.keep","The editor will keep the current line's indentation."),p("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),p("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),p("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:p("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:te(new st(11,"automaticLayout",!1)),autoSurround:te(new li(12,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[p("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),p("editor.autoSurround.quotes","Surround with quotes but not brackets."),p("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:p("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:te(new FH),bracketPairGuides:te(new BH),stickyTabStops:te(new st(111,"stickyTabStops",!1,{description:p("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:te(new st(15,"codeLens",!0,{description:p("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:te(new hs(16,"codeLensFontFamily","",{description:p("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:te(new Lt(17,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:p("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:te(new st(18,"colorDecorators",!0,{description:p("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorsLimit:te(new Lt(19,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:p("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:te(new st(20,"columnSelection",!1,{description:p("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:te(new cH),contextmenu:te(new st(22,"contextmenu",!0)),copyWithSyntaxHighlighting:te(new st(23,"copyWithSyntaxHighlighting",!0,{description:p("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:te(new h1(24,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],dH,{description:p("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:te(new li(25,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[p("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),p("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),p("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:p("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:te(new h1(26,"cursorStyle",Yi.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],uH,{description:p("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:te(new Lt(27,"cursorSurroundingLines",0,0,1073741824,{description:p("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:te(new li(28,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[p("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),p("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:p("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:te(new Lt(29,"cursorWidth",0,0,1073741824,{markdownDescription:p("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:te(new st(30,"disableLayerHinting",!1)),disableMonospaceOptimizations:te(new st(31,"disableMonospaceOptimizations",!1)),domReadOnly:te(new st(32,"domReadOnly",!1)),dragAndDrop:te(new st(33,"dragAndDrop",!0,{description:p("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:te(new pH),dropIntoEditor:te(new UH),stickyScroll:te(new yH),experimentalWhitespaceRendering:te(new li(36,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[p("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),p("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),p("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:p("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:te(new hs(37,"extraEditorClassName","")),fastScrollSensitivity:te(new Hr(38,"fastScrollSensitivity",5,n=>n<=0?5:n,{markdownDescription:p("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:te(new mH),fixedOverflowWidgets:te(new st(40,"fixedOverflowWidgets",!1)),folding:te(new st(41,"folding",!0,{description:p("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:te(new li(42,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[p("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),p("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:p("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:te(new st(43,"foldingHighlight",!0,{description:p("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:te(new st(44,"foldingImportsByDefault",!1,{description:p("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:te(new Lt(45,"foldingMaximumRegions",5e3,10,65e3,{description:p("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:te(new st(46,"unfoldOnClickAfterEndOfLine",!1,{description:p("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:te(new hs(47,"fontFamily",cs.fontFamily,{description:p("fontFamily","Controls the font family.")})),fontInfo:te(new fH),fontLigatures2:te(new Ds),fontSize:te(new _H),fontWeight:te(new zr),fontVariations:te(new ir),formatOnPaste:te(new st(53,"formatOnPaste",!1,{description:p("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:te(new st(54,"formatOnType",!1,{description:p("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:te(new st(55,"glyphMargin",!0,{description:p("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:te(new vH),hideCursorInOverviewRuler:te(new st(57,"hideCursorInOverviewRuler",!1,{description:p("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:te(new bH),inDiffEditor:te(new st(59,"inDiffEditor",!1)),letterSpacing:te(new Hr(61,"letterSpacing",cs.letterSpacing,n=>Hr.clamp(n,-5,20),{description:p("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:te(new wH),lineDecorationsWidth:te(new LH),lineHeight:te(new kH),lineNumbers:te(new MH),lineNumbersMinChars:te(new Lt(66,"lineNumbersMinChars",5,1,300)),linkedEditing:te(new st(67,"linkedEditing",!1,{description:p("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:te(new st(68,"links",!0,{description:p("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:te(new li(69,"matchBrackets","always",["always","near","never"],{description:p("matchBrackets","Highlight matching brackets.")})),minimap:te(new xH),mouseStyle:te(new li(71,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:te(new Hr(72,"mouseWheelScrollSensitivity",1,n=>n===0?1:n,{markdownDescription:p("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:te(new st(73,"mouseWheelZoom",!1,{markdownDescription:p("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:te(new st(74,"multiCursorMergeOverlapping",!0,{description:p("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:te(new h1(75,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],DH,{markdownEnumDescriptions:[p("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:p({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:te(new li(76,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[p("multiCursorPaste.spread","Each cursor pastes a single line of the text."),p("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:p("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:te(new Lt(77,"multiCursorLimit",1e4,1,1e5,{markdownDescription:p("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:te(new st(78,"occurrencesHighlight",!0,{description:p("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:te(new st(79,"overviewRulerBorder",!0,{description:p("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:te(new Lt(80,"overviewRulerLanes",3,0,3)),padding:te(new EH),parameterHints:te(new NH),peekWidgetDefaultFocus:te(new li(83,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[p("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),p("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:p("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:te(new st(84,"definitionLinkOpensInPeek",!1,{description:p("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:te(new TH),quickSuggestionsDelay:te(new Lt(86,"quickSuggestionsDelay",10,0,1073741824,{description:p("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:te(new st(87,"readOnly",!1)),renameOnType:te(new st(88,"renameOnType",!1,{description:p("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:p("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:te(new st(89,"renderControlCharacters",!0,{description:p("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:te(new li(90,"renderFinalNewline",rn?"dimmed":"on",["off","on","dimmed"],{description:p("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:te(new li(91,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",p("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:p("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:te(new st(92,"renderLineHighlightOnlyWhenFocus",!1,{description:p("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:te(new li(93,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:te(new li(94,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",p("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),p("renderWhitespace.selection","Render whitespace characters only on selected text."),p("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:p("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:te(new Lt(95,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:te(new st(96,"roundedSelection",!0,{description:p("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:te(new AH),scrollbar:te(new RH),scrollBeyondLastColumn:te(new Lt(99,"scrollBeyondLastColumn",4,0,1073741824,{description:p("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:te(new st(100,"scrollBeyondLastLine",!0,{description:p("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:te(new st(101,"scrollPredominantAxis",!0,{description:p("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:te(new st(102,"selectionClipboard",!0,{description:p("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:rn})),selectionHighlight:te(new st(103,"selectionHighlight",!0,{description:p("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:te(new st(104,"selectOnLineNumbers",!0)),showFoldingControls:te(new li(105,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[p("showFoldingControls.always","Always show the folding controls."),p("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),p("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:p("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:te(new st(106,"showUnused",!0,{description:p("showUnused","Controls fading out of unused code.")})),showDeprecated:te(new st(134,"showDeprecated",!0,{description:p("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:te(new SH),snippetSuggestions:te(new li(107,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[p("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),p("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),p("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),p("snippetSuggestions.none","Do not show snippet suggestions.")],description:p("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:te(new VH),smoothScrolling:te(new st(109,"smoothScrolling",!1,{description:p("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:te(new Lt(112,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:te(new WH),inlineSuggest:te(new PH),suggestFontSize:te(new Lt(114,"suggestFontSize",0,0,1e3,{markdownDescription:p("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:te(new Lt(115,"suggestLineHeight",0,0,1e3,{markdownDescription:p("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:te(new st(116,"suggestOnTriggerCharacters",!0,{description:p("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:te(new li(117,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[p("suggestSelection.first","Always select the first suggestion."),p("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),p("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:p("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:te(new li(118,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[p("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),p("tabCompletion.off","Disable tab completions."),p("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:p("tabCompletion","Enables tab completions.")})),tabIndex:te(new Lt(119,"tabIndex",0,-1,1073741824)),unicodeHighlight:te(new OH),unusualLineTerminators:te(new li(121,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[p("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),p("unusualLineTerminators.off","Unusual line terminators are ignored."),p("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:p("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:te(new st(122,"useShadowDOM",!0)),useTabStops:te(new st(123,"useTabStops",!0,{description:p("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordBreak:te(new li(124,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[p("wordBreak.normal","Use the default line break rule."),p("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:p("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSeparators:te(new hs(125,"wordSeparators",iA,{description:p("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:te(new li(126,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),p({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:p({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:te(new hs(127,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:te(new hs(128,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:te(new Lt(129,"wordWrapColumn",80,1,1073741824,{markdownDescription:p({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:te(new li(130,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:te(new li(131,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:te(new gH),pixelRatio:te(new IH),tabFocusMode:te(new st(138,"tabFocusMode",!1,{markdownDescription:p("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:te(new Du),wrappingInfo:te(new zH),wrappingIndent:te(new HH),wrappingStrategy:te(new CH)};class $H{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Iu.isErrorNoTelemetry(e)?new Iu(e.message+` `+e.stack):new Error(e.message+` -`+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const FA=new DU;function Fe(n){cr(n)||FA.onUnexpectedError(n)}function Fi(n){cr(n)||FA.onUnexpectedExternalError(n)}function BA(n){if(n instanceof Error){const{name:e,message:t}=n,i=n.stacktrace||n.stack;return{$isError:!0,name:e,message:t,stack:i,noTelemetry:Bu.isErrorNoTelemetry(n)}}return n}const L1="Canceled";function cr(n){return n instanceof nh?!0:n instanceof Error&&n.name===L1&&n.message===L1}class nh extends Error{constructor(){super(L1),this.name=this.message}}function EU(){const n=new Error(L1);return n.name=n.message,n}function Rs(n){return n?new Error(`Illegal argument: ${n}`):new Error("Illegal argument")}function HS(n){return n?new Error(`Illegal state: ${n}`):new Error("Illegal state")}class NU extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class Bu extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof Bu)return e;const t=new Bu;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class Xr extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,Xr.prototype);debugger}}function Zr(n){const e=this;let t=!1,i;return function(){return t||(t=!0,i=n.apply(e,arguments)),i}}function zS(n){return typeof n.dispose=="function"&&n.dispose.length===0}function ft(n){if(it.is(n)){const e=[];for(const t of n)if(t)try{t.dispose()}catch(i){e.push(i)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(n)?[]:n}else if(n)return n.dispose(),n}function Oo(...n){return Be(()=>ft(n))}function Be(n){return{dispose:Zr(()=>{n()})}}class X{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{ft(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?X.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}X.DISABLE_DISPOSED_WARNING=!1;class H{constructor(){this._store=new X,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}H.None=Object.freeze({dispose(){}});class Bi{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)===null||t===void 0||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e}}class IU{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class TU{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>t!==void 0,this.dispose=()=>{t&&(t(),t=void 0)},this}}class MU{constructor(e){this.object=e}dispose(){}}class US{constructor(){this._store=new Map,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{ft(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){var s;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||(s=this._store.get(e))===null||s===void 0||s.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;(t=this._store.get(e))===null||t===void 0||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}const AU=us.performance&&typeof us.performance.now=="function";class is{static create(e=!0){return new is(e)}constructor(e){this._highResolution=AU&&e,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?us.performance.now():Date.now()}}var me;(function(n){n.None=()=>H.None;function e(k,D){return c(k,()=>{},0,void 0,!0,void 0,D)}n.defer=e;function t(k){return(D,P=null,R)=>{let V=!1,U;return U=k(se=>{if(!V)return U?U.dispose():V=!0,D.call(P,se)},null,R),V&&U.dispose(),U}}n.once=t;function i(k,D,P){return h((R,V=null,U)=>k(se=>R.call(V,D(se)),null,U),P)}n.map=i;function s(k,D,P){return h((R,V=null,U)=>k(se=>{D(se),R.call(V,se)},null,U),P)}n.forEach=s;function o(k,D,P){return h((R,V=null,U)=>k(se=>D(se)&&R.call(V,se),null,U),P)}n.filter=o;function r(k){return k}n.signal=r;function a(...k){return(D,P=null,R)=>Oo(...k.map(V=>V(U=>D.call(P,U),null,R)))}n.any=a;function l(k,D,P,R){let V=P;return i(k,U=>(V=D(V,U),V),R)}n.reduce=l;function h(k,D){let P;const R={onWillAddFirstListener(){P=k(V.fire,V)},onDidRemoveLastListener(){P==null||P.dispose()}},V=new O(R);return D==null||D.add(V),V.event}function c(k,D,P=100,R=!1,V=!1,U,se){let ge,Oe,He,Re=0,Ee;const gt={leakWarningThreshold:U,onWillAddFirstListener(){ge=k(Ce=>{Re++,Oe=D(Oe,Ce),R&&!He&&(qe.fire(Oe),Oe=void 0),Ee=()=>{const be=Oe;Oe=void 0,He=void 0,(!R||Re>1)&&qe.fire(be),Re=0},typeof P=="number"?(clearTimeout(He),He=setTimeout(Ee,P)):He===void 0&&(He=0,queueMicrotask(Ee))})},onWillRemoveListener(){V&&Re>0&&(Ee==null||Ee())},onDidRemoveLastListener(){Ee=void 0,ge.dispose()}},qe=new O(gt);return se==null||se.add(qe),qe.event}n.debounce=c;function d(k,D=0,P){return n.debounce(k,(R,V)=>R?(R.push(V),R):[V],D,void 0,!0,void 0,P)}n.accumulate=d;function u(k,D=(R,V)=>R===V,P){let R=!0,V;return o(k,U=>{const se=R||!D(U,V);return R=!1,V=U,se},P)}n.latch=u;function g(k,D,P){return[n.filter(k,D,P),n.filter(k,R=>!D(R),P)]}n.split=g;function m(k,D=!1,P=[]){let R=P.slice(),V=k(ge=>{R?R.push(ge):se.fire(ge)});const U=()=>{R==null||R.forEach(ge=>se.fire(ge)),R=null},se=new O({onWillAddFirstListener(){V||(V=k(ge=>se.fire(ge)))},onDidAddFirstListener(){R&&(D?setTimeout(U):U())},onDidRemoveLastListener(){V&&V.dispose(),V=null}});return se.event}n.buffer=m;class f{constructor(D){this.event=D,this.disposables=new X}map(D){return new f(i(this.event,D,this.disposables))}forEach(D){return new f(s(this.event,D,this.disposables))}filter(D){return new f(o(this.event,D,this.disposables))}reduce(D,P){return new f(l(this.event,D,P,this.disposables))}latch(){return new f(u(this.event,void 0,this.disposables))}debounce(D,P=100,R=!1,V=!1,U){return new f(c(this.event,D,P,R,V,U,this.disposables))}on(D,P,R){return this.event(D,P,R)}once(D,P,R){return t(this.event)(D,P,R)}dispose(){this.disposables.dispose()}}function _(k){return new f(k)}n.chain=_;function b(k,D,P=R=>R){const R=(...ge)=>se.fire(P(...ge)),V=()=>k.on(D,R),U=()=>k.removeListener(D,R),se=new O({onWillAddFirstListener:V,onDidRemoveLastListener:U});return se.event}n.fromNodeEventEmitter=b;function v(k,D,P=R=>R){const R=(...ge)=>se.fire(P(...ge)),V=()=>k.addEventListener(D,R),U=()=>k.removeEventListener(D,R),se=new O({onWillAddFirstListener:V,onDidRemoveLastListener:U});return se.event}n.fromDOMEventEmitter=v;function C(k){return new Promise(D=>t(k)(D))}n.toPromise=C;function w(k,D){return D(void 0),k(P=>D(P))}n.runAndSubscribe=w;function S(k,D){let P=null;function R(U){P==null||P.dispose(),P=new X,D(U,P)}R(void 0);const V=k(U=>R(U));return Be(()=>{V.dispose(),P==null||P.dispose()})}n.runAndSubscribeWithStore=S;class T{constructor(D,P){this.obs=D,this._counter=0,this._hasChanged=!1;const R={onWillAddFirstListener:()=>{D.addObserver(this)},onDidRemoveLastListener:()=>{D.removeObserver(this)}};this.emitter=new O(R),P&&P.add(this.emitter)}beginUpdate(D){this._counter++}handleChange(D,P){this._hasChanged=!0}endUpdate(D){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function x(k,D){return new T(k,D).emitter.event}n.fromObservable=x})(me||(me={}));class Wu{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${Wu._idPool++}`,Wu.all.add(this)}start(e){this._stopWatch=new is(!0),this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}Wu.all=new Set,Wu._idPool=0;let RU=-1;class OU{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;(e=this._stacks)===null||e===void 0||e.clear()}check(e,t){const i=this.threshold;if(i<=0||t{const o=this._stacks.get(e.value)||0;this._stacks.set(e.value,o-1)}}}class KS{static create(){var e;return new KS((e=new Error().stack)!==null&&e!==void 0?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split(` +`+e.stack):e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const yA=new $H;function Fe(n){sr(n)||yA.onUnexpectedError(n)}function Ai(n){sr(n)||yA.onUnexpectedExternalError(n)}function SA(n){if(n instanceof Error){const{name:e,message:t}=n,i=n.stacktrace||n.stack;return{$isError:!0,name:e,message:t,stack:i,noTelemetry:Iu.isErrorNoTelemetry(n)}}return n}const d1="Canceled";function sr(n){return n instanceof Xl?!0:n instanceof Error&&n.name===d1&&n.message===d1}class Xl extends Error{constructor(){super(d1),this.name=this.message}}function GH(){const n=new Error(d1);return n.name=n.message,n}function Ns(n){return n?new Error(`Illegal argument: ${n}`):new Error("Illegal argument")}function DS(n){return n?new Error(`Illegal state: ${n}`):new Error("Illegal state")}class YH extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class Iu extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof Iu)return e;const t=new Iu;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class Ur extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,Ur.prototype);debugger}}function Kr(n){const e=this;let t=!1,i;return function(){return t||(t=!0,i=n.apply(e,arguments)),i}}function ES(n){return typeof n.dispose=="function"&&n.dispose.length===0}function pt(n){if(et.is(n)){const e=[];for(const t of n)if(t)try{t.dispose()}catch(i){e.push(i)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(n)?[]:n}else if(n)return n.dispose(),n}function No(...n){return Be(()=>pt(n))}function Be(n){return{dispose:Kr(()=>{n()})}}class X{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{pt(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?X.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}X.DISABLE_DISPOSED_WARNING=!1;class H{constructor(){this._store=new X,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}H.None=Object.freeze({dispose(){}});class Ri{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||((t=this._value)===null||t===void 0||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e}}class XH{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class ZH{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1}set(e){let t=e;return this.unset=()=>t=void 0,this.isset=()=>t!==void 0,this.dispose=()=>{t&&(t(),t=void 0)},this}}class QH{constructor(e){this.object=e}dispose(){}}class NS{constructor(){this._store=new Map,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{pt(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){var s;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),i||(s=this._store.get(e))===null||s===void 0||s.dispose(),this._store.set(e,t)}deleteAndDispose(e){var t;(t=this._store.get(e))===null||t===void 0||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}const JH=as.performance&&typeof as.performance.now=="function";class Zn{static create(e=!0){return new Zn(e)}constructor(e){this._highResolution=JH&&e,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?as.performance.now():Date.now()}}var me;(function(n){n.None=()=>H.None;function e(k,D){return c(k,()=>{},0,void 0,!0,void 0,D)}n.defer=e;function t(k){return(D,P=null,R)=>{let V=!1,U;return U=k(se=>{if(!V)return U?U.dispose():V=!0,D.call(P,se)},null,R),V&&U.dispose(),U}}n.once=t;function i(k,D,P){return h((R,V=null,U)=>k(se=>R.call(V,D(se)),null,U),P)}n.map=i;function s(k,D,P){return h((R,V=null,U)=>k(se=>{D(se),R.call(V,se)},null,U),P)}n.forEach=s;function o(k,D,P){return h((R,V=null,U)=>k(se=>D(se)&&R.call(V,se),null,U),P)}n.filter=o;function r(k){return k}n.signal=r;function a(...k){return(D,P=null,R)=>No(...k.map(V=>V(U=>D.call(P,U),null,R)))}n.any=a;function l(k,D,P,R){let V=P;return i(k,U=>(V=D(V,U),V),R)}n.reduce=l;function h(k,D){let P;const R={onWillAddFirstListener(){P=k(V.fire,V)},onDidRemoveLastListener(){P==null||P.dispose()}},V=new O(R);return D==null||D.add(V),V.event}function c(k,D,P=100,R=!1,V=!1,U,se){let ge,Oe,He,Re=0,Ee;const dt={leakWarningThreshold:U,onWillAddFirstListener(){ge=k(Ce=>{Re++,Oe=D(Oe,Ce),R&&!He&&(je.fire(Oe),Oe=void 0),Ee=()=>{const be=Oe;Oe=void 0,He=void 0,(!R||Re>1)&&je.fire(be),Re=0},typeof P=="number"?(clearTimeout(He),He=setTimeout(Ee,P)):He===void 0&&(He=0,queueMicrotask(Ee))})},onWillRemoveListener(){V&&Re>0&&(Ee==null||Ee())},onDidRemoveLastListener(){Ee=void 0,ge.dispose()}},je=new O(dt);return se==null||se.add(je),je.event}n.debounce=c;function d(k,D=0,P){return n.debounce(k,(R,V)=>R?(R.push(V),R):[V],D,void 0,!0,void 0,P)}n.accumulate=d;function u(k,D=(R,V)=>R===V,P){let R=!0,V;return o(k,U=>{const se=R||!D(U,V);return R=!1,V=U,se},P)}n.latch=u;function g(k,D,P){return[n.filter(k,D,P),n.filter(k,R=>!D(R),P)]}n.split=g;function m(k,D=!1,P=[]){let R=P.slice(),V=k(ge=>{R?R.push(ge):se.fire(ge)});const U=()=>{R==null||R.forEach(ge=>se.fire(ge)),R=null},se=new O({onWillAddFirstListener(){V||(V=k(ge=>se.fire(ge)))},onDidAddFirstListener(){R&&(D?setTimeout(U):U())},onDidRemoveLastListener(){V&&V.dispose(),V=null}});return se.event}n.buffer=m;class f{constructor(D){this.event=D,this.disposables=new X}map(D){return new f(i(this.event,D,this.disposables))}forEach(D){return new f(s(this.event,D,this.disposables))}filter(D){return new f(o(this.event,D,this.disposables))}reduce(D,P){return new f(l(this.event,D,P,this.disposables))}latch(){return new f(u(this.event,void 0,this.disposables))}debounce(D,P=100,R=!1,V=!1,U){return new f(c(this.event,D,P,R,V,U,this.disposables))}on(D,P,R){return this.event(D,P,R)}once(D,P,R){return t(this.event)(D,P,R)}dispose(){this.disposables.dispose()}}function _(k){return new f(k)}n.chain=_;function b(k,D,P=R=>R){const R=(...ge)=>se.fire(P(...ge)),V=()=>k.on(D,R),U=()=>k.removeListener(D,R),se=new O({onWillAddFirstListener:V,onDidRemoveLastListener:U});return se.event}n.fromNodeEventEmitter=b;function v(k,D,P=R=>R){const R=(...ge)=>se.fire(P(...ge)),V=()=>k.addEventListener(D,R),U=()=>k.removeEventListener(D,R),se=new O({onWillAddFirstListener:V,onDidRemoveLastListener:U});return se.event}n.fromDOMEventEmitter=v;function C(k){return new Promise(D=>t(k)(D))}n.toPromise=C;function w(k,D){return D(void 0),k(P=>D(P))}n.runAndSubscribe=w;function S(k,D){let P=null;function R(U){P==null||P.dispose(),P=new X,D(U,P)}R(void 0);const V=k(U=>R(U));return Be(()=>{V.dispose(),P==null||P.dispose()})}n.runAndSubscribeWithStore=S;class T{constructor(D,P){this.obs=D,this._counter=0,this._hasChanged=!1;const R={onWillAddFirstListener:()=>{D.addObserver(this)},onDidRemoveLastListener:()=>{D.removeObserver(this)}};this.emitter=new O(R),P&&P.add(this.emitter)}beginUpdate(D){this._counter++}handleChange(D,P){this._hasChanged=!0}endUpdate(D){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function x(k,D){return new T(k,D).emitter.event}n.fromObservable=x})(me||(me={}));class Tu{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${Tu._idPool++}`,Tu.all.add(this)}start(e){this._stopWatch=new Zn(!0),this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}Tu.all=new Set,Tu._idPool=0;let ez=-1;class tz{constructor(e,t=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=t,this._warnCountdown=0}dispose(){var e;(e=this._stacks)===null||e===void 0||e.clear()}check(e,t){const i=this.threshold;if(i<=0||t{const o=this._stacks.get(e.value)||0;this._stacks.set(e.value,o-1)}}}class IS{static create(){var e;return new IS((e=new Error().stack)!==null&&e!==void 0?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split(` `).slice(2).join(` -`))}}class PU{constructor(e,t,i){this.callback=e,this.callbackThis=t,this.stack=i,this.subscription=new TU}invoke(e){this.callback.call(this.callbackThis,e)}}let O=class{constructor(n){var e,t,i,s,o;this._disposed=!1,this._options=n,this._leakageMon=!((e=this._options)===null||e===void 0)&&e.leakWarningThreshold?new OU((i=(t=this._options)===null||t===void 0?void 0:t.leakWarningThreshold)!==null&&i!==void 0?i:RU):void 0,this._perfMon=!((s=this._options)===null||s===void 0)&&s._profName?new Wu(this._options._profName):void 0,this._deliveryQueue=(o=this._options)===null||o===void 0?void 0:o.deliveryQueue}dispose(){var n,e,t,i;this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),(n=this._deliveryQueue)===null||n===void 0||n.clear(this),(t=(e=this._options)===null||e===void 0?void 0:e.onDidRemoveLastListener)===null||t===void 0||t.call(e),(i=this._leakageMon)===null||i===void 0||i.dispose())}get event(){return this._event||(this._event=(n,e,t)=>{var i,s,o;if(this._listeners||(this._listeners=new dn),this._leakageMon&&this._listeners.size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),H.None;const r=this._listeners.isEmpty();r&&!((i=this._options)===null||i===void 0)&&i.onWillAddFirstListener&&this._options.onWillAddFirstListener(this);let a,l;this._leakageMon&&this._listeners.size>=Math.ceil(this._leakageMon.threshold*.2)&&(l=KS.create(),a=this._leakageMon.check(l,this._listeners.size+1));const h=new PU(n,e,l),c=this._listeners.push(h);r&&!((s=this._options)===null||s===void 0)&&s.onDidAddFirstListener&&this._options.onDidAddFirstListener(this),!((o=this._options)===null||o===void 0)&&o.onDidAddListener&&this._options.onDidAddListener(this,n,e);const d=h.subscription.set(()=>{var u,g;a==null||a(),this._disposed||((g=(u=this._options)===null||u===void 0?void 0:u.onWillRemoveListener)===null||g===void 0||g.call(u,this),c(),this._options&&this._options.onDidRemoveLastListener&&(this._listeners&&!this._listeners.isEmpty()||this._options.onDidRemoveLastListener(this)))});return t instanceof X?t.add(d):Array.isArray(t)&&t.push(d),d}),this._event}fire(n){var e,t,i;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new FU((e=this._options)===null||e===void 0?void 0:e.onListenerError));for(const s of this._listeners)this._deliveryQueue.push(this,s,n);(t=this._perfMon)===null||t===void 0||t.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),(i=this._perfMon)===null||i===void 0||i.stop()}}hasListeners(){return this._listeners?!this._listeners.isEmpty():!1}};class WA{constructor(e=Fe){this._onListenerError=e,this._queue=new dn}get size(){return this._queue.size}push(e,t,i){this._queue.push(new BU(e,t,i))}clear(e){const t=new dn;for(const i of this._queue)i.emitter!==e&&t.push(i);this._queue=t}deliver(){for(;this._queue.size>0;){const e=this._queue.shift();try{e.listener.invoke(e.event)}catch(t){this._onListenerError(t)}}}}class FU extends WA{clear(e){this._queue.clear()}}class BU{constructor(e,t,i){this.emitter=e,this.listener=t,this.event=i}}class Vu extends O{constructor(e){super(e),this._isPaused=0,this._eventQueue=new dn,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class VA extends Vu{constructor(e){var t;super(e),this._delay=(t=e.delay)!==null&&t!==void 0?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class WU extends O{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e==null?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(t=>super.fire(t)),this._queuedEvents=[]}))}}class VU{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new O({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};return this.events.push(t),this.hasListeners&&this.hook(t),Be(Zr(()=>{this.hasListeners&&this.unhook(t);const i=this.events.indexOf(t);this.events.splice(i,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(t=>this.emitter.fire(t))}unhook(e){e.listener&&e.listener.dispose(),e.listener=null}dispose(){this.emitter.dispose()}}class jS{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,s)=>e(o=>{const r=this.buffers[this.buffers.length-1];r?r.push(()=>t.call(i,o)):t.call(i,o)},void 0,s)}bufferEvents(e){const t=[];this.buffers.push(t);const i=e();return this.buffers.pop(),t.forEach(s=>s()),i}}class HA{constructor(){this.listening=!1,this.inputEvent=me.None,this.inputEventListener=H.None,this.emitter=new O({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}const zA=Object.freeze(function(n,e){const t=setTimeout(n.bind(e),0);return{dispose(){clearTimeout(t)}}});var Ye;(function(n){function e(t){return t===n.None||t===n.Cancelled||t instanceof k1?!0:!t||typeof t!="object"?!1:typeof t.isCancellationRequested=="boolean"&&typeof t.onCancellationRequested=="function"}n.isCancellationToken=e,n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:me.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:zA})})(Ye||(Ye={}));class k1{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?zA:(this._emitter||(this._emitter=new O),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}let en=class{constructor(n){this._token=void 0,this._parentListener=void 0,this._parentListener=n&&n.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new k1),this._token}cancel(){this._token?this._token instanceof k1&&this._token.cancel():this._token=Ye.Cancelled}dispose(n=!1){var e;n&&this.cancel(),(e=this._parentListener)===null||e===void 0||e.dispose(),this._token?this._token instanceof k1&&this._token.dispose():this._token=Ye.None}};class qS{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const x1=new qS,$S=new qS,GS=new qS,UA=new Array(230),HU=Object.create(null),zU=Object.create(null),YS=[];for(let n=0;n<=193;n++)YS[n]=-1;(function(){const n="",e=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",n,n],[0,1,1,"Hyper",0,n,0,n,n,n],[0,1,2,"Super",0,n,0,n,n,n],[0,1,3,"Fn",0,n,0,n,n,n],[0,1,4,"FnLock",0,n,0,n,n,n],[0,1,5,"Suspend",0,n,0,n,n,n],[0,1,6,"Resume",0,n,0,n,n,n],[0,1,7,"Turbo",0,n,0,n,n,n],[0,1,8,"Sleep",0,n,0,"VK_SLEEP",n,n],[0,1,9,"WakeUp",0,n,0,n,n,n],[31,0,10,"KeyA",31,"A",65,"VK_A",n,n],[32,0,11,"KeyB",32,"B",66,"VK_B",n,n],[33,0,12,"KeyC",33,"C",67,"VK_C",n,n],[34,0,13,"KeyD",34,"D",68,"VK_D",n,n],[35,0,14,"KeyE",35,"E",69,"VK_E",n,n],[36,0,15,"KeyF",36,"F",70,"VK_F",n,n],[37,0,16,"KeyG",37,"G",71,"VK_G",n,n],[38,0,17,"KeyH",38,"H",72,"VK_H",n,n],[39,0,18,"KeyI",39,"I",73,"VK_I",n,n],[40,0,19,"KeyJ",40,"J",74,"VK_J",n,n],[41,0,20,"KeyK",41,"K",75,"VK_K",n,n],[42,0,21,"KeyL",42,"L",76,"VK_L",n,n],[43,0,22,"KeyM",43,"M",77,"VK_M",n,n],[44,0,23,"KeyN",44,"N",78,"VK_N",n,n],[45,0,24,"KeyO",45,"O",79,"VK_O",n,n],[46,0,25,"KeyP",46,"P",80,"VK_P",n,n],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",n,n],[48,0,27,"KeyR",48,"R",82,"VK_R",n,n],[49,0,28,"KeyS",49,"S",83,"VK_S",n,n],[50,0,29,"KeyT",50,"T",84,"VK_T",n,n],[51,0,30,"KeyU",51,"U",85,"VK_U",n,n],[52,0,31,"KeyV",52,"V",86,"VK_V",n,n],[53,0,32,"KeyW",53,"W",87,"VK_W",n,n],[54,0,33,"KeyX",54,"X",88,"VK_X",n,n],[55,0,34,"KeyY",55,"Y",89,"VK_Y",n,n],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",n,n],[22,0,36,"Digit1",22,"1",49,"VK_1",n,n],[23,0,37,"Digit2",23,"2",50,"VK_2",n,n],[24,0,38,"Digit3",24,"3",51,"VK_3",n,n],[25,0,39,"Digit4",25,"4",52,"VK_4",n,n],[26,0,40,"Digit5",26,"5",53,"VK_5",n,n],[27,0,41,"Digit6",27,"6",54,"VK_6",n,n],[28,0,42,"Digit7",28,"7",55,"VK_7",n,n],[29,0,43,"Digit8",29,"8",56,"VK_8",n,n],[30,0,44,"Digit9",30,"9",57,"VK_9",n,n],[21,0,45,"Digit0",21,"0",48,"VK_0",n,n],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",n,n],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",n,n],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",n,n],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",n,n],[10,1,50,"Space",10,"Space",32,"VK_SPACE",n,n],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,n,0,n,n,n],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",n,n],[59,1,64,"F1",59,"F1",112,"VK_F1",n,n],[60,1,65,"F2",60,"F2",113,"VK_F2",n,n],[61,1,66,"F3",61,"F3",114,"VK_F3",n,n],[62,1,67,"F4",62,"F4",115,"VK_F4",n,n],[63,1,68,"F5",63,"F5",116,"VK_F5",n,n],[64,1,69,"F6",64,"F6",117,"VK_F6",n,n],[65,1,70,"F7",65,"F7",118,"VK_F7",n,n],[66,1,71,"F8",66,"F8",119,"VK_F8",n,n],[67,1,72,"F9",67,"F9",120,"VK_F9",n,n],[68,1,73,"F10",68,"F10",121,"VK_F10",n,n],[69,1,74,"F11",69,"F11",122,"VK_F11",n,n],[70,1,75,"F12",70,"F12",123,"VK_F12",n,n],[0,1,76,"PrintScreen",0,n,0,n,n,n],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",n,n],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",n,n],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",n,n],[14,1,80,"Home",14,"Home",36,"VK_HOME",n,n],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",n,n],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",n,n],[13,1,83,"End",13,"End",35,"VK_END",n,n],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",n,n],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",n],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",n],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",n],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",n],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",n,n],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",n,n],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",n,n],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",n,n],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",n,n],[3,1,94,"NumpadEnter",3,n,0,n,n,n],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",n,n],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",n,n],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",n,n],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",n,n],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",n,n],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",n,n],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",n,n],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",n,n],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",n,n],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",n,n],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",n,n],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",n,n],[58,1,107,"ContextMenu",58,"ContextMenu",93,n,n,n],[0,1,108,"Power",0,n,0,n,n,n],[0,1,109,"NumpadEqual",0,n,0,n,n,n],[71,1,110,"F13",71,"F13",124,"VK_F13",n,n],[72,1,111,"F14",72,"F14",125,"VK_F14",n,n],[73,1,112,"F15",73,"F15",126,"VK_F15",n,n],[74,1,113,"F16",74,"F16",127,"VK_F16",n,n],[75,1,114,"F17",75,"F17",128,"VK_F17",n,n],[76,1,115,"F18",76,"F18",129,"VK_F18",n,n],[77,1,116,"F19",77,"F19",130,"VK_F19",n,n],[0,1,117,"F20",0,n,0,"VK_F20",n,n],[0,1,118,"F21",0,n,0,"VK_F21",n,n],[0,1,119,"F22",0,n,0,"VK_F22",n,n],[0,1,120,"F23",0,n,0,"VK_F23",n,n],[0,1,121,"F24",0,n,0,"VK_F24",n,n],[0,1,122,"Open",0,n,0,n,n,n],[0,1,123,"Help",0,n,0,n,n,n],[0,1,124,"Select",0,n,0,n,n,n],[0,1,125,"Again",0,n,0,n,n,n],[0,1,126,"Undo",0,n,0,n,n,n],[0,1,127,"Cut",0,n,0,n,n,n],[0,1,128,"Copy",0,n,0,n,n,n],[0,1,129,"Paste",0,n,0,n,n,n],[0,1,130,"Find",0,n,0,n,n,n],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",n,n],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",n,n],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",n,n],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",n,n],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",n,n],[0,1,136,"KanaMode",0,n,0,n,n,n],[0,0,137,"IntlYen",0,n,0,n,n,n],[0,1,138,"Convert",0,n,0,n,n,n],[0,1,139,"NonConvert",0,n,0,n,n,n],[0,1,140,"Lang1",0,n,0,n,n,n],[0,1,141,"Lang2",0,n,0,n,n,n],[0,1,142,"Lang3",0,n,0,n,n,n],[0,1,143,"Lang4",0,n,0,n,n,n],[0,1,144,"Lang5",0,n,0,n,n,n],[0,1,145,"Abort",0,n,0,n,n,n],[0,1,146,"Props",0,n,0,n,n,n],[0,1,147,"NumpadParenLeft",0,n,0,n,n,n],[0,1,148,"NumpadParenRight",0,n,0,n,n,n],[0,1,149,"NumpadBackspace",0,n,0,n,n,n],[0,1,150,"NumpadMemoryStore",0,n,0,n,n,n],[0,1,151,"NumpadMemoryRecall",0,n,0,n,n,n],[0,1,152,"NumpadMemoryClear",0,n,0,n,n,n],[0,1,153,"NumpadMemoryAdd",0,n,0,n,n,n],[0,1,154,"NumpadMemorySubtract",0,n,0,n,n,n],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",n,n],[0,1,156,"NumpadClearEntry",0,n,0,n,n,n],[5,1,0,n,5,"Ctrl",17,"VK_CONTROL",n,n],[4,1,0,n,4,"Shift",16,"VK_SHIFT",n,n],[6,1,0,n,6,"Alt",18,"VK_MENU",n,n],[57,1,0,n,57,"Meta",91,"VK_COMMAND",n,n],[5,1,157,"ControlLeft",5,n,0,"VK_LCONTROL",n,n],[4,1,158,"ShiftLeft",4,n,0,"VK_LSHIFT",n,n],[6,1,159,"AltLeft",6,n,0,"VK_LMENU",n,n],[57,1,160,"MetaLeft",57,n,0,"VK_LWIN",n,n],[5,1,161,"ControlRight",5,n,0,"VK_RCONTROL",n,n],[4,1,162,"ShiftRight",4,n,0,"VK_RSHIFT",n,n],[6,1,163,"AltRight",6,n,0,"VK_RMENU",n,n],[57,1,164,"MetaRight",57,n,0,"VK_RWIN",n,n],[0,1,165,"BrightnessUp",0,n,0,n,n,n],[0,1,166,"BrightnessDown",0,n,0,n,n,n],[0,1,167,"MediaPlay",0,n,0,n,n,n],[0,1,168,"MediaRecord",0,n,0,n,n,n],[0,1,169,"MediaFastForward",0,n,0,n,n,n],[0,1,170,"MediaRewind",0,n,0,n,n,n],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",n,n],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",n,n],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",n,n],[0,1,174,"Eject",0,n,0,n,n,n],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",n,n],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",n,n],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",n,n],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",n,n],[0,1,179,"LaunchApp1",0,n,0,"VK_MEDIA_LAUNCH_APP1",n,n],[0,1,180,"SelectTask",0,n,0,n,n,n],[0,1,181,"LaunchScreenSaver",0,n,0,n,n,n],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",n,n],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",n,n],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",n,n],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",n,n],[0,1,186,"BrowserStop",0,n,0,"VK_BROWSER_STOP",n,n],[0,1,187,"BrowserRefresh",0,n,0,"VK_BROWSER_REFRESH",n,n],[0,1,188,"BrowserFavorites",0,n,0,"VK_BROWSER_FAVORITES",n,n],[0,1,189,"ZoomToggle",0,n,0,n,n,n],[0,1,190,"MailReply",0,n,0,n,n,n],[0,1,191,"MailForward",0,n,0,n,n,n],[0,1,192,"MailSend",0,n,0,n,n,n],[109,1,0,n,109,"KeyInComposition",229,n,n,n],[111,1,0,n,111,"ABNT_C2",194,"VK_ABNT_C2",n,n],[91,1,0,n,91,"OEM_8",223,"VK_OEM_8",n,n],[0,1,0,n,0,n,0,"VK_KANA",n,n],[0,1,0,n,0,n,0,"VK_HANGUL",n,n],[0,1,0,n,0,n,0,"VK_JUNJA",n,n],[0,1,0,n,0,n,0,"VK_FINAL",n,n],[0,1,0,n,0,n,0,"VK_HANJA",n,n],[0,1,0,n,0,n,0,"VK_KANJI",n,n],[0,1,0,n,0,n,0,"VK_CONVERT",n,n],[0,1,0,n,0,n,0,"VK_NONCONVERT",n,n],[0,1,0,n,0,n,0,"VK_ACCEPT",n,n],[0,1,0,n,0,n,0,"VK_MODECHANGE",n,n],[0,1,0,n,0,n,0,"VK_SELECT",n,n],[0,1,0,n,0,n,0,"VK_PRINT",n,n],[0,1,0,n,0,n,0,"VK_EXECUTE",n,n],[0,1,0,n,0,n,0,"VK_SNAPSHOT",n,n],[0,1,0,n,0,n,0,"VK_HELP",n,n],[0,1,0,n,0,n,0,"VK_APPS",n,n],[0,1,0,n,0,n,0,"VK_PROCESSKEY",n,n],[0,1,0,n,0,n,0,"VK_PACKET",n,n],[0,1,0,n,0,n,0,"VK_DBE_SBCSCHAR",n,n],[0,1,0,n,0,n,0,"VK_DBE_DBCSCHAR",n,n],[0,1,0,n,0,n,0,"VK_ATTN",n,n],[0,1,0,n,0,n,0,"VK_CRSEL",n,n],[0,1,0,n,0,n,0,"VK_EXSEL",n,n],[0,1,0,n,0,n,0,"VK_EREOF",n,n],[0,1,0,n,0,n,0,"VK_PLAY",n,n],[0,1,0,n,0,n,0,"VK_ZOOM",n,n],[0,1,0,n,0,n,0,"VK_NONAME",n,n],[0,1,0,n,0,n,0,"VK_PA1",n,n],[0,1,0,n,0,n,0,"VK_OEM_CLEAR",n,n]],t=[],i=[];for(const s of e){const[o,r,a,l,h,c,d,u,g,m]=s;if(i[a]||(i[a]=!0,HU[l]=a,zU[l.toLowerCase()]=a,r&&(YS[a]=h)),!t[h]){if(t[h]=!0,!c)throw new Error(`String representation missing for key code ${h} around scan code ${l}`);x1.define(h,c),$S.define(h,g||c),GS.define(h,m||g||c)}d&&(UA[d]=h)}})();var Za;(function(n){function e(a){return x1.keyCodeToStr(a)}n.toString=e;function t(a){return x1.strToKeyCode(a)}n.fromString=t;function i(a){return $S.keyCodeToStr(a)}n.toUserSettingsUS=i;function s(a){return GS.keyCodeToStr(a)}n.toUserSettingsGeneral=s;function o(a){return $S.strToKeyCode(a)||GS.strToKeyCode(a)}n.fromUserSettings=o;function r(a){if(a>=93&&a<=108)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return x1.keyCodeToStr(a)}n.toElectronAccelerator=r})(Za||(Za={}));function Di(n,e){const t=(e&65535)<<16>>>0;return(n|t)>>>0}let Hu;if(typeof us.vscode<"u"&&typeof us.vscode.process<"u"){const n=us.vscode.process;Hu={get platform(){return n.platform},get arch(){return n.arch},get env(){return n.env},cwd(){return n.cwd()}}}else typeof process<"u"?Hu={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Hu={get platform(){return Zi?"win32":Ge?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const D1=Hu.cwd,UU=Hu.env,KU=Hu.platform,jU=65,qU=97,$U=90,GU=122,sh=46,Mn=47,Os=92,oh=58,YU=63;class KA extends Error{constructor(e,t,i){let s;typeof t=="string"&&t.indexOf("not ")===0?(s="must not be",t=t.replace(/^not /,"")):s="must be";const o=e.indexOf(".")!==-1?"property":"argument";let r=`The "${e}" ${o} ${s} of type ${t}`;r+=`. Received type ${typeof i}`,super(r),this.code="ERR_INVALID_ARG_TYPE"}}function XU(n,e){if(n===null||typeof n!="object")throw new KA(e,"Object",n)}function Wi(n,e){if(typeof n!="string")throw new KA(e,"string",n)}const rh=KU==="win32";function _t(n){return n===Mn||n===Os}function XS(n){return n===Mn}function ah(n){return n>=jU&&n<=$U||n>=qU&&n<=GU}function E1(n,e,t,i){let s="",o=0,r=-1,a=0,l=0;for(let h=0;h<=n.length;++h){if(h2){const c=s.lastIndexOf(t);c===-1?(s="",o=0):(s=s.slice(0,c),o=s.length-1-s.lastIndexOf(t)),r=h,a=0;continue}else if(s.length!==0){s="",o=0,r=h,a=0;continue}}e&&(s+=s.length>0?`${t}..`:"..",o=2)}else s.length>0?s+=`${t}${n.slice(r+1,h)}`:s=n.slice(r+1,h),o=h-r-1;r=h,a=0}else l===sh&&a!==-1?++a:a=-1}return s}function jA(n,e){XU(e,"pathObject");const t=e.dir||e.root,i=e.base||`${e.name||""}${e.ext||""}`;return t?t===e.root?`${t}${i}`:`${t}${n}${i}`:i}const fs={resolve(...n){let e="",t="",i=!1;for(let s=n.length-1;s>=-1;s--){let o;if(s>=0){if(o=n[s],Wi(o,"path"),o.length===0)continue}else e.length===0?o=D1():(o=UU[`=${e}`]||D1(),(o===void 0||o.slice(0,2).toLowerCase()!==e.toLowerCase()&&o.charCodeAt(2)===Os)&&(o=`${e}\\`));const r=o.length;let a=0,l="",h=!1;const c=o.charCodeAt(0);if(r===1)_t(c)&&(a=1,h=!0);else if(_t(c))if(h=!0,_t(o.charCodeAt(1))){let d=2,u=d;for(;d2&&_t(o.charCodeAt(2))&&(h=!0,a=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(i){if(e.length>0)break}else if(t=`${o.slice(a)}\\${t}`,i=h,h&&e.length>0)break}return t=E1(t,!i,"\\",_t),i?`${e}\\${t}`:`${e}${t}`||"."},normalize(n){Wi(n,"path");const e=n.length;if(e===0)return".";let t=0,i,s=!1;const o=n.charCodeAt(0);if(e===1)return XS(o)?"\\":n;if(_t(o))if(s=!0,_t(n.charCodeAt(1))){let a=2,l=a;for(;a2&&_t(n.charCodeAt(2))&&(s=!0,t=3));let r=t0&&_t(n.charCodeAt(e-1))&&(r+="\\"),i===void 0?s?`\\${r}`:r:s?`${i}\\${r}`:`${i}${r}`},isAbsolute(n){Wi(n,"path");const e=n.length;if(e===0)return!1;const t=n.charCodeAt(0);return _t(t)||e>2&&ah(t)&&n.charCodeAt(1)===oh&&_t(n.charCodeAt(2))},join(...n){if(n.length===0)return".";let e,t;for(let o=0;o0&&(e===void 0?e=t=r:e+=`\\${r}`)}if(e===void 0)return".";let i=!0,s=0;if(typeof t=="string"&&_t(t.charCodeAt(0))){++s;const o=t.length;o>1&&_t(t.charCodeAt(1))&&(++s,o>2&&(_t(t.charCodeAt(2))?++s:i=!1))}if(i){for(;s=2&&(e=`\\${e.slice(s)}`)}return fs.normalize(e)},relative(n,e){if(Wi(n,"from"),Wi(e,"to"),n===e)return"";const t=fs.resolve(n),i=fs.resolve(e);if(t===i||(n=t.toLowerCase(),e=i.toLowerCase(),n===e))return"";let s=0;for(;ss&&n.charCodeAt(o-1)===Os;)o--;const r=o-s;let a=0;for(;aa&&e.charCodeAt(l-1)===Os;)l--;const h=l-a,c=rc){if(e.charCodeAt(a+u)===Os)return i.slice(a+u+1);if(u===2)return i.slice(a+u)}r>c&&(n.charCodeAt(s+u)===Os?d=u:u===2&&(d=3)),d===-1&&(d=0)}let g="";for(u=s+d+1;u<=o;++u)(u===o||n.charCodeAt(u)===Os)&&(g+=g.length===0?"..":"\\..");return a+=d,g.length>0?`${g}${i.slice(a,l)}`:(i.charCodeAt(a)===Os&&++a,i.slice(a,l))},toNamespacedPath(n){if(typeof n!="string"||n.length===0)return n;const e=fs.resolve(n);if(e.length<=2)return n;if(e.charCodeAt(0)===Os){if(e.charCodeAt(1)===Os){const t=e.charCodeAt(2);if(t!==YU&&t!==sh)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(ah(e.charCodeAt(0))&&e.charCodeAt(1)===oh&&e.charCodeAt(2)===Os)return`\\\\?\\${e}`;return n},dirname(n){Wi(n,"path");const e=n.length;if(e===0)return".";let t=-1,i=0;const s=n.charCodeAt(0);if(e===1)return _t(s)?n:".";if(_t(s)){if(t=i=1,_t(n.charCodeAt(1))){let a=2,l=a;for(;a2&&_t(n.charCodeAt(2))?3:2,i=t);let o=-1,r=!0;for(let a=e-1;a>=i;--a)if(_t(n.charCodeAt(a))){if(!r){o=a;break}}else r=!1;if(o===-1){if(t===-1)return".";o=t}return n.slice(0,o)},basename(n,e){e!==void 0&&Wi(e,"ext"),Wi(n,"path");let t=0,i=-1,s=!0,o;if(n.length>=2&&ah(n.charCodeAt(0))&&n.charCodeAt(1)===oh&&(t=2),e!==void 0&&e.length>0&&e.length<=n.length){if(e===n)return"";let r=e.length-1,a=-1;for(o=n.length-1;o>=t;--o){const l=n.charCodeAt(o);if(_t(l)){if(!s){t=o+1;break}}else a===-1&&(s=!1,a=o+1),r>=0&&(l===e.charCodeAt(r)?--r===-1&&(i=o):(r=-1,i=a))}return t===i?i=a:i===-1&&(i=n.length),n.slice(t,i)}for(o=n.length-1;o>=t;--o)if(_t(n.charCodeAt(o))){if(!s){t=o+1;break}}else i===-1&&(s=!1,i=o+1);return i===-1?"":n.slice(t,i)},extname(n){Wi(n,"path");let e=0,t=-1,i=0,s=-1,o=!0,r=0;n.length>=2&&n.charCodeAt(1)===oh&&ah(n.charCodeAt(0))&&(e=i=2);for(let a=n.length-1;a>=e;--a){const l=n.charCodeAt(a);if(_t(l)){if(!o){i=a+1;break}continue}s===-1&&(o=!1,s=a+1),l===sh?t===-1?t=a:r!==1&&(r=1):t!==-1&&(r=-1)}return t===-1||s===-1||r===0||r===1&&t===s-1&&t===i+1?"":n.slice(t,s)},format:jA.bind(null,"\\"),parse(n){Wi(n,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return e;const t=n.length;let i=0,s=n.charCodeAt(0);if(t===1)return _t(s)?(e.root=e.dir=n,e):(e.base=e.name=n,e);if(_t(s)){if(i=1,_t(n.charCodeAt(1))){let d=2,u=d;for(;d0&&(e.root=n.slice(0,i));let o=-1,r=i,a=-1,l=!0,h=n.length-1,c=0;for(;h>=i;--h){if(s=n.charCodeAt(h),_t(s)){if(!l){r=h+1;break}continue}a===-1&&(l=!1,a=h+1),s===sh?o===-1?o=h:c!==1&&(c=1):o!==-1&&(c=-1)}return a!==-1&&(o===-1||c===0||c===1&&o===a-1&&o===r+1?e.base=e.name=n.slice(r,a):(e.name=n.slice(r,o),e.base=n.slice(r,a),e.ext=n.slice(o,a))),r>0&&r!==i?e.dir=n.slice(0,r-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},ZU=(()=>{if(rh){const n=/\\/g;return()=>{const e=D1().replace(n,"/");return e.slice(e.indexOf("/"))}}return()=>D1()})(),Si={resolve(...n){let e="",t=!1;for(let i=n.length-1;i>=-1&&!t;i--){const s=i>=0?n[i]:ZU();Wi(s,"path"),s.length!==0&&(e=`${s}/${e}`,t=s.charCodeAt(0)===Mn)}return e=E1(e,!t,"/",XS),t?`/${e}`:e.length>0?e:"."},normalize(n){if(Wi(n,"path"),n.length===0)return".";const e=n.charCodeAt(0)===Mn,t=n.charCodeAt(n.length-1)===Mn;return n=E1(n,!e,"/",XS),n.length===0?e?"/":t?"./":".":(t&&(n+="/"),e?`/${n}`:n)},isAbsolute(n){return Wi(n,"path"),n.length>0&&n.charCodeAt(0)===Mn},join(...n){if(n.length===0)return".";let e;for(let t=0;t0&&(e===void 0?e=i:e+=`/${i}`)}return e===void 0?".":Si.normalize(e)},relative(n,e){if(Wi(n,"from"),Wi(e,"to"),n===e||(n=Si.resolve(n),e=Si.resolve(e),n===e))return"";const t=1,i=n.length,s=i-t,o=1,r=e.length-o,a=sa){if(e.charCodeAt(o+h)===Mn)return e.slice(o+h+1);if(h===0)return e.slice(o+h)}else s>a&&(n.charCodeAt(t+h)===Mn?l=h:h===0&&(l=0));let c="";for(h=t+l+1;h<=i;++h)(h===i||n.charCodeAt(h)===Mn)&&(c+=c.length===0?"..":"/..");return`${c}${e.slice(o+l)}`},toNamespacedPath(n){return n},dirname(n){if(Wi(n,"path"),n.length===0)return".";const e=n.charCodeAt(0)===Mn;let t=-1,i=!0;for(let s=n.length-1;s>=1;--s)if(n.charCodeAt(s)===Mn){if(!i){t=s;break}}else i=!1;return t===-1?e?"/":".":e&&t===1?"//":n.slice(0,t)},basename(n,e){e!==void 0&&Wi(e,"ext"),Wi(n,"path");let t=0,i=-1,s=!0,o;if(e!==void 0&&e.length>0&&e.length<=n.length){if(e===n)return"";let r=e.length-1,a=-1;for(o=n.length-1;o>=0;--o){const l=n.charCodeAt(o);if(l===Mn){if(!s){t=o+1;break}}else a===-1&&(s=!1,a=o+1),r>=0&&(l===e.charCodeAt(r)?--r===-1&&(i=o):(r=-1,i=a))}return t===i?i=a:i===-1&&(i=n.length),n.slice(t,i)}for(o=n.length-1;o>=0;--o)if(n.charCodeAt(o)===Mn){if(!s){t=o+1;break}}else i===-1&&(s=!1,i=o+1);return i===-1?"":n.slice(t,i)},extname(n){Wi(n,"path");let e=-1,t=0,i=-1,s=!0,o=0;for(let r=n.length-1;r>=0;--r){const a=n.charCodeAt(r);if(a===Mn){if(!s){t=r+1;break}continue}i===-1&&(s=!1,i=r+1),a===sh?e===-1?e=r:o!==1&&(o=1):e!==-1&&(o=-1)}return e===-1||i===-1||o===0||o===1&&e===i-1&&e===t+1?"":n.slice(e,i)},format:jA.bind(null,"/"),parse(n){Wi(n,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return e;const t=n.charCodeAt(0)===Mn;let i;t?(e.root="/",i=1):i=0;let s=-1,o=0,r=-1,a=!0,l=n.length-1,h=0;for(;l>=i;--l){const c=n.charCodeAt(l);if(c===Mn){if(!a){o=l+1;break}continue}r===-1&&(a=!1,r=l+1),c===sh?s===-1?s=l:h!==1&&(h=1):s!==-1&&(h=-1)}if(r!==-1){const c=o===0&&t?1:o;s===-1||h===0||h===1&&s===r-1&&s===o+1?e.base=e.name=n.slice(c,r):(e.name=n.slice(c,s),e.base=n.slice(c,r),e.ext=n.slice(s,r))}return o>0?e.dir=n.slice(0,o-1):t&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};Si.win32=fs.win32=fs,Si.posix=fs.posix=Si;const qA=rh?fs.normalize:Si.normalize,QU=rh?fs.resolve:Si.resolve,JU=rh?fs.relative:Si.relative,$A=rh?fs.dirname:Si.dirname,lh=rh?fs.basename:Si.basename,eK=rh?fs.extname:Si.extname,dr=rh?fs.sep:Si.sep,tK=/^\w[\w\d+.-]*$/,iK=/^\//,nK=/^\/\//;function GA(n,e){if(!n.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${n.authority}", path: "${n.path}", query: "${n.query}", fragment: "${n.fragment}"}`);if(n.scheme&&!tK.test(n.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(n.path){if(n.authority){if(!iK.test(n.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(nK.test(n.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function sK(n,e){return!n&&!e?"file":n}function oK(n,e){switch(n){case"https":case"http":case"file":e?e[0]!==ur&&(e=ur+e):e=ur;break}return e}const di="",ur="/",rK=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let we=class bS{static isUri(e){return e instanceof bS?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}constructor(e,t,i,s,o,r=!1){typeof e=="object"?(this.scheme=e.scheme||di,this.authority=e.authority||di,this.path=e.path||di,this.query=e.query||di,this.fragment=e.fragment||di):(this.scheme=sK(e,r),this.authority=t||di,this.path=oK(this.scheme,i||di),this.query=s||di,this.fragment=o||di,GA(this,r))}get fsPath(){return N1(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:s,query:o,fragment:r}=e;return t===void 0?t=this.scheme:t===null&&(t=di),i===void 0?i=this.authority:i===null&&(i=di),s===void 0?s=this.path:s===null&&(s=di),o===void 0?o=this.query:o===null&&(o=di),r===void 0?r=this.fragment:r===null&&(r=di),t===this.scheme&&i===this.authority&&s===this.path&&o===this.query&&r===this.fragment?this:new zu(t,i,s,o,r)}static parse(e,t=!1){const i=rK.exec(e);return i?new zu(i[2]||di,I1(i[4]||di),I1(i[5]||di),I1(i[7]||di),I1(i[9]||di),t):new zu(di,di,di,di,di)}static file(e){let t=di;if(Zi&&(e=e.replace(/\\/g,ur)),e[0]===ur&&e[1]===ur){const i=e.indexOf(ur,2);i===-1?(t=e.substring(2),e=ur):(t=e.substring(2,i),e=e.substring(i)||ur)}return new zu("file",t,e,di,di)}static from(e){const t=new zu(e.scheme,e.authority,e.path,e.query,e.fragment);return GA(t,!0),t}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return Zi&&e.scheme==="file"?i=bS.file(fs.join(N1(e,!0),...t)).path:i=Si.join(e.path,...t),e.with({path:i})}toString(e=!1){return ZS(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof bS)return e;{const t=new zu(e);return t._formatted=e.external,t._fsPath=e._sep===YA?e.fsPath:null,t}}else return e}};const YA=Zi?1:void 0;let zu=class extends we{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=N1(this,!1)),this._fsPath}toString(n=!1){return n?ZS(this,!0):(this._formatted||(this._formatted=ZS(this,!1)),this._formatted)}toJSON(){const n={$mid:1};return this._fsPath&&(n.fsPath=this._fsPath,n._sep=YA),this._formatted&&(n.external=this._formatted),this.path&&(n.path=this.path),this.scheme&&(n.scheme=this.scheme),this.authority&&(n.authority=this.authority),this.query&&(n.query=this.query),this.fragment&&(n.fragment=this.fragment),n}};const XA={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function ZA(n,e,t){let i,s=-1;for(let o=0;o=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||r===45||r===46||r===95||r===126||e&&r===47||t&&r===91||t&&r===93||t&&r===58)s!==-1&&(i+=encodeURIComponent(n.substring(s,o)),s=-1),i!==void 0&&(i+=n.charAt(o));else{i===void 0&&(i=n.substr(0,o));const a=XA[r];a!==void 0?(s!==-1&&(i+=encodeURIComponent(n.substring(s,o)),s=-1),i+=a):s===-1&&(s=o)}}return s!==-1&&(i+=encodeURIComponent(n.substring(s))),i!==void 0?i:n}function aK(n){let e;for(let t=0;t1&&n.scheme==="file"?t=`//${n.authority}${n.path}`:n.path.charCodeAt(0)===47&&(n.path.charCodeAt(1)>=65&&n.path.charCodeAt(1)<=90||n.path.charCodeAt(1)>=97&&n.path.charCodeAt(1)<=122)&&n.path.charCodeAt(2)===58?e?t=n.path.substr(1):t=n.path[1].toLowerCase()+n.path.substr(2):t=n.path,Zi&&(t=t.replace(/\//g,"\\")),t}function ZS(n,e){const t=e?aK:ZA;let i="",{scheme:s,authority:o,path:r,query:a,fragment:l}=n;if(s&&(i+=s,i+=":"),(o||s==="file")&&(i+=ur,i+=ur),o){let h=o.indexOf("@");if(h!==-1){const c=o.substr(0,h);o=o.substr(h+1),h=c.lastIndexOf(":"),h===-1?i+=t(c,!1,!1):(i+=t(c.substr(0,h),!1,!1),i+=":",i+=t(c.substr(h+1),!1,!0)),i+="@"}o=o.toLowerCase(),h=o.lastIndexOf(":"),h===-1?i+=t(o,!1,!0):(i+=t(o.substr(0,h),!1,!0),i+=o.substr(h))}if(r){if(r.length>=3&&r.charCodeAt(0)===47&&r.charCodeAt(2)===58){const h=r.charCodeAt(1);h>=65&&h<=90&&(r=`/${String.fromCharCode(h+32)}:${r.substr(3)}`)}else if(r.length>=2&&r.charCodeAt(1)===58){const h=r.charCodeAt(0);h>=65&&h<=90&&(r=`${String.fromCharCode(h+32)}:${r.substr(2)}`)}i+=t(r,!0,!1)}return a&&(i+="?",i+=t(a,!1,!1)),l&&(i+="#",i+=e?l:ZA(l,!1,!1)),i}function QA(n){try{return decodeURIComponent(n)}catch{return n.length>3?n.substr(0,3)+QA(n.substr(3)):n}}const JA=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function I1(n){return n.match(JA)?n.replace(JA,e=>QA(e)):n}let W=class ku{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new ku(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return ku.equals(this,e)}static equals(e,t){return!e&&!t?!0:!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return ku.isBefore(this,e)}static isBefore(e,t){return e.lineNumberi||e===i&&t>s?(this.startLineNumber=i,this.startColumn=s,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=s)}isEmpty(){return hn.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return hn.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(e){return hn.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(e){return hn.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return hn.plusRange(this,e)}static plusRange(e,t){let i,s,o,r;return t.startLineNumbere.endLineNumber?(o=t.endLineNumber,r=t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,r=Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,r=e.endColumn),new hn(i,s,o,r)}intersectRanges(e){return hn.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,s=e.startColumn,o=e.endLineNumber,r=e.endColumn;const a=t.startLineNumber,l=t.startColumn,h=t.endLineNumber,c=t.endColumn;return ih?(o=h,r=c):o===h&&(r=Math.min(r,c)),i>o||i===o&&s>r?null:new hn(i,s,o,r)}equalsRange(e){return hn.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t?!0:!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return hn.getEndPosition(this)}static getEndPosition(e){return new W(e.endLineNumber,e.endColumn)}getStartPosition(){return hn.getStartPosition(this)}static getStartPosition(e){return new W(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new hn(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new hn(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return hn.collapseToStart(this)}static collapseToStart(e){return new hn(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return hn.collapseToEnd(this)}static collapseToEnd(e){return new hn(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new hn(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new hn(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new hn(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}},ue=class sr extends L{constructor(e,t,i,s){super(e,t,i,s),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=s}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return sr.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return this.getDirection()===0?new sr(this.startLineNumber,this.startColumn,e,t):new sr(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new W(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new W(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return this.getDirection()===0?new sr(e,t,this.endLineNumber,this.endColumn):new sr(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new sr(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return t===0?new sr(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new sr(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new sr(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,s=e.length;i{this._tokenizationSupports.get(n)===e&&(this._tokenizationSupports.delete(n),this.handleChange([n]))})}get(n){return this._tokenizationSupports.get(n)||null}registerFactory(n,e){var t;(t=this._factories.get(n))===null||t===void 0||t.dispose();const i=new hK(this,n,e);return this._factories.set(n,i),Be(()=>{const s=this._factories.get(n);!s||s!==i||(this._factories.delete(n),s.dispose())})}getOrCreate(n){return JS(this,void 0,void 0,function*(){const e=this.get(n);if(e)return e;const t=this._factories.get(n);return!t||t.isResolved?null:(yield t.resolve(),this.get(n))})}isResolved(n){if(this.get(n))return!0;const e=this._factories.get(n);return!!(!e||e.isResolved)}setColorMap(n){this._colorMap=n,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};class hK extends H{get isResolved(){return this._isResolved}constructor(e,t,i){super(),this._registry=e,this._languageId=t,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return JS(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return JS(this,void 0,void 0,function*(){const e=yield this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))})}}let wm=class{constructor(n,e,t){this.offset=n,this.type=e,this.language=t,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};class eL{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class T1{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}var ym;(function(n){const e=new Map;e.set(0,oe.symbolMethod),e.set(1,oe.symbolFunction),e.set(2,oe.symbolConstructor),e.set(3,oe.symbolField),e.set(4,oe.symbolVariable),e.set(5,oe.symbolClass),e.set(6,oe.symbolStruct),e.set(7,oe.symbolInterface),e.set(8,oe.symbolModule),e.set(9,oe.symbolProperty),e.set(10,oe.symbolEvent),e.set(11,oe.symbolOperator),e.set(12,oe.symbolUnit),e.set(13,oe.symbolValue),e.set(15,oe.symbolEnum),e.set(14,oe.symbolConstant),e.set(15,oe.symbolEnum),e.set(16,oe.symbolEnumMember),e.set(17,oe.symbolKeyword),e.set(27,oe.symbolSnippet),e.set(18,oe.symbolText),e.set(19,oe.symbolColor),e.set(20,oe.symbolFile),e.set(21,oe.symbolReference),e.set(22,oe.symbolCustomColor),e.set(23,oe.symbolFolder),e.set(24,oe.symbolTypeParameter),e.set(25,oe.account),e.set(26,oe.issues);function t(o){let r=e.get(o);return r||(console.info("No codicon found for CompletionItemKind "+o),r=oe.symbolProperty),r}n.toIcon=t;const i=new Map;i.set("method",0),i.set("function",1),i.set("constructor",2),i.set("field",3),i.set("variable",4),i.set("class",5),i.set("struct",6),i.set("interface",7),i.set("module",8),i.set("property",9),i.set("event",10),i.set("operator",11),i.set("unit",12),i.set("value",13),i.set("constant",14),i.set("enum",15),i.set("enum-member",16),i.set("enumMember",16),i.set("keyword",17),i.set("snippet",27),i.set("text",18),i.set("color",19),i.set("file",20),i.set("reference",21),i.set("customcolor",22),i.set("folder",23),i.set("type-parameter",24),i.set("typeParameter",24),i.set("account",25),i.set("issue",26);function s(o,r){let a=i.get(o);return typeof a>"u"&&!r&&(a=9),a}n.fromString=s})(ym||(ym={}));var Ps;(function(n){n[n.Automatic=0]="Automatic",n[n.Explicit=1]="Explicit"})(Ps||(Ps={}));var Qr;(function(n){n[n.Invoke=1]="Invoke",n[n.TriggerCharacter=2]="TriggerCharacter",n[n.ContentChange=3]="ContentChange"})(Qr||(Qr={}));var Sm;(function(n){n[n.Text=0]="Text",n[n.Read=1]="Read",n[n.Write=2]="Write"})(Sm||(Sm={}));function cK(n){return n&&we.isUri(n.uri)&&L.isIRange(n.range)&&(L.isIRange(n.originSelectionRange)||L.isIRange(n.targetSelectionRange))}var tL;(function(n){const e=new Map;e.set(0,oe.symbolFile),e.set(1,oe.symbolModule),e.set(2,oe.symbolNamespace),e.set(3,oe.symbolPackage),e.set(4,oe.symbolClass),e.set(5,oe.symbolMethod),e.set(6,oe.symbolProperty),e.set(7,oe.symbolField),e.set(8,oe.symbolConstructor),e.set(9,oe.symbolEnum),e.set(10,oe.symbolInterface),e.set(11,oe.symbolFunction),e.set(12,oe.symbolVariable),e.set(13,oe.symbolConstant),e.set(14,oe.symbolString),e.set(15,oe.symbolNumber),e.set(16,oe.symbolBoolean),e.set(17,oe.symbolArray),e.set(18,oe.symbolObject),e.set(19,oe.symbolKey),e.set(20,oe.symbolNull),e.set(21,oe.symbolEnumMember),e.set(22,oe.symbolStruct),e.set(23,oe.symbolEvent),e.set(24,oe.symbolOperator),e.set(25,oe.symbolTypeParameter);function t(i){let s=e.get(i);return s||(console.info("No codicon found for SymbolKind "+i),s=oe.symbolProperty),s}n.toIcon=t})(tL||(tL={}));let Po=class t1{static fromValue(e){switch(e){case"comment":return t1.Comment;case"imports":return t1.Imports;case"region":return t1.Region}return new t1(e)}constructor(e){this.value=e}};Po.Comment=new Po("comment"),Po.Imports=new Po("imports"),Po.Region=new Po("region");var iL;(function(n){function e(t){return!t||typeof t!="object"?!1:typeof t.id=="string"&&typeof t.title=="string"}n.is=e})(iL||(iL={}));var M1;(function(n){n[n.Type=1]="Type",n[n.Parameter=2]="Parameter"})(M1||(M1={}));class dK{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(e=>{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const Gt=new lK;var nL;(function(n){n[n.Unknown=0]="Unknown",n[n.Disabled=1]="Disabled",n[n.Enabled=2]="Enabled"})(nL||(nL={}));var sL;(function(n){n[n.Invoke=1]="Invoke",n[n.Auto=2]="Auto"})(sL||(sL={}));var oL;(function(n){n[n.None=0]="None",n[n.KeepWhitespace=1]="KeepWhitespace",n[n.InsertAsSnippet=4]="InsertAsSnippet"})(oL||(oL={}));var rL;(function(n){n[n.Method=0]="Method",n[n.Function=1]="Function",n[n.Constructor=2]="Constructor",n[n.Field=3]="Field",n[n.Variable=4]="Variable",n[n.Class=5]="Class",n[n.Struct=6]="Struct",n[n.Interface=7]="Interface",n[n.Module=8]="Module",n[n.Property=9]="Property",n[n.Event=10]="Event",n[n.Operator=11]="Operator",n[n.Unit=12]="Unit",n[n.Value=13]="Value",n[n.Constant=14]="Constant",n[n.Enum=15]="Enum",n[n.EnumMember=16]="EnumMember",n[n.Keyword=17]="Keyword",n[n.Text=18]="Text",n[n.Color=19]="Color",n[n.File=20]="File",n[n.Reference=21]="Reference",n[n.Customcolor=22]="Customcolor",n[n.Folder=23]="Folder",n[n.TypeParameter=24]="TypeParameter",n[n.User=25]="User",n[n.Issue=26]="Issue",n[n.Snippet=27]="Snippet"})(rL||(rL={}));var aL;(function(n){n[n.Deprecated=1]="Deprecated"})(aL||(aL={}));var lL;(function(n){n[n.Invoke=0]="Invoke",n[n.TriggerCharacter=1]="TriggerCharacter",n[n.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(lL||(lL={}));var hL;(function(n){n[n.EXACT=0]="EXACT",n[n.ABOVE=1]="ABOVE",n[n.BELOW=2]="BELOW"})(hL||(hL={}));var cL;(function(n){n[n.NotSet=0]="NotSet",n[n.ContentFlush=1]="ContentFlush",n[n.RecoverFromMarkers=2]="RecoverFromMarkers",n[n.Explicit=3]="Explicit",n[n.Paste=4]="Paste",n[n.Undo=5]="Undo",n[n.Redo=6]="Redo"})(cL||(cL={}));var dL;(function(n){n[n.LF=1]="LF",n[n.CRLF=2]="CRLF"})(dL||(dL={}));var uL;(function(n){n[n.Text=0]="Text",n[n.Read=1]="Read",n[n.Write=2]="Write"})(uL||(uL={}));var gL;(function(n){n[n.None=0]="None",n[n.Keep=1]="Keep",n[n.Brackets=2]="Brackets",n[n.Advanced=3]="Advanced",n[n.Full=4]="Full"})(gL||(gL={}));var pL;(function(n){n[n.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",n[n.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",n[n.accessibilitySupport=2]="accessibilitySupport",n[n.accessibilityPageSize=3]="accessibilityPageSize",n[n.ariaLabel=4]="ariaLabel",n[n.autoClosingBrackets=5]="autoClosingBrackets",n[n.screenReaderAnnounceInlineSuggestion=6]="screenReaderAnnounceInlineSuggestion",n[n.autoClosingDelete=7]="autoClosingDelete",n[n.autoClosingOvertype=8]="autoClosingOvertype",n[n.autoClosingQuotes=9]="autoClosingQuotes",n[n.autoIndent=10]="autoIndent",n[n.automaticLayout=11]="automaticLayout",n[n.autoSurround=12]="autoSurround",n[n.bracketPairColorization=13]="bracketPairColorization",n[n.guides=14]="guides",n[n.codeLens=15]="codeLens",n[n.codeLensFontFamily=16]="codeLensFontFamily",n[n.codeLensFontSize=17]="codeLensFontSize",n[n.colorDecorators=18]="colorDecorators",n[n.colorDecoratorsLimit=19]="colorDecoratorsLimit",n[n.columnSelection=20]="columnSelection",n[n.comments=21]="comments",n[n.contextmenu=22]="contextmenu",n[n.copyWithSyntaxHighlighting=23]="copyWithSyntaxHighlighting",n[n.cursorBlinking=24]="cursorBlinking",n[n.cursorSmoothCaretAnimation=25]="cursorSmoothCaretAnimation",n[n.cursorStyle=26]="cursorStyle",n[n.cursorSurroundingLines=27]="cursorSurroundingLines",n[n.cursorSurroundingLinesStyle=28]="cursorSurroundingLinesStyle",n[n.cursorWidth=29]="cursorWidth",n[n.disableLayerHinting=30]="disableLayerHinting",n[n.disableMonospaceOptimizations=31]="disableMonospaceOptimizations",n[n.domReadOnly=32]="domReadOnly",n[n.dragAndDrop=33]="dragAndDrop",n[n.dropIntoEditor=34]="dropIntoEditor",n[n.emptySelectionClipboard=35]="emptySelectionClipboard",n[n.experimentalWhitespaceRendering=36]="experimentalWhitespaceRendering",n[n.extraEditorClassName=37]="extraEditorClassName",n[n.fastScrollSensitivity=38]="fastScrollSensitivity",n[n.find=39]="find",n[n.fixedOverflowWidgets=40]="fixedOverflowWidgets",n[n.folding=41]="folding",n[n.foldingStrategy=42]="foldingStrategy",n[n.foldingHighlight=43]="foldingHighlight",n[n.foldingImportsByDefault=44]="foldingImportsByDefault",n[n.foldingMaximumRegions=45]="foldingMaximumRegions",n[n.unfoldOnClickAfterEndOfLine=46]="unfoldOnClickAfterEndOfLine",n[n.fontFamily=47]="fontFamily",n[n.fontInfo=48]="fontInfo",n[n.fontLigatures=49]="fontLigatures",n[n.fontSize=50]="fontSize",n[n.fontWeight=51]="fontWeight",n[n.fontVariations=52]="fontVariations",n[n.formatOnPaste=53]="formatOnPaste",n[n.formatOnType=54]="formatOnType",n[n.glyphMargin=55]="glyphMargin",n[n.gotoLocation=56]="gotoLocation",n[n.hideCursorInOverviewRuler=57]="hideCursorInOverviewRuler",n[n.hover=58]="hover",n[n.inDiffEditor=59]="inDiffEditor",n[n.inlineSuggest=60]="inlineSuggest",n[n.letterSpacing=61]="letterSpacing",n[n.lightbulb=62]="lightbulb",n[n.lineDecorationsWidth=63]="lineDecorationsWidth",n[n.lineHeight=64]="lineHeight",n[n.lineNumbers=65]="lineNumbers",n[n.lineNumbersMinChars=66]="lineNumbersMinChars",n[n.linkedEditing=67]="linkedEditing",n[n.links=68]="links",n[n.matchBrackets=69]="matchBrackets",n[n.minimap=70]="minimap",n[n.mouseStyle=71]="mouseStyle",n[n.mouseWheelScrollSensitivity=72]="mouseWheelScrollSensitivity",n[n.mouseWheelZoom=73]="mouseWheelZoom",n[n.multiCursorMergeOverlapping=74]="multiCursorMergeOverlapping",n[n.multiCursorModifier=75]="multiCursorModifier",n[n.multiCursorPaste=76]="multiCursorPaste",n[n.multiCursorLimit=77]="multiCursorLimit",n[n.occurrencesHighlight=78]="occurrencesHighlight",n[n.overviewRulerBorder=79]="overviewRulerBorder",n[n.overviewRulerLanes=80]="overviewRulerLanes",n[n.padding=81]="padding",n[n.parameterHints=82]="parameterHints",n[n.peekWidgetDefaultFocus=83]="peekWidgetDefaultFocus",n[n.definitionLinkOpensInPeek=84]="definitionLinkOpensInPeek",n[n.quickSuggestions=85]="quickSuggestions",n[n.quickSuggestionsDelay=86]="quickSuggestionsDelay",n[n.readOnly=87]="readOnly",n[n.renameOnType=88]="renameOnType",n[n.renderControlCharacters=89]="renderControlCharacters",n[n.renderFinalNewline=90]="renderFinalNewline",n[n.renderLineHighlight=91]="renderLineHighlight",n[n.renderLineHighlightOnlyWhenFocus=92]="renderLineHighlightOnlyWhenFocus",n[n.renderValidationDecorations=93]="renderValidationDecorations",n[n.renderWhitespace=94]="renderWhitespace",n[n.revealHorizontalRightPadding=95]="revealHorizontalRightPadding",n[n.roundedSelection=96]="roundedSelection",n[n.rulers=97]="rulers",n[n.scrollbar=98]="scrollbar",n[n.scrollBeyondLastColumn=99]="scrollBeyondLastColumn",n[n.scrollBeyondLastLine=100]="scrollBeyondLastLine",n[n.scrollPredominantAxis=101]="scrollPredominantAxis",n[n.selectionClipboard=102]="selectionClipboard",n[n.selectionHighlight=103]="selectionHighlight",n[n.selectOnLineNumbers=104]="selectOnLineNumbers",n[n.showFoldingControls=105]="showFoldingControls",n[n.showUnused=106]="showUnused",n[n.snippetSuggestions=107]="snippetSuggestions",n[n.smartSelect=108]="smartSelect",n[n.smoothScrolling=109]="smoothScrolling",n[n.stickyScroll=110]="stickyScroll",n[n.stickyTabStops=111]="stickyTabStops",n[n.stopRenderingLineAfter=112]="stopRenderingLineAfter",n[n.suggest=113]="suggest",n[n.suggestFontSize=114]="suggestFontSize",n[n.suggestLineHeight=115]="suggestLineHeight",n[n.suggestOnTriggerCharacters=116]="suggestOnTriggerCharacters",n[n.suggestSelection=117]="suggestSelection",n[n.tabCompletion=118]="tabCompletion",n[n.tabIndex=119]="tabIndex",n[n.unicodeHighlighting=120]="unicodeHighlighting",n[n.unusualLineTerminators=121]="unusualLineTerminators",n[n.useShadowDOM=122]="useShadowDOM",n[n.useTabStops=123]="useTabStops",n[n.wordBreak=124]="wordBreak",n[n.wordSeparators=125]="wordSeparators",n[n.wordWrap=126]="wordWrap",n[n.wordWrapBreakAfterCharacters=127]="wordWrapBreakAfterCharacters",n[n.wordWrapBreakBeforeCharacters=128]="wordWrapBreakBeforeCharacters",n[n.wordWrapColumn=129]="wordWrapColumn",n[n.wordWrapOverride1=130]="wordWrapOverride1",n[n.wordWrapOverride2=131]="wordWrapOverride2",n[n.wrappingIndent=132]="wrappingIndent",n[n.wrappingStrategy=133]="wrappingStrategy",n[n.showDeprecated=134]="showDeprecated",n[n.inlayHints=135]="inlayHints",n[n.editorClassName=136]="editorClassName",n[n.pixelRatio=137]="pixelRatio",n[n.tabFocusMode=138]="tabFocusMode",n[n.layoutInfo=139]="layoutInfo",n[n.wrappingInfo=140]="wrappingInfo"})(pL||(pL={}));var mL;(function(n){n[n.TextDefined=0]="TextDefined",n[n.LF=1]="LF",n[n.CRLF=2]="CRLF"})(mL||(mL={}));var fL;(function(n){n[n.LF=0]="LF",n[n.CRLF=1]="CRLF"})(fL||(fL={}));var _L;(function(n){n[n.None=0]="None",n[n.Indent=1]="Indent",n[n.IndentOutdent=2]="IndentOutdent",n[n.Outdent=3]="Outdent"})(_L||(_L={}));var vL;(function(n){n[n.Both=0]="Both",n[n.Right=1]="Right",n[n.Left=2]="Left",n[n.None=3]="None"})(vL||(vL={}));var bL;(function(n){n[n.Type=1]="Type",n[n.Parameter=2]="Parameter"})(bL||(bL={}));var CL;(function(n){n[n.Automatic=0]="Automatic",n[n.Explicit=1]="Explicit"})(CL||(CL={}));var wL;(function(n){n[n.DependsOnKbLayout=-1]="DependsOnKbLayout",n[n.Unknown=0]="Unknown",n[n.Backspace=1]="Backspace",n[n.Tab=2]="Tab",n[n.Enter=3]="Enter",n[n.Shift=4]="Shift",n[n.Ctrl=5]="Ctrl",n[n.Alt=6]="Alt",n[n.PauseBreak=7]="PauseBreak",n[n.CapsLock=8]="CapsLock",n[n.Escape=9]="Escape",n[n.Space=10]="Space",n[n.PageUp=11]="PageUp",n[n.PageDown=12]="PageDown",n[n.End=13]="End",n[n.Home=14]="Home",n[n.LeftArrow=15]="LeftArrow",n[n.UpArrow=16]="UpArrow",n[n.RightArrow=17]="RightArrow",n[n.DownArrow=18]="DownArrow",n[n.Insert=19]="Insert",n[n.Delete=20]="Delete",n[n.Digit0=21]="Digit0",n[n.Digit1=22]="Digit1",n[n.Digit2=23]="Digit2",n[n.Digit3=24]="Digit3",n[n.Digit4=25]="Digit4",n[n.Digit5=26]="Digit5",n[n.Digit6=27]="Digit6",n[n.Digit7=28]="Digit7",n[n.Digit8=29]="Digit8",n[n.Digit9=30]="Digit9",n[n.KeyA=31]="KeyA",n[n.KeyB=32]="KeyB",n[n.KeyC=33]="KeyC",n[n.KeyD=34]="KeyD",n[n.KeyE=35]="KeyE",n[n.KeyF=36]="KeyF",n[n.KeyG=37]="KeyG",n[n.KeyH=38]="KeyH",n[n.KeyI=39]="KeyI",n[n.KeyJ=40]="KeyJ",n[n.KeyK=41]="KeyK",n[n.KeyL=42]="KeyL",n[n.KeyM=43]="KeyM",n[n.KeyN=44]="KeyN",n[n.KeyO=45]="KeyO",n[n.KeyP=46]="KeyP",n[n.KeyQ=47]="KeyQ",n[n.KeyR=48]="KeyR",n[n.KeyS=49]="KeyS",n[n.KeyT=50]="KeyT",n[n.KeyU=51]="KeyU",n[n.KeyV=52]="KeyV",n[n.KeyW=53]="KeyW",n[n.KeyX=54]="KeyX",n[n.KeyY=55]="KeyY",n[n.KeyZ=56]="KeyZ",n[n.Meta=57]="Meta",n[n.ContextMenu=58]="ContextMenu",n[n.F1=59]="F1",n[n.F2=60]="F2",n[n.F3=61]="F3",n[n.F4=62]="F4",n[n.F5=63]="F5",n[n.F6=64]="F6",n[n.F7=65]="F7",n[n.F8=66]="F8",n[n.F9=67]="F9",n[n.F10=68]="F10",n[n.F11=69]="F11",n[n.F12=70]="F12",n[n.F13=71]="F13",n[n.F14=72]="F14",n[n.F15=73]="F15",n[n.F16=74]="F16",n[n.F17=75]="F17",n[n.F18=76]="F18",n[n.F19=77]="F19",n[n.NumLock=78]="NumLock",n[n.ScrollLock=79]="ScrollLock",n[n.Semicolon=80]="Semicolon",n[n.Equal=81]="Equal",n[n.Comma=82]="Comma",n[n.Minus=83]="Minus",n[n.Period=84]="Period",n[n.Slash=85]="Slash",n[n.Backquote=86]="Backquote",n[n.BracketLeft=87]="BracketLeft",n[n.Backslash=88]="Backslash",n[n.BracketRight=89]="BracketRight",n[n.Quote=90]="Quote",n[n.OEM_8=91]="OEM_8",n[n.IntlBackslash=92]="IntlBackslash",n[n.Numpad0=93]="Numpad0",n[n.Numpad1=94]="Numpad1",n[n.Numpad2=95]="Numpad2",n[n.Numpad3=96]="Numpad3",n[n.Numpad4=97]="Numpad4",n[n.Numpad5=98]="Numpad5",n[n.Numpad6=99]="Numpad6",n[n.Numpad7=100]="Numpad7",n[n.Numpad8=101]="Numpad8",n[n.Numpad9=102]="Numpad9",n[n.NumpadMultiply=103]="NumpadMultiply",n[n.NumpadAdd=104]="NumpadAdd",n[n.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",n[n.NumpadSubtract=106]="NumpadSubtract",n[n.NumpadDecimal=107]="NumpadDecimal",n[n.NumpadDivide=108]="NumpadDivide",n[n.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",n[n.ABNT_C1=110]="ABNT_C1",n[n.ABNT_C2=111]="ABNT_C2",n[n.AudioVolumeMute=112]="AudioVolumeMute",n[n.AudioVolumeUp=113]="AudioVolumeUp",n[n.AudioVolumeDown=114]="AudioVolumeDown",n[n.BrowserSearch=115]="BrowserSearch",n[n.BrowserHome=116]="BrowserHome",n[n.BrowserBack=117]="BrowserBack",n[n.BrowserForward=118]="BrowserForward",n[n.MediaTrackNext=119]="MediaTrackNext",n[n.MediaTrackPrevious=120]="MediaTrackPrevious",n[n.MediaStop=121]="MediaStop",n[n.MediaPlayPause=122]="MediaPlayPause",n[n.LaunchMediaPlayer=123]="LaunchMediaPlayer",n[n.LaunchMail=124]="LaunchMail",n[n.LaunchApp2=125]="LaunchApp2",n[n.Clear=126]="Clear",n[n.MAX_VALUE=127]="MAX_VALUE"})(wL||(wL={}));var yL;(function(n){n[n.Hint=1]="Hint",n[n.Info=2]="Info",n[n.Warning=4]="Warning",n[n.Error=8]="Error"})(yL||(yL={}));var SL;(function(n){n[n.Unnecessary=1]="Unnecessary",n[n.Deprecated=2]="Deprecated"})(SL||(SL={}));var LL;(function(n){n[n.Inline=1]="Inline",n[n.Gutter=2]="Gutter"})(LL||(LL={}));var kL;(function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.TEXTAREA=1]="TEXTAREA",n[n.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",n[n.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",n[n.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",n[n.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",n[n.CONTENT_TEXT=6]="CONTENT_TEXT",n[n.CONTENT_EMPTY=7]="CONTENT_EMPTY",n[n.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",n[n.CONTENT_WIDGET=9]="CONTENT_WIDGET",n[n.OVERVIEW_RULER=10]="OVERVIEW_RULER",n[n.SCROLLBAR=11]="SCROLLBAR",n[n.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",n[n.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(kL||(kL={}));var xL;(function(n){n[n.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",n[n.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",n[n.TOP_CENTER=2]="TOP_CENTER"})(xL||(xL={}));var DL;(function(n){n[n.Left=1]="Left",n[n.Center=2]="Center",n[n.Right=4]="Right",n[n.Full=7]="Full"})(DL||(DL={}));var EL;(function(n){n[n.Left=0]="Left",n[n.Right=1]="Right",n[n.None=2]="None",n[n.LeftOfInjectedText=3]="LeftOfInjectedText",n[n.RightOfInjectedText=4]="RightOfInjectedText"})(EL||(EL={}));var NL;(function(n){n[n.Off=0]="Off",n[n.On=1]="On",n[n.Relative=2]="Relative",n[n.Interval=3]="Interval",n[n.Custom=4]="Custom"})(NL||(NL={}));var IL;(function(n){n[n.None=0]="None",n[n.Text=1]="Text",n[n.Blocks=2]="Blocks"})(IL||(IL={}));var TL;(function(n){n[n.Smooth=0]="Smooth",n[n.Immediate=1]="Immediate"})(TL||(TL={}));var ML;(function(n){n[n.Auto=1]="Auto",n[n.Hidden=2]="Hidden",n[n.Visible=3]="Visible"})(ML||(ML={}));var AL;(function(n){n[n.LTR=0]="LTR",n[n.RTL=1]="RTL"})(AL||(AL={}));var RL;(function(n){n[n.Invoke=1]="Invoke",n[n.TriggerCharacter=2]="TriggerCharacter",n[n.ContentChange=3]="ContentChange"})(RL||(RL={}));var OL;(function(n){n[n.File=0]="File",n[n.Module=1]="Module",n[n.Namespace=2]="Namespace",n[n.Package=3]="Package",n[n.Class=4]="Class",n[n.Method=5]="Method",n[n.Property=6]="Property",n[n.Field=7]="Field",n[n.Constructor=8]="Constructor",n[n.Enum=9]="Enum",n[n.Interface=10]="Interface",n[n.Function=11]="Function",n[n.Variable=12]="Variable",n[n.Constant=13]="Constant",n[n.String=14]="String",n[n.Number=15]="Number",n[n.Boolean=16]="Boolean",n[n.Array=17]="Array",n[n.Object=18]="Object",n[n.Key=19]="Key",n[n.Null=20]="Null",n[n.EnumMember=21]="EnumMember",n[n.Struct=22]="Struct",n[n.Event=23]="Event",n[n.Operator=24]="Operator",n[n.TypeParameter=25]="TypeParameter"})(OL||(OL={}));var PL;(function(n){n[n.Deprecated=1]="Deprecated"})(PL||(PL={}));var FL;(function(n){n[n.Hidden=0]="Hidden",n[n.Blink=1]="Blink",n[n.Smooth=2]="Smooth",n[n.Phase=3]="Phase",n[n.Expand=4]="Expand",n[n.Solid=5]="Solid"})(FL||(FL={}));var BL;(function(n){n[n.Line=1]="Line",n[n.Block=2]="Block",n[n.Underline=3]="Underline",n[n.LineThin=4]="LineThin",n[n.BlockOutline=5]="BlockOutline",n[n.UnderlineThin=6]="UnderlineThin"})(BL||(BL={}));var WL;(function(n){n[n.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",n[n.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",n[n.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",n[n.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(WL||(WL={}));var VL;(function(n){n[n.None=0]="None",n[n.Same=1]="Same",n[n.Indent=2]="Indent",n[n.DeepIndent=3]="DeepIndent"})(VL||(VL={}));let Lm=class{static chord(n,e){return Di(n,e)}};Lm.CtrlCmd=2048,Lm.Shift=1024,Lm.Alt=512,Lm.WinCtrl=256;function tR(){return{editor:void 0,languages:void 0,CancellationTokenSource:en,Emitter:O,KeyCode:wL,KeyMod:Lm,Position:W,Range:L,Selection:ue,SelectionDirection:AL,MarkerSeverity:yL,MarkerTag:SL,Uri:we,Token:wm}}class uK{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}class iR{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);const t=this.fn(e);return this._map.set(e,t),t}}class hh{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var nR;function sR(n){return!n||typeof n!="string"?!0:n.trim().length===0}const gK=/{(\d+)}/g;function oo(n,...e){return e.length===0?n:n.replace(gK,function(t,i){const s=parseInt(i,10);return isNaN(s)||s<0||s>=e.length?t:e[s]})}function A1(n){return n.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function Fs(n){return n.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function pK(n,e=" "){const t=km(n,e);return oR(t,e)}function km(n,e){if(!n||!e)return n;const t=e.length;if(t===0||n.length===0)return n;let i=0;for(;n.indexOf(e,i)===i;)i=i+t;return n.substring(i)}function oR(n,e){if(!n||!e)return n;const t=e.length,i=n.length;if(t===0||i===0)return n;let s=i,o=-1;for(;o=n.lastIndexOf(e,s-1),!(o===-1||o+t!==s);){if(o===0)return"";s=o}return n.substring(0,s)}function mK(n){return n.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function fK(n){return n.replace(/\*/g,"")}function rR(n,e,t={}){if(!n)throw new Error("Cannot create regex from empty string");e||(n=Fs(n)),t.wholeWord&&(/\B/.test(n.charAt(0))||(n="\\b"+n),/\B/.test(n.charAt(n.length-1))||(n=n+"\\b"));let i="";return t.global&&(i+="g"),t.matchCase||(i+="i"),t.multiline&&(i+="m"),t.unicode&&(i+="u"),new RegExp(n,i)}function _K(n){return n.source==="^"||n.source==="^$"||n.source==="$"||n.source==="^\\s*$"?!1:!!(n.exec("")&&n.lastIndex===0)}function HL(n){return(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")}function Jr(n){return n.split(/\r\n|\r|\n/)}function An(n){for(let e=0,t=n.length;e=0;t--){const i=n.charCodeAt(t);if(i!==32&&i!==9)return t}return-1}function xm(n,e){return ne?1:0}function zL(n,e,t=0,i=n.length,s=0,o=e.length){for(;th)return 1}const r=i-t,a=o-s;return ra?1:0}function UL(n,e){return Dm(n,e,0,n.length,0,e.length)}function Dm(n,e,t=0,i=n.length,s=0,o=e.length){for(;t=128||h>=128)return zL(n.toLowerCase(),e.toLowerCase(),t,i,s,o);ch(l)&&(l-=32),ch(h)&&(h-=32);const c=l-h;if(c!==0)return c}const r=i-t,a=o-s;return ra?1:0}function R1(n){return n>=48&&n<=57}function ch(n){return n>=97&&n<=122}function ea(n){return n>=65&&n<=90}function Uu(n,e){return n.length===e.length&&Dm(n,e)===0}function KL(n,e){const t=e.length;return e.length>n.length?!1:Dm(n,e,0,t)===0}function Nc(n,e){const t=Math.min(n.length,e.length);let i;for(i=0;i1){const i=n.charCodeAt(e-2);if(Ti(i))return jL(i,t)}return t}class qL{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=vK(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=O1(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class P1{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new qL(e,t)}nextGraphemeLength(){const e=uh.getInstance(),t=this._iterator,i=t.offset;let s=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const o=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(dR(s,r)){t.setOffset(o);break}s=r}return t.offset-i}prevGraphemeLength(){const e=uh.getInstance(),t=this._iterator,i=t.offset;let s=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const o=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(dR(r,s)){t.setOffset(o);break}s=r}return i-t.offset}eol(){return this._iterator.eol()}}function $L(n,e){return new P1(n,e).nextGraphemeLength()}function aR(n,e){return new P1(n,e).prevGraphemeLength()}function bK(n,e){e>0&&Ic(n.charCodeAt(e))&&e--;const t=e+$L(n,e);return[t-aR(n,t),t]}let GL;function CK(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function Ku(n){return GL||(GL=CK()),GL.test(n)}const wK=/^[\t\n\r\x20-\x7E]*$/;function Nm(n){return wK.test(n)}const lR=/[\u2028\u2029]/;function hR(n){return lR.test(n)}function dh(n){return n>=11904&&n<=55215||n>=63744&&n<=64255||n>=65281&&n<=65374}function YL(n){return n>=127462&&n<=127487||n===8986||n===8987||n===9200||n===9203||n>=9728&&n<=10175||n===11088||n===11093||n>=127744&&n<=128591||n>=128640&&n<=128764||n>=128992&&n<=129008||n>=129280&&n<=129535||n>=129648&&n<=129782}const yK=String.fromCharCode(65279);function XL(n){return!!(n&&n.length>0&&n.charCodeAt(0)===65279)}function SK(n,e=!1){return n?(e&&(n=n.replace(/\\./g,"")),n.toLowerCase()!==n):!1}function cR(n){return n=n%(2*26),n<26?String.fromCharCode(97+n):String.fromCharCode(65+n-26)}function dR(n,e){return n===0?e!==5&&e!==7:n===2&&e===3?!1:n===4||n===2||n===3||e===4||e===2||e===3?!0:!(n===8&&(e===8||e===9||e===11||e===12)||(n===11||n===9)&&(e===9||e===10)||(n===12||n===10)&&e===10||e===5||e===13||e===7||n===1||n===13&&e===14||n===6&&e===6)}class uh{static getInstance(){return uh._INSTANCE||(uh._INSTANCE=new uh),uh._INSTANCE}constructor(){this._data=LK()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let s=1;for(;s<=i;)if(et[3*s+1])s=2*s+1;else return t[3*s+2];return 0}}uh._INSTANCE=null;function LK(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function kK(n,e){if(n===0)return 0;const t=xK(n,e);if(t!==void 0)return t;const i=new qL(e,n);return i.prevCodePoint(),i.offset}function xK(n,e){const t=new qL(e,n);let i=t.prevCodePoint();for(;DK(i)||i===65039||i===8419;){if(t.offset===0)return;i=t.prevCodePoint()}if(!YL(i))return;let s=t.offset;return s>0&&t.prevCodePoint()===8205&&(s=t.offset),s}function DK(n){return 127995<=n&&n<=127999}const EK="\xA0";class Fo{static getInstance(e){return Fo.cache.get(Array.from(e))}static getLocales(){return Fo._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}nR=Fo,Fo.ambiguousCharacterData=new hh(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),Fo.cache=new uK(n=>{function e(h){const c=new Map;for(let d=0;d!h.startsWith("_")&&h in s);o.length===0&&(o=["_default"]);let r;for(const h of o){const c=e(s[h]);r=i(r,c)}const a=e(s._common),l=t(a,r);return new Fo(l)}),Fo._locales=new hh(()=>Object.keys(Fo.ambiguousCharacterData.value).filter(n=>!n.startsWith("_")));class ta{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(ta.getRawData())),this._data}static isInvisibleCharacter(e){return ta.getData().has(e)}static get codePoints(){return ta.getData()}}ta._data=void 0;class ZL{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}ZL.INSTANCE=new ZL;class NK extends H{constructor(){super(),this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var t;(t=this._mediaQueryList)===null||t===void 0||t.removeEventListener("change",this._listener),this._mediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class IK extends H{get value(){return this._value}constructor(){super(),this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const e=this._register(new NK);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}_getPixelRatio(){const e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/i}}class TK{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=new IK),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}function QL(n,e){typeof n=="string"&&(n=window.matchMedia(n)),n.addEventListener("change",e)}const ju=new TK;function uR(){return ZL.INSTANCE.getZoomFactor()}const qu=navigator.userAgent,ro=qu.indexOf("Firefox")>=0,gh=qu.indexOf("AppleWebKit")>=0,JL=qu.indexOf("Chrome")>=0,Qa=!JL&&qu.indexOf("Safari")>=0,ek=!JL&&!Qa&&gh,MK=qu.indexOf("Electron/")>=0,gR=qu.indexOf("Android")>=0;let F1=!1;if(window.matchMedia){const n=window.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),e=window.matchMedia("(display-mode: fullscreen)");F1=n.matches,QL(n,({matches:t})=>{F1&&e.matches||(F1=t)})}function tk(){return F1}const AK=Object.freeze(Object.defineProperty({__proto__:null,PixelRatio:ju,addMatchMediaChangeListener:QL,getZoomFactor:uR,isAndroid:gR,isChrome:JL,isElectron:MK,isFirefox:ro,isSafari:Qa,isStandalone:tk,isWebKit:gh,isWebkitWebView:ek},Symbol.toStringTag,{value:"Module"}));class pR{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const t=pr(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=pr(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=pr(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=pr(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=pr(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=pr(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=pr(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=pr(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const t=pr(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const t=pr(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=pr(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function pr(n){return typeof n=="number"?`${n}px`:n}function ht(n){return new pR(n)}function tn(n,e){n instanceof pR?(n.setFontFamily(e.getMassagedFontFamily()),n.setFontWeight(e.fontWeight),n.setFontSize(e.fontSize),n.setFontFeatureSettings(e.fontFeatureSettings),n.setFontVariationSettings(e.fontVariationSettings),n.setLineHeight(e.lineHeight),n.setLetterSpacing(e.letterSpacing)):(n.style.fontFamily=e.getMassagedFontFamily(),n.style.fontWeight=e.fontWeight,n.style.fontSize=e.fontSize+"px",n.style.fontFeatureSettings=e.fontFeatureSettings,n.style.fontVariationSettings=e.fontVariationSettings,n.style.lineHeight=e.lineHeight+"px",n.style.letterSpacing=e.letterSpacing+"px")}class RK{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class ik{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");tn(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");tn(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const s=document.createElement("div");tn(s,this._bareFontInfo),s.style.fontStyle="italic",e.appendChild(s);const o=[];for(const r of this._requests){let a;r.type===0&&(a=t),r.type===2&&(a=i),r.type===1&&(a=s),a.appendChild(document.createElement("br"));const l=document.createElement("span");ik._render(l,r),a.appendChild(l),o.push(l)}this._container=e,this._testElements=o}static _render(e,t){if(t.chr===" "){let i="\xA0";for(let s=0;s<8;s++)i+=i;e.innerText=i}else{let i=t.chr;for(let s=0;s<8;s++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;e{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const e=this._cache.getValues();let t=!1;for(const i of e)i.isTrusted||(t=!0,this._cache.remove(i));t&&this._onDidChange.fire()}readFontInfo(e){if(!this._cache.has(e)){let t=this._actualReadFontInfo(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new sk({pixelRatio:ju.value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}_createRequest(e,t,i,s){const o=new RK(e,t);return i.push(o),s==null||s.push(o),o}_actualReadFontInfo(e){const t=[],i=[],s=this._createRequest("n",0,t,i),o=this._createRequest("\uFF4D",0,t,null),r=this._createRequest(" ",0,t,i),a=this._createRequest("0",0,t,i),l=this._createRequest("1",0,t,i),h=this._createRequest("2",0,t,i),c=this._createRequest("3",0,t,i),d=this._createRequest("4",0,t,i),u=this._createRequest("5",0,t,i),g=this._createRequest("6",0,t,i),m=this._createRequest("7",0,t,i),f=this._createRequest("8",0,t,i),_=this._createRequest("9",0,t,i),b=this._createRequest("\u2192",0,t,i),v=this._createRequest("\uFFEB",0,t,null),C=this._createRequest("\xB7",0,t,i),w=this._createRequest(String.fromCharCode(11825),0,t,null),S="|/-_ilm%";for(let P=0,R=S.length;P.001){x=!1;break}}let D=!0;return x&&v.width!==k&&(D=!1),v.width>b.width&&(D=!1),new sk({pixelRatio:ju.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,fontVariationSettings:e.fontVariationSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:x,typicalHalfwidthCharacterWidth:s.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:D,spaceWidth:r.width,middotWidth:C.width,wsmiddotWidth:w.width,maxDigitWidth:T},!0)}}class mR{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}const ok=new BK;var mr;(function(n){n.serviceIds=new Map,n.DI_TARGET="$di$target",n.DI_DEPENDENCIES="$di$dependencies";function e(t){return t[n.DI_DEPENDENCIES]||[]}n.getServiceDependencies=e})(mr||(mr={}));const Te=Qe("instantiationService");function WK(n,e,t){e[mr.DI_TARGET]===e?e[mr.DI_DEPENDENCIES].push({id:n,index:t}):(e[mr.DI_DEPENDENCIES]=[{id:n,index:t}],e[mr.DI_TARGET]=e)}function Qe(n){if(mr.serviceIds.has(n))return mr.serviceIds.get(n);const e=function(t,i,s){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");WK(e,t,s)};return e.toString=()=>n,mr.serviceIds.set(n,e),e}const dt=Qe("codeEditorService");function Im(n,e){if(!n)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}function B1(n,e="Unreachable"){throw new Error(e)}function rk(n){if(!n()){debugger;n(),Fe(new Xr("Assertion Failed"))}}function fR(n,e){let t=0;for(;t\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw HS(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error(ak("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(ak("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(ak("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,i=this._input.substring(this._start,this._current),s={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(s)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),i=KM._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(VK);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(HK);return}const o=this._input.charCodeAt(e);if(t)t=!1;else if(o===47&&!i){e++;break}else o===91?i=!0:o===92?t=!0:o===93&&(i=!1);e++}for(;e=this._input.length}};Mc._regexFlags=new Set(["i","g","s","m","y","u"].map(n=>n.charCodeAt(0))),Mc._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);const yn=new Map;yn.set("false",!1),yn.set("true",!0),yn.set("isMac",Ge),yn.set("isLinux",cn),yn.set("isWindows",Zi),yn.set("isWeb",Jl),yn.set("isMacNative",Ge&&!Jl),yn.set("isEdge",Lz),yn.set("isFirefox",yz),yn.set("isChrome",fA),yn.set("isSafari",Sz);const zK=Object.prototype.hasOwnProperty,UK={regexParsingWithErrorRecovery:!0},KK=p("contextkey.parser.error.emptyString","Empty context key expression"),jK=p("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),qK=p("contextkey.parser.error.noInAfterNot","'in' after 'not'."),_R=p("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),$K=p("contextkey.parser.error.unexpectedToken","Unexpected token"),GK=p("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),YK=p("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),XK=p("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");let vR=class i1{constructor(e=UK){this._config=e,this._scanner=new Mc,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:KK,offset:0,lexeme:"",additionalInfo:jK});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const t=this._expr();if(!this._isAtEnd()){const i=this._peek(),s=i.type===17?GK:void 0;throw this._parsingErrors.push({message:$K,offset:i.offset,lexeme:Mc.getLexeme(i),additionalInfo:s}),i1._parseError}return t}catch(t){if(t!==i1._parseError)throw t;return}}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return e.length===1?e[0]:Z.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return e.length===1?e[0]:Z.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),Un.INSTANCE;case 12:return this._advance(),ns.INSTANCE;case 0:{this._advance();const t=this._expr();return this._consume(1,_R),t==null?void 0:t.negate()}case 17:return this._advance(),Rc.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),Z.true();case 12:return this._advance(),Z.false();case 0:{this._advance();const t=this._expr();return this._consume(1,_R),t}case 17:{const t=e.lexeme;if(this._advance(),this._matchOne(9)){const i=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),i.type!==10)throw this._errExpectedButGot("REGEX",i);const s=i.lexeme,o=s.lastIndexOf("/"),r=o===s.length-1?void 0:this._removeFlagsGY(s.substring(o+1));let a;try{a=new RegExp(s.substring(1,o),r)}catch{throw this._errExpectedButGot("REGEX",i)}return Am.create(t,a)}switch(i.type){case 10:case 19:{const s=[i.lexeme];this._advance();let o=this._peek(),r=0;for(let d=0;d=0){const l=s.slice(r+1,a),h=s[a+1]==="i"?"i":"";try{o=new RegExp(l,h)}catch{throw this._errExpectedButGot("REGEX",i)}}}if(o===null)throw this._errExpectedButGot("REGEX",i);return Am.create(t,o)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,qK);const i=this._value();return Z.notIn(t,i)}switch(this._peek().type){case 3:{this._advance();const i=this._value();if(this._previous().type===18)return Z.equals(t,i);switch(i){case"true":return Z.has(t);case"false":return Z.not(t);default:return Z.equals(t,i)}}case 4:{this._advance();const i=this._value();if(this._previous().type===18)return Z.notEquals(t,i);switch(i){case"true":return Z.not(t);case"false":return Z.has(t);default:return Z.notEquals(t,i)}}case 5:return this._advance(),q1.create(t,this._value());case 6:return this._advance(),$1.create(t,this._value());case 7:return this._advance(),K1.create(t,this._value());case 8:return this._advance(),j1.create(t,this._value());case 13:return this._advance(),Z.in(t,this._value());default:return Z.has(t)}}case 20:throw this._parsingErrors.push({message:YK,offset:e.offset,lexeme:"",additionalInfo:XK}),i1._parseError;default:throw this._errExpectedButGot(`true | false | KEY +`))}}class iz{constructor(e,t,i){this.callback=e,this.callbackThis=t,this.stack=i,this.subscription=new ZH}invoke(e){this.callback.call(this.callbackThis,e)}}let O=class{constructor(n){var e,t,i,s,o;this._disposed=!1,this._options=n,this._leakageMon=!((e=this._options)===null||e===void 0)&&e.leakWarningThreshold?new tz((i=(t=this._options)===null||t===void 0?void 0:t.leakWarningThreshold)!==null&&i!==void 0?i:ez):void 0,this._perfMon=!((s=this._options)===null||s===void 0)&&s._profName?new Tu(this._options._profName):void 0,this._deliveryQueue=(o=this._options)===null||o===void 0?void 0:o.deliveryQueue}dispose(){var n,e,t,i;this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),(n=this._deliveryQueue)===null||n===void 0||n.clear(this),(t=(e=this._options)===null||e===void 0?void 0:e.onDidRemoveLastListener)===null||t===void 0||t.call(e),(i=this._leakageMon)===null||i===void 0||i.dispose())}get event(){return this._event||(this._event=(n,e,t)=>{var i,s,o;if(this._listeners||(this._listeners=new an),this._leakageMon&&this._listeners.size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),H.None;const r=this._listeners.isEmpty();r&&!((i=this._options)===null||i===void 0)&&i.onWillAddFirstListener&&this._options.onWillAddFirstListener(this);let a,l;this._leakageMon&&this._listeners.size>=Math.ceil(this._leakageMon.threshold*.2)&&(l=IS.create(),a=this._leakageMon.check(l,this._listeners.size+1));const h=new iz(n,e,l),c=this._listeners.push(h);r&&!((s=this._options)===null||s===void 0)&&s.onDidAddFirstListener&&this._options.onDidAddFirstListener(this),!((o=this._options)===null||o===void 0)&&o.onDidAddListener&&this._options.onDidAddListener(this,n,e);const d=h.subscription.set(()=>{var u,g;a==null||a(),this._disposed||((g=(u=this._options)===null||u===void 0?void 0:u.onWillRemoveListener)===null||g===void 0||g.call(u,this),c(),this._options&&this._options.onDidRemoveLastListener&&(this._listeners&&!this._listeners.isEmpty()||this._options.onDidRemoveLastListener(this)))});return t instanceof X?t.add(d):Array.isArray(t)&&t.push(d),d}),this._event}fire(n){var e,t,i;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new nz((e=this._options)===null||e===void 0?void 0:e.onListenerError));for(const s of this._listeners)this._deliveryQueue.push(this,s,n);(t=this._perfMon)===null||t===void 0||t.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),(i=this._perfMon)===null||i===void 0||i.stop()}}hasListeners(){return this._listeners?!this._listeners.isEmpty():!1}};class LA{constructor(e=Fe){this._onListenerError=e,this._queue=new an}get size(){return this._queue.size}push(e,t,i){this._queue.push(new sz(e,t,i))}clear(e){const t=new an;for(const i of this._queue)i.emitter!==e&&t.push(i);this._queue=t}deliver(){for(;this._queue.size>0;){const e=this._queue.shift();try{e.listener.invoke(e.event)}catch(t){this._onListenerError(t)}}}}class nz extends LA{clear(e){this._queue.clear()}}class sz{constructor(e,t,i){this.emitter=e,this.listener=t,this.event=i}}class Mu extends O{constructor(e){super(e),this._isPaused=0,this._eventQueue=new an,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class kA extends Mu{constructor(e){var t;super(e),this._delay=(t=e.delay)!==null&&t!==void 0?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class oz extends O{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e==null?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(t=>super.fire(t)),this._queuedEvents=[]}))}}class rz{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new O({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};return this.events.push(t),this.hasListeners&&this.hook(t),Be(Kr(()=>{this.hasListeners&&this.unhook(t);const i=this.events.indexOf(t);this.events.splice(i,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(t=>this.emitter.fire(t))}unhook(e){e.listener&&e.listener.dispose(),e.listener=null}dispose(){this.emitter.dispose()}}class TS{constructor(){this.buffers=[]}wrapEvent(e){return(t,i,s)=>e(o=>{const r=this.buffers[this.buffers.length-1];r?r.push(()=>t.call(i,o)):t.call(i,o)},void 0,s)}bufferEvents(e){const t=[];this.buffers.push(t);const i=e();return this.buffers.pop(),t.forEach(s=>s()),i}}class xA{constructor(){this.listening=!1,this.inputEvent=me.None,this.inputEventListener=H.None,this.emitter=new O({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}const DA=Object.freeze(function(n,e){const t=setTimeout(n.bind(e),0);return{dispose(){clearTimeout(t)}}});var Ge;(function(n){function e(t){return t===n.None||t===n.Cancelled||t instanceof u1?!0:!t||typeof t!="object"?!1:typeof t.isCancellationRequested=="boolean"&&typeof t.onCancellationRequested=="function"}n.isCancellationToken=e,n.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:me.None}),n.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:DA})})(Ge||(Ge={}));class u1{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?DA:(this._emitter||(this._emitter=new O),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}let Xi=class{constructor(n){this._token=void 0,this._parentListener=void 0,this._parentListener=n&&n.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new u1),this._token}cancel(){this._token?this._token instanceof u1&&this._token.cancel():this._token=Ge.Cancelled}dispose(n=!1){var e;n&&this.cancel(),(e=this._parentListener)===null||e===void 0||e.dispose(),this._token?this._token instanceof u1&&this._token.dispose():this._token=Ge.None}};class MS{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const g1=new MS,AS=new MS,RS=new MS,EA=new Array(230),az=Object.create(null),lz=Object.create(null),OS=[];for(let n=0;n<=193;n++)OS[n]=-1;(function(){const n="",e=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",n,n],[0,1,1,"Hyper",0,n,0,n,n,n],[0,1,2,"Super",0,n,0,n,n,n],[0,1,3,"Fn",0,n,0,n,n,n],[0,1,4,"FnLock",0,n,0,n,n,n],[0,1,5,"Suspend",0,n,0,n,n,n],[0,1,6,"Resume",0,n,0,n,n,n],[0,1,7,"Turbo",0,n,0,n,n,n],[0,1,8,"Sleep",0,n,0,"VK_SLEEP",n,n],[0,1,9,"WakeUp",0,n,0,n,n,n],[31,0,10,"KeyA",31,"A",65,"VK_A",n,n],[32,0,11,"KeyB",32,"B",66,"VK_B",n,n],[33,0,12,"KeyC",33,"C",67,"VK_C",n,n],[34,0,13,"KeyD",34,"D",68,"VK_D",n,n],[35,0,14,"KeyE",35,"E",69,"VK_E",n,n],[36,0,15,"KeyF",36,"F",70,"VK_F",n,n],[37,0,16,"KeyG",37,"G",71,"VK_G",n,n],[38,0,17,"KeyH",38,"H",72,"VK_H",n,n],[39,0,18,"KeyI",39,"I",73,"VK_I",n,n],[40,0,19,"KeyJ",40,"J",74,"VK_J",n,n],[41,0,20,"KeyK",41,"K",75,"VK_K",n,n],[42,0,21,"KeyL",42,"L",76,"VK_L",n,n],[43,0,22,"KeyM",43,"M",77,"VK_M",n,n],[44,0,23,"KeyN",44,"N",78,"VK_N",n,n],[45,0,24,"KeyO",45,"O",79,"VK_O",n,n],[46,0,25,"KeyP",46,"P",80,"VK_P",n,n],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",n,n],[48,0,27,"KeyR",48,"R",82,"VK_R",n,n],[49,0,28,"KeyS",49,"S",83,"VK_S",n,n],[50,0,29,"KeyT",50,"T",84,"VK_T",n,n],[51,0,30,"KeyU",51,"U",85,"VK_U",n,n],[52,0,31,"KeyV",52,"V",86,"VK_V",n,n],[53,0,32,"KeyW",53,"W",87,"VK_W",n,n],[54,0,33,"KeyX",54,"X",88,"VK_X",n,n],[55,0,34,"KeyY",55,"Y",89,"VK_Y",n,n],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",n,n],[22,0,36,"Digit1",22,"1",49,"VK_1",n,n],[23,0,37,"Digit2",23,"2",50,"VK_2",n,n],[24,0,38,"Digit3",24,"3",51,"VK_3",n,n],[25,0,39,"Digit4",25,"4",52,"VK_4",n,n],[26,0,40,"Digit5",26,"5",53,"VK_5",n,n],[27,0,41,"Digit6",27,"6",54,"VK_6",n,n],[28,0,42,"Digit7",28,"7",55,"VK_7",n,n],[29,0,43,"Digit8",29,"8",56,"VK_8",n,n],[30,0,44,"Digit9",30,"9",57,"VK_9",n,n],[21,0,45,"Digit0",21,"0",48,"VK_0",n,n],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",n,n],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",n,n],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",n,n],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",n,n],[10,1,50,"Space",10,"Space",32,"VK_SPACE",n,n],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,n,0,n,n,n],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",n,n],[59,1,64,"F1",59,"F1",112,"VK_F1",n,n],[60,1,65,"F2",60,"F2",113,"VK_F2",n,n],[61,1,66,"F3",61,"F3",114,"VK_F3",n,n],[62,1,67,"F4",62,"F4",115,"VK_F4",n,n],[63,1,68,"F5",63,"F5",116,"VK_F5",n,n],[64,1,69,"F6",64,"F6",117,"VK_F6",n,n],[65,1,70,"F7",65,"F7",118,"VK_F7",n,n],[66,1,71,"F8",66,"F8",119,"VK_F8",n,n],[67,1,72,"F9",67,"F9",120,"VK_F9",n,n],[68,1,73,"F10",68,"F10",121,"VK_F10",n,n],[69,1,74,"F11",69,"F11",122,"VK_F11",n,n],[70,1,75,"F12",70,"F12",123,"VK_F12",n,n],[0,1,76,"PrintScreen",0,n,0,n,n,n],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",n,n],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",n,n],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",n,n],[14,1,80,"Home",14,"Home",36,"VK_HOME",n,n],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",n,n],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",n,n],[13,1,83,"End",13,"End",35,"VK_END",n,n],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",n,n],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",n],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",n],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",n],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",n],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",n,n],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",n,n],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",n,n],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",n,n],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",n,n],[3,1,94,"NumpadEnter",3,n,0,n,n,n],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",n,n],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",n,n],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",n,n],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",n,n],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",n,n],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",n,n],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",n,n],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",n,n],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",n,n],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",n,n],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",n,n],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",n,n],[58,1,107,"ContextMenu",58,"ContextMenu",93,n,n,n],[0,1,108,"Power",0,n,0,n,n,n],[0,1,109,"NumpadEqual",0,n,0,n,n,n],[71,1,110,"F13",71,"F13",124,"VK_F13",n,n],[72,1,111,"F14",72,"F14",125,"VK_F14",n,n],[73,1,112,"F15",73,"F15",126,"VK_F15",n,n],[74,1,113,"F16",74,"F16",127,"VK_F16",n,n],[75,1,114,"F17",75,"F17",128,"VK_F17",n,n],[76,1,115,"F18",76,"F18",129,"VK_F18",n,n],[77,1,116,"F19",77,"F19",130,"VK_F19",n,n],[0,1,117,"F20",0,n,0,"VK_F20",n,n],[0,1,118,"F21",0,n,0,"VK_F21",n,n],[0,1,119,"F22",0,n,0,"VK_F22",n,n],[0,1,120,"F23",0,n,0,"VK_F23",n,n],[0,1,121,"F24",0,n,0,"VK_F24",n,n],[0,1,122,"Open",0,n,0,n,n,n],[0,1,123,"Help",0,n,0,n,n,n],[0,1,124,"Select",0,n,0,n,n,n],[0,1,125,"Again",0,n,0,n,n,n],[0,1,126,"Undo",0,n,0,n,n,n],[0,1,127,"Cut",0,n,0,n,n,n],[0,1,128,"Copy",0,n,0,n,n,n],[0,1,129,"Paste",0,n,0,n,n,n],[0,1,130,"Find",0,n,0,n,n,n],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",n,n],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",n,n],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",n,n],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",n,n],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",n,n],[0,1,136,"KanaMode",0,n,0,n,n,n],[0,0,137,"IntlYen",0,n,0,n,n,n],[0,1,138,"Convert",0,n,0,n,n,n],[0,1,139,"NonConvert",0,n,0,n,n,n],[0,1,140,"Lang1",0,n,0,n,n,n],[0,1,141,"Lang2",0,n,0,n,n,n],[0,1,142,"Lang3",0,n,0,n,n,n],[0,1,143,"Lang4",0,n,0,n,n,n],[0,1,144,"Lang5",0,n,0,n,n,n],[0,1,145,"Abort",0,n,0,n,n,n],[0,1,146,"Props",0,n,0,n,n,n],[0,1,147,"NumpadParenLeft",0,n,0,n,n,n],[0,1,148,"NumpadParenRight",0,n,0,n,n,n],[0,1,149,"NumpadBackspace",0,n,0,n,n,n],[0,1,150,"NumpadMemoryStore",0,n,0,n,n,n],[0,1,151,"NumpadMemoryRecall",0,n,0,n,n,n],[0,1,152,"NumpadMemoryClear",0,n,0,n,n,n],[0,1,153,"NumpadMemoryAdd",0,n,0,n,n,n],[0,1,154,"NumpadMemorySubtract",0,n,0,n,n,n],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",n,n],[0,1,156,"NumpadClearEntry",0,n,0,n,n,n],[5,1,0,n,5,"Ctrl",17,"VK_CONTROL",n,n],[4,1,0,n,4,"Shift",16,"VK_SHIFT",n,n],[6,1,0,n,6,"Alt",18,"VK_MENU",n,n],[57,1,0,n,57,"Meta",91,"VK_COMMAND",n,n],[5,1,157,"ControlLeft",5,n,0,"VK_LCONTROL",n,n],[4,1,158,"ShiftLeft",4,n,0,"VK_LSHIFT",n,n],[6,1,159,"AltLeft",6,n,0,"VK_LMENU",n,n],[57,1,160,"MetaLeft",57,n,0,"VK_LWIN",n,n],[5,1,161,"ControlRight",5,n,0,"VK_RCONTROL",n,n],[4,1,162,"ShiftRight",4,n,0,"VK_RSHIFT",n,n],[6,1,163,"AltRight",6,n,0,"VK_RMENU",n,n],[57,1,164,"MetaRight",57,n,0,"VK_RWIN",n,n],[0,1,165,"BrightnessUp",0,n,0,n,n,n],[0,1,166,"BrightnessDown",0,n,0,n,n,n],[0,1,167,"MediaPlay",0,n,0,n,n,n],[0,1,168,"MediaRecord",0,n,0,n,n,n],[0,1,169,"MediaFastForward",0,n,0,n,n,n],[0,1,170,"MediaRewind",0,n,0,n,n,n],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",n,n],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",n,n],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",n,n],[0,1,174,"Eject",0,n,0,n,n,n],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",n,n],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",n,n],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",n,n],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",n,n],[0,1,179,"LaunchApp1",0,n,0,"VK_MEDIA_LAUNCH_APP1",n,n],[0,1,180,"SelectTask",0,n,0,n,n,n],[0,1,181,"LaunchScreenSaver",0,n,0,n,n,n],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",n,n],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",n,n],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",n,n],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",n,n],[0,1,186,"BrowserStop",0,n,0,"VK_BROWSER_STOP",n,n],[0,1,187,"BrowserRefresh",0,n,0,"VK_BROWSER_REFRESH",n,n],[0,1,188,"BrowserFavorites",0,n,0,"VK_BROWSER_FAVORITES",n,n],[0,1,189,"ZoomToggle",0,n,0,n,n,n],[0,1,190,"MailReply",0,n,0,n,n,n],[0,1,191,"MailForward",0,n,0,n,n,n],[0,1,192,"MailSend",0,n,0,n,n,n],[109,1,0,n,109,"KeyInComposition",229,n,n,n],[111,1,0,n,111,"ABNT_C2",194,"VK_ABNT_C2",n,n],[91,1,0,n,91,"OEM_8",223,"VK_OEM_8",n,n],[0,1,0,n,0,n,0,"VK_KANA",n,n],[0,1,0,n,0,n,0,"VK_HANGUL",n,n],[0,1,0,n,0,n,0,"VK_JUNJA",n,n],[0,1,0,n,0,n,0,"VK_FINAL",n,n],[0,1,0,n,0,n,0,"VK_HANJA",n,n],[0,1,0,n,0,n,0,"VK_KANJI",n,n],[0,1,0,n,0,n,0,"VK_CONVERT",n,n],[0,1,0,n,0,n,0,"VK_NONCONVERT",n,n],[0,1,0,n,0,n,0,"VK_ACCEPT",n,n],[0,1,0,n,0,n,0,"VK_MODECHANGE",n,n],[0,1,0,n,0,n,0,"VK_SELECT",n,n],[0,1,0,n,0,n,0,"VK_PRINT",n,n],[0,1,0,n,0,n,0,"VK_EXECUTE",n,n],[0,1,0,n,0,n,0,"VK_SNAPSHOT",n,n],[0,1,0,n,0,n,0,"VK_HELP",n,n],[0,1,0,n,0,n,0,"VK_APPS",n,n],[0,1,0,n,0,n,0,"VK_PROCESSKEY",n,n],[0,1,0,n,0,n,0,"VK_PACKET",n,n],[0,1,0,n,0,n,0,"VK_DBE_SBCSCHAR",n,n],[0,1,0,n,0,n,0,"VK_DBE_DBCSCHAR",n,n],[0,1,0,n,0,n,0,"VK_ATTN",n,n],[0,1,0,n,0,n,0,"VK_CRSEL",n,n],[0,1,0,n,0,n,0,"VK_EXSEL",n,n],[0,1,0,n,0,n,0,"VK_EREOF",n,n],[0,1,0,n,0,n,0,"VK_PLAY",n,n],[0,1,0,n,0,n,0,"VK_ZOOM",n,n],[0,1,0,n,0,n,0,"VK_NONAME",n,n],[0,1,0,n,0,n,0,"VK_PA1",n,n],[0,1,0,n,0,n,0,"VK_OEM_CLEAR",n,n]],t=[],i=[];for(const s of e){const[o,r,a,l,h,c,d,u,g,m]=s;if(i[a]||(i[a]=!0,az[l]=a,lz[l.toLowerCase()]=a,r&&(OS[a]=h)),!t[h]){if(t[h]=!0,!c)throw new Error(`String representation missing for key code ${h} around scan code ${l}`);g1.define(h,c),AS.define(h,g||c),RS.define(h,m||g||c)}d&&(EA[d]=h)}})();var Ua;(function(n){function e(a){return g1.keyCodeToStr(a)}n.toString=e;function t(a){return g1.strToKeyCode(a)}n.fromString=t;function i(a){return AS.keyCodeToStr(a)}n.toUserSettingsUS=i;function s(a){return RS.keyCodeToStr(a)}n.toUserSettingsGeneral=s;function o(a){return AS.strToKeyCode(a)||RS.strToKeyCode(a)}n.fromUserSettings=o;function r(a){if(a>=93&&a<=108)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return g1.keyCodeToStr(a)}n.toElectronAccelerator=r})(Ua||(Ua={}));function Li(n,e){const t=(e&65535)<<16>>>0;return(n|t)>>>0}let Au;if(typeof as.vscode<"u"&&typeof as.vscode.process<"u"){const n=as.vscode.process;Au={get platform(){return n.platform},get arch(){return n.arch},get env(){return n.env},cwd(){return n.cwd()}}}else typeof process<"u"?Au={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Au={get platform(){return $i?"win32":$e?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const p1=Au.cwd,hz=Au.env,cz=Au.platform,dz=65,uz=97,gz=90,pz=122,Zl=46,En=47,Is=92,Ql=58,mz=63;class NA extends Error{constructor(e,t,i){let s;typeof t=="string"&&t.indexOf("not ")===0?(s="must not be",t=t.replace(/^not /,"")):s="must be";const o=e.indexOf(".")!==-1?"property":"argument";let r=`The "${e}" ${o} ${s} of type ${t}`;r+=`. Received type ${typeof i}`,super(r),this.code="ERR_INVALID_ARG_TYPE"}}function fz(n,e){if(n===null||typeof n!="object")throw new NA(e,"Object",n)}function Oi(n,e){if(typeof n!="string")throw new NA(e,"string",n)}const Jl=cz==="win32";function mt(n){return n===En||n===Is}function PS(n){return n===En}function eh(n){return n>=dz&&n<=gz||n>=uz&&n<=pz}function m1(n,e,t,i){let s="",o=0,r=-1,a=0,l=0;for(let h=0;h<=n.length;++h){if(h2){const c=s.lastIndexOf(t);c===-1?(s="",o=0):(s=s.slice(0,c),o=s.length-1-s.lastIndexOf(t)),r=h,a=0;continue}else if(s.length!==0){s="",o=0,r=h,a=0;continue}}e&&(s+=s.length>0?`${t}..`:"..",o=2)}else s.length>0?s+=`${t}${n.slice(r+1,h)}`:s=n.slice(r+1,h),o=h-r-1;r=h,a=0}else l===Zl&&a!==-1?++a:a=-1}return s}function IA(n,e){fz(e,"pathObject");const t=e.dir||e.root,i=e.base||`${e.name||""}${e.ext||""}`;return t?t===e.root?`${t}${i}`:`${t}${n}${i}`:i}const ds={resolve(...n){let e="",t="",i=!1;for(let s=n.length-1;s>=-1;s--){let o;if(s>=0){if(o=n[s],Oi(o,"path"),o.length===0)continue}else e.length===0?o=p1():(o=hz[`=${e}`]||p1(),(o===void 0||o.slice(0,2).toLowerCase()!==e.toLowerCase()&&o.charCodeAt(2)===Is)&&(o=`${e}\\`));const r=o.length;let a=0,l="",h=!1;const c=o.charCodeAt(0);if(r===1)mt(c)&&(a=1,h=!0);else if(mt(c))if(h=!0,mt(o.charCodeAt(1))){let d=2,u=d;for(;d2&&mt(o.charCodeAt(2))&&(h=!0,a=3));if(l.length>0)if(e.length>0){if(l.toLowerCase()!==e.toLowerCase())continue}else e=l;if(i){if(e.length>0)break}else if(t=`${o.slice(a)}\\${t}`,i=h,h&&e.length>0)break}return t=m1(t,!i,"\\",mt),i?`${e}\\${t}`:`${e}${t}`||"."},normalize(n){Oi(n,"path");const e=n.length;if(e===0)return".";let t=0,i,s=!1;const o=n.charCodeAt(0);if(e===1)return PS(o)?"\\":n;if(mt(o))if(s=!0,mt(n.charCodeAt(1))){let a=2,l=a;for(;a2&&mt(n.charCodeAt(2))&&(s=!0,t=3));let r=t0&&mt(n.charCodeAt(e-1))&&(r+="\\"),i===void 0?s?`\\${r}`:r:s?`${i}\\${r}`:`${i}${r}`},isAbsolute(n){Oi(n,"path");const e=n.length;if(e===0)return!1;const t=n.charCodeAt(0);return mt(t)||e>2&&eh(t)&&n.charCodeAt(1)===Ql&&mt(n.charCodeAt(2))},join(...n){if(n.length===0)return".";let e,t;for(let o=0;o0&&(e===void 0?e=t=r:e+=`\\${r}`)}if(e===void 0)return".";let i=!0,s=0;if(typeof t=="string"&&mt(t.charCodeAt(0))){++s;const o=t.length;o>1&&mt(t.charCodeAt(1))&&(++s,o>2&&(mt(t.charCodeAt(2))?++s:i=!1))}if(i){for(;s=2&&(e=`\\${e.slice(s)}`)}return ds.normalize(e)},relative(n,e){if(Oi(n,"from"),Oi(e,"to"),n===e)return"";const t=ds.resolve(n),i=ds.resolve(e);if(t===i||(n=t.toLowerCase(),e=i.toLowerCase(),n===e))return"";let s=0;for(;ss&&n.charCodeAt(o-1)===Is;)o--;const r=o-s;let a=0;for(;aa&&e.charCodeAt(l-1)===Is;)l--;const h=l-a,c=rc){if(e.charCodeAt(a+u)===Is)return i.slice(a+u+1);if(u===2)return i.slice(a+u)}r>c&&(n.charCodeAt(s+u)===Is?d=u:u===2&&(d=3)),d===-1&&(d=0)}let g="";for(u=s+d+1;u<=o;++u)(u===o||n.charCodeAt(u)===Is)&&(g+=g.length===0?"..":"\\..");return a+=d,g.length>0?`${g}${i.slice(a,l)}`:(i.charCodeAt(a)===Is&&++a,i.slice(a,l))},toNamespacedPath(n){if(typeof n!="string"||n.length===0)return n;const e=ds.resolve(n);if(e.length<=2)return n;if(e.charCodeAt(0)===Is){if(e.charCodeAt(1)===Is){const t=e.charCodeAt(2);if(t!==mz&&t!==Zl)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(eh(e.charCodeAt(0))&&e.charCodeAt(1)===Ql&&e.charCodeAt(2)===Is)return`\\\\?\\${e}`;return n},dirname(n){Oi(n,"path");const e=n.length;if(e===0)return".";let t=-1,i=0;const s=n.charCodeAt(0);if(e===1)return mt(s)?n:".";if(mt(s)){if(t=i=1,mt(n.charCodeAt(1))){let a=2,l=a;for(;a2&&mt(n.charCodeAt(2))?3:2,i=t);let o=-1,r=!0;for(let a=e-1;a>=i;--a)if(mt(n.charCodeAt(a))){if(!r){o=a;break}}else r=!1;if(o===-1){if(t===-1)return".";o=t}return n.slice(0,o)},basename(n,e){e!==void 0&&Oi(e,"ext"),Oi(n,"path");let t=0,i=-1,s=!0,o;if(n.length>=2&&eh(n.charCodeAt(0))&&n.charCodeAt(1)===Ql&&(t=2),e!==void 0&&e.length>0&&e.length<=n.length){if(e===n)return"";let r=e.length-1,a=-1;for(o=n.length-1;o>=t;--o){const l=n.charCodeAt(o);if(mt(l)){if(!s){t=o+1;break}}else a===-1&&(s=!1,a=o+1),r>=0&&(l===e.charCodeAt(r)?--r===-1&&(i=o):(r=-1,i=a))}return t===i?i=a:i===-1&&(i=n.length),n.slice(t,i)}for(o=n.length-1;o>=t;--o)if(mt(n.charCodeAt(o))){if(!s){t=o+1;break}}else i===-1&&(s=!1,i=o+1);return i===-1?"":n.slice(t,i)},extname(n){Oi(n,"path");let e=0,t=-1,i=0,s=-1,o=!0,r=0;n.length>=2&&n.charCodeAt(1)===Ql&&eh(n.charCodeAt(0))&&(e=i=2);for(let a=n.length-1;a>=e;--a){const l=n.charCodeAt(a);if(mt(l)){if(!o){i=a+1;break}continue}s===-1&&(o=!1,s=a+1),l===Zl?t===-1?t=a:r!==1&&(r=1):t!==-1&&(r=-1)}return t===-1||s===-1||r===0||r===1&&t===s-1&&t===i+1?"":n.slice(t,s)},format:IA.bind(null,"\\"),parse(n){Oi(n,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return e;const t=n.length;let i=0,s=n.charCodeAt(0);if(t===1)return mt(s)?(e.root=e.dir=n,e):(e.base=e.name=n,e);if(mt(s)){if(i=1,mt(n.charCodeAt(1))){let d=2,u=d;for(;d0&&(e.root=n.slice(0,i));let o=-1,r=i,a=-1,l=!0,h=n.length-1,c=0;for(;h>=i;--h){if(s=n.charCodeAt(h),mt(s)){if(!l){r=h+1;break}continue}a===-1&&(l=!1,a=h+1),s===Zl?o===-1?o=h:c!==1&&(c=1):o!==-1&&(c=-1)}return a!==-1&&(o===-1||c===0||c===1&&o===a-1&&o===r+1?e.base=e.name=n.slice(r,a):(e.name=n.slice(r,o),e.base=n.slice(r,a),e.ext=n.slice(o,a))),r>0&&r!==i?e.dir=n.slice(0,r-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},_z=(()=>{if(Jl){const n=/\\/g;return()=>{const e=p1().replace(n,"/");return e.slice(e.indexOf("/"))}}return()=>p1()})(),wi={resolve(...n){let e="",t=!1;for(let i=n.length-1;i>=-1&&!t;i--){const s=i>=0?n[i]:_z();Oi(s,"path"),s.length!==0&&(e=`${s}/${e}`,t=s.charCodeAt(0)===En)}return e=m1(e,!t,"/",PS),t?`/${e}`:e.length>0?e:"."},normalize(n){if(Oi(n,"path"),n.length===0)return".";const e=n.charCodeAt(0)===En,t=n.charCodeAt(n.length-1)===En;return n=m1(n,!e,"/",PS),n.length===0?e?"/":t?"./":".":(t&&(n+="/"),e?`/${n}`:n)},isAbsolute(n){return Oi(n,"path"),n.length>0&&n.charCodeAt(0)===En},join(...n){if(n.length===0)return".";let e;for(let t=0;t0&&(e===void 0?e=i:e+=`/${i}`)}return e===void 0?".":wi.normalize(e)},relative(n,e){if(Oi(n,"from"),Oi(e,"to"),n===e||(n=wi.resolve(n),e=wi.resolve(e),n===e))return"";const t=1,i=n.length,s=i-t,o=1,r=e.length-o,a=sa){if(e.charCodeAt(o+h)===En)return e.slice(o+h+1);if(h===0)return e.slice(o+h)}else s>a&&(n.charCodeAt(t+h)===En?l=h:h===0&&(l=0));let c="";for(h=t+l+1;h<=i;++h)(h===i||n.charCodeAt(h)===En)&&(c+=c.length===0?"..":"/..");return`${c}${e.slice(o+l)}`},toNamespacedPath(n){return n},dirname(n){if(Oi(n,"path"),n.length===0)return".";const e=n.charCodeAt(0)===En;let t=-1,i=!0;for(let s=n.length-1;s>=1;--s)if(n.charCodeAt(s)===En){if(!i){t=s;break}}else i=!1;return t===-1?e?"/":".":e&&t===1?"//":n.slice(0,t)},basename(n,e){e!==void 0&&Oi(e,"ext"),Oi(n,"path");let t=0,i=-1,s=!0,o;if(e!==void 0&&e.length>0&&e.length<=n.length){if(e===n)return"";let r=e.length-1,a=-1;for(o=n.length-1;o>=0;--o){const l=n.charCodeAt(o);if(l===En){if(!s){t=o+1;break}}else a===-1&&(s=!1,a=o+1),r>=0&&(l===e.charCodeAt(r)?--r===-1&&(i=o):(r=-1,i=a))}return t===i?i=a:i===-1&&(i=n.length),n.slice(t,i)}for(o=n.length-1;o>=0;--o)if(n.charCodeAt(o)===En){if(!s){t=o+1;break}}else i===-1&&(s=!1,i=o+1);return i===-1?"":n.slice(t,i)},extname(n){Oi(n,"path");let e=-1,t=0,i=-1,s=!0,o=0;for(let r=n.length-1;r>=0;--r){const a=n.charCodeAt(r);if(a===En){if(!s){t=r+1;break}continue}i===-1&&(s=!1,i=r+1),a===Zl?e===-1?e=r:o!==1&&(o=1):e!==-1&&(o=-1)}return e===-1||i===-1||o===0||o===1&&e===i-1&&e===t+1?"":n.slice(e,i)},format:IA.bind(null,"/"),parse(n){Oi(n,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return e;const t=n.charCodeAt(0)===En;let i;t?(e.root="/",i=1):i=0;let s=-1,o=0,r=-1,a=!0,l=n.length-1,h=0;for(;l>=i;--l){const c=n.charCodeAt(l);if(c===En){if(!a){o=l+1;break}continue}r===-1&&(a=!1,r=l+1),c===Zl?s===-1?s=l:h!==1&&(h=1):s!==-1&&(h=-1)}if(r!==-1){const c=o===0&&t?1:o;s===-1||h===0||h===1&&s===r-1&&s===o+1?e.base=e.name=n.slice(c,r):(e.name=n.slice(c,s),e.base=n.slice(c,r),e.ext=n.slice(s,r))}return o>0?e.dir=n.slice(0,o-1):t&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};wi.win32=ds.win32=ds,wi.posix=ds.posix=wi;const TA=Jl?ds.normalize:wi.normalize,vz=Jl?ds.resolve:wi.resolve,bz=Jl?ds.relative:wi.relative,MA=Jl?ds.dirname:wi.dirname,th=Jl?ds.basename:wi.basename,Cz=Jl?ds.extname:wi.extname,or=Jl?ds.sep:wi.sep,wz=/^\w[\w\d+.-]*$/,yz=/^\//,Sz=/^\/\//;function AA(n,e){if(!n.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${n.authority}", path: "${n.path}", query: "${n.query}", fragment: "${n.fragment}"}`);if(n.scheme&&!wz.test(n.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(n.path){if(n.authority){if(!yz.test(n.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(Sz.test(n.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Lz(n,e){return!n&&!e?"file":n}function kz(n,e){switch(n){case"https":case"http":case"file":e?e[0]!==rr&&(e=rr+e):e=rr;break}return e}const hi="",rr="/",xz=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let we=class rS{static isUri(e){return e instanceof rS?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}constructor(e,t,i,s,o,r=!1){typeof e=="object"?(this.scheme=e.scheme||hi,this.authority=e.authority||hi,this.path=e.path||hi,this.query=e.query||hi,this.fragment=e.fragment||hi):(this.scheme=Lz(e,r),this.authority=t||hi,this.path=kz(this.scheme,i||hi),this.query=s||hi,this.fragment=o||hi,AA(this,r))}get fsPath(){return f1(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:i,path:s,query:o,fragment:r}=e;return t===void 0?t=this.scheme:t===null&&(t=hi),i===void 0?i=this.authority:i===null&&(i=hi),s===void 0?s=this.path:s===null&&(s=hi),o===void 0?o=this.query:o===null&&(o=hi),r===void 0?r=this.fragment:r===null&&(r=hi),t===this.scheme&&i===this.authority&&s===this.path&&o===this.query&&r===this.fragment?this:new Ru(t,i,s,o,r)}static parse(e,t=!1){const i=xz.exec(e);return i?new Ru(i[2]||hi,_1(i[4]||hi),_1(i[5]||hi),_1(i[7]||hi),_1(i[9]||hi),t):new Ru(hi,hi,hi,hi,hi)}static file(e){let t=hi;if($i&&(e=e.replace(/\\/g,rr)),e[0]===rr&&e[1]===rr){const i=e.indexOf(rr,2);i===-1?(t=e.substring(2),e=rr):(t=e.substring(2,i),e=e.substring(i)||rr)}return new Ru("file",t,e,hi,hi)}static from(e){const t=new Ru(e.scheme,e.authority,e.path,e.query,e.fragment);return AA(t,!0),t}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return $i&&e.scheme==="file"?i=rS.file(ds.join(f1(e,!0),...t)).path:i=wi.join(e.path,...t),e.with({path:i})}toString(e=!1){return FS(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof rS)return e;{const t=new Ru(e);return t._formatted=e.external,t._fsPath=e._sep===RA?e.fsPath:null,t}}else return e}};const RA=$i?1:void 0;let Ru=class extends we{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=f1(this,!1)),this._fsPath}toString(n=!1){return n?FS(this,!0):(this._formatted||(this._formatted=FS(this,!1)),this._formatted)}toJSON(){const n={$mid:1};return this._fsPath&&(n.fsPath=this._fsPath,n._sep=RA),this._formatted&&(n.external=this._formatted),this.path&&(n.path=this.path),this.scheme&&(n.scheme=this.scheme),this.authority&&(n.authority=this.authority),this.query&&(n.query=this.query),this.fragment&&(n.fragment=this.fragment),n}};const OA={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function PA(n,e,t){let i,s=-1;for(let o=0;o=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||r===45||r===46||r===95||r===126||e&&r===47||t&&r===91||t&&r===93||t&&r===58)s!==-1&&(i+=encodeURIComponent(n.substring(s,o)),s=-1),i!==void 0&&(i+=n.charAt(o));else{i===void 0&&(i=n.substr(0,o));const a=OA[r];a!==void 0?(s!==-1&&(i+=encodeURIComponent(n.substring(s,o)),s=-1),i+=a):s===-1&&(s=o)}}return s!==-1&&(i+=encodeURIComponent(n.substring(s))),i!==void 0?i:n}function Dz(n){let e;for(let t=0;t1&&n.scheme==="file"?t=`//${n.authority}${n.path}`:n.path.charCodeAt(0)===47&&(n.path.charCodeAt(1)>=65&&n.path.charCodeAt(1)<=90||n.path.charCodeAt(1)>=97&&n.path.charCodeAt(1)<=122)&&n.path.charCodeAt(2)===58?e?t=n.path.substr(1):t=n.path[1].toLowerCase()+n.path.substr(2):t=n.path,$i&&(t=t.replace(/\//g,"\\")),t}function FS(n,e){const t=e?Dz:PA;let i="",{scheme:s,authority:o,path:r,query:a,fragment:l}=n;if(s&&(i+=s,i+=":"),(o||s==="file")&&(i+=rr,i+=rr),o){let h=o.indexOf("@");if(h!==-1){const c=o.substr(0,h);o=o.substr(h+1),h=c.lastIndexOf(":"),h===-1?i+=t(c,!1,!1):(i+=t(c.substr(0,h),!1,!1),i+=":",i+=t(c.substr(h+1),!1,!0)),i+="@"}o=o.toLowerCase(),h=o.lastIndexOf(":"),h===-1?i+=t(o,!1,!0):(i+=t(o.substr(0,h),!1,!0),i+=o.substr(h))}if(r){if(r.length>=3&&r.charCodeAt(0)===47&&r.charCodeAt(2)===58){const h=r.charCodeAt(1);h>=65&&h<=90&&(r=`/${String.fromCharCode(h+32)}:${r.substr(3)}`)}else if(r.length>=2&&r.charCodeAt(1)===58){const h=r.charCodeAt(0);h>=65&&h<=90&&(r=`${String.fromCharCode(h+32)}:${r.substr(2)}`)}i+=t(r,!0,!1)}return a&&(i+="?",i+=t(a,!1,!1)),l&&(i+="#",i+=e?l:PA(l,!1,!1)),i}function FA(n){try{return decodeURIComponent(n)}catch{return n.length>3?n.substr(0,3)+FA(n.substr(3)):n}}const BA=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function _1(n){return n.match(BA)?n.replace(BA,e=>FA(e)):n}let W=class vu{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new vu(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return vu.equals(this,e)}static equals(e,t){return!e&&!t?!0:!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return vu.isBefore(this,e)}static isBefore(e,t){return e.lineNumberi||e===i&&t>s?(this.startLineNumber=i,this.startColumn=s,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=s)}isEmpty(){return on.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return on.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.columne.endColumn)}static strictContainsPosition(e,t){return!(t.lineNumbere.endLineNumber||t.lineNumber===e.startLineNumber&&t.column<=e.startColumn||t.lineNumber===e.endLineNumber&&t.column>=e.endColumn)}containsRange(e){return on.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)}strictContainsRange(e){return on.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber||t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn||t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return on.plusRange(this,e)}static plusRange(e,t){let i,s,o,r;return t.startLineNumbere.endLineNumber?(o=t.endLineNumber,r=t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,r=Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,r=e.endColumn),new on(i,s,o,r)}intersectRanges(e){return on.intersectRanges(this,e)}static intersectRanges(e,t){let i=e.startLineNumber,s=e.startColumn,o=e.endLineNumber,r=e.endColumn;const a=t.startLineNumber,l=t.startColumn,h=t.endLineNumber,c=t.endColumn;return ih?(o=h,r=c):o===h&&(r=Math.min(r,c)),i>o||i===o&&s>r?null:new on(i,s,o,r)}equalsRange(e){return on.equalsRange(this,e)}static equalsRange(e,t){return!e&&!t?!0:!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return on.getEndPosition(this)}static getEndPosition(e){return new W(e.endLineNumber,e.endColumn)}getStartPosition(){return on.getStartPosition(this)}static getStartPosition(e){return new W(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new on(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new on(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return on.collapseToStart(this)}static collapseToStart(e){return new on(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return on.collapseToEnd(this)}static collapseToEnd(e){return new on(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new on(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,t=e){return new on(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new on(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,t){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}},ue=class Qo extends L{constructor(e,t,i,s){super(e,t,i,s),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=s}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return Qo.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return this.getDirection()===0?new Qo(this.startLineNumber,this.startColumn,e,t):new Qo(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new W(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new W(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return this.getDirection()===0?new Qo(e,t,this.endLineNumber,this.endColumn):new Qo(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new Qo(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return t===0?new Qo(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new Qo(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new Qo(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,s=e.length;i{this._tokenizationSupports.get(n)===e&&(this._tokenizationSupports.delete(n),this.handleChange([n]))})}get(n){return this._tokenizationSupports.get(n)||null}registerFactory(n,e){var t;(t=this._factories.get(n))===null||t===void 0||t.dispose();const i=new Nz(this,n,e);return this._factories.set(n,i),Be(()=>{const s=this._factories.get(n);!s||s!==i||(this._factories.delete(n),s.dispose())})}getOrCreate(n){return WS(this,void 0,void 0,function*(){const e=this.get(n);if(e)return e;const t=this._factories.get(n);return!t||t.isResolved?null:(yield t.resolve(),this.get(n))})}isResolved(n){if(this.get(n))return!0;const e=this._factories.get(n);return!!(!e||e.isResolved)}setColorMap(n){this._colorMap=n,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};class Nz extends H{get isResolved(){return this._isResolved}constructor(e,t,i){super(),this._registry=e,this._languageId=t,this._factory=i,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return WS(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return WS(this,void 0,void 0,function*(){const e=yield this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))})}}let um=class{constructor(n,e,t){this.offset=n,this.type=e,this.language=t,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};class VS{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class v1{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}var gm;(function(n){const e=new Map;e.set(0,oe.symbolMethod),e.set(1,oe.symbolFunction),e.set(2,oe.symbolConstructor),e.set(3,oe.symbolField),e.set(4,oe.symbolVariable),e.set(5,oe.symbolClass),e.set(6,oe.symbolStruct),e.set(7,oe.symbolInterface),e.set(8,oe.symbolModule),e.set(9,oe.symbolProperty),e.set(10,oe.symbolEvent),e.set(11,oe.symbolOperator),e.set(12,oe.symbolUnit),e.set(13,oe.symbolValue),e.set(15,oe.symbolEnum),e.set(14,oe.symbolConstant),e.set(15,oe.symbolEnum),e.set(16,oe.symbolEnumMember),e.set(17,oe.symbolKeyword),e.set(27,oe.symbolSnippet),e.set(18,oe.symbolText),e.set(19,oe.symbolColor),e.set(20,oe.symbolFile),e.set(21,oe.symbolReference),e.set(22,oe.symbolCustomColor),e.set(23,oe.symbolFolder),e.set(24,oe.symbolTypeParameter),e.set(25,oe.account),e.set(26,oe.issues);function t(o){let r=e.get(o);return r||(console.info("No codicon found for CompletionItemKind "+o),r=oe.symbolProperty),r}n.toIcon=t;const i=new Map;i.set("method",0),i.set("function",1),i.set("constructor",2),i.set("field",3),i.set("variable",4),i.set("class",5),i.set("struct",6),i.set("interface",7),i.set("module",8),i.set("property",9),i.set("event",10),i.set("operator",11),i.set("unit",12),i.set("value",13),i.set("constant",14),i.set("enum",15),i.set("enum-member",16),i.set("enumMember",16),i.set("keyword",17),i.set("snippet",27),i.set("text",18),i.set("color",19),i.set("file",20),i.set("reference",21),i.set("customcolor",22),i.set("folder",23),i.set("type-parameter",24),i.set("typeParameter",24),i.set("account",25),i.set("issue",26);function s(o,r){let a=i.get(o);return typeof a>"u"&&!r&&(a=9),a}n.fromString=s})(gm||(gm={}));var Ts;(function(n){n[n.Automatic=0]="Automatic",n[n.Explicit=1]="Explicit"})(Ts||(Ts={}));var jr;(function(n){n[n.Invoke=1]="Invoke",n[n.TriggerCharacter=2]="TriggerCharacter",n[n.ContentChange=3]="ContentChange"})(jr||(jr={}));var pm;(function(n){n[n.Text=0]="Text",n[n.Read=1]="Read",n[n.Write=2]="Write"})(pm||(pm={}));function Iz(n){return n&&we.isUri(n.uri)&&L.isIRange(n.range)&&(L.isIRange(n.originSelectionRange)||L.isIRange(n.targetSelectionRange))}var HS;(function(n){const e=new Map;e.set(0,oe.symbolFile),e.set(1,oe.symbolModule),e.set(2,oe.symbolNamespace),e.set(3,oe.symbolPackage),e.set(4,oe.symbolClass),e.set(5,oe.symbolMethod),e.set(6,oe.symbolProperty),e.set(7,oe.symbolField),e.set(8,oe.symbolConstructor),e.set(9,oe.symbolEnum),e.set(10,oe.symbolInterface),e.set(11,oe.symbolFunction),e.set(12,oe.symbolVariable),e.set(13,oe.symbolConstant),e.set(14,oe.symbolString),e.set(15,oe.symbolNumber),e.set(16,oe.symbolBoolean),e.set(17,oe.symbolArray),e.set(18,oe.symbolObject),e.set(19,oe.symbolKey),e.set(20,oe.symbolNull),e.set(21,oe.symbolEnumMember),e.set(22,oe.symbolStruct),e.set(23,oe.symbolEvent),e.set(24,oe.symbolOperator),e.set(25,oe.symbolTypeParameter);function t(i){let s=e.get(i);return s||(console.info("No codicon found for SymbolKind "+i),s=oe.symbolProperty),s}n.toIcon=t})(HS||(HS={}));let Io=class q0{static fromValue(e){switch(e){case"comment":return q0.Comment;case"imports":return q0.Imports;case"region":return q0.Region}return new q0(e)}constructor(e){this.value=e}};Io.Comment=new Io("comment"),Io.Imports=new Io("imports"),Io.Region=new Io("region");var zS;(function(n){function e(t){return!t||typeof t!="object"?!1:typeof t.id=="string"&&typeof t.title=="string"}n.is=e})(zS||(zS={}));var b1;(function(n){n[n.Type=1]="Type",n[n.Parameter=2]="Parameter"})(b1||(b1={}));class Tz{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(e=>{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const qt=new Ez;var US;(function(n){n[n.Unknown=0]="Unknown",n[n.Disabled=1]="Disabled",n[n.Enabled=2]="Enabled"})(US||(US={}));var KS;(function(n){n[n.Invoke=1]="Invoke",n[n.Auto=2]="Auto"})(KS||(KS={}));var jS;(function(n){n[n.None=0]="None",n[n.KeepWhitespace=1]="KeepWhitespace",n[n.InsertAsSnippet=4]="InsertAsSnippet"})(jS||(jS={}));var qS;(function(n){n[n.Method=0]="Method",n[n.Function=1]="Function",n[n.Constructor=2]="Constructor",n[n.Field=3]="Field",n[n.Variable=4]="Variable",n[n.Class=5]="Class",n[n.Struct=6]="Struct",n[n.Interface=7]="Interface",n[n.Module=8]="Module",n[n.Property=9]="Property",n[n.Event=10]="Event",n[n.Operator=11]="Operator",n[n.Unit=12]="Unit",n[n.Value=13]="Value",n[n.Constant=14]="Constant",n[n.Enum=15]="Enum",n[n.EnumMember=16]="EnumMember",n[n.Keyword=17]="Keyword",n[n.Text=18]="Text",n[n.Color=19]="Color",n[n.File=20]="File",n[n.Reference=21]="Reference",n[n.Customcolor=22]="Customcolor",n[n.Folder=23]="Folder",n[n.TypeParameter=24]="TypeParameter",n[n.User=25]="User",n[n.Issue=26]="Issue",n[n.Snippet=27]="Snippet"})(qS||(qS={}));var $S;(function(n){n[n.Deprecated=1]="Deprecated"})($S||($S={}));var GS;(function(n){n[n.Invoke=0]="Invoke",n[n.TriggerCharacter=1]="TriggerCharacter",n[n.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(GS||(GS={}));var YS;(function(n){n[n.EXACT=0]="EXACT",n[n.ABOVE=1]="ABOVE",n[n.BELOW=2]="BELOW"})(YS||(YS={}));var XS;(function(n){n[n.NotSet=0]="NotSet",n[n.ContentFlush=1]="ContentFlush",n[n.RecoverFromMarkers=2]="RecoverFromMarkers",n[n.Explicit=3]="Explicit",n[n.Paste=4]="Paste",n[n.Undo=5]="Undo",n[n.Redo=6]="Redo"})(XS||(XS={}));var ZS;(function(n){n[n.LF=1]="LF",n[n.CRLF=2]="CRLF"})(ZS||(ZS={}));var QS;(function(n){n[n.Text=0]="Text",n[n.Read=1]="Read",n[n.Write=2]="Write"})(QS||(QS={}));var JS;(function(n){n[n.None=0]="None",n[n.Keep=1]="Keep",n[n.Brackets=2]="Brackets",n[n.Advanced=3]="Advanced",n[n.Full=4]="Full"})(JS||(JS={}));var eL;(function(n){n[n.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",n[n.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",n[n.accessibilitySupport=2]="accessibilitySupport",n[n.accessibilityPageSize=3]="accessibilityPageSize",n[n.ariaLabel=4]="ariaLabel",n[n.autoClosingBrackets=5]="autoClosingBrackets",n[n.screenReaderAnnounceInlineSuggestion=6]="screenReaderAnnounceInlineSuggestion",n[n.autoClosingDelete=7]="autoClosingDelete",n[n.autoClosingOvertype=8]="autoClosingOvertype",n[n.autoClosingQuotes=9]="autoClosingQuotes",n[n.autoIndent=10]="autoIndent",n[n.automaticLayout=11]="automaticLayout",n[n.autoSurround=12]="autoSurround",n[n.bracketPairColorization=13]="bracketPairColorization",n[n.guides=14]="guides",n[n.codeLens=15]="codeLens",n[n.codeLensFontFamily=16]="codeLensFontFamily",n[n.codeLensFontSize=17]="codeLensFontSize",n[n.colorDecorators=18]="colorDecorators",n[n.colorDecoratorsLimit=19]="colorDecoratorsLimit",n[n.columnSelection=20]="columnSelection",n[n.comments=21]="comments",n[n.contextmenu=22]="contextmenu",n[n.copyWithSyntaxHighlighting=23]="copyWithSyntaxHighlighting",n[n.cursorBlinking=24]="cursorBlinking",n[n.cursorSmoothCaretAnimation=25]="cursorSmoothCaretAnimation",n[n.cursorStyle=26]="cursorStyle",n[n.cursorSurroundingLines=27]="cursorSurroundingLines",n[n.cursorSurroundingLinesStyle=28]="cursorSurroundingLinesStyle",n[n.cursorWidth=29]="cursorWidth",n[n.disableLayerHinting=30]="disableLayerHinting",n[n.disableMonospaceOptimizations=31]="disableMonospaceOptimizations",n[n.domReadOnly=32]="domReadOnly",n[n.dragAndDrop=33]="dragAndDrop",n[n.dropIntoEditor=34]="dropIntoEditor",n[n.emptySelectionClipboard=35]="emptySelectionClipboard",n[n.experimentalWhitespaceRendering=36]="experimentalWhitespaceRendering",n[n.extraEditorClassName=37]="extraEditorClassName",n[n.fastScrollSensitivity=38]="fastScrollSensitivity",n[n.find=39]="find",n[n.fixedOverflowWidgets=40]="fixedOverflowWidgets",n[n.folding=41]="folding",n[n.foldingStrategy=42]="foldingStrategy",n[n.foldingHighlight=43]="foldingHighlight",n[n.foldingImportsByDefault=44]="foldingImportsByDefault",n[n.foldingMaximumRegions=45]="foldingMaximumRegions",n[n.unfoldOnClickAfterEndOfLine=46]="unfoldOnClickAfterEndOfLine",n[n.fontFamily=47]="fontFamily",n[n.fontInfo=48]="fontInfo",n[n.fontLigatures=49]="fontLigatures",n[n.fontSize=50]="fontSize",n[n.fontWeight=51]="fontWeight",n[n.fontVariations=52]="fontVariations",n[n.formatOnPaste=53]="formatOnPaste",n[n.formatOnType=54]="formatOnType",n[n.glyphMargin=55]="glyphMargin",n[n.gotoLocation=56]="gotoLocation",n[n.hideCursorInOverviewRuler=57]="hideCursorInOverviewRuler",n[n.hover=58]="hover",n[n.inDiffEditor=59]="inDiffEditor",n[n.inlineSuggest=60]="inlineSuggest",n[n.letterSpacing=61]="letterSpacing",n[n.lightbulb=62]="lightbulb",n[n.lineDecorationsWidth=63]="lineDecorationsWidth",n[n.lineHeight=64]="lineHeight",n[n.lineNumbers=65]="lineNumbers",n[n.lineNumbersMinChars=66]="lineNumbersMinChars",n[n.linkedEditing=67]="linkedEditing",n[n.links=68]="links",n[n.matchBrackets=69]="matchBrackets",n[n.minimap=70]="minimap",n[n.mouseStyle=71]="mouseStyle",n[n.mouseWheelScrollSensitivity=72]="mouseWheelScrollSensitivity",n[n.mouseWheelZoom=73]="mouseWheelZoom",n[n.multiCursorMergeOverlapping=74]="multiCursorMergeOverlapping",n[n.multiCursorModifier=75]="multiCursorModifier",n[n.multiCursorPaste=76]="multiCursorPaste",n[n.multiCursorLimit=77]="multiCursorLimit",n[n.occurrencesHighlight=78]="occurrencesHighlight",n[n.overviewRulerBorder=79]="overviewRulerBorder",n[n.overviewRulerLanes=80]="overviewRulerLanes",n[n.padding=81]="padding",n[n.parameterHints=82]="parameterHints",n[n.peekWidgetDefaultFocus=83]="peekWidgetDefaultFocus",n[n.definitionLinkOpensInPeek=84]="definitionLinkOpensInPeek",n[n.quickSuggestions=85]="quickSuggestions",n[n.quickSuggestionsDelay=86]="quickSuggestionsDelay",n[n.readOnly=87]="readOnly",n[n.renameOnType=88]="renameOnType",n[n.renderControlCharacters=89]="renderControlCharacters",n[n.renderFinalNewline=90]="renderFinalNewline",n[n.renderLineHighlight=91]="renderLineHighlight",n[n.renderLineHighlightOnlyWhenFocus=92]="renderLineHighlightOnlyWhenFocus",n[n.renderValidationDecorations=93]="renderValidationDecorations",n[n.renderWhitespace=94]="renderWhitespace",n[n.revealHorizontalRightPadding=95]="revealHorizontalRightPadding",n[n.roundedSelection=96]="roundedSelection",n[n.rulers=97]="rulers",n[n.scrollbar=98]="scrollbar",n[n.scrollBeyondLastColumn=99]="scrollBeyondLastColumn",n[n.scrollBeyondLastLine=100]="scrollBeyondLastLine",n[n.scrollPredominantAxis=101]="scrollPredominantAxis",n[n.selectionClipboard=102]="selectionClipboard",n[n.selectionHighlight=103]="selectionHighlight",n[n.selectOnLineNumbers=104]="selectOnLineNumbers",n[n.showFoldingControls=105]="showFoldingControls",n[n.showUnused=106]="showUnused",n[n.snippetSuggestions=107]="snippetSuggestions",n[n.smartSelect=108]="smartSelect",n[n.smoothScrolling=109]="smoothScrolling",n[n.stickyScroll=110]="stickyScroll",n[n.stickyTabStops=111]="stickyTabStops",n[n.stopRenderingLineAfter=112]="stopRenderingLineAfter",n[n.suggest=113]="suggest",n[n.suggestFontSize=114]="suggestFontSize",n[n.suggestLineHeight=115]="suggestLineHeight",n[n.suggestOnTriggerCharacters=116]="suggestOnTriggerCharacters",n[n.suggestSelection=117]="suggestSelection",n[n.tabCompletion=118]="tabCompletion",n[n.tabIndex=119]="tabIndex",n[n.unicodeHighlighting=120]="unicodeHighlighting",n[n.unusualLineTerminators=121]="unusualLineTerminators",n[n.useShadowDOM=122]="useShadowDOM",n[n.useTabStops=123]="useTabStops",n[n.wordBreak=124]="wordBreak",n[n.wordSeparators=125]="wordSeparators",n[n.wordWrap=126]="wordWrap",n[n.wordWrapBreakAfterCharacters=127]="wordWrapBreakAfterCharacters",n[n.wordWrapBreakBeforeCharacters=128]="wordWrapBreakBeforeCharacters",n[n.wordWrapColumn=129]="wordWrapColumn",n[n.wordWrapOverride1=130]="wordWrapOverride1",n[n.wordWrapOverride2=131]="wordWrapOverride2",n[n.wrappingIndent=132]="wrappingIndent",n[n.wrappingStrategy=133]="wrappingStrategy",n[n.showDeprecated=134]="showDeprecated",n[n.inlayHints=135]="inlayHints",n[n.editorClassName=136]="editorClassName",n[n.pixelRatio=137]="pixelRatio",n[n.tabFocusMode=138]="tabFocusMode",n[n.layoutInfo=139]="layoutInfo",n[n.wrappingInfo=140]="wrappingInfo"})(eL||(eL={}));var tL;(function(n){n[n.TextDefined=0]="TextDefined",n[n.LF=1]="LF",n[n.CRLF=2]="CRLF"})(tL||(tL={}));var iL;(function(n){n[n.LF=0]="LF",n[n.CRLF=1]="CRLF"})(iL||(iL={}));var nL;(function(n){n[n.None=0]="None",n[n.Indent=1]="Indent",n[n.IndentOutdent=2]="IndentOutdent",n[n.Outdent=3]="Outdent"})(nL||(nL={}));var sL;(function(n){n[n.Both=0]="Both",n[n.Right=1]="Right",n[n.Left=2]="Left",n[n.None=3]="None"})(sL||(sL={}));var oL;(function(n){n[n.Type=1]="Type",n[n.Parameter=2]="Parameter"})(oL||(oL={}));var rL;(function(n){n[n.Automatic=0]="Automatic",n[n.Explicit=1]="Explicit"})(rL||(rL={}));var aL;(function(n){n[n.DependsOnKbLayout=-1]="DependsOnKbLayout",n[n.Unknown=0]="Unknown",n[n.Backspace=1]="Backspace",n[n.Tab=2]="Tab",n[n.Enter=3]="Enter",n[n.Shift=4]="Shift",n[n.Ctrl=5]="Ctrl",n[n.Alt=6]="Alt",n[n.PauseBreak=7]="PauseBreak",n[n.CapsLock=8]="CapsLock",n[n.Escape=9]="Escape",n[n.Space=10]="Space",n[n.PageUp=11]="PageUp",n[n.PageDown=12]="PageDown",n[n.End=13]="End",n[n.Home=14]="Home",n[n.LeftArrow=15]="LeftArrow",n[n.UpArrow=16]="UpArrow",n[n.RightArrow=17]="RightArrow",n[n.DownArrow=18]="DownArrow",n[n.Insert=19]="Insert",n[n.Delete=20]="Delete",n[n.Digit0=21]="Digit0",n[n.Digit1=22]="Digit1",n[n.Digit2=23]="Digit2",n[n.Digit3=24]="Digit3",n[n.Digit4=25]="Digit4",n[n.Digit5=26]="Digit5",n[n.Digit6=27]="Digit6",n[n.Digit7=28]="Digit7",n[n.Digit8=29]="Digit8",n[n.Digit9=30]="Digit9",n[n.KeyA=31]="KeyA",n[n.KeyB=32]="KeyB",n[n.KeyC=33]="KeyC",n[n.KeyD=34]="KeyD",n[n.KeyE=35]="KeyE",n[n.KeyF=36]="KeyF",n[n.KeyG=37]="KeyG",n[n.KeyH=38]="KeyH",n[n.KeyI=39]="KeyI",n[n.KeyJ=40]="KeyJ",n[n.KeyK=41]="KeyK",n[n.KeyL=42]="KeyL",n[n.KeyM=43]="KeyM",n[n.KeyN=44]="KeyN",n[n.KeyO=45]="KeyO",n[n.KeyP=46]="KeyP",n[n.KeyQ=47]="KeyQ",n[n.KeyR=48]="KeyR",n[n.KeyS=49]="KeyS",n[n.KeyT=50]="KeyT",n[n.KeyU=51]="KeyU",n[n.KeyV=52]="KeyV",n[n.KeyW=53]="KeyW",n[n.KeyX=54]="KeyX",n[n.KeyY=55]="KeyY",n[n.KeyZ=56]="KeyZ",n[n.Meta=57]="Meta",n[n.ContextMenu=58]="ContextMenu",n[n.F1=59]="F1",n[n.F2=60]="F2",n[n.F3=61]="F3",n[n.F4=62]="F4",n[n.F5=63]="F5",n[n.F6=64]="F6",n[n.F7=65]="F7",n[n.F8=66]="F8",n[n.F9=67]="F9",n[n.F10=68]="F10",n[n.F11=69]="F11",n[n.F12=70]="F12",n[n.F13=71]="F13",n[n.F14=72]="F14",n[n.F15=73]="F15",n[n.F16=74]="F16",n[n.F17=75]="F17",n[n.F18=76]="F18",n[n.F19=77]="F19",n[n.NumLock=78]="NumLock",n[n.ScrollLock=79]="ScrollLock",n[n.Semicolon=80]="Semicolon",n[n.Equal=81]="Equal",n[n.Comma=82]="Comma",n[n.Minus=83]="Minus",n[n.Period=84]="Period",n[n.Slash=85]="Slash",n[n.Backquote=86]="Backquote",n[n.BracketLeft=87]="BracketLeft",n[n.Backslash=88]="Backslash",n[n.BracketRight=89]="BracketRight",n[n.Quote=90]="Quote",n[n.OEM_8=91]="OEM_8",n[n.IntlBackslash=92]="IntlBackslash",n[n.Numpad0=93]="Numpad0",n[n.Numpad1=94]="Numpad1",n[n.Numpad2=95]="Numpad2",n[n.Numpad3=96]="Numpad3",n[n.Numpad4=97]="Numpad4",n[n.Numpad5=98]="Numpad5",n[n.Numpad6=99]="Numpad6",n[n.Numpad7=100]="Numpad7",n[n.Numpad8=101]="Numpad8",n[n.Numpad9=102]="Numpad9",n[n.NumpadMultiply=103]="NumpadMultiply",n[n.NumpadAdd=104]="NumpadAdd",n[n.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",n[n.NumpadSubtract=106]="NumpadSubtract",n[n.NumpadDecimal=107]="NumpadDecimal",n[n.NumpadDivide=108]="NumpadDivide",n[n.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",n[n.ABNT_C1=110]="ABNT_C1",n[n.ABNT_C2=111]="ABNT_C2",n[n.AudioVolumeMute=112]="AudioVolumeMute",n[n.AudioVolumeUp=113]="AudioVolumeUp",n[n.AudioVolumeDown=114]="AudioVolumeDown",n[n.BrowserSearch=115]="BrowserSearch",n[n.BrowserHome=116]="BrowserHome",n[n.BrowserBack=117]="BrowserBack",n[n.BrowserForward=118]="BrowserForward",n[n.MediaTrackNext=119]="MediaTrackNext",n[n.MediaTrackPrevious=120]="MediaTrackPrevious",n[n.MediaStop=121]="MediaStop",n[n.MediaPlayPause=122]="MediaPlayPause",n[n.LaunchMediaPlayer=123]="LaunchMediaPlayer",n[n.LaunchMail=124]="LaunchMail",n[n.LaunchApp2=125]="LaunchApp2",n[n.Clear=126]="Clear",n[n.MAX_VALUE=127]="MAX_VALUE"})(aL||(aL={}));var lL;(function(n){n[n.Hint=1]="Hint",n[n.Info=2]="Info",n[n.Warning=4]="Warning",n[n.Error=8]="Error"})(lL||(lL={}));var hL;(function(n){n[n.Unnecessary=1]="Unnecessary",n[n.Deprecated=2]="Deprecated"})(hL||(hL={}));var cL;(function(n){n[n.Inline=1]="Inline",n[n.Gutter=2]="Gutter"})(cL||(cL={}));var dL;(function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.TEXTAREA=1]="TEXTAREA",n[n.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",n[n.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",n[n.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",n[n.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",n[n.CONTENT_TEXT=6]="CONTENT_TEXT",n[n.CONTENT_EMPTY=7]="CONTENT_EMPTY",n[n.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",n[n.CONTENT_WIDGET=9]="CONTENT_WIDGET",n[n.OVERVIEW_RULER=10]="OVERVIEW_RULER",n[n.SCROLLBAR=11]="SCROLLBAR",n[n.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",n[n.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(dL||(dL={}));var uL;(function(n){n[n.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",n[n.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",n[n.TOP_CENTER=2]="TOP_CENTER"})(uL||(uL={}));var gL;(function(n){n[n.Left=1]="Left",n[n.Center=2]="Center",n[n.Right=4]="Right",n[n.Full=7]="Full"})(gL||(gL={}));var pL;(function(n){n[n.Left=0]="Left",n[n.Right=1]="Right",n[n.None=2]="None",n[n.LeftOfInjectedText=3]="LeftOfInjectedText",n[n.RightOfInjectedText=4]="RightOfInjectedText"})(pL||(pL={}));var mL;(function(n){n[n.Off=0]="Off",n[n.On=1]="On",n[n.Relative=2]="Relative",n[n.Interval=3]="Interval",n[n.Custom=4]="Custom"})(mL||(mL={}));var fL;(function(n){n[n.None=0]="None",n[n.Text=1]="Text",n[n.Blocks=2]="Blocks"})(fL||(fL={}));var _L;(function(n){n[n.Smooth=0]="Smooth",n[n.Immediate=1]="Immediate"})(_L||(_L={}));var vL;(function(n){n[n.Auto=1]="Auto",n[n.Hidden=2]="Hidden",n[n.Visible=3]="Visible"})(vL||(vL={}));var bL;(function(n){n[n.LTR=0]="LTR",n[n.RTL=1]="RTL"})(bL||(bL={}));var CL;(function(n){n[n.Invoke=1]="Invoke",n[n.TriggerCharacter=2]="TriggerCharacter",n[n.ContentChange=3]="ContentChange"})(CL||(CL={}));var wL;(function(n){n[n.File=0]="File",n[n.Module=1]="Module",n[n.Namespace=2]="Namespace",n[n.Package=3]="Package",n[n.Class=4]="Class",n[n.Method=5]="Method",n[n.Property=6]="Property",n[n.Field=7]="Field",n[n.Constructor=8]="Constructor",n[n.Enum=9]="Enum",n[n.Interface=10]="Interface",n[n.Function=11]="Function",n[n.Variable=12]="Variable",n[n.Constant=13]="Constant",n[n.String=14]="String",n[n.Number=15]="Number",n[n.Boolean=16]="Boolean",n[n.Array=17]="Array",n[n.Object=18]="Object",n[n.Key=19]="Key",n[n.Null=20]="Null",n[n.EnumMember=21]="EnumMember",n[n.Struct=22]="Struct",n[n.Event=23]="Event",n[n.Operator=24]="Operator",n[n.TypeParameter=25]="TypeParameter"})(wL||(wL={}));var yL;(function(n){n[n.Deprecated=1]="Deprecated"})(yL||(yL={}));var SL;(function(n){n[n.Hidden=0]="Hidden",n[n.Blink=1]="Blink",n[n.Smooth=2]="Smooth",n[n.Phase=3]="Phase",n[n.Expand=4]="Expand",n[n.Solid=5]="Solid"})(SL||(SL={}));var LL;(function(n){n[n.Line=1]="Line",n[n.Block=2]="Block",n[n.Underline=3]="Underline",n[n.LineThin=4]="LineThin",n[n.BlockOutline=5]="BlockOutline",n[n.UnderlineThin=6]="UnderlineThin"})(LL||(LL={}));var kL;(function(n){n[n.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",n[n.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",n[n.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",n[n.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(kL||(kL={}));var xL;(function(n){n[n.None=0]="None",n[n.Same=1]="Same",n[n.Indent=2]="Indent",n[n.DeepIndent=3]="DeepIndent"})(xL||(xL={}));let mm=class{static chord(n,e){return Li(n,e)}};mm.CtrlCmd=2048,mm.Shift=1024,mm.Alt=512,mm.WinCtrl=256;function VA(){return{editor:void 0,languages:void 0,CancellationTokenSource:Xi,Emitter:O,KeyCode:aL,KeyMod:mm,Position:W,Range:L,Selection:ue,SelectionDirection:bL,MarkerSeverity:lL,MarkerTag:hL,Uri:we,Token:um}}class Mz{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const t=JSON.stringify(e);return this.lastArgKey!==t&&(this.lastArgKey=t,this.lastCache=this.fn(e)),this.lastCache}}class HA{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);const t=this.fn(e);return this._map.set(e,t),t}}class ih{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var zA;function UA(n){return!n||typeof n!="string"?!0:n.trim().length===0}const Az=/{(\d+)}/g;function Js(n,...e){return e.length===0?n:n.replace(Az,function(t,i){const s=parseInt(i,10);return isNaN(s)||s<0||s>=e.length?t:e[s]})}function C1(n){return n.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function Ms(n){return n.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Rz(n,e=" "){const t=fm(n,e);return KA(t,e)}function fm(n,e){if(!n||!e)return n;const t=e.length;if(t===0||n.length===0)return n;let i=0;for(;n.indexOf(e,i)===i;)i=i+t;return n.substring(i)}function KA(n,e){if(!n||!e)return n;const t=e.length,i=n.length;if(t===0||i===0)return n;let s=i,o=-1;for(;o=n.lastIndexOf(e,s-1),!(o===-1||o+t!==s);){if(o===0)return"";s=o}return n.substring(0,s)}function Oz(n){return n.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Pz(n){return n.replace(/\*/g,"")}function jA(n,e,t={}){if(!n)throw new Error("Cannot create regex from empty string");e||(n=Ms(n)),t.wholeWord&&(/\B/.test(n.charAt(0))||(n="\\b"+n),/\B/.test(n.charAt(n.length-1))||(n=n+"\\b"));let i="";return t.global&&(i+="g"),t.matchCase||(i+="i"),t.multiline&&(i+="m"),t.unicode&&(i+="u"),new RegExp(n,i)}function Fz(n){return n.source==="^"||n.source==="^$"||n.source==="$"||n.source==="^\\s*$"?!1:!!(n.exec("")&&n.lastIndex===0)}function DL(n){return(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")}function qr(n){return n.split(/\r\n|\r|\n/)}function Nn(n){for(let e=0,t=n.length;e=0;t--){const i=n.charCodeAt(t);if(i!==32&&i!==9)return t}return-1}function _m(n,e){return ne?1:0}function EL(n,e,t=0,i=n.length,s=0,o=e.length){for(;th)return 1}const r=i-t,a=o-s;return ra?1:0}function NL(n,e){return vm(n,e,0,n.length,0,e.length)}function vm(n,e,t=0,i=n.length,s=0,o=e.length){for(;t=128||h>=128)return EL(n.toLowerCase(),e.toLowerCase(),t,i,s,o);nh(l)&&(l-=32),nh(h)&&(h-=32);const c=l-h;if(c!==0)return c}const r=i-t,a=o-s;return ra?1:0}function w1(n){return n>=48&&n<=57}function nh(n){return n>=97&&n<=122}function $r(n){return n>=65&&n<=90}function Ou(n,e){return n.length===e.length&&vm(n,e)===0}function IL(n,e){const t=e.length;return e.length>n.length?!1:vm(n,e,0,t)===0}function yc(n,e){const t=Math.min(n.length,e.length);let i;for(i=0;i1){const i=n.charCodeAt(e-2);if(Ei(i))return TL(i,t)}return t}class ML{get offset(){return this._offset}constructor(e,t=0){this._str=e,this._len=e.length,this._offset=t}setOffset(e){this._offset=e}prevCodePoint(){const e=Bz(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=y1(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class S1{get offset(){return this._iterator.offset}constructor(e,t=0){this._iterator=new ML(e,t)}nextGraphemeLength(){const e=oh.getInstance(),t=this._iterator,i=t.offset;let s=e.getGraphemeBreakType(t.nextCodePoint());for(;!t.eol();){const o=t.offset,r=e.getGraphemeBreakType(t.nextCodePoint());if(XA(s,r)){t.setOffset(o);break}s=r}return t.offset-i}prevGraphemeLength(){const e=oh.getInstance(),t=this._iterator,i=t.offset;let s=e.getGraphemeBreakType(t.prevCodePoint());for(;t.offset>0;){const o=t.offset,r=e.getGraphemeBreakType(t.prevCodePoint());if(XA(r,s)){t.setOffset(o);break}s=r}return i-t.offset}eol(){return this._iterator.eol()}}function AL(n,e){return new S1(n,e).nextGraphemeLength()}function qA(n,e){return new S1(n,e).prevGraphemeLength()}function Wz(n,e){e>0&&Sc(n.charCodeAt(e))&&e--;const t=e+AL(n,e);return[t-qA(n,t),t]}let RL;function Vz(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function Pu(n){return RL||(RL=Vz()),RL.test(n)}const Hz=/^[\t\n\r\x20-\x7E]*$/;function Cm(n){return Hz.test(n)}const $A=/[\u2028\u2029]/;function GA(n){return $A.test(n)}function sh(n){return n>=11904&&n<=55215||n>=63744&&n<=64255||n>=65281&&n<=65374}function OL(n){return n>=127462&&n<=127487||n===8986||n===8987||n===9200||n===9203||n>=9728&&n<=10175||n===11088||n===11093||n>=127744&&n<=128591||n>=128640&&n<=128764||n>=128992&&n<=129008||n>=129280&&n<=129535||n>=129648&&n<=129782}const zz=String.fromCharCode(65279);function PL(n){return!!(n&&n.length>0&&n.charCodeAt(0)===65279)}function Uz(n,e=!1){return n?(e&&(n=n.replace(/\\./g,"")),n.toLowerCase()!==n):!1}function YA(n){return n=n%(2*26),n<26?String.fromCharCode(97+n):String.fromCharCode(65+n-26)}function XA(n,e){return n===0?e!==5&&e!==7:n===2&&e===3?!1:n===4||n===2||n===3||e===4||e===2||e===3?!0:!(n===8&&(e===8||e===9||e===11||e===12)||(n===11||n===9)&&(e===9||e===10)||(n===12||n===10)&&e===10||e===5||e===13||e===7||n===1||n===13&&e===14||n===6&&e===6)}class oh{static getInstance(){return oh._INSTANCE||(oh._INSTANCE=new oh),oh._INSTANCE}constructor(){this._data=Kz()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const t=this._data,i=t.length/3;let s=1;for(;s<=i;)if(et[3*s+1])s=2*s+1;else return t[3*s+2];return 0}}oh._INSTANCE=null;function Kz(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function jz(n,e){if(n===0)return 0;const t=qz(n,e);if(t!==void 0)return t;const i=new ML(e,n);return i.prevCodePoint(),i.offset}function qz(n,e){const t=new ML(e,n);let i=t.prevCodePoint();for(;$z(i)||i===65039||i===8419;){if(t.offset===0)return;i=t.prevCodePoint()}if(!OL(i))return;let s=t.offset;return s>0&&t.prevCodePoint()===8205&&(s=t.offset),s}function $z(n){return 127995<=n&&n<=127999}const Gz="\xA0";class To{static getInstance(e){return To.cache.get(Array.from(e))}static getLocales(){return To._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}zA=To,To.ambiguousCharacterData=new ih(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),To.cache=new Mz(n=>{function e(h){const c=new Map;for(let d=0;d!h.startsWith("_")&&h in s);o.length===0&&(o=["_default"]);let r;for(const h of o){const c=e(s[h]);r=i(r,c)}const a=e(s._common),l=t(a,r);return new To(l)}),To._locales=new ih(()=>Object.keys(To.ambiguousCharacterData.value).filter(n=>!n.startsWith("_")));class Gr{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(Gr.getRawData())),this._data}static isInvisibleCharacter(e){return Gr.getData().has(e)}static get codePoints(){return Gr.getData()}}Gr._data=void 0;class FL{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}FL.INSTANCE=new FL;class Yz extends H{constructor(){super(),this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var t;(t=this._mediaQueryList)===null||t===void 0||t.removeEventListener("change",this._listener),this._mediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class Xz extends H{get value(){return this._value}constructor(){super(),this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const e=this._register(new Yz);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}_getPixelRatio(){const e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/i}}class Zz{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=new Xz),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}function BL(n,e){typeof n=="string"&&(n=window.matchMedia(n)),n.addEventListener("change",e)}const Fu=new Zz;function ZA(){return FL.INSTANCE.getZoomFactor()}const Bu=navigator.userAgent,eo=Bu.indexOf("Firefox")>=0,rh=Bu.indexOf("AppleWebKit")>=0,WL=Bu.indexOf("Chrome")>=0,Ka=!WL&&Bu.indexOf("Safari")>=0,VL=!WL&&!Ka&&rh,Qz=Bu.indexOf("Electron/")>=0,QA=Bu.indexOf("Android")>=0;let L1=!1;if(window.matchMedia){const n=window.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),e=window.matchMedia("(display-mode: fullscreen)");L1=n.matches,BL(n,({matches:t})=>{L1&&e.matches||(L1=t)})}function HL(){return L1}const Jz=Object.freeze(Object.defineProperty({__proto__:null,PixelRatio:Fu,addMatchMediaChangeListener:BL,getZoomFactor:ZA,isAndroid:QA,isChrome:WL,isElectron:Qz,isFirefox:eo,isSafari:Ka,isStandalone:HL,isWebKit:rh,isWebkitWebView:VL},Symbol.toStringTag,{value:"Module"}));class JA{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const t=lr(e);this._maxWidth!==t&&(this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const t=lr(e);this._width!==t&&(this._width=t,this.domNode.style.width=this._width)}setHeight(e){const t=lr(e);this._height!==t&&(this._height=t,this.domNode.style.height=this._height)}setTop(e){const t=lr(e);this._top!==t&&(this._top=t,this.domNode.style.top=this._top)}setLeft(e){const t=lr(e);this._left!==t&&(this._left=t,this.domNode.style.left=this._left)}setBottom(e){const t=lr(e);this._bottom!==t&&(this._bottom=t,this.domNode.style.bottom=this._bottom)}setRight(e){const t=lr(e);this._right!==t&&(this._right=t,this.domNode.style.right=this._right)}setPaddingLeft(e){const t=lr(e);this._paddingLeft!==t&&(this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const t=lr(e);this._fontSize!==t&&(this._fontSize=t,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const t=lr(e);this._lineHeight!==t&&(this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const t=lr(e);this._letterSpacing!==t&&(this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function lr(n){return typeof n=="number"?`${n}px`:n}function at(n){return new JA(n)}function Zi(n,e){n instanceof JA?(n.setFontFamily(e.getMassagedFontFamily()),n.setFontWeight(e.fontWeight),n.setFontSize(e.fontSize),n.setFontFeatureSettings(e.fontFeatureSettings),n.setFontVariationSettings(e.fontVariationSettings),n.setLineHeight(e.lineHeight),n.setLetterSpacing(e.letterSpacing)):(n.style.fontFamily=e.getMassagedFontFamily(),n.style.fontWeight=e.fontWeight,n.style.fontSize=e.fontSize+"px",n.style.fontFeatureSettings=e.fontFeatureSettings,n.style.fontVariationSettings=e.fontVariationSettings,n.style.lineHeight=e.lineHeight+"px",n.style.letterSpacing=e.letterSpacing+"px")}class eU{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class zL{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");Zi(t,this._bareFontInfo),e.appendChild(t);const i=document.createElement("div");Zi(i,this._bareFontInfo),i.style.fontWeight="bold",e.appendChild(i);const s=document.createElement("div");Zi(s,this._bareFontInfo),s.style.fontStyle="italic",e.appendChild(s);const o=[];for(const r of this._requests){let a;r.type===0&&(a=t),r.type===2&&(a=i),r.type===1&&(a=s),a.appendChild(document.createElement("br"));const l=document.createElement("span");zL._render(l,r),a.appendChild(l),o.push(l)}this._container=e,this._testElements=o}static _render(e,t){if(t.chr===" "){let i="\xA0";for(let s=0;s<8;s++)i+=i;e.innerText=i}else{let i=t.chr;for(let s=0;s<8;s++)i+=i;e.textContent=i}}_readFromDomElements(){for(let e=0,t=this._requests.length;e{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const e=this._cache.getValues();let t=!1;for(const i of e)i.isTrusted||(t=!0,this._cache.remove(i));t&&this._onDidChange.fire()}readFontInfo(e){if(!this._cache.has(e)){let t=this._actualReadFontInfo(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new KL({pixelRatio:Fu.value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,fontVariationSettings:t.fontVariationSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}_createRequest(e,t,i,s){const o=new eU(e,t);return i.push(o),s==null||s.push(o),o}_actualReadFontInfo(e){const t=[],i=[],s=this._createRequest("n",0,t,i),o=this._createRequest("\uFF4D",0,t,null),r=this._createRequest(" ",0,t,i),a=this._createRequest("0",0,t,i),l=this._createRequest("1",0,t,i),h=this._createRequest("2",0,t,i),c=this._createRequest("3",0,t,i),d=this._createRequest("4",0,t,i),u=this._createRequest("5",0,t,i),g=this._createRequest("6",0,t,i),m=this._createRequest("7",0,t,i),f=this._createRequest("8",0,t,i),_=this._createRequest("9",0,t,i),b=this._createRequest("\u2192",0,t,i),v=this._createRequest("\uFFEB",0,t,null),C=this._createRequest("\xB7",0,t,i),w=this._createRequest(String.fromCharCode(11825),0,t,null),S="|/-_ilm%";for(let P=0,R=S.length;P.001){x=!1;break}}let D=!0;return x&&v.width!==k&&(D=!1),v.width>b.width&&(D=!1),new KL({pixelRatio:Fu.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,fontVariationSettings:e.fontVariationSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:x,typicalHalfwidthCharacterWidth:s.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:D,spaceWidth:r.width,middotWidth:C.width,wsmiddotWidth:w.width,maxDigitWidth:T},!0)}}class eR{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const i=e.getId();this._keys[i]=e,this._values[i]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}const jL=new sU;var hr;(function(n){n.serviceIds=new Map,n.DI_TARGET="$di$target",n.DI_DEPENDENCIES="$di$dependencies";function e(t){return t[n.DI_DEPENDENCIES]||[]}n.getServiceDependencies=e})(hr||(hr={}));const Te=Ze("instantiationService");function oU(n,e,t){e[hr.DI_TARGET]===e?e[hr.DI_DEPENDENCIES].push({id:n,index:t}):(e[hr.DI_DEPENDENCIES]=[{id:n,index:t}],e[hr.DI_TARGET]=e)}function Ze(n){if(hr.serviceIds.has(n))return hr.serviceIds.get(n);const e=function(t,i,s){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");oU(e,t,s)};return e.toString=()=>n,hr.serviceIds.set(n,e),e}const ht=Ze("codeEditorService");function wm(n,e){if(!n)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}function k1(n,e="Unreachable"){throw new Error(e)}function qL(n){if(!n()){debugger;n(),Fe(new Ur("Assertion Failed"))}}function tR(n,e){let t=0;for(;t\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw DS(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const e=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:e})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const e=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:e})}else this._match(126)?this._addToken(9):this._error($L("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error($L("&&"));break;case 124:this._match(124)?this._addToken(16):this._error($L("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const t=this._start,i=this._input.substring(this._start,this._current),s={type:19,offset:this._start,lexeme:i};this._errors.push({offset:t,lexeme:i,additionalInfo:e}),this._tokens.push(s)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const t=this._input.substring(this._start,this._current),i=TM._keywords.get(t);i?this._addToken(i):this._tokens.push({type:17,lexeme:t,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(rU);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,t=!1,i=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(aU);return}const o=this._input.charCodeAt(e);if(t)t=!1;else if(o===47&&!i){e++;break}else o===91?i=!0:o===92?t=!0:o===93&&(i=!1);e++}for(;e=this._input.length}};kc._regexFlags=new Set(["i","g","s","m","y","u"].map(n=>n.charCodeAt(0))),kc._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);const vn=new Map;vn.set("false",!1),vn.set("true",!0),vn.set("isMac",$e),vn.set("isLinux",rn),vn.set("isWindows",$i),vn.set("isWeb",ql),vn.set("isMacNative",$e&&!ql),vn.set("isEdge",KV),vn.set("isFirefox",zV),vn.set("isChrome",tA),vn.set("isSafari",UV);const lU=Object.prototype.hasOwnProperty,hU={regexParsingWithErrorRecovery:!0},cU=p("contextkey.parser.error.emptyString","Empty context key expression"),dU=p("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),uU=p("contextkey.parser.error.noInAfterNot","'in' after 'not'."),iR=p("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),gU=p("contextkey.parser.error.unexpectedToken","Unexpected token"),pU=p("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),mU=p("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),fU=p("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");let nR=class $0{constructor(e=hU){this._config=e,this._scanner=new kc,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:cU,offset:0,lexeme:"",additionalInfo:dU});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const t=this._expr();if(!this._isAtEnd()){const i=this._peek(),s=i.type===17?pU:void 0;throw this._parsingErrors.push({message:gU,offset:i.offset,lexeme:kc.getLexeme(i),additionalInfo:s}),$0._parseError}return t}catch(t){if(t!==$0._parseError)throw t;return}}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const t=this._and();e.push(t)}return e.length===1?e[0]:Z.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const t=this._term();e.push(t)}return e.length===1?e[0]:Z.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),Wn.INSTANCE;case 12:return this._advance(),Qn.INSTANCE;case 0:{this._advance();const t=this._expr();return this._consume(1,iR),t==null?void 0:t.negate()}case 17:return this._advance(),Dc.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),Z.true();case 12:return this._advance(),Z.false();case 0:{this._advance();const t=this._expr();return this._consume(1,iR),t}case 17:{const t=e.lexeme;if(this._advance(),this._matchOne(9)){const i=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),i.type!==10)throw this._errExpectedButGot("REGEX",i);const s=i.lexeme,o=s.lastIndexOf("/"),r=o===s.length-1?void 0:this._removeFlagsGY(s.substring(o+1));let a;try{a=new RegExp(s.substring(1,o),r)}catch{throw this._errExpectedButGot("REGEX",i)}return Lm.create(t,a)}switch(i.type){case 10:case 19:{const s=[i.lexeme];this._advance();let o=this._peek(),r=0;for(let d=0;d=0){const l=s.slice(r+1,a),h=s[a+1]==="i"?"i":"";try{o=new RegExp(l,h)}catch{throw this._errExpectedButGot("REGEX",i)}}}if(o===null)throw this._errExpectedButGot("REGEX",i);return Lm.create(t,o)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,uU);const i=this._value();return Z.notIn(t,i)}switch(this._peek().type){case 3:{this._advance();const i=this._value();if(this._previous().type===18)return Z.equals(t,i);switch(i){case"true":return Z.has(t);case"false":return Z.not(t);default:return Z.equals(t,i)}}case 4:{this._advance();const i=this._value();if(this._previous().type===18)return Z.notEquals(t,i);switch(i){case"true":return Z.not(t);case"false":return Z.has(t);default:return Z.notEquals(t,i)}}case 5:return this._advance(),A1.create(t,this._value());case 6:return this._advance(),R1.create(t,this._value());case 7:return this._advance(),T1.create(t,this._value());case 8:return this._advance(),M1.create(t,this._value());case 13:return this._advance(),Z.in(t,this._value());default:return Z.has(t)}}case 20:throw this._parsingErrors.push({message:mU,offset:e.offset,lexeme:"",additionalInfo:fU}),$0._parseError;default:throw this._errExpectedButGot(`true | false | KEY | KEY '=~' REGEX | KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return this._check(e)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,t){if(this._check(e))return this._advance();throw this._errExpectedButGot(t,this._peek())}_errExpectedButGot(e,t,i){const s=p("contextkey.parser.error.expectedButGot",`Expected: {0} -Received: '{1}'.`,e,Mc.getLexeme(t)),o=t.offset,r=Mc.getLexeme(t);return this._parsingErrors.push({message:s,offset:o,lexeme:r,additionalInfo:i}),i1._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}};vR._parseError=new Error;class Z{static false(){return Un.INSTANCE}static true(){return ns.INSTANCE}static has(e){return Ac.create(e)}static equals(e,t){return Mm.create(e,t)}static notEquals(e,t){return z1.create(e,t)}static regex(e,t){return Am.create(e,t)}static in(e,t){return V1.create(e,t)}static notIn(e,t){return H1.create(e,t)}static not(e){return Rc.create(e)}static and(...e){return Oc.create(e,null,!0)}static or(...e){return Ja.create(e,null,!0)}static deserialize(e){return e==null?void 0:this._parser.parse(e)}}Z._parser=new vR({regexParsingWithErrorRecovery:!1});function ZK(n,e){const t=n?n.substituteConstants():void 0,i=e?e.substituteConstants():void 0;return!t&&!i?!0:!t||!i?!1:t.equals(i)}function Tm(n,e){return n.cmp(e)}class Un{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return ns.INSTANCE}}Un.INSTANCE=new Un;class ns{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return Un.INSTANCE}}ns.INSTANCE=new ns;class Ac{static create(e,t=null){const i=yn.get(e);return typeof i=="boolean"?i?ns.INSTANCE:Un.INSTANCE:new Ac(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:CR(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=yn.get(this.key);return typeof e=="boolean"?e?ns.INSTANCE:Un.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=Rc.create(this.key,this)),this.negated}}class Mm{static create(e,t,i=null){if(typeof t=="boolean")return t?Ac.create(e,i):Rc.create(e,i);const s=yn.get(e);return typeof s=="boolean"?t===(s?"true":"false")?ns.INSTANCE:Un.INSTANCE:new Mm(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:Pc(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=yn.get(this.key);if(typeof e=="boolean"){const t=e?"true":"false";return this.value===t?ns.INSTANCE:Un.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=z1.create(this.key,this.value,this)),this.negated}}class V1{static create(e,t){return new V1(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:Pc(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type?this.key===e.key&&this.valueKey===e.valueKey:!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.valueKey),i=e.getValue(this.key);return Array.isArray(t)?t.includes(i):typeof i=="string"&&typeof t=="object"&&t!==null?zK.call(t,i):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=H1.create(this.key,this.valueKey)),this.negated}}class H1{static create(e,t){return new H1(e,t)}constructor(e,t){this.key=e,this.valueKey=t,this.type=11,this._negated=V1.create(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type?this._negated.equals(e._negated):!1}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class z1{static create(e,t,i=null){if(typeof t=="boolean")return t?Rc.create(e,i):Ac.create(e,i);const s=yn.get(e);return typeof s=="boolean"?t===(s?"true":"false")?Un.INSTANCE:ns.INSTANCE:new z1(e,t,i)}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:Pc(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=yn.get(this.key);if(typeof e=="boolean"){const t=e?"true":"false";return this.value===t?Un.INSTANCE:ns.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Mm.create(this.key,this.value,this)),this.negated}}class Rc{static create(e,t=null){const i=yn.get(e);return typeof i=="boolean"?i?Un.INSTANCE:ns.INSTANCE:new Rc(e,t)}constructor(e,t){this.key=e,this.negated=t,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:CR(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=yn.get(this.key);return typeof e=="boolean"?e?Un.INSTANCE:ns.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Ac.create(this.key,this)),this.negated}}function U1(n,e){if(typeof n=="string"){const t=parseFloat(n);isNaN(t)||(n=t)}return typeof n=="string"||typeof n=="number"?e(n):Un.INSTANCE}class K1{static create(e,t,i=null){return U1(t,s=>new K1(e,s,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:Pc(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=$1.create(this.key,this.value,this)),this.negated}}class j1{static create(e,t,i=null){return U1(t,s=>new j1(e,s,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:Pc(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=q1.create(this.key,this.value,this)),this.negated}}class q1{static create(e,t,i=null){return U1(t,s=>new q1(e,s,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:Pc(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))new $1(e,s,i))}constructor(e,t,i){this.key=e,this.value=t,this.negated=i,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:Pc(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=K1.create(this.key,this.value,this)),this.negated}}class Am{static create(e,t){return new Am(e,t)}constructor(e,t){this.key=e,this.regexp=t,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return ti?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",i=e.regexp?e.regexp.source:"";return this.key===e.key&&t===i}return!1}substituteConstants(){return this}evaluate(e){const t=e.getValue(this.key);return this.regexp?this.regexp.test(t):!1}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=lk.create(this)),this.negated}}class lk{static create(e){return new lk(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function bR(n){let e=null;for(let t=0,i=n.length;te.expr.length)return 1;for(let t=0,i=this.expr.length;t1;){const r=s[s.length-1];if(r.type!==9)break;s.pop();const a=s.pop(),l=s.length===0,h=Ja.create(r.expr.map(c=>Oc.create([c,a],null,i)),null,l);h&&(s.push(h),s.sort(Tm))}if(s.length===1)return s[0];if(i){for(let r=0;re.serialize()).join(" && ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());this.negated=Ja.create(e,this,!0)}return this.negated}}class Ja{static create(e,t,i){return Ja._normalizeArr(e,t,i)}constructor(e,t){this.expr=e,this.negated=t,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let t=0,i=this.expr.length;te.serialize()).join(" || ")}keys(){const e=[];for(const t of this.expr)e.push(...t.keys());return e}negate(){if(!this.negated){const e=[];for(const t of this.expr)e.push(t.negate());for(;e.length>1;){const t=e.shift(),i=e.shift(),s=[];for(const o of yR(t))for(const r of yR(i))s.push(Oc.create([o,r],null,!1));e.unshift(Ja.create(s,null,!1))}this.negated=Ja.create(e,this,!0)}return this.negated}}class he extends Ac{static all(){return he._info.values()}constructor(e,t,i){super(e,null),this._defaultValue=t,typeof i=="object"?he._info.push(Object.assign(Object.assign({},i),{key:e})):i!==!0&&he._info.push({key:e,description:i,type:t!=null?typeof t:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return Mm.create(this.key,e)}}he._info=[];const De=Qe("contextKeyService");function CR(n,e){return ne?1:0}function Pc(n,e,t,i){return nt?1:ei?1:0}function hk(n,e){if(n.type===0||e.type===1)return!0;if(n.type===9)return e.type===9?wR(n.expr,e.expr):!1;if(e.type===9){for(const t of e.expr)if(hk(n,t))return!0;return!1}if(n.type===6){if(e.type===6)return wR(e.expr,n.expr);for(const t of n.expr)if(hk(t,e))return!0;return!1}return n.equals(e)}function wR(n,e){let t=0,i=0;for(;t=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},ck=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};const JK={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0,findResultLoop:!0};let dk=class extends H{constructor(n,e={},t,i,s){super(),this._audioCueService=t,this._codeEditorService=i,this._accessibilityService=s,this._onDidUpdate=this._register(new O),this._editor=n,this._options=vm(e,JK,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=!!this._options.alwaysRevealFirst,this._register(this._editor.onDidDispose(()=>this.dispose())),this._register(this._editor.onDidUpdateDiff(()=>this._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(o=>{this.ignoreSelectionChange||(this._updateAccessibilityState(o.position.lineNumber),this.nextIdx=-1)})),this._options.alwaysRevealFirst&&this._register(this._editor.getModifiedEditor().onDidChangeModel(o=>{this.revealFirst=!0})),this._init()}_init(){this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&this._editor.getLineChanges()!==null&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(n){this.ranges=[],n&&n.forEach(e=>{!this._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach(t=>{this.ranges.push({rhs:!0,range:new L(t.modifiedStartLineNumber,t.modifiedStartColumn,t.modifiedEndLineNumber,t.modifiedEndColumn)})}):e.modifiedEndLineNumber===0?this.ranges.push({rhs:!0,range:new L(e.modifiedStartLineNumber,1,e.modifiedStartLineNumber+1,1)}):this.ranges.push({rhs:!0,range:new L(e.modifiedStartLineNumber,1,e.modifiedEndLineNumber+1,1)})}),this.ranges.sort((e,t)=>L.compareRangesUsingStarts(e.range,t.range)),this._onDidUpdate.fire(this)}_initIdx(n){let e=!1;const t=this._editor.getPosition();if(!t){this.nextIdx=0;return}for(let i=0,s=this.ranges.length;i=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));const t=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{const i=t.range.getStartPosition();this._editor.setPosition(i),this._editor.revealRangeInCenter(t.range,e),this._updateAccessibilityState(i.lineNumber,!0)}finally{this.ignoreSelectionChange=!1}}_updateAccessibilityState(n,e){var t;const i=(t=this._editor.getModel())===null||t===void 0?void 0:t.modified;if(!i)return;const s=i.getLineDecorations(n).find(r=>r.options.className==="line-insert");if(s)this._audioCueService.playAudioCue(pt.diffLineModified,!0);else if(e)this._audioCueService.playAudioCue(pt.diffLineDeleted,!0);else return;const o=this._codeEditorService.getActiveCodeEditor();e&&o&&s&&this._accessibilityService.isScreenReaderOptimized()&&(o.setSelection({startLineNumber:n,startColumn:0,endLineNumber:n,endColumn:Number.MAX_VALUE}),o.writeScreenReaderContent("diff-navigation"))}canNavigate(){return this.ranges&&this.ranges.length>0}next(n=0){this.canNavigateNext()&&this._move(!0,n)}previous(n=0){this.canNavigatePrevious()&&this._move(!1,n)}canNavigateNext(){return this.canNavigateLoop()||this.nextIdx0&&n.getLanguageId(r-1)===s;)r--;return new oj(n,s,r,o+1,n.getStartOffset(r),n.getEndOffset(o))}class oj{constructor(e,t,i,s,o,r){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=s,this.firstCharOffset=o,this._lastCharOffset=r}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function ia(n){return(n&3)!==0}class $u{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(t=>new gk(t)):e.brackets?this._autoClosingPairs=e.brackets.map(t=>new gk({open:t[0],close:t[1]})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new gk({open:t.open,close:t.close||""}))}this._autoCloseBeforeForQuotes=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:$u.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:$u.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}$u.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=`;:.,=}])> - `,$u.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS=`'"\`;:.,=}])> - `;const SR=typeof Buffer<"u";let pk;class X1{static wrap(e){return SR&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new X1(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return SR?this.buffer.toString():(pk||(pk=new TextDecoder),pk.decode(this.buffer))}}function rj(n,e){return n[e+0]<<0>>>0|n[e+1]<<8>>>0}function aj(n,e,t){n[t+0]=e&255,e=e>>>8,n[t+1]=e&255}function _r(n,e){return n[e]*Math.pow(2,24)+n[e+1]*Math.pow(2,16)+n[e+2]*Math.pow(2,8)+n[e+3]}function vr(n,e,t){n[t+3]=e,e=e>>>8,n[t+2]=e,e=e>>>8,n[t+1]=e,e=e>>>8,n[t]=e}function LR(n,e){return n[e]}function kR(n,e,t){n[t]=e}let mk;function xR(){return mk||(mk=new TextDecoder("UTF-16LE")),mk}let fk;function lj(){return fk||(fk=new TextDecoder("UTF-16BE")),fk}let _k;function DR(){return _k||(_k=mA()?xR():lj()),_k}function hj(n,e,t){const i=new Uint16Array(n.buffer,e,t);return t>0&&(i[0]===65279||i[0]===65534)?cj(n,e,t):xR().decode(i)}function cj(n,e,t){const i=[];let s=0;for(let o=0;o=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(let i=0;i[r[0].toLowerCase(),r[1].toLowerCase()]);const t=[];for(let r=0;r{const[l,h]=r,[c,d]=a;return l===c||l===d||h===c||h===d},s=(r,a)=>{const l=Math.min(r,a),h=Math.max(r,a);for(let c=0;c0&&o.push({open:a,close:l})}return o}class uj{constructor(e,t){this._richEditBracketsBrand=void 0;const i=dj(t);this.brackets=i.map((s,o)=>new Z1(e,o,s.open,s.close,gj(s.open,s.close,i,o),pj(s.open,s.close,i,o))),this.forwardRegex=mj(this.brackets),this.reversedRegex=fj(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const s of this.brackets){for(const o of s.open)this.textIsBracket[o]=s,this.textIsOpenBracket[o]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,o.length);for(const o of s.close)this.textIsBracket[o]=s,this.textIsOpenBracket[o]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,o.length)}}}function ER(n,e,t,i){for(let s=0,o=e.length;s=0&&i.push(a);for(const a of r.close)a.indexOf(n)>=0&&i.push(a)}}function NR(n,e){return n.length-e.length}function Q1(n){if(n.length<=1)return n;const e=[],t=new Set;for(const i of n)t.has(i)||(e.push(i),t.add(i));return e}function gj(n,e,t,i){let s=[];s=s.concat(n),s=s.concat(e);for(let o=0,r=s.length;o=0;r--)s[o++]=i.charCodeAt(r);return DR().decode(s)}let e=null,t=null;return function(i){return e!==i&&(e=i,t=n(e)),t}}();class Bo{static _findPrevBracketInText(e,t,i,s){const o=i.match(e);if(!o)return null;const r=i.length-(o.index||0),a=o[0].length,l=s+r;return new L(t,l-a+1,t,l+1)}static findPrevBracketInRange(e,t,i,s,o){const r=vk(i).substring(i.length-o,i.length-s);return this._findPrevBracketInText(e,t,r,s)}static findNextBracketInText(e,t,i,s){const o=i.match(e);if(!o)return null;const r=o.index||0,a=o[0].length;if(a===0)return null;const l=s+r;return new L(t,l+1,t,l+1+a)}static findNextBracketInRange(e,t,i,s,o){const r=i.substring(s,o);return this.findNextBracketInText(e,t,r,s)}}class vj{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const i of t.close){const s=i.charAt(i.length-1);e.push(s)}return eh(e)}onElectricCharacter(e,t,i){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;const s=t.findTokenIndexAtOffset(i-1);if(ia(t.getStandardTokenType(s)))return null;const o=this._richEditBrackets.reversedRegex,r=t.getLineContent().substring(0,i-1)+e,a=Bo.findPrevBracketInRange(o,1,r,0,r.length);if(!a)return null;const l=r.substring(a.startColumn-1,a.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[l])return null;const h=t.getActualLineContentBefore(a.startColumn-1);return/^\s*$/.test(h)?{matchOpenBracket:l}:null}}function ev(n){return n.global&&(n.lastIndex=0),!0}class bj{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&ev(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&ev(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&ev(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&ev(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class Yu{constructor(e){e=e||{},e.brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(t=>{const i=Yu._createOpenBracketRegExp(t[0]),s=Yu._createCloseBracketRegExp(t[1]);i&&s&&this._brackets.push({open:t[0],openRegExp:i,close:t[1],closeRegExp:s})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,i,s){if(e>=3)for(let o=0,r=this._regExpRules.length;ol.reg?(l.reg.lastIndex=0,l.reg.test(l.text)):!0))return a.action}if(e>=2&&i.length>0&&s.length>0)for(let o=0,r=this._brackets.length;o=2&&i.length>0){for(let o=0,r=this._brackets.length;o"u"?t:o}function wj(n){return n.replace(/[\[\]]/g,"")}const Bt=Qe("languageService");class na{constructor(e,t=[],i=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=i}}const AR=[];function ot(n,e,t){e instanceof na||(e=new na(e,[],!!t)),AR.push([n,e])}function RR(){return AR}class yj{constructor(){this.data=new Map}add(e,t){Im(zn(e)),Im(es(t)),Im(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}const jt=new yj,ss=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"}),tv={JSONContribution:"base.contributions.json"};function Sj(n){return n.length>0&&n.charAt(n.length-1)==="#"?n.substring(0,n.length-1):n}class Lj{constructor(){this._onDidChangeSchema=new O,this.schemasById={}}registerSchema(e,t){this.schemasById[Sj(e)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}}const kj=new Lj;jt.add(tv.JSONContribution,kj);const sa={Configuration:"base.contributions.configuration"},iv="vscode://schemas/settings/resourceLanguage",OR=jt.as(tv.JSONContribution);class xj{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new O,this._onDidUpdateConfiguration=new O,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:p("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},OR.registerSchema(iv,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const i=new Set;this.doRegisterConfigurations(e,t,i),OR.registerSchema(iv,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){const t=new Set;this.doRegisterDefaultConfigurations(e,t),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:t,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,t){var i;const s=[];for(const{overrides:o,source:r}of e)for(const a in o)if(t.add(a),mh.test(a)){const l=this.configurationDefaultsOverrides.get(a),h=(i=l==null?void 0:l.valuesSources)!==null&&i!==void 0?i:new Map;if(r)for(const g of Object.keys(o[a]))h.set(g,r);const c=Object.assign(Object.assign({},(l==null?void 0:l.value)||{}),o[a]);this.configurationDefaultsOverrides.set(a,{source:r,value:c,valuesSources:h});const d=wj(a),u={type:"object",default:c,description:p("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",d),$ref:iv,defaultDefaultValue:c,source:zn(r)?void 0:r,defaultValueSource:r};s.push(...nv(a)),this.configurationProperties[a]=u,this.defaultLanguageConfigurationOverridesNode.properties[a]=u}else{this.configurationDefaultsOverrides.set(a,{value:o[a],source:r});const l=this.configurationProperties[a];l&&(this.updatePropertyDefaultValue(a,l),this.updateSchema(a,l))}this.doRegisterOverrideIdentifiers(s)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t,i){e.forEach(s=>{this.validateAndRegisterProperties(s,t,s.extensionInfo,s.restrictedProperties,void 0,i),this.configurationContributors.push(s),this.registerJSONConfiguration(s)})}validateAndRegisterProperties(e,t=!0,i,s,o=3,r){var a;o=Is(e.scope)?o:e.scope;const l=e.properties;if(l)for(const c in l){const d=l[c];if(t&&Nj(c,d)){delete l[c];continue}if(d.source=i,d.defaultDefaultValue=l[c].default,this.updatePropertyDefaultValue(c,d),mh.test(c)?d.scope=void 0:(d.scope=Is(d.scope)?o:d.scope,d.restricted=Is(d.restricted)?!!(s!=null&&s.includes(c)):d.restricted),l[c].hasOwnProperty("included")&&!l[c].included){this.excludedConfigurationProperties[c]=l[c],delete l[c];continue}else this.configurationProperties[c]=l[c],!((a=l[c].policy)===null||a===void 0)&&a.name&&this.policyConfigurations.set(l[c].policy.name,c);!l[c].deprecationMessage&&l[c].markdownDeprecationMessage&&(l[c].deprecationMessage=l[c].markdownDeprecationMessage),r.add(c)}const h=e.allOf;if(h)for(const c of h)this.validateAndRegisterProperties(c,t,i,s,o,r)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const t=i=>{const s=i.properties;if(s)for(const r in s)this.updateSchema(r,s[r]);const o=i.allOf;o==null||o.forEach(t)};t(e)}updateSchema(e,t){switch(t.scope){case 1:break;case 2:break;case 6:break;case 3:break;case 4:break;case 5:this.resourceLanguageSettingsSchema.properties[e]=t;break}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,i={type:"object",description:p("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:p("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:iv};this.updatePropertyDefaultValue(t,i)}}registerOverridePropertyPatternKey(){p("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),p("overrideSettings.errorMessage","This setting does not support per-language configuration."),this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){const i=this.configurationDefaultsOverrides.get(e);let s=i==null?void 0:i.value,o=i==null?void 0:i.source;gs(s)&&(s=t.defaultDefaultValue,o=void 0),gs(s)&&(s=Ej(t.type)),t.default=s,t.defaultValueSource=o}}const PR="\\[([^\\]]+)\\]",FR=new RegExp(PR,"g"),Dj=`^(${PR})+$`,mh=new RegExp(Dj);function nv(n){const e=[];if(mh.test(n)){let t=FR.exec(n);for(;t!=null&&t.length;){const i=t[1].trim();i&&e.push(i),t=FR.exec(n)}}return eh(e)}function Ej(n){switch(Array.isArray(n)?n[0]:n){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}const sv=new xj;jt.add(sa.Configuration,sv);function Nj(n,e){var t,i,s,o;return n.trim()?mh.test(n)?p("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",n):sv.getConfigurationProperties()[n]!==void 0?p("config.property.duplicate","Cannot register '{0}'. This property is already registered.",n):!((t=e.policy)===null||t===void 0)&&t.name&&sv.getPolicyConfigurations().get((i=e.policy)===null||i===void 0?void 0:i.name)!==void 0?p("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",n,(s=e.policy)===null||s===void 0?void 0:s.name,sv.getPolicyConfigurations().get((o=e.policy)===null||o===void 0?void 0:o.name)):null:p("config.property.empty","Cannot register an empty property")}const Ij={ModesRegistry:"editor.modesRegistry"};class Tj{constructor(){this._onDidChangeLanguages=new O,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,i=this._languages.length;t{const l=new Set;return{info:new Rj(this,a,l),closing:l}}),o=new iR(a=>{const l=new Set,h=new Set;return{info:new Oj(this,a,l,h),opening:l,openingColorized:h}});for(const[a,l]of i){const h=s.get(a),c=o.get(l);h.closing.add(c.info),c.opening.add(h.info)}const r=t.colorizedBracketPairs?BR(t.colorizedBracketPairs):i.filter(a=>!(a[0]==="<"&&a[1]===">"));for(const[a,l]of r){const h=s.get(a),c=o.get(l);h.closing.add(c.info),c.openingColorized.add(h.info),c.opening.add(h.info)}this._openingBrackets=new Map([...s.cachedValues].map(([a,l])=>[a,l.info])),this._closingBrackets=new Map([...o.cachedValues].map(([a,l])=>[a,l.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}}function BR(n){return n.filter(([e,t])=>e!==""&&t!=="")}class WR{constructor(e,t){this.config=e,this.bracketText=t}get languageId(){return this.config.languageId}}class Rj extends WR{constructor(e,t,i){super(e,t),this.openedBrackets=i,this.isOpeningBracket=!0}}class Oj extends WR{constructor(e,t,i,s){super(e,t),this.openingBrackets=i,this.openingColorizedBrackets=s,this.isOpeningBracket=!1}closes(e){return e.config!==this.config?!1:this.openingBrackets.has(e)}closesColorized(e){return e.config!==this.config?!1:this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var Pj=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},VR=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};class Ck{constructor(e){this.languageId=e}affects(e){return this.languageId?this.languageId===e:!0}}const Ht=Qe("languageConfigurationService");let wk=class extends H{constructor(n,e){super(),this.configurationService=n,this.languageService=e,this._registry=this._register(new Vj),this.onDidChangeEmitter=this._register(new O),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const t=new Set(Object.values(yk));this._register(this.configurationService.onDidChangeConfiguration(i=>{const s=i.change.keys.some(r=>t.has(r)),o=i.change.overrides.filter(([r,a])=>a.some(l=>t.has(l))).map(([r])=>r);if(s)this.configurations.clear(),this.onDidChangeEmitter.fire(new Ck(void 0));else for(const r of o)this.languageService.isRegisteredLanguageId(r)&&(this.configurations.delete(r),this.onDidChangeEmitter.fire(new Ck(r)))})),this._register(this._registry.onDidChange(i=>{this.configurations.delete(i.languageId),this.onDidChangeEmitter.fire(new Ck(i.languageId))}))}register(n,e,t){return this._registry.register(n,e,t)}getLanguageConfiguration(n){let e=this.configurations.get(n);return e||(e=Fj(n,this._registry,this.configurationService,this.languageService),this.configurations.set(n,e)),e}};wk=Pj([VR(0,at),VR(1,Bt)],wk);function Fj(n,e,t,i){let s=e.getLanguageConfiguration(n);if(!s){if(!i.isRegisteredLanguageId(n))return new Qu(n,{});s=new Qu(n,{})}const o=Bj(s.languageId,t),r=UR([s.underlyingConfig,o]);return new Qu(s.languageId,r)}const yk={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function Bj(n,e){const t=e.getValue(yk.brackets,{overrideIdentifier:n}),i=e.getValue(yk.colorizedBracketPairs,{overrideIdentifier:n});return{brackets:HR(t),colorizedBracketPairs:HR(i)}}function HR(n){if(Array.isArray(n))return n.map(e=>{if(!(!Array.isArray(e)||e.length!==2))return[e[0],e[1]]}).filter(e=>!!e)}function zR(n,e,t){const i=n.getLineContent(e);let s=Lt(i);return s.length>t-1&&(s=s.substring(0,t-1)),s}function Zu(n,e,t){n.tokenization.forceTokenization(e);const i=n.tokenization.getLineTokens(e),s=typeof t>"u"?n.getLineMaxColumn(e)-1:t-1;return Y1(i,s)}class Wj{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const i=new KR(e,t,++this._order);return this._entries.push(i),this._resolved=null,Be(()=>{for(let s=0;se.configuration)))}}function UR(n){let e={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const t of n)e={comments:t.comments||e.comments,brackets:t.brackets||e.brackets,wordPattern:t.wordPattern||e.wordPattern,indentationRules:t.indentationRules||e.indentationRules,onEnterRules:t.onEnterRules||e.onEnterRules,autoClosingPairs:t.autoClosingPairs||e.autoClosingPairs,surroundingPairs:t.surroundingPairs||e.surroundingPairs,autoCloseBefore:t.autoCloseBefore||e.autoCloseBefore,folding:t.folding||e.folding,colorizedBracketPairs:t.colorizedBracketPairs||e.colorizedBracketPairs,__electricCharacterSupport:t.__electricCharacterSupport||e.__electricCharacterSupport};return e}class KR{constructor(e,t,i){this.configuration=e,this.priority=t,this.order=i}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class jR{constructor(e){this.languageId=e}}class Vj extends H{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new O),this.onDidChange=this._onDidChange.event,this._register(this.register(Vs,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,t,i=0){let s=this._entries.get(e);s||(s=new Wj(e),this._entries.set(e,s));const o=s.register(t,i);return this._onDidChange.fire(new jR(e)),Be(()=>{o.dispose(),this._onDidChange.fire(new jR(e))})}getLanguageConfiguration(e){const t=this._entries.get(e);return(t==null?void 0:t.getResolvedConfiguration())||null}}class Qu{constructor(e,t){this.languageId=e,this.underlyingConfig=t,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new Yu(this.underlyingConfig):null,this.comments=Qu._handleComments(this.underlyingConfig),this.characterPair=new $u(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||AS,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new bj(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new Aj(e,this.underlyingConfig)}getWordDefinition(){return vA(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new uj(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new vj(this.brackets)),this._electricCharacter}onEnter(e,t,i,s){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,i,s):null}getAutoClosingPairs(){return new sj(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const t=e.comments;if(!t)return null;const i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){const[s,o]=t.blockComment;i.blockCommentStartToken=s,i.blockCommentEndToken=o}return i}}ot(Ht,wk,1);const Ju=new class{clone(){return this}equals(n){return this===n}};function Sk(n,e){return new eL([new wm(0,"",n)],e)}function ov(n,e){const t=new Uint32Array(2);return t[0]=0,t[1]=(n<<0|0|0|32768|2<<24)>>>0,new T1(t,e===null?Ju:e)}const Yt=Qe("modelService"),qR=Symbol("MicrotaskDelay");var lo=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(c){try{h(i.next(c))}catch(d){r(d)}}function l(c){try{h(i.throw(c))}catch(d){r(d)}}function h(c){c.done?o(c.value):s(c.value).then(a,l)}h((i=i.apply(n,e||[])).next())})},Bm=globalThis&&globalThis.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],t;return e?e.call(n):(n=typeof __values=="function"?__values(n):n[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=n[o]&&function(r){return new Promise(function(a,l){r=n[o](r),s(a,l,r.done,r.value)})}}function s(o,r,a,l){Promise.resolve(l).then(function(h){o({value:h,done:a})},r)}};function Lk(n){return!!n&&typeof n.then=="function"}function Mi(n){const e=new en,t=n(e.token),i=new Promise((s,o)=>{const r=e.token.onCancellationRequested(()=>{r.dispose(),e.dispose(),o(new nh)});Promise.resolve(t).then(a=>{r.dispose(),e.dispose(),s(a)},a=>{r.dispose(),e.dispose(),o(a)})});return new class{cancel(){e.cancel()}then(s,o){return i.then(s,o)}catch(s){return this.then(void 0,s)}finally(s){return i.finally(s)}}}function rv(n,e,t){return new Promise((i,s)=>{const o=e.onCancellationRequested(()=>{o.dispose(),i(t)});n.then(i,s).finally(()=>o.dispose())})}class Hj{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const t=()=>{this.queuedPromise=null;const i=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,i};this.queuedPromise=new Promise(i=>{this.activePromise.then(t,t).then(i)})}return new Promise((t,i)=>{this.queuedPromise.then(t,i)})}return this.activePromise=e(),new Promise((t,i)=>{this.activePromise.then(s=>{this.activePromise=null,t(s)},s=>{this.activePromise=null,i(s)})})}}const zj=(n,e)=>{let t=!0;const i=setTimeout(()=>{t=!1,e()},n);return{isTriggered:()=>t,dispose:()=>{clearTimeout(i),t=!1}}},Uj=n=>{let e=!0;return queueMicrotask(()=>{e&&(e=!1,n())}),{isTriggered:()=>e,dispose:()=>{e=!1}}};class br{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((s,o)=>{this.doResolve=s,this.doReject=o}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const s=this.task;return this.task=null,s()}}));const i=()=>{var s;this.deferred=null,(s=this.doResolve)===null||s===void 0||s.call(this,null)};return this.deferred=t===qR?Uj(i):zj(t,i),this.completionPromise}isTriggered(){var e;return!!(!((e=this.deferred)===null||e===void 0)&&e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&((e=this.doReject)===null||e===void 0||e.call(this,new nh),this.completionPromise=null)}cancelTimeout(){var e;(e=this.deferred)===null||e===void 0||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class $R{constructor(e){this.delayer=new br(e),this.throttler=new Hj}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}}function fh(n,e){return e?new Promise((t,i)=>{const s=setTimeout(()=>{o.dispose(),t()},n),o=e.onCancellationRequested(()=>{clearTimeout(s),o.dispose(),i(new nh)})}):Mi(t=>fh(n,t))}function Fc(n,e=0){const t=setTimeout(n,e);return Be(()=>clearTimeout(t))}function GR(n,e=i=>!!i,t=null){let i=0;const s=n.length,o=()=>{if(i>=s)return Promise.resolve(t);const r=n[i++];return Promise.resolve(r()).then(a=>e(a)?Promise.resolve(a):o())};return o()}class ho{constructor(e,t){this._token=-1,typeof e=="function"&&typeof t=="number"&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class Wm{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}class yt{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;(e=this.runner)===null||e===void 0||e.call(this)}}let el;(function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?el=n=>{uA(()=>{if(e)return;const t=Date.now()+15;n(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,t-Date.now())}}))});let e=!1;return{dispose(){e||(e=!0)}}}:el=(n,e)=>{const t=requestIdleCallback(n,typeof e=="number"?{timeout:e}:void 0);let i=!1;return{dispose(){i||(i=!0,cancelIdleCallback(t))}}}})();class av{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(t){this._error=t}finally{this._didRun=!0}},this._handle=el(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class kk{get isRejected(){return this.rejected}get isSettled(){return this.rejected||this.resolved}constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return new Promise(t=>{this.completeCallback(e),this.resolved=!0,t()})}cancel(){new Promise(e=>{this.errorCallback(new nh),this.rejected=!0,e()})}}var xk;(function(n){function e(i){return lo(this,void 0,void 0,function*(){let s;const o=yield Promise.all(i.map(r=>r.then(a=>a,a=>{s||(s=a)})));if(typeof s<"u")throw s;return o})}n.settled=e;function t(i){return new Promise((s,o)=>lo(this,void 0,void 0,function*(){try{yield i(s,o)}catch(r){o(r)}}))}n.withAsyncBody=t})(xk||(xk={}));class _i{static fromArray(e){return new _i(t=>{t.emitMany(e)})}static fromPromise(e){return new _i(t=>lo(this,void 0,void 0,function*(){t.emitMany(yield e)}))}static fromPromises(e){return new _i(t=>lo(this,void 0,void 0,function*(){yield Promise.all(e.map(i=>lo(this,void 0,void 0,function*(){return t.emitOne(yield i)})))}))}static merge(e){return new _i(t=>lo(this,void 0,void 0,function*(){yield Promise.all(e.map(i=>{var s,o,r;return lo(this,void 0,void 0,function*(){var a,l,h,c;try{for(s=!0,o=Bm(i);r=yield o.next(),a=r.done,!a;){c=r.value,s=!1;try{const d=c;t.emitOne(d)}finally{s=!0}}}catch(d){l={error:d}}finally{try{!s&&!a&&(h=o.return)&&(yield h.call(o))}finally{if(l)throw l.error}}})}))}))}constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new O,queueMicrotask(()=>lo(this,void 0,void 0,function*(){const t={emitOne:i=>this.emitOne(i),emitMany:i=>this.emitMany(i),reject:i=>this.reject(i)};try{yield Promise.resolve(e(t)),this.resolve()}catch(i){this.reject(i)}finally{t.emitOne=void 0,t.emitMany=void 0,t.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:()=>lo(this,void 0,void 0,function*(){do{if(this._state===2)throw this._error;if(elo(this,void 0,void 0,function*(){var s,o,r,a;try{for(var l=!0,h=Bm(e),c;c=yield h.next(),s=c.done,!s;){a=c.value,l=!1;try{const d=a;i.emitOne(t(d))}finally{l=!0}}}catch(d){o={error:d}}finally{try{!l&&!s&&(r=h.return)&&(yield r.call(h))}finally{if(o)throw o.error}}}))}map(e){return _i.map(this,e)}static filter(e,t){return new _i(i=>lo(this,void 0,void 0,function*(){var s,o,r,a;try{for(var l=!0,h=Bm(e),c;c=yield h.next(),s=c.done,!s;){a=c.value,l=!1;try{const d=a;t(d)&&i.emitOne(d)}finally{l=!0}}}catch(d){o={error:d}}finally{try{!l&&!s&&(r=h.return)&&(yield r.call(h))}finally{if(o)throw o.error}}}))}filter(e){return _i.filter(this,e)}static coalesce(e){return _i.filter(e,t=>!!t)}coalesce(){return _i.coalesce(this)}static toPromise(e){var t,i,s,o,r,a,l;return lo(this,void 0,void 0,function*(){const h=[];try{for(t=!0,i=Bm(e);s=yield i.next(),o=s.done,!o;){l=s.value,t=!1;try{const c=l;h.push(c)}finally{t=!0}}}catch(c){r={error:c}}finally{try{!t&&!o&&(a=i.return)&&(yield a.call(i))}finally{if(r)throw r.error}}return h})}toPromise(){return _i.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}}_i.EMPTY=_i.fromArray([]);class Kj extends _i{constructor(e,t){super(t),this._source=e}cancel(){this._source.cancel()}}function jj(n){const e=new en,t=n(e.token);return new Kj(e,i=>lo(this,void 0,void 0,function*(){var s,o,r,a;const l=e.token.onCancellationRequested(()=>{l.dispose(),e.dispose(),i.reject(new nh)});try{try{for(var h=!0,c=Bm(t),d;d=yield c.next(),s=d.done,!s;){a=d.value,h=!1;try{const u=a;if(e.token.isCancellationRequested)return;i.emitOne(u)}finally{h=!0}}}catch(u){o={error:u}}finally{try{!h&&!s&&(r=c.return)&&(yield r.call(c))}finally{if(o)throw o.error}}l.dispose(),e.dispose()}catch(u){l.dispose(),e.dispose(),i.reject(u)}}))}const qj="$initialize";let YR=!1;function Dk(n){Jl&&(YR||(YR=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(n.message))}class $j{constructor(e,t,i,s){this.vsWorker=e,this.req=t,this.method=i,this.args=s,this.type=0}}class XR{constructor(e,t,i,s){this.vsWorker=e,this.seq=t,this.res=i,this.err=s,this.type=1}}class Gj{constructor(e,t,i,s){this.vsWorker=e,this.req=t,this.eventName=i,this.arg=s,this.type=2}}class Yj{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class Xj{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class Zj{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){const i=String(++this._lastSentReq);return new Promise((s,o)=>{this._pendingReplies[i]={resolve:s,reject:o},this._send(new $j(this._workerId,i,e,t))})}listen(e,t){let i=null;const s=new O({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new Gj(this._workerId,i,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new Xj(this._workerId,i)),i=null}});return s.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}const t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;e.err.$isError&&(i=new Error,i.name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),t.reject(i);return}t.resolve(e.res)}_handleRequestMessage(e){const t=e.req;this._handler.handleMessage(e.method,e.args).then(i=>{this._send(new XR(this._workerId,t,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=BA(i.detail)),this._send(new XR(this._workerId,t,void 0,BA(i)))})}_handleSubscribeEventMessage(e){const t=e.req,i=this._handler.handleEvent(e.eventName,e.arg)(s=>{this._send(new Yj(this._workerId,t,s))});this._pendingEvents.set(t,i)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){const t=[];if(e.type===0)for(let i=0;i{this._protocol.handleMessage(c)},c=>{s==null||s(c)})),this._protocol=new Zj({sendMessage:(c,d)=>{this._worker.postMessage(c,d)},handleMessage:(c,d)=>{if(typeof i[c]!="function")return Promise.reject(new Error("Missing method "+c+" on main thread host."));try{return Promise.resolve(i[c].apply(i,d))}catch(u){return Promise.reject(u)}},handleEvent:(c,d)=>{if(QR(c)){const u=i[c].call(i,d);if(typeof u!="function")throw new Error(`Missing dynamic event ${c} on main thread host.`);return u}if(ZR(c)){const u=i[c];if(typeof u!="function")throw new Error(`Missing event ${c} on main thread host.`);return u}throw new Error(`Malformed event name ${c}`)}}),this._protocol.setWorkerId(this._worker.getId());let o=null;const r=globalThis.require;typeof r<"u"&&typeof r.getConfig=="function"?o=r.getConfig():typeof globalThis.requirejs<"u"&&(o=globalThis.requirejs.s.contexts._.config);const a=WS(i);this._onModuleLoaded=this._protocol.sendMessage(qj,[this._worker.getId(),JSON.parse(JSON.stringify(o)),t,a]);const l=(c,d)=>this._request(c,d),h=(c,d)=>this._protocol.listen(c,d);this._lazyProxy=new Promise((c,d)=>{s=d,this._onModuleLoaded.then(u=>{c(Jj(u,l,h))},u=>{d(u),this._onError("Worker failed to load "+t,u)})})}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise((i,s)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,t).then(i,s)},s)})}_onError(e,t){console.error(e),console.info(t)}}function ZR(n){return n[0]==="o"&&n[1]==="n"&&ea(n.charCodeAt(2))}function QR(n){return/^onDynamic/.test(n)&&ea(n.charCodeAt(9))}function Jj(n,e,t){const i=r=>function(){const a=Array.prototype.slice.call(arguments,0);return e(r,a)},s=r=>function(a){return t(r,a)},o={};for(const r of n){if(QR(r)){o[r]=s(r);continue}if(ZR(r)){o[r]=t(r,void 0);continue}o[r]=i(r)}return o}var Ek;const JR=(Ek=window.trustedTypes)===null||Ek===void 0?void 0:Ek.createPolicy("defaultWorkerFactory",{createScriptURL:n=>n});function eq(n){const e=globalThis.MonacoEnvironment;if(e){if(typeof e.getWorker=="function")return e.getWorker("workerMain.js",n);if(typeof e.getWorkerUrl=="function"){const t=e.getWorkerUrl("workerMain.js",n);return new Worker(JR?JR.createScriptURL(t):t,{name:n})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function tq(n){return typeof n.then=="function"}class iq{constructor(e,t,i,s,o){this.id=t;const r=eq(i);tq(r)?this.worker=r:this.worker=Promise.resolve(r),this.postMessage(e,[]),this.worker.then(a=>{a.onmessage=function(l){s(l.data)},a.onmessageerror=o,typeof a.addEventListener=="function"&&a.addEventListener("error",o)})}getId(){return this.id}postMessage(e,t){var i;(i=this.worker)===null||i===void 0||i.then(s=>s.postMessage(e,t))}dispose(){var e;(e=this.worker)===null||e===void 0||e.then(t=>t.terminate()),this.worker=null}}class lv{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,i){const s=++lv.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new iq(e,s,this._label||"anonymous"+s,t,o=>{Dk(o),this._webWorkerFailedBeforeError=o,i(o)})}}lv.LAST_WORKER_ID=0;class _h{constructor(e,t,i,s){this.originalStart=e,this.originalLength=t,this.modifiedStart=i,this.modifiedLength=s}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function eO(n){return hv(n,0)}function hv(n,e){switch(typeof n){case"object":return n===null?tl(349,e):Array.isArray(n)?sq(n,e):oq(n,e);case"string":return Nk(n,e);case"boolean":return nq(n,e);case"number":return tl(n,e);case"undefined":return tl(937,e);default:return tl(617,e)}}function tl(n,e){return(e<<5)-e+n|0}function nq(n,e){return tl(n?433:863,e)}function Nk(n,e){e=tl(149417,e);for(let t=0,i=n.length;thv(i,t),e)}function oq(n,e){return e=tl(181387,e),Object.keys(n).sort().reduce((t,i)=>(t=Nk(i,t),hv(n[i],t)),e)}function Ik(n,e,t=32){const i=t-e,s=~((1<>>i)>>>0}function tO(n,e=0,t=n.byteLength,i=0){for(let s=0;st.toString(16).padStart(2,"0")).join(""):rq((n>>>0).toString(16),e/4)}class cv{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(t===0)return;const i=this._buff;let s=this._buffLen,o=this._leftoverHighSurrogate,r,a;for(o!==0?(r=o,a=-1,o=0):(r=e.charCodeAt(0),a=0);;){let l=r;if(Ti(r))if(a+1>>6,e[t++]=128|(i&63)>>>0):i<65536?(e[t++]=224|(i&61440)>>>12,e[t++]=128|(i&4032)>>>6,e[t++]=128|(i&63)>>>0):(e[t++]=240|(i&1835008)>>>18,e[t++]=128|(i&258048)>>>12,e[t++]=128|(i&4032)>>>6,e[t++]=128|(i&63)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64+0],e[1]=e[64+1],e[2]=e[64+2]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Vm(this._h0)+Vm(this._h1)+Vm(this._h2)+Vm(this._h3)+Vm(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,tO(this._buff,this._buffLen),this._buffLen>56&&(this._step(),tO(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=cv._bigBlock32,t=this._buffDV;for(let d=0;d<64;d+=4)e.setUint32(d,t.getUint32(d,!1),!1);for(let d=64;d<320;d+=4)e.setUint32(d,Ik(e.getUint32(d-12,!1)^e.getUint32(d-32,!1)^e.getUint32(d-56,!1)^e.getUint32(d-64,!1),1),!1);let i=this._h0,s=this._h1,o=this._h2,r=this._h3,a=this._h4,l,h,c;for(let d=0;d<80;d++)d<20?(l=s&o|~s&r,h=1518500249):d<40?(l=s^o^r,h=1859775393):d<60?(l=s&o|s&r|o&r,h=2400959708):(l=s^o^r,h=3395469782),c=Ik(i,5)+l+a+h+e.getUint32(d*4,!1)&4294967295,a=r,r=o,o=Ik(s,30),s=i,i=c;this._h0=this._h0+i&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+o&4294967295,this._h3=this._h3+r&4294967295,this._h4=this._h4+a&4294967295}}cv._bigBlock32=new DataView(new ArrayBuffer(320));class iO{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let i=0,s=e.length;i0||this.m_modifiedCount>0)&&this.m_changes.push(new _h(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class oa{constructor(e,t,i=null){this.ContinueProcessingPredicate=i,this._originalSequence=e,this._modifiedSequence=t;const[s,o,r]=oa._getElements(e),[a,l,h]=oa._getElements(t);this._hasStrings=r&&h,this._originalStringElements=s,this._originalElementsOrHash=o,this._modifiedStringElements=a,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const t=e.getElements();if(oa._isStringArray(t)){const i=new Int32Array(t.length);for(let s=0,o=t.length;s=e&&s>=i&&this.ElementsAreEqual(t,s);)t--,s--;if(e>t||i>s){let d;return i<=s?(eg.Assert(e===t+1,"originalStart should only be one more than originalEnd"),d=[new _h(e,0,i,s-i+1)]):e<=t?(eg.Assert(i===s+1,"modifiedStart should only be one more than modifiedEnd"),d=[new _h(e,t-e+1,i,0)]):(eg.Assert(e===t+1,"originalStart should only be one more than originalEnd"),eg.Assert(i===s+1,"modifiedStart should only be one more than modifiedEnd"),d=[]),d}const r=[0],a=[0],l=this.ComputeRecursionPoint(e,t,i,s,r,a,o),h=r[0],c=a[0];if(l!==null)return l;if(!o[0]){const d=this.ComputeDiffRecursive(e,h,i,c,o);let u=[];return o[0]?u=[new _h(h+1,t-(h+1)+1,c+1,s-(c+1)+1)]:u=this.ComputeDiffRecursive(h+1,t,c+1,s,o),this.ConcatenateChanges(d,u)}return[new _h(e,t-e+1,i,s-i+1)]}WALKTRACE(e,t,i,s,o,r,a,l,h,c,d,u,g,m,f,_,b,v){let C=null,w=null,S=new nO,T=t,x=i,k=g[0]-_[0]-s,D=-1073741824,P=this.m_forwardHistory.length-1;do{const R=k+e;R===T||R=0&&(h=this.m_forwardHistory[P],e=h[0],T=1,x=h.length-1)}while(--P>=-1);if(C=S.getReverseChanges(),v[0]){let R=g[0]+1,V=_[0]+1;if(C!==null&&C.length>0){const U=C[C.length-1];R=Math.max(R,U.getOriginalEnd()),V=Math.max(V,U.getModifiedEnd())}w=[new _h(R,u-R+1,V,f-V+1)]}else{S=new nO,T=r,x=a,k=g[0]-_[0]-l,D=1073741824,P=b?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const R=k+o;R===T||R=c[R+1]?(d=c[R+1]-1,m=d-k-l,d>D&&S.MarkNextChange(),D=d+1,S.AddOriginalElement(d+1,m+1),k=R+1-o):(d=c[R-1],m=d-k-l,d>D&&S.MarkNextChange(),D=d,S.AddModifiedElement(d+1,m+1),k=R-1-o),P>=0&&(c=this.m_reverseHistory[P],o=c[0],T=1,x=c.length-1)}while(--P>=-1);w=S.getChanges()}return this.ConcatenateChanges(C,w)}ComputeRecursionPoint(e,t,i,s,o,r,a){let l=0,h=0,c=0,d=0,u=0,g=0;e--,i--,o[0]=0,r[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const m=t-e+(s-i),f=m+1,_=new Int32Array(f),b=new Int32Array(f),v=s-i,C=t-e,w=e-i,S=t-s,T=(C-v)%2===0;_[v]=e,b[C]=t,a[0]=!1;for(let x=1;x<=m/2+1;x++){let k=0,D=0;c=this.ClipDiagonalBound(v-x,x,v,f),d=this.ClipDiagonalBound(v+x,x,v,f);for(let R=c;R<=d;R+=2){R===c||Rk+D&&(k=l,D=h),!T&&Math.abs(R-C)<=x-1&&l>=b[R])return o[0]=l,r[0]=h,V<=b[R]&&1447>0&&x<=1447+1?this.WALKTRACE(v,c,d,w,C,u,g,S,_,b,l,t,o,h,s,r,T,a):null}const P=(k-e+(D-i)-x)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(k,P))return a[0]=!0,o[0]=k,r[0]=D,P>0&&1447>0&&x<=1447+1?this.WALKTRACE(v,c,d,w,C,u,g,S,_,b,l,t,o,h,s,r,T,a):(e++,i++,[new _h(e,t-e+1,i,s-i+1)]);u=this.ClipDiagonalBound(C-x,x,C,f),g=this.ClipDiagonalBound(C+x,x,C,f);for(let R=u;R<=g;R+=2){R===u||R=b[R+1]?l=b[R+1]-1:l=b[R-1],h=l-(R-C)-S;const V=l;for(;l>e&&h>i&&this.ElementsAreEqual(l,h);)l--,h--;if(b[R]=l,T&&Math.abs(R-v)<=x&&l<=_[R])return o[0]=l,r[0]=h,V>=_[R]&&1447>0&&x<=1447+1?this.WALKTRACE(v,c,d,w,C,u,g,S,_,b,l,t,o,h,s,r,T,a):null}if(x<=1447){let R=new Int32Array(d-c+2);R[0]=v-c+1,tg.Copy2(_,c,R,1,d-c+1),this.m_forwardHistory.push(R),R=new Int32Array(g-u+2),R[0]=C-u+1,tg.Copy2(b,u,R,1,g-u+1),this.m_reverseHistory.push(R)}}return this.WALKTRACE(v,c,d,w,C,u,g,S,_,b,l,t,o,h,s,r,T,a)}PrettifyChanges(e){for(let t=0;t0,a=i.modifiedLength>0;for(;i.originalStart+i.originalLength=0;t--){const i=e[t];let s=0,o=0;if(t>0){const d=e[t-1];s=d.originalStart+d.originalLength,o=d.modifiedStart+d.modifiedLength}const r=i.originalLength>0,a=i.modifiedLength>0;let l=0,h=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength);for(let d=1;;d++){const u=i.originalStart-d,g=i.modifiedStart-d;if(uh&&(h=m,l=d)}i.originalStart-=l,i.modifiedStart-=l;const c=[null];if(t>0&&this.ChangesOverlap(e[t-1],e[t],c)){e[t-1]=c[0],e.splice(t,1),t++;continue}}if(this._hasStrings)for(let t=1,i=e.length;t0&&g>l&&(l=g,h=d,c=u)}return l>0?[h,c]:null}_contiguousSequenceScore(e,t,i){let s=0;for(let o=0;o=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1}_boundaryScore(e,t,i,s){const o=this._OriginalRegionIsBoundary(e,t)?1:0,r=this._ModifiedRegionIsBoundary(i,s)?1:0;return o+r}ConcatenateChanges(e,t){const i=[];if(e.length===0||t.length===0)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){const s=new Array(e.length+t.length-1);return tg.Copy(e,0,s,0,e.length-1),s[e.length-1]=i[0],tg.Copy(t,1,s,e.length,t.length-1),s}else{const s=new Array(e.length+t.length);return tg.Copy(e,0,s,0,e.length),tg.Copy(t,0,s,e.length,t.length),s}}ChangesOverlap(e,t,i){if(eg.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),eg.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const s=e.originalStart;let o=e.originalLength;const r=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new _h(s,o,r,a),!0}else return i[0]=null,!1}ClipDiagonalBound(e,t,i,s){if(e>=0&&e255?255:n|0}function ig(n){return n<0?0:n>4294967295?4294967295:n|0}class lq{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=ig(e);const i=this.values,s=this.prefixSum,o=t.length;return o===0?!1:(this.values=new Uint32Array(i.length+o),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+o),this.values.set(t,e),e-1=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=ig(e),t=ig(t),this.values[e]===t?!1:(this.values[e]=t,e-1=i.length)return!1;const o=i.length-e;return t>=o&&(t=o),t===0?!1:(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=ig(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;t===0&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,s=0,o=0,r=0;for(;t<=i;)if(s=t+(i-t)/2|0,o=this.prefixSum[s],r=o-this.values[s],e=o)t=s+1;else break;return new sO(s,e-r)}}class hq{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),e===0?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new sO(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=v1(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e0?this._prefixSum[e-1]:0;this._prefixSum[e]=s+i;for(let o=0;o=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class uv{constructor(){this._actual=new ng(0)}add(e){this._actual.set(e,1)}has(e){return this._actual.get(e)===1}clear(){return this._actual.clear()}}class dq{constructor(e,t,i){const s=new Uint8Array(e*t);for(let o=0,r=e*t;ot&&(t=l),a>i&&(i=a),h>i&&(i=h)}t++,i++;const s=new dq(i,t,0);for(let o=0,r=e.length;o=this._maxCharCode?0:this._states.get(e,t)}}let Tk=null;function gq(){return Tk===null&&(Tk=new uq([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Tk}let Hm=null;function pq(){if(Hm===null){Hm=new ng(0);const n=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let t=0;ts);if(s>0){const a=t.charCodeAt(s-1),l=t.charCodeAt(r);(a===40&&l===41||a===91&&l===93||a===123&&l===125)&&r--}return{range:{startLineNumber:i,startColumn:s+1,endLineNumber:i,endColumn:r+2},url:t.substring(s,r+1)}}static computeLinks(e,t=gq()){const i=pq(),s=[];for(let o=1,r=e.getLineCount();o<=r;o++){const a=e.getLineContent(o),l=a.length;let h=0,c=0,d=0,u=1,g=!1,m=!1,f=!1,_=!1;for(;h=0?(s+=i?1:-1,s<0?s=e.length-1:s%=e.length,e[s]):null}}Mk.INSTANCE=new Mk;class fq extends ng{constructor(e){super(0);for(let t=0,i=e.length;t(e.hasOwnProperty(t)||(e[t]=n(t)),e[t])}const co=_q(n=>new fq(n)),vq=999;class Bc{constructor(e,t,i,s){this.searchString=e,this.isRegex=t,this.matchCase=i,this.wordSeparators=s}parseSearchRequest(){if(this.searchString==="")return null;let e;this.isRegex?e=bq(this.searchString):e=this.searchString.indexOf(` -`)>=0;let t=null;try{t=rR(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch{return null}if(!t)return null;let i=!this.isRegex&&!e;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new tj(t,this.wordSeparators?co(this.wordSeparators):null,i?this.searchString:null)}}function bq(n){if(!n||n.length===0)return!1;for(let e=0,t=n.length;e=t)break;const s=n.charCodeAt(e);if(s===110||s===114||s===87)return!0}}return!1}function Wc(n,e,t){if(!t)return new Pm(n,null);const i=[];for(let s=0,o=e.length;s>0);t[o]>=e?s=o-1:t[o+1]>=e?(i=o,s=o):i=o+1}return i+1}}class pv{static findMatches(e,t,i,s,o){const r=t.parseSearchRequest();return r?r.regex.multiline?this._doFindMatchesMultiline(e,i,new sg(r.wordSeparators,r.regex),s,o):this._doFindMatchesLineByLine(e,i,r,s,o):[]}static _getMultilineMatchRange(e,t,i,s,o,r){let a,l=0;s?(l=s.findLineFeedCountBeforeOffset(o),a=t+o+l):a=t+o;let h;if(s){const u=s.findLineFeedCountBeforeOffset(o+r.length)-l;h=a+r.length+u}else h=a+r.length;const c=e.getPositionAt(a),d=e.getPositionAt(h);return new L(c.lineNumber,c.column,d.lineNumber,d.column)}static _doFindMatchesMultiline(e,t,i,s,o){const r=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),l=e.getEOL()===`\r -`?new oO(a):null,h=[];let c=0,d;for(i.reset(0);d=i.next(a);)if(h[c++]=Wc(this._getMultilineMatchRange(e,r,a,l,d.index,d[0]),d,s),c>=o)return h;return h}static _doFindMatchesLineByLine(e,t,i,s,o){const r=[];let a=0;if(t.startLineNumber===t.endLineNumber){const h=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return a=this._findMatchesInLine(i,h,t.startLineNumber,t.startColumn-1,a,r,s,o),r}const l=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);a=this._findMatchesInLine(i,l,t.startLineNumber,t.startColumn-1,a,r,s,o);for(let h=t.startLineNumber+1;h=l))return o;return o}const c=new sg(e.wordSeparators,e.regex);let d;c.reset(0);do if(d=c.next(t),d&&(r[o++]=Wc(new L(i,d.index+1+s,i,d.index+1+d[0].length+s),d,a),o>=l))return o;while(d);return o}static findNextMatch(e,t,i,s){const o=t.parseSearchRequest();if(!o)return null;const r=new sg(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,i,r,s):this._doFindNextMatchLineByLine(e,i,r,s)}static _doFindNextMatchMultiline(e,t,i,s){const o=new W(t.lineNumber,1),r=e.getOffsetAt(o),a=e.getLineCount(),l=e.getValueInRange(new L(o.lineNumber,o.column,a,e.getLineMaxColumn(a)),1),h=e.getEOL()===`\r -`?new oO(l):null;i.reset(t.column-1);const c=i.next(l);return c?Wc(this._getMultilineMatchRange(e,r,l,h,c.index,c[0]),c,s):t.lineNumber!==1||t.column!==1?this._doFindNextMatchMultiline(e,new W(1,1),i,s):null}static _doFindNextMatchLineByLine(e,t,i,s){const o=e.getLineCount(),r=t.lineNumber,a=e.getLineContent(r),l=this._findFirstMatchInLine(i,a,r,t.column,s);if(l)return l;for(let h=1;h<=o;h++){const c=(r+h-1)%o,d=e.getLineContent(c+1),u=this._findFirstMatchInLine(i,d,c+1,1,s);if(u)return u}return null}static _findFirstMatchInLine(e,t,i,s,o){e.reset(s-1);const r=e.next(t);return r?Wc(new L(i,r.index+1,i,r.index+1+r[0].length),r,o):null}static findPreviousMatch(e,t,i,s){const o=t.parseSearchRequest();if(!o)return null;const r=new sg(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,i,r,s):this._doFindPreviousMatchLineByLine(e,i,r,s)}static _doFindPreviousMatchMultiline(e,t,i,s){const o=this._doFindMatchesMultiline(e,new L(1,1,t.lineNumber,t.column),i,s,10*vq);if(o.length>0)return o[o.length-1];const r=e.getLineCount();return t.lineNumber!==r||t.column!==e.getLineMaxColumn(r)?this._doFindPreviousMatchMultiline(e,new W(r,e.getLineMaxColumn(r)),i,s):null}static _doFindPreviousMatchLineByLine(e,t,i,s){const o=e.getLineCount(),r=t.lineNumber,a=e.getLineContent(r).substring(0,t.column-1),l=this._findLastMatchInLine(i,a,r,s);if(l)return l;for(let h=1;h<=o;h++){const c=(o+r-h-1)%o,d=e.getLineContent(c+1),u=this._findLastMatchInLine(i,d,c+1,s);if(u)return u}return null}static _findLastMatchInLine(e,t,i,s){let o=null,r;for(e.reset(0);r=e.next(t);)o=Wc(new L(i,r.index+1,i,r.index+1+r[0].length),r,s);return o}}function Cq(n,e,t,i,s){if(i===0)return!0;const o=e.charCodeAt(i-1);if(n.get(o)!==0||o===13||o===10)return!0;if(s>0){const r=e.charCodeAt(i);if(n.get(r)!==0)return!0}return!1}function wq(n,e,t,i,s){if(i+s===t)return!0;const o=e.charCodeAt(i+s);if(n.get(o)!==0||o===13||o===10)return!0;if(s>0){const r=e.charCodeAt(i+s-1);if(n.get(r)!==0)return!0}return!1}function Ak(n,e,t,i,s){return Cq(n,e,t,i,s)&&wq(n,e,t,i,s)}class sg{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let i;do{if(this._prevMatchStartIndex+this._prevMatchLength===t||(i=this._searchRegex.exec(e),!i))return null;const s=i.index,o=i[0].length;if(s===this._prevMatchStartIndex&&o===this._prevMatchLength){if(o===0){O1(e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=s,this._prevMatchLength=o,!this._wordSeparators||Ak(this._wordSeparators,e,t,s,o))return i}while(i);return null}}class Rk{static computeUnicodeHighlights(e,t,i){const s=i?i.startLineNumber:1,o=i?i.endLineNumber:e.getLineCount(),r=new rO(t),a=r.getCandidateCodePoints();let l;a==="allNonBasicAscii"?l=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):l=new RegExp(`${yq(Array.from(a))}`,"g");const h=new sg(null,l),c=[];let d=!1,u,g=0,m=0,f=0;e:for(let _=s,b=o;_<=b;_++){const v=e.getLineContent(_),C=v.length;h.reset(0);do if(u=h.next(v),u){let w=u.index,S=u.index+u[0].length;if(w>0){const D=v.charCodeAt(w-1);Ti(D)&&w--}if(S+1=D){d=!0;break e}c.push(new L(_,w+1,_,S+1))}}while(u)}return{ranges:c,hasMore:d,ambiguousCharacterCount:g,invisibleCharacterCount:m,nonBasicAsciiCharacterCount:f}}static computeUnicodeHighlightReason(e,t){const i=new rO(t);switch(i.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=e.codePointAt(0),o=i.ambiguousCharacters.getPrimaryConfusable(s),r=Fo.getLocales().filter(a=>!Fo.getInstance(new Set([...t.allowedLocales,a])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(o),notAmbiguousInLocales:r}}case 1:return{kind:2}}}}function yq(n,e){return`[${Fs(n.map(t=>String.fromCodePoint(t)).join(""))}]`}class rO{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=Fo.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const t of ta.codePoints)aO(String.fromCodePoint(t))||e.add(t);if(this.options.ambiguousCharacters)for(const t of this.ambiguousCharacters.getConfusableCodePoints())e.add(t);for(const t of this.allowedCodePoints)e.delete(t);return e}shouldHighlightNonBasicASCII(e,t){const i=e.codePointAt(0);if(this.allowedCodePoints.has(i))return 0;if(this.options.nonBasicASCII)return 1;let s=!1,o=!1;if(t)for(const r of t){const a=r.codePointAt(0),l=Nm(r);s=s||l,!l&&!this.ambiguousCharacters.isAmbiguous(a)&&!ta.isInvisibleCharacter(a)&&(o=!0)}return!s&&o?0:this.options.invisibleCharacters&&!aO(e)&&ta.isInvisibleCharacter(i)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(i)?3:0}}function aO(n){return n===" "||n===` -`||n===" "}class lO{constructor(e,t){this.changes=e,this.hitTimeout=t}}class og{constructor(e,t,i){this.originalRange=e,this.modifiedRange=t,this.innerChanges=i}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}}class mv{constructor(e,t){this.originalRange=e,this.modifiedRange=t}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}}let uo=class n1{static joinMany(e){if(e.length===0)return[];let t=e[0];for(let i=1;i=a.startLineNumber?r=new n1(r.startLineNumber,Math.max(r.endLineNumberExclusive,a.endLineNumberExclusive)):(i.push(r),r=a)}return r!==null&&i.push(r),i}constructor(e,t){if(e>t)throw new Xr(`startLineNumber ${e} cannot be after endLineNumberExclusive ${t}`);this.startLineNumber=e,this.endLineNumberExclusive=t}contains(e){return this.startLineNumber<=e&&enew mv(new L(u.originalStartLineNumber,u.originalStartColumn,u.originalEndLineNumber,u.originalEndColumn),new L(u.modifiedStartLineNumber,u.modifiedStartColumn,u.modifiedEndLineNumber,u.modifiedEndColumn))));a&&(a.modifiedRange.endLineNumberExclusive===d.modifiedRange.startLineNumber||a.originalRange.endLineNumberExclusive===d.originalRange.startLineNumber)&&(d=new og(a.originalRange.join(d.originalRange),a.modifiedRange.join(d.modifiedRange),a.innerChanges&&d.innerChanges?a.innerChanges.concat(d.innerChanges):void 0),r.pop()),r.push(d),a=d}return rk(()=>fR(r,(l,h)=>h.originalRange.startLineNumber-l.originalRange.endLineNumberExclusive===h.modifiedRange.startLineNumber-l.modifiedRange.endLineNumberExclusive&&l.originalRange.endLineNumberExclusive(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}}class rg{constructor(e,t,i,s,o,r,a,l){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=s,this.modifiedStartLineNumber=o,this.modifiedStartColumn=r,this.modifiedEndLineNumber=a,this.modifiedEndColumn=l}static createFromDiffChange(e,t,i){const s=t.getStartLineNumber(e.originalStart),o=t.getStartColumn(e.originalStart),r=t.getEndLineNumber(e.originalStart+e.originalLength-1),a=t.getEndColumn(e.originalStart+e.originalLength-1),l=i.getStartLineNumber(e.modifiedStart),h=i.getStartColumn(e.modifiedStart),c=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),d=i.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new rg(s,o,r,a,l,h,c,d)}}function xq(n){if(n.length<=1)return n;const e=[n[0]];let t=e[0];for(let i=1,s=n.length;i0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&o()){const g=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),m=s.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(g.getElements().length>0&&m.getElements().length>0){let f=hO(g,m,o,!0).changes;a&&(f=xq(f)),u=[];for(let _=0,b=f.length;_1&&f>1;){const _=u.charCodeAt(m-2),b=g.charCodeAt(f-2);if(_!==b)break;m--,f--}(m>1||f>1)&&this._pushTrimWhitespaceCharChange(s,o+1,1,m,r+1,1,f)}{let m=Pk(u,1),f=Pk(g,1);const _=u.length+1,b=g.length+1;for(;m<_&&f!0;const e=Date.now();return()=>Date.now()-et))return new ei(e,t)}constructor(e,t){if(this.start=e,this.endExclusive=t,e>t)throw new Xr(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new ei(this.start+e,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}containsRange(e){return this.start<=e.start&&e.endExclusive<=this.endExclusive}join(e){return new ei(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const t=Math.max(this.start,e.start),i=Math.min(this.endExclusive,e.endExclusive);if(t<=i)return new ei(t,i)}}class il{static trivial(e,t){return new il([new Wo(new ei(0,e.length),new ei(0,t.length))],!1)}static trivialTimedOut(e,t){return new il([new Wo(new ei(0,e.length),new ei(0,t.length))],!0)}constructor(e,t){this.diffs=e,this.hitTimeout=t}}class Wo{constructor(e,t){this.seq1Range=e,this.seq2Range=t}reverse(){return new Wo(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new Wo(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}}class Um{isValid(){return!0}}Um.instance=new Um;class Eq{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new Xr("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime0&&f>0&&r.get(m-1,f-1)===3&&(v+=a.get(m-1,f-1)),v+=s?s(m,f):1):v=-1;const C=Math.max(_,b,v);if(C===v){const w=m>0&&f>0?a.get(m-1,f-1):0;a.set(m,f,w+1),r.set(m,f,3)}else C===_?(a.set(m,f,0),r.set(m,f,1)):C===b&&(a.set(m,f,0),r.set(m,f,2));o.set(m,f,C)}const l=[];let h=e.length,c=t.length;function d(m,f){(m+1!==h||f+1!==c)&&l.push(new Wo(new ei(m+1,h),new ei(f+1,c))),h=m,c=f}let u=e.length-1,g=t.length-1;for(;u>=0&&g>=0;)r.get(u,g)===3?(d(u,g),u--,g--):r.get(u,g)===1?u--:g--;return d(-1,-1),l.reverse(),new il(l,!1)}}function uO(n,e,t){let i=t;return i=Tq(n,e,i),i=Mq(n,e,i),i}function Iq(n,e,t){const i=[];for(const s of t){const o=i[i.length-1];if(!o){i.push(s);continue}s.seq1Range.start-o.seq1Range.endExclusive<=2||s.seq2Range.start-o.seq2Range.endExclusive<=2?i[i.length-1]=new Wo(o.seq1Range.join(s.seq1Range),o.seq2Range.join(s.seq2Range)):i.push(s)}return i}function Tq(n,e,t){const i=[];t.length>0&&i.push(t[0]);for(let s=1;s0?t[i-1].seq2Range.endExclusive:-1,r=i+10?t[i-1].seq1Range.endExclusive:-1,r=i+1s&&t.getElement(n.seq2Range.start-o)===t.getElement(n.seq2Range.endExclusive-o)&&o<20;)o++;o--;let r=0;for(;n.seq2Range.start+rl&&(l=g,a=h)}return a!==0?new Wo(n.seq1Range.delta(a),n.seq2Range.delta(a)):n}class Aq{compute(e,t,i=Um.instance){if(e.length===0||t.length===0)return il.trivial(e,t);function s(g,m){for(;g=this.negativeArr.length){const i=this.negativeArr;this.negativeArr=new Int32Array(i.length*2),this.negativeArr.set(i)}this.negativeArr[e]=t}else{if(e>=this.positiveArr.length){const i=this.positiveArr;this.positiveArr=new Int32Array(i.length*2),this.positiveArr.set(i)}this.positiveArr[e]=t}}}class Oq{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,t){e<0?(e=-e-1,this.negativeArr[e]=t):this.positiveArr[e]=t}}class Pq{constructor(){this.dynamicProgrammingDiffing=new Nq,this.myersDiffingAlgorithm=new Aq}computeDiff(e,t,i){const s=i.maxComputationTimeMs===0?Um.instance:new Eq(i.maxComputationTimeMs),o=!i.ignoreTrimWhitespace,r=new Map;function a(w){let S=r.get(w);return S===void 0&&(S=r.size,r.set(w,S)),S}const l=e.map(w=>a(w.trim())),h=t.map(w=>a(w.trim())),c=new mO(l,e),d=new mO(h,t),u=(()=>c.length+d.length<1500?this.dynamicProgrammingDiffing.compute(c,d,s,(w,S)=>e[w]===t[S]?t[S].length===0?.1:1+Math.log(1+t[S].length):.99):this.myersDiffingAlgorithm.compute(c,d))();let g=u.diffs,m=u.hitTimeout;g=uO(c,d,g);const f=[],_=w=>{if(o)for(let S=0;Sw.seq1Range.start-b===w.seq2Range.start-v);const S=w.seq1Range.start-b;_(S),b=w.seq1Range.endExclusive,v=w.seq2Range.endExclusive;const T=this.refineDiff(e,t,w,s,o);T.hitTimeout&&(m=!0);for(const x of T.mappings)f.push(x)}_(e.length-b);const C=Wq(f,e,t);return new lO(C,m)}refineDiff(e,t,i,s,o){const r=new _O(e,i.seq1Range,o),a=new _O(t,i.seq2Range,o),l=r.length+a.length<500?this.dynamicProgrammingDiffing.compute(r,a,s):this.myersDiffingAlgorithm.compute(r,a,s);let h=l.diffs;return h=uO(r,a,h),h=Fq(r,a,h),h=Iq(r,a,h),{mappings:h.map(c=>new mv(r.translateRange(c.seq1Range),a.translateRange(c.seq2Range))),hitTimeout:l.hitTimeout}}}function Fq(n,e,t){const i=[];let s;function o(){if(!s)return;const r=s.s1Range.length-s.deleted;s.s2Range.length-s.added,Math.max(s.deleted,s.added)+(s.count-1)>r&&i.push(new Wo(s.s1Range,s.s2Range)),s=void 0}for(const r of t){let a=function(u,g){var m,f,_,b;if(!s||!s.s1Range.containsRange(u)||!s.s2Range.containsRange(g))if(s&&!(s.s1Range.endExclusive0||e.length>0;){const i=n[0],s=e[0];let o;i&&(!s||i.seq1Range.start0&&t[t.length-1].seq1Range.endExclusive>=o.seq1Range.start?t[t.length-1]=t[t.length-1].join(o):t.push(o)}return t}function Wq(n,e,t){const i=[];for(const s of Hq(n.map(o=>Vq(o,e,t)),(o,r)=>o.originalRange.overlapOrTouch(r.originalRange)||o.modifiedRange.overlapOrTouch(r.modifiedRange))){const o=s[0],r=s[s.length-1];i.push(new og(o.originalRange.join(r.originalRange),o.modifiedRange.join(r.modifiedRange),s.map(a=>a.innerChanges[0])))}return rk(()=>fR(i,(s,o)=>o.originalRange.startLineNumber-s.originalRange.endLineNumberExclusive===o.modifiedRange.startLineNumber-s.modifiedRange.endLineNumberExclusive&&s.originalRange.endLineNumberExclusive=t[n.modifiedRange.startLineNumber-1].length&&n.originalRange.startColumn-1>=e[n.originalRange.startLineNumber-1].length&&(i=1),n.modifiedRange.endColumn===1&&n.originalRange.endColumn===1&&n.originalRange.startLineNumber+i<=n.originalRange.endLineNumber&&n.modifiedRange.startLineNumber+i<=n.modifiedRange.endLineNumber&&(s=-1);const o=new uo(n.originalRange.startLineNumber+i,n.originalRange.endLineNumber+1+s),r=new uo(n.modifiedRange.startLineNumber+i,n.modifiedRange.endLineNumber+1+s);return new og(o,r,[n])}function*Hq(n,e){let t,i;for(const s of n)i!==void 0&&e(i,s)?t.push(s):(t&&(yield t),t=[s]),i=s;t&&(yield t)}class mO{constructor(e,t){this.trimmedHash=e,this.lines=t}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){const t=e===0?0:fO(this.lines[e-1]),i=e===this.lines.length?0:fO(this.lines[e]);return 1e3-(t+i)}}function fO(n){let e=0;for(;e0&&t.endExclusive>=e.length&&(t=new ei(t.start-1,t.endExclusive),s=!0),this.lineRange=t;for(let o=this.lineRange.start;oString.fromCharCode(e)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const t=bO(e>0?this.elements[e-1]:-1),i=bO(ee?i=o:t=o+1}const s=t===0?0:this.firstCharOffsetByLineMinusOne[t-1];return new W(this.lineRange.start+t+1,e-s+1+this.offsetByLine[t])}translateRange(e){return L.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length||!Bk(this.elements[e]))return;let t=e;for(;t>0&&Bk(this.elements[t-1]);)t--;let i=e;for(;i=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57}const zq={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function vO(n){return zq[n]}function bO(n){return n===10?7:n===13?6:Uq(n)?5:n>=97&&n<=122?0:n>=65&&n<=90?1:n>=48&&n<=57?2:n===-1?3:4}function Uq(n){return n===32||n===9}const CO={smart:new Lq,experimental:new Pq};var Vc=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(c){try{h(i.next(c))}catch(d){r(d)}}function l(c){try{h(i.throw(c))}catch(d){r(d)}}function h(c){c.done?o(c.value):s(c.value).then(a,l)}h((i=i.apply(n,e||[])).next())})};class Kq extends cq{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){const i=mm(e.column,vA(t),this._lines[e.lineNumber-1],0);return i?new L(e.lineNumber,i.startColumn,e.lineNumber,i.endColumn):null}words(e){const t=this._lines,i=this._wordenize.bind(this);let s=0,o="",r=0,a=[];return{*[Symbol.iterator](){for(;;)if(rthis._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,s=!0;else{const o=this._lines[t-1].length+1;i<1?(i=1,s=!0):i>o&&(i=o,s=!0)}return s?{lineNumber:t,column:i}:e}}class vh{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new Kq(we.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){this._models[e]&&this._models[e].onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeUnicodeHighlights(e,t,i){return Vc(this,void 0,void 0,function*(){const s=this._getModel(e);return s?Rk.computeUnicodeHighlights(s,t,i):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(e,t,i,s){return Vc(this,void 0,void 0,function*(){const o=this._getModel(e),r=this._getModel(t);return!o||!r?null:vh.computeDiff(o,r,i,s)})}static computeDiff(e,t,i,s){const o=s==="experimental"?CO.experimental:CO.smart,r=e.getLinesContent(),a=t.getLinesContent(),l=o.computeDiff(r,a,i);return{identical:l.changes.length>0?!1:this._modelsAreIdentical(e,t),quitEarly:l.hitTimeout,changes:l.changes.map(h=>{var c;return[h.originalRange.startLineNumber,h.originalRange.endLineNumberExclusive,h.modifiedRange.startLineNumber,h.modifiedRange.endLineNumberExclusive,(c=h.innerChanges)===null||c===void 0?void 0:c.map(d=>[d.originalRange.startLineNumber,d.originalRange.startColumn,d.originalRange.endLineNumber,d.originalRange.endColumn,d.modifiedRange.startLineNumber,d.modifiedRange.startColumn,d.modifiedRange.endLineNumber,d.modifiedRange.endColumn])]})}}static _modelsAreIdentical(e,t){const i=e.getLineCount(),s=t.getLineCount();if(i!==s)return!1;for(let o=1;o<=i;o++){const r=e.getLineContent(o),a=t.getLineContent(o);if(r!==a)return!1}return!0}computeMoreMinimalEdits(e,t,i){return Vc(this,void 0,void 0,function*(){const s=this._getModel(e);if(!s)return t;const o=[];let r;t=t.slice(0).sort((a,l)=>{if(a.range&&l.range)return L.compareRangesUsingStarts(a.range,l.range);const h=a.range?0:1,c=l.range?0:1;return h-c});for(let{range:a,text:l,eol:h}of t){if(typeof h=="number"&&(r=h),L.isEmpty(a)&&!l)continue;const c=s.getValueInRange(a);if(l=l.replace(/\r\n|\n|\r/g,s.eol),c===l)continue;if(Math.max(l.length,c.length)>vh._diffLimit){o.push({range:a,text:l});continue}const d=aq(c,l,i),u=s.offsetAt(L.lift(a).getStartPosition());for(const g of d){const m=s.positionAt(u+g.originalStart),f=s.positionAt(u+g.originalStart+g.originalLength),_={text:l.substr(g.modifiedStart,g.modifiedLength),range:{startLineNumber:m.lineNumber,startColumn:m.column,endLineNumber:f.lineNumber,endColumn:f.column}};s.getValueInRange(_.range)!==_.text&&o.push(_)}}return typeof r=="number"&&o.push({eol:r,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o})}computeLinks(e){return Vc(this,void 0,void 0,function*(){const t=this._getModel(e);return t?mq(t):null})}textualSuggest(e,t,i,s){return Vc(this,void 0,void 0,function*(){const o=new is(!0),r=new RegExp(i,s),a=new Set;e:for(const l of e){const h=this._getModel(l);if(h){for(const c of h.words(r))if(!(c===t||!isNaN(Number(c)))&&(a.add(c),a.size>vh._suggestionsLimit))break e}}return{words:Array.from(a),duration:o.elapsed()}})}computeWordRanges(e,t,i,s){return Vc(this,void 0,void 0,function*(){const o=this._getModel(e);if(!o)return Object.create(null);const r=new RegExp(i,s),a=Object.create(null);for(let l=t.startLineNumber;lthis._host.fhr(o,r)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(s,t),Promise.resolve(WS(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(i){return Promise.reject(i)}}}vh._diffLimit=1e5,vh._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=tR());const Wk=Qe("textResourceConfigurationService"),wO=Qe("textResourcePropertiesService"),go=Qe("logService");var Sn;(function(n){n[n.Off=0]="Off",n[n.Trace=1]="Trace",n[n.Debug=2]="Debug",n[n.Info=3]="Info",n[n.Warning=4]="Warning",n[n.Error=5]="Error"})(Sn||(Sn={}));const yO=Sn.Info;class SO extends H{constructor(){super(...arguments),this.level=yO,this._onDidChangeLogLevel=this._register(new O),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==Sn.Off&&this.level<=e}}class jq extends SO{constructor(e=yO,t=!0){super(),this.useColors=t,this.setLevel(e)}trace(e,...t){this.checkLogLevel(Sn.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...t):console.log(e,...t))}debug(e,...t){this.checkLogLevel(Sn.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...t):console.log(e,...t))}info(e,...t){this.checkLogLevel(Sn.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...t):console.log(e,...t))}error(e,...t){this.checkLogLevel(Sn.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...t):console.error(e,...t))}dispose(){}}class qq extends SO{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const t of this.loggers)t.setLevel(e);super.setLevel(e)}trace(e,...t){for(const i of this.loggers)i.trace(e,...t)}debug(e,...t){for(const i of this.loggers)i.debug(e,...t)}info(e,...t){for(const i of this.loggers)i.info(e,...t)}error(e,...t){for(const i of this.loggers)i.error(e,...t)}dispose(){for(const e of this.loggers)e.dispose()}}function $q(n){switch(n){case Sn.Trace:return"trace";case Sn.Debug:return"debug";case Sn.Info:return"info";case Sn.Warning:return"warn";case Sn.Error:return"error";case Sn.Off:return"off"}}new he("logLevel",$q(Sn.Info));const de=Qe("ILanguageFeaturesService");var Gq=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},Km=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}},fv=globalThis&&globalThis.__awaiter||function(n,e,t,i){function s(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(c){try{h(i.next(c))}catch(d){r(d)}}function l(c){try{h(i.throw(c))}catch(d){r(d)}}function h(c){c.done?o(c.value):s(c.value).then(a,l)}h((i=i.apply(n,e||[])).next())})};const LO=60*1e3,kO=5*60*1e3;function Hc(n,e){const t=n.getModel(e);return!(!t||t.isTooLargeForSyncing())}let Vk=class extends H{constructor(n,e,t,i,s){super(),this._modelService=n,this._workerManager=this._register(new Xq(this._modelService,i)),this._logService=t,this._register(s.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(o,r)=>Hc(this._modelService,o.uri)?this._workerManager.withWorker().then(a=>a.computeLinks(o.uri)).then(a=>a&&{links:a}):Promise.resolve({links:[]})})),this._register(s.completionProvider.register("*",new Yq(this._workerManager,e,this._modelService,i)))}dispose(){super.dispose()}canComputeUnicodeHighlights(n){return Hc(this._modelService,n)}computedUnicodeHighlights(n,e,t){return this._workerManager.withWorker().then(i=>i.computedUnicodeHighlights(n,e,t))}computeDiff(n,e,t,i){return fv(this,void 0,void 0,function*(){const s=yield this._workerManager.withWorker().then(o=>o.computeDiff(n,e,t,i));return s?{identical:s.identical,quitEarly:s.quitEarly,changes:s.changes.map(o=>{var r;return new og(new uo(o[0],o[1]),new uo(o[2],o[3]),(r=o[4])===null||r===void 0?void 0:r.map(a=>new mv(new L(a[0],a[1],a[2],a[3]),new L(a[4],a[5],a[6],a[7]))))})}:null})}computeMoreMinimalEdits(n,e,t=!1){if(Cn(e)){if(!Hc(this._modelService,n))return Promise.resolve(e);const i=is.create(!0),s=this._workerManager.withWorker().then(o=>o.computeMoreMinimalEdits(n,e,t));return s.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",n.toString(!0),i.elapsed())),Promise.race([s,fh(1e3).then(()=>e)])}else return Promise.resolve(void 0)}canNavigateValueSet(n){return Hc(this._modelService,n)}navigateValueSet(n,e,t){return this._workerManager.withWorker().then(i=>i.navigateValueSet(n,e,t))}canComputeWordRanges(n){return Hc(this._modelService,n)}computeWordRanges(n,e){return this._workerManager.withWorker().then(t=>t.computeWordRanges(n,e))}};Vk=Gq([Km(0,Yt),Km(1,Wk),Km(2,go),Km(3,Ht),Km(4,de)],Vk);class Yq{constructor(e,t,i,s){this.languageConfigurationService=s,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=i}provideCompletionItems(e,t){return fv(this,void 0,void 0,function*(){const i=this._configurationService.getValue(e.uri,t,"editor");if(!i.wordBasedSuggestions)return;const s=[];if(i.wordBasedSuggestionsMode==="currentDocument")Hc(this._modelService,e.uri)&&s.push(e.uri);else for(const c of this._modelService.getModels())Hc(this._modelService,c.uri)&&(c===e?s.unshift(c.uri):(i.wordBasedSuggestionsMode==="allDocuments"||c.getLanguageId()===e.getLanguageId())&&s.push(c.uri));if(s.length===0)return;const o=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),r=e.getWordAtPosition(t),a=r?new L(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):L.fromPositions(t),l=a.setEndPosition(t.lineNumber,t.column),h=yield(yield this._workerManager.withWorker()).textualSuggest(s,r==null?void 0:r.word,o);if(h)return{duration:h.duration,suggestions:h.words.map(c=>({kind:18,label:c,insertText:c,range:{insert:l,replace:a}}))}})}}class Xq extends H{constructor(e,t){super(),this.languageConfigurationService=t,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new Wm).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(kO/2)),this._register(this._modelService.onModelRemoved(i=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){this._editorWorkerClient&&this._modelService.getModels().length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){this._editorWorkerClient&&new Date().getTime()-this._lastWorkerUsedTime>kO&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new DO(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class Zq extends H{constructor(e,t,i){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!i){const s=new Wm;s.cancelAndSet(()=>this._checkStopModelSync(),Math.round(LO/2)),this._register(s)}}dispose(){for(const e in this._syncedModels)ft(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,t){for(const i of e){const s=i.toString();this._syncedModels[s]||this._beginModelSync(i,t),this._syncedModels[s]&&(this._syncedModelsLastUsedTime[s]=new Date().getTime())}}_checkStopModelSync(){const e=new Date().getTime(),t=[];for(const i in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[i]>LO&&t.push(i);for(const i of t)this._stopModelSync(i)}_beginModelSync(e,t){const i=this._modelService.getModel(e);if(!i||!t&&i.isTooLargeForSyncing())return;const s=e.toString();this._proxy.acceptNewModel({url:i.uri.toString(),lines:i.getLinesContent(),EOL:i.getEOL(),versionId:i.getVersionId()});const o=new X;o.add(i.onDidChangeContent(r=>{this._proxy.acceptModelChanged(s.toString(),r)})),o.add(i.onWillDispose(()=>{this._stopModelSync(s)})),o.add(Be(()=>{this._proxy.acceptRemovedModel(s)})),this._syncedModels[s]=o}_stopModelSync(e){const t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],ft(t)}}class xO{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class Hk{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class DO extends H{constructor(e,t,i,s){super(),this.languageConfigurationService=s,this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new lv(i),this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new Qj(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new Hk(this)))}catch(e){Dk(e),this._worker=new xO(new vh(new Hk(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>(Dk(e),this._worker=new xO(new vh(new Hk(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new Zq(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e,t=!1){return fv(this,void 0,void 0,function*(){return this._disposed?Promise.reject(EU()):this._getProxy().then(i=>(this._getOrCreateModelManager(i).ensureSyncedResources(e,t),i))})}computedUnicodeHighlights(e,t,i){return this._withSyncedResources([e]).then(s=>s.computeUnicodeHighlights(e.toString(),t,i))}computeDiff(e,t,i,s){return this._withSyncedResources([e,t],!0).then(o=>o.computeDiff(e.toString(),t.toString(),i,s))}computeMoreMinimalEdits(e,t,i){return this._withSyncedResources([e]).then(s=>s.computeMoreMinimalEdits(e.toString(),t,i))}computeLinks(e){return this._withSyncedResources([e]).then(t=>t.computeLinks(e.toString()))}textualSuggest(e,t,i){return fv(this,void 0,void 0,function*(){const s=yield this._withSyncedResources(e),o=i.source,r=HL(i);return s.textualSuggest(e.map(a=>a.toString()),t,o,r)})}computeWordRanges(e,t){return this._withSyncedResources([e]).then(i=>{const s=this._modelService.getModel(e);if(!s)return Promise.resolve(null);const o=this.languageConfigurationService.getLanguageConfiguration(s.getLanguageId()).getWordDefinition(),r=o.source,a=HL(o);return i.computeWordRanges(e.toString(),t,r,a)})}navigateValueSet(e,t,i){return this._withSyncedResources([e]).then(s=>{const o=this._modelService.getModel(e);if(!o)return null;const r=this.languageConfigurationService.getLanguageConfiguration(o.getLanguageId()).getWordDefinition(),a=r.source,l=HL(r);return s.navigateValueSet(e.toString(),t,i,a,l)})}dispose(){super.dispose(),this._disposed=!0}}function Qq(n,e,t){return new Jq(n,e,t)}class Jq extends DO{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||typeof this._foreignModuleHost[e]!="function")return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(i){return Promise.reject(i)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(e=>{const t=this._foreignModuleHost?WS(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then(i=>{this._foreignModuleCreateData=null;const s=(a,l)=>e.fmr(a,l),o=(a,l)=>function(){const h=Array.prototype.slice.call(arguments,0);return l(a,h)},r={};for(const a of i)r[a]=o(a,s);return r})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(t=>this.getProxy())}}class gn{static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static getClassNameFromMetadata(e){let t="mtk"+this.getForeground(e);const i=this.getFontStyle(e);return i&1&&(t+=" mtki"),i&2&&(t+=" mtkb"),i&4&&(t+=" mtku"),i&8&&(t+=" mtks"),t}static getInlineStyleFromMetadata(e,t){const i=this.getForeground(e),s=this.getFontStyle(e);let o=`color: ${t[i]};`;s&1&&(o+="font-style: italic;"),s&2&&(o+="font-weight: bold;");let r="";return s&4&&(r+=" underline"),s&8&&(r+=" line-through"),r&&(o+=`text-decoration:${r};`),o}static getPresentationFromMetadata(e){const t=this.getForeground(e),i=this.getFontStyle(e);return{foreground:t,italic:!!(i&1),bold:!!(i&2),underline:!!(i&4),strikethrough:!!(i&8)}}}class Ai{static createEmpty(e,t){const i=Ai.defaultTokenMetadata,s=new Uint32Array(2);return s[0]=e.length,s[1]=i,new Ai(s,e,t)}constructor(e,t,i){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t,this._languageIdCodec=i}equals(e){return e instanceof Ai?this.slicedEquals(e,0,this._tokensCount):!1}slicedEquals(e,t,i){if(this._text!==e._text||this._tokensCount!==e._tokensCount)return!1;const s=t<<1,o=s+(i<<1);for(let r=s;r0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[(e<<1)+1]}getLanguageId(e){const t=this._tokens[(e<<1)+1],i=gn.getLanguageId(t);return this._languageIdCodec.decodeLanguageId(i)}getStandardTokenType(e){const t=this._tokens[(e<<1)+1];return gn.getTokenType(t)}getForeground(e){const t=this._tokens[(e<<1)+1];return gn.getForeground(t)}getClassName(e){const t=this._tokens[(e<<1)+1];return gn.getClassNameFromMetadata(t)}getInlineStyle(e,t){const i=this._tokens[(e<<1)+1];return gn.getInlineStyleFromMetadata(i,t)}getPresentation(e){const t=this._tokens[(e<<1)+1];return gn.getPresentationFromMetadata(t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return Ai.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,i){return new zk(this,e,t,i)}static convertToEndOffset(e,t){const i=(e.length>>>1)-1;for(let s=0;s>>1)-1;for(;it&&(s=o)}return i}withInserted(e){if(e.length===0)return this;let t=0,i=0,s="";const o=new Array;let r=0;for(;;){const a=tr){s+=this._text.substring(r,l.offset);const h=this._tokens[(t<<1)+1];o.push(s.length,h),r=l.offset}s+=l.text,o.push(s.length,l.tokenMetadata),i++}else break}return new Ai(new Uint32Array(o),s,this._languageIdCodec)}}Ai.defaultTokenMetadata=(32768|2<<24)>>>0;class zk{constructor(e,t,i,s){this._source=e,this._startOffset=t,this._endOffset=i,this._deltaOffset=s,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let o=this._firstTokenIndex,r=e.getCount();o=i);o++)this._tokensCount++}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof zk?this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount):!1}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}class _s{constructor(e,t,i,s){this.startColumn=e,this.endColumn=t,this.className=i,this.type=s,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const i=e.length,s=t.length;if(i!==s)return!1;for(let o=0;o=o||(a[l++]=new _s(Math.max(1,h.startColumn-s+1),Math.min(r+1,h.endColumn-s+1),h.className,h.type));return a}static filter(e,t,i,s){if(e.length===0)return[];const o=[];let r=0;for(let a=0,l=e.length;at||c.isEmpty()&&(h.type===0||h.type===3))continue;const d=c.startLineNumber===t?c.startColumn:i,u=c.endLineNumber===t?c.endColumn:s;o[r++]=new _s(d,u,h.inlineClassName,h.type)}return o}static _typeCompare(e,t){const i=[2,0,1,3];return i[e]-i[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;const i=_s._typeCompare(e.type,t.type);return i!==0?i:e.className!==t.className?e.className0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(s,0,e),this.classNames.splice(s,0,t),this.metadata.splice(s,0,i);break}this.count++}}class e${static normalize(e,t){if(t.length===0)return[];const i=[],s=new _v;let o=0;for(let r=0,a=t.length;r1){const f=e.charCodeAt(h-2);Ti(f)&&h--}if(c>1){const f=e.charCodeAt(c-2);Ti(f)&&c--}const g=h-1,m=c-2;o=s.consumeLowerThan(g,o,i),s.count===0&&(o=g),s.insert(m,d,u)}return s.consumeLowerThan(1073741824,o,i),i}}class Vi{constructor(e,t,i,s){this.endIndex=e,this.type=t,this.metadata=i,this.containsRTL=s,this._linePartBrand=void 0}isWhitespace(){return!!(this.metadata&1)}isPseudoAfter(){return!!(this.metadata&4)}}class NO{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class bh{constructor(e,t,i,s,o,r,a,l,h,c,d,u,g,m,f,_,b,v,C){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=s,this.isBasicASCII=o,this.containsRTL=r,this.fauxIndentLength=a,this.lineTokens=l,this.lineDecorations=h.sort(_s.compare),this.tabSize=c,this.startVisibleColumn=d,this.spaceWidth=u,this.stopRenderingLineAfter=f,this.renderWhitespace=_==="all"?4:_==="boundary"?1:_==="selection"?2:_==="trailing"?3:0,this.renderControlCharacters=b,this.fontLigatures=v,this.selectionsOnLine=C&&C.sort((T,x)=>T.startOffset>>16}static getCharIndex(e){return(e&65535)>>>0}constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,t,i,s){const o=(t<<16|i<<0)>>>0;this._data[e-1]=o,this._horizontalOffset[e-1]=s}getHorizontalOffset(e){return this._horizontalOffset.length===0?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return this.length===0?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const t=this.charOffsetToPartData(e-1),i=ra.getPartIndex(t),s=ra.getCharIndex(t);return new Uk(i,s)}getColumn(e,t){return this.partDataToCharOffset(e.partIndex,t,e.charIndex)+1}partDataToCharOffset(e,t,i){if(this.length===0)return 0;const s=(e<<16|i<<0)>>>0;let o=0,r=this.length-1;for(;o+1>>1,_=this._data[f];if(_===s)return f;_>s?r=f:o=f}if(o===r)return o;const a=this._data[o],l=this._data[r];if(a===s)return o;if(l===s)return r;const h=ra.getPartIndex(a),c=ra.getCharIndex(a),d=ra.getPartIndex(l);let u;h!==d?u=t:u=ra.getCharIndex(l);const g=i-c,m=u-i;return g<=m?o:r}}class Kk{constructor(e,t,i){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}function jm(n,e){if(n.lineContent.length===0){if(n.lineDecorations.length>0){e.appendString("");let t=0,i=0,s=0;for(const r of n.lineDecorations)(r.type===1||r.type===2)&&(e.appendString(''),r.type===1&&(s|=1,t++),r.type===2&&(s|=2,i++));e.appendString("");const o=new ra(1,t+i);return o.setColumnInfo(1,t,0,0),new Kk(o,!1,s)}return e.appendString(""),new Kk(new ra(0,0),!1,0)}return h$(n$(n),e)}class t${constructor(e,t,i,s){this.characterMapping=e,this.html=t,this.containsRTL=i,this.containsForeignElements=s}}function vv(n){const e=new Gu(1e4),t=jm(n,e);return new t$(t.characterMapping,e.build(),t.containsRTL,t.containsForeignElements)}class i${constructor(e,t,i,s,o,r,a,l,h,c,d,u,g,m,f,_){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.len=s,this.isOverflowing=o,this.overflowingCharCount=r,this.parts=a,this.containsForeignElements=l,this.fauxIndentLength=h,this.tabSize=c,this.startVisibleColumn=d,this.containsRTL=u,this.spaceWidth=g,this.renderSpaceCharCode=m,this.renderWhitespace=f,this.renderControlCharacters=_}}function n$(n){const e=n.lineContent;let t,i,s;n.stopRenderingLineAfter!==-1&&n.stopRenderingLineAfter0){for(let a=0,l=n.lineDecorations.length;a0&&(o[r++]=new Vi(i,"",0,!1));let a=i;for(let l=0,h=t.getCount();l=s){const g=e?Ku(n.substring(a,s)):!1;o[r++]=new Vi(s,d,0,g);break}const u=e?Ku(n.substring(a,c)):!1;o[r++]=new Vi(c,d,0,u),a=c}return o}function o$(n,e,t){let i=0;const s=[];let o=0;if(t)for(let r=0,a=e.length;r=50&&(s[o++]=new Vi(g+1,c,d,u),m=g+1,g=-1);m!==h&&(s[o++]=new Vi(h,c,d,u))}else s[o++]=l;i=h}else for(let r=0,a=e.length;r50){const d=l.type,u=l.metadata,g=l.containsRTL,m=Math.ceil(c/50);for(let f=1;f=8234&&n<=8238||n>=8294&&n<=8297||n>=8206&&n<=8207||n===1564}function r$(n,e){const t=[];let i=new Vi(0,"",0,!1),s=0;for(const o of e){const r=o.endIndex;for(;si.endIndex&&(i=new Vi(s,o.type,o.metadata,o.containsRTL),t.push(i)),i=new Vi(s+1,"mtkcontrol",o.metadata,!1),t.push(i))}s>i.endIndex&&(i=new Vi(r,o.type,o.metadata,o.containsRTL),t.push(i))}return t}function a$(n,e,t,i){const s=n.continuesWithWrappedLine,o=n.fauxIndentLength,r=n.tabSize,a=n.startVisibleColumn,l=n.useMonospaceOptimizations,h=n.selectionsOnLine,c=n.renderWhitespace===1,d=n.renderWhitespace===3,u=n.renderSpaceWidth!==n.spaceWidth,g=[];let m=0,f=0,_=i[f].type,b=i[f].containsRTL,v=i[f].endIndex;const C=i.length;let w=!1,S=An(e),T;S===-1?(w=!0,S=t,T=t):T=gr(e);let x=!1,k=0,D=h&&h[k],P=a%r;for(let V=o;V=D.endOffset&&(k++,D=h&&h[k]);let se;if(VT)se=!0;else if(U===9)se=!0;else if(U===32)if(c)if(x)se=!0;else{const ge=V+1V),se&&d&&(se=w||V>T),se&&b&&V>=S&&V<=T&&(se=!1),x){if(!se||!l&&P>=r){if(u){const ge=m>0?g[m-1].endIndex:o;for(let Oe=ge+1;Oe<=V;Oe++)g[m++]=new Vi(Oe,"mtkw",1,!1)}else g[m++]=new Vi(V,"mtkw",1,!1);P=P%r}}else(V===v||se&&V>o)&&(g[m++]=new Vi(V,_,0,b),P=P%r);for(U===9?P=r:dh(U)?P+=2:P++,x=se;V===v&&(f++,f0?e.charCodeAt(t-1):0,U=t>1?e.charCodeAt(t-2):0;V===32&&U!==32&&U!==9||(R=!0)}else R=!0;if(R)if(u){const V=m>0?g[m-1].endIndex:o;for(let U=V+1;U<=t;U++)g[m++]=new Vi(U,"mtkw",1,!1)}else g[m++]=new Vi(t,"mtkw",1,!1);else g[m++]=new Vi(t,_,0,b);return g}function l$(n,e,t,i){i.sort(_s.compare);const s=e$.normalize(n,i),o=s.length;let r=0;const a=[];let l=0,h=0;for(let d=0,u=t.length;dh&&(h=v.startOffset,a[l++]=new Vi(h,f,_,b)),v.endOffset+1<=m)h=v.endOffset+1,a[l++]=new Vi(h,f+" "+v.className,_|v.metadata,b),r++;else{h=m,a[l++]=new Vi(h,f+" "+v.className,_|v.metadata,b);break}}m>h&&(h=m,a[l++]=new Vi(h,f,_,b))}const c=t[t.length-1].endIndex;if(r'):e.appendString("");for(let D=0,P=h.length;D=c&&(gt+=qe)}}for(Oe&&(e.appendString(' style="width:'),e.appendString(String(m*Re)),e.appendString('px"')),e.appendASCIICharCode(62);w1?e.appendCharCode(8594):e.appendCharCode(65515);for(let Ce=2;Ce<=qe;Ce++)e.appendCharCode(160)}else gt=2,qe=1,e.appendCharCode(f),e.appendCharCode(8204);T+=gt,x+=qe,w>=c&&(S+=qe)}}else for(e.appendASCIICharCode(62);w=c&&(S+=gt)}He?k++:k=0,w>=r&&!C&&R.isPseudoAfter()&&(C=!0,v.setColumnInfo(w+1,D,T,x)),e.appendString("")}return C||v.setColumnInfo(r+1,h.length-1,T,x),a&&(e.appendString(''),e.appendString(p("showMore","Show more ({0})",d$(l))),e.appendString("")),e.appendString(""),new Kk(v,g,s)}function c$(n){return n.toString(16).toUpperCase().padStart(4,"0")}function d$(n){return n<1024?p("overflow.chars","{0} chars",n):n<1024*1024?`${(n/1024).toFixed(1)} KB`:`${(n/1024/1024).toFixed(1)} MB`}class TO{constructor(e,t,i,s){this._viewportBrand=void 0,this.top=e|0,this.left=t|0,this.width=i|0,this.height=s|0}}class u${constructor(e,t){this.tabSize=e,this.data=t}}class jk{constructor(e,t,i,s,o,r,a){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=i,this.maxColumn=s,this.startVisibleColumn=o,this.tokens=r,this.inlineDecorations=a}}class Hs{constructor(e,t,i,s,o,r,a,l,h,c){this.minColumn=e,this.maxColumn=t,this.content=i,this.continuesWithWrappedLine=s,this.isBasicASCII=Hs.isBasicASCII(i,r),this.containsRTL=Hs.containsRTL(i,this.isBasicASCII,o),this.tokens=a,this.inlineDecorations=l,this.tabSize=h,this.startVisibleColumn=c}static isBasicASCII(e,t){return t?Nm(e):!0}static containsRTL(e,t,i){return!t&&i?Ku(e):!1}}class qm{constructor(e,t,i){this.range=e,this.inlineClassName=t,this.type=i}}class g${constructor(e,t,i,s){this.startOffset=e,this.endOffset=t,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=s}toInlineDecoration(e){return new qm(new L(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class MO{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}class AO{constructor(e,t,i){this.color=e,this.zIndex=t,this.data=i}static cmp(e,t){return e.zIndex===t.zIndex?e.colort.color?1:0:e.zIndex-t.zIndex}}function p$(n){return Array.isArray(n)}function m$(n){return!p$(n)}function RO(n){return typeof n=="string"}function OO(n){return!RO(n)}function ag(n){return!n}function Ch(n,e){return n.ignoreCase&&e?e.toLowerCase():e}function PO(n){return n.replace(/[&<>'"_]/g,"-")}function f$(n,e){console.log(`${n.languageId}: ${e}`)}function Rt(n,e){return new Error(`${n.languageId}: ${e}`)}function wh(n,e,t,i,s){const o=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g;let r=null;return e.replace(o,function(a,l,h,c,d,u,g,m,f){return ag(h)?ag(c)?!ag(d)&&d0;){const i=n.tokenizer[t];if(i)return i;const s=t.lastIndexOf(".");s<0?t=null:t=t.substr(0,s)}return null}function _$(n,e){let t=e;for(;t&&t.length>0;){if(n.stateNames[t])return!0;const i=t.lastIndexOf(".");i<0?t=null:t=t.substr(0,i)}return!1}var v$=globalThis&&globalThis.__decorate||function(n,e,t,i){var s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,e,t,i);else for(var a=n.length-1;a>=0;a--)(r=n[a])&&(o=(s<3?r(o):s>3?r(e,t,o):r(e,t))||o);return s>3&&o&&Object.defineProperty(e,t,o),o},b$=globalThis&&globalThis.__param||function(n,e){return function(t,i){e(t,i,n)}};const FO=5;class $m{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(e!==null&&e.depth>=this._maxCacheDepth)return new lg(e,t);let i=lg.getStackElementId(e);i.length>0&&(i+="|"),i+=t;let s=this._entries[i];return s||(s=new lg(e,t),this._entries[i]=s,s)}}$m._INSTANCE=new $m(FO);class lg{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";for(;e!==null;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){for(;e!==null&&t!==null;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return e===null&&t===null}equals(e){return lg._equals(this,e)}push(e){return $m.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return $m.create(this.parent,e)}}class hg{constructor(e,t){this.languageId=e,this.state=t}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new hg(this.languageId,this.state)}}class yh{static create(e,t){return this._INSTANCE.create(e,t)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,t){if(t!==null)return new Gm(e,t);if(e!==null&&e.depth>=this._maxCacheDepth)return new Gm(e,t);const i=lg.getStackElementId(e);let s=this._entries[i];return s||(s=new Gm(e,null),this._entries[i]=s,s)}}yh._INSTANCE=new yh(FO);class Gm{constructor(e,t){this.stack=e,this.embeddedLanguageData=t}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:yh.create(this.stack,this.embeddedLanguageData)}equals(e){return!(e instanceof Gm)||!this.stack.equals(e.stack)?!1:this.embeddedLanguageData===null&&e.embeddedLanguageData===null?!0:this.embeddedLanguageData===null||e.embeddedLanguageData===null?!1:this.embeddedLanguageData.equals(e.embeddedLanguageData)}}class C${constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=t,this._lastTokenLanguage=this._languageId,this._tokens.push(new wm(e,t,this._languageId)))}nestedLanguageTokenize(e,t,i,s){const o=i.languageId,r=i.state,a=Gt.get(o);if(!a)return this.enterLanguage(o),this.emit(s,""),r;const l=a.tokenize(e,t,r);if(s!==0)for(const h of l.tokens)this._tokens.push(new wm(h.offset+s,h.type,h.language));else this._tokens=this._tokens.concat(l.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,l.endState}finalize(e){return new eL(this._tokens,e)}}class Cv{constructor(e,t){this._languageService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,t){const i=this._theme.match(this._currentLanguageId,t)|1024;this._lastTokenMetadata!==i&&(this._lastTokenMetadata=i,this._tokens.push(e),this._tokens.push(i))}static _merge(e,t,i){const s=e!==null?e.length:0,o=t.length,r=i!==null?i.length:0;if(s===0&&o===0&&r===0)return new Uint32Array(0);if(s===0&&o===0)return i;if(o===0&&r===0)return e;const a=new Uint32Array(s+o+r);e!==null&&a.set(e);for(let l=0;l{if(r)return;let l=!1;for(let h=0,c=a.changedLanguages.length;h{a.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})}dispose(){this._tokenizationRegistryListener.dispose()}getLoadStatus(){const e=[];for(const t in this._embeddedLanguages){const i=Gt.get(t);if(i){if(i instanceof mV){const s=i.getLoadStatus();s.loaded===!1&&e.push(s.promise)}continue}Gt.isResolved(t)||e.push(Gt.getOrCreate(t))}return e.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then(t=>{})}}getInitialState(){const e=$m.create(null,this._lexer.start);return yh.create(e,null)}tokenize(e,t,i){if(e.length>=this._maxTokenizationLineLength)return Sk(this._languageId,i);const s=new C$,o=this._tokenize(e,t,i,s);return s.finalize(o)}tokenizeEncoded(e,t,i){if(e.length>=this._maxTokenizationLineLength)return ov(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),i);const s=new Cv(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),o=this._tokenize(e,t,i,s);return s.finalize(o)}_tokenize(e,t,i,s){return i.embeddedLanguageData?this._nestedTokenize(e,t,i,0,s):this._myTokenize(e,t,i,0,s)}_findLeavingNestedLanguageOffset(e,t){let i=this._lexer.tokenizer[t.stack.state];if(!i&&(i=bv(this._lexer,t.stack.state),!i))throw Rt(this._lexer,"tokenizer state is not defined: "+t.stack.state);let s=-1,o=!1;for(const r of i){if(!OO(r.action)||r.action.nextEmbedded!=="@pop")continue;o=!0;let a=r.regex;const l=r.regex.source;if(l.substr(0,4)==="^(?:"&&l.substr(l.length-1,1)===")"){const c=(a.ignoreCase?"i":"")+(a.unicode?"u":"");a=new RegExp(l.substr(4,l.length-5),c)}const h=e.search(a);h===-1||h!==0&&r.matchOnlyAtLineStart||(s===-1||h0&&o.nestedLanguageTokenize(a,!1,i.embeddedLanguageData,s);const l=e.substring(r);return this._myTokenize(l,t,i,s+r,o)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,i,s,o){o.enterLanguage(this._languageId);const r=e.length,a=t&&this._lexer.includeLF?e+` -`:e,l=a.length;let h=i.embeddedLanguageData,c=i.stack,d=0,u=null,g=!0;for(;g||d=l)break;g=!1;let D=this._lexer.tokenizer[b];if(!D&&(D=bv(this._lexer,b),!D))throw Rt(this._lexer,"tokenizer state is not defined: "+b);const P=a.substr(d);for(const R of D)if((d===0||!R.matchOnlyAtLineStart)&&(v=P.match(R.regex),v)){C=v[0],w=R.action;break}}if(v||(v=[""],C=""),w||(d=this._lexer.maxStack)throw Rt(this._lexer,"maximum tokenizer stack size reached: ["+c.state+","+c.parent.state+",...]");c=c.push(b)}else if(w.next==="@pop"){if(c.depth<=1)throw Rt(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(S));c=c.pop()}else if(w.next==="@popall")c=c.popall();else{let D=wh(this._lexer,w.next,C,v,b);if(D[0]==="@"&&(D=D.substr(1)),bv(this._lexer,D))c=c.push(D);else throw Rt(this._lexer,"trying to set a next state '"+D+"' that is undefined in rule: "+this._safeRuleName(S))}}w.log&&typeof w.log=="string"&&f$(this._lexer,this._lexer.languageId+": "+wh(this._lexer,w.log,C,v,b))}if(x===null)throw Rt(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(S));const k=D=>{const P=this._languageService.getLanguageIdByLanguageName(D)||this._languageService.getLanguageIdByMimeType(D)||D,R=this._getNestedEmbeddedLanguageData(P);if(d0)throw Rt(this._lexer,"groups cannot be nested: "+this._safeRuleName(S));if(v.length!==x.length+1)throw Rt(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(S));let D=0;for(let P=1;Pn});class Gk{static colorizeElement(e,t,i,s){s=s||{};const o=s.theme||"vs",r=s.mimeType||i.getAttribute("lang")||i.getAttribute("data-lang");if(!r)return console.error("Mode not detected"),Promise.resolve();const a=t.getLanguageIdByMimeType(r)||r;e.setTheme(o);const l=i.firstChild?i.firstChild.nodeValue:"";i.className+=" "+o;const h=c=>{var d;const u=(d=$k==null?void 0:$k.createHTML(c))!==null&&d!==void 0?d:c;i.innerHTML=u};return this.colorize(t,l||"",a,s).then(h,c=>console.error(c))}static colorize(e,t,i,s){return y$(this,void 0,void 0,function*(){const o=e.languageIdCodec;let r=4;s&&typeof s.tabSize=="number"&&(r=s.tabSize),XL(t)&&(t=t.substr(1));const a=Jr(t);if(!e.isRegisteredLanguageId(i))return BO(a,r,o);const l=yield Gt.getOrCreate(i);return l?S$(a,r,l,o):BO(a,r,o)})}static colorizeLine(e,t,i,s,o=4){const r=Hs.isBasicASCII(e,t),a=Hs.containsRTL(e,r,i);return vv(new bh(!1,!0,e,!1,r,a,0,s,[],o,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,t,i=4){const s=e.getLineContent(t);e.tokenization.forceTokenization(t);const o=e.tokenization.getLineTokens(t).inflate();return this.colorizeLine(s,e.mightContainNonBasicASCII(),e.mightContainRTL(),o,i)}}function S$(n,e,t,i){return new Promise((s,o)=>{const r=()=>{const a=L$(n,e,t,i);if(t instanceof Ym){const l=t.getLoadStatus();if(l.loaded===!1){l.promise.then(r,o);return}}s(a)};r()})}function BO(n,e,t){let i=[];const s=new Uint32Array(2);s[0]=0,s[1]=33587200;for(let o=0,r=n.length;o")}return i.join("")}function L$(n,e,t,i){let s=[],o=t.getInitialState();for(let r=0,a=n.length;r"),o=h.endState}return s.join("")}const Yk={clipboard:{writeText:ar||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:ar||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>ar||tk()?0:navigator.keyboard||Qa?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)};function Xk(n,e){if(typeof n=="number"){if(n===0)return null;const t=(n&65535)>>>0,i=(n&4294901760)>>>16;return i!==0?new Zk([wv(t,e),wv(i,e)]):new Zk([wv(t,e)])}else{const t=[];for(let i=0;i1?t-1:0),s=1;s/gm),G$=sl(/^data-[\-\w.\u00B7-\uFFFF]/),Y$=sl(/^aria-[\-\w]+$/),X$=sl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z$=sl(/^(?:\w+script|data):/i),Q$=sl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Qm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};function aa(n){if(Array.isArray(n)){for(var e=0,t=Array(n.length);e"u"?null:window},eG=function(n,e){if((typeof n>"u"?"undefined":Qm(n))!=="object"||typeof n.createPolicy!="function")return null;var t=null,i="data-tt-policy-suffix";e.currentScript&&e.currentScript.hasAttribute(i)&&(t=e.currentScript.getAttribute(i));var s="dompurify"+(t?"#"+t:"");try{return n.createPolicy(s,{createHTML:function(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function YO(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:J$(),e=function(K){return YO(K)};if(e.version="2.3.1",e.removed=[],!n||!n.document||n.document.nodeType!==9)return e.isSupported=!1,e;var t=n.document,i=n.document,s=n.DocumentFragment,o=n.HTMLTemplateElement,r=n.Node,a=n.Element,l=n.NodeFilter,h=n.NamedNodeMap,c=h===void 0?n.NamedNodeMap||n.MozNamedAttrMap:h,d=n.Text,u=n.Comment,g=n.DOMParser,m=n.trustedTypes,f=a.prototype,_=Sv(f,"cloneNode"),b=Sv(f,"nextSibling"),v=Sv(f,"childNodes"),C=Sv(f,"parentNode");if(typeof o=="function"){var w=i.createElement("template");w.content&&w.content.ownerDocument&&(i=w.content.ownerDocument)}var S=eG(m,t),T=S&&cm?S.createHTML(""):"",x=i,k=x.implementation,D=x.createNodeIterator,P=x.createDocumentFragment,R=x.getElementsByTagName,V=t.importNode,U={};try{U=Kc(i).documentMode?i.documentMode:{}}catch{}var se={};e.isSupported=typeof C=="function"&&k&&typeof k.createHTMLDocument<"u"&&U!==9;var ge=q$,Oe=$$,He=G$,Re=Y$,Ee=Z$,gt=Q$,qe=X$,Ce=null,be=St({},[].concat(aa(jO),aa(Jk),aa(ex),aa(tx),aa(qO))),Vt=null,Es=St({},[].concat(aa($O),aa(ix),aa(GO),aa(Lv))),to=null,Hr=null,Sc=!0,yu=!0,zr=!1,$e=!1,Lc=!1,Z0=!1,Q0=!1,kc=!1,hm=!1,pS=!0,cm=!1,mS=!0,Q=!0,j=!1,E={},M=null,F=St({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),B=null,G=St({},["audio","video","img","source","image","track"]),ke=null,ce=St({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pe="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",Ne="http://www.w3.org/1999/xhtml",kt=Ne,Ct=!1,xe=null,Gi=i.createElement("form"),Qt=function(K){xe&&xe===K||((!K||(typeof K>"u"?"undefined":Qm(K))!=="object")&&(K={}),K=Kc(K),Ce="ALLOWED_TAGS"in K?St({},K.ALLOWED_TAGS):be,Vt="ALLOWED_ATTR"in K?St({},K.ALLOWED_ATTR):Es,ke="ADD_URI_SAFE_ATTR"in K?St(Kc(ce),K.ADD_URI_SAFE_ATTR):ce,B="ADD_DATA_URI_TAGS"in K?St(Kc(G),K.ADD_DATA_URI_TAGS):G,M="FORBID_CONTENTS"in K?St({},K.FORBID_CONTENTS):F,to="FORBID_TAGS"in K?St({},K.FORBID_TAGS):{},Hr="FORBID_ATTR"in K?St({},K.FORBID_ATTR):{},E="USE_PROFILES"in K?K.USE_PROFILES:!1,Sc=K.ALLOW_ARIA_ATTR!==!1,yu=K.ALLOW_DATA_ATTR!==!1,zr=K.ALLOW_UNKNOWN_PROTOCOLS||!1,$e=K.SAFE_FOR_TEMPLATES||!1,Lc=K.WHOLE_DOCUMENT||!1,kc=K.RETURN_DOM||!1,hm=K.RETURN_DOM_FRAGMENT||!1,pS=K.RETURN_DOM_IMPORT!==!1,cm=K.RETURN_TRUSTED_TYPE||!1,Q0=K.FORCE_BODY||!1,mS=K.SANITIZE_DOM!==!1,Q=K.KEEP_CONTENT!==!1,j=K.IN_PLACE||!1,qe=K.ALLOWED_URI_REGEXP||qe,kt=K.NAMESPACE||Ne,$e&&(yu=!1),hm&&(kc=!0),E&&(Ce=St({},[].concat(aa(qO))),Vt=[],E.html===!0&&(St(Ce,jO),St(Vt,$O)),E.svg===!0&&(St(Ce,Jk),St(Vt,ix),St(Vt,Lv)),E.svgFilters===!0&&(St(Ce,ex),St(Vt,ix),St(Vt,Lv)),E.mathMl===!0&&(St(Ce,tx),St(Vt,GO),St(Vt,Lv))),K.ADD_TAGS&&(Ce===be&&(Ce=Kc(Ce)),St(Ce,K.ADD_TAGS)),K.ADD_ATTR&&(Vt===Es&&(Vt=Kc(Vt)),St(Vt,K.ADD_ATTR)),K.ADD_URI_SAFE_ATTR&&St(ke,K.ADD_URI_SAFE_ATTR),K.FORBID_CONTENTS&&(M===F&&(M=Kc(M)),St(M,K.FORBID_CONTENTS)),Q&&(Ce["#text"]=!0),Lc&&St(Ce,["html","head","body"]),Ce.table&&(St(Ce,["tbody"]),delete to.tbody),vs&&vs(K),xe=K)},Ao=St({},["mi","mo","mn","ms","mtext"]),Ci=St({},["foreignobject","desc","title","annotation-xml"]),Yi=St({},Jk);St(Yi,ex),St(Yi,K$);var Xl=St({},tx);St(Xl,j$);var dm=function(K){var Pe=C(K);(!Pe||!Pe.tagName)&&(Pe={namespaceURI:Ne,tagName:"template"});var Ie=Uc(K.tagName),hi=Uc(Pe.tagName);if(K.namespaceURI===Je)return Pe.namespaceURI===Ne?Ie==="svg":Pe.namespaceURI===pe?Ie==="svg"&&(hi==="annotation-xml"||Ao[hi]):!!Yi[Ie];if(K.namespaceURI===pe)return Pe.namespaceURI===Ne?Ie==="math":Pe.namespaceURI===Je?Ie==="math"&&Ci[hi]:!!Xl[Ie];if(K.namespaceURI===Ne){if(Pe.namespaceURI===Je&&!Ci[hi]||Pe.namespaceURI===pe&&!Ao[hi])return!1;var Oi=St({},["title","style","font","a","script"]);return!Xl[Ie]&&(Oi[Ie]||!Yi[Ie])}return!1},io=function(K){Zm(e.removed,{element:K});try{K.parentNode.removeChild(K)}catch{try{K.outerHTML=T}catch{K.remove()}}},xc=function(K,Pe){try{Zm(e.removed,{attribute:Pe.getAttributeNode(K),from:Pe})}catch{Zm(e.removed,{attribute:null,from:Pe})}if(Pe.removeAttribute(K),K==="is"&&!Vt[K])if(kc||hm)try{io(Pe)}catch{}else try{Pe.setAttribute(K,"")}catch{}},Su=function(K){var Pe=void 0,Ie=void 0;if(Q0)K=""+K;else{var hi=UO(K,/^[\r\n\t ]+/);Ie=hi&&hi[0]}var Oi=S?S.createHTML(K):K;if(kt===Ne)try{Pe=new g().parseFromString(Oi,"text/html")}catch{}if(!Pe||!Pe.documentElement){Pe=k.createDocument(kt,"template",null);try{Pe.documentElement.innerHTML=Ct?"":Oi}catch{}}var Ro=Pe.body||Pe.documentElement;return K&&Ie&&Ro.insertBefore(i.createTextNode(Ie),Ro.childNodes[0]||null),kt===Ne?R.call(Pe,Lc?"html":"body")[0]:Lc?Pe.documentElement:Ro},Dc=function(K){return D.call(K.ownerDocument||K,K,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},HM=function(K){return K instanceof d||K instanceof u?!1:typeof K.nodeName!="string"||typeof K.textContent!="string"||typeof K.removeChild!="function"||!(K.attributes instanceof c)||typeof K.removeAttribute!="function"||typeof K.setAttribute!="function"||typeof K.namespaceURI!="string"||typeof K.insertBefore!="function"},Zl=function(K){return(typeof r>"u"?"undefined":Qm(r))==="object"?K instanceof r:K&&(typeof K>"u"?"undefined":Qm(K))==="object"&&typeof K.nodeType=="number"&&typeof K.nodeName=="string"},Ur=function(K,Pe,Ie){se[K]&&V$(se[K],function(hi){hi.call(e,Pe,Ie,xe)})},J0=function(K){var Pe=void 0;if(Ur("beforeSanitizeElements",K,null),HM(K)||UO(K.nodeName,/[\u0080-\uFFFF]/))return io(K),!0;var Ie=Uc(K.nodeName);if(Ur("uponSanitizeElement",K,{tagName:Ie,allowedTags:Ce}),!Zl(K.firstElementChild)&&(!Zl(K.content)||!Zl(K.content.firstElementChild))&&ol(/<[/\w]/g,K.innerHTML)&&ol(/<[/\w]/g,K.textContent)||Ie==="select"&&ol(/